@babylonjs/gui-editor 7.26.3 → 7.26.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see babylon.guiEditor.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@babylonjs/core"),require("@babylonjs/gui")):"function"==typeof define&&define.amd?define("@babylonjs/gui-editor",["@babylonjs/core","@babylonjs/gui"],t):"object"==typeof exports?exports["@babylonjs/gui-editor"]=t(require("@babylonjs/core"),require("@babylonjs/gui")):e.GUIEDITOR=t(e.BABYLON,e.BABYLON.GUI)}("undefined"!=typeof self?self:"undefined"!=typeof global?global:this,((e,t)=>(()=>{var n={228:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(234),s=n.n(o),i=n(474),r=n.n(i)()(s());r.push([e.id,'.color-picker-container{width:320px;height:300px;background-color:#fff;display:grid;grid-template-columns:100%;grid-template-rows:50% 50px 60px 40px 1fr auto;font-family:"acumin-pro-condensed";font-weight:normal;font-size:14px}.color-picker-container.with-hints{height:380px}.color-picker-container .color-picker-saturation{grid-row:1;grid-column:1;display:grid;grid-template-columns:100%;grid-template-rows:100%;position:relative;cursor:pointer}.color-picker-container .color-picker-saturation .color-picker-saturation-white{grid-row:1;grid-column:1;background:-webkit-linear-gradient(to right, #fff, rgba(255, 255, 255, 0));background:linear-gradient(to right, #fff, rgba(255, 255, 255, 0))}.color-picker-container .color-picker-saturation .color-picker-saturation-black{grid-row:1;grid-column:1;background:-webkit-linear-gradient(to top, #000, rgba(0, 0, 0, 0));background:linear-gradient(to top, #000, rgba(0, 0, 0, 0))}.color-picker-container .color-picker-saturation .color-picker-saturation-cursor{pointer-events:none;width:4px;height:4px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);border-radius:50%;transform:translate(-2px, -2px);position:absolute}.color-picker-container .color-picker-hue{grid-row:2;grid-column:1;display:grid;margin:10px;grid-template-columns:24% 76%;grid-template-rows:100%}.color-picker-container .color-picker-hue .color-picker-hue-color{grid-row:1;grid-column:1;align-self:center;justify-self:center;width:30px;height:30px;border-radius:15px;border:1px solid #000}.color-picker-container .color-picker-hue .color-picker-hue-slider{grid-row:1;grid-column:2;align-self:center;height:16px;position:relative;cursor:pointer;background:linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);background:-webkit-linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%)}.color-picker-container .color-picker-hue .color-picker-hue-slider .color-picker-hue-cursor{pointer-events:none;width:8px;height:18px;transform:translate(-4px, -2px);background-color:#f8f8f8;box-shadow:0 1px 4px 0 rgba(0,0,0,.37);position:absolute}.color-picker-container .color-picker-component{display:grid;margin:5px;grid-template-columns:100%;grid-template-rows:50% 50%}.color-picker-container .color-picker-component .color-picker-component-value{justify-self:center;align-self:center;grid-row:1;grid-column:1;margin-bottom:4px}.color-picker-container .color-picker-component .color-picker-component-value input{width:50px}.color-picker-container .color-picker-component .color-picker-component-label{justify-self:center;align-self:center;grid-row:2;grid-column:1;color:#000}.color-picker-container .color-picker-rgb{grid-row:3;grid-column:1;display:grid;margin:10px;grid-template-columns:20% 6.66% 20% 6.66% 20% 6.66% 20%;grid-template-rows:100%}.color-picker-container .red{grid-row:1;grid-column:1}.color-picker-container .green{grid-row:1;grid-column:3}.color-picker-container .blue{grid-row:1;grid-column:5}.color-picker-container .alpha{grid-row:1;grid-column:7}.color-picker-container .alpha.grayed{opacity:.5}.color-picker-container .color-picker-hex{grid-row:4;grid-column:1;display:grid;grid-template-columns:20% 80%;grid-template-rows:100%}.color-picker-container .color-picker-hex .color-picker-hex-label{justify-self:center;align-self:center;grid-row:1;grid-column:1;margin-left:10px;color:#000}.color-picker-container .color-picker-hex .color-picker-hex-value{justify-self:left;align-self:center;grid-row:1;grid-column:2;margin-left:10px;margin-right:10px}.color-picker-container .color-picker-hex .color-picker-hex-value input{width:70px}.color-picker-container .color-picker-warning{color:#000;font-size:11px;padding:4px;justify-self:left;align-self:center;grid-row:6;grid-column:1}',"",{version:3,sources:["webpack://./../../../dev/sharedUiComponents/dist/colorPicker/colorPicker.scss"],names:[],mappings:"AAAA,wBACI,WAAA,CACA,YAAA,CACA,qBAAA,CACA,YAAA,CACA,0BAAA,CACA,8CAAA,CACA,kCAAA,CACA,kBAAA,CACA,cAAA,CAEA,mCACI,YAAA,CAGJ,iDACI,UAAA,CACA,aAAA,CACA,YAAA,CACA,0BAAA,CACA,uBAAA,CACA,iBAAA,CACA,cAAA,CAEA,gFACI,UAAA,CACA,aAAA,CAEA,0EAAA,CACA,kEAAA,CAGJ,gFACI,UAAA,CACA,aAAA,CAEA,kEAAA,CACA,0DAAA,CAGJ,iFACI,mBAAA,CACA,SAAA,CACA,UAAA,CACA,uFACI,CAGJ,iBAAA,CACA,+BAAA,CACA,iBAAA,CAIR,0CACI,UAAA,CACA,aAAA,CACA,YAAA,CACA,WAAA,CACA,6BAAA,CACA,uBAAA,CAEA,kEACI,UAAA,CACA,aAAA,CACA,iBAAA,CACA,mBAAA,CACA,UAAA,CACA,WAAA,CACA,kBAAA,CACA,qBAAA,CAGJ,mEACI,UAAA,CACA,aAAA,CACA,iBAAA,CACA,WAAA,CACA,iBAAA,CACA,cAAA,CAEA,0GAAA,CACA,kHAAA,CAEA,4FACI,mBAAA,CACA,SAAA,CACA,WAAA,CACA,+BAAA,CACA,wBAAA,CACA,sCAAA,CACA,iBAAA,CAKZ,gDACI,YAAA,CACA,UAAA,CACA,0BAAA,CACA,0BAAA,CAEA,8EACI,mBAAA,CACA,iBAAA,CACA,UAAA,CACA,aAAA,CACA,iBAAA,CAEA,oFACI,UAAA,CAIR,8EACI,mBAAA,CACA,iBAAA,CACA,UAAA,CACA,aAAA,CACA,UAAA,CAIR,0CACI,UAAA,CACA,aAAA,CACA,YAAA,CACA,WAAA,CACA,uDAAA,CACA,uBAAA,CAGJ,6BACI,UAAA,CACA,aAAA,CAGJ,+BACI,UAAA,CACA,aAAA,CAGJ,8BACI,UAAA,CACA,aAAA,CAGJ,+BACI,UAAA,CACA,aAAA,CAEA,sCACI,UAAA,CAIR,0CACI,UAAA,CACA,aAAA,CACA,YAAA,CACA,6BAAA,CACA,uBAAA,CAEA,kEACI,mBAAA,CACA,iBAAA,CACA,UAAA,CACA,aAAA,CACA,gBAAA,CACA,UAAA,CAGJ,kEACI,iBAAA,CACA,iBAAA,CACA,UAAA,CACA,aAAA,CACA,gBAAA,CACA,iBAAA,CAEA,wEACI,UAAA,CAKZ,8CACI,UAAA,CACA,cAAA,CACA,WAAA,CACA,iBAAA,CACA,iBAAA,CACA,UAAA,CACA,aAAA",sourceRoot:""}]),r.locals={};const a=r},548:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(234),s=n.n(o),i=n(474),r=n.n(i)()(s());r.push([e.id,'#log-console{background:#333;height:120px;box-sizing:border-box;margin:0;padding:10px;width:100%;overflow:hidden;overflow-y:auto}#log-console .log{color:#fff;font-size:14px;font-family:"Courier New",Courier,monospace}#log-console .log.error{color:red}',"",{version:3,sources:["webpack://./../../../tools/guiEditor/dist/components/log/log.scss"],names:[],mappings:"AAAA,aACI,eAAA,CACA,YAAA,CACA,qBAAA,CACA,QAAA,CACA,YAAA,CACA,UAAA,CACA,eAAA,CACA,eAAA,CAEA,kBACI,UAAA,CACA,cAAA,CACA,2CAAA,CAEA,wBACI,SAAA",sourceRoot:""}]),r.locals={};const a=r},788:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(234),s=n.n(o),i=n(474),r=n.n(i)()(s());r.push([e.id,':root{--backgroundGrey: #aaaaaa;--spacingHeight: 30px;--button: #333333;--buttonBackground: #ffffff;--buttonDisabledBackground: #c8c8c8;--disabledBackground: #c8c8c8;--buttonPressed: #ffffff;--buttonPressedBackground: #606060;--buttonHoverBackground: #afafaf}#ge-propertyTab{user-select:none;color:#000;background:#e2e2e2}#ge-propertyTab *{font-family:"acumin-pro-condensed",sans-serif;font-size:12px}#ge-propertyTab #header{height:32px;font-size:16px;color:#fff;background:#fff;grid-row:1;text-align:center;display:grid;grid-template-columns:30px 1fr;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#ge-propertyTab #header #logo{position:relative;grid-column:1;width:32px;height:32px;left:0;display:flex;align-self:center;justify-self:center;filter:invert(1)}#ge-propertyTab #header #title{background:#fff;color:#000;grid-column:2;display:grid;align-items:center;text-align:center}#ge-propertyTab .copy{display:none}#ge-propertyTab .range{-webkit-appearance:none;width:100%;height:2px;background:#bcbcbc;border-radius:5px;outline:none;opacity:.7;-webkit-transition:.2s;transition:opacity .2s;padding:0}#ge-propertyTab .range:hover{opacity:1}#ge-propertyTab .range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:14px;height:14px;border-radius:50%;background:#e2e2e2;border:solid;border-width:thin;cursor:pointer}#ge-propertyTab .range::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:#000;cursor:pointer}#ge-propertyTab input[type=color]{-webkit-appearance:none;border:1px solid hsla(0,0%,100%,.5);padding:0;width:30px;height:20px}#ge-propertyTab input[type=color]::-webkit-color-swatch-wrapper{padding:0}#ge-propertyTab input[type=color]::-webkit-color-swatch{border:none}#ge-propertyTab hr{border:1px solid #d0cece}#ge-propertyTab .icon{width:30px;height:30px}#ge-propertyTab .unit{width:26px;height:26px;color:var(--button);background-color:var(--buttonBackground);border:none;margin-top:2px;cursor:pointer;margin-left:2px;font-family:"atten-round-new",sans-serif;font-weight:500;font-style:normal;display:flex;justify-content:center;align-items:center}#ge-propertyTab .unit:disabled{background-color:var(--buttonDisabledBackground);cursor:not-allowed}#ge-propertyTab .unit:not(:disabled):hover{background-color:var(--buttonHoverBackground)}#ge-propertyTab .unit:not(:disabled):active{color:var(--buttonPressed);background-color:var(--buttonPressedBackground)}#ge-propertyTab input,#ge-propertyTab select{outline-style:solid;outline-width:0px;outline-color:rgba(0,0,0,0);outline-offset:-1px;outline-width:1px;transition:outline-color .2s;border:rgba(0,0,0,0);padding-left:5px}#ge-propertyTab input:focus,#ge-propertyTab select:focus{outline-width:1px;outline-color:#000}#ge-propertyTab .hasArrows input::-webkit-outer-spin-button,#ge-propertyTab .hasArrows input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}#ge-propertyTab .hasArrows input[type=number]{-moz-appearance:textfield}#ge-propertyTab .sliderLine{height:var(--spacingHeight);display:grid;grid-template-rows:100%;grid-template-columns:auto 1fr 20px 1fr;flex-grow:1}#ge-propertyTab .sliderLine .label{grid-column:1;display:flex;align-items:center;min-width:15px;font-weight:600}#ge-propertyTab .sliderLine .img{grid-column:1;display:flex;align-items:center}#ge-propertyTab .sliderLine .slider{grid-column:4;grid-row:1;margin-right:5px;display:flex;align-items:center;padding-left:5px}#ge-propertyTab .sliderLine .floatLine{grid-column:2;padding-left:0px;grid-template-columns:1fr auto}#ge-propertyTab .sliderLine .floatLine .label{grid-column:1;display:none;align-items:center;font-weight:600}#ge-propertyTab .sliderLine .floatLine .short{grid-column:1;display:flex;align-items:center}#ge-propertyTab .sliderLine .floatLine .short input{width:100%;background-color:#fff;height:24px}#ge-propertyTab .sliderLine .floatLine .short input::-webkit-outer-spin-button,#ge-propertyTab .sliderLine .floatLine .short input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}#ge-propertyTab .sliderLine .floatLine .short input[type=number]{-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}#ge-propertyTab .sliderLine .floatLine .copy{display:none}#ge-propertyTab .sliderLine .copy{display:none}#ge-propertyTab .ge-divider{padding-right:18px;padding-left:5px;display:grid;grid-template-columns:auto 1fr;padding-top:1px;padding-bottom:1px}#ge-propertyTab .ge-divider>.textLine+.command-button{margin-top:-3px;grid-column:5}#ge-propertyTab .ge-divider.double{display:grid;grid-template-columns:auto 1fr 5px 1fr}#ge-propertyTab .ge-divider.double>.textInputLine:first-of-type,#ge-propertyTab .ge-divider.double>.floatLine:first-of-type{grid-column:2}#ge-propertyTab .ge-divider.double>.textInputLine:nth-of-type(2),#ge-propertyTab .ge-divider.double>.floatLine:nth-of-type(2){grid-column:4}#ge-propertyTab .ge-divider.double>.command-button{grid-column:5;margin-left:5px}#ge-propertyTab .ge-divider.quad{display:grid;grid-template-columns:1fr 5px 1fr 5px 1fr 5px 1fr}#ge-propertyTab .ge-divider.quad>.textInputLine:first-of-type,#ge-propertyTab .ge-divider.quad>.floatLine:first-of-type{grid-column:1}#ge-propertyTab .ge-divider.quad>.textInputLine:nth-of-type(2),#ge-propertyTab .ge-divider.quad>.floatLine:nth-of-type(2){grid-column:3}#ge-propertyTab .ge-divider.quad>.textInputLine:nth-of-type(3),#ge-propertyTab .ge-divider.quad>.floatLine:nth-of-type(3){grid-column:5}#ge-propertyTab .ge-divider.quad>.textInputLine:nth-of-type(4),#ge-propertyTab .ge-divider.quad>.floatLine:nth-of-type(4){grid-column:7}#ge-propertyTab .ge-grid-divider{display:grid;grid-template-columns:150px 1fr auto}#ge-propertyTab .ge-grid-divider .textLine{grid-column:auto}#ge-propertyTab .ge-grid-button-divider{display:grid;grid-template-columns:60px 60px 60px 60px}#ge-propertyTab .ge-grid-remove{display:grid;background-color:#c2c2c2;margin-bottom:5px;filter:invert(1)}#ge-propertyTab .ge-grid-edit{display:grid;background-color:#878787;margin-bottom:5px;filter:invert(1)}#ge-propertyTab .ge-grid{display:grid;margin-bottom:5px}#ge-propertyTab .ge-divider.double .textInputLine{grid-template-columns:auto auto 1fr auto}#ge-propertyTab .textInputLine,#ge-propertyTab .floatLine{user-select:none;padding-bottom:0px;padding-top:0px;height:var(--spacingHeight);display:grid;grid-template-columns:auto auto 1fr;flex-grow:1}#ge-propertyTab .textInputLine .label,#ge-propertyTab .floatLine .label{grid-column:2;display:flex;align-items:center;min-width:15px;font-weight:600}#ge-propertyTab .textInputLine .disabled,#ge-propertyTab .floatLine .disabled{color:var(--backgroundGrey);background-color:var(--disabledBackground)}#ge-propertyTab .textInputLine img,#ge-propertyTab .floatLine img{width:30px}#ge-propertyTab .textInputLine .img,#ge-propertyTab .floatLine .img{grid-column:1;display:flex;align-items:center}#ge-propertyTab .textInputLine .value,#ge-propertyTab .floatLine .value{display:flex;align-items:center;grid-column:3;background:rgba(0,0,0,0);height:26px;position:relative;background-color:#fff;margin-top:2px;overflow-y:hidden}#ge-propertyTab .textInputLine .value input,#ge-propertyTab .floatLine .value input{width:100%;height:24px;color:#333}#ge-propertyTab .textInputLine .value input.hasArrows,#ge-propertyTab .floatLine .value input.hasArrows{padding-right:15px}#ge-propertyTab .textInputLine .value .arrows,#ge-propertyTab .floatLine .value .arrows{display:none;position:absolute;right:0;flex-direction:column;cursor:grab}#ge-propertyTab .textInputLine .value .arrows .downArrowIcon,#ge-propertyTab .textInputLine .value .arrows .upArrowIcon,#ge-propertyTab .floatLine .value .arrows .downArrowIcon,#ge-propertyTab .floatLine .value .arrows .upArrowIcon{width:13px;height:13px}#ge-propertyTab .textInputLine .value:hover .arrows,#ge-propertyTab .textInputLine .value:focus .arrows,#ge-propertyTab .textInputLine .value.dragging .arrows,#ge-propertyTab .floatLine .value:hover .arrows,#ge-propertyTab .floatLine .value:focus .arrows,#ge-propertyTab .floatLine .value.dragging .arrows{display:flex}#ge-propertyTab .textInputLine .value .arrows:hover,#ge-propertyTab .floatLine .value .arrows:hover{background-color:var(--buttonHoverBackground)}#ge-propertyTab .textInputLine .value.dragging .arrows,#ge-propertyTab .floatLine .value.dragging .arrows{background-color:var(--buttonPressedBackground)}#ge-propertyTab .textInputLine .value.dragging .arrows .downArrowIcon,#ge-propertyTab .textInputLine .value.dragging .arrows .upArrowIcon,#ge-propertyTab .floatLine .value.dragging .arrows .downArrowIcon,#ge-propertyTab .floatLine .value.dragging .arrows .upArrowIcon{filter:brightness(10)}#ge-propertyTab .textInputLine .copy,#ge-propertyTab .floatLine .copy{display:none}#ge-propertyTab .textInputLine.withUnits{grid-template-columns:auto auto 1fr auto}#ge-propertyTab .textInputArea{height:100%;display:grid;grid-template-columns:1fr 120px}#ge-propertyTab .textInputArea .disabled{color:var(--backgroundGrey);background-color:var(--disabledBackground)}#ge-propertyTab .textInputArea .label{grid-column:1;display:flex;align-items:center}#ge-propertyTab .textInputArea .value{display:flex;align-items:center;grid-column:2}#ge-propertyTab .textInputArea .value textarea{width:calc(150% - 5px);margin-left:-50%;height:40px}#ge-propertyTab .paneContainer{margin-top:3px;display:grid;grid-template-rows:100%;grid-template-columns:100%}#ge-propertyTab .paneContainer .paneList{border-left:3px solid rgba(0,0,0,0)}#ge-propertyTab .paneContainer:hover .paneList{border-left:3px solid rgba(51,122,183,.8)}#ge-propertyTab .paneContainer:hover .paneContainer-content .header .title{border-left:3px solid #337ab7}#ge-propertyTab .paneContainer .paneContainer-highlight-border{grid-row:1;grid-column:1;opacity:1;border:3px solid red;transition:opacity 250ms;pointer-events:none}#ge-propertyTab .paneContainer .paneContainer-highlight-border.transparent{opacity:0}#ge-propertyTab .paneContainer .paneContainer-content{grid-row:1;grid-column:1}#ge-propertyTab .paneContainer .paneContainer-content .header{display:grid;grid-template-columns:1fr auto;background:#ccc;height:var(--spacingHeight);padding-bottom:0px;padding-top:0px;padding-right:5px;cursor:pointer}#ge-propertyTab .paneContainer .paneContainer-content .header .title{border-left:3px solid rgba(0,0,0,0);padding-left:5px;grid-column:1;display:flex;align-items:center}#ge-propertyTab .paneContainer .paneContainer-content .header .collapse{grid-column:2;display:flex;align-items:center;justify-items:center;transform-origin:center}#ge-propertyTab .paneContainer .paneContainer-content .header .collapse.closed{transform:rotate(180deg)}#ge-propertyTab .paneContainer .paneContainer-content .paneList>div:not(:last-child){border-bottom:.5px solid hsla(0,0%,100%,.1)}#ge-propertyTab .paneContainer .paneContainer-content .fragment>div:not(:last-child){border-bottom:.5px solid hsla(0,0%,100%,.1)}#ge-propertyTab .color-picker{height:26px;width:26px}#ge-propertyTab .color-picker .color-rect-background{width:calc(100% - 2px);height:calc(100% - 2px);border:1px #000 solid;cursor:pointer;background:repeating-conic-gradient(#e2e2e2 0% 25%, white 0% 50%) 50%/100% 100%}#ge-propertyTab .color-picker .color-rect-background .color-rect{height:100%}#ge-propertyTab .color-picker .color-picker-cover{z-index:2;position:fixed;top:0px;right:0px;bottom:0px;left:0px}#ge-propertyTab .color-picker .color-picker-float{position:absolute;outline:1px solid #000}#ge-propertyTab .color-picker .color-picker-container{background-color:#e2e2e2}#ge-propertyTab .gradient-step{display:grid;grid-template-rows:100%;grid-template-columns:20px 30px 40px auto 20px 30px;padding-top:5px;padding-left:5px;padding-bottom:5px}#ge-propertyTab .gradient-step .step{grid-row:1;grid-column:1}#ge-propertyTab .gradient-step .color{grid-row:1;grid-column:2;cursor:pointer}#ge-propertyTab .gradient-step .step-value{margin-left:5px;grid-row:1;grid-column:3;text-align:right;margin-right:5px}#ge-propertyTab .gradient-step .step-slider{grid-row:1;grid-column:4;display:grid;justify-content:stretch;align-content:center;margin-right:-5px;padding-left:12px}#ge-propertyTab .gradient-step .step-slider input{width:90%}#ge-propertyTab .gradient-step .gradient-copy{grid-row:1;grid-column:5;display:grid;align-content:center;justify-content:center}#ge-propertyTab .gradient-step .gradient-copy .img{height:20px;width:20px}#ge-propertyTab .gradient-step .gradient-copy .img:hover{cursor:pointer}#ge-propertyTab .gradient-step .gradient-delete{grid-row:1;grid-column:6;display:grid;align-content:center;justify-content:center}#ge-propertyTab .gradient-step .gradient-delete .img{height:20px;width:20px}#ge-propertyTab .gradient-step .gradient-delete .img:hover{cursor:pointer}#ge-propertyTab .alignment-bar{display:flex;justify-content:center;padding-right:5px}#ge-propertyTab .command-button{cursor:pointer;width:30px}#ge-propertyTab .command-button .command-label{display:none}#ge-propertyTab .command-button .command-button-icon{height:100%;width:100%;display:grid;color:#fff;align-content:center;justify-content:center}#ge-propertyTab .command-button:hover{background-color:#fff}#ge-propertyTab .command-button .active{transform-origin:center;background-color:#fff}#ge-propertyTab .command-button img.active{background-color:#fff}#ge-propertyTab .command-button.disabled{background-color:var(--buttonDisabledBackground);pointer-events:none}#ge-propertyTab .command-button-alt{cursor:pointer;width:40px;margin-left:5px;margin-right:5px;background-color:#fff}#ge-propertyTab .command-button-alt .command-label{display:none}#ge-propertyTab .command-button-alt .command-button-icon{height:100%;width:100%;display:grid;align-content:center;justify-content:center}#ge-propertyTab .command-button-alt:hover{background-color:#c2c2c2;filter:invert(1)}#ge-propertyTab .command-button-alt-disabled{cursor:pointer;pointer-events:none;width:40px;margin-left:5px;margin-right:5px;background-color:#fff}#ge-propertyTab .command-button-alt-disabled .command-label{display:none}#ge-propertyTab .command-button-alt-disabled .command-button-icon{height:100%;width:100%;display:grid;align-content:center;justify-content:center}#ge-propertyTab .command-button-alt-disabled img{filter:invert(1)}#ge-propertyTab .command-button-alt-active{cursor:pointer;pointer-events:none;width:40px;margin-left:5px;margin-right:5px;background-color:#c2c2c2;filter:invert(1)}#ge-propertyTab .command-button-alt-active .command-label{display:none}#ge-propertyTab .command-button-alt-active .command-button-icon{height:100%;width:100%;display:grid;align-content:center;justify-content:center}#ge-propertyTab .floatLine{user-select:none;height:var(--spacingHeight);padding-bottom:0px;padding-top:0px;display:grid;grid-template-columns:auto auto 2fr auto;flex-grow:1}#ge-propertyTab .floatLine .label{grid-column:2;display:flex;align-items:center;min-width:15px;font-weight:600}#ge-propertyTab .floatLine img{width:30px}#ge-propertyTab .floatLine .img{grid-column:1;display:flex;align-items:center}#ge-propertyTab .floatLine .value{display:flex;align-items:center;grid-column:3;background:rgba(0,0,0,0);height:26px}#ge-propertyTab .floatLine .value input{width:100%;background-color:#fff;height:24px}#ge-propertyTab .floatLine .short{grid-column:2;display:flex;align-items:center}#ge-propertyTab .floatLine .short input{width:100%}#ge-propertyTab .floatLine .short input::-webkit-outer-spin-button,#ge-propertyTab .floatLine .short input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}#ge-propertyTab .floatLine .short input[type=number]{-moz-appearance:textfield}#ge-propertyTab .floatLine .copy{display:none}#ge-propertyTab .vector3Line{padding-bottom:0px;padding-top:0px;display:grid}#ge-propertyTab .vector3Line .firstLine{display:grid;grid-template-columns:1fr auto 20px;height:var(--spacingHeight)}#ge-propertyTab .vector3Line .firstLine .label{grid-column:1;display:flex;align-items:center}#ge-propertyTab .vector3Line .firstLine .vector{grid-column:2;display:flex;align-items:center;text-align:right;opacity:.8}#ge-propertyTab .vector3Line .firstLine .expand{grid-column:3;display:grid;align-items:center;justify-items:center;cursor:pointer}#ge-propertyTab .vector3Line .firstLine .copy{display:none}#ge-propertyTab .vector3Line .secondLine{display:grid;padding-right:5px;border-left:1px solid #337ab7}#ge-propertyTab .vector3Line .secondLine .no-right-margin{margin-right:0}#ge-propertyTab .vector3Line .secondLine .numeric{display:grid;grid-template-columns:1fr auto}#ge-propertyTab .vector3Line .secondLine .numeric-label{text-align:right;grid-column:1;display:flex;align-items:center;justify-self:right;margin-right:10px}#ge-propertyTab .vector3Line .secondLine .numeric-value{width:120px;grid-column:2;display:flex;align-items:center;border:1px solid #337ab7}#ge-propertyTab .buttonLine{height:var(--spacingHeight);padding-bottom:0px;padding-top:0px;display:grid;align-items:center;justify-items:stretch;padding-bottom:5px}#ge-propertyTab .buttonLine input[type=file]{display:none}#ge-propertyTab .buttonLine .file-upload{background:var(--backgroundGrey);border:1px solid #424242;margin:5px 10px;color:#fff;padding:4px 5px;opacity:.9;cursor:pointer;text-align:center;border-radius:4px}#ge-propertyTab .buttonLine .file-upload:hover{opacity:1}#ge-propertyTab .buttonLine .file-upload:active{transform:scale(0.98);transform-origin:.5 .5}#ge-propertyTab .buttonLine button{background:var(--backgroundGrey);border:1px solid #424242;margin:5px 10px 5px 10px;color:#fff;padding:4px 5px;opacity:.9;border-radius:4px}#ge-propertyTab .buttonLine button:hover{opacity:1}#ge-propertyTab .buttonLine button:active{background:#282828}#ge-propertyTab .buttonLine button:focus{border:1px solid #424242;outline:0px}#ge-propertyTab .numeric{padding-bottom:0px;padding-top:0px;height:var(--spacingHeight);display:grid;grid-template-columns:1fr 120px auto}#ge-propertyTab .numeric .numeric-label{grid-column:1;display:flex;align-items:center}#ge-propertyTab .numeric .number{display:flex;align-items:center;grid-column:2;height:10px}#ge-propertyTab .numeric .number .input{width:calc(100% - 5px);height:10px}#ge-propertyTab .checkBoxLine{padding-bottom:0px;padding-top:0px;height:var(--spacingHeight);display:grid;grid-template-columns:auto 1fr auto;flex-grow:1}#ge-propertyTab .checkBoxLine .label{grid-column:2;display:flex;align-items:center;min-width:100px;margin-left:15px;height:var(--spacingHeight);font-weight:600}#ge-propertyTab .checkBoxLine img{width:30px}#ge-propertyTab .checkBoxLine .img{grid-column:1;display:flex;align-items:center}#ge-propertyTab .checkBoxLine .hidden{display:none}#ge-propertyTab .checkBoxLine .copy{display:none}#ge-propertyTab .listLine{padding-bottom:0px;padding-top:0px;height:var(--spacingHeight);display:grid;grid-template-columns:auto 1fr auto;flex-grow:1}#ge-propertyTab .listLine .label{grid-column:2;display:none;align-items:center}#ge-propertyTab .listLine img{width:30px}#ge-propertyTab .listLine .img{grid-column:1;display:flex;align-items:center}#ge-propertyTab .listLine .options{grid-column:2;padding-left:15px;display:flex;align-items:center}#ge-propertyTab .listLine .options select{width:100%;height:25px;border:rgba(0,0,0,0)}#ge-propertyTab .listLine .options input{width:100%;height:24px;color:#333}#ge-propertyTab .listLine .copy{display:none}#ge-propertyTab .color3Line{padding-left:15px;padding-bottom:0px;padding-top:0px;display:grid;flex-grow:1}#ge-propertyTab .color3Line .firstLine{height:var(--spacingHeight);display:flex;align-items:center}#ge-propertyTab .color3Line .firstLine .label{grid-column:2;padding-left:5px;display:none;align-items:center;min-width:15px}#ge-propertyTab .color3Line .firstLine .img{grid-column:1;display:flex;align-items:center}#ge-propertyTab .color3Line .firstLine img{width:30px;height:30px}#ge-propertyTab .color3Line .firstLine .textInputLine{grid-column:3;padding-left:2px;flex-grow:1}#ge-propertyTab .color3Line .firstLine .color3{display:flex;align-items:center}#ge-propertyTab .color3Line .firstLine .color3 input{margin-right:5px}#ge-propertyTab .color3Line .firstLine .expand{grid-column:3;display:none;align-items:center;justify-items:center;cursor:pointer}#ge-propertyTab .color3Line .firstLine .expand img{height:100%;width:20px}#ge-propertyTab .color3Line .firstLine .copy{grid-column:4;display:none;align-items:center;justify-items:center;cursor:pointer;color:#000}#ge-propertyTab .color3Line .firstLine .copy img{height:100%;width:20px}#ge-propertyTab .color3Line .secondLine{display:grid;padding-right:5px;border-left:1px solid #337ab7}#ge-propertyTab .color3Line .secondLine .numeric{display:grid;grid-template-columns:1fr auto}#ge-propertyTab .color3Line .secondLine .numeric-label{text-align:right;grid-column:1;display:flex;align-items:center;justify-self:right;margin-right:10px}#ge-propertyTab .color3Line .secondLine .numeric-value{width:120px;grid-column:2;display:flex;align-items:center;border:1px solid #337ab7}#ge-propertyTab .textLine{padding-left:5px;padding-bottom:0px;padding-top:0px;padding-right:18px;height:auto;display:grid;grid-template-columns:auto auto 2fr 1fr}#ge-propertyTab .textLine .label{grid-column:2;padding-left:5px;padding-top:4px;display:flex;align-items:left;min-width:15px;color:#a9a9a9;font-size:10px;font-family:"acumin-pro-semi-condensed",sans-serif;font-weight:600}#ge-propertyTab .textLine img{width:30px}#ge-propertyTab .textLine .img{grid-column:1;display:flex;align-items:center}#ge-propertyTab .textLine .link-value{grid-column:2;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-align:end;opacity:.8;margin:5px;margin-top:6px;max-width:140px;text-decoration:underline;cursor:pointer}#ge-propertyTab .textLine .value{display:none;grid-column:3;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-align:end;opacity:.8;margin:5px;margin-top:6px;max-width:200px;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}#ge-propertyTab .textLine .value.check{color:green}#ge-propertyTab .textLine .value.uncheck{color:red}',"",{version:3,sources:["webpack://./../../../tools/guiEditor/dist/components/propertyTab/propertyTab.scss"],names:[],mappings:"AAAA,MACI,yBAAA,CACA,qBAAA,CACA,iBAAA,CACA,2BAAA,CACA,mCAAA,CACA,6BAAA,CACA,wBAAA,CACA,kC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AAA,CACA,eAAA,CAGJ,8BACI,UAAA,CAGJ,+BACI,aAAA,CACA,YAAA,CACA,kBAAA,CAGJ,sCACI,aAAA,CACA,kBAAA,CACA,sBAAA,CACA,eAAA,CACA,cAAA,CACA,UAAA,CACA,UAAA,CACA,cAAA,CACA,eAAA,CACA,yBAAA,CACA,cAAA,CAGJ,iCACI,YAAA,CACA,aAAA,CACA,kBAAA,CACA,sBAAA,CACA,eAAA,CACA,cAAA,CACA,UAAA,CACA,UAAA,CACA,cAAA,CACA,eAAA,CACA,wBAAA,CACA,qBAAA,CACA,oBAAA,CACA,gBAAA,CAEA,uCACI,WAAA,CAGJ,yCACI,SAAA",sourceRoot:""}]),r.locals={};const a=r},660:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(234),s=n.n(o),i=n(474),r=n.n(i)()(s());r.push([e.id,'#ge-scene-explorer-host{position:absolute;left:0px;top:0px;bottom:0px}#ge-scene-explorer-host *{font-family:"acumin-pro-condensed"}#ge-scene-explorer-host:focus{outline:none}#ge-__resizable_base__{display:none}.ge-context-menu{background:#e2e2e2}.ge-context-menu .react-contextmenu-item{padding:10px;cursor:pointer}.ge-context-menu .react-contextmenu-item:hover{background:#e2e2e2}.ge-eact-contextmenu.context-menu.react-contextmenu--visible{z-index:99;transform:scale(1)}#ge-sceneExplorer{background:#e2e2e2;height:100%;margin:0;padding:0;display:grid;grid-template-rows:auto 1fr;font:16px "acumin-pro-condensed"}#ge-sceneExplorer:focus{outline:none}#ge-sceneExplorer #header{height:30px;font-size:16px;color:#000;background:#e2e2e2;grid-row:1;text-align:center;display:grid;grid-template-columns:30px 1fr 50px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#ge-sceneExplorer #header #logo{position:relative;grid-column:1;width:24px;height:24px;left:0;display:flex;align-self:center;justify-self:center}#ge-sceneExplorer #header #title{grid-column:2;display:grid;align-items:center;text-align:center}#ge-sceneExplorer #header #commands{grid-column:3;display:grid;align-items:center;grid-template-columns:1fr 1fr}#ge-sceneExplorer #header #commands .expand{grid-column:1;display:grid;align-items:center;justify-items:center;cursor:pointer}#ge-sceneExplorer #header #commands .close{grid-column:2;display:grid;align-items:center;justify-items:center;cursor:pointer}#ge-sceneExplorer #tree{grid-row:2;overflow-x:hidden;overflow-y:auto}#ge-sceneExplorer .filter{display:flex;align-items:stretch}#ge-sceneExplorer .filter input{width:100%;margin:10px 40px 5px 40px;display:block;border:none;padding:0;border-bottom:solid 1px #337ab7;background:linear-gradient(to bottom, rgba(255, 255, 255, 0) 96%, rgb(51, 122, 183) 4%);background-position:-1000px 0;background-size:1000px 100%;background-repeat:no-repeat;color:#000}#ge-sceneExplorer .filter input::placeholder{color:#d3d3d3}#ge-sceneExplorer .filter input:focus{box-shadow:none;outline:none;background-position:0 0}#ge-sceneExplorer .groupContainer{margin-left:0px;color:#000;margin-top:0px;margin-bottom:0px;height:24px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;align-self:center;display:grid;align-items:center}#ge-sceneExplorer .groupContainer:hover{background:#bbb}#ge-sceneExplorer .groupContainer .expandableHeader{display:grid;grid-template-columns:1fr 20px}#ge-sceneExplorer .groupContainer .expandableHeader .text{grid-column:1;display:grid;grid-template-columns:20px 1fr}#ge-sceneExplorer .groupContainer .expandableHeader .text .arrow{grid-column:1;margin-left:0px;color:#000;cursor:pointer;display:inline-block;margin-right:6px;opacity:.5}#ge-sceneExplorer .groupContainer .expandableHeader .text .text-value{grid-column:2;display:flex;align-items:center}#ge-sceneExplorer .groupContainer .expandableHeader .expandAll{opacity:.5;grid-column:2;margin-right:10px}#ge-sceneExplorer .icon{display:grid;align-items:center;justify-items:center;cursor:pointer}#ge-sceneExplorer .addComponent{display:none}#ge-sceneExplorer .makeChild{grid-column:3}#ge-sceneExplorer .itemContainer{margin-left:0px;color:#000;margin-top:0px;margin-bottom:0px;height:32px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:grid;grid-template-columns:20px 1fr;border:2px solid rgba(0,0,0,0)}#ge-sceneExplorer .itemContainer.hover{border:2px solid #527089;cursor:pointer}#ge-sceneExplorer .itemContainer.seAbove{border-top:2px solid #527089;cursor:pointer}#ge-sceneExplorer .itemContainer.seBelow{border-bottom:2px solid #527089;cursor:pointer}#ge-sceneExplorer .itemContainer.selected{background:#bfbebe;color:#000}#ge-sceneExplorer .itemContainer.dragged{background:rgba(0,0,0,0);color:#000}#ge-sceneExplorer .itemContainer.parent{background:#fff;color:#000}#ge-sceneExplorer .itemContainer .isNotActive{opacity:.3}#ge-sceneExplorer .itemContainer .arrow{grid-column:1;color:#000;opacity:.6}#ge-sceneExplorer .itemContainer .popup{width:200px;visibility:hidden;background-color:#bbb;color:#fff;border:1px solid hsla(0,0%,100%,.5);position:absolute;z-index:1;margin-left:-180px;box-sizing:border-box}#ge-sceneExplorer .itemContainer .popup.show{visibility:visible}#ge-sceneExplorer .itemContainer .popup:focus{outline:none}#ge-sceneExplorer .itemContainer .popup .popupMenu{padding:6px 5px 5px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;height:18px}#ge-sceneExplorer .itemContainer .popup .popupMenu:hover{background:#fff;color:#333}#ge-sceneExplorer .itemContainer .sceneNode{grid-column:2;margin-left:-10px;display:grid;grid-template-columns:1fr 20px 20px 20px 20px 10px 20px 20px auto 5px;align-items:center;cursor:pointer}#ge-sceneExplorer .itemContainer .sceneNode .sceneTitle{grid-column:1;margin-right:5px;display:flex;align-items:center;height:24px}#ge-sceneExplorer .itemContainer .sceneNode .translation{grid-column:2;opacity:.6}#ge-sceneExplorer .itemContainer .sceneNode .translation.selected{opacity:1}#ge-sceneExplorer .itemContainer .sceneNode .rotation{grid-column:3;opacity:.6}#ge-sceneExplorer .itemContainer .sceneNode .rotation.selected{opacity:1}#ge-sceneExplorer .itemContainer .sceneNode .scaling{grid-column:4;opacity:.6}#ge-sceneExplorer .itemContainer .sceneNode .scaling.selected{opacity:1}#ge-sceneExplorer .itemContainer .sceneNode .bounding{grid-column:5;opacity:.6}#ge-sceneExplorer .itemContainer .sceneNode .bounding.selected{opacity:1}#ge-sceneExplorer .itemContainer .sceneNode .separator{grid-column:6;margin-left:5px;width:5px;display:flex;align-items:center;height:18px;border-left:solid 1px #337ab7}#ge-sceneExplorer .itemContainer .sceneNode .pickingMode{grid-column:7;opacity:.6}#ge-sceneExplorer .itemContainer .sceneNode .pickingMode.selected{opacity:1}#ge-sceneExplorer .itemContainer .sceneNode .refresh{grid-column:8}#ge-sceneExplorer .itemContainer .sceneNode .extensions{width:20px;grid-column:9}#ge-sceneExplorer .itemContainer .adtextureTools{grid-column:2;display:grid;grid-template-columns:1fr 20px auto 5px;align-items:center}#ge-sceneExplorer .itemContainer .adtextureTools .pickingMode{grid-column:2;opacity:.6}#ge-sceneExplorer .itemContainer .adtextureTools .pickingMode.selected{opacity:1}#ge-sceneExplorer .itemContainer .adtextureTools .extensions{width:20px;grid-column:3}#ge-sceneExplorer .itemContainer .controlTools{grid-column:2;display:grid;align-items:center;grid-template-columns:auto 1fr auto auto auto}#ge-sceneExplorer .itemContainer .controlTools .controlType{grid-column:1}#ge-sceneExplorer .itemContainer .controlTools .controlType img{width:32px;height:32px;filter:invert(100%)}#ge-sceneExplorer .itemContainer .controlTools .highlight{grid-column:3}#ge-sceneExplorer .itemContainer .controlTools .visibility{grid-column:4}#ge-sceneExplorer .itemContainer .controlTools .extensions{width:20px;grid-column:5}#ge-sceneExplorer .itemContainer .title{background:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;min-width:0;margin-right:5px;align-items:center;height:24px;cursor:pointer}#ge-sceneExplorer .itemContainer .title .titleText{font-family:"acumin-pro-condensed",sans-serif;font-size:16px;border:unset;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;outline:none}',"",{version:3,sources:["webpack://./../../../tools/guiEditor/dist/components/sceneExplorer/sceneExplorer.scss"],names:[],mappings:"AAAA,wBACI,iBAAA,CACA,QAAA,CACA,OAAA,CACA,UAAA,CACA,0BACI,kCAAA,CAEJ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,aAAA,CACA,eAAA,CACA,SAAA,CACA,YAAA,CACA,kBAAA,CACA,WAAA,CACA,6BAAA,CAGJ,yDACI,aAAA,CACA,UAAA,CAEA,kEACI,SAAA,CAIR,qDACI,aAAA,CAGJ,wDACI,UAAA,CACA,aAAA,CAIR,iDACI,aAAA,CACA,YAAA,CACA,uCAAA,CACA,kBAAA,CAEA,8DACI,aAAA,CACA,UAAA,CAEA,uEACI,SAAA,CAIR,6DACI,UAAA,CACA,aAAA,CAIR,+CACI,aAAA,CACA,YAAA,CACA,kBAAA,CACA,6CAAA,CAEA,4DACI,aAAA,CACA,gEACI,UAAA,CACA,WAAA,CACA,mBAAA,CAIR,0DACI,aAAA,CAGJ,2DACI,aAAA,CAGJ,2DACI,UAAA,CACA,aAAA,CAIR,wCACI,wBAAA,CACA,kBAAA,CACA,eAAA,CACA,WAAA,CACA,gBAAA,CACA,kBAAA,CACA,WAAA,CACA,cAAA,CAEA,mDACI,6CAAA,CACA,cAAA,CACA,YAAA,CACA,kBAAA,CACA,sBAAA,CACA,eAAA,CACA,YAAA",sourceRoot:""}]),r.locals={};const a=r},59:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(234),s=n.n(o),i=n(474),r=n.n(i)()(s());r.push([e.id,'#workbench-canvas{grid-column:1;grid-row:1;width:100%;height:100%;margin:0;padding:0;font:14px "acumin-pro-condensed";cursor:default;user-select:none;overflow:hidden;background-image:linear-gradient(to right, #4f4e4f 1px, transparent 1px),linear-gradient(to bottom, #4f4e4f 1px, transparent 1px)}#workbench-canvas #selection-container{pointer-events:none}#workbench-canvas #selection-container .selection-box{z-index:10;background:rgba(72,72,196,.5);border:blue solid 2px}#workbench-canvas #workbench-container{width:100%;height:100%;left:0;top:0;transform-origin:left top;display:grid;grid-template-rows:100%;grid-template-columns:100%}#workbench-canvas #workbench-container #frame-container{overflow:visible;grid-row:1;grid-column:1;position:relative;width:100%;height:100%}#workbench-canvas #workbench-container .frame-box{position:absolute;background:rgba(72,72,72,.7);display:grid;grid-template-rows:40px calc(100% - 40px);grid-template-columns:100%;box-sizing:border-box}#workbench-canvas #workbench-container .frame-box.collapsed{height:auto !important;width:200px !important;z-index:3}#workbench-canvas #workbench-container .frame-box.collapsed .frame-box-header{font-size:16px;grid-template-columns:calc(100% - 37px) 30px 7px}#workbench-canvas #workbench-container .frame-box.collapsed .frame-box-header .frame-box-header-collapse{margin-top:-2px}#workbench-canvas #workbench-container .frame-box.collapsed .frame-box-header .frame-box-header-close{display:none}#workbench-canvas #workbench-container .frame-box.collapsed .frame-comments.has-comments .frame-comment-span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}#workbench-canvas #workbench-container .frame-box .frame-box-border{grid-row:1/span 2;grid-column:1;width:100%;height:100%;border:rgba(0,0,0,0) solid 4px;pointer-events:none;box-sizing:border-box}#workbench-canvas #workbench-container .frame-box .frame-box-header{grid-row:1;grid-column:1;background:#484848;color:#fff;font-size:24px;text-align:center;display:grid;grid-template-rows:100%;grid-template-columns:calc(100% - 74px) 30px 7px 30px 7px;align-content:center;overflow:hidden}#workbench-canvas #workbench-container .frame-box .frame-box-header .frame-box-header-button{cursor:pointer;align-self:center;transform-origin:50% 50%;transform:scale(1);stroke:rgba(0,0,0,0);fill:#fff;display:grid}#workbench-canvas #workbench-container .frame-box .frame-box-header .frame-box-header-button.down{transform:scale(0.9)}#workbench-canvas #workbench-container .frame-box .frame-box-header .frame-box-header-collapse{grid-column:2;grid-row:1}#workbench-canvas #workbench-container .frame-box .frame-box-header .frame-box-header-close{grid-column:4;grid-row:1}#workbench-canvas #workbench-container .frame-box .frame-box-header .frame-box-header-title{grid-column:1;grid-row:1;display:grid;height:100%;width:100%;align-self:stretch;align-items:center;margin-top:-2px}#workbench-canvas #workbench-container .frame-box .frame-comments.has-comments{display:grid;grid-row:2;grid-column:1;padding:0 10px;font-style:italic;word-wrap:break-word}#workbench-canvas #workbench-container .frame-box.selected .frame-box-border{border-color:#fff}#workbench-canvas #workbench-container .frame-box .right-handle{grid-area:1/2/3/2;width:4px;background-color:rgba(0,0,0,0);cursor:ew-resize}#workbench-canvas #workbench-container .frame-box .right-handle::after{content:"";width:8px;position:absolute;top:0;bottom:0;margin-left:-4px;cursor:ew-resize}#workbench-canvas #workbench-container .frame-box .right-handle.collapsed{cursor:pointer}#workbench-canvas #workbench-container .frame-box .top-right-corner-handle{background-color:rgba(0,0,0,0);height:4px;z-index:21;cursor:ne-resize;width:4px;margin-left:-6px}#workbench-canvas #workbench-container .frame-box .top-right-corner-handle::after{background-color:rgba(0,0,0,0);cursor:ne-resize;margin-left:unset;top:-4px;height:10px;width:10px}#workbench-canvas #workbench-container .frame-box .bottom-right-corner-handle{background-color:rgba(0,0,0,0);height:0px;z-index:21;cursor:nw-resize;grid-area:4/2/4/2;margin-left:-2px}#workbench-canvas #workbench-container .frame-box .bottom-right-corner-handle::after{background-color:rgba(0,0,0,0);height:10px;cursor:nw-resize;top:unset;bottom:-4px;width:10px}#workbench-canvas #workbench-container .frame-box .left-handle{grid-area:1/1/3/1;width:4px;background-color:rgba(0,0,0,0);cursor:ew-resize}#workbench-canvas #workbench-container .frame-box .left-handle::before{content:"";width:8px;position:absolute;top:0;bottom:0;margin-left:-4px}#workbench-canvas #workbench-container .frame-box .top-left-corner-handle{background-color:rgba(0,0,0,0);height:4px;z-index:21;cursor:nw-resize;width:4px;margin-left:-4px}#workbench-canvas #workbench-container .frame-box .top-left-corner-handle::before{background-color:rgba(0,0,0,0);cursor:nw-resize;margin-left:unset;top:-4px;height:10px;width:10px}#workbench-canvas #workbench-container .frame-box .bottom-left-corner-handle{background-color:rgba(0,0,0,0);height:0px;z-index:21;cursor:sw-resize;grid-area:4/1/4/1}#workbench-canvas #workbench-container .frame-box .bottom-left-corner-handle::before{background-color:rgba(0,0,0,0);height:10px;cursor:sw-resize;top:unset;bottom:-4px;width:10px}#workbench-canvas #workbench-container .frame-box .top-handle{grid-area:1/1/1/1;background-color:rgba(0,0,0,0);height:4px;cursor:ns-resize}#workbench-canvas #workbench-container .frame-box .top-handle::before{content:"";width:100%;position:absolute;top:-4px;bottom:100%;right:0;left:0;margin-bottom:-8px;cursor:ns-resize;height:8px}#workbench-canvas #workbench-container .frame-box .bottom-handle{grid-area:3/1/3/1;background-color:rgba(0,0,0,0);height:4px;cursor:ns-resize}#workbench-canvas #workbench-container .frame-box .bottom-handle::after{content:"";width:100%;position:absolute;top:100%;bottom:0;right:0;left:0;margin-top:-8px;cursor:ns-resize;height:12px}#workbench-canvas #workbench-container .frame-box.collapsed .top-handle,#workbench-canvas #workbench-container .frame-box.collapsed .top-right-corner-handle,#workbench-canvas #workbench-container .frame-box.collapsed .right-handle,#workbench-canvas #workbench-container .frame-box.collapsed .bottom-right-corner-handle,#workbench-canvas #workbench-container .frame-box.collapsed .bottom-handle,#workbench-canvas #workbench-container .frame-box.collapsed .bottom-left-corner-handle,#workbench-canvas #workbench-container .frame-box.collapsed .left-handle,#workbench-canvas #workbench-container .frame-box.collapsed .top-left-corner-handle{cursor:default}#workbench-canvas #workbench-container .frame-box.collapsed .right-handle::after,#workbench-canvas #workbench-container .frame-box.collapsed .bottom-handle::after,#workbench-canvas #workbench-container .frame-box.collapsed .top-right-corner-handle::after,#workbench-canvas #workbench-container .frame-box.collapsed .bottom-right-corner-handle::after{cursor:default}#workbench-canvas #workbench-container .frame-box.collapsed .left-handle::before,#workbench-canvas #workbench-container .frame-box.collapsed .top-handle::before,#workbench-canvas #workbench-container .frame-box.collapsed .top-left-corner-handle::before,#workbench-canvas #workbench-container .frame-box.collapsed .bottom-left-corner-handle::before{cursor:default}#workbench-canvas #workbench-container #workbench-svg-container{grid-row:1;grid-column:1;position:relative;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:2}#workbench-canvas #workbench-container #workbench-svg-container .link{stroke-width:4px}#workbench-canvas #workbench-container #workbench-svg-container .link.selected{stroke:#fff !important;stroke-dasharray:10,2}#workbench-canvas #workbench-container #workbench-svg-container .link.hidden{display:none}#workbench-canvas #workbench-container #workbench-svg-container .selection-link{pointer-events:all;stroke-width:16px;opacity:0;transition:opacity 75ms;stroke:rgba(0,0,0,0);cursor:pointer}#workbench-canvas #workbench-container #workbench-svg-container .selection-link.hidden{display:none}#workbench-canvas #workbench-container #workbench-svg-container .selection-link:hover,#workbench-canvas #workbench-container #workbench-svg-container .selection-link.selected{stroke:#fff !important;opacity:.4}#workbench-canvas #workbench-container #workbench-canvas-container{grid-row:1;grid-column:1;position:relative;width:100%;height:100%}#workbench-canvas #workbench-container #workbench-canvas-container .visual{z-index:4;width:200px;position:absolute;left:0;top:0;background:gray;border:4px solid #000;border-radius:12px;display:grid;grid-template-rows:30px auto;grid-template-columns:100%;color:#fff}#workbench-canvas #workbench-container #workbench-canvas-container .visual.hidden{display:none}#workbench-canvas #workbench-container #workbench-canvas-container .visual .comments{position:absolute;top:-50px;width:200px;height:45px;overflow:hidden;font-style:italic;opacity:.8;display:grid;align-items:flex-end;pointer-events:none}#workbench-canvas #workbench-container #workbench-canvas-container .visual .selection-border{grid-row:1/span 3;grid-column:1;margin:-4px;transition:border-color 100ms;border:4px solid #000;border-radius:12px}#workbench-canvas #workbench-container #workbench-canvas-container .visual.selected .selection-border{border-color:#fff}#workbench-canvas #workbench-container #workbench-canvas-container .visual .header{grid-row:1;grid-column:1;border:4px solid #000;border-top-right-radius:7px;border-top-left-radius:7px;font-size:16px;text-align:center;margin-top:-1px;margin-left:-1px;margin-right:-1px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;background:#000;color:#fff}#workbench-canvas #workbench-container #workbench-canvas-container .visual .header.constant{border-color:#464348;background:#464348}#workbench-canvas #workbench-container #workbench-canvas-container .visual .header.inspector{border-color:#66491b;background:#66491b}',"",{version:3,sources:["webpack://./../../../tools/guiEditor/dist/diagram/workbenchCanvas.scss"],names:[],mappings:"AAAA,kBACI,aAAA,CACA,UAAA,CACA,UAAA,CACA,WAAA,CACA,QAAA,CACA,SAAA,CACA,gCAAA,CACA,cAAA,CACA,gBAAA,CACA,eAAA,CAEA,iI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I,sBAAA,CACA,qBAAA,CAGJ,6EACI,YAAA,CAIR,gFACI,kBAAA,CACA,iBAAA,CACA,SAAA,CACA,uBAAA,CACA,oBAAA,CACA,cAAA,CAEA,uFACI,YAAA,CAGJ,+KAEI,sBAAA,CACA,UAAA,CAKZ,mEACI,UAAA,CACA,aAAA,CACA,iBAAA,CACA,UAAA,CACA,WAAA,CAEA,2EACI,SAAA,CACA,WAAA,CACA,iBAAA,CACA,MAAA,CACA,KAAA,CACA,eAAA,CACA,qBAAA,CACA,kBAAA,CACA,YAAA,CACA,4BAAA,CACA,0BAAA,CACA,UAAA,CAEA,kFACI,YAAA,CAGJ,qFACI,iBAAA,CACA,SAAA,CACA,WAAA,CACA,WAAA,CACA,eAAA,CACA,iBAAA,CACA,UAAA,CACA,YAAA,CACA,oBAAA,CACA,mBAAA,CAGJ,6FACI,iBAAA,CACA,aAAA,CACA,WAAA,CAEA,6BAAA,CAEA,qBAAA,CACA,kBAAA,CAIA,sGACI,iBAAA,CAIR,mFACI,UAAA,CACA,aAAA,CACA,qBAAA,CACA,2BAAA,CACA,0BAAA,CACA,cAAA,CACA,iBAAA,CACA,eAAA,CACA,gBAAA,CACA,iBAAA,CACA,kBAAA,CACA,sBAAA,CACA,eAAA,CACA,eAAA,CACA,UAAA,CAEA,4FACI,oBAAA,CACA,kBAAA,CAGJ,6FACI,oBAAA,CACA,kBAAA",sourceRoot:""}]),r.locals={};const a=r},569:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(234),s=n.n(o),i=n(474),r=n.n(i)()(s());r.push([e.id,':root{--blackBarHeight: 55px}#gui-editor-workbench-root{display:grid;grid-template-rows:calc(100% - 55px);height:100%;width:100%;background:#e2e2e2;font:14px "acumin-pro-condensed"}.wait-screen{display:grid;justify-content:center;align-content:center;height:100%;width:100%;background:#464646;opacity:.95;color:#fff;font:24px "acumin-pro-condensed";position:absolute;top:0;left:0}.wait-screen.hidden{visibility:hidden}#leftGrab{width:5px;height:100%;cursor:ew-resize;position:absolute;right:-1px;top:0}#rightGrab{cursor:ew-resize;width:5px;bottom:0;position:absolute;top:0;left:0}.toolbarGrab{background:#333;grid-row:1/span 3;grid-column:2;height:100%;overflow-y:auto}.toolbarGrab .blackLine{height:16px;background:#000;position:relative}.toolbarGrab .arrow{color:#fff;position:absolute}.toolbarGrab .toolbar-label{color:#fff;font-size:18px;display:grid;align-items:center;cursor:pointer;user-select:none;grid-template-columns:1fr 20px;grid-template-rows:100%;position:relative}.toolbarGrab .toolbar-label.active{font-weight:bold;font-size:20px}.toolbarGrab .toolbar-label:hover{background:var(--selectionGrey)}.toolbarGrab .toolbar-label:hover .sub-items{display:block}.toolbarGrab .toolbar-icon{width:40px;height:40px}.toolbarGrab.expanded .toolbar-content-sub1{column-count:2}.diagram-container{position:relative;display:grid;grid-row:1;grid-column:2;background:#ccc;width:100%;height:100%;overflow:hidden}.diagram-container .diagram{display:none;width:100%;height:100%}.left-panel{grid-row:1/span 2;grid-column:1;display:grid;grid-template-rows:100%;grid-template-columns:1fr 50px;position:relative;overflow:hidden}.left-panel.expand{grid-template-columns:1fr 100px}.right-panel{grid-row:1/span 2;grid-column:3;display:grid;grid-template-rows:1fr 40px auto 40px;grid-template-columns:100%;overflow-y:auto;position:relative}.right-panel #propertyTab{grid-row:1;grid-column:1}.right-panel .button{display:grid;justify-content:center;align-content:center;height:auto;width:14.2857142857%;cursor:pointer}.right-panel .button:hover{background:#337ab7;color:#fff;opacity:.8}.right-panel .button.selected{background:#337ab7;color:#fff}.right-panel .button.align{justify-content:stretch;text-align:center}.blocker{visibility:hidden;position:absolute;width:calc(100% - 40px);height:100%;top:0;left:0;background:rgba(20,20,20,.95);font-family:"acumin-pro-condensed",sans-serif;color:#fff;font-size:24px;display:grid;align-content:center;justify-content:center;user-select:none;padding:20px;text-align:center}#log-console{grid-row:2;grid-column:4;display:none}.gizmo *{user-select:none}.gizmo .bounding-box-line{background-color:#000;position:absolute;line-height:1px;height:1px;pointer-events:none}.gizmo .scale-point-container{position:absolute;width:30px;height:30px}.gizmo .scale-point-container .scale-point{top:10px;left:10px;position:absolute;width:10px;height:10px;background:rgba(0,0,0,0);outline:#7d7d7d 2px solid}.gizmo .scale-point-container .rotate-click-area{width:20px;height:20px;position:absolute}.gizmo .scale-point-container .scale-click-area{width:20px;height:20px;position:absolute}.gizmo .pivot-point{width:30px;height:30px;background:rgba(0,0,0,0);position:absolute}#workbench-canvas{position:relative}.artboard-stroke{outline:1px solid #000;position:absolute;z-index:2;pointer-events:none}.artboard-background{position:absolute;background:repeating-conic-gradient(#e2e2e2 0% 25%, white 0% 50%) 50%/10px 10px;width:100%;height:100%}',"",{version:3,sources:["webpack://./../../../tools/guiEditor/dist/main.scss"],names:[],mappings:"AAAA,MACI,sBAAA,CAGJ,2BACI,YAAA,CACA,oCAAA,CACA,WAAA,CACA,UAAA,CACA,kBAAA,CACA,gCAAA,CAGJ,aACI,YAAA,CACA,sBAAA,CACA,oBAAA,CACA,WAAA,CACA,UAAA,CACA,kBAAA,CACA,WAAA,CACA,UAAA,CACA,gCAAA,CACA,iBAAA,CACA,KAAA,CACA,MAAA,CAEA,oBACI,iBAAA,CAIR,UACI,SAAA,CACA,WAAA,CACA,gBAAA,CACA,iBAAA,CACA,UAAA,CACA,KAAA,CAGJ,WACI,gBAAA,CACA,SAAA,CACA,QAAA,CACA,iBAAA,CACA,KAAA,CACA,MAAA,CAGJ,aACI,eAAA,CACA,iBAAA,CACA,aAAA,CACA,WAAA,CACA,eAAA,CAEA,wBACI,WAAA,CACA,eAAA,CACA,iBAAA,CAEJ,oBACI,UAAA,CACA,iBAAA,CAEJ,4BACI,UAAA,CACA,cAAA,CACA,YAAA,CACA,kBAAA,CACA,cAAA,CACA,gBAAA,CACA,8BAAA,CACA,uBAAA,CACA,iBAAA,CAEA,mCACI,gBAAA,CACA,cAAA,CAGJ,kCACI,+BAAA,CACA,6CACI,aAAA,CAIZ,2BACI,UAAA,CACA,WAAA,CAGA,4CACI,cAAA,CAKZ,mBACI,i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AAA",sourceRoot:""}]),r.locals={};const a=r},463:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(234),s=n.n(o),i=n(474),r=n.n(i)()(s());r.push([e.id,':root{--selectionGrey: #666666}.ge-commands{grid-row:1;grid-column:1;user-select:none}.ge-commands *{font-family:"acumin-pro-condensed";font-weight:600;font-size:12px}.ge-commands .copy{display:none}.ge-commands .commands-left{float:left;display:flex}.ge-commands .commands-right{float:right;display:flex}.ge-commands .commands-right .beta-flag{height:30px;position:relative;left:-15px}.ge-commands.background-ts .command-button img,.ge-commands.background-ts .command-dropdown img{filter:invert(64%) sepia(78%) saturate(940%) hue-rotate(323deg) brightness(105%) contrast(103%)}.ge-commands.background-ts .command-button .command-dropdown-active,.ge-commands.background-ts .command-dropdown .command-dropdown-active{color:#333}.ge-commands.background-ts .command-button:hover img,.ge-commands.background-ts .command-button.activated img,.ge-commands.background-ts .command-dropdown:hover img,.ge-commands.background-ts .command-dropdown.activated img{filter:invert(34%) sepia(21%) saturate(3832%) hue-rotate(324deg) brightness(88%) contrast(82%) !important}.ge-commands.background-js .command-button img,.ge-commands.background-js .command-dropdown img{filter:invert(57%) sepia(80%) saturate(2031%) hue-rotate(215deg)}.ge-commands.background-js .command-button .command-dropdown-active,.ge-commands.background-js .command-dropdown .command-dropdown-active{color:#333}.ge-commands.background-js .command-button:hover img,.ge-commands.background-js .command-button.activated img,.ge-commands.background-js .command-dropdown:hover img,.ge-commands.background-js .command-dropdown.activated img{filter:invert(17%) !important}.ge-commands .command-button{cursor:pointer;width:55px;height:55px}.ge-commands .command-button .command-label{display:none}.ge-commands .command-button .command-button-icon{height:100%;width:100%;display:grid;color:#fff;align-content:center;justify-content:center}.ge-commands .command-button .active{transform-origin:center;background-color:var(--selectionGrey)}.ge-commands .command-button img.active{background-color:var(--selectionGrey)}.ge-commands .command-button:hover{background-color:var(--selectionGrey)}.ge-commands .copyAndDeleteDisabled{pointer-events:none;color:#000}.ge-commands .pasteDisabled{pointer-events:none;color:#000}.ge-commands .command-dropdown-root{position:relative;text-transform:uppercase;z-index:1}.ge-commands .command-dropdown{cursor:pointer;width:55px;height:55px}.ge-commands .command-dropdown .command-dropdown-icon{height:100%;width:100%;display:grid;align-content:center;justify-content:center}.ge-commands .command-dropdown .command-dropdown-active{height:100%;width:100%;display:grid;align-content:center;justify-content:center;font-size:14px}.ge-commands .command-dropdown:hover,.ge-commands .command-dropdown.activated{background-color:#666;color:#000}.ge-commands .command-dropdown:active{transform-origin:center;transform:scale(0.95)}.ge-commands .command-dropdown-blocker{position:absolute;top:0;left:0;width:100%;height:100%;transform:scale(1);z-index:1}.ge-commands.background-js .command-dropdown-content{background:#333}.ge-commands.background-js .command-dropdown-content .command-dropdown-label:hover{background:#333}.ge-commands.background-ts .command-dropdown-content .command-dropdown-label:hover{background:#333}.ge-commands .command-dropdown-content{background:#333;position:absolute;top:55px;width:55px;transform:scale(1)}.ge-commands .command-dropdown-content.toRight{width:120px}.ge-commands .command-dropdown-content .command-dropdown-label{color:#fff;padding:5px;padding-left:7px;height:35px;font-size:18px;display:grid;align-items:center;cursor:pointer;user-select:none;grid-template-columns:1fr 20px;grid-template-rows:100%;position:relative}.ge-commands .command-dropdown-content .command-dropdown-label.active{font-weight:bold;font-size:20px}.ge-commands .command-dropdown-content .command-dropdown-label:hover{background:var(--selectionGrey)}.ge-commands .command-dropdown-content .command-dropdown-label:hover .sub-items{display:block}.ge-commands .command-dropdown-content .command-dropdown-label .command-dropdown-label-text{font-size:12px;grid-column:1;grid-row:1}.ge-commands .command-dropdown-content .command-dropdown-label .command-dropdown-label-check{grid-column:2;grid-row:1}.ge-commands .command-dropdown-content .command-dropdown-label .command-dropdown-arrow{grid-column:2;grid-row:1;font-size:20px;font-weight:bold;padding-bottom:10px;padding-left:4px}.ge-commands .command-dropdown-content .command-dropdown-label .sub-items{position:absolute;left:200px;top:0;width:150px;display:none}.ge-commands .command-dropdown-content .command-dropdown-label .sub-items.background-js{background:#bfabff}.ge-commands .command-dropdown-content .command-dropdown-label .sub-items.background-js .sub-item:hover{background-color:#333;color:#fff}.ge-commands .command-dropdown-content .command-dropdown-label .sub-items.background-ts{background:#333}.ge-commands .command-dropdown-content .command-dropdown-label .sub-items.background-ts .sub-item:hover{background-color:#333;color:#fff}.ge-commands .command-dropdown-content .command-dropdown-label .sub-items .sub-item{color:#fff;padding:5px;padding-left:10px;height:35px;display:grid}.ge-commands .command-dropdown-content .command-dropdown-label .sub-items .sub-item.checked{background:#fff;color:#000}.ge-commands .command-dropdown-content .buttonLine{color:#fff;padding:5px;padding-left:7px;height:35px;font-size:18px;display:grid;align-items:center;cursor:pointer;user-select:none;grid-template-columns:1fr 20px;grid-template-rows:100%;position:relative;font-size:12px;grid-column:1;grid-row:1}.ge-commands .command-dropdown-content .buttonLine input[type=file]{display:none}.ge-commands .command-dropdown-content .buttonLine.active{font-weight:bold;font-size:20px;cursor:pointer}.ge-commands .command-dropdown-content .buttonLine:hover{background:var(--selectionGrey);cursor:pointer}.ge-commands .command-dropdown-content .buttonLine:hover .sub-items{display:block}.ge-commands .command-dropdown-content .buttonLine .file-upload{cursor:pointer}.ge-commands .divider{display:flex;align-items:center;border-right:1px solid #000;color:#fff}.ge-commands .divider:last-of-type{border-right:none}.ge-commands .divider.padded{padding-left:10px;padding-right:10px}.ge-commands .floatLine,.ge-commands .checkBoxLine{display:flex;align-items:center}.ge-commands .floatLine .copy,.ge-commands .checkBoxLine .copy{display:none}.ge-commands .checkBoxLine .icon{filter:brightness(10)}.ge-commands .checkBoxLine .hidden{display:none}.ge-commands .checkBoxLine .checkBox{height:40px}.ge-commands .checkBoxLine .copy{display:none}.ge-commands .color3Line{display:grid}.ge-commands .color3Line .firstLine{display:flex;align-items:center}.ge-commands .color3Line .firstLine .label{padding-right:5px}.ge-commands .color3Line .firstLine .floatLine .value{padding-left:2px}.ge-commands .color3Line .firstLine .copy{display:none}.ge-commands .color3Line .firstLine .expand{display:none}.ge-commands .color3Line .secondLine{display:grid;padding-right:5px;border-left:1px solid #337ab7}.ge-commands .color3Line .secondLine .numeric{display:grid;grid-template-columns:1fr auto}.ge-commands .color3Line .secondLine .numeric-label{text-align:right;grid-column:1;display:flex;align-items:center;justify-self:right;margin-right:10px}.ge-commands .color3Line .secondLine .numeric-value{width:120px;grid-column:2;display:flex;align-items:center;border:1px solid #337ab7}.ge-commands .color-picker{height:26px;width:26px}.ge-commands .color-picker .color-rect-background{width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid #fff;cursor:pointer;background:repeating-conic-gradient(#e2e2e2 0% 25%, white 0% 50%) 50%/100% 100%}.ge-commands .color-picker .color-rect-background .color-rect{height:100%}.ge-commands .color-picker .color-picker-cover{position:fixed;top:0px;right:0px;bottom:0px;left:0px;z-index:2}.ge-commands .color-picker .color-picker-float{position:absolute;outline:1px solid #000}.ge-commands .color-picker .color-picker-container{background-color:#e2e2e2}.ge-commands .color-picker input:focus{outline-color:#000}.ge-commands .floatLine input,.ge-commands .listLine select{background-color:#000;color:#fff;padding:5px;border:none}.ge-commands input,.ge-commands .listLine select{outline-color:rgba(0,0,0,0);outline-width:1px;outline-offset:-1px;outline-style:solid;transition:.2s outline;border:none}.ge-commands .floatLine .value{position:relative;margin:5px}.ge-commands .floatLine input:focus{outline-color:#fff}.ge-commands .listLine select{width:150px}.ge-commands .hasArrows .arrows{display:none;position:absolute;right:0;top:0;flex-direction:column;cursor:grab;filter:brightness(10)}.ge-commands .hasArrows .arrows .downArrowIcon,.ge-commands .hasArrows .arrows .upArrowIcon{width:13px;height:13px}.ge-commands .hasArrows:hover .arrows,.ge-commands .hasArrows:focus .arrows,.ge-commands .hasArrows.dragging .arrows{display:flex}.ge-commands .hasArrows .arrows:hover{background-color:var(--buttonHoverBackground);filter:none}.ge-commands .hasArrows.dragging .arrows{background-color:var(--buttonPressedBackground)}.ge-commands .hasArrows.dragging .arrows .downArrowIcon,.ge-commands .hasArrows.dragging .arrows .upArrowIcon{filter:none}.ge-commands .hasArrows input::-webkit-outer-spin-button,.ge-commands .hasArrows input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.ge-commands .hasArrows input[type=number]{-moz-appearance:textfield}',"",{version:3,sources:["webpack://./../../../tools/guiEditor/dist/scss/commandBar.scss"],names:[],mappings:"AAAA,MACI,wBAAA,CAGJ,aACI,UAAA,CACA,aAAA,CACA,gBAAA,CACA,eACI,kCAAA,CACA,eAAA,CACA,cAAA,CAGJ,mBACI,YAAA,CAGJ,4BACI,UAAA,CACA,YAAA,CAGJ,6BACI,WAAA,CACA,YAAA,CACA,wCACI,WAAA,CACA,iBAAA,CACA,UAAA,CAOA,gGACI,+FAAA,CAGJ,0IACI,UAAA,CAKA,gOACI,yGAAA,CASR,gGACI,gEAAA,CAGJ,0IACI,UAAA,CAKA,gOACI,6BAAA,CAMhB,6BACI,cAAA,CACA,UAAA,CACA,WAAA,CAEA,4CACI,YAAA,CAGJ,kDACI,WAAA,CACA,UAAA,CACA,YAAA,CACA,UAAA,CACA,oBAAA,CACA,sBAAA,CAGJ,qCACI,uBAAA,CACA,qCAAA,CAIA,wCACI,qCAAA,CAIZ,mCACI,qCAAA,CAEJ,oCACI,mBAAA,CACA,UAAA,CAEJ,4BACI,mBAAA,CACA,UAAA,CAEJ,oCACI,iBAAA,CACA,wBAAA,CACA,SAAA,CAGJ,+BACI,cAAA,CACA,UAAA,CACA,WAAA,CAEA,sDACI,WAAA,CACA,UAAA,CACA,YAAA,CACA,oBAAA,CACA,sBAAA,CAGJ,wDACI,WAAA,CACA,UAAA,CACA,YAAA,CACA,oBAAA,CACA,sBAAA,CACA,cAAA,CAGJ,8EAEI,qBAAA,CACA,UAAA,CAGJ,sCACI,uBAAA,CACA,qBAAA,CAIR,uCACI,iBAAA,CACA,KAAA,CACA,MAAA,CACA,UAAA,CACA,WAAA,CACA,kBAAA,CACA,SAAA,CAIA,qDACI,eAAA,CAEI,mFACI,eAAA,CASJ,mFACI,eAAA,CAMhB,uCACI,eAAA,CACA,iBAAA,CACA,QAAA,CACA,UAAA,CACA,kB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,iBAAA,CAIA,sDACI,gBAAA,CAIR,0CACI,YAAA,CAGJ,4CACI,YAAA,CAIR,qCACI,YAAA,CACA,iBAAA,CACA,6BAAA,CAEA,8CACI,YAAA,CACA,8BAAA,CAGJ,oDACI,gBAAA,CACA,aAAA,CACA,YAAA,CACA,kBAAA,CACA,kBAAA,CACA,iBAAA,CAGJ,oDACI,WAAA,CACA,aAAA,CACA,YAAA,CACA,kBAAA,CACA,wBAAA,CAKZ,2BACI,WAAA,CACA,UAAA,CAEA,kDACI,sBAAA,CACA,uBAAA,CACA,qBAAA,CACA,cAAA,CACA,+EAAA,CACA,8DACI,WAAA,CAIR,+CACI,cAAA,CACA,OAAA,CACA,SAAA,CACA,UAAA,CACA,QAAA,CACA,SAAA,CAGJ,+CACI,iBAAA,CACA,sBAAA,CAGJ,mDACI,wBAAA,CAGJ,uCACI,kBAAA,CAIR,4DAEI,qBAAA,CACA,UAAA,CACA,WAAA,CACA,WAAA,CAGJ,iDAEI,2BAAA,CACA,iBAAA,CACA,mBAAA,CACA,mBAAA,CACA,sBAAA,CACA,WAAA,CAGJ,+BACI,iBAAA,CACA,UAAA,CAGJ,oCACI,kBAAA,CAGJ,8BACI,WAAA,CAIA,gCACI,YAAA,CACA,iBAAA,CACA,OAAA,CACA,KAAA,CACA,qBAAA,CACA,WAAA,CACA,qBAAA,CACA,4FAEI,UAAA,CACA,WAAA,CAGR,qHAGI,YAAA,CAEJ,sCACI,6CAAA,CACA,WAAA,CAEJ,yCACI,+CAAA,CACA,8GAEI,WAAA,CAIZ,kHAEI,uBAAA,CACA,QAAA,CAGJ,2CACI,yBAAA",sourceRoot:""}]),r.locals={};const a=r},664:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(234),s=n.n(o),i=n(474),r=n.n(i)()(s());r.push([e.id,"#ge-header{width:100%;grid-column:2/4;grid-row:1;padding:0;margin:0;display:grid;grid-template-columns:auto 1fr;grid-template-rows:100%;background:#333}#ge-header .command-bar{padding-left:15px;grid-row:1;grid-column:2;width:100%}#ge-header .command-bar .language-button{grid-row:1;grid-column:2;color:#fff;width:144px;font-size:18px;text-align:center;display:grid;align-content:center;border-top-left-radius:14px;transform:scale(1);user-select:none}#ge-header .command-bar .language-button.active{width:74px;cursor:pointer;grid-column:1;margin-right:-5px;transform:translateX(10px)}","",{version:3,sources:["webpack://./../../../tools/guiEditor/dist/scss/header.scss"],names:[],mappings:"AAAA,WACI,UAAA,CACA,eAAA,CACA,UAAA,CACA,SAAA,CACA,QAAA,CACA,YAAA,CACA,8BAAA,CACA,uBAAA,CACA,eAAA,CAEA,wBACI,iBAAA,CACA,UAAA,CACA,aAAA,CACA,UAAA,CAEA,yCACI,UAAA,CACA,aAAA,CACA,UAAA,CACA,WAAA,CACA,cAAA,CACA,iBAAA,CACA,YAAA,CACA,oBAAA,CACA,2BAAA,CACA,kBAAA,CACA,gBAAA,CAEA,gDACI,UAAA,CACA,cAAA,CACA,aAAA,CACA,iBAAA,CACA,0BAAA",sourceRoot:""}]),r.locals={};const a=r},767:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var o=n(234),s=n.n(o),i=n(474),r=n.n(i),a=n(976),l=r()(s());l.i(a.A,"",!0),l.push([e.id,".b95R0O6ILc85rYlO1WPd{width:55px;height:55px;border:none;display:inline-flex;align-items:center;justify-content:center;padding:0 0}.b95R0O6ILc85rYlO1WPd.kgkXfJMN1pBn5GDwKAiQ{width:120px;height:45px;justify-content:start}.b95R0O6ILc85rYlO1WPd.auFPe0ZDyYDP90hWHa6t{width:30px;height:30px}.b95R0O6ILc85rYlO1WPd.MKxtRa83RlF4LPUy2B33{width:25px;height:25px}.b95R0O6ILc85rYlO1WPd.K4N1g645ZLynf7rUfSyB{background-color:#E2E2E2;color:#333333}.b95R0O6ILc85rYlO1WPd.K4N1g645ZLynf7rUfSyB:hover,.b95R0O6ILc85rYlO1WPd.K4N1g645ZLynf7rUfSyB.lD5Ki9XODid4PAR8thSw{background-color:#FFFFFF}.b95R0O6ILc85rYlO1WPd.K4N1g645ZLynf7rUfSyB:disabled{background-color:#FFFFFF}.b95R0O6ILc85rYlO1WPd.y9P5FsHRKkfc_RVnfyko{background-color:#333333;color:#FFFFFF}.b95R0O6ILc85rYlO1WPd.y9P5FsHRKkfc_RVnfyko:hover,.b95R0O6ILc85rYlO1WPd.y9P5FsHRKkfc_RVnfyko.lD5Ki9XODid4PAR8thSw{background-color:#666666}","",{version:3,sources:["webpack://./../../../dev/sharedUiComponents/dist/components/Button.modules.scss"],names:[],mappings:"AACA,sBAEI,UAAA,CACA,WAAA,CACA,WAAA,CACA,mBAAA,CACA,kBAAA,CACA,sBAAA,CACA,WAAA,CACA,2CACI,WAAA,CACA,WAAA,CACA,qBAAA,CAEJ,2CACI,UAAA,CACA,WAAA,CAEJ,2CACI,UAAA,CACA,WAAA,CAEJ,2CACI,wBAAA,CACA,aAAA,CACA,iHAEI,wBAAA,CAEJ,oDACI,wBAAA,CAGR,2CACI,wBAAA,CACA,aAAA,CACA,iHAEI,wBAAA",sourceRoot:""}]),l.locals={"light-background":"#E2E2E2","light-active-background":"#FFFFFF","light-disabled-background":"#C8C8C8","light-color":"#FFFFFF","dark-background":"#333333","dark-active-background":"#666666","dark-color":"#333333",button:`b95R0O6ILc85rYlO1WPd ${a.A.locals.fontRegular}`,wide:"kgkXfJMN1pBn5GDwKAiQ",small:"auFPe0ZDyYDP90hWHa6t",smaller:"MKxtRa83RlF4LPUy2B33",light:"K4N1g645ZLynf7rUfSyB",active:"lD5Ki9XODid4PAR8thSw",dark:"y9P5FsHRKkfc_RVnfyko"};const c=l},734:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(234),s=n.n(o),i=n(474),r=n.n(i)()(s());r.push([e.id,".np3yGjrPQUltnJjOZks4{filter:brightness(10)}","",{version:3,sources:["webpack://./../../../dev/sharedUiComponents/dist/components/Icon.modules.scss"],names:[],mappings:"AAAA,sBACI,qBAAA",sourceRoot:""}]),r.locals={light:"np3yGjrPQUltnJjOZks4"};const a=r},124:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(234),s=n.n(o),i=n(474),r=n.n(i)()(s());r.push([e.id,'.stbiu24JbUBfHNSSYhSR{position:absolute;width:100%;height:100%;background:rgba(.1,.1,.1,.6);display:grid;font-family:"acumin-pro";top:0}.stbiu24JbUBfHNSSYhSR .fCGAiNfXRhhXF8hQPpct{align-self:center;justify-self:center;min-height:140px;max-width:400px;border-radius:10px;background:#fff;padding:10px;display:grid;grid-template-columns:100%;grid-template-rows:1fr 50px}.stbiu24JbUBfHNSSYhSR .fCGAiNfXRhhXF8hQPpct .yRrm4hWjzyu4RnCc412h{grid-row:1;grid-column:1;margin-top:20px;padding:10px;font-size:18px;color:#000}.stbiu24JbUBfHNSSYhSR .fCGAiNfXRhhXF8hQPpct .c5hG_qW6gImPmY2mRXUf{grid-row:2;grid-column:1;display:grid;grid-template-rows:100%;grid-template-columns:100%;color:#fff}.stbiu24JbUBfHNSSYhSR .fCGAiNfXRhhXF8hQPpct .c5hG_qW6gImPmY2mRXUf .TaDL8j02NlDZlEf6mraY{cursor:pointer;justify-self:center;background:green;min-width:80px;justify-content:center;display:grid;align-content:center;align-self:center;height:35px;border-radius:10px}.stbiu24JbUBfHNSSYhSR .fCGAiNfXRhhXF8hQPpct .c5hG_qW6gImPmY2mRXUf .TaDL8j02NlDZlEf6mraY:hover{opacity:.8}.stbiu24JbUBfHNSSYhSR .fCGAiNfXRhhXF8hQPpct .c5hG_qW6gImPmY2mRXUf .TaDL8j02NlDZlEf6mraY.gWN6zWjwiaTlrWBw3gRR{background:red}',"",{version:3,sources:["webpack://./../../../dev/sharedUiComponents/dist/components/MessageDialog.modules.scss"],names:[],mappings:"AAAA,sBACI,iBAAA,CACA,UAAA,CACA,WAAA,CACA,4BAAA,CACA,YAAA,CACA,wBAAA,CACA,KAAA,CAEA,4CACI,iBAAA,CACA,mBAAA,CACA,gBAAA,CACA,eAAA,CACA,kBAAA,CACA,eAAA,CACA,YAAA,CAEA,YAAA,CACA,0BAAA,CACA,2BAAA,CAEA,kEACI,UAAA,CACA,aAAA,CACA,eAAA,CACA,YAAA,CACA,cAAA,CACA,UAAA,CAGJ,kEACI,UAAA,CACA,aAAA,CACA,YAAA,CACA,uBAAA,CACA,0BAAA,CACA,UAAA,CAEA,wFACI,cAAA,CACA,mBAAA,CACA,gBAAA,CACA,cAAA,CACA,sBAAA,CACA,YAAA,CACA,oBAAA,CACA,iBAAA,CACA,WAAA,CACA,kBAAA,CAEA,8FACI,UAAA,CAGJ,6GACI,cAAA",sourceRoot:""}]),r.locals={"dialog-container":"stbiu24JbUBfHNSSYhSR",dialog:"fCGAiNfXRhhXF8hQPpct","dialog-message":"yRrm4hWjzyu4RnCc412h","dialog-buttons":"c5hG_qW6gImPmY2mRXUf","dialog-button-ok":"TaDL8j02NlDZlEf6mraY",error:"gWN6zWjwiaTlrWBw3gRR"};const a=r},182:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(234),s=n.n(o),i=n(474),r=n.n(i)()(s());r.push([e.id,".cAdE59gB2fAtRPTNL4rr{width:100%;height:100%;display:flex;justify-content:space-between;align-items:center}.Q5g62nnQiAkjss2bvjv_{border:unset;background-color:inherit;flex-grow:1;width:100px}.K3K9PQvh6pJwXhAYXmq4{background-color:#fff}.G9HbTQuNLy6q2zLRNUcJ{background-color:hsla(0,100%,90%,.8)}","",{version:3,sources:["webpack://./../../../dev/sharedUiComponents/dist/components/TextInputWithSubmit.modules.scss"],names:[],mappings:"AAAA,sBACI,UAAA,CACA,WAAA,CACA,YAAA,CACA,6BAAA,CACA,kBAAA,CAGJ,sBACI,YAAA,CACA,wBAAA,CACA,WAAA,CACA,WAAA,CAGJ,sBACI,qBAAA,CAGJ,sBACI,oCAAA",sourceRoot:""}]),r.locals={line:"cAdE59gB2fAtRPTNL4rr",input:"Q5g62nnQiAkjss2bvjv_",valid:"K3K9PQvh6pJwXhAYXmq4",invalid:"G9HbTQuNLy6q2zLRNUcJ"};const a=r},348:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(234),s=n.n(o),i=n(474),r=n.n(i)()(s());r.push([e.id,'.bOUut2FWKU2aN_ahzdAI{font-family:"acumin-pro-condensed",sans-serif;font-size:12px;height:25px;padding-left:15px}.ZN_DCHJ9pa7dUkP3Eml9{width:100%;height:100%;border:unset}',"",{version:3,sources:["webpack://./../../../dev/sharedUiComponents/dist/components/lines/OptionsLineComponent.modules.scss"],names:[],mappings:"AAAA,sBACI,6CAAA,CACA,cAAA,CACA,WAAA,CACA,iBAAA,CAGJ,sBACI,UAAA,CACA,WAAA,CACA,YAAA",sourceRoot:""}]),r.locals={optionsLine:"bOUut2FWKU2aN_ahzdAI",optionsSelect:"ZN_DCHJ9pa7dUkP3Eml9"};const a=r},976:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(234),s=n.n(o),i=n(474),r=n.n(i)()(s());r.push([e.id,'.BvwFwd6uzMRFN0JwO92p {\n font-family: "acumin-pro-condensed";\n font-size: 14px;\n}\n',"",{version:3,sources:["webpack://./../../../dev/sharedUiComponents/dist/components/Fonts.scss"],names:[],mappings:"AAAA;IACI,mCAAmC;IACnC,eAAe;AACnB",sourcesContent:[':local(.fontRegular) {\r\n font-family: "acumin-pro-condensed";\r\n font-size: 14px;\r\n}\r\n'],sourceRoot:""}]),r.locals={fontRegular:"BvwFwd6uzMRFN0JwO92p"};const a=r},474:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,o,s,i){"string"==typeof e&&(e=[[null,e,void 0]]);var r={};if(o)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(r[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);o&&r[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),s&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=s):u[4]="".concat(s)),t.push(u))}},t}},234:e=>{"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var o=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),i="/*# ".concat(s," */");return[t].concat([i]).join("\n")}return[t].join("\n")}},772:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,s){for(var i,r,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))n.call(i,c)&&(a[c]=i[c]);if(t){r=t(i);for(var u=0;u<r.length;u++)o.call(i,r[u])&&(a[r[u]]=i[r[u]])}}return a}},878:(e,t,n)=>{"use strict";var o=n(565);function s(){}function i(){}i.resetWarningCache=s,e.exports=function(){function e(e,t,n,s,i,r){if(r!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:s};return n.PropTypes=n,n}},764:(e,t,n)=>{e.exports=n(878)()},565:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},315:(e,t,n)=>{"use strict";function o(e){return o="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},o(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var s={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var a=i?Object.getOwnPropertyDescriptor(e,r):null;a&&(a.get||a.set)?Object.defineProperty(s,r,a):s[r]=e[r]}return s.default=e,n&&n.set(e,s),s}(n(460)),i=a(n(764)),r=a(n(122));function a(e){return e&&e.__esModule?e:{default:e}}function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A(e){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},A(e)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(l,e);var t,n,i,a=(n=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=A(n);if(i){var s=A(this).constructor;e=Reflect.construct(t,arguments,s)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return u(e)}(this,e)});function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),d(u(t=a.call(this,e)),"handleKeyNavigation",(function(e){if(!1!==t.state.isVisible)switch(e.keyCode){case 37:case 27:e.preventDefault(),t.hideMenu(e);break;case 38:e.preventDefault(),t.selectChildren(!0);break;case 40:e.preventDefault(),t.selectChildren(!1);break;case 39:t.tryToOpenSubMenu(e);break;case 13:e.preventDefault(),t.tryToOpenSubMenu(e);var n=t.seletedItemRef&&t.seletedItemRef.props&&t.seletedItemRef.props.disabled;t.seletedItemRef&&t.seletedItemRef.ref instanceof HTMLElement&&!n?t.seletedItemRef.ref.click():t.hideMenu(e)}})),d(u(t),"handleForceClose",(function(){t.setState({forceSubMenuOpen:!1})})),d(u(t),"tryToOpenSubMenu",(function(e){t.state.selectedItem&&t.state.selectedItem.type===t.getSubMenuType()&&(e.preventDefault(),t.setState({forceSubMenuOpen:!0}))})),d(u(t),"selectChildren",(function(e){var n=t.state.selectedItem,o=[],i=0,a={};if(s.default.Children.forEach(t.props.children,(function e(n,l){n&&([r.default,t.getSubMenuType()].indexOf(n.type)<0?s.default.Children.forEach(n.props.children,e):n.props.divider||(n.props.disabled&&(++i,a[l]=!0),o.push(n)))})),i!==o.length){var l=function(t){var n=t;do{e?--n:++n,n<0?n=o.length-1:n>=o.length&&(n=0)}while(n!==t&&a[n]);return n===t?null:n}(o.indexOf(n));null!==l&&t.setState({selectedItem:o[l],forceSubMenuOpen:!1})}})),d(u(t),"onChildMouseMove",(function(e){t.state.selectedItem!==e&&t.setState({selectedItem:e,forceSubMenuOpen:!1})})),d(u(t),"onChildMouseLeave",(function(){t.setState({selectedItem:null,forceSubMenuOpen:!1})})),d(u(t),"renderChildren",(function(e){return s.default.Children.map(e,(function(e){var n={};return s.default.isValidElement(e)?[r.default,t.getSubMenuType()].indexOf(e.type)<0?(n.children=t.renderChildren(e.props.children),s.default.cloneElement(e,n)):(n.onMouseLeave=t.onChildMouseLeave.bind(u(t)),e.type===t.getSubMenuType()&&(n.forceOpen=t.state.forceSubMenuOpen&&t.state.selectedItem===e,n.forceClose=t.handleForceClose,n.parentKeyNavigationHandler=t.handleKeyNavigation),e.props.divider||t.state.selectedItem!==e?(n.onMouseMove=function(){return t.onChildMouseMove(e)},s.default.cloneElement(e,n)):(n.selected=!0,n.ref=function(e){t.seletedItemRef=e},s.default.cloneElement(e,n))):e}))})),t.seletedItemRef=null,t.state={selectedItem:null,forceSubMenuOpen:!1},t}return t=l,Object.defineProperty(t,"prototype",{writable:!1}),t}(s.Component);t.default=p,d(p,"propTypes",{children:i.default.node.isRequired})},824:(e,t,n)=>{"use strict";function o(e){return o="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},o(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=p(n(460)),i=p(n(764)),r=p(n(368)),a=p(n(772)),l=p(n(225)),c=p(n(315)),u=p(n(349)),A=n(451),d=n(645);function p(e){return e&&e.__esModule?e:{default:e}}function M(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function L(e,t){return L=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},L(e,t)}function C(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&L(e,t)}(w,e);var t,n,i,c,p=(i=w,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(i);if(c){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return C(e)}(this,e)});function w(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,w),g(C(t=p.call(this,e)),"registerHandlers",(function(){document.addEventListener("mousedown",t.handleOutsideClick),document.addEventListener("touchstart",t.handleOutsideClick),t.props.preventHideOnScroll||document.addEventListener("scroll",t.handleHide),t.props.preventHideOnContextMenu||document.addEventListener("contextmenu",t.handleHide),document.addEventListener("keydown",t.handleKeyNavigation),t.props.preventHideOnResize||window.addEventListener("resize",t.handleHide)})),g(C(t),"unregisterHandlers",(function(){document.removeEventListener("mousedown",t.handleOutsideClick),document.removeEventListener("touchstart",t.handleOutsideClick),document.removeEventListener("scroll",t.handleHide),document.removeEventListener("contextmenu",t.handleHide),document.removeEventListener("keydown",t.handleKeyNavigation),window.removeEventListener("resize",t.handleHide)})),g(C(t),"handleShow",(function(e){if(e.detail.id===t.props.id&&!t.state.isVisible){var n=e.detail.position,o=n.x,s=n.y;t.setState({isVisible:!0,x:o,y:s}),t.registerHandlers(),(0,d.callIfExists)(t.props.onShow,e)}})),g(C(t),"handleHide",(function(e){!t.state.isVisible||e.detail&&e.detail.id&&e.detail.id!==t.props.id||(t.unregisterHandlers(),t.setState({isVisible:!1,selectedItem:null,forceSubMenuOpen:!1}),(0,d.callIfExists)(t.props.onHide,e))})),g(C(t),"handleOutsideClick",(function(e){t.menu.contains(e.target)||(0,A.hideMenu)()})),g(C(t),"handleMouseLeave",(function(e){e.preventDefault(),(0,d.callIfExists)(t.props.onMouseLeave,e,(0,a.default)({},t.props.data,d.store.data),d.store.target),t.props.hideOnLeave&&(0,A.hideMenu)()})),g(C(t),"handleContextMenu",(function(e){e.preventDefault(),t.handleHide(e)})),g(C(t),"hideMenu",(function(e){27!==e.keyCode&&13!==e.keyCode||(0,A.hideMenu)()})),g(C(t),"getMenuPosition",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o={top:n,left:e};if(!t.menu)return o;var s=window,i=s.innerWidth,r=s.innerHeight,a=t.menu.getBoundingClientRect();return n+a.height>r&&(o.top-=a.height),e+a.width>i&&(o.left-=a.width),o.top<0&&(o.top=a.height<r?(r-a.height)/2:0),o.left<0&&(o.left=a.width<i?(i-a.width)/2:0),o})),g(C(t),"getRTLMenuPosition",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o={top:n,left:e};if(!t.menu)return o;var s=window,i=s.innerWidth,r=s.innerHeight,a=t.menu.getBoundingClientRect();return o.left=e-a.width,n+a.height>r&&(o.top-=a.height),o.left<0&&(o.left+=a.width),o.top<0&&(o.top=a.height<r?(r-a.height)/2:0),o.left+a.width>i&&(o.left=a.width<i?(i-a.width)/2:0),o})),g(C(t),"menuRef",(function(e){t.menu=e})),t.state=(0,a.default)({},t.state,{x:0,y:0,isVisible:!1}),t}return t=w,(n=[{key:"getSubMenuType",value:function(){return u.default}},{key:"componentDidMount",value:function(){this.listenId=l.default.register(this.handleShow,this.handleHide)}},{key:"componentDidUpdate",value:function(){var e=this,t=window.requestAnimationFrame||setTimeout;this.state.isVisible?t((function(){var n=e.state,o=n.x,s=n.y,i=e.props.rtl?e.getRTLMenuPosition(o,s):e.getMenuPosition(o,s),r=i.top,a=i.left;t((function(){e.menu&&(e.menu.style.top="".concat(r,"px"),e.menu.style.left="".concat(a,"px"),e.menu.style.opacity=1,e.menu.style.pointerEvents="auto")}))})):t((function(){e.menu&&(e.menu.style.opacity=0,e.menu.style.pointerEvents="none")}))}},{key:"componentWillUnmount",value:function(){this.listenId&&l.default.unregister(this.listenId),this.unregisterHandlers()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,o=e.style,i=this.state.isVisible,l=(0,a.default)({},o,{position:"fixed",opacity:0,pointerEvents:"none"}),c=(0,r.default)(d.cssClasses.menu,n,g({},d.cssClasses.menuVisible,i));return s.default.createElement("nav",{role:"menu",tabIndex:"-1",ref:this.menuRef,style:l,className:c,onContextMenu:this.handleContextMenu,onMouseLeave:this.handleMouseLeave},this.renderChildren(t))}}])&&M(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),w}(c.default);t.default=w,g(w,"propTypes",{id:i.default.string.isRequired,children:i.default.node.isRequired,data:i.default.object,className:i.default.string,hideOnLeave:i.default.bool,rtl:i.default.bool,onHide:i.default.func,onMouseLeave:i.default.func,onShow:i.default.func,preventHideOnContextMenu:i.default.bool,preventHideOnResize:i.default.bool,preventHideOnScroll:i.default.bool,style:i.default.object}),g(w,"defaultProps",{className:"",data:{},hideOnLeave:!1,rtl:!1,onHide:function(){return null},onMouseLeave:function(){return null},onShow:function(){return null},preventHideOnContextMenu:!1,preventHideOnResize:!1,preventHideOnScroll:!1,style:{}})},774:(e,t,n)=>{"use strict";function o(e){return o="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},o(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=A(t);if(n&&n.has(e))return n.get(e);var s={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var a=i?Object.getOwnPropertyDescriptor(e,r):null;a&&(a.get||a.set)?Object.defineProperty(s,r,a):s[r]=e[r]}return s.default=e,n&&n.set(e,s),s}(n(460)),i=u(n(764)),r=u(n(368)),a=u(n(772)),l=n(451),c=n(645);function u(e){return e&&e.__esModule?e:{default:e}}function A(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(A=function(e){return e?n:t})(e)}function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function M(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L(e){return L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},L(e)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(h,e);var t,n,i,u,A=(i=h,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=L(i);if(u){var n=L(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return M(e)}(this,e)});function h(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return C(M(e=A.call.apply(A,[this].concat(n))),"touchHandled",!1),C(M(e),"handleMouseDown",(function(t){e.props.holdToDisplay>=0&&0===t.button&&(t.persist(),t.stopPropagation(),e.mouseDownTimeoutId=setTimeout((function(){return e.handleContextClick(t)}),e.props.holdToDisplay)),(0,c.callIfExists)(e.props.attributes.onMouseDown,t)})),C(M(e),"handleMouseUp",(function(t){0===t.button&&clearTimeout(e.mouseDownTimeoutId),(0,c.callIfExists)(e.props.attributes.onMouseUp,t)})),C(M(e),"handleMouseOut",(function(t){0===t.button&&clearTimeout(e.mouseDownTimeoutId),(0,c.callIfExists)(e.props.attributes.onMouseOut,t)})),C(M(e),"handleTouchstart",(function(t){e.touchHandled=!1,e.props.holdToDisplay>=0&&(t.persist(),t.stopPropagation(),e.touchstartTimeoutId=setTimeout((function(){e.handleContextClick(t),e.touchHandled=!0}),e.props.holdToDisplay)),(0,c.callIfExists)(e.props.attributes.onTouchStart,t)})),C(M(e),"handleTouchEnd",(function(t){e.touchHandled&&t.preventDefault(),clearTimeout(e.touchstartTimeoutId),(0,c.callIfExists)(e.props.attributes.onTouchEnd,t)})),C(M(e),"handleContextMenu",(function(t){t.button===e.props.mouseButton&&e.handleContextClick(t),(0,c.callIfExists)(e.props.attributes.onContextMenu,t)})),C(M(e),"handleMouseClick",(function(t){t.button===e.props.mouseButton&&e.handleContextClick(t),(0,c.callIfExists)(e.props.attributes.onClick,t)})),C(M(e),"handleContextClick",(function(t){if(!(e.props.disable||e.props.disableIfShiftIsPressed&&t.shiftKey)){t.preventDefault(),t.stopPropagation();var n=t.clientX||t.touches&&t.touches[0].pageX,o=t.clientY||t.touches&&t.touches[0].pageY;e.props.posX&&(n-=e.props.posX),e.props.posY&&(o-=e.props.posY),(0,l.hideMenu)();var s=(0,c.callIfExists)(e.props.collect,e.props),i={position:{x:n,y:o},target:e.elem,id:e.props.id};s&&"function"==typeof s.then?s.then((function(e){i.data=(0,a.default)({},e,{target:t.target}),(0,l.showMenu)(i)})):(i.data=(0,a.default)({},s,{target:t.target}),(0,l.showMenu)(i))}})),C(M(e),"elemRef",(function(t){e.elem=t})),e}return t=h,(n=[{key:"render",value:function(){var e=this.props,t=e.renderTag,n=e.attributes,o=e.children,i=(0,a.default)({},n,{className:(0,r.default)(c.cssClasses.menuWrapper,n.className),onContextMenu:this.handleContextMenu,onClick:this.handleMouseClick,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onTouchStart:this.handleTouchstart,onTouchEnd:this.handleTouchEnd,onMouseOut:this.handleMouseOut,ref:this.elemRef});return s.default.createElement(t,i,o)}}])&&d(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),h}(s.Component);t.default=h,C(h,"propTypes",{id:i.default.string.isRequired,children:i.default.node.isRequired,attributes:i.default.object,collect:i.default.func,disable:i.default.bool,holdToDisplay:i.default.number,posX:i.default.number,posY:i.default.number,renderTag:i.default.elementType,mouseButton:i.default.number,disableIfShiftIsPressed:i.default.bool}),C(h,"defaultProps",{attributes:{},collect:function(){return null},disable:!1,holdToDisplay:1e3,renderTag:"div",posX:0,posY:0,mouseButton:2,disableIfShiftIsPressed:!1})},122:(e,t,n)=>{"use strict";function o(e){return o="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},o(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=A(t);if(n&&n.has(e))return n.get(e);var s={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var a=i?Object.getOwnPropertyDescriptor(e,r):null;a&&(a.get||a.set)?Object.defineProperty(s,r,a):s[r]=e[r]}return s.default=e,n&&n.set(e,s),s}(n(460)),i=u(n(764)),r=u(n(368)),a=u(n(772)),l=n(451),c=n(645);function u(e){return e&&e.__esModule?e:{default:e}}function A(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(A=function(e){return e?n:t})(e)}function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},d.apply(this,arguments)}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function M(e,t){return M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},M(e,t)}function L(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&M(e,t)}(g,e);var t,n,i,u,A=(i=g,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=C(i);if(u){var n=C(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return L(e)}(this,e)});function g(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return h(L(e=A.call.apply(A,[this].concat(n))),"handleClick",(function(t){0!==t.button&&1!==t.button&&t.preventDefault(),e.props.disabled||e.props.divider||((0,c.callIfExists)(e.props.onClick,t,(0,a.default)({},e.props.data,c.store.data),c.store.target),e.props.preventClose||(0,l.hideMenu)())})),e}return t=g,(n=[{key:"render",value:function(){var e,t=this,n=this.props,o=n.attributes,i=n.children,a=n.className,l=n.disabled,u=n.divider,A=n.selected,p=(0,r.default)(a,c.cssClasses.menuItem,o.className,(h(e={},(0,r.default)(c.cssClasses.menuItemDisabled,o.disabledClassName),l),h(e,(0,r.default)(c.cssClasses.menuItemDivider,o.dividerClassName),u),h(e,(0,r.default)(c.cssClasses.menuItemSelected,o.selectedClassName),A),e));return s.default.createElement("div",d({},o,{className:p,role:"menuitem",tabIndex:"-1","aria-disabled":l?"true":"false","aria-orientation":u?"horizontal":null,ref:function(e){t.ref=e},onMouseMove:this.props.onMouseMove,onMouseLeave:this.props.onMouseLeave,onTouchEnd:this.handleClick,onClick:this.handleClick}),u?null:i)}}])&&p(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),g}(s.Component);t.default=g,h(g,"propTypes",{attributes:i.default.object,children:i.default.node,className:i.default.string,data:i.default.object,disabled:i.default.bool,divider:i.default.bool,onClick:i.default.func,onMouseLeave:i.default.func,onMouseMove:i.default.func,preventClose:i.default.bool,selected:i.default.bool}),h(g,"defaultProps",{attributes:{},children:null,className:"",data:{},disabled:!1,divider:!1,onClick:function(){return null},onMouseMove:function(){return null},onMouseLeave:function(){return null},preventClose:!1,selected:!1})},349:(e,t,n)=>{"use strict";function o(e){return o="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},o(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=d(n(460)),i=d(n(764)),r=d(n(368)),a=d(n(772)),l=n(451),c=d(n(315)),u=n(645),A=d(n(225));function d(e){return e&&e.__esModule?e:{default:e}}function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},p.apply(this,arguments)}function M(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function L(e,t){return L=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},L(e,t)}function C(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&L(e,t)}(w,e);var t,n,i,c,d=(i=w,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(i);if(c){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return C(e)}(this,e)});function w(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,w),g(C(t=d.call(this,e)),"getMenuPosition",(function(){var e=window,n=e.innerWidth,o=e.innerHeight,s=t.subMenu.getBoundingClientRect(),i={};return s.bottom>o?i.bottom=0:i.top=0,s.right<n?i.left="100%":i.right="100%",i})),g(C(t),"getRTLMenuPosition",(function(){var e=window.innerHeight,n=t.subMenu.getBoundingClientRect(),o={};return n.bottom>e?o.bottom=0:o.top=0,n.left<0?o.left="100%":o.right="100%",o})),g(C(t),"hideMenu",(function(e){e.preventDefault(),t.hideSubMenu(e)})),g(C(t),"hideSubMenu",(function(e){e.detail&&e.detail.id&&t.menu&&e.detail.id!==t.menu.id||(t.props.forceOpen&&t.props.forceClose(),t.setState({visible:!1,selectedItem:null}),t.unregisterHandlers())})),g(C(t),"handleClick",(function(e){e.preventDefault(),t.props.disabled||((0,u.callIfExists)(t.props.onClick,e,(0,a.default)({},t.props.data,u.store.data),u.store.target),t.props.onClick&&!t.props.preventCloseOnClick&&(0,l.hideMenu)())})),g(C(t),"handleMouseEnter",(function(){t.closetimer&&clearTimeout(t.closetimer),t.props.disabled||t.state.visible||(t.opentimer=setTimeout((function(){return t.setState({visible:!0,selectedItem:null})}),t.props.hoverDelay))})),g(C(t),"handleMouseLeave",(function(){t.opentimer&&clearTimeout(t.opentimer),t.state.visible&&(t.closetimer=setTimeout((function(){return t.setState({visible:!1,selectedItem:null})}),t.props.hoverDelay))})),g(C(t),"menuRef",(function(e){t.menu=e})),g(C(t),"subMenuRef",(function(e){t.subMenu=e})),g(C(t),"registerHandlers",(function(){document.removeEventListener("keydown",t.props.parentKeyNavigationHandler),document.addEventListener("keydown",t.handleKeyNavigation)})),g(C(t),"unregisterHandlers",(function(e){document.removeEventListener("keydown",t.handleKeyNavigation),e||document.addEventListener("keydown",t.props.parentKeyNavigationHandler)})),t.state=(0,a.default)({},t.state,{visible:!1}),t}return t=w,(n=[{key:"componentDidMount",value:function(){this.listenId=A.default.register((function(){}),this.hideSubMenu)}},{key:"getSubMenuType",value:function(){return w}},{key:"shouldComponentUpdate",value:function(e,t){return this.isVisibilityChange=!(this.state.visible===t.visible&&this.props.forceOpen===e.forceOpen||this.state.visible&&e.forceOpen||this.props.forceOpen&&t.visible),!0}},{key:"componentDidUpdate",value:function(){var e=this;this.isVisibilityChange&&(this.props.forceOpen||this.state.visible?(window.requestAnimationFrame||setTimeout)((function(){var t=e.props.rtl?e.getRTLMenuPosition():e.getMenuPosition();e.subMenu.style.removeProperty("top"),e.subMenu.style.removeProperty("bottom"),e.subMenu.style.removeProperty("left"),e.subMenu.style.removeProperty("right"),(0,u.hasOwnProp)(t,"top")&&(e.subMenu.style.top=t.top),(0,u.hasOwnProp)(t,"left")&&(e.subMenu.style.left=t.left),(0,u.hasOwnProp)(t,"bottom")&&(e.subMenu.style.bottom=t.bottom),(0,u.hasOwnProp)(t,"right")&&(e.subMenu.style.right=t.right),e.subMenu.classList.add(u.cssClasses.menuVisible),e.registerHandlers(),e.setState({selectedItem:null})})):(this.subMenu.addEventListener("transitionend",(function t(){e.subMenu.removeEventListener("transitionend",t),e.subMenu.style.removeProperty("bottom"),e.subMenu.style.removeProperty("right"),e.subMenu.style.top=0,e.subMenu.style.left="100%",e.unregisterHandlers()})),this.subMenu.classList.remove(u.cssClasses.menuVisible)))}},{key:"componentWillUnmount",value:function(){this.listenId&&A.default.unregister(this.listenId),this.opentimer&&clearTimeout(this.opentimer),this.closetimer&&clearTimeout(this.closetimer),this.unregisterHandlers(!0)}},{key:"render",value:function(){var e,t=this.props,n=t.children,o=t.attributes,i=t.disabled,a=t.title,l=t.selected,c=this.state.visible,A={ref:this.menuRef,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,className:(0,r.default)(u.cssClasses.menuItem,u.cssClasses.subMenu,o.listClassName),style:{position:"relative"}},d={className:(0,r.default)(u.cssClasses.menuItem,o.className,(e={},g(e,(0,r.default)(u.cssClasses.menuItemDisabled,o.disabledClassName),i),g(e,(0,r.default)(u.cssClasses.menuItemActive,o.visibleClassName),c),g(e,(0,r.default)(u.cssClasses.menuItemSelected,o.selectedClassName),l),e)),onMouseMove:this.props.onMouseMove,onMouseOut:this.props.onMouseOut,onClick:this.handleClick},M={ref:this.subMenuRef,style:{position:"absolute",transition:"opacity 1ms",top:0,left:"100%"},className:(0,r.default)(u.cssClasses.menu,this.props.className)};return s.default.createElement("nav",p({},A,{role:"menuitem",tabIndex:"-1","aria-haspopup":"true"}),s.default.createElement("div",p({},o,d),a),s.default.createElement("nav",p({},M,{role:"menu",tabIndex:"-1"}),this.renderChildren(n)))}}])&&M(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),w}(c.default);t.default=w,g(w,"propTypes",{children:i.default.node.isRequired,attributes:i.default.object,title:i.default.node.isRequired,className:i.default.string,disabled:i.default.bool,hoverDelay:i.default.number,rtl:i.default.bool,selected:i.default.bool,onMouseMove:i.default.func,onMouseOut:i.default.func,forceOpen:i.default.bool,forceClose:i.default.func,parentKeyNavigationHandler:i.default.func}),g(w,"defaultProps",{disabled:!1,hoverDelay:500,attributes:{},className:"",rtl:!1,selected:!1,onMouseMove:function(){return null},onMouseOut:function(){return null},forceOpen:!1,forceClose:function(){return null},parentKeyNavigationHandler:function(){return null}})},451:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MENU_SHOW=t.MENU_HIDE=void 0,t.dispatchGlobalEvent=l,t.hideMenu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;l(a,(0,s.default)({},e,{type:a}),t)},t.showMenu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;l(r,(0,s.default)({},e,{type:r}),t)};var o,s=(o=n(772))&&o.__esModule?o:{default:o},i=n(645),r="REACT_CONTEXTMENU_SHOW";t.MENU_SHOW=r;var a="REACT_CONTEXTMENU_HIDE";function l(e,t){var n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;"function"==typeof window.CustomEvent?n=new window.CustomEvent(e,{detail:t}):(n=document.createEvent("CustomEvent")).initCustomEvent(e,!1,!0,t),o&&(o.dispatchEvent(n),(0,s.default)(i.store,t))}t.MENU_HIDE=a},857:(e,t,n)=>{"use strict";function o(e){return o="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},o(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){return function(n){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&A(e,t)}(g,n);var i,a,l,L,C=(i=g,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(i);if(a){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return d(e)}(this,e)});function g(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),M(d(n=C.call(this,t)),"handleShow",(function(t){if(t.detail.id===e){var o=t.detail.data,s={};for(var i in o)h.includes(i)||(s[i]=o[i]);n.setState({trigger:s})}})),M(d(n),"handleHide",(function(){n.setState({trigger:null})})),n.state={trigger:null},n}return l=g,(L=[{key:"componentDidMount",value:function(){this.listenId=r.default.register(this.handleShow,this.handleHide)}},{key:"componentWillUnmount",value:function(){this.listenId&&r.default.unregister(this.listenId)}},{key:"render",value:function(){return s.default.createElement(t,c({},this.props,{id:e,trigger:this.state.trigger}))}}])&&u(l.prototype,L),Object.defineProperty(l,"prototype",{writable:!1}),g}(s.Component)}};var s=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var s={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var a=i?Object.getOwnPropertyDescriptor(e,r):null;a&&(a.get||a.set)?Object.defineProperty(s,r,a):s[r]=e[r]}return s.default=e,n&&n.set(e,s),s}(n(460)),i=a(n(774)),r=a(n(225));function a(e){return e&&e.__esModule?e:{default:e}}function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},c.apply(this,arguments)}function u(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function A(e,t){return A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},A(e,t)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var C,h=[].concat(function(e){if(Array.isArray(e))return L(e)}(C=Object.keys(i.default.propTypes))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(C)||function(e,t){if(e){if("string"==typeof e)return L(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(e,t):void 0}}(C)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),["children"])},225:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(451),s=n(645);function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function r(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=new(r((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,"handleShowEvent",(function(e){for(var n in t.callbacks)(0,s.hasOwnProp)(t.callbacks,n)&&t.callbacks[n].show(e)})),a(this,"handleHideEvent",(function(e){for(var n in t.callbacks)(0,s.hasOwnProp)(t.callbacks,n)&&t.callbacks[n].hide(e)})),a(this,"register",(function(e,n){var o=(0,s.uniqueId)();return t.callbacks[o]={show:e,hide:n},o})),a(this,"unregister",(function(e){e&&t.callbacks[e]&&delete t.callbacks[e]})),this.callbacks={},s.canUseDOM&&(window.addEventListener(o.MENU_SHOW,this.handleShowEvent),window.addEventListener(o.MENU_HIDE,this.handleHideEvent))})));t.default=l},645:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callIfExists=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return"function"==typeof e&&e.apply(void 0,n)},t.cssClasses=t.canUseDOM=void 0,t.hasOwnProp=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.store=void 0,t.uniqueId=function(){return Math.random().toString(36).substring(7)},t.cssClasses={menu:"react-contextmenu",menuVisible:"react-contextmenu--visible",menuWrapper:"react-contextmenu-wrapper",menuItem:"react-contextmenu-item",menuItemActive:"react-contextmenu-item--active",menuItemDisabled:"react-contextmenu-item--disabled",menuItemDivider:"react-contextmenu-item--divider",menuItemSelected:"react-contextmenu-item--selected",subMenu:"react-contextmenu-submenu"},t.store={};var n=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);t.canUseDOM=n},312:(e,t,n)=>{"use strict";Object.defineProperty(t,"tz",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"Rc",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"Dr",{enumerable:!0,get:function(){return i.default}});var o=r(n(824)),s=r(n(774)),i=r(n(122));r(n(349)),r(n(857)),n(451);function r(e){return e&&e.__esModule?e:{default:e}}},903:(e,t,n)=>{"use strict";var o=n(460),s=n(772),i=n(798);function r(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!o)throw Error(r(227));var a=new Set,l={};function c(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(l[e]=t,e=0;e<t.length;e++)a.add(t[e])}var A=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,M={},L={};function C(e,t,n,o,s,i,r){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=r}var h={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){h[e]=new C(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];h[t]=new C(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){h[e]=new C(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){h[e]=new C(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){h[e]=new C(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){h[e]=new C(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){h[e]=new C(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){h[e]=new C(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){h[e]=new C(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function w(e){return e[1].toUpperCase()}function j(e,t,n,o){var s=h.hasOwnProperty(t)?h[t]:null;(null!==s?0===s.type:!o&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,n,o){if(null==t||function(e,t,n,o){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!o&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,o))return!0;if(o)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,s,o)&&(n=null),o||null===s?function(e){return!!p.call(L,e)||!p.call(M,e)&&(d.test(e)?L[e]=!0:(M[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=null===n?3!==s.type&&"":n:(t=s.attributeName,o=s.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(s=s.type)||4===s&&!0===n?"":""+n,o?e.setAttributeNS(o,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(g,w);h[t]=new C(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,w);h[t]=new C(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(g,w);h[t]=new C(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){h[e]=new C(e,1,!1,e.toLowerCase(),null,!1,!1)})),h.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){h[e]=new C(e,1,!1,e.toLowerCase(),null,!0,!0)}));var m=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,b=60103,y=60106,f=60107,x=60108,N=60114,S=60109,D=60110,I=60112,v=60113,E=60120,T=60115,z=60116,O=60121,k=60128,Y=60129,P=60130,B=60131;if("function"==typeof Symbol&&Symbol.for){var R=Symbol.for;b=R("react.element"),y=R("react.portal"),f=R("react.fragment"),x=R("react.strict_mode"),N=R("react.profiler"),S=R("react.provider"),D=R("react.context"),I=R("react.forward_ref"),v=R("react.suspense"),E=R("react.suspense_list"),T=R("react.memo"),z=R("react.lazy"),O=R("react.block"),R("react.scope"),k=R("react.opaque.id"),Y=R("react.debug_trace_mode"),P=R("react.offscreen"),B=R("react.legacy_hidden")}var U,G="function"==typeof Symbol&&Symbol.iterator;function Z(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=G&&e[G]||e["@@iterator"])?e:null}function _(e){if(void 0===U)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);U=t&&t[1]||""}return"\n"+U+e}var W=!1;function H(e,t){if(!e||W)return"";W=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var o=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){o=e}e.call(t.prototype)}else{try{throw Error()}catch(e){o=e}e()}}catch(e){if(e&&o&&"string"==typeof e.stack){for(var s=e.stack.split("\n"),i=o.stack.split("\n"),r=s.length-1,a=i.length-1;1<=r&&0<=a&&s[r]!==i[a];)a--;for(;1<=r&&0<=a;r--,a--)if(s[r]!==i[a]){if(1!==r||1!==a)do{if(r--,0>--a||s[r]!==i[a])return"\n"+s[r].replace(" at new "," at ")}while(1<=r&&0<=a);break}}}finally{W=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?_(e):""}function Q(e){switch(e.tag){case 5:return _(e.type);case 16:return _("Lazy");case 13:return _("Suspense");case 19:return _("SuspenseList");case 0:case 2:case 15:return H(e.type,!1);case 11:return H(e.type.render,!1);case 22:return H(e.type._render,!1);case 1:return H(e.type,!0);default:return""}}function F(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case f:return"Fragment";case y:return"Portal";case N:return"Profiler";case x:return"StrictMode";case v:return"Suspense";case E:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case D:return(e.displayName||"Context")+".Consumer";case S:return(e._context.displayName||"Context")+".Provider";case I:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case T:return F(e.type);case O:return F(e._render);case z:t=e._payload,e=e._init;try{return F(e(t))}catch(e){}}return null}function V(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function J(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function X(e){e._valueTracker||(e._valueTracker=function(e){var t=J(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(e){o=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(e){o=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=J(e)?e.checked?"true":"false":e.value),(e=o)!==n&&(t.setValue(e),!0)}function K(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function $(e,t){var n=t.checked;return s({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,o=null!=t.checked?t.checked:t.defaultChecked;n=V(null!=t.value?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&j(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=V(t.value),o=t.type;if(null!=n)"number"===o?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===o||"reset"===o)return void e.removeAttribute("value");t.hasOwnProperty("value")?se(e,t.type,n):t.hasOwnProperty("defaultValue")&&se(e,t.type,V(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function oe(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!("submit"!==o&&"reset"!==o||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function se(e,t,n){"number"===t&&K(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ie(e,t){return e=s({children:void 0},t),(t=function(e){var t="";return o.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function re(e,t,n,o){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&o&&(e[n].defaultSelected=!0)}else{for(n=""+V(n),t=null,s=0;s<e.length;s++){if(e[s].value===n)return e[s].selected=!0,void(o&&(e[s].defaultSelected=!0));null!==t||e[s].disabled||(t=e[s])}null!==t&&(t.selected=!0)}}function ae(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(r(91));return s({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(r(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(r(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:V(n)}}function ce(e,t){var n=V(t.value),o=V(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=o&&(e.defaultValue=""+o)}function ue(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Ae="http://www.w3.org/1999/xhtml";function de(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function pe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?de(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Me,Le,Ce=(Le=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((Me=Me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,o){MSApp.execUnsafeLocalFunction((function(){return Le(e,t)}))}:Le);function he(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ge={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},we=["Webkit","ms","Moz","O"];function je(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ge.hasOwnProperty(e)&&ge[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var o=0===n.indexOf("--"),s=je(n,t[n],o);"float"===n&&(n="cssFloat"),o?e.setProperty(n,s):e[n]=s}}Object.keys(ge).forEach((function(e){we.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ge[t]=ge[e]}))}));var be=s({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(be[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(r(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(r(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(r(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(r(62))}}function fe(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ne=null,Se=null,De=null;function Ie(e){if(e=os(e)){if("function"!=typeof Ne)throw Error(r(280));var t=e.stateNode;t&&(t=is(t),Ne(e.stateNode,e.type,t))}}function ve(e){Se?De?De.push(e):De=[e]:Se=e}function Ee(){if(Se){var e=Se,t=De;if(De=Se=null,Ie(e),t)for(e=0;e<t.length;e++)Ie(t[e])}}function Te(e,t){return e(t)}function ze(e,t,n,o,s){return e(t,n,o,s)}function Oe(){}var ke=Te,Ye=!1,Pe=!1;function Be(){null===Se&&null===De||(Oe(),Ee())}function Re(e,t){var n=e.stateNode;if(null===n)return null;var o=is(n);if(null===o)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(r(231,t,typeof n));return n}var Ue=!1;if(A)try{var Ge={};Object.defineProperty(Ge,"passive",{get:function(){Ue=!0}}),window.addEventListener("test",Ge,Ge),window.removeEventListener("test",Ge,Ge)}catch(Le){Ue=!1}function Ze(e,t,n,o,s,i,r,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var _e=!1,We=null,He=!1,Qe=null,Fe={onError:function(e){_e=!0,We=e}};function Ve(e,t,n,o,s,i,r,a,l){_e=!1,We=null,Ze.apply(Fe,arguments)}function Je(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Xe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function qe(e){if(Je(e)!==e)throw Error(r(188))}function Ke(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Je(e)))throw Error(r(188));return t!==e?null:e}for(var n=e,o=t;;){var s=n.return;if(null===s)break;var i=s.alternate;if(null===i){if(null!==(o=s.return)){n=o;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return qe(s),e;if(i===o)return qe(s),t;i=i.sibling}throw Error(r(188))}if(n.return!==o.return)n=s,o=i;else{for(var a=!1,l=s.child;l;){if(l===n){a=!0,n=s,o=i;break}if(l===o){a=!0,o=s,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,o=s;break}if(l===o){a=!0,o=i,n=s;break}l=l.sibling}if(!a)throw Error(r(189))}}if(n.alternate!==o)throw Error(r(190))}if(3!==n.tag)throw Error(r(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function $e(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,ot,st=!1,it=[],rt=null,at=null,lt=null,ct=new Map,ut=new Map,At=[],dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pt(e,t,n,o,s){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:s,targetContainers:[o]}}function Mt(e,t){switch(e){case"focusin":case"focusout":rt=null;break;case"dragenter":case"dragleave":at=null;break;case"mouseover":case"mouseout":lt=null;break;case"pointerover":case"pointerout":ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ut.delete(t.pointerId)}}function Lt(e,t,n,o,s,i){return null===e||e.nativeEvent!==i?(e=pt(t,n,o,s,i),null!==t&&null!==(t=os(t))&&tt(t),e):(e.eventSystemFlags|=o,t=e.targetContainers,null!==s&&-1===t.indexOf(s)&&t.push(s),e)}function Ct(e){var t=ns(e.target);if(null!==t){var n=Je(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Xe(n)))return e.blockedOn=t,void ot(e.lanePriority,(function(){i.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function ht(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=os(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function gt(e,t,n){ht(e)&&n.delete(t)}function wt(){for(st=!1;0<it.length;){var e=it[0];if(null!==e.blockedOn){null!==(e=os(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&it.shift()}null!==rt&&ht(rt)&&(rt=null),null!==at&&ht(at)&&(at=null),null!==lt&&ht(lt)&&(lt=null),ct.forEach(gt),ut.forEach(gt)}function jt(e,t){e.blockedOn===t&&(e.blockedOn=null,st||(st=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,wt)))}function mt(e){function t(t){return jt(t,e)}if(0<it.length){jt(it[0],e);for(var n=1;n<it.length;n++){var o=it[n];o.blockedOn===e&&(o.blockedOn=null)}}for(null!==rt&&jt(rt,e),null!==at&&jt(at,e),null!==lt&&jt(lt,e),ct.forEach(t),ut.forEach(t),n=0;n<At.length;n++)(o=At[n]).blockedOn===e&&(o.blockedOn=null);for(;0<At.length&&null===(n=At[0]).blockedOn;)Ct(n),null===n.blockedOn&&At.shift()}function bt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var yt={animationend:bt("Animation","AnimationEnd"),animationiteration:bt("Animation","AnimationIteration"),animationstart:bt("Animation","AnimationStart"),transitionend:bt("Transition","TransitionEnd")},ft={},xt={};function Nt(e){if(ft[e])return ft[e];if(!yt[e])return e;var t,n=yt[e];for(t in n)if(n.hasOwnProperty(t)&&t in xt)return ft[e]=n[t];return e}A&&(xt=document.createElement("div").style,"AnimationEvent"in window||(delete yt.animationend.animation,delete yt.animationiteration.animation,delete yt.animationstart.animation),"TransitionEvent"in window||delete yt.transitionend.transition);var St=Nt("animationend"),Dt=Nt("animationiteration"),It=Nt("animationstart"),vt=Nt("transitionend"),Et=new Map,Tt=new Map,zt=["abort","abort",St,"animationEnd",Dt,"animationIteration",It,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",vt,"transitionEnd","waiting","waiting"];function Ot(e,t){for(var n=0;n<e.length;n+=2){var o=e[n],s=e[n+1];s="on"+(s[0].toUpperCase()+s.slice(1)),Tt.set(o,t),Et.set(o,s),c(s,[o])}}(0,i.unstable_now)();var kt=8;function Yt(e){if(1&e)return kt=15,1;if(2&e)return kt=14,2;if(4&e)return kt=13,4;var t=24&e;return 0!==t?(kt=12,t):32&e?(kt=11,32):0!=(t=192&e)?(kt=10,t):256&e?(kt=9,256):0!=(t=3584&e)?(kt=8,t):4096&e?(kt=7,4096):0!=(t=4186112&e)?(kt=6,t):0!=(t=62914560&e)?(kt=5,t):67108864&e?(kt=4,67108864):134217728&e?(kt=3,134217728):0!=(t=805306368&e)?(kt=2,t):1073741824&e?(kt=1,1073741824):(kt=8,e)}function Pt(e,t){var n=e.pendingLanes;if(0===n)return kt=0;var o=0,s=0,i=e.expiredLanes,r=e.suspendedLanes,a=e.pingedLanes;if(0!==i)o=i,s=kt=15;else if(0!=(i=134217727&n)){var l=i&~r;0!==l?(o=Yt(l),s=kt):0!=(a&=i)&&(o=Yt(a),s=kt)}else 0!=(i=n&~r)?(o=Yt(i),s=kt):0!==a&&(o=Yt(a),s=kt);if(0===o)return 0;if(o=n&((0>(o=31-_t(o))?0:1<<o)<<1)-1,0!==t&&t!==o&&!(t&r)){if(Yt(t),s<=kt)return t;kt=s}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=o;0<t;)s=1<<(n=31-_t(t)),o|=e[n],t&=~s;return o}function Bt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Rt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Ut(24&~t))?Rt(10,t):e;case 10:return 0===(e=Ut(192&~t))?Rt(8,t):e;case 8:return 0===(e=Ut(3584&~t))&&0===(e=Ut(4186112&~t))&&(e=512),e;case 2:return 0===(t=Ut(805306368&~t))&&(t=268435456),t}throw Error(r(358,e))}function Ut(e){return e&-e}function Gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Zt(e,t,n){e.pendingLanes|=t;var o=t-1;e.suspendedLanes&=o,e.pingedLanes&=o,(e=e.eventTimes)[t=31-_t(t)]=n}var _t=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Wt(e)/Ht|0)|0},Wt=Math.log,Ht=Math.LN2,Qt=i.unstable_UserBlockingPriority,Ft=i.unstable_runWithPriority,Vt=!0;function Jt(e,t,n,o){Ye||Oe();var s=qt,i=Ye;Ye=!0;try{ze(s,e,t,n,o)}finally{(Ye=i)||Be()}}function Xt(e,t,n,o){Ft(Qt,qt.bind(null,e,t,n,o))}function qt(e,t,n,o){var s;if(Vt)if((s=!(4&t))&&0<it.length&&-1<dt.indexOf(e))e=pt(null,e,t,n,o),it.push(e);else{var i=Kt(e,t,n,o);if(null===i)s&&Mt(e,o);else{if(s){if(-1<dt.indexOf(e))return e=pt(i,e,t,n,o),void it.push(e);if(function(e,t,n,o,s){switch(t){case"focusin":return rt=Lt(rt,e,t,n,o,s),!0;case"dragenter":return at=Lt(at,e,t,n,o,s),!0;case"mouseover":return lt=Lt(lt,e,t,n,o,s),!0;case"pointerover":var i=s.pointerId;return ct.set(i,Lt(ct.get(i)||null,e,t,n,o,s)),!0;case"gotpointercapture":return i=s.pointerId,ut.set(i,Lt(ut.get(i)||null,e,t,n,o,s)),!0}return!1}(i,e,t,n,o))return;Mt(e,o)}ko(e,t,o,null,n)}}}function Kt(e,t,n,o){var s=xe(o);if(null!==(s=ns(s))){var i=Je(s);if(null===i)s=null;else{var r=i.tag;if(13===r){if(null!==(s=Xe(i)))return s;s=null}else if(3===r){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;s=null}else i!==s&&(s=null)}}return ko(e,t,o,s,n),null}var $t=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,o=n.length,s="value"in $t?$t.value:$t.textContent,i=s.length;for(e=0;e<o&&n[e]===s[e];e++);var r=o-e;for(t=1;t<=r&&n[o-t]===s[i-t];t++);return tn=s.slice(e,1<t?1-t:void 0)}function on(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function sn(){return!0}function rn(){return!1}function an(e){function t(t,n,o,s,i){for(var r in this._reactName=t,this._targetInst=o,this.type=n,this.nativeEvent=s,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(r)&&(t=e[r],this[r]=t?t(s):s[r]);return this.isDefaultPrevented=(null!=s.defaultPrevented?s.defaultPrevented:!1===s.returnValue)?sn:rn,this.isPropagationStopped=rn,this}return s(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=sn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=sn)},persist:function(){},isPersistent:sn}),t}var ln,cn,un,An={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=an(An),pn=s({},An,{view:0,detail:0}),Mn=an(pn),Ln=s({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==un&&(un&&"mousemove"===e.type?(ln=e.screenX-un.screenX,cn=e.screenY-un.screenY):cn=ln=0,un=e),ln)},movementY:function(e){return"movementY"in e?e.movementY:cn}}),Cn=an(Ln),hn=an(s({},Ln,{dataTransfer:0})),gn=an(s({},pn,{relatedTarget:0})),wn=an(s({},An,{animationName:0,elapsedTime:0,pseudoElement:0})),jn=s({},An,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),mn=an(jn),bn=an(s({},An,{data:0})),yn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Nn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function Sn(){return Nn}var Dn=s({},pn,{key:function(e){if(e.key){var t=yn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=on(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?fn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sn,charCode:function(e){return"keypress"===e.type?on(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?on(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),In=an(Dn),vn=an(s({},Ln,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),En=an(s({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sn})),Tn=an(s({},An,{propertyName:0,elapsedTime:0,pseudoElement:0})),zn=s({},Ln,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),On=an(zn),kn=[9,13,27,32],Yn=A&&"CompositionEvent"in window,Pn=null;A&&"documentMode"in document&&(Pn=document.documentMode);var Bn=A&&"TextEvent"in window&&!Pn,Rn=A&&(!Yn||Pn&&8<Pn&&11>=Pn),Un=String.fromCharCode(32),Gn=!1;function Zn(e,t){switch(e){case"keyup":return-1!==kn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _n(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Wn=!1,Hn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function Fn(e,t,n,o){ve(o),0<(t=Po(t,"onChange")).length&&(n=new dn("onChange","change",null,n,o),e.push({event:n,listeners:t}))}var Vn=null,Jn=null;function Xn(e){Io(e,0)}function qn(e){if(q(ss(e)))return e}function Kn(e,t){if("change"===e)return t}var $n=!1;if(A){var eo;if(A){var to="oninput"in document;if(!to){var no=document.createElement("div");no.setAttribute("oninput","return;"),to="function"==typeof no.oninput}eo=to}else eo=!1;$n=eo&&(!document.documentMode||9<document.documentMode)}function oo(){Vn&&(Vn.detachEvent("onpropertychange",so),Jn=Vn=null)}function so(e){if("value"===e.propertyName&&qn(Jn)){var t=[];if(Fn(t,Jn,e,xe(e)),e=Xn,Ye)e(t);else{Ye=!0;try{Te(e,t)}finally{Ye=!1,Be()}}}}function io(e,t,n){"focusin"===e?(oo(),Jn=n,(Vn=t).attachEvent("onpropertychange",so)):"focusout"===e&&oo()}function ro(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return qn(Jn)}function ao(e,t){if("click"===e)return qn(t)}function lo(e,t){if("input"===e||"change"===e)return qn(t)}var co="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},uo=Object.prototype.hasOwnProperty;function Ao(e,t){if(co(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++)if(!uo.call(t,n[o])||!co(e[n[o]],t[n[o]]))return!1;return!0}function po(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Mo(e,t){var n,o=po(e);for(e=0;o;){if(3===o.nodeType){if(n=e+o.textContent.length,e<=t&&n>=t)return{node:o,offset:t-e};e=n}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=po(o)}}function Lo(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Lo(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Co(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=K((e=t.contentWindow).document)}return t}function ho(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var go=A&&"documentMode"in document&&11>=document.documentMode,wo=null,jo=null,mo=null,bo=!1;function yo(e,t,n){var o=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;bo||null==wo||wo!==K(o)||(o="selectionStart"in(o=wo)&&ho(o)?{start:o.selectionStart,end:o.selectionEnd}:{anchorNode:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset},mo&&Ao(mo,o)||(mo=o,0<(o=Po(jo,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:o}),t.target=wo)))}Ot("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Ot("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Ot(zt,2);for(var fo="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),xo=0;xo<fo.length;xo++)Tt.set(fo[xo],0);u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var No="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),So=new Set("cancel close invalid load scroll toggle".split(" ").concat(No));function Do(e,t,n){var o=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,o,s,i,a,l,c){if(Ve.apply(this,arguments),_e){if(!_e)throw Error(r(198));var u=We;_e=!1,We=null,He||(He=!0,Qe=u)}}(o,t,void 0,e),e.currentTarget=null}function Io(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var o=e[n],s=o.event;o=o.listeners;e:{var i=void 0;if(t)for(var r=o.length-1;0<=r;r--){var a=o[r],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==i&&s.isPropagationStopped())break e;Do(s,a,c),i=l}else for(r=0;r<o.length;r++){if(l=(a=o[r]).instance,c=a.currentTarget,a=a.listener,l!==i&&s.isPropagationStopped())break e;Do(s,a,c),i=l}}}if(He)throw e=Qe,He=!1,Qe=null,e}function vo(e,t){var n=rs(t),o=e+"__bubble";n.has(o)||(Oo(t,e,2,!1),n.add(o))}var Eo="_reactListening"+Math.random().toString(36).slice(2);function To(e){e[Eo]||(e[Eo]=!0,a.forEach((function(t){So.has(t)||zo(t,!1,e,null),zo(t,!0,e,null)})))}function zo(e,t,n,o){var s=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=n;if("selectionchange"===e&&9!==n.nodeType&&(i=n.ownerDocument),null!==o&&!t&&So.has(e)){if("scroll"!==e)return;s|=2,i=o}var r=rs(i),a=e+"__"+(t?"capture":"bubble");r.has(a)||(t&&(s|=4),Oo(i,e,s,t),r.add(a))}function Oo(e,t,n,o){var s=Tt.get(t);switch(void 0===s?2:s){case 0:s=Jt;break;case 1:s=Xt;break;default:s=qt}n=s.bind(null,t,n,e),s=void 0,!Ue||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(s=!0),o?void 0!==s?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):void 0!==s?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function ko(e,t,n,o,s){var i=o;if(!(1&t||2&t||null===o))e:for(;;){if(null===o)return;var r=o.tag;if(3===r||4===r){var a=o.stateNode.containerInfo;if(a===s||8===a.nodeType&&a.parentNode===s)break;if(4===r)for(r=o.return;null!==r;){var l=r.tag;if((3===l||4===l)&&((l=r.stateNode.containerInfo)===s||8===l.nodeType&&l.parentNode===s))return;r=r.return}for(;null!==a;){if(null===(r=ns(a)))return;if(5===(l=r.tag)||6===l){o=i=r;continue e}a=a.parentNode}}o=o.return}!function(e,t,n){if(Pe)return e();Pe=!0;try{return ke(e,t,n)}finally{Pe=!1,Be()}}((function(){var o=i,s=xe(n),r=[];e:{var a=Et.get(e);if(void 0!==a){var l=dn,c=e;switch(e){case"keypress":if(0===on(n))break e;case"keydown":case"keyup":l=In;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=Cn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=hn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=En;break;case St:case Dt:case It:l=wn;break;case vt:l=Tn;break;case"scroll":l=Mn;break;case"wheel":l=On;break;case"copy":case"cut":case"paste":l=mn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=vn}var u=!!(4&t),A=!u&&"scroll"===e,d=u?null!==a?a+"Capture":null:a;u=[];for(var p,M=o;null!==M;){var L=(p=M).stateNode;if(5===p.tag&&null!==L&&(p=L,null!==d&&null!=(L=Re(M,d))&&u.push(Yo(M,L,p))),A)break;M=M.return}0<u.length&&(a=new l(a,c,null,n,s),r.push({event:a,listeners:u}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(a="mouseover"===e||"pointerover"===e)||16&t||!(c=n.relatedTarget||n.fromElement)||!ns(c)&&!c[es])&&(l||a)&&(a=s.window===s?s:(a=s.ownerDocument)?a.defaultView||a.parentWindow:window,l?(l=o,null!==(c=(c=n.relatedTarget||n.toElement)?ns(c):null)&&(c!==(A=Je(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=o),l!==c)){if(u=Cn,L="onMouseLeave",d="onMouseEnter",M="mouse","pointerout"!==e&&"pointerover"!==e||(u=vn,L="onPointerLeave",d="onPointerEnter",M="pointer"),A=null==l?a:ss(l),p=null==c?a:ss(c),(a=new u(L,M+"leave",l,n,s)).target=A,a.relatedTarget=p,L=null,ns(s)===o&&((u=new u(d,M+"enter",c,n,s)).target=p,u.relatedTarget=A,L=u),A=L,l&&c)e:{for(d=c,M=0,p=u=l;p;p=Bo(p))M++;for(p=0,L=d;L;L=Bo(L))p++;for(;0<M-p;)u=Bo(u),M--;for(;0<p-M;)d=Bo(d),p--;for(;M--;){if(u===d||null!==d&&u===d.alternate)break e;u=Bo(u),d=Bo(d)}u=null}else u=null;null!==l&&Ro(r,a,l,u,!1),null!==c&&null!==A&&Ro(r,A,c,u,!0)}if("select"===(l=(a=o?ss(o):window).nodeName&&a.nodeName.toLowerCase())||"input"===l&&"file"===a.type)var C=Kn;else if(Qn(a))if($n)C=lo;else{C=ro;var h=io}else(l=a.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(C=ao);switch(C&&(C=C(e,o))?Fn(r,C,n,s):(h&&h(e,a,o),"focusout"===e&&(h=a._wrapperState)&&h.controlled&&"number"===a.type&&se(a,"number",a.value)),h=o?ss(o):window,e){case"focusin":(Qn(h)||"true"===h.contentEditable)&&(wo=h,jo=o,mo=null);break;case"focusout":mo=jo=wo=null;break;case"mousedown":bo=!0;break;case"contextmenu":case"mouseup":case"dragend":bo=!1,yo(r,n,s);break;case"selectionchange":if(go)break;case"keydown":case"keyup":yo(r,n,s)}var g;if(Yn)e:{switch(e){case"compositionstart":var w="onCompositionStart";break e;case"compositionend":w="onCompositionEnd";break e;case"compositionupdate":w="onCompositionUpdate";break e}w=void 0}else Wn?Zn(e,n)&&(w="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(w="onCompositionStart");w&&(Rn&&"ko"!==n.locale&&(Wn||"onCompositionStart"!==w?"onCompositionEnd"===w&&Wn&&(g=nn()):(en="value"in($t=s)?$t.value:$t.textContent,Wn=!0)),0<(h=Po(o,w)).length&&(w=new bn(w,e,null,n,s),r.push({event:w,listeners:h}),(g||null!==(g=_n(n)))&&(w.data=g))),(g=Bn?function(e,t){switch(e){case"compositionend":return _n(t);case"keypress":return 32!==t.which?null:(Gn=!0,Un);case"textInput":return(e=t.data)===Un&&Gn?null:e;default:return null}}(e,n):function(e,t){if(Wn)return"compositionend"===e||!Yn&&Zn(e,t)?(e=nn(),tn=en=$t=null,Wn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Rn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(o=Po(o,"onBeforeInput")).length&&(s=new bn("onBeforeInput","beforeinput",null,n,s),r.push({event:s,listeners:o}),s.data=g)}Io(r,t)}))}function Yo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Po(e,t){for(var n=t+"Capture",o=[];null!==e;){var s=e,i=s.stateNode;5===s.tag&&null!==i&&(s=i,null!=(i=Re(e,n))&&o.unshift(Yo(e,i,s)),null!=(i=Re(e,t))&&o.push(Yo(e,i,s))),e=e.return}return o}function Bo(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Ro(e,t,n,o,s){for(var i=t._reactName,r=[];null!==n&&n!==o;){var a=n,l=a.alternate,c=a.stateNode;if(null!==l&&l===o)break;5===a.tag&&null!==c&&(a=c,s?null!=(l=Re(n,i))&&r.unshift(Yo(n,l,a)):s||null!=(l=Re(n,i))&&r.push(Yo(n,l,a))),n=n.return}0!==r.length&&e.push({event:t,listeners:r})}function Uo(){}var Go=null,Zo=null;function _o(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Wo(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Ho="function"==typeof setTimeout?setTimeout:void 0,Qo="function"==typeof clearTimeout?clearTimeout:void 0;function Fo(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function Vo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Jo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Xo=0,qo=Math.random().toString(36).slice(2),Ko="__reactFiber$"+qo,$o="__reactProps$"+qo,es="__reactContainer$"+qo,ts="__reactEvents$"+qo;function ns(e){var t=e[Ko];if(t)return t;for(var n=e.parentNode;n;){if(t=n[es]||n[Ko]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Jo(e);null!==e;){if(n=e[Ko])return n;e=Jo(e)}return t}n=(e=n).parentNode}return null}function os(e){return!(e=e[Ko]||e[es])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ss(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(r(33))}function is(e){return e[$o]||null}function rs(e){var t=e[ts];return void 0===t&&(t=e[ts]=new Set),t}var as=[],ls=-1;function cs(e){return{current:e}}function us(e){0>ls||(e.current=as[ls],as[ls]=null,ls--)}function As(e,t){ls++,as[ls]=e.current,e.current=t}var ds={},ps=cs(ds),Ms=cs(!1),Ls=ds;function Cs(e,t){var n=e.type.contextTypes;if(!n)return ds;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var s,i={};for(s in n)i[s]=t[s];return o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function hs(e){return null!=e.childContextTypes}function gs(){us(Ms),us(ps)}function ws(e,t,n){if(ps.current!==ds)throw Error(r(168));As(ps,t),As(Ms,n)}function js(e,t,n){var o=e.stateNode;if(e=t.childContextTypes,"function"!=typeof o.getChildContext)return n;for(var i in o=o.getChildContext())if(!(i in e))throw Error(r(108,F(t)||"Unknown",i));return s({},n,o)}function ms(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ds,Ls=ps.current,As(ps,e),As(Ms,Ms.current),!0}function bs(e,t,n){var o=e.stateNode;if(!o)throw Error(r(169));n?(e=js(e,t,Ls),o.__reactInternalMemoizedMergedChildContext=e,us(Ms),us(ps),As(ps,e)):us(Ms),As(Ms,n)}var ys=null,fs=null,xs=i.unstable_runWithPriority,Ns=i.unstable_scheduleCallback,Ss=i.unstable_cancelCallback,Ds=i.unstable_shouldYield,Is=i.unstable_requestPaint,vs=i.unstable_now,Es=i.unstable_getCurrentPriorityLevel,Ts=i.unstable_ImmediatePriority,zs=i.unstable_UserBlockingPriority,Os=i.unstable_NormalPriority,ks=i.unstable_LowPriority,Ys=i.unstable_IdlePriority,Ps={},Bs=void 0!==Is?Is:function(){},Rs=null,Us=null,Gs=!1,Zs=vs(),_s=1e4>Zs?vs:function(){return vs()-Zs};function Ws(){switch(Es()){case Ts:return 99;case zs:return 98;case Os:return 97;case ks:return 96;case Ys:return 95;default:throw Error(r(332))}}function Hs(e){switch(e){case 99:return Ts;case 98:return zs;case 97:return Os;case 96:return ks;case 95:return Ys;default:throw Error(r(332))}}function Qs(e,t){return e=Hs(e),xs(e,t)}function Fs(e,t,n){return e=Hs(e),Ns(e,t,n)}function Vs(){if(null!==Us){var e=Us;Us=null,Ss(e)}Js()}function Js(){if(!Gs&&null!==Rs){Gs=!0;var e=0;try{var t=Rs;Qs(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Rs=null}catch(t){throw null!==Rs&&(Rs=Rs.slice(e+1)),Ns(Ts,Vs),t}finally{Gs=!1}}}var Xs=m.ReactCurrentBatchConfig;function qs(e,t){if(e&&e.defaultProps){for(var n in t=s({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Ks=cs(null),$s=null,ei=null,ti=null;function ni(){ti=ei=$s=null}function oi(e){var t=Ks.current;us(Ks),e.type._context._currentValue=t}function si(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ii(e,t){$s=e,ti=ei=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(Yr=!0),e.firstContext=null)}function ri(e,t){if(ti!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(ti=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ei){if(null===$s)throw Error(r(308));ei=t,$s.dependencies={lanes:0,firstContext:t,responders:null}}else ei=ei.next=t;return e._currentValue}var ai=!1;function li(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ci(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ui(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ai(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function di(e,t){var n=e.updateQueue,o=e.alternate;if(null!==o&&n===(o=o.updateQueue)){var s=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var r={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?s=i=r:i=i.next=r,n=n.next}while(null!==n);null===i?s=i=t:i=i.next=t}else s=i=t;return n={baseState:o.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:o.shared,effects:o.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function pi(e,t,n,o){var i=e.updateQueue;ai=!1;var r=i.firstBaseUpdate,a=i.lastBaseUpdate,l=i.shared.pending;if(null!==l){i.shared.pending=null;var c=l,u=c.next;c.next=null,null===a?r=u:a.next=u,a=c;var A=e.alternate;if(null!==A){var d=(A=A.updateQueue).lastBaseUpdate;d!==a&&(null===d?A.firstBaseUpdate=u:d.next=u,A.lastBaseUpdate=c)}}if(null!==r){for(d=i.baseState,a=0,A=u=c=null;;){l=r.lane;var p=r.eventTime;if((o&l)===l){null!==A&&(A=A.next={eventTime:p,lane:0,tag:r.tag,payload:r.payload,callback:r.callback,next:null});e:{var M=e,L=r;switch(l=t,p=n,L.tag){case 1:if("function"==typeof(M=L.payload)){d=M.call(p,d,l);break e}d=M;break e;case 3:M.flags=-4097&M.flags|64;case 0:if(null==(l="function"==typeof(M=L.payload)?M.call(p,d,l):M))break e;d=s({},d,l);break e;case 2:ai=!0}}null!==r.callback&&(e.flags|=32,null===(l=i.effects)?i.effects=[r]:l.push(r))}else p={eventTime:p,lane:l,tag:r.tag,payload:r.payload,callback:r.callback,next:null},null===A?(u=A=p,c=d):A=A.next=p,a|=l;if(null===(r=r.next)){if(null===(l=i.shared.pending))break;r=l.next,l.next=null,i.lastBaseUpdate=l,i.shared.pending=null}}null===A&&(c=d),i.baseState=c,i.firstBaseUpdate=u,i.lastBaseUpdate=A,Ra|=a,e.lanes=a,e.memoizedState=d}}function Mi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],s=o.callback;if(null!==s){if(o.callback=null,o=n,"function"!=typeof s)throw Error(r(191,s));s.call(o)}}}var Li=(new o.Component).refs;function Ci(e,t,n,o){n=null==(n=n(o,t=e.memoizedState))?t:s({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var hi={isMounted:function(e){return!!(e=e._reactInternals)&&Je(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var o=ul(),s=Al(e),i=ui(o,s);i.payload=t,null!=n&&(i.callback=n),Ai(e,i),dl(e,s,o)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var o=ul(),s=Al(e),i=ui(o,s);i.tag=1,i.payload=t,null!=n&&(i.callback=n),Ai(e,i),dl(e,s,o)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ul(),o=Al(e),s=ui(n,o);s.tag=2,null!=t&&(s.callback=t),Ai(e,s),dl(e,o,n)}};function gi(e,t,n,o,s,i,r){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(o,i,r):!(t.prototype&&t.prototype.isPureReactComponent&&Ao(n,o)&&Ao(s,i))}function wi(e,t,n){var o=!1,s=ds,i=t.contextType;return"object"==typeof i&&null!==i?i=ri(i):(s=hs(t)?Ls:ps.current,i=(o=null!=(o=t.contextTypes))?Cs(e,s):ds),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=hi,e.stateNode=t,t._reactInternals=e,o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function ji(e,t,n,o){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,o),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,o),t.state!==e&&hi.enqueueReplaceState(t,t.state,null)}function mi(e,t,n,o){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs=Li,li(e);var i=t.contextType;"object"==typeof i&&null!==i?s.context=ri(i):(i=hs(t)?Ls:ps.current,s.context=Cs(e,i)),pi(e,n,s,o),s.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Ci(e,t,i,n),s.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof s.getSnapshotBeforeUpdate||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||(t=s.state,"function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount(),t!==s.state&&hi.enqueueReplaceState(s,s.state,null),pi(e,n,s,o),s.state=e.memoizedState),"function"==typeof s.componentDidMount&&(e.flags|=4)}var bi=Array.isArray;function yi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(r(309));var o=n.stateNode}if(!o)throw Error(r(147,e));var s=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===s?t.ref:(t=function(e){var t=o.refs;t===Li&&(t=o.refs={}),null===e?delete t[s]:t[s]=e},t._stringRef=s,t)}if("string"!=typeof e)throw Error(r(284));if(!n._owner)throw Error(r(290,e))}return e}function fi(e,t){if("textarea"!==e.type)throw Error(r(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function xi(e){function t(t,n){if(e){var o=t.lastEffect;null!==o?(o.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,o){if(!e)return null;for(;null!==o;)t(n,o),o=o.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function s(e,t){return(e=Zl(e,t)).index=0,e.sibling=null,e}function i(t,n,o){return t.index=o,e?null!==(o=t.alternate)?(o=o.index)<n?(t.flags=2,n):o:(t.flags=2,n):n}function a(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,o){return null===t||6!==t.tag?((t=Ql(n,e.mode,o)).return=e,t):((t=s(t,n)).return=e,t)}function c(e,t,n,o){return null!==t&&t.elementType===n.type?((o=s(t,n.props)).ref=yi(e,t,n),o.return=e,o):((o=_l(n.type,n.key,n.props,null,e.mode,o)).ref=yi(e,t,n),o.return=e,o)}function u(e,t,n,o){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fl(n,e.mode,o)).return=e,t):((t=s(t,n.children||[])).return=e,t)}function A(e,t,n,o,i){return null===t||7!==t.tag?((t=Wl(n,e.mode,o,i)).return=e,t):((t=s(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Ql(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case b:return(n=_l(t.type,t.key,t.props,null,e.mode,n)).ref=yi(e,null,t),n.return=e,n;case y:return(t=Fl(t,e.mode,n)).return=e,t}if(bi(t)||Z(t))return(t=Wl(t,e.mode,n,null)).return=e,t;fi(e,t)}return null}function p(e,t,n,o){var s=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==s?null:l(e,t,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case b:return n.key===s?n.type===f?A(e,t,n.props.children,o,s):c(e,t,n,o):null;case y:return n.key===s?u(e,t,n,o):null}if(bi(n)||Z(n))return null!==s?null:A(e,t,n,o,null);fi(e,n)}return null}function M(e,t,n,o,s){if("string"==typeof o||"number"==typeof o)return l(t,e=e.get(n)||null,""+o,s);if("object"==typeof o&&null!==o){switch(o.$$typeof){case b:return e=e.get(null===o.key?n:o.key)||null,o.type===f?A(t,e,o.props.children,s,o.key):c(t,e,o,s);case y:return u(t,e=e.get(null===o.key?n:o.key)||null,o,s)}if(bi(o)||Z(o))return A(t,e=e.get(n)||null,o,s,null);fi(t,o)}return null}function L(s,r,a,l){for(var c=null,u=null,A=r,L=r=0,C=null;null!==A&&L<a.length;L++){A.index>L?(C=A,A=null):C=A.sibling;var h=p(s,A,a[L],l);if(null===h){null===A&&(A=C);break}e&&A&&null===h.alternate&&t(s,A),r=i(h,r,L),null===u?c=h:u.sibling=h,u=h,A=C}if(L===a.length)return n(s,A),c;if(null===A){for(;L<a.length;L++)null!==(A=d(s,a[L],l))&&(r=i(A,r,L),null===u?c=A:u.sibling=A,u=A);return c}for(A=o(s,A);L<a.length;L++)null!==(C=M(A,s,L,a[L],l))&&(e&&null!==C.alternate&&A.delete(null===C.key?L:C.key),r=i(C,r,L),null===u?c=C:u.sibling=C,u=C);return e&&A.forEach((function(e){return t(s,e)})),c}function C(s,a,l,c){var u=Z(l);if("function"!=typeof u)throw Error(r(150));if(null==(l=u.call(l)))throw Error(r(151));for(var A=u=null,L=a,C=a=0,h=null,g=l.next();null!==L&&!g.done;C++,g=l.next()){L.index>C?(h=L,L=null):h=L.sibling;var w=p(s,L,g.value,c);if(null===w){null===L&&(L=h);break}e&&L&&null===w.alternate&&t(s,L),a=i(w,a,C),null===A?u=w:A.sibling=w,A=w,L=h}if(g.done)return n(s,L),u;if(null===L){for(;!g.done;C++,g=l.next())null!==(g=d(s,g.value,c))&&(a=i(g,a,C),null===A?u=g:A.sibling=g,A=g);return u}for(L=o(s,L);!g.done;C++,g=l.next())null!==(g=M(L,s,C,g.value,c))&&(e&&null!==g.alternate&&L.delete(null===g.key?C:g.key),a=i(g,a,C),null===A?u=g:A.sibling=g,A=g);return e&&L.forEach((function(e){return t(s,e)})),u}return function(e,o,i,l){var c="object"==typeof i&&null!==i&&i.type===f&&null===i.key;c&&(i=i.props.children);var u="object"==typeof i&&null!==i;if(u)switch(i.$$typeof){case b:e:{for(u=i.key,c=o;null!==c;){if(c.key===u){if(7===c.tag){if(i.type===f){n(e,c.sibling),(o=s(c,i.props.children)).return=e,e=o;break e}}else if(c.elementType===i.type){n(e,c.sibling),(o=s(c,i.props)).ref=yi(e,c,i),o.return=e,e=o;break e}n(e,c);break}t(e,c),c=c.sibling}i.type===f?((o=Wl(i.props.children,e.mode,l,i.key)).return=e,e=o):((l=_l(i.type,i.key,i.props,null,e.mode,l)).ref=yi(e,o,i),l.return=e,e=l)}return a(e);case y:e:{for(c=i.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===i.containerInfo&&o.stateNode.implementation===i.implementation){n(e,o.sibling),(o=s(o,i.children||[])).return=e,e=o;break e}n(e,o);break}t(e,o),o=o.sibling}(o=Fl(i,e.mode,l)).return=e,e=o}return a(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==o&&6===o.tag?(n(e,o.sibling),(o=s(o,i)).return=e,e=o):(n(e,o),(o=Ql(i,e.mode,l)).return=e,e=o),a(e);if(bi(i))return L(e,o,i,l);if(Z(i))return C(e,o,i,l);if(u&&fi(e,i),void 0===i&&!c)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(r(152,F(e.type)||"Component"))}return n(e,o)}}var Ni=xi(!0),Si=xi(!1),Di={},Ii=cs(Di),vi=cs(Di),Ei=cs(Di);function Ti(e){if(e===Di)throw Error(r(174));return e}function zi(e,t){switch(As(Ei,t),As(vi,e),As(Ii,Di),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pe(null,"");break;default:t=pe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}us(Ii),As(Ii,t)}function Oi(){us(Ii),us(vi),us(Ei)}function ki(e){Ti(Ei.current);var t=Ti(Ii.current),n=pe(t,e.type);t!==n&&(As(vi,e),As(Ii,n))}function Yi(e){vi.current===e&&(us(Ii),us(vi))}var Pi=cs(0);function Bi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(64&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ri=null,Ui=null,Gi=!1;function Zi(e,t){var n=Ul(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function _i(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Wi(e){if(Gi){var t=Ui;if(t){var n=t;if(!_i(e,t)){if(!(t=Vo(n.nextSibling))||!_i(e,t))return e.flags=-1025&e.flags|2,Gi=!1,void(Ri=e);Zi(Ri,n)}Ri=e,Ui=Vo(t.firstChild)}else e.flags=-1025&e.flags|2,Gi=!1,Ri=e}}function Hi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ri=e}function Qi(e){if(e!==Ri)return!1;if(!Gi)return Hi(e),Gi=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Wo(t,e.memoizedProps))for(t=Ui;t;)Zi(e,t),t=Vo(t.nextSibling);if(Hi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Ui=Vo(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Ui=null}}else Ui=Ri?Vo(e.stateNode.nextSibling):null;return!0}function Fi(){Ui=Ri=null,Gi=!1}var Vi=[];function Ji(){for(var e=0;e<Vi.length;e++)Vi[e]._workInProgressVersionPrimary=null;Vi.length=0}var Xi=m.ReactCurrentDispatcher,qi=m.ReactCurrentBatchConfig,Ki=0,$i=null,er=null,tr=null,nr=!1,or=!1;function sr(){throw Error(r(321))}function ir(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!co(e[n],t[n]))return!1;return!0}function rr(e,t,n,o,s,i){if(Ki=i,$i=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Xi.current=null===e||null===e.memoizedState?Tr:zr,e=n(o,s),or){i=0;do{if(or=!1,!(25>i))throw Error(r(301));i+=1,tr=er=null,t.updateQueue=null,Xi.current=Or,e=n(o,s)}while(or)}if(Xi.current=Er,t=null!==er&&null!==er.next,Ki=0,tr=er=$i=null,nr=!1,t)throw Error(r(300));return e}function ar(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===tr?$i.memoizedState=tr=e:tr=tr.next=e,tr}function lr(){if(null===er){var e=$i.alternate;e=null!==e?e.memoizedState:null}else e=er.next;var t=null===tr?$i.memoizedState:tr.next;if(null!==t)tr=t,er=e;else{if(null===e)throw Error(r(310));e={memoizedState:(er=e).memoizedState,baseState:er.baseState,baseQueue:er.baseQueue,queue:er.queue,next:null},null===tr?$i.memoizedState=tr=e:tr=tr.next=e}return tr}function cr(e,t){return"function"==typeof t?t(e):t}function ur(e){var t=lr(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var o=er,s=o.baseQueue,i=n.pending;if(null!==i){if(null!==s){var a=s.next;s.next=i.next,i.next=a}o.baseQueue=s=i,n.pending=null}if(null!==s){s=s.next,o=o.baseState;var l=a=i=null,c=s;do{var u=c.lane;if((Ki&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),o=c.eagerReducer===e?c.eagerState:e(o,c.action);else{var A={lane:u,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(a=l=A,i=o):l=l.next=A,$i.lanes|=u,Ra|=u}c=c.next}while(null!==c&&c!==s);null===l?i=o:l.next=a,co(o,t.memoizedState)||(Yr=!0),t.memoizedState=o,t.baseState=i,t.baseQueue=l,n.lastRenderedState=o}return[t.memoizedState,n.dispatch]}function Ar(e){var t=lr(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var o=n.dispatch,s=n.pending,i=t.memoizedState;if(null!==s){n.pending=null;var a=s=s.next;do{i=e(i,a.action),a=a.next}while(a!==s);co(i,t.memoizedState)||(Yr=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,o]}function dr(e,t,n){var o=t._getVersion;o=o(t._source);var s=t._workInProgressVersionPrimary;if(null!==s?e=s===o:(e=e.mutableReadLanes,(e=(Ki&e)===e)&&(t._workInProgressVersionPrimary=o,Vi.push(t))),e)return n(t._source);throw Vi.push(t),Error(r(350))}function pr(e,t,n,o){var s=Ea;if(null===s)throw Error(r(349));var i=t._getVersion,a=i(t._source),l=Xi.current,c=l.useState((function(){return dr(s,t,n)})),u=c[1],A=c[0];c=tr;var d=e.memoizedState,p=d.refs,M=p.getSnapshot,L=d.source;d=d.subscribe;var C=$i;return e.memoizedState={refs:p,source:t,subscribe:o},l.useEffect((function(){p.getSnapshot=n,p.setSnapshot=u;var e=i(t._source);if(!co(a,e)){e=n(t._source),co(A,e)||(u(e),e=Al(C),s.mutableReadLanes|=e&s.pendingLanes),e=s.mutableReadLanes,s.entangledLanes|=e;for(var o=s.entanglements,r=e;0<r;){var l=31-_t(r),c=1<<l;o[l]|=e,r&=~c}}}),[n,t,o]),l.useEffect((function(){return o(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var o=Al(C);s.mutableReadLanes|=o&s.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,o]),co(M,n)&&co(L,t)&&co(d,o)||((e={pending:null,dispatch:null,lastRenderedReducer:cr,lastRenderedState:A}).dispatch=u=vr.bind(null,$i,e),c.queue=e,c.baseQueue=null,A=dr(s,t,n),c.memoizedState=c.baseState=A),A}function Mr(e,t,n){return pr(lr(),e,t,n)}function Lr(e){var t=ar();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:cr,lastRenderedState:e}).dispatch=vr.bind(null,$i,e),[t.memoizedState,e]}function Cr(e,t,n,o){return e={tag:e,create:t,destroy:n,deps:o,next:null},null===(t=$i.updateQueue)?(t={lastEffect:null},$i.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(o=n.next,n.next=e,e.next=o,t.lastEffect=e),e}function hr(e){return e={current:e},ar().memoizedState=e}function gr(){return lr().memoizedState}function wr(e,t,n,o){var s=ar();$i.flags|=e,s.memoizedState=Cr(1|t,n,void 0,void 0===o?null:o)}function jr(e,t,n,o){var s=lr();o=void 0===o?null:o;var i=void 0;if(null!==er){var r=er.memoizedState;if(i=r.destroy,null!==o&&ir(o,r.deps))return void Cr(t,n,i,o)}$i.flags|=e,s.memoizedState=Cr(1|t,n,i,o)}function mr(e,t){return wr(516,4,e,t)}function br(e,t){return jr(516,4,e,t)}function yr(e,t){return jr(4,2,e,t)}function fr(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function xr(e,t,n){return n=null!=n?n.concat([e]):null,jr(4,2,fr.bind(null,t,e),n)}function Nr(){}function Sr(e,t){var n=lr();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&ir(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function Dr(e,t){var n=lr();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&ir(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)}function Ir(e,t){var n=Ws();Qs(98>n?98:n,(function(){e(!0)})),Qs(97<n?97:n,(function(){var n=qi.transition;qi.transition=1;try{e(!1),t()}finally{qi.transition=n}}))}function vr(e,t,n){var o=ul(),s=Al(e),i={lane:s,action:n,eagerReducer:null,eagerState:null,next:null},r=t.pending;if(null===r?i.next=i:(i.next=r.next,r.next=i),t.pending=i,r=e.alternate,e===$i||null!==r&&r===$i)or=nr=!0;else{if(0===e.lanes&&(null===r||0===r.lanes)&&null!==(r=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=r(a,n);if(i.eagerReducer=r,i.eagerState=l,co(l,a))return}catch(e){}dl(e,s,o)}}var Er={readContext:ri,useCallback:sr,useContext:sr,useEffect:sr,useImperativeHandle:sr,useLayoutEffect:sr,useMemo:sr,useReducer:sr,useRef:sr,useState:sr,useDebugValue:sr,useDeferredValue:sr,useTransition:sr,useMutableSource:sr,useOpaqueIdentifier:sr,unstable_isNewReconciler:!1},Tr={readContext:ri,useCallback:function(e,t){return ar().memoizedState=[e,void 0===t?null:t],e},useContext:ri,useEffect:mr,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,wr(4,2,fr.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wr(4,2,e,t)},useMemo:function(e,t){var n=ar();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=ar();return t=void 0!==n?n(t):t,o.memoizedState=o.baseState=t,e=(e=o.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=vr.bind(null,$i,e),[o.memoizedState,e]},useRef:hr,useState:Lr,useDebugValue:Nr,useDeferredValue:function(e){var t=Lr(e),n=t[0],o=t[1];return mr((function(){var t=qi.transition;qi.transition=1;try{o(e)}finally{qi.transition=t}}),[e]),n},useTransition:function(){var e=Lr(!1),t=e[0];return hr(e=Ir.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var o=ar();return o.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},pr(o,e,t,n)},useOpaqueIdentifier:function(){if(Gi){var e=!1,t=function(e){return{$$typeof:k,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Xo++).toString(36))),Error(r(355))})),n=Lr(t)[1];return!(2&$i.mode)&&($i.flags|=516,Cr(5,(function(){n("r:"+(Xo++).toString(36))}),void 0,null)),t}return Lr(t="r:"+(Xo++).toString(36)),t},unstable_isNewReconciler:!1},zr={readContext:ri,useCallback:Sr,useContext:ri,useEffect:br,useImperativeHandle:xr,useLayoutEffect:yr,useMemo:Dr,useReducer:ur,useRef:gr,useState:function(){return ur(cr)},useDebugValue:Nr,useDeferredValue:function(e){var t=ur(cr),n=t[0],o=t[1];return br((function(){var t=qi.transition;qi.transition=1;try{o(e)}finally{qi.transition=t}}),[e]),n},useTransition:function(){var e=ur(cr)[0];return[gr().current,e]},useMutableSource:Mr,useOpaqueIdentifier:function(){return ur(cr)[0]},unstable_isNewReconciler:!1},Or={readContext:ri,useCallback:Sr,useContext:ri,useEffect:br,useImperativeHandle:xr,useLayoutEffect:yr,useMemo:Dr,useReducer:Ar,useRef:gr,useState:function(){return Ar(cr)},useDebugValue:Nr,useDeferredValue:function(e){var t=Ar(cr),n=t[0],o=t[1];return br((function(){var t=qi.transition;qi.transition=1;try{o(e)}finally{qi.transition=t}}),[e]),n},useTransition:function(){var e=Ar(cr)[0];return[gr().current,e]},useMutableSource:Mr,useOpaqueIdentifier:function(){return Ar(cr)[0]},unstable_isNewReconciler:!1},kr=m.ReactCurrentOwner,Yr=!1;function Pr(e,t,n,o){t.child=null===e?Si(t,null,n,o):Ni(t,e.child,n,o)}function Br(e,t,n,o,s){n=n.render;var i=t.ref;return ii(t,s),o=rr(e,t,n,o,i,s),null===e||Yr?(t.flags|=1,Pr(e,t,o,s),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~s,oa(e,t,s))}function Rr(e,t,n,o,s,i){if(null===e){var r=n.type;return"function"!=typeof r||Gl(r)||void 0!==r.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=_l(n.type,null,o,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=r,Ur(e,t,r,o,s,i))}return r=e.child,s&i||(s=r.memoizedProps,!(n=null!==(n=n.compare)?n:Ao)(s,o)||e.ref!==t.ref)?(t.flags|=1,(e=Zl(r,o)).ref=t.ref,e.return=t,t.child=e):oa(e,t,i)}function Ur(e,t,n,o,s,i){if(null!==e&&Ao(e.memoizedProps,o)&&e.ref===t.ref){if(Yr=!1,!(i&s))return t.lanes=e.lanes,oa(e,t,i);16384&e.flags&&(Yr=!0)}return _r(e,t,n,o,i)}function Gr(e,t,n){var o=t.pendingProps,s=o.children,i=null!==e?e.memoizedState:null;if("hidden"===o.mode||"unstable-defer-without-hiding"===o.mode)if(4&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},gl(0,e),null;t.memoizedState={baseLanes:0},gl(0,null!==i?i.baseLanes:n)}else t.memoizedState={baseLanes:0},gl(0,n);else null!==i?(o=i.baseLanes|n,t.memoizedState=null):o=n,gl(0,o);return Pr(e,t,s,n),t.child}function Zr(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function _r(e,t,n,o,s){var i=hs(n)?Ls:ps.current;return i=Cs(t,i),ii(t,s),n=rr(e,t,n,o,i,s),null===e||Yr?(t.flags|=1,Pr(e,t,n,s),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~s,oa(e,t,s))}function Wr(e,t,n,o,s){if(hs(n)){var i=!0;ms(t)}else i=!1;if(ii(t,s),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),wi(t,n,o),mi(t,n,o,s),o=!0;else if(null===e){var r=t.stateNode,a=t.memoizedProps;r.props=a;var l=r.context,c=n.contextType;c="object"==typeof c&&null!==c?ri(c):Cs(t,c=hs(n)?Ls:ps.current);var u=n.getDerivedStateFromProps,A="function"==typeof u||"function"==typeof r.getSnapshotBeforeUpdate;A||"function"!=typeof r.UNSAFE_componentWillReceiveProps&&"function"!=typeof r.componentWillReceiveProps||(a!==o||l!==c)&&ji(t,r,o,c),ai=!1;var d=t.memoizedState;r.state=d,pi(t,o,r,s),l=t.memoizedState,a!==o||d!==l||Ms.current||ai?("function"==typeof u&&(Ci(t,n,u,o),l=t.memoizedState),(a=ai||gi(t,n,a,o,d,l,c))?(A||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||("function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount()),"function"==typeof r.componentDidMount&&(t.flags|=4)):("function"==typeof r.componentDidMount&&(t.flags|=4),t.memoizedProps=o,t.memoizedState=l),r.props=o,r.state=l,r.context=c,o=a):("function"==typeof r.componentDidMount&&(t.flags|=4),o=!1)}else{r=t.stateNode,ci(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:qs(t.type,a),r.props=c,A=t.pendingProps,d=r.context,l="object"==typeof(l=n.contextType)&&null!==l?ri(l):Cs(t,l=hs(n)?Ls:ps.current);var p=n.getDerivedStateFromProps;(u="function"==typeof p||"function"==typeof r.getSnapshotBeforeUpdate)||"function"!=typeof r.UNSAFE_componentWillReceiveProps&&"function"!=typeof r.componentWillReceiveProps||(a!==A||d!==l)&&ji(t,r,o,l),ai=!1,d=t.memoizedState,r.state=d,pi(t,o,r,s);var M=t.memoizedState;a!==A||d!==M||Ms.current||ai?("function"==typeof p&&(Ci(t,n,p,o),M=t.memoizedState),(c=ai||gi(t,n,c,o,d,M,l))?(u||"function"!=typeof r.UNSAFE_componentWillUpdate&&"function"!=typeof r.componentWillUpdate||("function"==typeof r.componentWillUpdate&&r.componentWillUpdate(o,M,l),"function"==typeof r.UNSAFE_componentWillUpdate&&r.UNSAFE_componentWillUpdate(o,M,l)),"function"==typeof r.componentDidUpdate&&(t.flags|=4),"function"==typeof r.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof r.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof r.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=o,t.memoizedState=M),r.props=o,r.state=M,r.context=l,o=c):("function"!=typeof r.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof r.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),o=!1)}return Hr(e,t,n,o,i,s)}function Hr(e,t,n,o,s,i){Zr(e,t);var r=!!(64&t.flags);if(!o&&!r)return s&&bs(t,n,!1),oa(e,t,i);o=t.stateNode,kr.current=t;var a=r&&"function"!=typeof n.getDerivedStateFromError?null:o.render();return t.flags|=1,null!==e&&r?(t.child=Ni(t,e.child,null,i),t.child=Ni(t,null,a,i)):Pr(e,t,a,i),t.memoizedState=o.state,s&&bs(t,n,!0),t.child}function Qr(e){var t=e.stateNode;t.pendingContext?ws(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ws(0,t.context,!1),zi(e,t.containerInfo)}var Fr,Vr,Jr,Xr,qr={dehydrated:null,retryLane:0};function Kr(e,t,n){var o,s=t.pendingProps,i=Pi.current,r=!1;return(o=!!(64&t.flags))||(o=(null===e||null!==e.memoizedState)&&!!(2&i)),o?(r=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===s.fallback||!0===s.unstable_avoidThisFallback||(i|=1),As(Pi,1&i),null===e?(void 0!==s.fallback&&Wi(t),e=s.children,i=s.fallback,r?(e=$r(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=qr,e):"number"==typeof s.unstable_expectedLoadTime?(e=$r(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=qr,t.lanes=33554432,e):((n=Hl({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,r?(s=function(e,t,n,o,s){var i=t.mode,r=e.child;e=r.sibling;var a={mode:"hidden",children:n};return 2&i||t.child===r?n=Zl(r,a):((n=t.child).childLanes=0,n.pendingProps=a,null!==(r=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=r,r.nextEffect=null):t.firstEffect=t.lastEffect=null),null!==e?o=Zl(e,o):(o=Wl(o,i,s,null)).flags|=2,o.return=t,n.return=t,n.sibling=o,t.child=n,o}(e,t,s.children,s.fallback,n),r=t.child,i=e.child.memoizedState,r.memoizedState=null===i?{baseLanes:n}:{baseLanes:i.baseLanes|n},r.childLanes=e.childLanes&~n,t.memoizedState=qr,s):(n=function(e,t,n,o){var s=e.child;return e=s.sibling,n=Zl(s,{mode:"visible",children:n}),!(2&t.mode)&&(n.lanes=o),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}(e,t,s.children,n),t.memoizedState=null,n))}function $r(e,t,n,o){var s=e.mode,i=e.child;return t={mode:"hidden",children:t},2&s||null===i?i=Hl(t,s,0,null):(i.childLanes=0,i.pendingProps=t),n=Wl(n,s,o,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n}function ea(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),si(e.return,t)}function ta(e,t,n,o,s,i){var r=e.memoizedState;null===r?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:s,lastEffect:i}:(r.isBackwards=t,r.rendering=null,r.renderingStartTime=0,r.last=o,r.tail=n,r.tailMode=s,r.lastEffect=i)}function na(e,t,n){var o=t.pendingProps,s=o.revealOrder,i=o.tail;if(Pr(e,t,o.children,n),2&(o=Pi.current))o=1&o|2,t.flags|=64;else{if(null!==e&&64&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ea(e,n);else if(19===e.tag)ea(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(As(Pi,o),2&t.mode)switch(s){case"forwards":for(n=t.child,s=null;null!==n;)null!==(e=n.alternate)&&null===Bi(e)&&(s=n),n=n.sibling;null===(n=s)?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),ta(t,!1,s,n,i,t.lastEffect);break;case"backwards":for(n=null,s=t.child,t.child=null;null!==s;){if(null!==(e=s.alternate)&&null===Bi(e)){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}ta(t,!0,n,null,i,t.lastEffect);break;case"together":ta(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function oa(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ra|=t.lanes,n&t.childLanes){if(null!==e&&t.child!==e.child)throw Error(r(153));if(null!==t.child){for(n=Zl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Zl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function sa(e,t){if(!Gi)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var o=null;null!==n;)null!==n.alternate&&(o=n),n=n.sibling;null===o?t||null===e.tail?e.tail=null:e.tail.sibling=null:o.sibling=null}}function ia(e,t,n){var o=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return hs(t.type)&&gs(),null;case 3:return Oi(),us(Ms),us(ps),Ji(),(o=t.stateNode).pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),null!==e&&null!==e.child||(Qi(t)?t.flags|=4:o.hydrate||(t.flags|=256)),Vr(t),null;case 5:Yi(t);var i=Ti(Ei.current);if(n=t.type,null!==e&&null!=t.stateNode)Jr(e,t,n,o,i),e.ref!==t.ref&&(t.flags|=128);else{if(!o){if(null===t.stateNode)throw Error(r(166));return null}if(e=Ti(Ii.current),Qi(t)){o=t.stateNode,n=t.type;var a=t.memoizedProps;switch(o[Ko]=t,o[$o]=a,n){case"dialog":vo("cancel",o),vo("close",o);break;case"iframe":case"object":case"embed":vo("load",o);break;case"video":case"audio":for(e=0;e<No.length;e++)vo(No[e],o);break;case"source":vo("error",o);break;case"img":case"image":case"link":vo("error",o),vo("load",o);break;case"details":vo("toggle",o);break;case"input":ee(o,a),vo("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!a.multiple},vo("invalid",o);break;case"textarea":le(o,a),vo("invalid",o)}for(var c in ye(n,a),e=null,a)a.hasOwnProperty(c)&&(i=a[c],"children"===c?"string"==typeof i?o.textContent!==i&&(e=["children",i]):"number"==typeof i&&o.textContent!==""+i&&(e=["children",""+i]):l.hasOwnProperty(c)&&null!=i&&"onScroll"===c&&vo("scroll",o));switch(n){case"input":X(o),oe(o,a,!0);break;case"textarea":X(o),ue(o);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(o.onclick=Uo)}o=e,t.updateQueue=o,null!==o&&(t.flags|=4)}else{switch(c=9===i.nodeType?i:i.ownerDocument,e===Ae&&(e=de(n)),e===Ae?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof o.is?e=c.createElement(n,{is:o.is}):(e=c.createElement(n),"select"===n&&(c=e,o.multiple?c.multiple=!0:o.size&&(c.size=o.size))):e=c.createElementNS(e,n),e[Ko]=t,e[$o]=o,Fr(e,t,!1,!1),t.stateNode=e,c=fe(n,o),n){case"dialog":vo("cancel",e),vo("close",e),i=o;break;case"iframe":case"object":case"embed":vo("load",e),i=o;break;case"video":case"audio":for(i=0;i<No.length;i++)vo(No[i],e);i=o;break;case"source":vo("error",e),i=o;break;case"img":case"image":case"link":vo("error",e),vo("load",e),i=o;break;case"details":vo("toggle",e),i=o;break;case"input":ee(e,o),i=$(e,o),vo("invalid",e);break;case"option":i=ie(e,o);break;case"select":e._wrapperState={wasMultiple:!!o.multiple},i=s({},o,{value:void 0}),vo("invalid",e);break;case"textarea":le(e,o),i=ae(e,o),vo("invalid",e);break;default:i=o}ye(n,i);var u=i;for(a in u)if(u.hasOwnProperty(a)){var A=u[a];"style"===a?me(e,A):"dangerouslySetInnerHTML"===a?null!=(A=A?A.__html:void 0)&&Ce(e,A):"children"===a?"string"==typeof A?("textarea"!==n||""!==A)&&he(e,A):"number"==typeof A&&he(e,""+A):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(l.hasOwnProperty(a)?null!=A&&"onScroll"===a&&vo("scroll",e):null!=A&&j(e,a,A,c))}switch(n){case"input":X(e),oe(e,o,!1);break;case"textarea":X(e),ue(e);break;case"option":null!=o.value&&e.setAttribute("value",""+V(o.value));break;case"select":e.multiple=!!o.multiple,null!=(a=o.value)?re(e,!!o.multiple,a,!1):null!=o.defaultValue&&re(e,!!o.multiple,o.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Uo)}_o(n,o)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Xr(e,t,e.memoizedProps,o);else{if("string"!=typeof o&&null===t.stateNode)throw Error(r(166));n=Ti(Ei.current),Ti(Ii.current),Qi(t)?(o=t.stateNode,n=t.memoizedProps,o[Ko]=t,o.nodeValue!==n&&(t.flags|=4)):((o=(9===n.nodeType?n:n.ownerDocument).createTextNode(o))[Ko]=t,t.stateNode=o)}return null;case 13:return us(Pi),o=t.memoizedState,64&t.flags?(t.lanes=n,t):(o=null!==o,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Qi(t):n=null!==e.memoizedState,o&&!n&&2&t.mode&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||1&Pi.current?0===Ya&&(Ya=3):(0!==Ya&&3!==Ya||(Ya=4),null===Ea||!(134217727&Ra)&&!(134217727&Ua)||Cl(Ea,za))),(o||n)&&(t.flags|=4),null);case 4:return Oi(),Vr(t),null===e&&To(t.stateNode.containerInfo),null;case 10:return oi(t),null;case 19:if(us(Pi),null===(o=t.memoizedState))return null;if(a=!!(64&t.flags),null===(c=o.rendering))if(a)sa(o,!1);else{if(0!==Ya||null!==e&&64&e.flags)for(e=t.child;null!==e;){if(null!==(c=Bi(e))){for(t.flags|=64,sa(o,!1),null!==(a=c.updateQueue)&&(t.updateQueue=a,t.flags|=4),null===o.lastEffect&&(t.firstEffect=null),t.lastEffect=o.lastEffect,o=n,n=t.child;null!==n;)e=o,(a=n).flags&=2,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null,null===(c=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=c.childLanes,a.lanes=c.lanes,a.child=c.child,a.memoizedProps=c.memoizedProps,a.memoizedState=c.memoizedState,a.updateQueue=c.updateQueue,a.type=c.type,e=c.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return As(Pi,1&Pi.current|2),t.child}e=e.sibling}null!==o.tail&&_s()>Wa&&(t.flags|=64,a=!0,sa(o,!1),t.lanes=33554432)}else{if(!a)if(null!==(e=Bi(c))){if(t.flags|=64,a=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),sa(o,!0),null===o.tail&&"hidden"===o.tailMode&&!c.alternate&&!Gi)return null!==(t=t.lastEffect=o.lastEffect)&&(t.nextEffect=null),null}else 2*_s()-o.renderingStartTime>Wa&&1073741824!==n&&(t.flags|=64,a=!0,sa(o,!1),t.lanes=33554432);o.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=o.last)?n.sibling=c:t.child=c,o.last=c)}return null!==o.tail?(n=o.tail,o.rendering=n,o.tail=n.sibling,o.lastEffect=t.lastEffect,o.renderingStartTime=_s(),n.sibling=null,t=Pi.current,As(Pi,a?1&t|2:1&t),n):null;case 23:case 24:return wl(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==o.mode&&(t.flags|=4),null}throw Error(r(156,t.tag))}function ra(e){switch(e.tag){case 1:hs(e.type)&&gs();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Oi(),us(Ms),us(ps),Ji(),64&(t=e.flags))throw Error(r(285));return e.flags=-4097&t|64,e;case 5:return Yi(e),null;case 13:return us(Pi),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return us(Pi),null;case 4:return Oi(),null;case 10:return oi(e),null;case 23:case 24:return wl(),null;default:return null}}function aa(e,t){try{var n="",o=t;do{n+=Q(o),o=o.return}while(o);var s=n}catch(e){s="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:s}}function la(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Fr=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Vr=function(){},Jr=function(e,t,n,o){var i=e.memoizedProps;if(i!==o){e=t.stateNode,Ti(Ii.current);var r,a=null;switch(n){case"input":i=$(e,i),o=$(e,o),a=[];break;case"option":i=ie(e,i),o=ie(e,o),a=[];break;case"select":i=s({},i,{value:void 0}),o=s({},o,{value:void 0}),a=[];break;case"textarea":i=ae(e,i),o=ae(e,o),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof o.onClick&&(e.onclick=Uo)}for(A in ye(n,o),n=null,i)if(!o.hasOwnProperty(A)&&i.hasOwnProperty(A)&&null!=i[A])if("style"===A){var c=i[A];for(r in c)c.hasOwnProperty(r)&&(n||(n={}),n[r]="")}else"dangerouslySetInnerHTML"!==A&&"children"!==A&&"suppressContentEditableWarning"!==A&&"suppressHydrationWarning"!==A&&"autoFocus"!==A&&(l.hasOwnProperty(A)?a||(a=[]):(a=a||[]).push(A,null));for(A in o){var u=o[A];if(c=null!=i?i[A]:void 0,o.hasOwnProperty(A)&&u!==c&&(null!=u||null!=c))if("style"===A)if(c){for(r in c)!c.hasOwnProperty(r)||u&&u.hasOwnProperty(r)||(n||(n={}),n[r]="");for(r in u)u.hasOwnProperty(r)&&c[r]!==u[r]&&(n||(n={}),n[r]=u[r])}else n||(a||(a=[]),a.push(A,n)),n=u;else"dangerouslySetInnerHTML"===A?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(a=a||[]).push(A,u)):"children"===A?"string"!=typeof u&&"number"!=typeof u||(a=a||[]).push(A,""+u):"suppressContentEditableWarning"!==A&&"suppressHydrationWarning"!==A&&(l.hasOwnProperty(A)?(null!=u&&"onScroll"===A&&vo("scroll",e),a||c===u||(a=[])):"object"==typeof u&&null!==u&&u.$$typeof===k?u.toString():(a=a||[]).push(A,u))}n&&(a=a||[]).push("style",n);var A=a;(t.updateQueue=A)&&(t.flags|=4)}},Xr=function(e,t,n,o){n!==o&&(t.flags|=4)};var ca="function"==typeof WeakMap?WeakMap:Map;function ua(e,t,n){(n=ui(-1,n)).tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){Va||(Va=!0,Ja=o),la(0,t)},n}function Aa(e,t,n){(n=ui(-1,n)).tag=3;var o=e.type.getDerivedStateFromError;if("function"==typeof o){var s=t.value;n.payload=function(){return la(0,t),o(s)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof o&&(null===Xa?Xa=new Set([this]):Xa.add(this),la(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var da="function"==typeof WeakSet?WeakSet:Set;function pa(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Yl(e,t)}else t.current=null}function Ma(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,o=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:qs(t.type,n),o),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Fo(t.stateNode.containerInfo))}throw Error(r(163))}function La(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(!(3&~e.tag)){var o=e.create;e.destroy=o()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var s=e;o=s.next,4&(s=s.tag)&&1&s&&(zl(n,e),Tl(n,e)),e=o}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(o=n.elementType===n.type?t.memoizedProps:qs(n.type,t.memoizedProps),e.componentDidUpdate(o,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&Mi(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}Mi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&_o(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&mt(n)))))}throw Error(r(163))}function Ca(e,t){for(var n=e;;){if(5===n.tag){var o=n.stateNode;if(t)"function"==typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none";else{o=n.stateNode;var s=n.memoizedProps.style;s=null!=s&&s.hasOwnProperty("display")?s.display:null,o.style.display=je("display",s)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function ha(e,t){if(fs&&"function"==typeof fs.onCommitFiberUnmount)try{fs.onCommitFiberUnmount(ys,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var o=n,s=o.destroy;if(o=o.tag,void 0!==s)if(4&o)zl(t,n);else{o=t;try{s()}catch(e){Yl(o,e)}}n=n.next}while(n!==e)}break;case 1:if(pa(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Yl(t,e)}break;case 5:pa(t);break;case 4:ya(e,t)}}function ga(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function wa(e){return 5===e.tag||3===e.tag||4===e.tag}function ja(e){e:{for(var t=e.return;null!==t;){if(wa(t))break e;t=t.return}throw Error(r(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var o=!1;break;case 3:case 4:t=t.containerInfo,o=!0;break;default:throw Error(r(161))}16&n.flags&&(he(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||wa(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}o?ma(e,n,t):ba(e,n,t)}function ma(e,t,n){var o=e.tag,s=5===o||6===o;if(s)e=s?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Uo));else if(4!==o&&null!==(e=e.child))for(ma(e,t,n),e=e.sibling;null!==e;)ma(e,t,n),e=e.sibling}function ba(e,t,n){var o=e.tag,s=5===o||6===o;if(s)e=s?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==o&&null!==(e=e.child))for(ba(e,t,n),e=e.sibling;null!==e;)ba(e,t,n),e=e.sibling}function ya(e,t){for(var n,o,s=t,i=!1;;){if(!i){i=s.return;e:for(;;){if(null===i)throw Error(r(160));switch(n=i.stateNode,i.tag){case 5:o=!1;break e;case 3:case 4:n=n.containerInfo,o=!0;break e}i=i.return}i=!0}if(5===s.tag||6===s.tag){e:for(var a=e,l=s,c=l;;)if(ha(a,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===l)break e;for(;null===c.sibling;){if(null===c.return||c.return===l)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}o?(a=n,l=s.stateNode,8===a.nodeType?a.parentNode.removeChild(l):a.removeChild(l)):n.removeChild(s.stateNode)}else if(4===s.tag){if(null!==s.child){n=s.stateNode.containerInfo,o=!0,s.child.return=s,s=s.child;continue}}else if(ha(e,s),null!==s.child){s.child.return=s,s=s.child;continue}if(s===t)break;for(;null===s.sibling;){if(null===s.return||s.return===t)return;4===(s=s.return).tag&&(i=!1)}s.sibling.return=s.return,s=s.sibling}}function fa(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var o=n=n.next;do{!(3&~o.tag)&&(e=o.destroy,o.destroy=void 0,void 0!==e&&e()),o=o.next}while(o!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){o=t.memoizedProps;var s=null!==e?e.memoizedProps:o;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[$o]=o,"input"===e&&"radio"===o.type&&null!=o.name&&te(n,o),fe(e,s),t=fe(e,o),s=0;s<i.length;s+=2){var a=i[s],l=i[s+1];"style"===a?me(n,l):"dangerouslySetInnerHTML"===a?Ce(n,l):"children"===a?he(n,l):j(n,a,l,t)}switch(e){case"input":ne(n,o);break;case"textarea":ce(n,o);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!o.multiple,null!=(i=o.value)?re(n,!!o.multiple,i,!1):e!==!!o.multiple&&(null!=o.defaultValue?re(n,!!o.multiple,o.defaultValue,!0):re(n,!!o.multiple,o.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(r(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,mt(n.containerInfo)));case 13:return null!==t.memoizedState&&(_a=_s(),Ca(t.child,!0)),void xa(t);case 19:return void xa(t);case 23:case 24:return void Ca(t,null!==t.memoizedState)}throw Error(r(163))}function xa(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new da),t.forEach((function(t){var o=Bl.bind(null,e,t);n.has(t)||(n.add(t),t.then(o,o))}))}}function Na(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&null!==(t=t.memoizedState)&&null===t.dehydrated}var Sa=Math.ceil,Da=m.ReactCurrentDispatcher,Ia=m.ReactCurrentOwner,va=0,Ea=null,Ta=null,za=0,Oa=0,ka=cs(0),Ya=0,Pa=null,Ba=0,Ra=0,Ua=0,Ga=0,Za=null,_a=0,Wa=1/0;function Ha(){Wa=_s()+500}var Qa,Fa=null,Va=!1,Ja=null,Xa=null,qa=!1,Ka=null,$a=90,el=[],tl=[],nl=null,ol=0,sl=null,il=-1,rl=0,al=0,ll=null,cl=!1;function ul(){return 48&va?_s():-1!==il?il:il=_s()}function Al(e){if(!(2&(e=e.mode)))return 1;if(!(4&e))return 99===Ws()?1:2;if(0===rl&&(rl=Ba),0!==Xs.transition){0!==al&&(al=null!==Za?Za.pendingLanes:0),e=rl;var t=4186112&~al;return 0==(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=Ws(),e=Rt(4&va&&98===e?12:e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),rl)}function dl(e,t,n){if(50<ol)throw ol=0,sl=null,Error(r(185));if(null===(e=pl(e,t)))return null;Zt(e,t,n),e===Ea&&(Ua|=t,4===Ya&&Cl(e,za));var o=Ws();1===t?8&va&&!(48&va)?hl(e):(Ml(e,n),0===va&&(Ha(),Vs())):(!(4&va)||98!==o&&99!==o||(null===nl?nl=new Set([e]):nl.add(e)),Ml(e,n)),Za=e}function pl(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function Ml(e,t){for(var n=e.callbackNode,o=e.suspendedLanes,s=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var l=31-_t(a),c=1<<l,u=i[l];if(-1===u){if(!(c&o)||c&s){u=t,Yt(c);var A=kt;i[l]=10<=A?u+250:6<=A?u+5e3:-1}}else u<=t&&(e.expiredLanes|=c);a&=~c}if(o=Pt(e,e===Ea?za:0),t=kt,0===o)null!==n&&(n!==Ps&&Ss(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Ps&&Ss(n)}15===t?(n=hl.bind(null,e),null===Rs?(Rs=[n],Us=Ns(Ts,Js)):Rs.push(n),n=Ps):14===t?n=Fs(99,hl.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(r(358,e))}}(t),n=Fs(n,Ll.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function Ll(e){if(il=-1,al=rl=0,48&va)throw Error(r(327));var t=e.callbackNode;if(El()&&e.callbackNode!==t)return null;var n=Pt(e,e===Ea?za:0);if(0===n)return null;var o=n,s=va;va|=16;var i=bl();for(Ea===e&&za===o||(Ha(),jl(e,o));;)try{xl();break}catch(t){ml(e,t)}if(ni(),Da.current=i,va=s,null!==Ta?o=0:(Ea=null,za=0,o=Ya),Ba&Ua)jl(e,0);else if(0!==o){if(2===o&&(va|=64,e.hydrate&&(e.hydrate=!1,Fo(e.containerInfo)),0!==(n=Bt(e))&&(o=yl(e,n))),1===o)throw t=Pa,jl(e,0),Cl(e,n),Ml(e,_s()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,o){case 0:case 1:throw Error(r(345));case 2:case 5:Dl(e);break;case 3:if(Cl(e,n),(62914560&n)===n&&10<(o=_a+500-_s())){if(0!==Pt(e,0))break;if(((s=e.suspendedLanes)&n)!==n){ul(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Ho(Dl.bind(null,e),o);break}Dl(e);break;case 4:if(Cl(e,n),(4186112&n)===n)break;for(o=e.eventTimes,s=-1;0<n;){var a=31-_t(n);i=1<<a,(a=o[a])>s&&(s=a),n&=~i}if(n=s,10<(n=(120>(n=_s()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Sa(n/1960))-n)){e.timeoutHandle=Ho(Dl.bind(null,e),n);break}Dl(e);break;default:throw Error(r(329))}}return Ml(e,_s()),e.callbackNode===t?Ll.bind(null,e):null}function Cl(e,t){for(t&=~Ga,t&=~Ua,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-_t(t),o=1<<n;e[n]=-1,t&=~o}}function hl(e){if(48&va)throw Error(r(327));if(El(),e===Ea&&e.expiredLanes&za){var t=za,n=yl(e,t);Ba&Ua&&(n=yl(e,t=Pt(e,t)))}else n=yl(e,t=Pt(e,0));if(0!==e.tag&&2===n&&(va|=64,e.hydrate&&(e.hydrate=!1,Fo(e.containerInfo)),0!==(t=Bt(e))&&(n=yl(e,t))),1===n)throw n=Pa,jl(e,0),Cl(e,t),Ml(e,_s()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Dl(e),Ml(e,_s()),null}function gl(e,t){As(ka,Oa),Oa|=t,Ba|=t}function wl(){Oa=ka.current,us(ka)}function jl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Qo(n)),null!==Ta)for(n=Ta.return;null!==n;){var o=n;switch(o.tag){case 1:null!=(o=o.type.childContextTypes)&&gs();break;case 3:Oi(),us(Ms),us(ps),Ji();break;case 5:Yi(o);break;case 4:Oi();break;case 13:case 19:us(Pi);break;case 10:oi(o);break;case 23:case 24:wl()}n=n.return}Ea=e,Ta=Zl(e.current,null),za=Oa=Ba=t,Ya=0,Pa=null,Ga=Ua=Ra=0}function ml(e,t){for(;;){var n=Ta;try{if(ni(),Xi.current=Er,nr){for(var o=$i.memoizedState;null!==o;){var s=o.queue;null!==s&&(s.pending=null),o=o.next}nr=!1}if(Ki=0,tr=er=$i=null,or=!1,Ia.current=null,null===n||null===n.return){Ya=1,Pa=t,Ta=null;break}e:{var i=e,r=n.return,a=n,l=t;if(t=za,a.flags|=2048,a.firstEffect=a.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l;if(!(2&a.mode)){var u=a.alternate;u?(a.updateQueue=u.updateQueue,a.memoizedState=u.memoizedState,a.lanes=u.lanes):(a.updateQueue=null,a.memoizedState=null)}var A=!!(1&Pi.current),d=r;do{var p;if(p=13===d.tag){var M=d.memoizedState;if(null!==M)p=null!==M.dehydrated;else{var L=d.memoizedProps;p=void 0!==L.fallback&&(!0!==L.unstable_avoidThisFallback||!A)}}if(p){var C=d.updateQueue;if(null===C){var h=new Set;h.add(c),d.updateQueue=h}else C.add(c);if(!(2&d.mode)){if(d.flags|=64,a.flags|=16384,a.flags&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var g=ui(-1,1);g.tag=2,Ai(a,g)}a.lanes|=1;break e}l=void 0,a=t;var w=i.pingCache;if(null===w?(w=i.pingCache=new ca,l=new Set,w.set(c,l)):void 0===(l=w.get(c))&&(l=new Set,w.set(c,l)),!l.has(a)){l.add(a);var j=Pl.bind(null,i,c,a);c.then(j,j)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);l=Error((F(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Ya&&(Ya=2),l=aa(l,a),d=r;do{switch(d.tag){case 3:i=l,d.flags|=4096,t&=-t,d.lanes|=t,di(d,ua(0,i,t));break e;case 1:i=l;var m=d.type,b=d.stateNode;if(!(64&d.flags||"function"!=typeof m.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Xa&&Xa.has(b)))){d.flags|=4096,t&=-t,d.lanes|=t,di(d,Aa(d,i,t));break e}}d=d.return}while(null!==d)}Sl(n)}catch(e){t=e,Ta===n&&null!==n&&(Ta=n=n.return);continue}break}}function bl(){var e=Da.current;return Da.current=Er,null===e?Er:e}function yl(e,t){var n=va;va|=16;var o=bl();for(Ea===e&&za===t||jl(e,t);;)try{fl();break}catch(t){ml(e,t)}if(ni(),va=n,Da.current=o,null!==Ta)throw Error(r(261));return Ea=null,za=0,Ya}function fl(){for(;null!==Ta;)Nl(Ta)}function xl(){for(;null!==Ta&&!Ds();)Nl(Ta)}function Nl(e){var t=Qa(e.alternate,e,Oa);e.memoizedProps=e.pendingProps,null===t?Sl(e):Ta=t,Ia.current=null}function Sl(e){var t=e;do{var n=t.alternate;if(e=t.return,2048&t.flags){if(null!==(n=ra(t)))return n.flags&=2047,void(Ta=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(null!==(n=ia(n,t,Oa)))return void(Ta=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||1073741824&Oa||!(4&n.mode)){for(var o=0,s=n.child;null!==s;)o|=s.lanes|s.childLanes,s=s.sibling;n.childLanes=o}null!==e&&!(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}if(null!==(t=t.sibling))return void(Ta=t);Ta=t=e}while(null!==t);0===Ya&&(Ya=5)}function Dl(e){var t=Ws();return Qs(99,Il.bind(null,e,t)),null}function Il(e,t){do{El()}while(null!==Ka);if(48&va)throw Error(r(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(r(177));e.callbackNode=null;var o=n.lanes|n.childLanes,s=o,i=e.pendingLanes&~s;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=s,e.mutableReadLanes&=s,e.entangledLanes&=s,s=e.entanglements;for(var a=e.eventTimes,l=e.expirationTimes;0<i;){var c=31-_t(i),u=1<<c;s[c]=0,a[c]=-1,l[c]=-1,i&=~u}if(null!==nl&&!(24&o)&&nl.has(e)&&nl.delete(e),e===Ea&&(Ta=Ea=null,za=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,null!==o){if(s=va,va|=32,Ia.current=null,Go=Vt,ho(a=Co())){if("selectionStart"in a)l={start:a.selectionStart,end:a.selectionEnd};else e:if(l=(l=a.ownerDocument)&&l.defaultView||window,(u=l.getSelection&&l.getSelection())&&0!==u.rangeCount){l=u.anchorNode,i=u.anchorOffset,c=u.focusNode,u=u.focusOffset;try{l.nodeType,c.nodeType}catch(e){l=null;break e}var A=0,d=-1,p=-1,M=0,L=0,C=a,h=null;t:for(;;){for(var g;C!==l||0!==i&&3!==C.nodeType||(d=A+i),C!==c||0!==u&&3!==C.nodeType||(p=A+u),3===C.nodeType&&(A+=C.nodeValue.length),null!==(g=C.firstChild);)h=C,C=g;for(;;){if(C===a)break t;if(h===l&&++M===i&&(d=A),h===c&&++L===u&&(p=A),null!==(g=C.nextSibling))break;h=(C=h).parentNode}C=g}l=-1===d||-1===p?null:{start:d,end:p}}else l=null;l=l||{start:0,end:0}}else l=null;Zo={focusedElem:a,selectionRange:l},Vt=!1,ll=null,cl=!1,Fa=o;do{try{vl()}catch(e){if(null===Fa)throw Error(r(330));Yl(Fa,e),Fa=Fa.nextEffect}}while(null!==Fa);ll=null,Fa=o;do{try{for(a=e;null!==Fa;){var w=Fa.flags;if(16&w&&he(Fa.stateNode,""),128&w){var j=Fa.alternate;if(null!==j){var m=j.ref;null!==m&&("function"==typeof m?m(null):m.current=null)}}switch(1038&w){case 2:ja(Fa),Fa.flags&=-3;break;case 6:ja(Fa),Fa.flags&=-3,fa(Fa.alternate,Fa);break;case 1024:Fa.flags&=-1025;break;case 1028:Fa.flags&=-1025,fa(Fa.alternate,Fa);break;case 4:fa(Fa.alternate,Fa);break;case 8:ya(a,l=Fa);var b=l.alternate;ga(l),null!==b&&ga(b)}Fa=Fa.nextEffect}}catch(e){if(null===Fa)throw Error(r(330));Yl(Fa,e),Fa=Fa.nextEffect}}while(null!==Fa);if(m=Zo,j=Co(),w=m.focusedElem,a=m.selectionRange,j!==w&&w&&w.ownerDocument&&Lo(w.ownerDocument.documentElement,w)){null!==a&&ho(w)&&(j=a.start,void 0===(m=a.end)&&(m=j),"selectionStart"in w?(w.selectionStart=j,w.selectionEnd=Math.min(m,w.value.length)):(m=(j=w.ownerDocument||document)&&j.defaultView||window).getSelection&&(m=m.getSelection(),l=w.textContent.length,b=Math.min(a.start,l),a=void 0===a.end?b:Math.min(a.end,l),!m.extend&&b>a&&(l=a,a=b,b=l),l=Mo(w,b),i=Mo(w,a),l&&i&&(1!==m.rangeCount||m.anchorNode!==l.node||m.anchorOffset!==l.offset||m.focusNode!==i.node||m.focusOffset!==i.offset)&&((j=j.createRange()).setStart(l.node,l.offset),m.removeAllRanges(),b>a?(m.addRange(j),m.extend(i.node,i.offset)):(j.setEnd(i.node,i.offset),m.addRange(j))))),j=[];for(m=w;m=m.parentNode;)1===m.nodeType&&j.push({element:m,left:m.scrollLeft,top:m.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w<j.length;w++)(m=j[w]).element.scrollLeft=m.left,m.element.scrollTop=m.top}Vt=!!Go,Zo=Go=null,e.current=n,Fa=o;do{try{for(w=e;null!==Fa;){var y=Fa.flags;if(36&y&&La(w,Fa.alternate,Fa),128&y){j=void 0;var f=Fa.ref;if(null!==f){var x=Fa.stateNode;Fa.tag,j=x,"function"==typeof f?f(j):f.current=j}}Fa=Fa.nextEffect}}catch(e){if(null===Fa)throw Error(r(330));Yl(Fa,e),Fa=Fa.nextEffect}}while(null!==Fa);Fa=null,Bs(),va=s}else e.current=n;if(qa)qa=!1,Ka=e,$a=t;else for(Fa=o;null!==Fa;)t=Fa.nextEffect,Fa.nextEffect=null,8&Fa.flags&&((y=Fa).sibling=null,y.stateNode=null),Fa=t;if(0===(o=e.pendingLanes)&&(Xa=null),1===o?e===sl?ol++:(ol=0,sl=e):ol=0,n=n.stateNode,fs&&"function"==typeof fs.onCommitFiberRoot)try{fs.onCommitFiberRoot(ys,n,void 0,!(64&~n.current.flags))}catch(e){}if(Ml(e,_s()),Va)throw Va=!1,e=Ja,Ja=null,e;return 8&va||Vs(),null}function vl(){for(;null!==Fa;){var e=Fa.alternate;cl||null===ll||(8&Fa.flags?$e(Fa,ll)&&(cl=!0):13===Fa.tag&&Na(e,Fa)&&$e(Fa,ll)&&(cl=!0));var t=Fa.flags;256&t&&Ma(e,Fa),!(512&t)||qa||(qa=!0,Fs(97,(function(){return El(),null}))),Fa=Fa.nextEffect}}function El(){if(90!==$a){var e=97<$a?97:$a;return $a=90,Qs(e,Ol)}return!1}function Tl(e,t){el.push(t,e),qa||(qa=!0,Fs(97,(function(){return El(),null})))}function zl(e,t){tl.push(t,e),qa||(qa=!0,Fs(97,(function(){return El(),null})))}function Ol(){if(null===Ka)return!1;var e=Ka;if(Ka=null,48&va)throw Error(r(331));var t=va;va|=32;var n=tl;tl=[];for(var o=0;o<n.length;o+=2){var s=n[o],i=n[o+1],a=s.destroy;if(s.destroy=void 0,"function"==typeof a)try{a()}catch(e){if(null===i)throw Error(r(330));Yl(i,e)}}for(n=el,el=[],o=0;o<n.length;o+=2){s=n[o],i=n[o+1];try{var l=s.create;s.destroy=l()}catch(e){if(null===i)throw Error(r(330));Yl(i,e)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return va=t,Vs(),!0}function kl(e,t,n){Ai(e,t=ua(0,t=aa(n,t),1)),t=ul(),null!==(e=pl(e,1))&&(Zt(e,1,t),Ml(e,t))}function Yl(e,t){if(3===e.tag)kl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){kl(n,e,t);break}if(1===n.tag){var o=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof o.componentDidCatch&&(null===Xa||!Xa.has(o))){var s=Aa(n,e=aa(t,e),1);if(Ai(n,s),s=ul(),null!==(n=pl(n,1)))Zt(n,1,s),Ml(n,s);else if("function"==typeof o.componentDidCatch&&(null===Xa||!Xa.has(o)))try{o.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Pl(e,t,n){var o=e.pingCache;null!==o&&o.delete(t),t=ul(),e.pingedLanes|=e.suspendedLanes&n,Ea===e&&(za&n)===n&&(4===Ya||3===Ya&&(62914560&za)===za&&500>_s()-_a?jl(e,0):Ga|=n),Ml(e,t)}function Bl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(2&(t=e.mode)?4&t?(0===rl&&(rl=Ba),0===(t=Ut(62914560&~rl))&&(t=4194304)):t=99===Ws()?1:2:t=1),n=ul(),null!==(e=pl(e,t))&&(Zt(e,t,n),Ml(e,n))}function Rl(e,t,n,o){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Ul(e,t,n,o){return new Rl(e,t,n,o)}function Gl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Zl(e,t){var n=e.alternate;return null===n?((n=Ul(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function _l(e,t,n,o,s,i){var a=2;if(o=e,"function"==typeof e)Gl(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case f:return Wl(n.children,s,i,t);case Y:a=8,s|=16;break;case x:a=8,s|=1;break;case N:return(e=Ul(12,n,t,8|s)).elementType=N,e.type=N,e.lanes=i,e;case v:return(e=Ul(13,n,t,s)).type=v,e.elementType=v,e.lanes=i,e;case E:return(e=Ul(19,n,t,s)).elementType=E,e.lanes=i,e;case P:return Hl(n,s,i,t);case B:return(e=Ul(24,n,t,s)).elementType=B,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case S:a=10;break e;case D:a=9;break e;case I:a=11;break e;case T:a=14;break e;case z:a=16,o=null;break e;case O:a=22;break e}throw Error(r(130,null==e?e:typeof e,""))}return(t=Ul(a,n,t,s)).elementType=e,t.type=o,t.lanes=i,t}function Wl(e,t,n,o){return(e=Ul(7,e,o,t)).lanes=n,e}function Hl(e,t,n,o){return(e=Ul(23,e,o,t)).elementType=P,e.lanes=n,e}function Ql(e,t,n){return(e=Ul(6,e,null,t)).lanes=n,e}function Fl(e,t,n){return(t=Ul(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vl(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Gt(0),this.expirationTimes=Gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gt(0),this.mutableSourceEagerHydrationData=null}function Jl(e,t,n,o){var s=t.current,i=ul(),a=Al(s);e:if(n){t:{if(Je(n=n._reactInternals)!==n||1!==n.tag)throw Error(r(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(hs(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(r(171))}if(1===n.tag){var c=n.type;if(hs(c)){n=js(n,c,l);break e}}n=l}else n=ds;return null===t.context?t.context=n:t.pendingContext=n,(t=ui(i,a)).payload={element:e},null!==(o=void 0===o?null:o)&&(t.callback=o),Ai(s,t),dl(s,a,i),a}function Xl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function ql(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Kl(e,t){ql(e,t),(e=e.alternate)&&ql(e,t)}function $l(e,t,n){var o=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Vl(e,t,null!=n&&!0===n.hydrate),t=Ul(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,li(t),e[es]=n.current,To(8===e.nodeType?e.parentNode:e),o)for(e=0;e<o.length;e++){var s=(t=o[e])._getVersion;s=s(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,s]:n.mutableSourceEagerHydrationData.push(t,s)}this._internalRoot=n}function ec(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function tc(e,t,n,o,s){var i=n._reactRootContainer;if(i){var r=i._internalRoot;if("function"==typeof s){var a=s;s=function(){var e=Xl(r);a.call(e)}}Jl(t,r,e,s)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new $l(e,0,t?{hydrate:!0}:void 0)}(n,o),r=i._internalRoot,"function"==typeof s){var l=s;s=function(){var e=Xl(r);l.call(e)}}!function(e,t){var n=va;va&=-2,va|=8;try{return e(t)}finally{0===(va=n)&&(Ha(),Vs())}}((function(){Jl(t,r,e,s)}))}return Xl(r)}Qa=function(e,t,n){var o=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||Ms.current)Yr=!0;else{if(!(n&o)){switch(Yr=!1,t.tag){case 3:Qr(t),Fi();break;case 5:ki(t);break;case 1:hs(t.type)&&ms(t);break;case 4:zi(t,t.stateNode.containerInfo);break;case 10:o=t.memoizedProps.value;var s=t.type._context;As(Ks,s._currentValue),s._currentValue=o;break;case 13:if(null!==t.memoizedState)return n&t.child.childLanes?Kr(e,t,n):(As(Pi,1&Pi.current),null!==(t=oa(e,t,n))?t.sibling:null);As(Pi,1&Pi.current);break;case 19:if(o=!!(n&t.childLanes),64&e.flags){if(o)return na(e,t,n);t.flags|=64}if(null!==(s=t.memoizedState)&&(s.rendering=null,s.tail=null,s.lastEffect=null),As(Pi,Pi.current),o)break;return null;case 23:case 24:return t.lanes=0,Gr(e,t,n)}return oa(e,t,n)}Yr=!!(16384&e.flags)}else Yr=!1;switch(t.lanes=0,t.tag){case 2:if(o=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,s=Cs(t,ps.current),ii(t,n),s=rr(null,t,o,e,s,n),t.flags|=1,"object"==typeof s&&null!==s&&"function"==typeof s.render&&void 0===s.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,hs(o)){var i=!0;ms(t)}else i=!1;t.memoizedState=null!==s.state&&void 0!==s.state?s.state:null,li(t);var a=o.getDerivedStateFromProps;"function"==typeof a&&Ci(t,o,a,e),s.updater=hi,t.stateNode=s,s._reactInternals=t,mi(t,o,e,n),t=Hr(null,t,o,!0,i,n)}else t.tag=0,Pr(null,t,s,n),t=t.child;return t;case 16:s=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,s=(i=s._init)(s._payload),t.type=s,i=t.tag=function(e){if("function"==typeof e)return Gl(e)?1:0;if(null!=e){if((e=e.$$typeof)===I)return 11;if(e===T)return 14}return 2}(s),e=qs(s,e),i){case 0:t=_r(null,t,s,e,n);break e;case 1:t=Wr(null,t,s,e,n);break e;case 11:t=Br(null,t,s,e,n);break e;case 14:t=Rr(null,t,s,qs(s.type,e),o,n);break e}throw Error(r(306,s,""))}return t;case 0:return o=t.type,s=t.pendingProps,_r(e,t,o,s=t.elementType===o?s:qs(o,s),n);case 1:return o=t.type,s=t.pendingProps,Wr(e,t,o,s=t.elementType===o?s:qs(o,s),n);case 3:if(Qr(t),o=t.updateQueue,null===e||null===o)throw Error(r(282));if(o=t.pendingProps,s=null!==(s=t.memoizedState)?s.element:null,ci(e,t),pi(t,o,null,n),(o=t.memoizedState.element)===s)Fi(),t=oa(e,t,n);else{if((i=(s=t.stateNode).hydrate)&&(Ui=Vo(t.stateNode.containerInfo.firstChild),Ri=t,i=Gi=!0),i){if(null!=(e=s.mutableSourceEagerHydrationData))for(s=0;s<e.length;s+=2)(i=e[s])._workInProgressVersionPrimary=e[s+1],Vi.push(i);for(n=Si(t,null,o,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Pr(e,t,o,n),Fi();t=t.child}return t;case 5:return ki(t),null===e&&Wi(t),o=t.type,s=t.pendingProps,i=null!==e?e.memoizedProps:null,a=s.children,Wo(o,s)?a=null:null!==i&&Wo(o,i)&&(t.flags|=16),Zr(e,t),Pr(e,t,a,n),t.child;case 6:return null===e&&Wi(t),null;case 13:return Kr(e,t,n);case 4:return zi(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=Ni(t,null,o,n):Pr(e,t,o,n),t.child;case 11:return o=t.type,s=t.pendingProps,Br(e,t,o,s=t.elementType===o?s:qs(o,s),n);case 7:return Pr(e,t,t.pendingProps,n),t.child;case 8:case 12:return Pr(e,t,t.pendingProps.children,n),t.child;case 10:e:{o=t.type._context,s=t.pendingProps,a=t.memoizedProps,i=s.value;var l=t.type._context;if(As(Ks,l._currentValue),l._currentValue=i,null!==a)if(l=a.value,0==(i=co(l,i)?0:0|("function"==typeof o._calculateChangedBits?o._calculateChangedBits(l,i):1073741823))){if(a.children===s.children&&!Ms.current){t=oa(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){a=l.child;for(var u=c.firstContext;null!==u;){if(u.context===o&&u.observedBits&i){1===l.tag&&((u=ui(-1,n&-n)).tag=2,Ai(l,u)),l.lanes|=n,null!==(u=l.alternate)&&(u.lanes|=n),si(l.return,n),c.lanes|=n;break}u=u.next}}else a=10===l.tag&&l.type===t.type?null:l.child;if(null!==a)a.return=l;else for(a=l;null!==a;){if(a===t){a=null;break}if(null!==(l=a.sibling)){l.return=a.return,a=l;break}a=a.return}l=a}Pr(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,o=(i=t.pendingProps).children,ii(t,n),o=o(s=ri(s,i.unstable_observedBits)),t.flags|=1,Pr(e,t,o,n),t.child;case 14:return i=qs(s=t.type,t.pendingProps),Rr(e,t,s,i=qs(s.type,i),o,n);case 15:return Ur(e,t,t.type,t.pendingProps,o,n);case 17:return o=t.type,s=t.pendingProps,s=t.elementType===o?s:qs(o,s),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,hs(o)?(e=!0,ms(t)):e=!1,ii(t,n),wi(t,o,s),mi(t,o,s,n),Hr(null,t,o,!0,e,n);case 19:return na(e,t,n);case 23:case 24:return Gr(e,t,n)}throw Error(r(156,t.tag))},$l.prototype.render=function(e){Jl(e,this._internalRoot,null,null)},$l.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Jl(null,e,null,(function(){t[es]=null}))},et=function(e){13===e.tag&&(dl(e,4,ul()),Kl(e,4))},tt=function(e){13===e.tag&&(dl(e,67108864,ul()),Kl(e,67108864))},nt=function(e){if(13===e.tag){var t=ul(),n=Al(e);dl(e,n,t),Kl(e,n)}},ot=function(e,t){return t()},Ne=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var s=is(o);if(!s)throw Error(r(90));q(o),ne(o,s)}}}break;case"textarea":ce(e,n);break;case"select":null!=(t=n.value)&&re(e,!!n.multiple,t,!1)}},Te=function(e,t){var n=va;va|=1;try{return e(t)}finally{0===(va=n)&&(Ha(),Vs())}},ze=function(e,t,n,o,s){var i=va;va|=4;try{return Qs(98,e.bind(null,t,n,o,s))}finally{0===(va=i)&&(Ha(),Vs())}},Oe=function(){!(49&va)&&(function(){if(null!==nl){var e=nl;nl=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,Ml(e,_s())}))}Vs()}(),El())},ke=function(e,t){var n=va;va|=2;try{return e(t)}finally{0===(va=n)&&(Ha(),Vs())}};var nc={findFiberByHostInstance:ns,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},oc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:m.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ke(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var sc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!sc.isDisabled&&sc.supportsFiber)try{ys=sc.inject(oc),fs=sc}catch(Le){}}t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ec(t))throw Error(r(200));return function(e,t,n){var o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:y,key:null==o?null:""+o,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(r(188));throw Error(r(268,Object.keys(e)))}return null===(e=Ke(t))?null:e.stateNode},t.render=function(e,t,n){if(!ec(t))throw Error(r(200));return tc(null,e,t,!1,n)}},665:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(903)},924:(e,t,n)=>{"use strict";n(772);var o=n(460),s=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;s=i("react.element"),t.Fragment=i("react.fragment")}var r=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var o,i={},c=null,u=null;for(o in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,o)&&!l.hasOwnProperty(o)&&(i[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===i[o]&&(i[o]=t[o]);return{$$typeof:s,type:e,key:c,ref:u,props:i,_owner:r.current}}t.jsx=c,t.jsxs=c},351:(e,t,n)=>{"use strict";var o=n(772),s=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var r=60109,a=60110,l=60112;t.Suspense=60113;var c=60115,u=60116;if("function"==typeof Symbol&&Symbol.for){var A=Symbol.for;s=A("react.element"),i=A("react.portal"),t.Fragment=A("react.fragment"),t.StrictMode=A("react.strict_mode"),t.Profiler=A("react.profiler"),r=A("react.provider"),a=A("react.context"),l=A("react.forward_ref"),t.Suspense=A("react.suspense"),c=A("react.memo"),u=A("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var M={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L={};function C(e,t,n){this.props=e,this.context=t,this.refs=L,this.updater=n||M}function h(){}function g(e,t,n){this.props=e,this.context=t,this.refs=L,this.updater=n||M}C.prototype.isReactComponent={},C.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},C.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},h.prototype=C.prototype;var w=g.prototype=new h;w.constructor=g,o(w,C.prototype),w.isPureReactComponent=!0;var j={current:null},m=Object.prototype.hasOwnProperty,b={key:!0,ref:!0,__self:!0,__source:!0};function y(e,t,n){var o,i={},r=null,a=null;if(null!=t)for(o in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(r=""+t.key),t)m.call(t,o)&&!b.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:s,type:e,key:r,ref:a,props:i,_owner:j.current}}function f(e){return"object"==typeof e&&null!==e&&e.$$typeof===s}var x=/\/+/g;function N(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function S(e,t,n,o,r){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l=!1;if(null===e)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case s:case i:l=!0}}if(l)return r=r(l=e),e=""===o?"."+N(l,0):o,Array.isArray(r)?(n="",null!=e&&(n=e.replace(x,"$&/")+"/"),S(r,t,n,"",(function(e){return e}))):null!=r&&(f(r)&&(r=function(e,t){return{$$typeof:s,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(r,n+(!r.key||l&&l.key===r.key?"":(""+r.key).replace(x,"$&/")+"/")+e)),t.push(r)),1;if(l=0,o=""===o?".":o+":",Array.isArray(e))for(var c=0;c<e.length;c++){var u=o+N(a=e[c],c);l+=S(a,t,n,u,r)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(a=e.next()).done;)l+=S(a=a.value,t,n,u=o+N(a,c++),r);else if("object"===a)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function D(e,t,n){if(null==e)return e;var o=[],s=0;return S(e,o,"","",(function(e){return t.call(n,e,s++)})),o}function I(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var v={current:null};function E(){var e=v.current;if(null===e)throw Error(p(321));return e}var T={ReactCurrentDispatcher:v,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:j,IsSomeRendererActing:{current:!1},assign:o};t.Children={map:D,forEach:function(e,t,n){D(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return D(e,(function(){t++})),t},toArray:function(e){return D(e,(function(e){return e}))||[]},only:function(e){if(!f(e))throw Error(p(143));return e}},t.Component=C,t.PureComponent=g,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var i=o({},e.props),r=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=j.current),void 0!==t.key&&(r=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)m.call(t,u)&&!b.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){c=Array(u);for(var A=0;A<u;A++)c[A]=arguments[A+2];i.children=c}return{$$typeof:s,type:e.type,key:r,ref:a,props:i,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:a,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:r,_context:e},e.Consumer=e},t.createElement=y,t.createFactory=function(e){var t=y.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=f,t.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return E().useCallback(e,t)},t.useContext=function(e,t){return E().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return E().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return E().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return E().useLayoutEffect(e,t)},t.useMemo=function(e,t){return E().useMemo(e,t)},t.useReducer=function(e,t,n){return E().useReducer(e,t,n)},t.useRef=function(e){return E().useRef(e)},t.useState=function(e){return E().useState(e)},t.version="17.0.2"},460:(e,t,n)=>{"use strict";e.exports=n(351)},88:(e,t,n)=>{"use strict";e.exports=n(924)},447:(e,t)=>{"use strict";var n,o,s,i;if("object"==typeof performance&&"function"==typeof performance.now){var r=performance;t.unstable_now=function(){return r.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,u=null,A=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(A,0),e}};n=function(e){null!==c?setTimeout(n,0,e):(c=e,setTimeout(A,0))},o=function(e,t){u=setTimeout(e,t)},s=function(){clearTimeout(u)},t.unstable_shouldYield=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,p=window.clearTimeout;if("undefined"!=typeof console){var M=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof M&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var L=!1,C=null,h=-1,g=5,w=0;t.unstable_shouldYield=function(){return t.unstable_now()>=w},i=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):g=0<e?Math.floor(1e3/e):5};var j=new MessageChannel,m=j.port2;j.port1.onmessage=function(){if(null!==C){var e=t.unstable_now();w=e+g;try{C(!0,e)?m.postMessage(null):(L=!1,C=null)}catch(e){throw m.postMessage(null),e}}else L=!1},n=function(e){C=e,L||(L=!0,m.postMessage(null))},o=function(e,n){h=d((function(){e(t.unstable_now())}),n)},s=function(){p(h),h=-1}}function b(e,t){var n=e.length;e.push(t);e:for(;;){var o=n-1>>>1,s=e[o];if(!(void 0!==s&&0<x(s,t)))break e;e[o]=t,e[n]=s,n=o}}function y(e){return void 0===(e=e[0])?null:e}function f(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var o=0,s=e.length;o<s;){var i=2*(o+1)-1,r=e[i],a=i+1,l=e[a];if(void 0!==r&&0>x(r,n))void 0!==l&&0>x(l,r)?(e[o]=l,e[a]=n,o=a):(e[o]=r,e[i]=n,o=i);else{if(!(void 0!==l&&0>x(l,n)))break e;e[o]=l,e[a]=n,o=a}}}return t}return null}function x(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var N=[],S=[],D=1,I=null,v=3,E=!1,T=!1,z=!1;function O(e){for(var t=y(S);null!==t;){if(null===t.callback)f(S);else{if(!(t.startTime<=e))break;f(S),t.sortIndex=t.expirationTime,b(N,t)}t=y(S)}}function k(e){if(z=!1,O(e),!T)if(null!==y(N))T=!0,n(Y);else{var t=y(S);null!==t&&o(k,t.startTime-e)}}function Y(e,n){T=!1,z&&(z=!1,s()),E=!0;var i=v;try{for(O(n),I=y(N);null!==I&&(!(I.expirationTime>n)||e&&!t.unstable_shouldYield());){var r=I.callback;if("function"==typeof r){I.callback=null,v=I.priorityLevel;var a=r(I.expirationTime<=n);n=t.unstable_now(),"function"==typeof a?I.callback=a:I===y(N)&&f(N),O(n)}else f(N);I=y(N)}if(null!==I)var l=!0;else{var c=y(S);null!==c&&o(k,c.startTime-n),l=!1}return l}finally{I=null,v=i,E=!1}}var P=i;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){T||E||(T=!0,n(Y))},t.unstable_getCurrentPriorityLevel=function(){return v},t.unstable_getFirstCallbackNode=function(){return y(N)},t.unstable_next=function(e){switch(v){case 1:case 2:case 3:var t=3;break;default:t=v}var n=v;v=t;try{return e()}finally{v=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=P,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=v;v=e;try{return t()}finally{v=n}},t.unstable_scheduleCallback=function(e,i,r){var a=t.unstable_now();switch(r="object"==typeof r&&null!==r&&"number"==typeof(r=r.delay)&&0<r?a+r:a,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:D++,callback:i,priorityLevel:e,startTime:r,expirationTime:l=r+l,sortIndex:-1},r>a?(e.sortIndex=r,b(S,e),null===y(N)&&e===y(S)&&(z?s():z=!0,o(k,r-a))):(e.sortIndex=l,b(N,e),T||E||(T=!0,n(Y))),e},t.unstable_wrapCallback=function(e){var t=v;return function(){var n=v;v=t;try{return e.apply(this,arguments)}finally{v=n}}}},798:(e,t,n)=>{"use strict";e.exports=n(447)},392:e=>{"use strict";var t=[];function n(e){for(var n=-1,o=0;o<t.length;o++)if(t[o].identifier===e){n=o;break}return n}function o(e,o){for(var i={},r=[],a=0;a<e.length;a++){var l=e[a],c=o.base?l[0]+o.base:l[0],u=i[c]||0,A="".concat(c," ").concat(u);i[c]=u+1;var d=n(A),p={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)t[d].references++,t[d].updater(p);else{var M=s(p,o);o.byIndex=a,t.splice(a,0,{identifier:A,updater:M,references:1})}r.push(A)}return r}function s(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,s){var i=o(e=e||[],s=s||{});return function(e){e=e||[];for(var r=0;r<i.length;r++){var a=n(i[r]);t[a].references--}for(var l=o(e,s),c=0;c<i.length;c++){var u=n(i[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}i=l}}},187:e=>{"use strict";var t={};e.exports=function(e,n){var o=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}},316:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},784:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},633:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var o="";n.supports&&(o+="@supports (".concat(n.supports,") {")),n.media&&(o+="@media ".concat(n.media," {"));var s=void 0!==n.layer;s&&(o+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),o+=n.css,s&&(o+="}"),n.media&&(o+="}"),n.supports&&(o+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(o,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},809:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},395:t=>{"use strict";t.exports=e},566:e=>{"use strict";e.exports=t},368:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function s(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=r(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return s.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)o.call(e,n)&&e[n]&&(t=r(t,n));return t}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(s.default=s,e.exports=s):void 0===(n=function(){return s}.apply(t,[]))||(e.exports=n)}()}},o={};function s(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={id:e,exports:{}};return n[e](i,i.exports,s),i.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nc=void 0;var i={};return(()=>{"use strict";s.d(i,{default:()=>Wi});var e={};s.r(e),s.d(e,{GUIEditor:()=>Zi});var t=s(460),n=s(665),o=s(395);class r{constructor(){this.lock=!1}}var a=s(566);class l{constructor(e,t,n,o){this.left=e,this.top=t,this.right=n,this.bottom=o}clone(){return new l(this.left,this.top,this.right,this.bottom)}get center(){const e=new o.Vector2(this.left,this.top);return e.addInPlace(new o.Vector2(this.right,this.bottom).subtractInPlace(e).multiplyByFloats(.5,.5))}get width(){return this.right-this.left}get height(){return this.bottom-this.top}}const c=e=>Math.round(100*e)/100;class u{static GetScale(e,t){let n=e.scaleX,s=e.scaleY;if(t)return new o.Vector2(n,s);let i=e.parent;for(;i;)n*=i.scaleX,s*=i.scaleY,i=i.parent;return new o.Vector2(n,s)}static GetRotation(e,t){let n=e.rotation;if(t)return n;let o=e.parent;for(;o;)n+=o.rotation,o=o.parent;return n}static GetParentSizes(e){const t=new a.Measure(0,0,0,0);if(e.parent&&(t.copyFrom(e.parent._currentMeasure),"Grid"===e.parent.typeName)){const n=e.parent.getChildCellInfo(e),o=e.parent.cells[n];o&&(t.width=o.widthInPixels,t.height=o.heightInPixels)}return t}static GetNodeMatrix(e,t){const n=this.GlobalState.guiTexture.getSize();let o,s;if(e.parent){const t=u.GetParentSizes(e);o=t.width,s=t.height}else o=n.width,s=n.height;let i=0,r=0;const l=t?t.width:e.widthInPixels,c=t?t.height:e.heightInPixels,A=t?t.left:e.leftInPixels,d=t?t.top:e.topInPixels;switch(e.horizontalAlignment){case a.Control.HORIZONTAL_ALIGNMENT_LEFT:i=-(o-l)/2;break;case a.Control.HORIZONTAL_ALIGNMENT_RIGHT:i=(o-l)/2;break;case a.Control.HORIZONTAL_ALIGNMENT_CENTER:i=0}switch(e.verticalAlignment){case a.Control.VERTICAL_ALIGNMENT_TOP:r=-(s-c)/2;break;case a.Control.VERTICAL_ALIGNMENT_BOTTOM:r=(s-c)/2;break;case a.Control.VERTICAL_ALIGNMENT_CENTER:r=0}this._ResetMatrixArray();const p=this._MatrixCache[0],M=this._MatrixCache[1],L=a.Matrix2D.Identity();let C=l*e.transformCenterX-l/2,h=c*e.transformCenterY-c/2;e.descendantsOnlyPadding||(C-=1*(e.paddingRightInPixels-e.paddingLeftInPixels)/2,h-=1*(e.paddingBottomInPixels-e.paddingTopInPixels)/2),a.Matrix2D.TranslationToRef(i+A,r+d,M);const g=this.GetRotation(e,!0),w=this.GetScale(e,!0);return a.Matrix2D.ComposeToRef(-C,-h,g,w.x,w.y,null,p),L.multiplyToRef(p,L),L.multiplyToRef(M,L),L}static NodeToRTTWorldMatrix(e,t,n){const o=[e];let s=e.parent,i=e;for(;s&&i!==n;){if("Grid"===s.typeName){const e=s.getChildCellInfo(i),t=s.cells[e];o.push(t)}o.push(s),i=s,s=s.parent}this._ResetMatrixArray();const r=o.map(((e,n)=>this.GetNodeMatrix(e,0===n?t:void 0)));return r.reduce(((e,t)=>(e.multiplyToRef(t,e),e)),this._MatrixCache[2])}static NodeToRTTSpace(e,t,n,s=new o.Vector2,i,r){return this.NodeToRTTWorldMatrix(e,i,r).transformCoordinates(t,n,s),s.x=c(s.x),s.y=c(s.y),s}static RttToLocalNodeSpace(e,t,n,s=new o.Vector2,i){const r=this.NodeToRTTWorldMatrix(e,i),a=this._MatrixCache[3];return r.invertToRef(a),a.transformCoordinates(t,n,s),s.x=c(s.x),s.y=c(s.y),s}static RttToCanvasSpace(e,t){const n=this.GlobalState.workbench._scene.getEngine();return new o.Vector2(e+n.getRenderWidth()/2,t+n.getRenderHeight()/2)}static MousePointerToRTTSpace(e,t,n){const s=this.GlobalState.workbench._scene,i=s.getEngine();return new o.Vector2((t||s.pointerX)-i.getRenderWidth()/2,(n||s.pointerY)-i.getRenderHeight()/2)}static _ResetMatrixArray(){this._MatrixCache.forEach((e=>{a.Matrix2D.IdentityToRef(e)}))}static ComputeLocalBounds(e){return new l(.5*-e.widthInPixels,.5*-e.heightInPixels,.5*e.widthInPixels,.5*e.heightInPixels)}static ConvertToPercentage(e,t=["left","top","width","height"],n){let o=1,s=1;if(e.parent)if("Grid"===e.parent.typeName){const t=e.parent.getChildCellInfo(e),n=e.parent.cells[t];o=n.widthInPixels,s=n.heightInPixels}else if("Rectangle"===e.parent.typeName||"Button"===e.parent.typeName){const t=2*e.parent.thickness;o=e.parent._currentMeasure.width-t,s=e.parent._currentMeasure.height-t}else o=e.parent._currentMeasure.width,s=e.parent._currentMeasure.height;for(const i of t){const t=e[i],r="left"===i||"width"===i||"paddingLeft"===i||"paddingRight"===i?o:s,a=100*e[`${i}InPixels`]/r;e[i]=`${a.toFixed(2)}%`,n?.notifyObservers({object:e,initialValue:t,value:e[i],property:i})}}static Round(e){return Math.floor(100*e)/100}static ConvertToPixels(e,t=["left","top","width","height"],n){const o=u.GetParentSizes(e);e._processMeasures(o,e.host.getContext());for(const o of t){const t=e[o];e[`_${o}`]=new a.ValueAndUnit(this.Round(e[`${o}InPixels`]),a.ValueAndUnit.UNITMODE_PIXEL),n?.notifyObservers({object:e,initialValue:t,value:e[o],property:o})}}}u._MatrixCache=[a.Matrix2D.Identity(),a.Matrix2D.Identity(),a.Matrix2D.Identity(),a.Matrix2D.Identity()];class A{constructor(e){this._kdListener=e=>this._keyEvent(e,!0),this._kuListener=e=>this._keyEvent(e,!1),this._moveListener=e=>this._updateModifierKeys(e),this._focusOutListener=()=>this._clearKeys(),this._keys=new Set,this._hostElement=e,e.addEventListener("keydown",this._kdListener),e.addEventListener("keypress",this._kdListener),e.addEventListener("keyup",this._kuListener),e.addEventListener("mousemove",this._moveListener),e.addEventListener("focusout",this._focusOutListener),this.onKeyPressedObservable=new o.Observable}_keyEvent(e,t){this._updateModifierKeys(e)," "===e.key&&this._setKeyDown("space",t)}_updateModifierKeys(e){this._setKeyDown("control",e.ctrlKey),this._setKeyDown("alt",e.altKey),this._setKeyDown("shift",e.shiftKey),this._setKeyDown("meta",e.metaKey)}_setKeyDown(e,t){this._keys.has(e)!==t&&(t?this._keys.add(e):this._keys.delete(e),this.onKeyPressedObservable.notifyObservers(e))}_clearKeys(){for(const e of this._keys)this._keys.delete(e),this.onKeyPressedObservable.notifyObservers(e)}isKeyDown(e){return this._keys.has(e)}dispose(){this._hostElement.removeEventListener("keydown",this._kdListener),this._hostElement.removeEventListener("keypress",this._kdListener),this._hostElement.removeEventListener("keyup",this._kuListener),this._hostElement.removeEventListener("mousemove",this._moveListener),this._hostElement.removeEventListener("focusout",this._focusOutListener)}}var d,p;!function(e){e[e.ABOVE=0]="ABOVE",e[e.BELOW=1]="BELOW",e[e.CENTER=2]="CENTER",e[e.NONE=3]="NONE"}(d||(d={})),function(e){e[e.SELECT=0]="SELECT",e[e.PAN=1]="PAN",e[e.ZOOM=2]="ZOOM"}(p||(p={}));class M{get tool(){return this._tool===p.ZOOM?p.ZOOM:this._tool===p.PAN?p.PAN:p.SELECT}set tool(e){this._tool!==e&&(this._prevTool=this._tool,this._tool=e,this.onToolChangeObservable.notifyObservers())}get usePrevSelected(){return this._usePrevSelected}set usePrevSelected(e){this._usePrevSelected=e}restorePreviousTool(){this._tool!==this._prevTool&&(this._tool=this._prevTool,this.onToolChangeObservable.notifyObservers())}constructor(){this.selectedControls=[],this.onSelectionChangedObservable=new o.Observable,this.onResizeObservable=new o.Observable,this.onBuiltObservable=new o.Observable,this.onResetRequiredObservable=new o.Observable,this.onUpdateRequiredObservable=new o.Observable,this.onLogRequiredObservable=new o.Observable,this.onErrorMessageDialogRequiredObservable=new o.Observable,this.onIsLoadingChanged=new o.Observable,this.onSelectionBoxMoved=new o.Observable,this.onNewSceneObservable=new o.Observable,this.onGuiNodeRemovalObservable=new o.Observable,this.onPopupClosedObservable=new o.Observable,this._outlines=!1,this.blockKeyboardEvents=!1,this.onOutlineChangedObservable=new o.Observable,this.onPropertyChangedObservable=new o.Observable,this._tool=p.SELECT,this._prevTool=this._tool,this.onToolChangeObservable=new o.Observable,this.onFitControlsToWindowObservable=new o.Observable,this.onReframeWindowObservable=new o.Observable,this.onLoadObservable=new o.Observable,this.onSaveObservable=new o.Observable,this.onSaveSelectedControl=new o.Observable,this.onSnippetLoadObservable=new o.Observable,this.onSnippetSaveObservable=new o.Observable,this.onControlLoadObservable=new o.Observable,this.onResponsiveChangeObservable=new o.Observable,this.onParentingChangeObservable=new o.Observable,this.onDropObservable=new o.Observable,this.onPropertyGridUpdateRequiredObservable=new o.Observable,this.onDraggingEndObservable=new o.Observable,this.onDraggingStartObservable=new o.Observable,this.onWindowResizeObservable=new o.Observable,this.onGizmoUpdateRequireObservable=new o.Observable,this.onArtBoardUpdateRequiredObservable=new o.Observable,this.onBackgroundColorChangeObservable=new o.Observable,this.onFontsParsedObservable=new o.Observable,this.onPointerMoveObservable=new o.Observable,this.onPointerUpObservable=new o.Observable,this.draggedControl=null,this.onCopyObservable=new o.Observable,this.onCutObservable=new o.Observable,this.onPasteObservable=new o.Observable,this.isSaving=!1,this.lockObject=new r,this.shiftKeyPressed=!1,this.controlCamera=o.DataStorage.ReadBoolean("ControlCamera",!0);const e=o.DataStorage.ReadNumber("BackgroundColorR",.8),t=o.DataStorage.ReadNumber("BackgroundColorG",.8),n=o.DataStorage.ReadNumber("BackgroundColorB",.8);this.backgroundColor=new o.Color3(e,t,n),this.onBackgroundColorChangeObservable.notifyObservers(),u.GlobalState=this}registerEventListeners(){const e=e=>e.isContentEditable||"INPUT"===e.tagName||"TEXTAREA"===e.tagName;this.hostDocument.addEventListener("copy",(t=>{e(t.target)||(this.onCopyObservable.notifyObservers((e=>t.clipboardData?.setData("text/plain",e))),t.preventDefault())})),this.hostDocument.addEventListener("cut",(t=>{e(t.target)||(this.onCutObservable.notifyObservers((e=>t.clipboardData?.setData("text/plain",e))),t.preventDefault())})),this.hostDocument.addEventListener("paste",(t=>{e(t.target)||(this.onPasteObservable.notifyObservers(t.clipboardData?.getData("text")||""),t.preventDefault())})),this.keys=new A(this.hostDocument),this.keys.onKeyPressedObservable.add((()=>{this.onToolChangeObservable.notifyObservers()}))}get backgroundColor(){return this._backgroundColor}get fromPG(){return this._fromPG}set fromPG(e){this._fromPG=e}set backgroundColor(e){this._backgroundColor=e,this.onBackgroundColorChangeObservable.notifyObservers(),o.DataStorage.WriteNumber("BackgroundColorR",e.r),o.DataStorage.WriteNumber("BackgroundColorG",e.g),o.DataStorage.WriteNumber("BackgroundColorB",e.b)}get outlines(){return this._outlines}set outlines(e){this._outlines=e,this.onOutlineChangedObservable.notifyObservers()}select(e){this.keys.isKeyDown("control")&&this.isMultiSelectable(e)?-1===this.selectedControls.indexOf(e)?this.setSelection([...this.selectedControls,e]):this.setSelection(this.selectedControls.filter((t=>t!==e))):this.setSelection([e])}setSelection(e){this.selectedControls=[...e],this.onSelectionChangedObservable.notifyObservers()}_findParentControlInTexture(e,t){const n=[e.rootContainer];for(;n.length>0;){const e=n.splice(0,1)[0],o=e.children;if(-1!==o.indexOf(t))return e;for(const e of o)e instanceof a.Container&&n.push(e)}return null}deleteSelectedNodes(){for(const e of this.selectedControls){const t=this._findParentControlInTexture(this.guiTexture,e);if(t?.removeControl(e),this.liveGuiTexture){const t=e.getDescendants();for(const e of t){const t=this._findParentControlInTexture(this.liveGuiTexture,e);t?.removeControl(e),e.dispose()}const n=this._findParentControlInTexture(this.liveGuiTexture,e);n?.removeControl(e)}e.dispose()}this.setSelection([])}isMultiSelectable(e){return 0===this.selectedControls.length||this.selectedControls[0].parent===e.parent}dispose(){this.keys.dispose()}}var L=s(88);class C{static _SaveAs(e,t,n){if("download"in HTMLAnchorElement.prototype){const o=window.URL||window.webkitURL,s=n.createElement("a");return s.download=t,s.rel="noopener",s.href=o.createObjectURL(e),setTimeout((()=>{o.revokeObjectURL(s.href)}),4e4),void setTimeout((()=>{this._Click(s,n)}),0)}let o=open("","_blank");o&&(o.document.title=o.document.body.innerText="downloading...");const s="application/octet-stream"===e.type,i=/constructor/i.test(window.HTMLElement)||window.safari,r=/CriOS\/[\d]+/.test(navigator.userAgent);if((r||s&&i)&&"undefined"!=typeof FileReader){const t=new FileReader;t.onloadend=()=>{let e=t.result;e=r?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location.href=e,o=null},t.readAsDataURL(e)}else{const t=window.URL||window.webkitURL,n=t.createObjectURL(e);o?o.location.href=n:location.href=n,o=null,setTimeout((function(){t.revokeObjectURL(n)}),4e4)}}static _Click(e,t){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){const o=t.createEvent("MouseEvents");o.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(o)}}static DownloadAsFile(e,t,n){const o=new Blob([t],{type:"application/octet-stream"});this._SaveAs(o,n,e)}}class h extends t.Component{constructor(e){super(e)}onLink(){this.props.url?window.open(this.props.url,"_blank"):this.props.onLink&&this.props.onLink()}renderContent(){return this.props.ignoreValue?null:this.props.onLink||this.props.url?(0,L.jsx)("div",{className:"link-value",title:this.props.tooltip??this.props.label??"",onClick:()=>this.onLink(),children:this.props.url?"doc":this.props.value||"no name"}):(0,L.jsx)("div",{className:"value",title:this.props.tooltip??this.props.label??"",style:{color:this.props.color?this.props.color:""},children:this.props.value||"no name"})}render(){return(0,L.jsxs)("div",{className:this.props.underline?"textLine underline":"textLine"+(this.props.additionalClass?" "+this.props.additionalClass:""),children:[this.props.icon&&(0,L.jsx)("img",{src:this.props.icon,title:this.props.iconLabel,alt:this.props.iconLabel,className:"icon"}),(0,L.jsx)("div",{className:"label",title:this.props.tooltip??this.props.label??"",children:this.props.label??""}),this.renderContent()]})}}let g="";const w=void 0!==s.g?s.g:"undefined"!=typeof window?window:void 0;function j(e){const t=document.createElement("div");if(t.textContent=e,document.body.appendChild(t),window.getSelection){const e=document.createRange();e.selectNode(t),window.getSelection().removeAllRanges(),window.getSelection().addRange(e)}document.execCommand("copy"),t.remove()}function m(e){let t=(0,o.GetClassName)(e);return t.includes("BABYLON.")&&(t=t.split("BABYLON.")[1]),{className:t,babylonNamespace:g}}void 0!==w&&void 0!==w.BABYLON&&(g="BABYLON.");const b="—";function y(e,t,n=(e,t)=>e[t]){return new Proxy({},{get(t,o){const s=o;if(0===e.length)return b;const i=n(e[0],s);for(const t of e)if(n(t,s)!==i)return b;return i},set(n,o,s){if("—"===s)return!0;const i=o;for(const n of e){const e=n[i];n[i]=s,t&&t.notifyObservers({object:n,property:o,value:n[i],initialValue:e})}return!0}})}class f extends t.Component{constructor(){super(...arguments),this._arrowsRef=t.createRef(),this._drag=e=>{this.props.incrementValue(-e.movementY)},this._releaseListener=()=>{this.props.setDragging(!1),this._arrowsRef.current?.ownerDocument.exitPointerLock(),this._arrowsRef.current?.ownerDocument.defaultView.removeEventListener("pointerup",this._releaseListener),this._arrowsRef.current?.ownerDocument.removeEventListener("pointerlockchange",this._lockChangeListener),this._arrowsRef.current?.ownerDocument.defaultView.removeEventListener("mousemove",this._drag)},this._lockChangeListener=()=>{this._arrowsRef.current?.ownerDocument.pointerLockElement!==this._arrowsRef.current&&this._releaseListener()}}render(){return(0,L.jsxs)("div",{className:"arrows",ref:this._arrowsRef,onPointerDown:()=>{this._arrowsRef.current?.ownerDocument.addEventListener("pointerlockchange",this._lockChangeListener),this._arrowsRef.current?.ownerDocument.defaultView.addEventListener("pointerup",this._releaseListener),this._arrowsRef.current?.ownerDocument.defaultView.addEventListener("mousemove",this._drag),this.props.setDragging(!0),this._arrowsRef.current?.requestPointerLock()},onDragStart:e=>e.preventDefault(),children:[(0,L.jsx)("img",{className:"upArrowIcon",src:"data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDE1IDE1Ij48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNNC4wOSw5LjQ1YS42LjYsMCwwLDEsMC0uODRsMy0zYS42LjYsMCwwLDEsLjg0LDBsMywzYS42LjYsMCwwLDEsMCwuODQuNjEuNjEsMCwwLDEtLjg1LDBsLTItMnY1LjczYS42LjYsMCwwLDEtMS4yLDBWNy40OGwtMiwyQS42MS42MSwwLDAsMSw0LjA5LDkuNDVaIi8+PC9zdmc+",alt:"Increase Value"}),(0,L.jsx)("img",{className:"downArrowIcon",src:"data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDE1IDE1Ij48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNNC4wOSw1LjU1YS42MS42MSwwLDAsMSwuODUsMGwyLDJWMS43OWEuNi42LDAsMSwxLDEuMiwwVjcuNTJsMi0yYS42MS42MSwwLDAsMSwuODUsMCwuNi42LDAsMCwxLDAsLjg0bC0zLDNhLjYuNiwwLDAsMS0uODQsMGwtMy0zQS42LjYsMCwwLDEsNC4wOSw1LjU1WiIvPjwvc3ZnPg==",alt:"Increase Value"})]})}}const x="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MCA0MCI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5jb3B5PC90aXRsZT48ZyBpZD0iVUlfRWxlbWVudHMiIGRhdGEtbmFtZT0iVUkgRWxlbWVudHMiPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTI0LDE0Ljg5SDIyLjc2bC0zLTNIMTIuNDNWMjYuNTloNC4yNnYzaDExLjVWMTlabS4zLDEuNzEsMi4xNCwyLjEzSDI0LjM0Wm0tMTAuOTEsOVYxMi45M2g1LjkzbDIsMkgxNi42OXYxMC43Wm00LjI2LDNWMTUuODloNS42NXYzLjg0aDMuODV2OC44M1oiLz48L2c+PC9zdmc+";class N extends t.Component{constructor(e){super(e),this._localChange=!1;const t=this.props.target[this.props.propertyName];this.state={value:this.getValueString(t,this.props),dragging:!1},this._store=t}componentWillUnmount(){this.unlock()}getValueString(e,t){return e?e===b?b:t.isInteger?e.toFixed(0):e.toFixed(t.digits||4):"0"}shouldComponentUpdate(e,t){if(this._localChange)return this._localChange=!1,!0;const n=e.target[e.propertyName],o=this.getValueString(n,e);return o!==t.value?(t.value=o,!0):t.dragging!=this.state.dragging||e.unit!==this.props.unit||e.isInteger!==this.props.isInteger}raiseOnPropertyChanged(e,t){this.props.onChange&&this.props.onChange(e),this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:e,initialValue:t})}updateValue(e){if(/[^0-9.-]/g.test(e))return;let t;t=this.props.isInteger?parseInt(e):parseFloat(e),isNaN(t)?null!=this.props.defaultValue&&(t=this.props.defaultValue):(void 0!==this.props.min&&t<this.props.min&&(t=this.props.min,e=t.toString()),void 0!==this.props.max&&t>this.props.max&&(t=this.props.max,e=t.toString())),this._localChange=!0,this.setState({value:e}),isNaN(t)||(this.props.target[this.props.propertyName]=t,this.raiseOnPropertyChanged(t,this._store),this._store=t)}lock(){this.props.lockObject&&(this.props.lockObject.lock=!0)}unlock(){this.props.lockObject&&(this.props.lockObject.lock=!1)}incrementValue(e,t=!0){t&&this.props.step&&(e*=parseFloat(this.props.step));let n=parseFloat(this.state.value);isNaN(n)&&(n=0),this.updateValue((n+e).toFixed(2))}onKeyDown(e){const t=parseFloat(this.props.step||this.props.isInteger?"1":"0.01"),n=n=>{e.shiftKey&&(n*=10,(e.ctrlKey||e.metaKey)&&(n*=10)),this.incrementValue(n*t,!1),e.preventDefault()};"ArrowUp"===e.key?n(1):"ArrowDown"===e.key&&n(-1),"Enter"===e.key&&this.props.onEnter&&this.props.onEnter(this._store)}onCopyClick(){if(this.props&&this.props.target){const{className:e,babylonNamespace:t}=m(this.props.target);j("globalThis.debugNode."+this.props.propertyName+" = "+this.props.target[this.props.propertyName]+";// (debugNode as "+t+e+")")}else j("undefined")}render(){let e;e=this.props.isInteger?parseInt(this.state.value):parseFloat(this.state.value);let t=this.props.smallUI?"short":"value";this.state.dragging&&(t+=" dragging"),this.props.arrows&&(t+=" hasArrows");const n=this.state.value===b?"":this.state.value,s=this.state.value===b?b:"";return(0,L.jsxs)(L.Fragment,{children:[!this.props.useEuler&&(0,L.jsxs)("div",{className:this.props.additionalClass?this.props.additionalClass+" floatLine":"floatLine",children:[this.props.icon&&(0,L.jsx)("img",{src:this.props.icon,title:this.props.iconLabel,alt:this.props.iconLabel,className:"icon"}),(!this.props.icon||""!=this.props.label)&&(0,L.jsx)("div",{className:"label",title:this.props.label,children:this.props.label}),(0,L.jsxs)("div",{className:t,children:[(0,L.jsx)("input",{type:"number",step:this.props.step||this.props.isInteger?"1":"0.01",className:"numeric-input",onKeyDown:e=>this.onKeyDown(e),value:n,onBlur:()=>{this.unlock(),this.props.onEnter&&this.props.onEnter(this._store)},placeholder:s,onFocus:()=>this.lock(),onChange:e=>this.updateValue(e.target.value),disabled:this.props.disabled}),this.props.arrows&&(0,L.jsx)(f,{incrementValue:e=>this.incrementValue(e),setDragging:t=>{const n=this.state.dragging;!n&&t&&this.props.onDragStart?this.props.onDragStart(e):n&&!t&&this.props.onDragStop&&this.props.onDragStop(e),this.setState({dragging:t})}})]}),this.props.unit,(0,L.jsx)("div",{className:"copy hoverIcon",onClick:()=>this.onCopyClick(),title:"Copy to clipboard",children:(0,L.jsx)("img",{src:x,alt:"Copy"})})]}),this.props.useEuler&&(0,L.jsx)(S,{lockObject:this.props.lockObject,label:this.props.label,minimum:0,maximum:360,step:.1,directValue:o.Tools.ToDegrees(e),onChange:e=>this.updateValue(o.Tools.ToRadians(e).toString())})]})}}class S extends t.Component{constructor(e){if(super(e),this._localChange=!1,void 0!==this.props.directValue)this.state={value:this.props.directValue};else{let e=this.props.target[this.props.propertyName];void 0===e&&(e=this.props.maximum),this.state={value:e}}}shouldComponentUpdate(e,t){if(void 0!==e.directValue)return t.value=e.directValue,!0;if(e.label!==this.props.label)return!0;let n=e.target[e.propertyName];return void 0===n&&(n=e.maximum),n!==t.value||this._localChange||e.maximum!==this.props.maximum||e.minimum!==this.props.minimum?(t.value=n,this._localChange=!1,!0):e.unit!==this.props.unit}onChange(e){if("—"===e)return;this._localChange=!0;let t=parseFloat(e);this.props.useEuler&&(t=o.Tools.ToRadians(t)),this.props.target&&(this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:t,initialValue:this.state.value}),this.props.target[this.props.propertyName]=t),this.props.onChange&&this.props.onChange(t),this.setState({value:t})}onInput(e){const t=parseFloat(e);this.props.onInput&&this.props.onInput(t)}prepareDataToRead(e){return null===e&&(e=0),this.props.useEuler?o.Tools.ToDegrees(e):e}onCopyClick(){if(this.props&&this.props.target){const{className:e,babylonNamespace:t}=m(this.props.target);j("globalThis.debugNode."+this.props.propertyName+" = "+this.props.target[this.props.propertyName]+";// (debugNode as "+t+e+")")}else j("undefined")}render(){return(0,L.jsxs)("div",{className:"sliderLine",children:[this.props.icon&&(0,L.jsx)("img",{src:this.props.icon,title:this.props.iconLabel,alt:this.props.iconLabel,className:"icon"}),(!this.props.icon||""!=this.props.label)&&(0,L.jsx)("div",{className:this.props.margin?"label withMargins":"label",title:this.props.label,children:this.props.label}),(0,L.jsx)(N,{lockObject:this.props.lockObject,isInteger:0===this.props.decimalCount,smallUI:!0,label:"",target:this.state,digits:void 0===this.props.decimalCount?4:this.props.decimalCount,propertyName:"value",min:this.props.minimum,max:this.props.maximum,onEnter:()=>{const e=this.prepareDataToRead(this.state.value);this.onChange(e)},onChange:()=>{const e=this.prepareDataToRead(this.state.value);this.onChange(e)},onPropertyChangedObservable:this.props.onPropertyChangedObservable,unit:this.props.unit}),(0,L.jsx)("div",{className:"slider",children:(0,L.jsx)("input",{className:"range",type:"range",step:this.props.step,min:this.prepareDataToRead(this.props.minimum),max:this.prepareDataToRead(this.props.maximum),value:this.prepareDataToRead(this.state.value),onInput:e=>this.onInput(e.target.value),onChange:e=>this.onChange(e.target.value)})}),(0,L.jsx)("div",{className:"copy hoverIcon",onClick:()=>this.onCopyClick(),title:"Copy to clipboard",children:(0,L.jsx)("img",{src:x,alt:"Copy"})})]})}}let D=-1;class I extends t.Component{constructor(e){super(e),this._localChange=!1;const t=this.props.numeric?"0":"";this.state={value:(void 0!==this.props.value?this.props.value:this.props.target[this.props.propertyName])||t,dragging:!1}}componentWillUnmount(){this.props.lockObject&&(this.props.lockObject.lock=!1)}shouldComponentUpdate(e,t){if(this._localChange)return this._localChange=!1,!0;const n=void 0!==e.value?e.value:e.target[e.propertyName];return n!==t.value?(t.value=n||"",!0):t.dragging!=this.state.dragging||e.unit!==this.props.unit}raiseOnPropertyChanged(e,t){this.props.onChange?this.props.onChange(e):this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:e,initialValue:t})}getCurrentNumericValue(e){const t=parseFloat(e);if(!isNaN(t))return t;if(void 0!==this.props.placeholder){const e=parseFloat(this.props.placeholder);if(!isNaN(e))return e}return 0}updateValue(e,t){if(this.props.disabled)return;if(this.props.numbersOnly){if(/[^0-9.px%-]/g.test(e))return;e||(e="0"),0===e.search(/0+[0-9-]/g)&&(e=e.substring(1))}if(this.props.numeric){let t=this.getCurrentNumericValue(e);this.props.roundValues&&(t=Math.round(t)),void 0!==this.props.min&&(t=Math.max(this.props.min,t)),void 0!==this.props.max&&(t=Math.min(this.props.max,t)),e=t.toString()}this._localChange=!0;const n=void 0!==this.props.value?this.props.value:this.props.target[this.props.propertyName];this.props.validator&&t&&0==this.props.validator(t)&&(e=n),this.setState({value:e}),this.props.propertyName&&!this.props.delayInput&&(this.props.target[this.props.propertyName]=e),this.props.throttlePropertyChangedNotification?(D>=0&&window.clearTimeout(D),D=window.setTimeout((()=>{this.raiseOnPropertyChanged(e,n)}),this.props.throttlePropertyChangedNotificationDelay??200)):this.raiseOnPropertyChanged(e,n)}incrementValue(e){if(this.props.step&&(e*=this.props.step),this.props.arrowsIncrement)return void this.props.arrowsIncrement(e);const t=this.getCurrentNumericValue(this.state.value);this.updateValue((t+e).toFixed(2))}onKeyDown(e){!this.props.disabled&&this.props.arrows&&("ArrowUp"===e.key&&(this.incrementValue(1),e.preventDefault()),"ArrowDown"===e.key&&(this.incrementValue(-1),e.preventDefault()))}render(){const e=this.state.value===b?"":this.state.value,t=this.state.value===b?b:this.props.placeholder||"",n=this.props.step||(this.props.roundValues?1:.01),o=this.props.multilines?"textInputArea":void 0!==this.props.unit?"textInputLine withUnits":"textInputLine";return(0,L.jsxs)("div",{className:o,children:[this.props.icon&&(0,L.jsx)("img",{src:this.props.icon,title:this.props.iconLabel,alt:this.props.iconLabel,color:"black",className:"icon"}),void 0!==this.props.label&&(0,L.jsx)("div",{className:"label",title:this.props.label,children:this.props.label}),this.props.multilines&&(0,L.jsx)(L.Fragment,{children:(0,L.jsx)("textarea",{className:this.props.disabled?"disabled":"",value:this.state.value,onFocus:()=>{this.props.lockObject&&(this.props.lockObject.lock=!0)},onChange:e=>this.updateValue(e.target.value),onKeyDown:e=>{13===e.keyCode&&this.updateValue(this.state.value)},onBlur:e=>{this.updateValue(e.target.value,e.target.value),this.props.lockObject&&(this.props.lockObject.lock=!1)},disabled:this.props.disabled})}),!this.props.multilines&&(0,L.jsxs)("div",{className:`value${!0===this.props.noUnderline?" noUnderline":""}${this.props.arrows?" hasArrows":""}${this.state.dragging?" dragging":""}`,children:[(0,L.jsx)("input",{className:this.props.disabled?"disabled":"",value:e,onBlur:e=>{this.props.lockObject&&(this.props.lockObject.lock=!1),this.updateValue((void 0!==this.props.value?this.props.value:this.props.target[this.props.propertyName])||"",e.target.value)},onFocus:()=>{this.props.lockObject&&(this.props.lockObject.lock=!0)},onChange:e=>this.updateValue(e.target.value),onKeyDown:e=>this.onKeyDown(e),placeholder:t,type:this.props.numeric?"number":"text",step:n,disabled:this.props.disabled}),this.props.arrows&&(0,L.jsx)(f,{incrementValue:e=>this.incrementValue(e),setDragging:e=>this.setState({dragging:e})})]}),this.props.unit]})}}class v extends t.Component{constructor(e){super(e)}render(){let e=this.props.altStyle?`command-button-alt${this.props.disabled?"-disabled":""}${this.props.isActive?"-":""}`:"command-button",t="command-button-icon ";return this.props.isActive&&(e+=" active",t+=" active"),this.props.disabled?e+=" disabled":this.props.copyDeleteDisabled?e+=" copyAndDeleteDisabled":this.props.pasteDisabled&&(e+=" pasteDisabled"),(0,L.jsxs)("div",{className:e,onClick:this.props.onClick,title:`${this.props.tooltip} ${this.props.shortcut?" ("+this.props.shortcut+")":""}`,children:[(0,L.jsx)("div",{className:t,children:(0,L.jsx)("img",{src:this.props.icon,title:this.props.iconLabel,alt:this.props.iconLabel,className:this.props.isActive?"active":"",draggable:!1})}),(0,L.jsx)("div",{className:"command-label",children:this.props.tooltip})]})}}const E=()=>{};let T={},z={},O=null,k={mark:E,measure:E};try{"undefined"!=typeof window&&(T=window),"undefined"!=typeof document&&(z=document),"undefined"!=typeof MutationObserver&&(O=MutationObserver),"undefined"!=typeof performance&&(k=performance)}catch(e){}const{userAgent:Y=""}=T.navigator||{},P=T,B=z,R=O,U=k,G=(P.document,!!B.documentElement&&!!B.head&&"function"==typeof B.addEventListener&&"function"==typeof B.createElement),Z=~Y.indexOf("MSIE")||~Y.indexOf("Trident/");var _="classic",W="duotone",H="sharp",Q="sharp-duotone",F=[_,W,H,Q],V={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid"}},J=[1,2,3,4,5,6,7,8,9,10],X=J.concat([11,12,13,14,15,16,17,18,19,20]),q={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},K=[...Object.keys({classic:["fas","far","fal","fat"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds"]}),"solid","regular","light","thin","duotone","brands","2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",q.GROUP,q.SWAP_OPACITY,q.PRIMARY,q.SECONDARY].concat(J.map((e=>"".concat(e,"x")))).concat(X.map((e=>"w-".concat(e))));const $="___FONT_AWESOME___",ee=16,te="svg-inline--fa",ne="data-fa-i2svg",oe="data-fa-pseudo-element",se="data-prefix",ie="data-icon",re="fontawesome-i2svg",ae=["HTML","HEAD","STYLE","SCRIPT"],le=(()=>{try{return!0}catch(e){return!1}})(),ce=[_,H,Q];function ue(e){return new Proxy(e,{get:(e,t)=>t in e?e[t]:e[_]})}const Ae={...V};Ae[_]={...V[_],fak:"kit","fa-kit":"kit",fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"};const de=ue(Ae),pe={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds"}};pe[_]={...pe[_],kit:"fak","kit-duotone":"fakd"};const Me=ue(pe),Le={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid"}};Le[_]={...Le[_],fak:"fa-kit"};const Ce=ue(Le),he={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds"}};he[_]={...he[_],"fa-kit":"fak"};const ge=ue(he),we=/fa(s|r|l|t|d|b|k|kd|ss|sr|sl|st|sds)?[\-\ ]/,je="fa-layers-text",me=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,be=(ue({classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds"}}),["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"]),ye=q,fe=new Set;Object.keys(Me[_]).map(fe.add.bind(fe)),Object.keys(Me[H]).map(fe.add.bind(fe)),Object.keys(Me[Q]).map(fe.add.bind(fe));const xe=["kit",...K],Ne=P.FontAwesomeConfig||{};B&&"function"==typeof B.querySelector&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((e=>{let[t,n]=e;const o=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=B.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(t));null!=o&&(Ne[n]=o)}));const Se={styleDefault:"solid",familyDefault:"classic",cssPrefix:"fa",replacementClass:te,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Ne.familyPrefix&&(Ne.cssPrefix=Ne.familyPrefix);const De={...Se,...Ne};De.autoReplaceSvg||(De.observeMutations=!1);const Ie={};Object.keys(Se).forEach((e=>{Object.defineProperty(Ie,e,{enumerable:!0,set:function(t){De[e]=t,ve.forEach((e=>e(Ie)))},get:function(){return De[e]}})})),Object.defineProperty(Ie,"familyPrefix",{enumerable:!0,set:function(e){De.cssPrefix=e,ve.forEach((e=>e(Ie)))},get:function(){return De.cssPrefix}}),P.FontAwesomeConfig=Ie;const ve=[],Ee=ee,Te={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function ze(){let e=12,t="";for(;e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function Oe(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function ke(e){return e.classList?Oe(e.classList):(e.getAttribute("class")||"").split(" ").filter((e=>e))}function Ye(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Pe(e){return Object.keys(e||{}).reduce(((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";")),"")}function Be(e){return e.size!==Te.size||e.x!==Te.x||e.y!==Te.y||e.rotate!==Te.rotate||e.flipX||e.flipY}function Re(){const e="fa",t=te,n=Ie.cssPrefix,o=Ie.replacementClass;let s=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-counter-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(-1 * var(--fa-li-width, 2em));\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n animation-name: fa-beat;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n animation-name: fa-bounce;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n animation-name: fa-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n animation-name: fa-beat-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n animation-name: fa-flip;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n animation-name: fa-shake;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n animation-name: fa-spin;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 2s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n animation-name: fa-spin;\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n animation-delay: -1ms;\n animation-duration: 1ms;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n transform: scale(1);\n }\n 45% {\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-bounce {\n 0% {\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-flip {\n 50% {\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-shake {\n 0% {\n transform: rotate(-15deg);\n }\n 4% {\n transform: rotate(15deg);\n }\n 8%, 24% {\n transform: rotate(-18deg);\n }\n 12%, 28% {\n transform: rotate(18deg);\n }\n 16% {\n transform: rotate(-22deg);\n }\n 20% {\n transform: rotate(22deg);\n }\n 32% {\n transform: rotate(-12deg);\n }\n 36% {\n transform: rotate(12deg);\n }\n 40%, 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if(n!==e||o!==t){const i=new RegExp("\\.".concat(e,"\\-"),"g"),r=new RegExp("\\--".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");s=s.replace(i,".".concat(n,"-")).replace(r,"--".concat(n,"-")).replace(a,".".concat(o))}return s}let Ue=!1;function Ge(){Ie.autoAddCss&&!Ue&&(function(e){if(!e||!G)return;const t=B.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=B.head.childNodes;let o=null;for(let e=n.length-1;e>-1;e--){const t=n[e],s=(t.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(o=t)}B.head.insertBefore(t,o)}(Re()),Ue=!0)}var Ze={mixout:()=>({dom:{css:Re,insertCss:Ge}}),hooks:()=>({beforeDOMElementCreation(){Ge()},beforeI2svg(){Ge()}})};const _e=P||{};_e[$]||(_e[$]={}),_e[$].styles||(_e[$].styles={}),_e[$].hooks||(_e[$].hooks={}),_e[$].shims||(_e[$].shims=[]);var We=_e[$];const He=[],Qe=function(){B.removeEventListener("DOMContentLoaded",Qe),Fe=1,He.map((e=>e()))};let Fe=!1;function Ve(e){const{tag:t,attributes:n={},children:o=[]}=e;return"string"==typeof e?Ye(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce(((t,n)=>t+"".concat(n,'="').concat(Ye(e[n]),'" ')),"").trim()}(n),">").concat(o.map(Ve).join(""),"</").concat(t,">")}function Je(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}G&&(Fe=(B.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(B.readyState),Fe||B.addEventListener("DOMContentLoaded",Qe));var Xe=function(e,t,n,o){var s,i,r,a=Object.keys(e),l=a.length,c=void 0!==o?function(e,t){return function(n,o,s,i){return e.call(t,n,o,s,i)}}(t,o):t;for(void 0===n?(s=1,r=e[a[0]]):(s=0,r=n);s<l;s++)r=c(r,e[i=a[s]],i,e);return r};function qe(e){const t=function(e){const t=[];let n=0;const o=e.length;for(;n<o;){const s=e.charCodeAt(n++);if(s>=55296&&s<=56319&&n<o){const o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&s)<<10)+(1023&o)+65536):(t.push(s),n--)}else t.push(s)}return t}(e);return 1===t.length?t[0].toString(16):null}function Ke(e){return Object.keys(e).reduce(((t,n)=>{const o=e[n];return o.icon?t[o.iconName]=o.icon:t[n]=o,t}),{})}function $e(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{skipHooks:o=!1}=n,s=Ke(t);"function"!=typeof We.hooks.addPack||o?We.styles[e]={...We.styles[e]||{},...s}:We.hooks.addPack(e,Ke(t)),"fas"===e&&$e("fa",t)}const{styles:et,shims:tt}=We,nt={[_]:Object.values(Ce[_]),[H]:Object.values(Ce[H]),[Q]:Object.values(Ce[Q])};let ot=null,st={},it={},rt={},at={},lt={};const ct={[_]:Object.keys(de[_]),[H]:Object.keys(de[H]),[Q]:Object.keys(de[Q])};const ut=()=>{const e=e=>Xe(et,((t,n,o)=>(t[o]=Xe(n,e,{}),t)),{});st=e(((e,t,n)=>(t[3]&&(e[t[3]]=n),t[2]&&t[2].filter((e=>"number"==typeof e)).forEach((t=>{e[t.toString(16)]=n})),e))),it=e(((e,t,n)=>(e[n]=n,t[2]&&t[2].filter((e=>"string"==typeof e)).forEach((t=>{e[t]=n})),e))),lt=e(((e,t,n)=>{const o=t[2];return e[n]=n,o.forEach((t=>{e[t]=n})),e}));const t="far"in et||Ie.autoFetchSvg,n=Xe(tt,((e,n)=>{const o=n[0];let s=n[1];const i=n[2];return"far"!==s||t||(s="fas"),"string"==typeof o&&(e.names[o]={prefix:s,iconName:i}),"number"==typeof o&&(e.unicodes[o.toString(16)]={prefix:s,iconName:i}),e}),{names:{},unicodes:{}});rt=n.names,at=n.unicodes,ot=Ct(Ie.styleDefault,{family:Ie.familyDefault})};var At;function dt(e,t){return(st[e]||{})[t]}function pt(e,t){return(lt[e]||{})[t]}function Mt(e){return rt[e]||{prefix:null,iconName:null}}function Lt(){return ot}function Ct(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{family:n=_}=t,o=de[n][e],s=Me[n][e]||Me[n][o],i=e in We.styles?e:null;return s||i||null}At=e=>{ot=Ct(e.styleDefault,{family:Ie.familyDefault})},ve.push(At),ut();const ht={[_]:Object.keys(Ce[_]),[H]:Object.keys(Ce[H]),[Q]:Object.keys(Ce[Q])};function gt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{skipLookups:n=!1}=t,o={[_]:"".concat(Ie.cssPrefix,"-").concat(_),[H]:"".concat(Ie.cssPrefix,"-").concat(H),[Q]:"".concat(Ie.cssPrefix,"-").concat(Q)};let s=null,i=_;const r=F.filter((e=>e!==W));r.forEach((t=>{(e.includes(o[t])||e.some((e=>ht[t].includes(e))))&&(i=t)}));const a=e.reduce(((e,t)=>{const a=function(e,t){const n=t.split("-"),o=n[0],s=n.slice(1).join("-");return o!==e||""===s||(i=s,~xe.indexOf(i))?null:s;var i}(Ie.cssPrefix,t);if(et[t]?(t=nt[i].includes(t)?ge[i][t]:t,s=t,e.prefix=t):ct[i].indexOf(t)>-1?(s=t,e.prefix=Ct(t,{family:i})):a?e.iconName=a:t===Ie.replacementClass||r.some((e=>t===o[e]))||e.rest.push(t),!n&&e.prefix&&e.iconName){const t="fa"===s?Mt(e.iconName):{},n=pt(e.prefix,e.iconName);t.prefix&&(s=null),e.iconName=t.iconName||n||e.iconName,e.prefix=t.prefix||e.prefix,"far"!==e.prefix||et.far||!et.fas||Ie.autoFetchSvg||(e.prefix="fas")}return e}),{prefix:null,iconName:null,rest:[]});return(e.includes("fa-brands")||e.includes("fab"))&&(a.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(a.prefix="fad"),a.prefix||i!==H||!et.fass&&!Ie.autoFetchSvg||(a.prefix="fass",a.iconName=pt(a.prefix,a.iconName)||a.iconName),a.prefix||i!==Q||!et.fasds&&!Ie.autoFetchSvg||(a.prefix="fasds",a.iconName=pt(a.prefix,a.iconName)||a.iconName),"fa"!==a.prefix&&"fa"!==s||(a.prefix=Lt()||"fas"),a}let wt=[],jt={};const mt={},bt=Object.keys(mt);function yt(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),s=2;s<n;s++)o[s-2]=arguments[s];return(jt[e]||[]).forEach((e=>{t=e.apply(null,[t,...o])})),t}function ft(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];(jt[e]||[]).forEach((e=>{e.apply(null,n)}))}function xt(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return mt[e]?mt[e].apply(null,t):void 0}function Nt(e){"fa"===e.prefix&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||Lt();if(t)return t=pt(n,t)||t,Je(St.definitions,n,t)||Je(We.styles,n,t)}const St=new class{constructor(){this.definitions={}}add(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const o=t.reduce(this._pullDefinitions,{});Object.keys(o).forEach((e=>{this.definitions[e]={...this.definitions[e]||{},...o[e]},$e(e,o[e]);const t=Ce[_][e];t&&$e(t,o[e]),ut()}))}reset(){this.definitions={}}_pullDefinitions(e,t){const n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map((t=>{const{prefix:o,iconName:s,icon:i}=n[t],r=i[2];e[o]||(e[o]={}),r.length>0&&r.forEach((t=>{"string"==typeof t&&(e[o][t]=i)})),e[o][s]=i})),e}},Dt={i2svg:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return G?(ft("beforeI2svg",e),xt("pseudoElements2svg",e),xt("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;var n;!1===Ie.autoReplaceSvg&&(Ie.autoReplaceSvg=!0),Ie.observeMutations=!0,n=()=>{Et({autoReplaceSvgRoot:t}),ft("watch",e)},G&&(Fe?setTimeout(n,0):He.push(n))}},It={icon:e=>{if(null===e)return null;if("object"==typeof e&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:pt(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){const t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=Ct(e[0]);return{prefix:n,iconName:pt(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(Ie.cssPrefix,"-"))>-1||e.match(we))){const t=gt(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||Lt(),iconName:pt(t.prefix,t.iconName)||t.iconName}}if("string"==typeof e){const t=Lt();return{prefix:t,iconName:pt(t,e)||e}}}},vt={noAuto:()=>{Ie.autoReplaceSvg=!1,Ie.observeMutations=!1,ft("noAuto")},config:Ie,dom:Dt,parse:It,library:St,findIconDefinition:Nt,toHtml:Ve},Et=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t=B}=e;(Object.keys(We.styles).length>0||Ie.autoFetchSvg)&&G&&Ie.autoReplaceSvg&&vt.dom.i2svg({node:t})};function Tt(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((e=>Ve(e)))}}),Object.defineProperty(e,"node",{get:function(){if(!G)return;const t=B.createElement("div");return t.innerHTML=e.html,t.children}}),e}function zt(e){const{icons:{main:t,mask:n},prefix:o,iconName:s,transform:i,symbol:r,title:a,maskId:l,titleId:c,extra:u,watchable:A=!1}=e,{width:d,height:p}=n.found?n:t,M="fak"===o,L=[Ie.replacementClass,s?"".concat(Ie.cssPrefix,"-").concat(s):""].filter((e=>-1===u.classes.indexOf(e))).filter((e=>""!==e||!!e)).concat(u.classes).join(" ");let C={children:[],attributes:{...u.attributes,"data-prefix":o,"data-icon":s,class:L,role:u.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(d," ").concat(p)}};const h=M&&!~u.classes.indexOf("fa-fw")?{width:"".concat(d/p*16*.0625,"em")}:{};A&&(C.attributes[ne]=""),a&&(C.children.push({tag:"title",attributes:{id:C.attributes["aria-labelledby"]||"title-".concat(c||ze())},children:[a]}),delete C.attributes.title);const g={...C,prefix:o,iconName:s,main:t,mask:n,maskId:l,transform:i,symbol:r,styles:{...h,...u.styles}},{children:w,attributes:j}=n.found&&t.found?xt("generateAbstractMask",g)||{children:[],attributes:{}}:xt("generateAbstractIcon",g)||{children:[],attributes:{}};return g.children=w,g.attributes=j,r?function(e){let{prefix:t,iconName:n,children:o,attributes:s,symbol:i}=e;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:{...s,id:!0===i?"".concat(t,"-").concat(Ie.cssPrefix,"-").concat(n):i},children:o}]}]}(g):function(e){let{children:t,main:n,mask:o,attributes:s,styles:i,transform:r}=e;if(Be(r)&&n.found&&!o.found){const{width:e,height:t}=n,o={x:e/t/2,y:.5};s.style=Pe({...i,"transform-origin":"".concat(o.x+r.x/16,"em ").concat(o.y+r.y/16,"em")})}return[{tag:"svg",attributes:s,children:t}]}(g)}function Ot(e){const{content:t,width:n,height:o,transform:s,title:i,extra:r,watchable:a=!1}=e,l={...r.attributes,...i?{title:i}:{},class:r.classes.join(" ")};a&&(l[ne]="");const c={...r.styles};Be(s)&&(c.transform=function(e){let{transform:t,width:n=ee,height:o=ee,startCentered:s=!1}=e,i="";return i+=s&&Z?"translate(".concat(t.x/Ee-n/2,"em, ").concat(t.y/Ee-o/2,"em) "):s?"translate(calc(-50% + ".concat(t.x/Ee,"em), calc(-50% + ").concat(t.y/Ee,"em)) "):"translate(".concat(t.x/Ee,"em, ").concat(t.y/Ee,"em) "),i+="scale(".concat(t.size/Ee*(t.flipX?-1:1),", ").concat(t.size/Ee*(t.flipY?-1:1),") "),i+="rotate(".concat(t.rotate,"deg) "),i}({transform:s,startCentered:!0,width:n,height:o}),c["-webkit-transform"]=c.transform);const u=Pe(c);u.length>0&&(l.style=u);const A=[];return A.push({tag:"span",attributes:l,children:[t]}),i&&A.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),A}const{styles:kt}=We;function Yt(e){const t=e[0],n=e[1],[o]=e.slice(4);let s=null;return s=Array.isArray(o)?{tag:"g",attributes:{class:"".concat(Ie.cssPrefix,"-").concat(ye.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Ie.cssPrefix,"-").concat(ye.SECONDARY),fill:"currentColor",d:o[0]}},{tag:"path",attributes:{class:"".concat(Ie.cssPrefix,"-").concat(ye.PRIMARY),fill:"currentColor",d:o[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:o}},{found:!0,width:t,height:n,icon:s}}const Pt={found:!1,width:512,height:512};function Bt(e,t){let n=t;return"fa"===t&&null!==Ie.styleDefault&&(t=Lt()),new Promise(((o,s)=>{if("fa"===n){const n=Mt(e)||{};e=n.iconName||e,t=n.prefix||t}if(e&&t&&kt[t]&&kt[t][e])return o(Yt(kt[t][e]));!function(e,t){le||Ie.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),o({...Pt,icon:Ie.showMissingIcons&&e&&xt("missingIconAbstract")||{}})}))}const Rt=()=>{},Ut=Ie.measurePerformance&&U&&U.mark&&U.measure?U:{mark:Rt,measure:Rt},Gt='FA "6.6.0"';var Zt=e=>(Ut.mark("".concat(Gt," ").concat(e," begins")),()=>(e=>{Ut.mark("".concat(Gt," ").concat(e," ends")),Ut.measure("".concat(Gt," ").concat(e),"".concat(Gt," ").concat(e," begins"),"".concat(Gt," ").concat(e," ends"))})(e));const _t=()=>{};function Wt(e){return"string"==typeof(e.getAttribute?e.getAttribute(ne):null)}function Ht(e){return B.createElementNS("http://www.w3.org/2000/svg",e)}function Qt(e){return B.createElement(e)}function Ft(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{ceFn:n=("svg"===e.tag?Ht:Qt)}=t;if("string"==typeof e)return B.createTextNode(e);const o=n(e.tag);return Object.keys(e.attributes||[]).forEach((function(t){o.setAttribute(t,e.attributes[t])})),(e.children||[]).forEach((function(e){o.appendChild(Ft(e,{ceFn:n}))})),o}const Vt={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach((e=>{t.parentNode.insertBefore(Ft(e),t)})),null===t.getAttribute(ne)&&Ie.keepOriginalSource){let e=B.createComment(function(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}(t));t.parentNode.replaceChild(e,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~ke(t).indexOf(Ie.replacementClass))return Vt.replace(e);const o=new RegExp("".concat(Ie.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const e=n[0].attributes.class.split(" ").reduce(((e,t)=>(t===Ie.replacementClass||t.match(o)?e.toSvg.push(t):e.toNode.push(t),e)),{toNode:[],toSvg:[]});n[0].attributes.class=e.toSvg.join(" "),0===e.toNode.length?t.removeAttribute("class"):t.setAttribute("class",e.toNode.join(" "))}const s=n.map((e=>Ve(e))).join("\n");t.setAttribute(ne,""),t.innerHTML=s}};function Jt(e){e()}function Xt(e,t){const n="function"==typeof t?t:_t;if(0===e.length)n();else{let t=Jt;"async"===Ie.mutateApproach&&(t=P.requestAnimationFrame||Jt),t((()=>{const t=!0===Ie.autoReplaceSvg?Vt.replace:Vt[Ie.autoReplaceSvg]||Vt.replace,o=Zt("mutate");e.map(t),o(),n()}))}}let qt=!1;function Kt(){qt=!0}function $t(){qt=!1}let en=null;function tn(e){if(!R)return;if(!Ie.observeMutations)return;const{treeCallback:t=_t,nodeCallback:n=_t,pseudoElementsCallback:o=_t,observeMutationsRoot:s=B}=e;en=new R((e=>{if(qt)return;const s=Lt();Oe(e).forEach((e=>{if("childList"===e.type&&e.addedNodes.length>0&&!Wt(e.addedNodes[0])&&(Ie.searchPseudoElements&&o(e.target),t(e.target)),"attributes"===e.type&&e.target.parentNode&&Ie.searchPseudoElements&&o(e.target.parentNode),"attributes"===e.type&&Wt(e.target)&&~be.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){const t=e.getAttribute?e.getAttribute(se):null,n=e.getAttribute?e.getAttribute(ie):null;return t&&n}(e.target)){const{prefix:t,iconName:n}=gt(ke(e.target));e.target.setAttribute(se,t||s),n&&e.target.setAttribute(ie,n)}else(i=e.target)&&i.classList&&i.classList.contains&&i.classList.contains(Ie.replacementClass)&&n(e.target);var i}))})),G&&en.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function nn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0};const{iconName:n,prefix:o,rest:s}=function(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),o=void 0!==e.innerText?e.innerText.trim():"";let s=gt(ke(e));return s.prefix||(s.prefix=Lt()),t&&n&&(s.prefix=t,s.iconName=n),s.iconName&&s.prefix||(s.prefix&&o.length>0&&(s.iconName=(i=s.prefix,r=e.innerText,(it[i]||{})[r]||dt(s.prefix,qe(e.innerText)))),!s.iconName&&Ie.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(s.iconName=e.firstChild.data)),s;var i,r}(e),i=function(e){const t=Oe(e.attributes).reduce(((e,t)=>("class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e)),{}),n=e.getAttribute("title"),o=e.getAttribute("data-fa-title-id");return Ie.autoA11y&&(n?t["aria-labelledby"]="".concat(Ie.replacementClass,"-title-").concat(o||ze()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),r=yt("parseNodeAttributes",{},e);let a=t.styleParser?function(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce(((e,t)=>{const n=t.split(":"),o=n[0],s=n.slice(1);return o&&s.length>0&&(e[o]=s.join(":").trim()),e}),{})),n}(e):[];return{iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:o,transform:Te,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:s,styles:a,attributes:i},...r}}const{styles:on}=We;function sn(e){const t="nest"===Ie.autoReplaceSvg?nn(e,{styleParser:!1}):nn(e);return~t.extra.classes.indexOf(je)?xt("generateLayersText",e,t):xt("generateSvgReplacementMutation",e,t)}let rn=new Set;function an(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!G)return Promise.resolve();const n=B.documentElement.classList,o=e=>n.add("".concat(re,"-").concat(e)),s=e=>n.remove("".concat(re,"-").concat(e)),i=Ie.autoFetchSvg?rn:ce.map((e=>"fa-".concat(e))).concat(Object.keys(on));i.includes("fa")||i.push("fa");const r=[".".concat(je,":not([").concat(ne,"])")].concat(i.map((e=>".".concat(e,":not([").concat(ne,"])")))).join(", ");if(0===r.length)return Promise.resolve();let a=[];try{a=Oe(e.querySelectorAll(r))}catch(e){}if(!(a.length>0))return Promise.resolve();o("pending"),s("complete");const l=Zt("onTree"),c=a.reduce(((e,t)=>{try{const n=sn(t);n&&e.push(n)}catch(e){le||"MissingIcon"===e.name&&console.error(e)}return e}),[]);return new Promise(((e,n)=>{Promise.all(c).then((n=>{Xt(n,(()=>{o("active"),o("complete"),s("pending"),"function"==typeof t&&t(),l(),e()}))})).catch((e=>{l(),n(e)}))}))}function ln(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;sn(e).then((e=>{e&&Xt([e],t)}))}ce.map((e=>{rn.add("fa-".concat(e))})),Object.keys(de[_]).map(rn.add.bind(rn)),Object.keys(de[H]).map(rn.add.bind(rn)),Object.keys(de[Q]).map(rn.add.bind(rn)),rn=[...rn];const cn=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=Te,symbol:o=!1,mask:s=null,maskId:i=null,title:r=null,titleId:a=null,classes:l=[],attributes:c={},styles:u={}}=t;if(!e)return;const{prefix:A,iconName:d,icon:p}=e;return Tt({type:"icon",...e},(()=>(ft("beforeDOMElementCreation",{iconDefinition:e,params:t}),Ie.autoA11y&&(r?c["aria-labelledby"]="".concat(Ie.replacementClass,"-title-").concat(a||ze()):(c["aria-hidden"]="true",c.focusable="false")),zt({icons:{main:Yt(p),mask:s?Yt(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:A,iconName:d,transform:{...Te,...n},symbol:o,title:r,maskId:i,titleId:a,extra:{attributes:c,styles:u,classes:l}}))))};var un={mixout(){return{icon:(e=cn,function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=(t||{}).icon?t:Nt(t||{});let{mask:s}=n;return s&&(s=(s||{}).icon?s:Nt(s||{})),e(o,{...n,mask:s})})};var e},hooks:()=>({mutationObserverCallbacks:e=>(e.treeCallback=an,e.nodeCallback=ln,e)}),provides(e){e.i2svg=function(e){const{node:t=B,callback:n=()=>{}}=e;return an(t,n)},e.generateSvgReplacementMutation=function(e,t){const{iconName:n,title:o,titleId:s,prefix:i,transform:r,symbol:a,mask:l,maskId:c,extra:u}=t;return new Promise(((t,A)=>{Promise.all([Bt(n,i),l.iconName?Bt(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((l=>{let[A,d]=l;t([e,zt({icons:{main:A,mask:d},prefix:i,iconName:n,transform:r,symbol:a,maskId:c,title:o,titleId:s,extra:u,watchable:!0})])})).catch(A)}))},e.generateAbstractIcon=function(e){let{children:t,attributes:n,main:o,transform:s,styles:i}=e;const r=Pe(i);let a;return r.length>0&&(n.style=r),Be(s)&&(a=xt("generateAbstractTransformGrouping",{main:o,transform:s,containerWidth:o.width,iconWidth:o.width})),t.push(a||o.icon),{children:t,attributes:n}}}},An={mixout:()=>({layer(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{classes:n=[]}=t;return Tt({type:"layer"},(()=>{ft("beforeDOMElementCreation",{assembler:e,params:t});let o=[];return e((e=>{Array.isArray(e)?e.map((e=>{o=o.concat(e.abstract)})):o=o.concat(e.abstract)})),[{tag:"span",attributes:{class:["".concat(Ie.cssPrefix,"-layers"),...n].join(" ")},children:o}]}))}})},dn={mixout:()=>({counter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{title:n=null,classes:o=[],attributes:s={},styles:i={}}=t;return Tt({type:"counter",content:e},(()=>(ft("beforeDOMElementCreation",{content:e,params:t}),function(e){const{content:t,title:n,extra:o}=e,s={...o.attributes,...n?{title:n}:{},class:o.classes.join(" ")},i=Pe(o.styles);i.length>0&&(s.style=i);const r=[];return r.push({tag:"span",attributes:s,children:[t]}),n&&r.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),r}({content:e.toString(),title:n,extra:{attributes:s,styles:i,classes:["".concat(Ie.cssPrefix,"-layers-counter"),...o]}}))))}})},pn={mixout:()=>({text(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=Te,title:o=null,classes:s=[],attributes:i={},styles:r={}}=t;return Tt({type:"text",content:e},(()=>(ft("beforeDOMElementCreation",{content:e,params:t}),Ot({content:e,transform:{...Te,...n},title:o,extra:{attributes:i,styles:r,classes:["".concat(Ie.cssPrefix,"-layers-text"),...s]}}))))}}),provides(e){e.generateLayersText=function(e,t){const{title:n,transform:o,extra:s}=t;let i=null,r=null;if(Z){const t=parseInt(getComputedStyle(e).fontSize,10),n=e.getBoundingClientRect();i=n.width/t,r=n.height/t}return Ie.autoA11y&&!n&&(s.attributes["aria-hidden"]="true"),Promise.resolve([e,Ot({content:e.innerHTML,width:i,height:r,transform:o,title:n,extra:s,watchable:!0})])}}};const Mn=new RegExp('"',"ug"),Ln=[1105920,1112319],Cn={FontAwesome:{normal:"fas",400:"fas"},"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds"},"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"},"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},hn=Object.keys(Cn).reduce(((e,t)=>(e[t.toLowerCase()]=Cn[t],e)),{}),gn=Object.keys(hn).reduce(((e,t)=>{const n=hn[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e}),{});function wn(e,t){const n="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise(((o,s)=>{if(null!==e.getAttribute(n))return o();const i=Oe(e.children).filter((e=>e.getAttribute(oe)===t))[0],r=P.getComputedStyle(e,t),a=r.getPropertyValue("font-family"),l=a.match(me),c=r.getPropertyValue("font-weight"),u=r.getPropertyValue("content");if(i&&!l)return e.removeChild(i),o();if(l&&"none"!==u&&""!==u){const u=r.getPropertyValue("content");let A=function(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),o=parseInt(t),s=isNaN(o)?"normal":o;return(hn[n]||{})[s]||gn[n]}(a,c);const{value:d,isSecondary:p}=function(e){const t=e.replace(Mn,""),n=function(e){const t=e.length;let n,o=e.charCodeAt(0);return o>=55296&&o<=56319&&t>1&&(n=e.charCodeAt(1),n>=56320&&n<=57343)?1024*(o-55296)+n-56320+65536:o}(t),o=n>=Ln[0]&&n<=Ln[1],s=2===t.length&&t[0]===t[1];return{value:qe(s?t[0]:t),isSecondary:o||s}}(u),M=l[0].startsWith("FontAwesome");let L=dt(A,d),C=L;if(M){const e=function(e){const t=at[e],n=dt("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}(d);e.iconName&&e.prefix&&(L=e.iconName,A=e.prefix)}if(!L||p||i&&i.getAttribute(se)===A&&i.getAttribute(ie)===C)o();else{e.setAttribute(n,C),i&&e.removeChild(i);const r={iconName:null,title:null,titleId:null,prefix:null,transform:Te,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},{extra:a}=r;a.attributes[oe]=t,Bt(L,A).then((s=>{const i=zt({...r,icons:{main:s,mask:{prefix:null,iconName:null,rest:[]}},prefix:A,iconName:C,extra:a,watchable:!0}),l=B.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(l,e.firstChild):e.appendChild(l),l.outerHTML=i.map((e=>Ve(e))).join("\n"),e.removeAttribute(n),o()})).catch(s)}}else o()}))}function jn(e){return Promise.all([wn(e,"::before"),wn(e,"::after")])}function mn(e){return!(e.parentNode===document.head||~ae.indexOf(e.tagName.toUpperCase())||e.getAttribute(oe)||e.parentNode&&"svg"===e.parentNode.tagName)}function bn(e){if(G)return new Promise(((t,n)=>{const o=Oe(e.querySelectorAll("*")).filter(mn).map(jn),s=Zt("searchPseudoElements");Kt(),Promise.all(o).then((()=>{s(),$t(),t()})).catch((()=>{s(),$t(),n()}))}))}var yn={hooks:()=>({mutationObserverCallbacks:e=>(e.pseudoElementsCallback=bn,e)}),provides(e){e.pseudoElements2svg=function(e){const{node:t=B}=e;Ie.searchPseudoElements&&bn(t)}}};let fn=!1;var xn={mixout:()=>({dom:{unwatch(){Kt(),fn=!0}}}),hooks:()=>({bootstrap(){tn(yt("mutationObserverCallbacks",{}))},noAuto(){en&&en.disconnect()},watch(e){const{observeMutationsRoot:t}=e;fn?$t():tn(yt("mutationObserverCallbacks",{observeMutationsRoot:t}))}})};const Nn=e=>e.toLowerCase().split(" ").reduce(((e,t)=>{const n=t.toLowerCase().split("-"),o=n[0];let s=n.slice(1).join("-");if(o&&"h"===s)return e.flipX=!0,e;if(o&&"v"===s)return e.flipY=!0,e;if(s=parseFloat(s),isNaN(s))return e;switch(o){case"grow":e.size=e.size+s;break;case"shrink":e.size=e.size-s;break;case"left":e.x=e.x-s;break;case"right":e.x=e.x+s;break;case"up":e.y=e.y-s;break;case"down":e.y=e.y+s;break;case"rotate":e.rotate=e.rotate+s}return e}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0});var Sn={mixout:()=>({parse:{transform:e=>Nn(e)}}),hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=Nn(n)),e}}),provides(e){e.generateAbstractTransformGrouping=function(e){let{main:t,transform:n,containerWidth:o,iconWidth:s}=e;const i={transform:"translate(".concat(o/2," 256)")},r="translate(".concat(32*n.x,", ").concat(32*n.y,") "),a="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),l="rotate(".concat(n.rotate," 0 0)"),c={transform:"".concat(r," ").concat(a," ").concat(l)},u={transform:"translate(".concat(s/2*-1," -256)")};return{tag:"g",attributes:{...i},children:[{tag:"g",attributes:{...c},children:[{tag:t.icon.tag,children:t.icon.children,attributes:{...t.icon.attributes,...u}}]}]}}}};const Dn={x:0,y:0,width:"100%",height:"100%"};function In(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}var vn={hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),o=n?gt(n.split(" ").map((e=>e.trim()))):{prefix:null,iconName:null,rest:[]};return o.prefix||(o.prefix=Lt()),e.mask=o,e.maskId=t.getAttribute("data-fa-mask-id"),e}}),provides(e){e.generateAbstractMask=function(e){let{children:t,attributes:n,main:o,mask:s,maskId:i,transform:r}=e;const{width:a,icon:l}=o,{width:c,icon:u}=s,A=function(e){let{transform:t,containerWidth:n,iconWidth:o}=e;const s={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),r="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)");return{outer:s,inner:{transform:"".concat(i," ").concat(r," ").concat(a)},path:{transform:"translate(".concat(o/2*-1," -256)")}}}({transform:r,containerWidth:c,iconWidth:a}),d={tag:"rect",attributes:{...Dn,fill:"white"}},p=l.children?{children:l.children.map(In)}:{},M={tag:"g",attributes:{...A.inner},children:[In({tag:l.tag,attributes:{...l.attributes,...A.path},...p})]},L={tag:"g",attributes:{...A.outer},children:[M]},C="mask-".concat(i||ze()),h="clip-".concat(i||ze()),g={tag:"mask",attributes:{...Dn,id:C,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"},children:[d,L]},w={tag:"defs",children:[{tag:"clipPath",attributes:{id:h},children:(j=u,"g"===j.tag?j.children:[j])},g]};var j;return t.push(w,{tag:"rect",attributes:{fill:"currentColor","clip-path":"url(#".concat(h,")"),mask:"url(#".concat(C,")"),...Dn}}),{children:t,attributes:n}}}},En={provides(e){let t=!1;P.matchMedia&&(t=P.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const e=[],n={fill:"currentColor"},o={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:{...n,d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}});const s={...o,attributeName:"opacity"},i={tag:"circle",attributes:{...n,cx:"256",cy:"364",r:"28"},children:[]};return t||i.children.push({tag:"animate",attributes:{...o,attributeName:"r",values:"28;14;28;28;14;28;"}},{tag:"animate",attributes:{...s,values:"1;0;1;1;0;1;"}}),e.push(i),e.push({tag:"path",attributes:{...n,opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"},children:t?[]:[{tag:"animate",attributes:{...s,values:"1;0;0;0;0;1;"}}]}),t||e.push({tag:"path",attributes:{...n,opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"},children:[{tag:"animate",attributes:{...s,values:"0;0;1;1;0;0;"}}]}),{tag:"g",attributes:{class:"missing"},children:e}}}};!function(e,t){let{mixoutsTo:n}=t;wt=e,jt={},Object.keys(mt).forEach((e=>{-1===bt.indexOf(e)&&delete mt[e]})),wt.forEach((e=>{const t=e.mixout?e.mixout():{};if(Object.keys(t).forEach((e=>{"function"==typeof t[e]&&(n[e]=t[e]),"object"==typeof t[e]&&Object.keys(t[e]).forEach((o=>{n[e]||(n[e]={}),n[e][o]=t[e][o]}))})),e.hooks){const t=e.hooks();Object.keys(t).forEach((e=>{jt[e]||(jt[e]=[]),jt[e].push(t[e])}))}e.provides&&e.provides(mt)}))}([Ze,un,An,dn,pn,yn,xn,Sn,vn,En,{hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),o=null!==n&&(""===n||n);return e.symbol=o,e}})}],{mixoutsTo:vt});const Tn=vt.parse,zn=vt.icon;var On=s(764),kn=s.n(On);function Yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Pn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yn(Object(n),!0).forEach((function(t){Rn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bn(e){return Bn="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},Bn(e)}function Rn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Un(e){return function(e){if(Array.isArray(e))return Gn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Gn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gn(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function Zn(e){return t=e,(t-=0)==t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}var _n=["style"],Wn=!1;try{Wn=!0}catch(e){}function Hn(e){return e&&"object"===Bn(e)&&e.prefix&&e.iconName&&e.icon?e:Tn.icon?Tn.icon(e):null===e?null:e&&"object"===Bn(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function Qn(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Rn({},e,t):{}}var Fn={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},Vn=t.forwardRef((function(e,t){var n=Pn(Pn({},Fn),e),o=n.icon,s=n.mask,i=n.symbol,r=n.className,a=n.title,l=n.titleId,c=n.maskId,u=Hn(o),A=Qn("classes",[].concat(Un(function(e){var t,n=e.beat,o=e.fade,s=e.beatFade,i=e.bounce,r=e.shake,a=e.flash,l=e.spin,c=e.spinPulse,u=e.spinReverse,A=e.pulse,d=e.fixedWidth,p=e.inverse,M=e.border,L=e.listItem,C=e.flip,h=e.size,g=e.rotation,w=e.pull,j=(Rn(t={"fa-beat":n,"fa-fade":o,"fa-beat-fade":s,"fa-bounce":i,"fa-shake":r,"fa-flash":a,"fa-spin":l,"fa-spin-reverse":u,"fa-spin-pulse":c,"fa-pulse":A,"fa-fw":d,"fa-inverse":p,"fa-border":M,"fa-li":L,"fa-flip":!0===C,"fa-flip-horizontal":"horizontal"===C||"both"===C,"fa-flip-vertical":"vertical"===C||"both"===C},"fa-".concat(h),null!=h),Rn(t,"fa-rotate-".concat(g),null!=g&&0!==g),Rn(t,"fa-pull-".concat(w),null!=w),Rn(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(j).map((function(e){return j[e]?e:null})).filter((function(e){return e}))}(n)),Un((r||"").split(" ")))),d=Qn("transform","string"==typeof n.transform?Tn.transform(n.transform):n.transform),p=Qn("mask",Hn(s)),M=zn(u,Pn(Pn(Pn(Pn({},A),d),p),{},{symbol:i,title:a,titleId:l,maskId:c}));if(!M)return function(){var e;!Wn&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",u),null;var L=M.abstract,C={ref:t};return Object.keys(n).forEach((function(e){Fn.hasOwnProperty(e)||(C[e]=n[e])})),Jn(L[0],C)}));Vn.displayName="FontAwesomeIcon",Vn.propTypes={beat:kn().bool,border:kn().bool,beatFade:kn().bool,bounce:kn().bool,className:kn().string,fade:kn().bool,flash:kn().bool,mask:kn().oneOfType([kn().object,kn().array,kn().string]),maskId:kn().string,fixedWidth:kn().bool,inverse:kn().bool,flip:kn().oneOf([!0,!1,"horizontal","vertical","both"]),icon:kn().oneOfType([kn().object,kn().array,kn().string]),listItem:kn().bool,pull:kn().oneOf(["right","left"]),pulse:kn().bool,rotation:kn().oneOf([0,90,180,270]),shake:kn().bool,size:kn().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:kn().bool,spinPulse:kn().bool,spinReverse:kn().bool,symbol:kn().oneOfType([kn().bool,kn().string]),title:kn().string,titleId:kn().string,transform:kn().oneOfType([kn().string,kn().object]),swapOpacity:kn().bool};var Jn=function e(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var s=(n.children||[]).map((function(n){return e(t,n)})),i=Object.keys(n.attributes||{}).reduce((function(e,t){var o=n.attributes[t];switch(t){case"class":e.attrs.className=o,delete n.attributes.class;break;case"style":e.attrs.style=o.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,o=t.indexOf(":"),s=Zn(t.slice(0,o)),i=t.slice(o+1).trim();return s.startsWith("webkit")?e[(n=s,n.charAt(0).toUpperCase()+n.slice(1))]=i:e[s]=i,e}),{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=o:e.attrs[Zn(t)]=o}return e}),{attrs:{}}),r=o.style,a=void 0===r?{}:r,l=function(e,t){if(null==e)return{};var n,o,s=function(e,t){if(null==e)return{};var n,o,s={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(s[n]=e[n]);return s}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}(o,_n);return i.attrs.style=Pn(Pn({},i.attrs.style),a),t.apply(void 0,[n.tag,Pn(Pn({},i.attrs),l)].concat(Un(s)))}.bind(null,t.createElement);const Xn={size30:{on:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMTkuNzUsMTcuNWEyLjUsMi41LDAsMSwwLTIuNS0yLjVBMi41LDIuNSwwLDAsMCwxOS43NSwxNy41WiIgc3R5bGU9ImZpbGw6IzMzMyIvPjxwYXRoIGQ9Ik01LDE1YTUsNSwwLDAsMSw1LTVIMjBhNSw1LDAsMCwxLDAsMTBIMTBBNSw1LDAsMCwxLDUsMTVabTUtMy41YTMuNSwzLjUsMCwwLDAsMCw3SDIwYTMuNSwzLjUsMCwwLDAsMC03WiIgc3R5bGU9ImZpbGw6IzMzMyIvPjwvc3ZnPg==",mixed:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmJ7ZmlsbDojMzMzO308L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iYiIgZD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uNTctMy41LTMuNS0zLjVIMTVaIi8+PC9zdmc+"}};class qn extends t.Component{constructor(e){super(e),this._localChange=!1,this.props.isSelected?this.state={isSelected:this.props.isSelected(),isConflict:!1}:this.state={isSelected:!0===this.props.target[this.props.propertyName],isConflict:this.props.target[this.props.propertyName]===b},this.props.disabled&&(this.state={...this.state,isDisabled:this.props.disabled})}shouldComponentUpdate(e,t){let n;return e.isSelected?n=e.isSelected():(n=!0===e.target[e.propertyName],e.target[e.propertyName]===b&&(t.isConflict=!0)),n!==t.isSelected||this._localChange?(t.isSelected=n,this._localChange=!1,!0):e.disabled!==t.isDisabled||e.label!==this.props.label||e.target!==this.props.target||t.isConflict!==this.state.isConflict}onChange(){this._localChange=!0,this.props.onSelect?this.props.onSelect(!this.state.isSelected):(this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:!this.state.isSelected,initialValue:this.state.isSelected}),this.props.target&&this.props.propertyName&&(this.props.target[this.props.propertyName]=!this.state.isSelected)),this.props.onValueChanged&&this.props.onValueChanged(),this.setState({isSelected:!this.state.isSelected,isConflict:!1})}onCopyClick(){if(this.props&&this.props.target){const{className:e,babylonNamespace:t}=m(this.props.target);j("globalThis.debugNode."+this.props.propertyName+" = "+this.props.target[this.props.propertyName]+";// (debugNode as "+t+e+")")}else j("undefined")}render(){const e=this.props.large?Xn.size40:Xn.size30,t=this.state.isConflict?e.mixed:this.state.isSelected?e.on:e.off;return(0,L.jsxs)("div",{className:"checkBoxLine",children:[this.props.icon&&(0,L.jsx)("img",{src:this.props.icon,title:this.props.iconLabel,alt:this.props.iconLabel,className:"icon"}),this.props.label&&(0,L.jsx)("div",{className:"label",title:this.props.iconLabel,children:this.props.label}),this.props.faIcons&&(0,L.jsx)(Vn,{className:"cbx "+(this.props.disabled?"disabled":""),icon:this.state.isSelected?this.props.faIcons.enabled:this.props.faIcons.disabled,onClick:()=>!this.props.disabled&&this.onChange()}),!this.props.faIcons&&(0,L.jsx)("div",{className:"checkBox",children:(0,L.jsxs)("label",{className:`container lbl${this.props.disabled?" disabled":""} ${this.state.isSelected?"checked":""}`,children:[(0,L.jsx)("input",{type:"checkbox",className:"cbx hidden "+(this.state.isConflict?"conflict":""),checked:this.state.isSelected,onChange:()=>this.onChange(),disabled:!!this.props.disabled}),(0,L.jsx)("img",{className:"icon",src:t,alt:this.props.label})]})}),(0,L.jsx)("div",{className:"copy hoverIcon",onClick:()=>this.onCopyClick(),title:"Copy to clipboard",children:(0,L.jsx)("img",{src:x,alt:"Copy"})})]})}}class Kn extends t.Component{constructor(e){super(e),this._localChange=!1,this.state={value:this.props.value.toFixed(void 0!==this.props.precision?this.props.precision:3)}}componentWillUnmount(){this.props.lockObject&&(this.props.lockObject.lock=!1)}shouldComponentUpdate(e,t){return this._localChange?(this._localChange=!1,!0):e.value.toString()!==t.value&&(t.value=e.value.toFixed(void 0!==this.props.precision?this.props.precision:3),!0)}updateValue(e){if(/[^0-9.-]/g.test(e))return;const t=parseFloat(e);this._localChange=!0,this.setState({value:e}),isNaN(t)||this.props.onChange(t)}onBlur(){this._localChange=!1;const e=parseFloat(this.state.value);this.props.lockObject&&(this.props.lockObject.lock=!1),isNaN(e)?this.props.onChange(this.props.value):this.props.onChange(e)}incrementValue(e){let t=parseFloat(this.state.value);isNaN(t)&&(t=0),this.updateValue((t+e).toFixed(void 0!==this.props.precision?this.props.precision:3))}onKeyDown(e){const t=this.props.step||1,n=n=>{e.shiftKey&&(n*=10,(e.ctrlKey||e.metaKey)&&(n*=10)),this.incrementValue(n*t),e.preventDefault()};"ArrowUp"===e.key?n(1):"ArrowDown"===e.key&&n(-1)}render(){return(0,L.jsxs)("div",{className:"numeric",children:[this.props.icon&&(0,L.jsx)("img",{src:this.props.icon,title:this.props.iconLabel,alt:this.props.iconLabel,className:"icon"}),this.props.label&&(0,L.jsx)("div",{className:"numeric-label",title:this.props.labelTooltip??this.props.label,children:`${this.props.label}: `}),(0,L.jsx)("input",{type:"number",step:this.props.step,className:"numeric-input",value:this.state.value,onChange:e=>this.updateValue(e.target.value),onKeyDown:e=>this.onKeyDown(e),onFocus:()=>{this.props.lockObject&&(this.props.lockObject.lock=!0)},onBlur:()=>this.onBlur()})]})}}Kn.defaultProps={step:1};const $n={prefix:"fas",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M367.2 412.5L99.5 144.8C77.1 176.1 64 214.5 64 256c0 106 86 192 192 192c41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3C434.9 335.9 448 297.5 448 256c0-106-86-192-192-192c-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},eo={prefix:"fas",iconName:"minus",icon:[448,512,[8211,8722,10134,"subtract"],"f068","M432 256c0 17.7-14.3 32-32 32L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l352 0c17.7 0 32 14.3 32 32z"]},to={prefix:"fas",iconName:"ellipsis",icon:[448,512,["ellipsis-h"],"f141","M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z"]},no={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]};class oo extends t.Component{constructor(e){super(e)}updateValue(e){if(/[^0-9.-]/g.test(e))return;let t=parseInt(e);isNaN(t)||(null!=this.props.max&&t>this.props.max&&(t=this.props.max),null!=this.props.min&&t<this.props.min&&(t=this.props.min),this.props.onChange(t))}lock(){this.props.lockObject&&(this.props.lockObject.lock=!0)}unlock(){this.props.lockObject&&(this.props.lockObject.lock=!1)}render(){return(0,L.jsxs)("div",{className:"color-picker-component",children:[(0,L.jsx)("div",{className:"color-picker-component-value",children:(0,L.jsx)("input",{type:"number",step:1,className:"numeric-input",value:this.props.value,onBlur:()=>this.unlock(),onFocus:()=>this.lock(),onChange:e=>this.updateValue(e.target.value),disabled:this.props.disabled})}),(0,L.jsx)("div",{className:"color-picker-component-label",children:this.props.label})]})}}class so extends t.Component{constructor(e){super(e),this.state={hex:this.props.value.replace("#","")}}shouldComponentUpdate(e,t){return e.value!==this.props.value&&(t.hex=e.value.replace("#","")),!0}lock(){this.props.lockObject&&(this.props.lockObject.lock=!0)}unlock(){this.props.lockObject&&(this.props.lockObject.lock=!1)}updateHexValue(e){if(""==e||0!=/^[0-9A-Fa-f]+$/g.test(e)){if(this.setState({hex:e}),e.length!==this.props.expectedLength)if(8===this.props.expectedLength&&6===e.length)e+="FF";else{if(6!==this.props.expectedLength||8!==e.length)return;e=e.substring(0,6)}this.props.onChange("#"+e)}}render(){return(0,L.jsx)("input",{type:"string",className:"hex-input",value:this.state.hex,onBlur:()=>this.unlock(),onFocus:()=>this.lock(),onChange:e=>this.updateHexValue(e.target.value)})}}var io=s(392),ro=s.n(io),ao=s(633),lo=s.n(ao),co=s(187),uo=s.n(co),Ao=s(784),po=s.n(Ao),Mo=s(316),Lo=s.n(Mo),Co=s(809),ho=s.n(Co),go=s(228),wo={};wo.styleTagTransform=ho(),wo.setAttributes=po(),wo.insert=uo().bind(null,"head"),wo.domAPI=lo(),wo.insertStyleElement=Lo(),ro()(go.A,wo),go.A&&go.A.locals&&go.A.locals;class jo extends t.Component{constructor(e){super(e),this.props.color instanceof o.Color4?this.state={color:new o.Color3(this.props.color.r,this.props.color.g,this.props.color.b),alpha:this.props.color.a}:this.state={color:this.props.color.clone(),alpha:1},this._saturationRef=t.createRef(),this._hueRef=t.createRef()}shouldComponentUpdate(e,t){return e.color.toHexString()!==this.props.color.toHexString()||t.color.toHexString()!==this.props.color.toHexString()}onSaturationPointerDown(e){this._evaluateSaturation(e),this._isSaturationPointerDown=!0,e.currentTarget.setPointerCapture(e.pointerId)}onSaturationPointerUp(e){this._isSaturationPointerDown=!1,e.currentTarget.releasePointerCapture(e.pointerId)}onSaturationPointerMove(e){this._isSaturationPointerDown&&this._evaluateSaturation(e)}onHuePointerDown(e){this._evaluateHue(e),this._isHuePointerDown=!0,e.currentTarget.setPointerCapture(e.pointerId)}onHuePointerUp(e){this._isHuePointerDown=!1,e.currentTarget.releasePointerCapture(e.pointerId)}onHuePointerMove(e){this._isHuePointerDown&&this._evaluateHue(e)}_evaluateSaturation(e){const t=e.nativeEvent.offsetX,n=e.nativeEvent.offsetY,s=Math.min(1,Math.max(1e-4,t/this._saturationRef.current.clientWidth)),i=Math.min(1,Math.max(1e-4,1-n/this._saturationRef.current.clientHeight));this.props.debugMode&&(o.Logger.Log("Saturation: "+s),o.Logger.Log("Value: "+i));const r=this.state.color.toHSV();o.Color3.HSVtoRGBToRef(r.r,s,i,this.state.color),0===this.state.alpha&&this.setState({alpha:1}),this.setState({color:this.state.color})}_evaluateHue(e){const t=e.nativeEvent.offsetX,n=360*Math.min(.9999,Math.max(1e-4,t/this._hueRef.current.clientWidth));this.props.debugMode&&o.Logger.Log("Hue: "+n);const s=this.state.color.toHSV();o.Color3.HSVtoRGBToRef(n,Math.max(s.g,.01),Math.max(s.b,.01),this.state.color),this.setState({color:this.state.color})}componentDidUpdate(){this.raiseOnColorChanged()}raiseOnColorChanged(){if(this.props.onColorChanged)if(this.props.color instanceof o.Color4){const e=o.Color4.FromColor3(this.state.color,this.state.alpha);this.props.onColorChanged(e)}else this.props.onColorChanged(this.state.color.clone())}render(){const e=o.Color4.FromColor3(this.state.color);e.a=this.state.alpha;const t=e.toHexString(),n=this.state.color.toHSV(),s=new o.Color3;o.Color3.HSVtoRGBToRef(n.r,1,1,s);const i=s.toHexString(),r=this.props.color instanceof o.Color4;return(0,L.jsxs)("div",{className:"color-picker-container"+(this.props.linearhint?" with-hints":""),children:[(0,L.jsxs)("div",{className:"color-picker-saturation",onPointerMove:e=>this.onSaturationPointerMove(e),onPointerDown:e=>this.onSaturationPointerDown(e),onPointerUp:e=>this.onSaturationPointerUp(e),ref:this._saturationRef,style:{background:i},children:[(0,L.jsx)("div",{className:"color-picker-saturation-white"}),(0,L.jsx)("div",{className:"color-picker-saturation-black"}),(0,L.jsx)("div",{className:"color-picker-saturation-cursor",style:{top:-100*n.b+100+"%",left:100*n.g+"%"}})]}),(0,L.jsxs)("div",{className:"color-picker-hue",children:[(0,L.jsx)("div",{className:"color-picker-hue-color",style:{background:t}}),(0,L.jsx)("div",{className:"color-picker-hue-slider",ref:this._hueRef,onPointerMove:e=>this.onHuePointerMove(e),onPointerDown:e=>this.onHuePointerDown(e),onPointerUp:e=>this.onHuePointerUp(e),children:(0,L.jsx)("div",{className:"color-picker-hue-cursor",style:{left:n.r/360*100+"%",border:"1px solid "+i}})})]}),(0,L.jsx)("div",{className:"color-picker-alpha"}),(0,L.jsxs)("div",{className:"color-picker-rgb",children:[(0,L.jsx)("div",{className:"red",children:(0,L.jsx)(oo,{lockObject:this.props.lockObject,label:"R",min:0,max:255,value:Math.round(255*this.state.color.r),onChange:e=>{this.state.color.r=e/255,this.forceUpdate()}})}),(0,L.jsx)("div",{className:"green",children:(0,L.jsx)(oo,{lockObject:this.props.lockObject,label:"G",min:0,max:255,value:Math.round(255*this.state.color.g),onChange:e=>{this.state.color.g=e/255,this.forceUpdate()}})}),(0,L.jsx)("div",{className:"blue",children:(0,L.jsx)(oo,{lockObject:this.props.lockObject,label:"B",min:0,max:255,value:Math.round(255*this.state.color.b),onChange:e=>{this.state.color.b=e/255,this.forceUpdate()}})}),(0,L.jsx)("div",{className:"alpha"+(r?"":" grayed"),children:(0,L.jsx)(oo,{lockObject:this.props.lockObject,label:"A",min:0,max:255,value:Math.round(255*this.state.alpha),onChange:e=>{this.setState({alpha:e/255}),this.forceUpdate()}})})]}),(0,L.jsxs)("div",{className:"color-picker-hex",children:[(0,L.jsx)("div",{className:"color-picker-hex-label",children:"Hex"}),(0,L.jsx)("div",{className:"color-picker-hex-value",children:(0,L.jsx)(so,{lockObject:this.props.lockObject,expectedLength:r?8:6,value:t,onChange:e=>{if(r){const t=o.Color4.FromHexString(e);this.setState({color:new o.Color3(t.r,t.g,t.b),alpha:t.a})}else this.setState({color:o.Color3.FromHexString(e)})}})})]}),this.props.linearhint&&(0,L.jsx)("div",{className:"color-picker-warning",children:"(Note: color is stored in linear mode and was converted to gamma to be displayed here (toGammaSpace() / toLinearSpace()))"})]})}}class mo extends t.Component{constructor(e){super(e),this.state={pickerEnabled:!1,color:this.props.value,hex:this.getHexString(e)},this._floatRef=t.createRef(),this._floatHostRef=t.createRef()}syncPositions(){const e=this._floatRef.current,t=this._floatHostRef.current;if(!e||!t)return;let n=t.getBoundingClientRect().top;const o=e.getBoundingClientRect().height;n+o+10>window.innerHeight&&(n=window.innerHeight-o-10),e.style.top=n+"px",this.props.shouldPopRight?e.style.left=t.getBoundingClientRect().left+"px":e.style.left=t.getBoundingClientRect().left-e.getBoundingClientRect().width+"px"}shouldComponentUpdate(e,t){const n=this.getHexString(e)!==this.getHexString();return n&&(t.color=e.value,t.hex=this.getHexString(e)),n||t.hex!==this.state.hex||t.pickerEnabled!==this.state.pickerEnabled}getHexString(e=this.props){return e.value.toHexString()}componentDidUpdate(){this.syncPositions()}componentDidMount(){this.syncPositions()}render(){return(0,L.jsxs)("div",{className:"color-picker",children:[this.props.icon&&(0,L.jsx)("img",{src:this.props.icon,title:this.props.iconLabel,alt:this.props.iconLabel,className:"icon"}),(0,L.jsx)("div",{className:"color-rect-background",ref:this._floatHostRef,onClick:()=>this.setState({pickerEnabled:!0}),children:(0,L.jsx)("div",{className:"color-rect",style:{background:this.state.hex}})}),this.state.pickerEnabled&&(0,L.jsx)(L.Fragment,{children:(0,L.jsx)("div",{className:"color-picker-cover",onClick:e=>{e.target===this._floatRef.current?.ownerDocument?.querySelector(".color-picker-cover")&&this.setState({pickerEnabled:!1})},children:(0,L.jsx)("div",{className:"color-picker-float",ref:this._floatRef,children:(0,L.jsx)(jo,{lockObject:this.props.lockObject||{},color:this.state.color,linearhint:this.props.linearHint,onColorChanged:e=>{const t=e.toHexString();this.setState({hex:t,color:e}),this.props.onColorChanged(t)}})})})})]})}}const bo=new o.Color4(0,0,0,0);class yo extends t.Component{constructor(e){super(e),this.state={isExpanded:!1,color:this.getValue()},this.props.target._isLinearColor=e.isLinear}shouldComponentUpdate(e,t){const n=t.color,o=this.getValue(e);return n!==this.state.color?(t.color=n,!0):o!==this.state.color?(t.color=o,!0):t.isExpanded!==this.state.isExpanded}getValue(e=this.props){const t=e.target[e.propertyName];return t?"string"==typeof t?t===b?bo:this._convertToColor(t):e.isLinear?t.toGammaSpace():t.clone():bo}setColorFromString(e){const t=this._convertToColor(e);this.setColor(t)}setColor(e){this.setState({color:e.clone()}),this.props.isLinear&&e.toLinearSpaceToRef(e);const t=this.props.disableAlpha?this._toColor3(e):e,n=this.props.target,o=n[this.props.propertyName],s="string"==typeof n[this.props.propertyName]?t.toHexString():t;n[this.props.propertyName]=s,this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:n,property:this.props.propertyName,value:s,initialValue:o}),this.props.onChange&&this.props.onChange()}switchExpandState(){this.setState({isExpanded:!this.state.isExpanded})}updateStateR(e){this.setColor(new o.Color4(e,this.state.color.g,this.state.color.b,this.state.color.a))}updateStateG(e){this.setColor(new o.Color4(this.state.color.r,e,this.state.color.b,this.state.color.a))}updateStateB(e){this.setColor(new o.Color4(this.state.color.r,this.state.color.g,e,this.state.color.a))}updateStateA(e){this.props.disableAlpha||this.setColor(new o.Color4(this.state.color.r,this.state.color.g,this.state.color.b,e))}_convertToColor(e){if(""===e||"transparent"===e)return bo;if("#"!==e.substring(0,1)||7!==e.length&&9!==e.length){const t=document.createElement("div");t.style.color=e,document.body.append(t);const n=window.getComputedStyle(t).color;document.body.removeChild(t);const s=n.substring(4,n.length-1).replace(/ /g,"").split(","),i=s.length>3?parseInt(s[3])/255:1;return new o.Color4(parseInt(s[0])/255,parseInt(s[1])/255,parseInt(s[2])/255,i)}if(this.props.disableAlpha){const t=o.Color3.FromHexString(e);return new o.Color4(t.r,t.g,t.b,1)}return o.Color4.FromHexString(e)}_toColor3(e){return new o.Color3(e.r,e.g,e.b)}onCopyClick(){if(this.props&&this.props.target){const{className:e,babylonNamespace:t}=m(this.props.target),n="globalThis.debugNode",o=this.props.propertyName,s=this.props.target[this.props.propertyName],i=this.state.color.toHexString();let r;r=s.a?"new "+t+"Color4("+s.r+", "+s.g+", "+s.b+", "+s.a+")":"new "+t+"Color3("+s.r+", "+s.g+", "+s.b+")",r+=";// (HEX : "+i,j(n+"."+o+" = "+r+" , debugNode as "+t+e+")")}else j("undefined")}render(){const e=this.state.isExpanded?(0,L.jsx)(Vn,{icon:eo}):(0,L.jsx)(Vn,{icon:no});return(0,L.jsxs)("div",{className:"color3Line",children:[(0,L.jsxs)("div",{className:"firstLine",children:[this.props.icon&&(0,L.jsx)("img",{src:this.props.icon,title:this.props.iconLabel,alt:this.props.iconLabel,className:"icon"}),(0,L.jsx)("div",{className:"label",title:this.props.label,children:this.props.label}),(0,L.jsx)("div",{className:"color3",children:(0,L.jsx)(mo,{lockObject:this.props.lockObject,linearHint:this.props.isLinear,value:this.props.disableAlpha?this._toColor3(this.state.color):this.state.color,onColorChanged:e=>{this.setColorFromString(e)}})}),(0,L.jsx)("div",{className:"expand hoverIcon",onClick:()=>this.switchExpandState(),title:"Expand",children:e}),(0,L.jsx)("div",{className:"copy hoverIcon",onClick:()=>this.onCopyClick(),title:"Copy to clipboard",children:(0,L.jsx)("img",{src:x,alt:"Copy"})})]}),this.state.isExpanded&&(0,L.jsxs)("div",{className:"secondLine",children:[(0,L.jsx)(Kn,{lockObject:this.props.lockObject,label:"r",labelTooltip:"Red",value:this.state.color.r,onChange:e=>this.updateStateR(e)}),(0,L.jsx)(Kn,{lockObject:this.props.lockObject,label:"g",labelTooltip:"Green",value:this.state.color.g,onChange:e=>this.updateStateG(e)}),(0,L.jsx)(Kn,{lockObject:this.props.lockObject,label:"b",labelTooltip:"Blue",value:this.state.color.b,onChange:e=>this.updateStateB(e)}),this.props.disableAlpha||(0,L.jsx)(Kn,{lockObject:this.props.lockObject,label:"a",labelTooltip:"Alpha",value:this.state.color.a,onChange:e=>this.updateStateA(e)})]})]})}}class fo extends t.Component{render(){return(0,L.jsx)("img",{src:this.props.icon,title:this.props.label,alt:this.props.label,color:"black",className:"icon",onDragStart:e=>e.preventDefault()})}}var xo=s(767),No={};No.styleTagTransform=ho(),No.setAttributes=po(),No.insert=uo().bind(null,"head"),No.domAPI=lo(),No.insertStyleElement=Lo(),ro()(xo.A,No);const So=xo.A&&xo.A.locals?xo.A.locals:void 0;function Do(e,t){let n="";for(const o in e)e[o]&&(n+=t[o]+" ");return n}const Io=({disabled:e,active:t,onClick:n,children:o,color:s,size:i,title:r,backgroundColor:a})=>(0,L.jsx)("button",{className:Do({button:!0,active:t,wide:"wide"===i,small:"small"===i,smaller:"smaller"===i,light:"light"===s,dark:"dark"===s},So),disabled:e,onClick:n,title:r,style:{backgroundColor:a},children:o});var vo=s(734),Eo={};Eo.styleTagTransform=ho(),Eo.setAttributes=po(),Eo.insert=uo().bind(null,"head"),Eo.domAPI=lo(),Eo.insertStyleElement=Lo(),ro()(vo.A,Eo);const To=vo.A&&vo.A.locals?vo.A.locals:void 0,zo=({color:e="dark",icon:t})=>(0,L.jsx)("img",{src:t,style:{width:"100%",height:"100%"},className:Do({light:"light"===e},To)});var Oo=s(182),ko={};ko.styleTagTransform=ho(),ko.setAttributes=po(),ko.insert=uo().bind(null,"head"),ko.domAPI=lo(),ko.insertStyleElement=Lo(),ro()(Oo.A,ko);const Yo=Oo.A&&Oo.A.locals?Oo.A.locals:void 0,Po="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwI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cuNDcsMCwwLDEtLjkzLjA2di00LjRBLjQ3LjQ3LDAsMCwxLDEzLjkxLDEzLjM3Wk0xNSw5LjY1YTEuMDcsMS4wNywwLDAsMC0xLjA4LDF2LjA5aDIuMThBMS4wOCwxLjA4LDAsMCwwLDE1LDkuNjVaIiBzdHlsZT0iZmlsbDojMzMzIi8+PC9zdmc+",Ro=e=>{const[n,o]=(0,t.useState)(""),[s,i]=(0,t.useState)(!e.validateValue||e.validateValue(n));return(0,t.useEffect)((()=>{i(!e.validateValue||e.validateValue(n))}),[n]),(0,L.jsxs)("div",{className:Do({line:!0,valid:s,invalid:!s},Yo),children:[e.label&&(0,L.jsx)("label",{children:e.label}),(0,L.jsx)("input",{className:Yo.input,type:"text",placeholder:e.placeholder,value:n,onChange:e=>{o(e.target.value)}}),(0,L.jsxs)("div",{children:[(0,L.jsx)(Io,{color:"light",size:"smaller",backgroundColor:"inherit",onClick:()=>{e.submitValue(n)},disabled:!s,children:(0,L.jsx)(zo,{icon:Po,color:"dark"})}),(0,L.jsx)(Io,{color:"light",size:"smaller",backgroundColor:"inherit",onClick:()=>{e.cancelSubmit?.(),o("")},children:(0,L.jsx)(zo,{icon:Bo,color:"dark"})})]})]})};var Uo=s(348),Go={};Go.styleTagTransform=ho(),Go.setAttributes=po(),Go.insert=uo().bind(null,"head"),Go.domAPI=lo(),Go.insertStyleElement=Lo(),ro()(Uo.A,Go);const Zo=Uo.A&&Uo.A.locals?Uo.A.locals:void 0;var _o;!function(e){e[e.Default=0]="Default",e[e.Adding=1]="Adding"}(_o||(_o={}));const Wo="addCustomOption",Ho=e=>{const[n,o]=(0,t.useState)(_o.Default);return(0,L.jsxs)("div",{className:Zo.optionsLine,children:[n===_o.Adding&&(0,L.jsx)(Ro,{submitValue:t=>{const n={label:t,value:t,id:Date.now().toString()};e.onOptionAdded?.(n),e.onOptionSelected(n.value),o(_o.Default)},placeholder:e.addOptionPlaceholder,validateValue:e.validateNewOptionValue,cancelSubmit:()=>{o(_o.Default)}}),n===_o.Default&&(0,L.jsxs)("select",{className:Zo.optionsSelect,onChange:t=>{t.target.value===Wo?o(_o.Adding):e.onOptionSelected(t.target.value)},value:e.selectedOptionValue,children:[e.onOptionAdded&&(0,L.jsx)("option",{value:Wo,children:e.addOptionText??"Custom"},Wo),e.options.map((e=>(0,L.jsx)("option",{value:e.value,children:e.label},e.id)))]})]})},Qo="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMTAsN2EzLDMsMCwwLDAtMywzdjMuNWEuNS41LDAsMCwwLDEsMFYxMGEyLDIsMCwwLDEsMi0yaDMuNWEuNS41LDAsMCwwLDAtMVoiIHN0eWxlPSJmaWxsOiMzMzMiLz48cGF0aCBkPSJNMTYuNSw3YS41LjUsMCwwLDAsMCwxSDIwYTIsMiwwLDAsMSwyLDJ2My41YS41LjUsMCwwLDAsMSwwVjEwYTMsMywwLDAsMC0zLTNaIiBzdHlsZT0iZmlsbDojMzMzIi8+PHBhdGggZD0iTTcuNSwxNmEuNS41LDAsMCwxLC41LjVWMjBhMiwyLDAsMCwwLDIsMmgzLjVhLjUuNSwwLDAsMSwwLDFIMTBhMywzLDAsMCwxLTMtM1YxNi41QS41LjUsMCwwLDEsNy41LDE2WiIgc3R5bGU9ImZpbGw6IzMzMyIvPjxwYXRoIGQ9Ik0yMywxNi41YS41LjUsMCwwLDAtMSwwVjIwYTIsMiwwLDAsMS0yLDJIMTYuNWEuNS41LDAsMCwwLDAsMUgyMGEzLDMsMCwwLDAsMy0zWiIgc3R5bGU9ImZpbGw6IzMzMyIvPjwvc3ZnPg==",Fo="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwI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LDI2LDE3LjA4WiIgc3R5bGU9ImZpbGw6IzMzMyIvPjwvc3ZnPg==";function ts(e){return(0,L.jsx)("button",{className:"unit",onClick:()=>{e.onClick&&!e.locked&&e.onClick(e.unit||"")},disabled:e.locked,children:e.unit})}class ns{static LookForItems(e,t,n=!0){if(0==t.length)return!1;if(!n&&t.includes(e))return!0;const o=e.getChildren?e.getChildren():e.children;if(o)for(const e of o)if(ns.LookForItems(e,t,!1))return!0;return!1}static _RecursiveRemoveHiddenMeshesAndHoistChildren(e){const t=[];for(const n of e)n.reservedDataStore&&n.reservedDataStore.hidden&&n.getChildMeshes?ns._RecursiveRemoveHiddenMeshesAndHoistChildren(n.getChildMeshes()).forEach((e=>{t.push(e)})):n.reservedDataStore&&n.reservedDataStore.hidden||t.push(n);return t}static SortAndFilter(e,t){if(!t)return[];const n=ns._RecursiveRemoveHiddenMeshesAndHoistChildren(t);return e&&e.reservedDataStore&&e.reservedDataStore.detachedChildren&&n.push(...e.reservedDataStore.detachedChildren),n.reverse()}static GetCellInfo(e,t){const n=e.getChildCellInfo(t);let s=parseInt(n.substring(0,n.search(":")));isNaN(s)&&(s=0);let i=parseInt(n.substring(n.search(":")+1));return isNaN(i)&&(i=0),new o.Vector2(s,i)}static ReorderGrid(e,t,n,o){const s=[],i=[],r=e.children.length;for(let n=t;n<r;++n){const n=e.children[t];i.push(n),s.push(ns.GetCellInfo(e,n)),e.removeControl(n)}e.addControl(n,o.x,o.y);for(let t=0;t<i.length;++t)e.addControl(i[t],s[t].x,s[t].y)}}var os,ss=s(59),is={};is.styleTagTransform=ho(),is.setAttributes=po(),is.insert=uo().bind(null,"head"),is.domAPI=lo(),is.insertStyleElement=Lo(),ro()(ss.A,is),ss.A&&ss.A.locals&&ss.A.locals,function(e){e[e.NONE=0]="NONE",e[e.X=2]="X",e[e.Y=3]="Y"}(os||(os={}));class rs extends t.Component{static get addedFonts(){return this._addedFonts}get visibleRegionContainer(){return this._visibleRegionContainer}get panAndZoomContainer(){return this._panAndZoomContainer}set trueRootContainer(e){e!==this._trueRootContainer&&(this._visibleRegionContainer.children.forEach((e=>this._visibleRegionContainer.removeControl(e))),this._visibleRegionContainer.addControl(e),this._trueRootContainer=e,e._host=this.props.globalState.guiTexture)}get trueRootContainer(){return this._trueRootContainer}get guiSize(){return this._guiSize}get pasteDisabled(){return this._pasteDisabled}set guiSize(e){this._guiSize={...e},this._visibleRegionContainer.widthInPixels=this._guiSize.width,this._visibleRegionContainer.heightInPixels=this._guiSize.height,this.props.globalState.onResizeObservable.notifyObservers(this._guiSize),this.props.globalState.onReframeWindowObservable.notifyObservers(),this.props.globalState.onWindowResizeObservable.notifyObservers()}applyEditorTransformation(){const e=this.props.globalState.guiTexture;e._rootContainer!=this._panAndZoomContainer&&(e._rootContainer=this._panAndZoomContainer,this._visibleRegionContainer.addControl(this._trueRootContainer),this.props.globalState.guiTexture.markAsDirty()),e.getSize().width===this._engine.getRenderWidth()&&e.getSize().height===this._engine.getRenderHeight()||e.scaleTo(this._engine.getRenderWidth(),this._engine.getRenderHeight()),e.getSize().width===this._engine.getRenderWidth()&&e.getSize().height===this._engine.getRenderHeight()||e.scaleTo(this._engine.getRenderWidth(),this._engine.getRenderHeight()),this._trueRootContainer.clipContent=!1,this._trueRootContainer.clipChildren=!1}removeEditorTransformation(){const e=this.props.globalState.guiTexture;e._rootContainer!=this._trueRootContainer&&(this._visibleRegionContainer.removeControl(this._trueRootContainer),e._rootContainer=this._trueRootContainer),this._trueRootContainer.clipContent=!0,this._trueRootContainer.clipChildren=!0}_reframeWindow(){this._panningOffset=new o.Vector2(0,0);const e=this._engine.getRenderWidth()/this.guiSize.width,t=this._engine.getRenderHeight()/this.guiSize.height;this._zoomFactor=.9*Math.min(e,t)}constructor(e){super(e),this._setConstraintDirection=!1,this._mouseStartPoint=null,this._constraintDirection=os.NONE,this._isOverGUINode=[],this._doubleClick=null,this._currLeft=0,this._currTop=0,this._controlsHit=[],this._pointerTravelDistance=0,this._processSelectionOnUp=!1,this._centerZoomMousePosition=new o.Vector2(0,0),this._hasPerformedDragZoom=!1,this._defaultGUISize={width:1024,height:1024},this._initialPanningOffset=new o.Vector2(0,0),this._panningOffset=new o.Vector2(0,0),this._zoomFactor=1,this._zoomModeIncrement=.2,this._guiSize=this._defaultGUISize,this._pasteDisabled=!0,this.keyEvent=e=>{"INPUT"!==e.target.nodeName&&(e.shiftKey?this._setConstraintDirection=this._constraintDirection===os.NONE:(this._setConstraintDirection=!1,this._constraintDirection=os.NONE),this.props.globalState.shiftKeyPressed=e.shiftKey&&"keydown"===e.type,"Delete"!==e.key&&"Backspace"!==e.key||this.props.globalState.lockObject.lock||this.props.globalState.deleteSelectedNodes(),this.props.globalState.keys.isKeyDown("control")&&!this.props.globalState.lockObject.lock&&"a"===e.key&&(e.preventDefault(),this.props.globalState.setSelection(this.trueRootContainer.children)))},this.blurEvent=()=>{this._constraintDirection=os.NONE,this.props.globalState.onPointerUpObservable.notifyObservers(null)},this._controlToLinkedMeshMap=new Map,this._observersMap={onPointerDownObservable:new Map,onPointerUpObservable:new Map,onPointerMoveObservable:new Map,onPointerEnterObservable:new Map,onPointerOutObservable:new Map,onPointerClickObservable:new Map,onDisposeObservable:new Map,onIsVisibleChangedObservable:new Map,onBeforeDrawObservable:new Map,onAfterDrawObservable:new Map,onWheelObservable:new Map};const{globalState:n}=e;this._rootContainer=t.createRef(),n.onSelectionChangedObservable.add((()=>this.updateNodeOutlines())),n.onToolChangeObservable.add((()=>{this.forceUpdate()})),n.onFitControlsToWindowObservable.add((()=>{if(n.selectedControls.length){let e=Number.MAX_SAFE_INTEGER,t=Number.MAX_SAFE_INTEGER,s=-Number.MAX_SAFE_INTEGER,i=-Number.MAX_SAFE_INTEGER;for(const r of n.selectedControls){const n=-r.widthInPixels/2,a=-r.heightInPixels/2,l=n+r.widthInPixels,c=a+r.heightInPixels,A=u.NodeToRTTSpace(r,n,a,new o.Vector2,void 0,this.trueRootContainer),d=u.NodeToRTTSpace(r,l,c,new o.Vector2,void 0,this.trueRootContainer),p=u.NodeToRTTSpace(r,n,c,new o.Vector2,void 0,this.trueRootContainer),M=u.NodeToRTTSpace(r,l,a,new o.Vector2,void 0,this.trueRootContainer);e=Math.min(e,A.x,d.x,p.x,M.x),t=Math.min(t,A.y,d.y,p.y,M.y),s=Math.max(s,A.x,d.x,p.x,M.x),i=Math.max(i,A.y,d.y,p.y,M.y)}const r=s-e,a=i-t,l=(e+s)/2,c=(t+i)/2;this._panningOffset=new o.Vector2(-l,c);const A=this._engine.getRenderWidth()/r,d=this._engine.getRenderHeight()/a;this._zoomFactor=.9*Math.min(A,d)}else this._reframeWindow()})),n.onReframeWindowObservable.add((()=>{this._reframeWindow()})),n.onOutlineChangedObservable.add((()=>{this.updateNodeOutlines()})),n.onSelectionChangedObservable.add((()=>{this.updateNodeOutlines()})),n.onParentingChangeObservable.add((e=>{this.parent(e)})),n.hostDocument.addEventListener("keyup",this.keyEvent,!1),n.hostDocument.addEventListener("keydown",this.keyEvent,!1),n.hostDocument.defaultView.addEventListener("blur",this.blurEvent,!1);let s=1;n.onWindowResizeObservable.add((()=>{s+=5})),n.onNewSceneObservable.add((e=>{e&&e.onBeforeRenderObservable.add((()=>{s>0&&(s--,n.onGizmoUpdateRequireObservable.notifyObservers(),this._engine.resize(),n.onArtBoardUpdateRequiredObservable.notifyObservers())}))})),n.onCopyObservable.add((e=>this.copyToClipboard(e))),n.onCutObservable.add((e=>this.cutToClipboard(e))),n.onPasteObservable.add((e=>this.pasteFromClipboard(e))),n.workbench=this,n.onResizeObservable.notifyObservers(this._guiSize),n.onPopupClosedObservable.add((()=>{this.dispose()}))}copyToClipboard(e){this._pasteDisabled=!1;const t=[];for(const e of this.props.globalState.selectedControls){if("Grid"===e.parent?.getClassName()){const t=e.parent.getChildCellInfo(e),[n,o]=t.split(":");e.metadata={...e.metadata,_cellInfo:{row:n,column:o}}}const n={};e.serialize(n),t.push(n),this._currLeft=e.leftInPixels,this._currTop=e.topInPixels}e(JSON.stringify({GUIClipboard:!0,controls:t}))}cutToClipboard(e){this.copyToClipboard(e),this.props.globalState.deleteSelectedNodes()}pasteFromClipboard(e){try{const t=JSON.parse(e);if(t.GUIClipboard){const e=[];for(const n of t.controls)e.push(a.Control.Parse(n,this.props.globalState.guiTexture));"StackPanel"!=e[0].parent?.typeName&&(this._currLeft+=10,this._currTop+=10),e[0].leftInPixels=this._currLeft,e[0].topInPixels=this._currTop;const n=this.props.globalState.workbench.appendBlock(e[0]);if("Grid"===n.parent?.typeName&&n.metadata?._cellInfo){const{row:e,column:t}=n.metadata._cellInfo,o=n.parent;o.removeControl(n),o.addControl(n,parseInt(e),parseInt(t))}return this.props.globalState.setSelection([n]),!0}}catch{}return o.Logger.Warn("Paste attempted, but clipboard content was invalid."),!1}CopyGUIControl(e){const t={};e.serialize(t);const n=a.Control.Parse(t,this.props.globalState.guiTexture);if(n){if(this.props.globalState.workbench.appendBlock(n),this.props.globalState.guiTexture.removeControl(n),"Grid"===e.parent?.typeName){const t=ns.GetCellInfo(e.parent,e);e.parent.addControl(n,t.x,t.y)}else e.parent?.addControl(n);let t=1;for(;this.props.globalState.guiTexture.getDescendants(!1).filter((e=>e.name===`${n.name} Copy ${t}`)).length;)t++;n.name=`${n.name} Copy ${t}`,this.props.globalState.select(n)}}addEditorBehavior(e){e.onPointerUpObservable.add((()=>{this.clicked=!1})),e.onPointerDownObservable.add((t=>{t.buttonIndex>0||this.props.globalState.tool!==p.SELECT||this._controlsHit.push(e)})),e.onPointerEnterObservable.add((()=>{-1===this._isOverGUINode.indexOf(e)&&this._isOverGUINode.push(e)})),e.onPointerOutObservable.add((()=>{const t=this._isOverGUINode.indexOf(e);-1!==t&&this._isOverGUINode.splice(t,1)})),e.onDisposeObservable.add((()=>{const t=this._isOverGUINode.indexOf(e);-1!==t&&this._isOverGUINode.splice(t,1)})),e.metadata={...e.metadata,guiEditor:!0}}removeEditorBehavior(e){e.metadata&&e.metadata.guiEditor&&(delete e.metadata.guiEditor,delete e.metadata.editorUniqueId)}dispose(){this.props.globalState.hostDocument.removeEventListener("keyup",this.keyEvent),this.props.globalState.hostDocument.removeEventListener("keydown",this.keyEvent),this.props.globalState.hostDocument.defaultView.removeEventListener("blur",this.blurEvent),this._guiRenderObserver&&this.props.globalState.guiTexture.onEndRenderObservable.remove(this._guiRenderObserver),this._engine.dispose()}loadFromJson(e){this.removeEditorTransformation(),this.props.globalState.setSelection([]),this.props.globalState.liveGuiTexture?(this.props.globalState.liveGuiTexture?.parseContent(e,!0),this.synchronizeLiveGUI()):this.props.globalState.guiTexture.parseContent(e,!0),this.trueRootContainer=this.props.globalState.guiTexture._rootContainer,this.guiSize=this.props.globalState.guiTexture.getSize(),this.loadToEditor()}loadControlFromJson(e){const t=[];for(const n of e.controls){const e=a.Control.Parse(n,this.props.globalState.guiTexture);t.push(e);const o=this.props.globalState.workbench.appendBlock(e);if("Grid"===o.parent?.typeName&&o.metadata?._cellInfo){const{row:e,column:t}=o.metadata._cellInfo,n=o.parent;n.removeControl(o),n.addControl(o,parseInt(e),parseInt(t))}}this.props.globalState.setSelection(t)}async loadFromSnippet(e){this.removeEditorTransformation(),this.props.globalState.setSelection([]),this.props.globalState.liveGuiTexture?(await(this.props.globalState.liveGuiTexture?.parseFromSnippetAsync(e,!0)),this.synchronizeLiveGUI()):await this.props.globalState.guiTexture.parseFromSnippetAsync(e,!0),this.trueRootContainer=this.props.globalState.guiTexture._rootContainer,this.guiSize=this.props.globalState.guiTexture.getSize(),this.loadToEditor(),this.props.globalState.customLoad&&this.props.globalState.customLoad.action(e).catch((()=>{alert("Unable to load your GUI")}))}loadToEditor(){this.props.globalState.guiTexture.rootContainer.getDescendants().forEach((e=>{const t=e.fontFamily.trim().toLowerCase();-1===rs._addedFonts.indexOf(t)&&rs._addedFonts.push(e.fontFamily),this.addEditorBehavior(e)})),this._isOverGUINode=[],this.props.globalState.setSelection([]),this.props.globalState.onFitControlsToWindowObservable.notifyObservers(),this.props.globalState.onFontsParsedObservable.notifyObservers()}updateNodeOutlines(){for(const e of this._trueRootContainer.getDescendants())e.isHighlighted="Grid"===e.getClassName()&&(this.props.globalState.outlines||this.props.globalState.selectedControls.includes(e)),e.highlightLineWidth=5}appendBlock(e){return this.addEditorBehavior(e),e.getDescendants(!0).forEach((e=>this.addEditorBehavior(e))),0!=this.props.globalState.selectedControls.length?this.props.globalState.selectedControls[0].parent?.addControl(e):this.trueRootContainer.addControl(e),e}parent(e){const t=this.props.globalState.draggedControl,n=t?.parent;if(n&&t&&this._isNotChildInsert(e,t))if(null!=e)if(e instanceof a.Container&&this.props.globalState.draggedControlDirection===d.CENTER)n.removeControl(t),e.addControl(t);else if(e.parent)if("Grid"!==e.parent.typeName){n.removeControl(t);let o=e.parent.children.indexOf(e);const s="StackPanel"===e.parent.typeName||"VirtualKeyboard"===e.parent.typeName;o=this._adjustParentingIndex(o,s),e.parent.children.splice(o,0,t),t.parent=e.parent}else e.parent===n||(n.removeControl(t),e.parent.addControl(t)),this._reorderGrid(e.parent,t,e);else n.removeControl(t),this.trueRootContainer.addControl(t);else n.removeControl(t),this.trueRootContainer.addControl(t),this.trueRootContainer.children.pop(),this.trueRootContainer.children.splice(0,0,t);if(t){const e=t.parent;if(e){if("StackPanel"===e.typeName||"VirtualKeyboard"===e.typeName){const n=e.isVertical;t._width.unit!==a.ValueAndUnit.UNITMODE_PERCENTAGE||n||(u.ConvertToPixels(t,["width"]),this.props.globalState.hostWindow.alert("Warning: Parenting to horizontal stack panel converts width to pixel values")),t._height.unit===a.ValueAndUnit.UNITMODE_PERCENTAGE&&n&&(u.ConvertToPixels(t,["height"]),this.props.globalState.hostWindow.alert("Warning: Parenting to vertical stack panel converts height to pixel values"))}e.markAsDirty()}}this.props.globalState.draggedControl=null}_canClone(){return this.props.globalState.liveGuiTexture&&this.props.globalState.guiTexture&&this.trueRootContainer}_saveObservables(e){e.getDescendants().forEach((e=>{e.linkedMesh&&this._controlToLinkedMeshMap.set(e.metadata.editorUniqueId,e.linkedMesh),Object.keys(this._observersMap).forEach((t=>{const n=e[t];n.hasObservers()&&this._observersMap[t].set(e.metadata.editorUniqueId,n)}))}))}_restoreObservables(e){e.getDescendants().forEach((e=>{if(this._controlToLinkedMeshMap.has(e.metadata?.editorUniqueId)){const t=this._controlToLinkedMeshMap.get(e.metadata.editorUniqueId);t&&e.linkWithMesh(t)}Object.keys(this._observersMap).forEach((t=>{const n=this._observersMap[t].get(e.metadata?.editorUniqueId);n&&(e[t]=n)}))})),this._controlToLinkedMeshMap.clear(),Object.keys(this._observersMap).forEach((e=>{this._observersMap[e].clear()}))}_copyEditorGUIToLiveGUI(){if(this._canClone()){const e=this.props.globalState.liveGuiTexture.rootContainer;this._saveObservables(e),e.clearControls();const t=new Map,n=this.trueRootContainer.children.slice(0);for(const o of n){const n=o.clone(this.props.globalState.liveGuiTexture);t.set(o,n),e.addControl(n)}this._restoreObservables(e),this._syncConnectedLines(n,t)}}_reorderGrid(e,t,n){const o=ns.GetCellInfo(e,t);e.removeControl(t);let s=e.children.indexOf(n);s=this._adjustParentingIndex(s),ns.ReorderGrid(e,s,t,o)}_isNotChildInsert(e,t){for(;e?.parent;){if(e.parent==t)return!1;e=e.parent}return!0}_adjustParentingIndex(e,t=!1){switch(this.props.globalState.draggedControlDirection){case d.ABOVE:return t?e:e+1;case d.BELOW:case d.CENTER:return t?e+1:e}return e}isSelected(e,t){this.props.globalState.select(t)}_onMove(e,t,n){const s=[];e._top.unit===a.ValueAndUnit.UNITMODE_PERCENTAGE&&s.push("top"),e._left.unit===a.ValueAndUnit.UNITMODE_PERCENTAGE&&s.push("left");let i=t.x-n.x,r=t.y-n.y;this._setConstraintDirection&&(this._setConstraintDirection=!1,this._constraintDirection=Math.abs(i)>=Math.abs(r)?os.X:os.Y),this._constraintDirection===os.X?r=0:this._constraintDirection===os.Y&&(i=0);const l=new o.Vector2(i,r);if("Line"===e.typeName){const t=e,n=t.x1.substring(0,t.x1.length-2),o=t.x2.substring(0,t.x2.length-2),s=t.y1.substring(0,t.y1.length-2),a=t.y2.substring(0,t.y2.length-2);return t.x1=(Number(n)+i).toFixed(2),t.x2=(Number(o)+i).toFixed(2),t.y1=(Number(s)+r).toFixed(2),t.y2=(Number(a)+r).toFixed(2),void this.props.globalState.onPropertyGridUpdateRequiredObservable.notifyObservers()}let c=0,A=e.parent;for(;A;)c+=A.rotation,A=A.parent;const d=new o.Vector2(0,0),p=Math.sin(-c),M=Math.cos(-c);d.x=M*l.x-p*l.y,d.y=p*l.x+M*l.y,e.leftInPixels+=d.x,e.topInPixels+=d.y,u.ConvertToPercentage(e,s),this.props.globalState.onPropertyGridUpdateRequiredObservable.notifyObservers()}onMove(e){const t=this.getScaledPointerPosition();null==this._mouseStartPoint||this._panning||(this.props.globalState.selectedControls.forEach((e=>{t&&this._onMove(e,t,this._mouseStartPoint)})),this._mouseStartPoint=t||this._mouseStartPoint),this._pointerTravelDistance+=e.movementX*e.movementX+e.movementY*e.movementY,this._panning&&this.panning()}_screenToTexturePosition(e){const t=new o.Vector2(this._zoomFactor,this._zoomFactor);return e.divideInPlace(t).add(this._panningOffset)}getScaledPointerPosition(){return this._screenToTexturePosition(new o.Vector2(this._scene.pointerX,this._scene.pointerY))}startPanning(){this._panning=!0,this._initialPanningOffset=this.getScaledPointerPosition()}endPanning(){this._panning=!1}processSelection(){if(this.props.globalState.usePrevSelected)this.props.globalState.usePrevSelected=!1;else if(0!==this._controlsHit.length){for(const e of this._controlsHit)if(this.props.globalState.selectedControls.includes(e.parent)){if(this._doubleClick===e)return void this.props.globalState.select(e);this._doubleClick=e,window.setTimeout((()=>{this._doubleClick=null}),300)}for(const e of this._controlsHit)for(const t of this.props.globalState.selectedControls){if(t.parent===e.parent)return void this.props.globalState.select(e);break}for(const e of this._controlsHit)e.parent===this._trueRootContainer&&this.props.globalState.select(e)}else this.props.globalState.setSelection([])}onDown(e){this._pointerTravelDistance=0,this._rootContainer.current?.setPointerCapture(e.pointerId),this.props.globalState.tool===p.SELECT&&(this._mouseStartPoint=this.getScaledPointerPosition()),this.props.globalState.tool===p.ZOOM&&this._centerZoomMousePosition.set(this._scene.pointerX,this._scene.pointerY),4&e.buttons||this.props.globalState.tool===p.PAN?this.startPanning():(this.endPanning(),0!==this.props.globalState.selectedControls.length&&(this._processSelectionOnUp=!0),this._scene.onAfterRenderObservable.addOnce((()=>{this._processSelectionOnUp&&0!==this._controlsHit.filter((e=>this.props.globalState.selectedControls.includes(e))).length||(this.processSelection(),this._controlsHit=[],this._processSelectionOnUp=!1)})))}onUp(e){this.props.globalState.tool!==p.ZOOM||this._hasPerformedDragZoom||(this._panZoomToCenter(1e3*this._zoomModeIncrement,new o.Vector2(this._scene.pointerX,this._scene.pointerY)),this.zooming(1+(this.props.globalState.keys.isKeyDown("alt")?-this._zoomModeIncrement:this._zoomModeIncrement))),this._hasPerformedDragZoom=!1,this._mouseStartPoint=null,this._centerZoomMousePosition.set(0,0),this._constraintDirection=os.NONE,this._rootContainer.current?.releasePointerCapture(e.pointerId),this._panning=!1,this._processSelectionOnUp&&(Math.sqrt(this._pointerTravelDistance)<=5&&this.processSelection(),this._controlsHit=[],this._processSelectionOnUp=!1)}_syncConnectedLines(e,t){for(const n of e)if("Line"===n.getClassName()){const e=n;if(e.connectedControl){const n=e.connectedControl,o=t.get(e),s=t.get(n);o&&s&&(o.connectedControl=s)}}}_copyLiveGUIToEditorGUI(){if(this.props.globalState.liveGuiTexture&&this.trueRootContainer){this.props.globalState.liveGuiTexture.rootContainer.getDescendants().forEach((e=>{e.metadata={...e.metadata??{},editorUniqueId:(0,o.RandomGUID)()}})),this.trueRootContainer.clearControls();const e=new Map;for(const t of this.props.globalState.liveGuiTexture.rootContainer.children){const n=t.clone(this.props.globalState.guiTexture);e.set(t,n),this.appendBlock(n)}this._syncConnectedLines(this.props.globalState.liveGuiTexture.rootContainer.children,e)}}createGUICanvas(e){const t=this._rootContainer.current;this._engine=new o.Engine(t),this._scene=new o.Scene(this._engine),this._scene.clearColor=new o.Color4(0,0,0,0),new o.HemisphericLight("light1",o.Axis.Y,this._scene).intensity=.9,this.props.globalState.liveGuiTexture?(this._guiSize.width=this.props.globalState.liveGuiTexture.getSize().width,this._guiSize.height=this.props.globalState.liveGuiTexture.getSize().height,t.width=this._guiSize.width,t.height=this._guiSize.height):(this._guiSize.width=o.DataStorage.ReadNumber("GUIEditorWidth",1024),this._guiSize.height=o.DataStorage.ReadNumber("GUIEditorHeight",1024)),this._panAndZoomContainer=new a.Container("panAndZoom"),this._panAndZoomContainer.clipContent=!1,this._panAndZoomContainer.clipChildren=!1,this._visibleRegionContainer=new a.Container("visibleRegion"),this._visibleRegionContainer.clipChildren=!1,this._visibleRegionContainer.clipContent=!1,this._visibleRegionContainer.widthInPixels=this.guiSize.width,this._visibleRegionContainer.heightInPixels=this.guiSize.height,this._panAndZoomContainer.addControl(this._visibleRegionContainer);const n=this.props.globalState.guiTexture=this._visibleRegionContainer._host=this._panAndZoomContainer._host=a.AdvancedDynamicTexture.CreateFullscreenUI("guiTexture",!0,this._scene,o.Texture.NEAREST_NEAREST_MIPNEAREST,!1);n.useInvalidateRectOptimization=!1,this.trueRootContainer=n.rootContainer,n.onEndRenderObservable.add((()=>this.props.globalState.onGizmoUpdateRequireObservable.notifyObservers())),this._copyLiveGUIToEditorGUI(),new o.ArcRotateCamera("Camera",0,0,0,o.Vector3.Zero(),this._scene),this.addControls(this._scene),this._scene.getEngine().onCanvasPointerOutObservable.clear(),this._scene.doNotHandleCursors=!0,this.props.globalState.hostWindow.addEventListener("resize",(()=>{this.props.globalState.onWindowResizeObservable.notifyObservers(),this._scene.onBeforeRenderObservable.addOnce((()=>{this.props.globalState.onWindowResizeObservable.notifyObservers()}))})),this.props.globalState.onWindowResizeObservable.notifyObservers(),this.props.globalState.guiTexture.onBeginRenderObservable.add((()=>{this.applyEditorTransformation()})),this.props.globalState.onPropertyChangedObservable.add((e=>{e.object.markAsDirty(!1),this.props.globalState.onWindowResizeObservable.notifyObservers()}));const s=function(e){let t=0;return function(...n){const o=Date.now();o-t<33||(t=o,e(...n))}}((()=>{this._copyEditorGUIToLiveGUI()}));this.props.globalState.liveGuiTexture&&(this._guiRenderObserver=this.props.globalState.guiTexture.onEndRenderObservable.add(s)),this._engine.runRenderLoop((()=>{this._scene.render()})),this.props.globalState.onNewSceneObservable.notifyObservers(this.props.globalState.guiTexture.getScene()),this.props.globalState.onPropertyGridUpdateRequiredObservable.notifyObservers(),this.props.globalState.onFitControlsToWindowObservable.notifyObservers()}synchronizeLiveGUI(){this.props.globalState.liveGuiTexture&&(this._trueRootContainer.getDescendants().forEach((e=>e.dispose())),this.props.globalState.liveGuiTexture.rootContainer.getDescendants(!0).forEach((e=>{this.props.globalState.liveGuiTexture?.removeControl(e),this.appendBlock(e)})),this.props.globalState.guiTexture.snippetId=this.props.globalState.liveGuiTexture.snippetId)}addControls(e){e.onKeyboardObservable.add((e=>{switch(e.event.key){case"ArrowUp":this.moveControls(!1,e.event.shiftKey?-5:-1);break;case"ArrowDown":this.moveControls(!1,e.event.shiftKey?5:1);break;case"ArrowLeft":this.moveControls(!0,e.event.shiftKey?-5:-1);break;case"ArrowRight":this.moveControls(!0,e.event.shiftKey?5:1)}}),o.KeyboardEventTypes.KEYDOWN),e.onBeforeRenderObservable.add((()=>{this._panAndZoomContainer.scaleX!==this._zoomFactor&&(this._panAndZoomContainer.scaleX=this._zoomFactor,this._panAndZoomContainer.scaleY=this._zoomFactor,this.props.globalState.onArtBoardUpdateRequiredObservable.notifyObservers(),this.props.globalState.onGizmoUpdateRequireObservable.notifyObservers());const e=this._zoomFactor*this._panningOffset.x,t=this._zoomFactor*-this._panningOffset.y;this._panAndZoomContainer.leftInPixels===e&&this._panAndZoomContainer.topInPixels===t||(this._panAndZoomContainer.leftInPixels=e,this._panAndZoomContainer.topInPixels=t,this.props.globalState.onArtBoardUpdateRequiredObservable.notifyObservers(),this.props.globalState.onGizmoUpdateRequireObservable.notifyObservers())}))}panning(){const e=this.getScaledPointerPosition().subtract(this._initialPanningOffset).multiplyByFloats(1,-1);this._panningOffset=this._panningOffset.add(e),this._initialPanningOffset=this.getScaledPointerPosition(),this.props.globalState.onWindowResizeObservable.notifyObservers()}moveControls(e,t){for(const n of this.props.globalState.selectedControls)if(e){const e=n.leftInPixels;n.leftInPixels+=t,this.props.globalState.onPropertyChangedObservable.notifyObservers({object:n,property:"leftInPixels",value:n.leftInPixels,initialValue:e}),this.props.globalState.onPropertyGridUpdateRequiredObservable.notifyObservers()}else{const e=n.topInPixels;n.topInPixels+=t,this.props.globalState.onPropertyChangedObservable.notifyObservers({object:n,property:"topInPixels",value:n.topInPixels,initialValue:e}),this.props.globalState.onPropertyGridUpdateRequiredObservable.notifyObservers()}}zoomWheel(e){let t=0;e.deltaY?t=-e.deltaY:e.detail&&(t=-e.detail);const n=new o.Vector2(this._scene.pointerX,this._scene.pointerY);this._panZoomToCenter(t,n),this.zooming(1+t/1e3)}_panZoomToCenter(e,t){const n=u.MousePointerToRTTSpace(this.trueRootContainer,t.x,t.y),o=u.RttToLocalNodeSpace(this.trueRootContainer,n.x,n.y),s=u.MousePointerToRTTSpace(this.trueRootContainer,this._engine.getRenderWidth()/2,this._engine.getRenderHeight()/2),i=u.RttToLocalNodeSpace(this.trueRootContainer,s.x,s.y),r=-e/1e3,a=o.subtract(i).scale(r).multiplyByFloats(1,-1);this._panningOffset.addInPlace(a)}zoomDrag(e){let t=0;0!==e.movementY&&(t=-e.movementY),this._hasPerformedDragZoom=!0,this._panZoomToCenter(t,this._centerZoomMousePosition),this.zooming(1+t/1e3)}zooming(e){this._zoomFactor*=e}zeroIfClose(e){Math.abs(e.x)<o.Epsilon&&(e.x=0),Math.abs(e.y)<o.Epsilon&&(e.y=0),Math.abs(e.z)<o.Epsilon&&(e.z=0)}render(){let e="default";return this.props.globalState.tool===p.PAN?e="grab":this.props.globalState.tool===p.ZOOM&&(e=this.props.globalState.keys.isKeyDown("alt")?"zoom-out":"zoom-in"),(0,L.jsx)("canvas",{id:"workbench-canvas",onPointerMove:e=>{this._mouseDown&&this.props.globalState.tool===p.ZOOM&&this.zoomDrag(e),this.props.globalState.guiTexture&&this.onMove(e),this.props.globalState.onPointerMoveObservable.notifyObservers(e)},onPointerDown:e=>{this.onDown(e),0===this._controlsHit.length?this._mouseDown=!0:this._mouseDown=!1},onPointerUp:e=>{this.onUp(e),this.props.globalState.onPointerUpObservable.notifyObservers(e),this._mouseDown=!1},onWheel:e=>this.zoomWheel(e),onContextMenu:e=>e.preventDefault(),ref:this._rootContainer,style:{cursor:e}})}}rs._addedFonts=[];class as{static CreatePopup(e,t,n=300,o=800){const s={width:n,height:o,top:(window.innerHeight-n)/2+window.screenY,left:(window.innerWidth-o)/2+window.screenX},i=Object.keys(s).map((e=>e+"="+s[e])).join(","),r=window.open("",e,i);if(!r)return null;const a=r.document,l=a.createElement("link");l.rel="stylesheet",l.href="https://use.typekit.net/cta4xsb.css",a.head.appendChild(l),a.title=e,a.body.style.width="100%",a.body.style.height="100%",a.body.style.margin="0",a.body.style.padding="0";const c=a.createElement("div");return c.style.width="100%",c.style.height="100%",c.style.margin="0",c.style.padding="0",r.document.body.appendChild(c),this._CopyStyles(window.document,a),setTimeout((()=>{this._CopyStyles(window.document,a)}),0),this[t]=r,c}static _CopyStyles(e,t){for(let n=0;n<e.styleSheets.length;n++){const o=e.styleSheets[n];try{if(o.cssRules){const n=e.createElement("style");for(const t of o.cssRules)n.appendChild(e.createTextNode(t.cssText));t.head.appendChild(n)}else if(o.href){const n=e.createElement("link");n.rel="stylesheet",n.href=o.href,t.head.appendChild(n)}}catch(e){console.log(e)}}}}class ls extends t.Component{constructor(e){super(e),this._onControlVisibilityChangedObservers=[],this.state={fontFamilyOptions:JSON.parse(String(window.sessionStorage.getItem("fonts")))??[{label:"Arial",value:1},{label:"Verdana",value:2},{label:"Helvetica",value:3},{label:"Trebuchet MS",value:4},{label:"Times New Roman",value:5},{label:"Georgia",value:6},{label:"Garamond",value:7},{label:"Courier New",value:8},{label:"Brush Script MT",value:9}]};const t=this.props.controls;for(const e of t){const t=this._getTransformedReferenceCoordinate(e);e.metadata||(e.metadata={}),e.metadata._previousCenter=t;const n=e.onIsVisibleChangedObservable.add((()=>{this.forceUpdate()}));this._onControlVisibilityChangedObservers.push(n)}this._onFontsParsedObserver=this.props.onFontsParsedObservable?.add((()=>{this._checkFontsInLayout()})),this._onPropertyChangedObserver=this.props.onPropertyChangedObservable?.add((e=>{const n="transformCenterX"===e.property||"transformCenterY"===e.property;for(const o of t){let t=this._getTransformedReferenceCoordinate(o);if(n&&o.metadata._previousCenter){const e=t.subtract(o.metadata._previousCenter);o.leftInPixels-=e.x,o.topInPixels-=e.y,t=this._getTransformedReferenceCoordinate(o)}o.metadata._previousCenter=t,"TextBlock"!==o.getClassName()||"width"!==e.property&&"height"!==e.property||(o.resizeToFit=!1)}}))}componentWillMount(){this._checkFontsInLayout()}_checkFontsInLayout(){const e=[];for(const t of this.state.fontFamilyOptions.values())document.fonts.check(`12px "${t.label}"`)&&"Custom Font"!=t.label&&e.push(t);const t=rs.addedFonts;for(let n=0;n<t.length;n++){const o=t[n].trim();e.push({label:o,value:o})}this.setState({fontFamilyOptions:e}),window.sessionStorage.setItem("fonts",JSON.stringify(e))}_addFont(e){const t=e.trim();t.length>0&&(this.state.fontFamilyOptions.find((({value:t})=>t===e))||this.setState((e=>(e.fontFamilyOptions.push({label:t,value:t}),e)),this._checkFontsInLayout))}_getTransformedReferenceCoordinate(e){const t=u.GetNodeMatrix(e),n=new o.Vector2(1,1);return t.transformCoordinates(1,1,n),n}_updateAlignment(e,t){for(const n of this.props.controls)"TextBlock"===n.typeName&&!1===n.resizeToFit?n["text"+e.charAt(0).toUpperCase()+e.slice(1)]=t:n[e]=t;this.forceUpdate()}_checkAndUpdateValues(e,t){for(const n of this.props.controls){let o=n["_"+e].isPercentage;const s="-"===t.charAt(0);"%"===t.charAt(t.length-1)?o=!0:"x"===t.charAt(t.length-1)&&"p"===t.charAt(t.length-2)&&(o=!1),"StackPanel"===n.parent?.typeName&&(o=!1);let i=t.match(/([\d.,]+)/g)?.[0];i||(i="0"),i=(s?"-":"")+i,i+=o?"%":"px";const r=n[e];n[e]=i,this.props.onPropertyChangedObservable?.notifyObservers({object:n,property:e,initialValue:r,value:n[e]})}}_addOrUpdateMetadata(e){for(const t of this.props.controls){const n=t.metadata;for(const t in e){const n=e[t];isNaN(n)||isNaN(parseFloat(n))?"true"===n.trim()?e[t]=!0:"false"===n.trim()&&(e[t]=!1):e[t]=parseFloat(n)}const o=Object.assign({},t.metadata,e);t.metadata=o,this.props.onPropertyChangedObservable?.notifyObservers({object:t,property:"metadata",initialValue:n,value:o})}}_removeFromMetadata(e){for(const t of this.props.controls){const n=Object.assign({},t.metadata);delete t.metadata[e],this.props.onPropertyChangedObservable?.notifyObservers({object:t,property:"metadata",initialValue:n,value:t.metadata})}}_getCommonPropertyKeys(e){if(0===(e=e.filter((e=>!!e))).length)return[];if(1===e.length)return Object.keys(e[0]);const[t,...n]=e;return Object.keys(t).filter((e=>n.every((t=>e in t))))}_markChildrenAsDirty(){for(const e of this.props.controls)e instanceof a.Container&&e._children.forEach((e=>{e._markAsDirty()}))}componentWillUnmount(){this._onPropertyChangedObserver&&this.props.onPropertyChangedObservable?.remove(this._onPropertyChangedObserver),this._onFontsParsedObserver&&this.props.onFontsParsedObservable?.remove(this._onFontsParsedObserver);for(let e=0;e<this._onControlVisibilityChangedObservers.length;e++)this.props.controls[e].onIsVisibleChangedObservable.remove(this._onControlVisibilityChangedObservers[e])}_filterFontDuplicates(e){const t=new Set;return e.filter((e=>{const n=e.value,o=t.has(n);return t.add(n),!o}))}render(){const e=this.props.controls,t=e[0];let n=t.horizontalAlignment,o=t.verticalAlignment;for(const t of e)t.horizontalAlignment!==n&&(n=a.Control.HORIZONTAL_ALIGNMENT_CENTER),t.verticalAlignment!==o&&(o=a.Control.VERTICAL_ALIGNMENT_CENTER);e.every((e=>"TextBlock"===e.typeName&&!1===e.resizeToFit))&&(n=t.textHorizontalAlignment,o=t.textVerticalAlignment);const s=t instanceof a.Container||"TextBlock"===t.typeName||"InputText"===t.typeName||"InputPassword"===t.typeName,i=y(e,this.props.onPropertyChangedObservable),r=t=>{const n=e.map((e=>e[t]._value)),o=n[0];if(n.every((e=>e===o))){const e=l(t);return"%"===e?(100*o).toFixed(2):"PX"===e?o.toFixed(2):b}return b},l=t=>{const n=e.map((e=>e[t]._unit)),o=n[0];return n.every((e=>e===o))?o===a.ValueAndUnit.UNITMODE_PIXEL?"PX":"%":b},c=(t,n,o,s)=>{for(const i of e){const e=i[t],r=i["_"+t]._unit;let l=i[`${t}InPixels`]+n;void 0!==o&&l<o&&(l=o),void 0!==s&&l>s&&(l=s),i[`${t}InPixels`]=l,r===a.ValueAndUnit.UNITMODE_PERCENTAGE&&u.ConvertToPercentage(i,[t]),this.props.onPropertyChangedObservable?.notifyObservers({object:i,property:t,initialValue:e,value:i[t]})}},A=(t,n)=>{for(const o of e)"PX"===t?u.ConvertToPercentage(o,[n],this.props.onPropertyChangedObservable):u.ConvertToPixels(o,[n],this.props.onPropertyChangedObservable)};let d=!1,p=!1,M=!1,C=!1;const g=e[0].parent,w=this._filterFontDuplicates(this.state.fontFamilyOptions.filter((({label:e})=>"Custom Font"!==e)).map((({label:e,value:t})=>({label:e,value:e,id:t.toString()}))));return"StackPanel"!==g?.getClassName()&&"VirtualKeyboard"!==g?.getClassName()||(g.isVertical?(p=!0,C=!0):(d=!0,M=!0)),(0,L.jsxs)("div",{children:[!this.props.hideDimensions&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:"ge-divider alignment-bar",children:[(0,L.jsx)(v,{tooltip:"Left",icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMjIuMyw5LjkzQTIuMjMsMi4yMywwLDAsMCwyMC4wNyw3LjdIOS45M0EyLjIzLDIuMjMsMCwwLDAsNy43LDkuOTNWMjAuMDdBMi4yMywyLjIzLDAsMCwwLDkuOTMsMjIuM0gyMC4wN2EyLjIzLDIuMjMsMCwwLDAsMi4yMy0yLjIzWm0tMTIuMzctMUgyMC4wN2ExLDEsMCwwLDEsMSwxVjIwLjA3YTEsMSwwLDAsMS0xLDFIOS45M2ExLDEsMCwwLDEtMS0xVjkuOTNBMSwxLDAsMCwxLDkuOTMsOC45MVoiIHN0eWxlPSJmaWxsOiMzMzMiLz48cGF0aCBkPSJNMTAuNzYsMTMuMzloOC40NmEuNi42LDAsMCwxLC4wOCwxLjJIMTAuNzZhLjYuNiwwLDAsMS0uMDgtMS4yWiIgc3R5bGU9ImZpbGw6IzMzMyIvPjxwYXRoIGQ9Ik0xMC43NiwxNS44Mmg1LjQxYS42LjYsMCwwLDEsLjA4LDEuMkgxMC43NmEuNi42LDAsMCwxLS4wOC0xLjJaIiBzdHlsZT0iZmlsbDojMzMzIi8+PC9zdmc+",shortcut:"",isActive:n===a.Control.HORIZONTAL_ALIGNMENT_LEFT,onClick:()=>{this._updateAlignment("horizontalAlignment",a.Control.HORIZONTAL_ALIGNMENT_LEFT)},disabled:d}),(0,L.jsx)(v,{tooltip:"Center",icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMjIuMyw5LjkzQTIuMjMsMi4yMywwLDAsMCwyMC4wNyw3LjdIOS45M0EyLjIzLDIuMjMsMCwwLDAsNy43LDkuOTNWMjAuMDdBMi4yMywyLjIzLDAsMCwwLDkuOTMsMjIuM0gyMC4wN2EyLjIzLDIuMjMsMCwwLDAsMi4yMy0yLjIzWm0tMTIuMzctMUgyMC4wN2ExLDEsMCwwLDEsMSwxVjIwLjA3YTEsMSwwLDAsMS0xLDFIOS45M2ExLDEsMCwwLDEtMS0xVjkuOTNBMSwxLDAsMCwxLDkuOTMsOC45MVoiIHN0eWxlPSJmaWxsOiMzMzMiLz48cGF0aCBkPSJNMTAuNzYsMTMuMzloOC40NmEuNi42LDAsMCwxLC4wOCwxLjJIMTAuNzZhLjYuNiwwLDAsMS0uMDgtMS4yWiIgc3R5bGU9ImZpbGw6IzMzMyIvPjxwYXRoIGQ9Ik0xMi4zLDE1LjgyaDUuNGEuNi42LDAsMCwxLC4wOSwxLjJIMTIuM2EuNi42LDAsMCwxLS4wOS0xLjJaIiBzdHlsZT0iZmlsbDojMzMzIi8+PC9zdmc+",shortcut:"",isActive:n===a.Control.HORIZONTAL_ALIGNMENT_CENTER,onClick:()=>{this._updateAlignment("horizontalAlignment",a.Control.HORIZONTAL_ALIGNMENT_CENTER)},disabled:d}),(0,L.jsx)(v,{tooltip:"Right",icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMjIuMyw5LjkzQTIuMjMsMi4yMywwLDAsMCwyMC4wNyw3LjdIOS45M0EyLjIzLDIuMjMsMCwwLDAsNy43LDkuOTNWMjAuMDdBMi4yMywyLjIzLDAsMCwwLDkuOTMsMjIuM0gyMC4wN2EyLjIzLDIuMjMsMCwwLDAsMi4yMy0yLjIzWm0tMTIuMzctMUgyMC4wN2ExLDEsMCwwLDEsMSwxVjIwLjA3YTEsMSwwLDAsMS0xLDFIOS45M2ExLDEsMCwwLDEtMS0xVjkuOTNBMSwxLDAsMCwxLDkuOTMsOC45MVoiIHN0eWxlPSJmaWxsOiMzMzMiLz48cGF0aCBkPSJNMTAuNzYsMTMuMzloOC40NmEuNi42LDAsMCwxLC4wOCwxLjJIMTAuNzZhLjYuNiwwLDAsMS0uMDgtMS4yWiIgc3R5bGU9ImZpbGw6IzMzMyIvPjxwYXRoIGQ9Ik0xMy44MSwxNS44Mmg1LjQxQS42LjYsMCwwLDEsMTkuMywxN0gxMy44MWEuNi42LDAsMCwxLS4wOC0xLjJaIiBzdHlsZT0iZmlsbDojMzMzIi8+PC9zdmc+",shortcut:"",isActive:n===a.Control.HORIZONTAL_ALIGNMENT_RIGHT,onClick:()=>{this._updateAlignment("horizontalAlignment",a.Control.HORIZONTAL_ALIGNMENT_RIGHT)},disabled:d}),(0,L.jsx)(v,{tooltip:"Top",icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMjIuMjksOS45NGEyLjIzLDIuMjMsMCwwLDAtMi4yMy0yLjIzSDkuOTRBMi4yMywyLjIzLDAsMCwwLDcuNzEsOS45NFYyMC4wNmEyLjIzLDIuMjMsMCwwLDAsMi4yMywyLjIzSDIwLjA2YTIuMjMsMi4yMywwLDAsMCwyLjIzLTIuMjNabS0xMi4zNS0xSDIwLjA2YTEsMSwwLDAsMSwxLDFWMjAuMDZhMSwxLDAsMCwxLTEsMUg5Ljk0YTEsMSwwLDAsMS0xLTFWOS45NEExLDEsMCwwLDEsOS45NCw4LjkyWm0uODEsMi40M2g4LjVhLjYxLjYxLDAsMCwxLC42MS42MS42LjYsMCwwLDEtLjUyLjZIMTAuNzVhLjYxLjYxLDAsMCwxLS4wOS0xLjIxWm04LjUsMi40M0gxMC42NkEuNjEuNjEsMCwwLDAsMTAuNzUsMTVoOC41OWEuNi42LDAsMCwwLC41Mi0uNkEuNjEuNjEsMCwwLDAsMTkuMjUsMTMuNzhaIiBzdHlsZT0iZmlsbDojMzMzIi8+PC9zdmc+",shortcut:"",isActive:o===a.Control.VERTICAL_ALIGNMENT_TOP,onClick:()=>{this._updateAlignment("verticalAlignment",a.Control.VERTICAL_ALIGNMENT_TOP)},disabled:p}),(0,L.jsx)(v,{tooltip:"Center",icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMTEsMTMuMzloOGEuNzIuNzIsMCwwLDEsLjguNjEuNjkuNjksMCwwLDEtLjY5LjU5SDExYy0uNDQsMC0uOC0uMjctLjgtLjZhLjY5LjY5LDAsMCwxLC42OS0uNloiIHN0eWxlPSJmaWxsOiMzMzMiLz48cGF0aCBkPSJNMTksMTUuOEgxMC44N2EuNjkuNjksMCwwLDAtLjY5LjZjMCwuMzMuMzYuNi44LjZoOC4xNWEuNjkuNjksMCwwLDAsLjY5LS41OUEuNzIuNzIsMCwwLDAsMTksMTUuOFoiIHN0eWxlPSJmaWxsOiMzMzMiLz48cGF0aCBkPSJNMjIuMjMsMTBBMi4yMSwyLjIxLDAsMCwwLDIwLDcuNzdIMTBBMi4yMSwyLjIxLDAsMCwwLDcuNzcsMTBWMjBBMi4yMSwyLjIxLDAsMCwwLDEwLDIyLjIzSDIwQTIuMjEsMi4yMSwwLDAsMCwyMi4yMywyMFpNMTAsOUgyMGExLDEsMCwwLDEsMSwxVjIwYTEsMSwwLDAsMS0xLDFIMTBhMSwxLDAsMCwxLTEtMVYxMEExLDEsMCwwLDEsMTAsOVoiIHN0eWxlPSJmaWxsOiMzMzMiLz48L3N2Zz4=",shortcut:"",isActive:o===a.Control.VERTICAL_ALIGNMENT_CENTER,onClick:()=>{this._updateAlignment("verticalAlignment",a.Control.VERTICAL_ALIGNMENT_CENTER)},disabled:p}),(0,L.jsx)(v,{tooltip:"Bottom",icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMTAuNzcsMTYuMjFoOC40NmEuNi42LDAsMCwxLC4wOCwxLjJIMTAuNzdhLjYxLjYxLDAsMCwxLS4wOC0xLjIxWiIgc3R5bGU9ImZpbGw6IzMzMyIvPjxwYXRoIGQ9Ik0xOS4yMywxOC42M0gxMC42OWEuNi42LDAsMCwwLC4wOCwxLjJoOC41NGEuNi42LDAsMCwwLS4wOC0xLjJaIiBzdHlsZT0iZmlsbDojMzMzIi8+PHBhdGggZD0iTTIyLjI1LDEwQTIuMjEsMi4yMSwwLDAsMCwyMCw3Ljc1SDEwQTIuMjEsMi4yMSwwLDAsMCw3Ljc1LDEwVjIwQTIuMjEsMi4yMSwwLDAsMCwxMCwyMi4yNUgyMEEyLjIxLDIuMjEsMCwwLDAsMjIuMjUsMjBaTTEwLDlIMjBhMSwxLDAsMCwxLDEsMVYyMGExLDEsMCwwLDEtMSwxSDEwYTEsMSwwLDAsMS0xLTFWMTBBMSwxLDAsMCwxLDEwLDlaIiBzdHlsZT0iZmlsbDojMzMzIi8+PC9zdmc+",shortcut:"",isActive:o===a.Control.VERTICAL_ALIGNMENT_BOTTOM,onClick:()=>{this._updateAlignment("verticalAlignment",a.Control.VERTICAL_ALIGNMENT_BOTTOM)},disabled:p})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMTYuNTEsMTVhLjYxLjYxLDAsMCwwLC42MS42aDQuNTlsLS41OC41OGEuNi42LDAsMCwwLDAsLjg2LjU5LjU5LDAsMCwwLC44NSwwbDEuNjItMS42MWEuNjIuNjIsMCwwLDAsMC0uODZMMjIsMTNhLjYuNiwwLDEsMC0uODUuODVsLjU4LjU4SDE3LjEyQS42MS42MSwwLDAsMCwxNi41MSwxNVptLTMuNjMtLjYxSDguMjlsLjU4LS41OEEuNi42LDAsMSwwLDgsMTNMNi40LDE0LjU4YS42Mi42MiwwLDAsMCwwLC44Nkw4LDE3LjA1YS41OS41OSwwLDAsMCwuODUsMCwuNi42LDAsMCwwLDAtLjg2bC0uNTgtLjU4aDQuNTlhLjYxLjYxLDAsMSwwLDAtMS4yMVpNMTUsMTMuNDlhLjYxLjYxLDAsMCwwLC42LS42MVY4LjI5bC41OC41OGEuNi42LDAsMCwwLC44NiwwQS42MS42MSwwLDAsMCwxNyw4TDE1LjM5LDYuNGEuNjEuNjEsMCwwLDAtLjg1LDBMMTIuOTIsOGEuNjEuNjEsMCwwLDAsMCwuODUuNi42LDAsMCwwLC44NiwwbC41OC0uNTh2NC41OUEuNjEuNjEsMCwwLDAsMTUsMTMuNDlabS0uNjEsMy42M3Y0LjU5bC0uNTgtLjU4YS42LjYsMCwwLDAtLjg2LDAsLjYxLjYxLDAsMCwwLDAsLjg1bDEuNjIsMS42MmEuNjEuNjEsMCwwLDAsLjg1LDBMMTcsMjJhLjYxLjYxLDAsMCwwLDAtLjg1LjYuNiwwLDAsMC0uODYsMGwtLjU4LjU4VjE3LjEyYS42MS42MSwwLDEsMC0xLjIxLDBaIiBzdHlsZT0iZmlsbDojMzMzIi8+PC9zdmc+",label:"Position"}),(0,L.jsx)(I,{numbersOnly:!0,lockObject:this.props.lockObject,label:"X",delayInput:!0,value:r("_left"),onChange:e=>this._checkAndUpdateValues("left",e),unit:(0,L.jsx)(ts,{unit:l("_left"),onClick:e=>A(e,"left")}),arrows:!0,arrowsIncrement:e=>c("left",e)}),(0,L.jsx)(I,{numbersOnly:!0,lockObject:this.props.lockObject,label:"Y",delayInput:!0,value:r("_top"),onChange:e=>this._checkAndUpdateValues("top",e),unit:(0,L.jsx)(ts,{unit:l("_top"),onClick:e=>A(e,"top")}),arrows:!0,arrowsIncrement:e=>c("top",e)})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:Qo,label:"Size"}),(0,L.jsx)(I,{numbersOnly:!0,lockObject:this.props.lockObject,label:"W",delayInput:!0,value:r("_width"),onChange:t=>{for(const n of e)"Image"===n.typeName?n.autoScale=!1:n instanceof a.Container?n.adaptWidthToChildren=!1:"ColorPicker"===n.typeName&&("0"!==t&&"-"!==t||(t="1"));this._checkAndUpdateValues("width",t)},unit:(0,L.jsx)(ts,{unit:l("_width"),locked:M,onClick:e=>A(e,"width")}),arrows:!0,arrowsIncrement:e=>c("width",e)}),(0,L.jsx)(I,{numbersOnly:!0,lockObject:this.props.lockObject,label:"H",delayInput:!0,value:r("_height"),onChange:t=>{for(const n of e)"Image"===n.typeName?n.autoScale=!1:n instanceof a.Container?n.adaptHeightToChildren=!1:"ColorPicker"===n.typeName&&("0"!==t&&"-"!==t||(t="1"));this._checkAndUpdateValues("height",t)},unit:(0,L.jsx)(ts,{unit:l("_height"),locked:C,onClick:e=>A(e,"height")}),arrows:!0,arrowsIncrement:e=>c("height",e)})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMjEuNjMsOWEuNi42LDAsMCwwLDAtMS4ySDguMzdhLjYuNiwwLDAsMCwwLDEuMloiIHN0eWxlPSJmaWxsOiMzMzMiLz48cGF0aCBkPSJNMjEuNjMsMjIuMjNhLjYuNiwwLDAsMCwwLTEuMkg4LjM3YS42LjYsMCwwLDAsMCwxLjJaIiBzdHlsZT0iZmlsbDojMzMzIi8+PHBhdGggZD0iTTEwLjc4LDExLjc5YTEuNDEsMS40MSwwLDAsMC0xLjQxLDEuNHYzLjYyYTEuNDEsMS40MSwwLDAsMCwxLjQxLDEuNGg4LjQ0YTEuNDEsMS40MSwwLDAsMCwxLjQxLTEuNFYxMy4xOWExLjQxLDEuNDEsMCwwLDAtMS40MS0xLjRabS0uMiwxLjRhLjIuMiwwLDAsMSwuMi0uMmg4LjQ0YS4yLjIsMCwwLDEsLjIuMnYzLjYyYS4yLjIsMCwwLDEtLjIuMkgxMC43OGEuMi4yLDAsMCwxLS4yLS4yWiIgc3R5bGU9ImZpbGw6IzMzMyIvPjwvc3ZnPg==",label:"Vertical Padding"}),(0,L.jsx)(I,{numbersOnly:!0,lockObject:this.props.lockObject,label:"T",delayInput:!0,value:r("_paddingTop"),onChange:e=>{this._checkAndUpdateValues("paddingTop",e),this._markChildrenAsDirty()},unit:(0,L.jsx)(ts,{unit:l("_paddingTop"),onClick:e=>A(e,"paddingTop")}),arrows:!0,arrowsIncrement:e=>c("paddingTop",e,0)}),(0,L.jsx)(I,{numbersOnly:!0,lockObject:this.props.lockObject,label:"B",delayInput:!0,value:r("_paddingBottom"),onChange:e=>{this._checkAndUpdateValues("paddingBottom",e),this._markChildrenAsDirty()},unit:(0,L.jsx)(ts,{unit:l("_paddingBottom"),onClick:e=>A(e,"paddingBottom")}),arrows:!0,arrowsIncrement:e=>c("paddingBottom",e,0)})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNOSw4LjM3YS42LjYsMCwxLDAtMS4yLDBWMjEuNjNhLjYuNiwwLDEsMCwxLjIsMFoiIHN0eWxlPSJmaWxsOiMzMzMiLz48cGF0aCBkPSJNMjIuMjMsOC4zN2EuNi42LDAsMSwwLTEuMiwwVjIxLjYzYS42LjYsMCwxLDAsMS4yLDBaIiBzdHlsZT0iZmlsbDojMzMzIi8+PHBhdGggZD0iTTExLjc5LDE5LjIyYTEuNDEsMS40MSwwLDAsMCwxLjQsMS40MWgzLjYyYTEuNDEsMS40MSwwLDAsMCwxLjQtMS40MVYxMC43OGExLjQxLDEuNDEsMCwwLDAtMS40LTEuNDFIMTMuMTlhMS40MSwxLjQxLDAsMCwwLTEuNCwxLjQxWm0xLjQuMmEuMi4yLDAsMCwxLS4yLS4yVjEwLjc4YS4yLjIsMCwwLDEsLjItLjJoMy42MmEuMi4yLDAsMCwxLC4yLjJ2OC40NGEuMi4yLDAsMCwxLS4yLjJaIiBzdHlsZT0iZmlsbDojMzMzIi8+PC9zdmc+",label:"Horizontal Padding"}),(0,L.jsx)(I,{numbersOnly:!0,lockObject:this.props.lockObject,label:"L",delayInput:!0,value:r("_paddingLeft"),onChange:e=>{this._checkAndUpdateValues("paddingLeft",e),this._markChildrenAsDirty()},unit:(0,L.jsx)(ts,{unit:l("_paddingLeft"),onClick:e=>A(e,"paddingLeft")}),arrows:!0,arrowsIncrement:e=>c("paddingLeft",e)}),(0,L.jsx)(I,{numbersOnly:!0,lockObject:this.props.lockObject,label:"R",delayInput:!0,value:r("_paddingRight"),onChange:e=>{this._checkAndUpdateValues("paddingRight",e),this._markChildrenAsDirty()},onPropertyChangedObservable:this.props.onPropertyChangedObservable,unit:(0,L.jsx)(ts,{unit:l("_paddingRight"),onClick:e=>A(e,"paddingRight")}),arrows:!0,arrowsIncrement:e=>c("paddingRight",e)})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMjMuMTEsOS4zMmEyLjIzLDIuMjMsMCwwLDEtMi4yMywyLjI0SDkuMTJhMi4yNCwyLjI0LDAsMCwxLDAtNC40N0gyMC44OEEyLjIzLDIuMjMsMCwwLDEsMjMuMTEsOS4zMlpNMjEuNDksMTVhMi4yMywyLjIzLDAsMCwxLTIuMjMsMi4yM0gxMC43NGEyLjIzLDIuMjMsMCwwLDEsMC00LjQ2aDguNTJBMi4yMywyLjIzLDAsMCwxLDIxLjQ5LDE1Wm0tMi40NCw1LjY4YTIuMjMsMi4yMywwLDAsMS0yLjIzLDIuMjNIMTMuMThhMi4yNCwyLjI0LDAsMCwxLDAtNC40N2gzLjY0QTIuMjMsMi4yMywwLDAsMSwxOS4wNSwyMC42OFpNMjEuODksOS4zMmExLDEsMCwwLDAtMS0xSDkuMTJhMSwxLDAsMCwwLDAsMkgyMC44OEExLDEsMCwwLDAsMjEuODksOS4zMlpNMjAuMjcsMTVhMSwxLDAsMCwwLTEtMUgxMC43NGExLDEsMCwwLDAsMCwyaDguNTJBMSwxLDAsMCwwLDIwLjI3LDE1Wm0tMi40Myw1LjY4YTEsMSwwLDAsMC0xLTFIMTMuMThhMSwxLDAsMSwwLDAsMmgzLjY0QTEsMSwwLDAsMCwxNy44NCwyMC42OFoiLz48L3N2Zz4=",label:"Makes padding affect only the descendants of this control"}),(0,L.jsx)(qn,{label:"ONLY PAD DESCENDANTS",target:i,propertyName:"descendentsOnlyPadding"})]}),(0,L.jsx)("hr",{className:"ge"})]}),"root"===g?.name&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(h,{label:"LINK OFFSET",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJpY29ucyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHZpZXdCb3g9IjAgMCAzMCAzMCI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiMzMzM7fTwvc3R5bGU+PC9kZWZzPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTE4LjE3LDE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4zMy0uMjctLjYxLS42MS0uNjFzLS42LC4yNy0uNiwuNjF2NC41OWwtLjU4LS41OGMtLjI0LS4yNC0uNjItLjI0LS44NiwwLS4yNCwuMjQtLjI0LC42MiwwLC44NmwxLjYxLDEuNjFjLjI0LC4yNCwuNjIsLjI0LC44NiwwbC43Mi0uNzJjLS42Mi0uNTQtMS4wMS0xLjMxLTEuMDEtMi4xN1oiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0xMy42OCw4Ljg3bC41OC0uNTh2NC41OWMwLC4zMywuMjcsLjYxLC42LC42MXMuNjEtLjI3LC42MS0uNjF2LTQuNTlsLjU4LC41OGMuMjQsLjI0LC42MiwuMjQsLjg2LDAsLjI0LS4yNCwuMjQtLjYyLDAtLjg2bC0xLjYxLTEuNjFjLS4yNC0uMjQtLjYyLS4yNC0uODYsMGwtMS42MSwxLjYxYy0uMjQsLjI0LS4yNCwuNjIsMCwuODYsLjI0LC4yNCwuNjIsLjI0LC44NiwwWiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTguMTksMTUuNjFoNC41OWMuMzMsMCwuNjEtLjI3LC42MS0uNjFzLS4yNy0uNjEtLjYxLS42MWgtNC41OWwuNTgtLjU4Yy4yNC0uMjQsLjI0LS42MiwwLS44Ni0uMjQtLjI0LS42Mi0uMjQtLjg2LDBsLTEuNjEsMS42MWMtLjI0LC4yNC0uMjQsLjYyLDAsLjg2bDEuNjEsMS42MWMuMjQsLjI0LC42MiwuMjQsLjg2LDAsLjI0LS4yNCwuMjQtLjYyLDAtLjg2bC0uNTgtLjU4WiIvPjwvZz48L3N2Zz4=",label:"Link offset"}),(0,L.jsx)(I,{numbersOnly:!0,lockObject:this.props.lockObject,label:"X",delayInput:!0,value:r("_linkOffsetX"),onChange:e=>this._checkAndUpdateValues("linkOffsetX",e),unit:(0,L.jsx)(ts,{unit:l("_linkOffsetX"),onClick:e=>A(e,"linkOffsetX")}),arrows:!0,arrowsIncrement:e=>c("linkOffsetX",e)}),(0,L.jsx)(I,{numbersOnly:!0,lockObject:this.props.lockObject,label:"Y",delayInput:!0,value:r("_linkOffsetY"),onChange:e=>this._checkAndUpdateValues("linkOffsetY",e),unit:(0,L.jsx)(ts,{unit:l("_linkOffsetY"),onClick:e=>A(e,"linkOffsetY")}),arrows:!0,arrowsIncrement:e=>c("linkOffsetY",e)})]}),(0,L.jsx)("hr",{className:"ge"})]}),(0,L.jsx)(h,{tooltip:"",label:"SERIALIZATION",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:es,label:"Serializable"}),(0,L.jsx)(qn,{label:"ISSERIALIZABLE",target:i,propertyName:"isSerializable"})]}),(0,L.jsx)(h,{tooltip:"",label:"VISIBILITY",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:Ko,label:"Visible"}),(0,L.jsx)(qn,{label:"ISVISIBLE",target:i,propertyName:"isVisible",onPropertyChangedObservable:this.props.onPropertyChangedObservable})]}),(0,L.jsx)(h,{tooltip:"",label:"TRANSFORMATION",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:Jo,label:"Scale"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"X",target:i,propertyName:"scaleX",arrows:!0,digits:2,step:"0.0005"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"Y",target:i,propertyName:"scaleY",arrows:!0,digits:2,step:"0.0005"})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMTUsNi45QTguMSw4LjEsMCwxLDAsMjMuMSwxNSw4LjEsOC4xLDAsMCwwLDE1LDYuOVptNi44Niw3LjQ5SDE1LjYzVjguMTRBNi44OSw2Ljg5LDAsMCwxLDIxLjg2LDE0LjM5Wk0xNC40MSw4LjE0djYuMjVIOC4xNEE2Ljg5LDYuODksMCwwLDEsMTQuNDEsOC4xNFpNOC4xNCwxNS42MWg2LjI3djYuMjVBNi44OSw2Ljg5LDAsMCwxLDguMTQsMTUuNjFabTcuNDksNi4yNVYxNS42MWg2LjIzQTYuODksNi44OSwwLDAsMSwxNS42MywyMS44NloiIHN0eWxlPSJmaWxsOiMzMzMiLz48L3N2Zz4=",label:"Transform Center"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"X",target:i,propertyName:"transformCenterX",arrows:!0,digits:2,step:"0.0005"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"Y",target:i,propertyName:"transformCenterY",arrows:!0,digits:2,step:"0.0005"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMTUsNy43M2E3LjI3LDcuMjcsMCwwLDEsNCwxMy4zM2gxLjQzYS42MS42MSwwLDAsMSwuNjEuNjEuNjEuNjEsMCwwLDEtLjUyLjZIMTcuMjJhLjYxLjYxLDAsMCwxLS42LS41MlYxOC40M2EuNi42LDAsMCwxLDEuMi0uMDh2MkE2LjA2LDYuMDYsMCwxLDAsOC45NCwxNWEuNjEuNjEsMCwxLDEtMS4yMSwwQTcuMjYsNy4yNiwwLDAsMSwxNSw3LjczWm0wLDVBMi4yMiwyLjIyLDAsMSwxLDEyLjc4LDE1LDIuMjEsMi4yMSwwLDAsMSwxNSwxMi43OFpNMTUsMTRhMSwxLDAsMSwwLDEsMUExLDEsMCwwLDAsMTUsMTRaIiBzdHlsZT0iZmlsbDojMzMzIi8+PC9zdmc+",label:"Rotation"}),(0,L.jsx)(S,{iconLabel:"Rotation",lockObject:this.props.lockObject,label:"",target:i,decimalCount:2,propertyName:"rotation",minimum:0,maximum:2*Math.PI,step:.01,unit:(0,L.jsx)(ts,{unit:"RAD",locked:!0})})]}),(0,L.jsx)("hr",{className:"ge"}),(0,L.jsx)(h,{tooltip:"",label:"APPEARANCE",value:" ",color:"grey"}),e.every((e=>void 0!==e.color&&"Image"!==e.typeName&&"ImageBasedSlider"!==e.typeName&&"ColorPicker"!==e.typeName))&&(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:Xo,label:"Outline Color"}),(0,L.jsx)(yo,{lockObject:this.props.lockObject,label:"Outline Color",target:i,propertyName:"color"})]}),e.every((e=>void 0!==e.background))&&(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:qo,label:"Background Color"}),(0,L.jsx)(yo,{lockObject:this.props.lockObject,label:"Background Color",target:i,propertyName:"background"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:Vo,label:"Alpha"}),(0,L.jsx)(S,{lockObject:this.props.lockObject,label:"",target:i,propertyName:"alpha",minimum:0,maximum:1,step:.01})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNNy43MywxMEEyLjIzLDIuMjMsMCwwLDEsMTAsNy43M2gxMC4xQTIuMjMsMi4yMywwLDAsMSwyMi4yNywxMHYxMC4xYTIuMjMsMi4yMywwLDAsMS0yLjIyLDIuMjJIMTBhMi4yMywyLjIzLDAsMCwxLTIuMjItMi4yMlptMi4yMi0xYTEsMSwwLDAsMC0xLDF2MTAuMWExLDEsMCwwLDAsMSwxaDEwLjFhMSwxLDAsMCwwLDEtMVYxMGExLDEsMCwwLDAtMS0xWiIgc3R5bGU9ImZpbGw6IzMzMyIvPjxwYXRoIGQ9Ik0xOS45MywyMC4wNWwuMTItMTIuMzJBMi4yMywyLjIzLDAsMCwxLDIyLjI3LDEwdjEwLjFhMi4yMywyLjIzLDAsMCwxLTIuMjIsMi4yMkgxMGEyLjIzLDIuMjMsMCwwLDEtMi4yMi0yLjIyWiIgc3R5bGU9ImZpbGw6IzMzMyIvPjwvc3ZnPg==",label:"Shadow Color"}),(0,L.jsx)(yo,{lockObject:this.props.lockObject,label:"",target:i,propertyName:"shadowColor"})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMTkuMTgsMTEuNzJhLjc3Ljc3LDAsMCwwLS41Ni0uMjUuNzguNzgsMCwwLDAtLjUuMTkuNzUuNzUsMCwwLDAtLjA2LDEuMDZsLjg5LDFIMTYuMTJhLjc1Ljc1LDAsMSwwLDAsMS41SDE5bC0uODksMWEuNzUuNzUsMCwwLDAsLjA2LDEuMDYuNzUuNzUsMCwwLDAsMS4wNi0uMDZsMi0yLjI1YS43Ni43NiwwLDAsMCwwLTFaIiBzdHlsZT0iZmlsbDojMzMzIi8+PHBhdGggZD0iTTIxLjM1LDguNDhhMi4yLDIuMiwwLDAsMC0yLjA2LTEuNDFIOS4yQTIuMjEsMi4yMSwwLDAsMCw3LDkuMjlWMTkuMzhhMi4yMSwyLjIxLDAsMCwwLDEuNjcsMi4xNCwyLjIsMi4yLDAsMCwwLDIuMDYsMS40MUgyMC44QTIuMjEsMi4yMSwwLDAsMCwyMywyMC43MVYxMC42MkEyLjIxLDIuMjEsMCwwLDAsMjEuMzUsOC40OFptLjU4LDcuMTZMMjAuMywxNy40N3YxLjkxYTEsMSwwLDAsMS0xLDFIOS4yYTEsMSwwLDAsMS0xLTFWOS4yOWExLDEsMCwwLDEsMS0xSDE5LjI5YTEsMSwwLDAsMSwxLDF2Mi4xOWwxLjYzLDEuODNBMS43NSwxLjc1LDAsMCwxLDIxLjkzLDE1LjY0WiIgc3R5bGU9ImZpbGw6IzMzMyIvPjwvc3ZnPg==",label:"Shadow Offset"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"X",target:i,propertyName:"shadowOffsetX",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),arrows:!0,step:"0.1",digits:2}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"Y",target:i,propertyName:"shadowOffsetY",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),arrows:!0,step:"0.1",digits:2})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNNy43OSwxNUE3LjIxLDcuMjEsMCwwLDEsMTksOUgxNWE2LDYsMCwwLDAsMCwxMlYxOS44aDUuMzdBNy4yLDcuMiwwLDAsMSw3Ljc5LDE1WiIgc3R5bGU9ImZpbGw6IzMzMyIvPjxwYXRoIGQ9Ik0yMCw5LjhIMTVWMTFoNkE2Ljg0LDYuODQsMCwwLDAsMjAsOS44WiIgc3R5bGU9ImZpbGw6IzMzMyIvPjxwYXRoIGQ9Ik0xNSwxMS44aDYuNDZhNi45Miw2LjkyLDAsMCwxLC40NiwxLjJIMTVaIiBzdHlsZT0iZmlsbDojMzMzIi8+PHBhdGggZD0iTTIyLjExLDEzLjhIMTVWMTVoNy4yMUE3Ljg4LDcuODgsMCwwLDAsMjIuMTEsMTMuOFoiIHN0eWxlPSJmaWxsOiMzMzMiLz48cGF0aCBkPSJNMTUsMTUuOGg3LjE2YTYuMDgsNi4wOCwwLDAsMS0uMjQsMS4ySDE1WiIgc3R5bGU9ImZpbGw6IzMzMyIvPjxwYXRoIGQ9Ik0yMS42NCwxNy44SDE1VjE5aDZBNy4yOSw3LjI5LDAsMCwwLDIxLjY0LDE3LjhaIiBzdHlsZT0iZmlsbDojMzMzIi8+PC9zdmc+",label:"Shadow Blur"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:" ",target:i,propertyName:"shadowBlur",arrows:!0,min:0,digits:2})]}),s&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("hr",{className:"ge"}),(0,L.jsx)(h,{tooltip:"",label:"FONT STYLE",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:Fo,label:"Font Family"}),(0,L.jsx)(Ho,{options:w,selectedOptionValue:i.fontFamily,onOptionSelected:e=>{i.fontFamily=e},onOptionAdded:({value:e})=>{this._addFont(e)},addOptionPlaceholder:"Add new font...",validateNewOptionValue:e=>e.length>0&&!w.find((t=>t.label===e))&&document.fonts.check(`12px ${e}`)})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjMwIiBoZWlnaHQ9IjMwIiB2aWV3Qm94PSIwIDAgMzAgMzAiPjxkZWZzPjxzdHlsZT4uY2xzLTF7ZmlsbDojMzMzO308L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0yNC4zNSwyMC40NSwyMC4yMiw4LjgxbDAtLjEyYTEuMDcsMS4wNywwLDAsMC0xLjk0LjE1TDE0Ljc3LDE4LjYsMTEuMiw4LjU0bDAtLjA5YS42MS42MSwwLDAsMC0xLjEuMDlMNS42MiwyMS4wNWEuNjEuNjEsMCwwLDAsMS4xMS40OGwwLS4wNywxLjI5LTMuNjNoNS4xNmwxLjI5LDMuNjMsMCwuMDdhLjYxLjYxLDAsMCwwLC41My4zM2gwYTEuMDcsMS4wNywwLDAsMCwxLS42bDEuMTItMy4xNGg0LjA5bDEuMDgsMy4wNy4wNS4xYTEuMDcsMS4wNywwLDAsMCwuOTUuNTcsMS4xMiwxLjEyLDAsMCwwLC4zNS0uMDZBMS4wNSwxLjA1LDAsMCwwLDI0LjM1LDIwLjQ1Wk04LjQ4LDE2LjYxbDIuMTUtNi4wNiwyLjE1LDYuMDZaTTE4LDE2bDEuMjgtMy42M0wyMC41MiwxNloiLz48L3N2Zz4=",label:"Font Weight"}),(0,L.jsx)(I,{lockObject:this.props.lockObject,label:"",target:i,propertyName:"fontWeight"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMjEuNCwxOS42NWwwLDBhMi40NSwyLjQ1LDAsMCwxLC4xMS43MSwyLDIsMCwwLDEtMiwyLDIsMiwwLDAsMS0xLjEyLS4zNGwtLjA1LDAtLjA1LDBhMi4zMywyLjMzLDAsMCwxLS42NC0uODR2MGwtLjc5LTEuODhIMTNsLS43NSwxLjgzYTIsMiwwLDAsMS0uNzQsMUEyLDIsMCwwLDEsOSwyMS44N2ExLjg4LDEuODgsMCwwLDEtLjU1LTEuMzgsMy4zNywzLjM3LDAsMCwxLDAtLjQ4bDAtLjEzLDQuNTUtMTFoMGEyLjI3LDIuMjcsMCwwLDEsLjc2LS45NCwxLjk0LDEuOTQsMCwwLDEsMS4yNi0uMzIsMiwyLDAsMCwxLDEuODIsMS4zMVpNMTUuODEsOS4zNGEuNzkuNzksMCwwLDAtLjMtLjQxLjgzLjgzLDAsMCwwLS40MS0uMTNIMTVhMS4xMSwxLjExLDAsMCwwLS4yNiwwLC42NC42NCwwLDAsMC0uMjUuMTIuODUuODUsMCwwLDAtLjM0LjQyTDkuNzEsMjAuMjFhMS40OCwxLjQ4LDAsMCwwLDAsLjI4LjcyLjcyLDAsMCwwLC4xOS41My43Ny43NywwLDAsMCwuNTcuMTkuNy43LDAsMCwwLC40NC0uMTQuNzYuNzYsMCwwLDAsLjMtLjRsMS4wNy0yLjYxaDUuNDNsMS4wOSwyLjU5YTEuMTcsMS4xNywwLDAsMCwuMzIuNDIuNzYuNzYsMCwwLDAsLjQ2LjE0LjcuNywwLDAsMCwuNTQtLjIzLjczLjczLDAsMCwwLC4yNS0uNTgsMS4yLDEuMiwwLDAsMCwwLS4zM1pNMTcsMTYuNDYsMTUsMTEuNTRsLTIsNC45MlptLTIuMzEtMS4yaC41bC0uMjUtLjZaIiBzdHlsZT0iZmlsbDojMzMzIi8+PC9zdmc+",label:"Font Style"}),(0,L.jsx)(Ho,{options:[{label:"normal",value:"normal",id:"0"},{label:"italic",value:"italic",id:"1"},{label:"oblique",value:"oblique",id:"2"}],selectedOptionValue:i.fontStyle,onOptionSelected:e=>{i.fontStyle=e}})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMTMuNTYsMTkuNTNsMy45LTExYS42MS42MSwwLDAsMSwxLjEtLjA5bDAsLjA5TDIzLDIxLjA1YS42Mi42MiwwLDAsMS0uMzcuNzguNi42LDAsMCwxLS43NC0uM2wwLS4wNy0xLjI5LTMuNjRIMTUuNDVsLTEuMjgsMy42YS41Ny41NywwLDAsMS0uMjkuMzZsLS4wNywwYS42MS42MSwwLDAsMS0uNzUtLjI3bDAtLjA3LS44LTJIOC45bC0uOCwyYS42MS42MSwwLDAsMS0uNzEuMzdsLS4wOCwwYS41OS41OSwwLDAsMS0uMzYtLjdMNywyMWwzLTcuNjdhLjYxLjYxLDAsMCwxLDEuMDktLjA4bDAsLjA5LDIuNDMsNi4xNiwzLjktMTFabS0zLTQuMjktMS4xOCwzaDIuMzZaTTE4LDEwLjU1bC0yLjE2LDYuMDZoNC4zMVoiIHN0eWxlPSJmaWxsOiMzMzMiLz48L3N2Zz4=",label:"Font Size"}),(0,L.jsx)(I,{lockObject:this.props.lockObject,label:"",numbersOnly:!0,value:r("_fontSize"),onChange:e=>this._checkAndUpdateValues("fontSize",e),unit:(0,L.jsx)(ts,{unit:l("_fontSize"),onClick:e=>A(e,"fontSize")}),arrows:!0,arrowsIncrement:e=>c("fontSize",e,0)})]})]}),(0,L.jsx)("hr",{className:"ge"}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(h,{tooltip:"",label:"METADATA",value:" ",color:"grey"}),(0,L.jsx)(v,{tooltip:"Add",icon:$o,isActive:!1,onClick:()=>{const t=(as["gui-editor"]??window).prompt("Enter new key name for metadata value","newKey");if(null===t||""===t.trim())return;let n=t,o=1;for(;e.some((e=>n in e.metadata));)o++,n=t+o;this._addOrUpdateMetadata({[n]:""})}})]}),this._getCommonPropertyKeys(e.map((e=>e.metadata))).map((t=>{if("guiEditor"===t||t.startsWith("_")||"editorUniqueId"===t)return;const n=e.find((e=>!!e.metadata));if(!n)return;let o=n.metadata[t];const s="object"==typeof o;return e.map((e=>e.metadata[t])).every((e=>e===o))||(o=b),(0,L.jsx)("div",{children:(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(I,{numbersOnly:!1,lockObject:this.props.lockObject,label:"",delayInput:!0,value:t,disabled:!0}),(0,L.jsx)(I,{numbersOnly:!1,lockObject:this.props.lockObject,label:":",delayInput:!0,disabled:s,value:"string"==typeof o?o:JSON.stringify(o),onChange:e=>this._addOrUpdateMetadata({[t]:e})}),(0,L.jsx)(v,{t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MuMWMuMywwLC41NCwuMjgsLjU0LC42MSwwLC4zMS0uMiwuNTctLjQ2LC42MWgtMy4xOGwxLDEuMDFjLjIyLC4yMiwuMjQsLjU2LC4wNiwuOGwtLjA2LC4wN2MtLjIyLC4yMi0uNTYsLjI0LS44LC4wNmwtLjA3LS4wNi0xLjk0LTEuOTRjLS4xNy0uMS0uMjktLjMxLS4yOS0uNTRzLjEyLS40NCwuMjktLjU0bDEuOTQtMS45NGMuMjQtLjI0LC42My0uMjQsLjg3LDBaIi8+PC9zdmc+";class us extends t.Component{constructor(e){super(e)}render(){const{sliders:e,onPropertyChangedObservable:t}=this.props,n=y(e,t);return(0,L.jsxs)("div",{className:"pane",children:[(0,L.jsx)("hr",{}),(0,L.jsx)(h,{label:"SLIDER",value:" ",color:"grey"}),e.every((e=>"Slider"===e.typeName))&&(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:Xo,label:"Border Color"}),(0,L.jsx)(yo,{lockObject:this.props.lockObject,label:"",target:n,propertyName:"borderColor"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTguMDgsNi43OWExLjg1LDEuODUsMCwwLDEsMS44NSwxLjg1VjIxLjM2YTEuODUsMS44NSwwLDAsMS0xLjg1LDEuODVIMTEuOTJhMS44NSwxLjg1LDAsMCwxLTEuODUtMS44NVY4LjY0YTEuODUsMS44NSwwLDAsMSwxLjg1LTEuODVabTAsMS4yM0gxMS45MmEuNjEuNjEsMCwwLDAtLjYxLjYyVjIxLjM2YS42MS42MSwwLDAsMCwuNjEuNjJoNi4xNmEuNjEuNjEsMCwwLDAsLjYxLS42MlY4LjY0QS42MS42MSwwLDAsMCwxOC4wOCw4Wm0tLjgsOC4xOGEuNjIuNjIsMCwwLDEsLjA3LjhsLS4wNi4wN0wxNS40NCwxOWEuNjIuNjIsMCwwLDEtLjgxLjA2TDE0LjU2LDE5bC0xLjg1LTEuODlhLjYxLjYxLDAsMCwxLC44MS0uOTJsLjA3LjA2TDE1LDE3LjY1bDEuNDEtMS40NEEuNjIuNjIsMCwwLDEsMTcuMjgsMTYuMlptLTEuODQtNS4xMkwxNy4yOSwxM2EuNjQuNjQsMCwwLDEsMCwuODguNjMuNjMsMCwwLDEtLjg3LDBMMTUsMTIuMzlsLTEuNDEsMS40NGEuNjIuNjIsMCwxLDEtLjg4LS44N2wxLjg1LTEuODhBLjYxLjYxLDAsMCwxLDE1LjQ0LDExLjA4WiIvPjwvc3ZnPg==",label:"Vertical"}),(0,L.jsx)(qn,{label:"VERTICAL",target:n,propertyName:"isVertical"})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNOS4xNSwxMi40MmExLjQyLDEuNDIsMCwwLDAtMS40MSwxLjQydjIuMzJhMS40MiwxLjQyLDAsMCwwLDEuNDEsMS40MmgxMS43YTEuNDIsMS40MiwwLDAsMCwxLjQxLTEuNDJWMTMuODRhMS40MiwxLjQyLDAsMCwwLTEuNDEtMS40MlpNOSwxMy44NGEuMjEuMjEsMCwwLDEsLjItLjIxaDExLjdhLjIxLjIxLDAsMCwxLC4yLjIxdjIuMzJhLjIxLjIxLDAsMCwxLS4yLjIxSDkuMTVhLjIxLjIxLDAsMCwxLS4yLS4yMVptNy42Ni01LjQ5QS42LjYsMCwwLDEsMTYsOUgxNGEuNjEuNjEsMCwwLDEsMC0xLjIxaDJBLjYuNiwwLDAsMSwxNi42MSw4LjM1Wk0xNiwyMi4yNmEuNjEuNjEsMCwwLDAsMC0xLjIxSDE0YS42MS42MSwwLDAsMCwwLDEuMjFaTTExLDguMzVhLjYxLjYxLDAsMCwwLS42MS0uNjFIMTBBMi4yMSwyLjIxLDAsMCwwLDcuNzQsMTB2LjRhLjYxLjYxLDAsMSwwLDEuMjEsMFYxMGExLDEsMCwwLDEsMS0xaC40QS42LjYsMCwwLDAsMTEsOC4zNVptOC42Ny0uNjFhLjYxLjYxLDAsMSwwLDAsMS4yMUgyMGExLDEsMCwwLDEsMSwxdi40YS42MS42MSwwLDEsMCwxLjIxLDBWMTBBMi4yMSwyLjIxLDAsMCwwLDIwLDcuNzRaTTExLDIxLjY1YS42MS42MSwwLDAsMS0uNjEuNjFIMTBBMi4yMSwyLjIxLDAsMCwxLDcuNzQsMjB2LS40YS42MS42MSwwLDEsMSwxLjIxLDBWMjBhMSwxLDAsMCwwLDEsMWguNEEuNi42LDAsMCwxLDExLDIxLjY1Wm04LjY3LjYxYS42MS42MSwwLDEsMSwwLTEuMjFIMjBhMSwxLDAsMCwwLDEtMXYtLjRhLjYxLjYxLDAsMSwxLDEuMjEsMFYyMEEyLjIxLDIuMjEsMCwwLDEsMjAsMjIuMjZaIi8+PC9zdmc+",label:"Bar Offset"}),(0,L.jsx)(I,{lockObject:this.props.lockObject,label:"",target:n,propertyName:"barOffset"})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTMuNzgsNy4yNGEuNjEuNjEsMCwwLDAtLjQ5LS43MS42LjYsMCwwLDAtLjcuNDhsLS44Myw0LjM1SDcuOTNhLjYyLjYyLDAsMCwwLS42LjYxLjYuNiwwLDAsMCwuNi42MWgzLjZsLS43Niw0SDcuMTJhLjYxLjYxLDAsMCwwLDAsMS4yMWgzLjQyTDkuNzYsMjJhLjYxLjYxLDAsMSwwLDEuMTkuMjJsLjgyLTQuMzVoMi4xNmE1LjE4LDUuMTgsMCwwLDEsLjQ1LTEuMjFIMTJsLjc3LTRoNC40MmwtLjMyLDEuNjlhNC44Niw0Ljg2LDAsMCwxLDEuMzEtLjRsLjI0LTEuMjloMy42NWEuNjEuNjEsMCwwLDAsMC0xLjIxSDE4LjY1bC43OC00LjEyQS42MS42MSwwLDAsMCwxOC4yNCw3bC0uODIsNC4zNUgxM1pNMTQuNiwxOUE0LjQ0LDQuNDQsMCwxLDEsMTksMjMuNDgsNC40NCw0LjQ0LDAsMCwxLDE0LjYsMTlabTQuNTksMi44LjA2LDAsMCwwLDIuMDUtMi4wNS4wNS0uMDZhLjQuNCwwLDAsMC0uNTYtLjU2bC0uMDYuMDUtMS4zMywxLjMzVjE2LjE0YS40LjQsMCwwLDAtLjMzLS4zM0gxOWEuNC40LDAsMCwwLS4zMy4zM3Y0LjM1bC0xLjMyLTEuMzMtLjA2LS4wNWEuNDMuNDMsMCwwLDAtLjQ2LDBsLS4wNi4wNSwwLC4wNWEuMzkuMzksMCwwLDAsMCwuNDZsMCwuMDYsMiwyLDAsMCwuMDYsMCwuMDcsMGguMTNsLjA3LDBaIi8+PC9zdmc+",label:"Minimum Value"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"",target:n,propertyName:"minimum",arrows:!0})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwO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rows:!0})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTQuMTgsNy42NEEuNjEuNjEsMCwwLDAsMTMsNy40MWwtLjgyLDQuMzZIOC4zM2EuNjEuNjEsMCwwLDAsMCwxLjIxaDMuNmwtLjc3LDRINy41M2EuNjEuNjEsMCwxLDAsMCwxLjIxSDExbC0uNzksNC4xM2EuNjEuNjEsMCwwLDAsLjQ5LjcxLjYuNiwwLDAsMCwuNy0uNDhsLjgzLTQuMzZIMTYuNmwtLjc4LDQuMTNhLjYxLjYxLDAsMSwwLDEuMTkuMjNsLjgyLTQuMzZoMy44NGEuNjEuNjEsMCwwLDAsMC0xLjIxaC0zLjZsLjc3LTRoMy42NGEuNjEuNjEsMCwxLDAsMC0xLjIxSDE5LjA2bC43OC00LjEyYS42MS42MSwwLDAsMC0uNDktLjcxLjYuNiwwLDAsMC0uNy40OGwtLjgzLDQuMzVIMTMuNFptLTEsNS4zNGg0LjQybC0uNzYsNEgxMi40MVoiLz48L3N2Zz4=",label:"Initial Value"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"",target:n,propertyName:"value",arrows:!0})]}),(0,L.jsx)("hr",{}),(0,L.jsx)(h,{label:"THUMB",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbG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w4SDEwLjI4YS42Mi42MiwwLDAsMC0uNjEuNTN2My4zOGgwYTEuNDQsMS40NCwwLDAsMC0xLjIyLS40VjguNjRBMS44NSwxLjg1LDAsMCwxLDEwLjE2LDYuOGg5LjU2WiIvPjwvc3ZnPg==",label:"Display Thumb"}),(0,L.jsx)(qn,{label:"DISPLAY THUMB",target:n,propertyName:"displayThumb",onValueChanged:()=>this.forceUpdate()})]}),n.displayThumb&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTUsOC4xM0E2Ljg3LDYuODcsMCwxLDAsMjEuODcsMTUsNi44Niw2Ljg2LDAsMCwwLDE1LDguMTNaTTYuOTEsMTVBOC4wOSw4LjA5LDAsMSwxLDE1LDIzLjA5LDguMDksOC4wOSwwLDAsMSw2LjkxLDE1WiIvPjwvc3ZnPg==",label:"Thumb Circular"}),(0,L.jsx)(qn,{label:"CIRCULAR",target:n,propertyName:"isThumbCircle"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmJ7ZmlsbDojMjEyMTIxO308L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iYiIgZD0iTTE5LjQ3LDIwLjNjLjUxLDAsMS42OS0uMjEsMS42OS0yLjEycy0xLjE4LTIuMTItMS42OS0yLjEyaC0uOTZ2LS44OGguMDljLjM0LDAsLjYyLS4yOCwuNjItLjYycy0uMjgtLjYyLS42Mi0uNjJoLTEuNDZjLS4zNCwwLS42MiwuMjgtLjYyLC42MnMuMjgsLjYyLC42MiwuNjJoLjEydi44OGgtNC4xN3YtNi4wMmg2LjA4Yy41MSwwLDEuNjgtLjIxLDEuNjgtMi4xMnMtMS4xOC0yLjEyLTEuNjgtMi4xMmgtNi4yYy0yLjI3LDAtNC4xMiwxLjg1LTQuMTIsNC4xMnY2LjI3YzAsMi4yNywxLjg1LDQuMTIsNC4xMiw0LjEyaDQuM3YyLjY3aC0uNzhjLS4zNCwwLS42MiwuMjgtLjYyLC42MnMuMjgsLjYyLC42MiwuNjJoMi44MWMuMzQsMCwuNjItLjI4LC42Mi0uNjJzLS4yOC0uNjItLjYyLS42MmgtLjc4di0yLjY3aC45NlptLTkuMzgtNC4xMnYtNi4yN2MwLTEuNTksMS4yOS0yLjg4LDIuODgtMi44OGg2LjJjLjE3LDAsLjQzLDAsLjQzLC44OHMtLjI2LC44OC0uNDMsLjg4aC02LjJjLS42MiwwLTEuMTIsLjUtMS4xMiwxLjEydjYuMjdjMCwuNjIsLjUsMS4xMiwxLjEyLDEuMTJoNi41Yy4xNywwLC40NCwwLC40NCwuODhzLS4yNiwuODgtLjQ0LC44OGgtNi41Yy0xLjU4LDAtMi44OC0xLjI5LTIuODgtMi44OFoiLz48L3N2Zz4=",label:"Thumb Clamped to Edges"}),(0,L.jsx)(qn,{label:"CLAMPED",target:n,propertyName:"isThumbClamped"})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:cs,label:"Width"}),(0,L.jsx)(I,{lockObject:this.props.lockObject,label:"",target:n,propertyName:"thumbWidth"})]})]})]})}}class As extends t.Component{constructor(e){super(e)}render(){const e=this.props.sliders;return(0,L.jsxs)("div",{className:"pane",children:[(0,L.jsx)(ls,{lockObject:this.props.lockObject,controls:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable,onFontsParsedObservable:this.props.onFontsParsedObservable,globalState:this.props.globalState}),(0,L.jsx)(us,{sliders:e,lockObject:this.props.lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})]})}}const ds="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNNy43MywxMEEyLjIzLDIuMjMsMCwwLDEsMTAsNy43M2gxMC4xQTIuMjMsMi4yMywwLDAsMSwyMi4yNywxMHYxMC4xYTIuMjMsMi4yMywwLDAsMS0yLjIyLDIuMjJIMTBhMi4yMywyLjIzLDAsMCwxLTIuMjItMi4yMlptMi4yMi0xYTEsMSwwLDAsMC0xLDF2MTAuMWExLDEsMCwwLDAsMSwxaDEwLjFhMSwxLDAsMCwwLDEtMVYxMGExLDEsMCwwLDAtMS0xWiIgc3R5bGU9ImZpbGw6IzMzMyIvPjwvc3ZnPg==";class ps extends t.Component{constructor(e){super(e)}onDashChange(e){const t=e.split(",");for(const e of this.props.lines)e.dash=[],t.forEach((t=>{const n=parseInt(t);isNaN(n)||e.dash.push(n)}));this.forceUpdate()}render(){const{lines:e,onPropertyChangedObservable:t,lockObject:n}=this.props,o=y(e,t);let s=e[0].dash;for(const t of e){if(0===s.length)break;t.dash.length!==s.length&&(s=[]),s.forEach(((e,n)=>{t.dash[n]!==e&&(s=[])}))}const i=s.join(",");return(0,L.jsxs)("div",{className:"pane",children:[(0,L.jsx)(h,{label:"LINE",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0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LC41OGMuMjQsLjI0LC42MiwuMjQsLjg2LDAsLjI0LS4yNCwuMjQtLjYyLDAtLjg2bC0xLjYxLTEuNjFjLS4yNC0uMjQtLjYyLS4yNC0uODYsMGwtMS42MSwxLjYxYy0uMjQsLjI0LS4yNCwuNjIsMCwuODYsLjI0LC4yNCwuNjIsLjI0LC44NiwwbC41OC0uNTh2NC41OWMwLC4zMywuMjcsLjYxLC42MSwuNjFabS0uNjEsMy42M3Y0LjU5bC0uNTgtLjU4Yy0uMjQtLjI0LS42Mi0uMjQtLjg2LDAtLjI0LC4yNC0uMjQsLjYyLDAsLjg2bDEuNjEsMS42MWMuMjQsLjI0LC42MiwuMjQsLjg2LDBsMS42MS0xLjYxYy4yNC0uMjQsLjI0LS42MiwwLS44Ni0uMjQtLjI0LS42Mi0uMjQtLjg2LDBsLS41OCwuNTh2LTQuNTljMC0uMzMtLjI3LS42MS0uNjEtLjYxcy0uNjEsLjI3LS42MSwuNjFaIi8+PC9zdmc+",label:"Position 1"}),(0,L.jsx)(I,{lockObject:n,label:"X",target:o,propertyName:"x1"}),(0,L.jsx)(I,{lockObject:n,label:"Y",target:o,propertyName:"y1"})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMCAzMCI+PGRlZnM+PHN0eWxlPi5ie2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImIiIGQ9Ik0yMy42NSwxMC44YzAsLjI4LS4yMSwuNDYtLjQ2LC40NmgtMy41M2MtLjI5LDAtLjUtLjE5LS41LS41LDAtLjIxLC4wOC0uMzcsLjI4LS41N2wyLjAzLTIuMTFjLjUyLS41MywuODQtMS4wOCwuODQtMS42NywwLS42My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wtMS42MSwxLjYxYy0uMjQsLjI0LS4yNCwuNjIsMCwuODYsLjI0LC4yNCwuNjIsLjI0LC44NiwwbC41OC0uNTh2NC41OWMwLC4zMywuMjcsLjYxLC42MSwuNjFabS0uNjEsMy42M3Y0LjU5bC0uNTgtLjU4Yy0uMjQtLjI0LS42Mi0uMjQtLjg2LDAtLjI0LC4yNC0uMjQsLjYyLDAsLjg2bDEuNjEsMS42MWMuMjQsLjI0LC42MiwuMjQsLjg2LDBsMS42MS0xLjYxYy4yNC0uMjQsLjI0LS42MiwwLS44Ni0uMjQtLjI0LS42Mi0uMjQtLjg2LDBsLS41OCwuNTh2LTQuNTljMC0uMzMtLjI3LS42MS0uNjEtLjYxcy0uNjEsLjI3LS42MSwuNjFaIi8+PC9zdmc+",label:"Position 2"}),(0,L.jsx)(I,{lockObject:n,label:"X",target:o,propertyName:"x2"}),(0,L.jsx)(I,{lockObject:n,label:"Y",target:o,propertyName:"y2"})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:ds,label:"Line Width"}),(0,L.jsx)(N,{lockObject:n,label:"",target:o,propertyName:"lineWidth",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),min:0,arrows:!0})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMCAzMCI+PGRlZnM+PHN0eWxlPi5ie2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PGc+PHBhdGggY2xhc3M9ImIiIGQ9Ik0xNi40Nyw4Ljk1aC0yLjk4Yy0uMzMsMC0uNi0uMjctLjYtLjZzLjI3LS42LC42LS42aDIuOThjLjMzLDAsLjYsLjI3LC42LC42cy0uMjcsLjYtLjYsLjZ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xYy41OCwwLDEuMDUtLjQ3LDEuMDUtMS4wNXYtMWMwLS4zMywuMjctLjYsLjYtLjZzLjYsLjI3LC42LC42djFjMCwxLjI0LTEuMDEsMi4yNS0yLjI1LDIuMjVaIi8+PC9nPjxwYXRoIGNsYXNzPSJiIiBkPSJNMjEuNjUsMTcuMDdjLS4zMywwLS42LS4yNy0uNi0uNnYtMi45OGMwLS4zMywuMjctLjYsLjYtLjZzLjYsLjI3LC42LC42djIuOThjMCwuMzMtLjI3LC42LS42LC42WiIvPjwvc3ZnPg==",label:"Dash Pattern"}),(0,L.jsx)(I,{lockObject:n,label:"",target:o,value:i,onChange:e=>this.onDashChange(e)})]}),(0,L.jsx)("hr",{}),(0,L.jsx)(ls,{hideDimensions:!0,lockObject:n,controls:e,onPropertyChangedObservable:t,onFontsParsedObservable:this.props.onFontsParsedObservable,globalState:this.props.globalState})]})}}const Ms="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMjUsMTIuNzZBMi4yMSwyLjIxLDAsMCwxLDI3LjI0LDE1VjI1QTIuMjEsMi4yMSwwLDAsMSwyNSwyNy4yNEgxNUEyLjIxLDIuMjEsMCwwLDEsMTIuNzYsMjVWMTVBMi4yMSwyLjIxLDAsMCwxLDE1LDEyLjc2Wk0yNSwxNEgxNWExLDEsMCwwLDAtMSwxVjI1YTEsMSwwLDAsMCwxLDFIMjVhMSwxLDAsMCwwLDEtMVYxNUExLDEsMCwwLDAsMjUsMTRabS02LjY0LDgsNS4yMS01LjJhLjU5LjU5LDAsMCwxLC44NSwwLC42MS42MSwwLDAsMSwuMDYuNzhsLS4wNi4wNy01LjYzLDUuNjNhLjYuNiwwLDAsMS0uNzkuMDZMMTgsMjMuMjRsLTIuNDEtMi40MWEuNjEuNjEsMCwwLDEsMC0uODUuNi42LDAsMCwxLC43OS0uMDZsLjA2LjA2LDIsMiw1LjIxLTUuMloiIHN0eWxlPSJmaWxsOiMzMzMiLz48L3N2Zz4=";class Ls extends t.Component{constructor(e){super(e)}render(){const e=this.props.radioButtons;return(0,L.jsxs)("div",{className:"pane",children:[(0,L.jsx)(ls,{lockObject:this.props.lockObject,controls:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable,onFontsParsedObservable:this.props.onFontsParsedObservable,globalState:this.props.globalState}),(0,L.jsx)("hr",{}),(0,L.jsx)(h,{label:"RADIO BUTTON",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:ds,label:"Stroke Weight"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"",target:y(e,this.props.onPropertyChangedObservable),propertyName:"thickness",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),arrows:!0,min:0,digits:2})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:Jo,label:"Check Size Ratio"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"",target:y(e,this.props.onPropertyChangedObservable),propertyName:"checkSizeRatio",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),arrows:!0,min:0,digits:2})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:ds,label:"Name of Group"}),(0,L.jsx)(I,{lockObject:this.props.lockObject,label:"",target:y(e,this.props.onPropertyChangedObservable),propertyName:"group"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:Ms,label:"Is Checked"}),(0,L.jsx)(qn,{label:"CHECKED",target:y(e,this.props.onPropertyChangedObservable),propertyName:"isChecked"})]})]})}}const Cs=Number.MAX_SAFE_INTEGER;class hs extends t.Component{_remapValueIn(e){return this.props.allowNullValue&&null===e?Cs:e}_remapValueOut(e){return this.props.allowNullValue&&e===Cs?null:e}_getValue(e){return e.extractValue?e.extractValue(e.target):e.target&&e.propertyName?e.target[e.propertyName]:e.options[e.defaultIfNull||0]}constructor(e){super(e),this._localChange=!1,this.state={value:this._remapValueIn(this._getValue(e))}}shouldComponentUpdate(e,t){if(this._localChange)return this._localChange=!1,!0;const n=this._remapValueIn(e.extractValue?e.extractValue(this.props.target):e.target[e.propertyName]);return null!=n&&n!==t.value&&(t.value=n,!0)}raiseOnPropertyChanged(e,t){this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:e,initialValue:t,allowNullValue:this.props.allowNullValue})}setValue(e){this.setState({value:e})}updateValue(e){const t=this.props.valuesAreStrings?e:parseInt(e);this._localChange=!0;const n=this.props.extractValue?this.props.extractValue(this.props.target):this.props.target[this.props.propertyName];this.props.noDirectUpdate||(this.props.target[this.props.propertyName]=this._remapValueOut(t)),this.setState({value:t}),this.props.onSelect&&this.props.onSelect(t);const o=this.props.extractValue?this.props.extractValue(this.props.target):this.props.target[this.props.propertyName];this.raiseOnPropertyChanged(o,n)}onCopyClick(){if(this.props&&this.props.target){const{className:e,babylonNamespace:t}=m(this.props.target);j("globalThis.debugNode."+this.props.propertyName+" = "+this.props.target[this.props.propertyName]+";// (debugNode as "+t+e+")")}else j("undefined")}render(){return(0,L.jsxs)("div",{className:"listLine"+(this.props.className?" "+this.props.className:""),children:[this.props.icon&&(0,L.jsx)("img",{src:this.props.icon,title:this.props.iconLabel,alt:this.props.iconLabel,color:"black",className:"icon"}),(0,L.jsx)("div",{className:"label",title:this.props.label,children:this.props.label}),(0,L.jsx)("div",{className:"options",children:(0,L.jsx)("select",{onChange:e=>this.updateValue(e.target.value),value:this.state.value??"",children:this.props.options.map(((e,t)=>(0,L.jsx)("option",{selected:e.selected,value:e.value,title:e.label,children:e.label},e.label+t)))})}),(0,L.jsx)("div",{className:"copy hoverIcon",onClick:()=>this.onCopyClick(),title:"Copy to clipboard",children:(0,L.jsx)("img",{src:x,alt:"Copy"})})]})}}class gs extends t.Component{constructor(e){super(e)}render(){const{onPropertyChangedObservable:e}=this.props,t=this.props.textBlocks,n=y(t,e);return(0,L.jsxs)("div",{className:"pane",children:[(0,L.jsx)(ls,{lockObject:this.props.lockObject,controls:t,onPropertyChangedObservable:this.props.onPropertyChangedObservable,onFontsParsedObservable:this.props.onFontsParsedObservable,globalState:this.props.globalState}),(0,L.jsx)("hr",{}),(0,L.jsx)(h,{label:"TEXTBLOCK",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:Fo,label:"Text"}),(0,L.jsx)(I,{lockObject:this.props.lockObject,label:" ",target:n,propertyName:"text"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMTAuMzUsOC45M2ExLjQzLDEuNDMsMCwwLDAtMS40MiwxLjQydjEuMjFhLjYxLjYxLDAsMSwxLTEuMjEsMFYxMC4zNWEyLjYzLDIuNjMsMCwwLDEsMi42My0yLjYzaDEuMjFhLjYxLjYxLDAsMSwxLDAsMS4yMVoiIHN0eWxlPSJmaWxsOiMzMzMiLz48cGF0aCBkPSJNMjEuMDcsMTAuMzVhMS40MywxLjQzLDAsMCwwLTEuNDItMS40MkgxOC40NGEuNjEuNjEsMCwxLDEsMC0xLjIxaDEuMjFhMi42MywyLjYzLDAsMCwxLDIuNjMsMi42M3YxLjIxYS42MS42MSwwLDEsMS0xLjIxLDBaIiBzdHlsZT0iZmlsbDojMzMzIi8+PHBhdGggZD0iTTIxLjA3LDE5LjY1YTEuNDMsMS40MywwLDAsMS0xLjQyLDEuNDJIMTguNDRhLjYxLjYxLDAsMSwwLDAsMS4yMWgxLjIxYTIuNjMsMi42MywwLDAsMCwyLjYzLTIuNjNWMTguNDRhLjYxLjYxLDAsMSwwLTEuMjEsMFoiIHN0eWxlPSJmaWxsOiMzMzMiLz48cGF0aCBkPSJNOC45MywxOS42NWExLjQzLDEuNDMsMCwwLDAsMS40MiwxLjQyaDEuMjFhLjYxLjYxLDAsMSwxLDAsMS4yMUgxMC4zNWEyLjYzLDIuNjMsMCwwLDEtMi42My0yLjYzVjE4LjQ0YS42MS42MSwwLDEsMSwxLjIxLDBaIiBzdHlsZT0iZmlsbDojMzMzIi8+PHBhdGggZD0iTTEyLDEwLjE1QTEuODEsMS44MSwwLDAsMCwxMC4xNSwxMlYxOEExLjgxLDEuODEsMCwwLDAsMTIsMTkuODVIMThBMS44MSwxLjgxLDAsMCwwLDE5Ljg1LDE4VjEyQTEuODEsMS44MSwwLDAsMCwxOCwxMC4xNVpNMTEuMzYsMTJhLjYxLjYxLDAsMCwxLC42MS0uNjFIMThhLjYxLjYxLDAsMCwxLC42MS42MVYxOGEuNjEuNjEsMCwwLDEtLjYxLjYxSDEyYS42MS42MSwwLDAsMS0uNjEtLjYxWiIgc3R5bGU9ImZpbGw6IzMzMyIvPjwvc3ZnPg==",label:"Automatically resize the text block to fit the size of the text"}),(0,L.jsx)(qn,{label:"RESIZE TO FIT",target:n,propertyName:"resizeToFit"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNNy4xMyw4LjM0YS42MS42MSwwLDEsMCwwLDEuMjFIMjIuMDZhLjYxLjYxLDAsMSwwLDAtMS4yMVoiIHN0eWxlPSJmaWxsOiMzMzMiLz48cGF0aCBkPSJNNy4xMywxMy41OWEuNjEuNjEsMCwxLDAsMCwxLjIxSDIwLjI1YTIsMiwwLDAsMSwwLDRIMTYuNjZsLjU4LS41OWEuNi42LDAsMCwwLS44NS0uODVMMTQuNzcsMTlhLjYyLjYyLDAsMCwwLDAsLjg2bDEuNjIsMS42MWEuNi42LDAsMCwwLC44NS0uODVsLS41OC0uNThoMy41OWEzLjIzLDMuMjMsMCwwLDAsMC02LjQ2WiIgc3R5bGU9ImZpbGw6IzMzMyIvPjxwYXRoIGQ9Ik02LjUyLDE5LjQ0YS42LjYsMCwwLDEsLjYxLS42aDUuMjVhLjYxLjYxLDAsMCwxLDAsMS4yMUg3LjEzQS42MS42MSwwLDAsMSw2LjUyLDE5LjQ0WiIgc3R5bGU9ImZpbGw6IzMzMyIvPjwvc3ZnPg==",label:"Text Wrapping"}),(0,L.jsx)(hs,{label:" ",options:[{label:"Clip",value:0},{label:"Ellipsis",value:2},{label:"Word wrap",value:1}],target:n,propertyName:"textWrapping"})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMjEuMjEsNy44OCwyMi44Myw5LjVhLjYxLjYxLDAsMCwxLS44Ni44NmwtLjU4LS41OHYzLjhhLjYxLjYxLDAsMCwxLS42MS42MS42MS42MSwwLDAsMS0uNjEtLjYxVjkuNzhsLS41OC41OGEuNjEuNjEsMCwwLDEtLjg2LS44NmwxLjYyLTEuNjJhLjYuNiwwLDAsMSwuNDMtLjE4aDBhLjU5LjU5LDAsMCwxLC4yMywwQS42My42MywwLDAsMSwyMS4yMSw3Ljg4WiIgc3R5bGU9ImZpbGw6IzMzMyIvPjxwYXRoIGQ9Ik03LDkuOTNhLjYxLjYxLDAsMCwxLC42MS0uNjFoNi44OWEuNjEuNjEsMCwwLDEsLjYxLjYxLjYxLjYxLDAsMCwxLS42MS42MUg3LjZBLjYxLjYxLDAsMCwxLDcsOS45M1oiIHN0eWxlPSJmaWxsOiMzMzMiLz48cGF0aCBkPSJNNywxNS4yYS42MS42MSwwLDAsMSwuNjEtLjYxaDkuMzNhLjYxLjYxLDAsMCwxLC42LjYxLjYuNiwwLDAsMS0uNi42MUg3LjZBLjYxLjYxLDAsMCwxLDcsMTUuMloiIHN0eWxlPSJmaWxsOiMzMzMiLz48cGF0aCBkPSJNNy42LDE5Ljg3YS42MS42MSwwLDEsMCwwLDEuMjFoNi44OWEuNjEuNjEsMCwxLDAsMC0xLjIxWiIgc3R5bGU9ImZpbGw6IzMzMyIvPjxwYXRoIGQ9Ik0yMC4xNywyMC4yMnYtMy44YS42MS42MSwwLDAsMSwuNjEtLjYxLjYxLjYxLDAsMCwxLC42MS42MXYzLjhsLjU4LS41OGEuNjEuNjEsMCwwLDEsLjg2Ljg2bC0xLjYyLDEuNjJhLjYzLjYzLDAsMCwxLS4yLjEzLjY1LjY1LDAsMCwxLS4yLjA1aDBhLjU5LjU5LDAsMCwxLS4yMy0uMDUuNTMuNTMsMCwwLDEtLjItLjEzTDE4LjczLDIwLjVhLjYxLjYxLDAsMCwxLC44Ni0uODZaIiBzdHlsZT0iZmlsbDojMzMzIi8+PC9zdmc+",label:"Line Spacing"}),(0,L.jsx)(I,{lockObject:this.props.lockObject,label:" ",target:n,propertyName:"lineSpacing"})]}),(0,L.jsx)("hr",{}),(0,L.jsx)(h,{label:"OUTLINE",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:ds,label:"Outline Width"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:" ",target:n,propertyName:"outlineWidth",arrows:!0,min:0,unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),step:"0.01"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:qo,label:"Outline Color"}),(0,L.jsx)(yo,{lockObject:this.props.lockObject,label:" ",target:n,propertyName:"outlineColor"})]})]})}}const ws="data:image/svg+xml;base64,PD94bWwgdmVyc2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(){const{inputTexts:e,onPropertyChangedObservable:t,lockObject:n}=this.props,o=y(e,t);return(0,L.jsxs)("div",{className:"pane",children:[(0,L.jsx)(ls,{lockObject:n,controls:e,onPropertyChangedObservable:t,onFontsParsedObservable:this.props.onFontsParsedObservable,globalState:this.props.globalState}),(0,L.jsx)("hr",{}),(0,L.jsx)(h,{label:"INPUT TEXT",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmJ7ZmlsbDojMzMzO308L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iYiIgZD0iTTE2LjU1LDExLjk2Yy0uMiwwLS4zOSwuMDgtLjUzLC4yMi0uMTQsLjE0LS4yMiwuMzMtLjIyLC41M3MuMDgsLjM5LC4yMiwuNTNjLjE0LC4xNCwuMzMsLjIyLC41MywuMjJoMS41NXY0Ljk5YzAsMS42OCwxLjM3LDMuMDQsMy4wNCwzLjA0aDEuMTVjLjQxLDAsLjc1LS4zMywuNzUtLjc1cy0uMzMtLjc1LS43NS0uNzVoLTEuMTVjLS44NSwwLTEuNTUtLjctMS41NS0xLjU1di00Ljk5aDIuN2MuMiwwLC4zOS0uMDgsLjUzLS4yMiwuMTQtLjE0LC4yMi0uMzMsLjIyLS41M3MtLjA4LS4zOS0uMjItLjUzYy0uMTQtLjE0LS4zMy0uMjItLjUzLS4yMmgtMi43di0yLjdjMC0uNDEtLjMzLS43NS0uNzUtLjc1cy0uNzUsLjMzLS43NSwuNzV2Mi43aC0xLjU1Wm0tOC44My0zLjQ0Yy0uNDEsMC0uNzUsLjMzLS43NSwuNzVzLjMzLC43NSwuNzUsLjc1aDIuN3YxMC43M2MwLC40MSwuMzMsLjc1LC43NSwuNzVzLjc1LS4zMywuNzUtLjc1VjEwLjAxaDIuN2MuNDEsMCwuNzUtLjMzLC43NS0uNzVzLS4zMy0uNzUtLjc1LS43NUg3LjcxWiIvPjwvc3ZnPg==",label:"Text"}),(0,L.jsx)(I,{lockObject:n,label:"",target:o,propertyName:"text"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmJ7ZmlsbDojMzMzO308L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iYiIgZD0iTTE1LjY1LDEzLjQ1Yy4yLDAsLjM5LS4wOCwuNTMtLjIyLC4xNC0uMTQsLjIyLS4zMywuMjItLjUzcy0uMDgtLjM5LS4yMi0uNTNjLS4xNC0uMTQtLjMzLS4yMi0uNTMtLjIyaC0yLjd2LTIuN2MwLS40MS0uMzMtLjc1LS43NS0uNzVzLS43NSwuMzMtLjc1LC43NXYyLjdoLTEuNTVjLS4yLDAtLjM5LC4wOC0uNTMsLjIyLS4xNCwuMTQtLjIyLC4zMy0uMjIsLjUzcy4wOCwuMzksLjIyLC41M2MuMTQsLjE0LC4zMywuMjIsLjUzLC4yMmgxLjU1djQuOTljMCwxLjY4LDEuMzcsMy4wNCwzLjA0LDMuMDRoMS4xNWMuNDEsMCwuNzUtLjMzLC43NS0uNzVzLS4zMy0uNzUtLjc1LS43NWgtMS4xNWMtLjg1LDAtMS41NS0uNy0xLjU1LTEuNTV2LTQuOTloMi43WiIvPjxwYXRoIGNsYXNzPSJiIiBkPSJNMjAuMjEsNC44MmMtLjM0LDAtLjYyLC4yOC0uNjIsLjYyVjI0LjU1YzAsLjM0LC4yOCwuNjIsLjYyLC42MnMuNjItLjI4LC42Mi0uNjJWNS40NWMwLS4zNC0uMjgtLjYyLS42Mi0uNjJaIi8+PC9zdmc+",label:"Prompt Text"}),(0,L.jsx)(I,{lockObject:n,label:"",target:o,propertyName:"promptMessage"})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:cs,label:"Max Width"}),(0,L.jsx)(I,{lockObject:n,label:"",target:o,propertyName:"maxWidth"})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmJ7ZmlsbDojMzMzO308L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iYiIgZD0iTTIwLjM4LDguNjJjLjQyLDAsLjgxLC4wOCwxLjE5LC4yNXMuNzEsLjM5LDEsLjY4LC41MiwuNjIsLjY4LDFjLjE3LC4zOCwuMjUsLjc4LC4yNiwxLjJ2Ni41MWMwLC40Mi0uMDgsLjgxLS4yNSwxLjE5cy0uMzksLjcxLS42OCwxLS42MiwuNTItMSwuNjgtLjc4LC4yNS0xLjIsLjI2SDkuMTVjLS4zNSwwLS42OS0uMDctMS4wMS0uMnMtLjYtLjMyLS44NS0uNTYtLjQ0LS41Mi0uNTgtLjgzYy0uMTQtLjMyLS4yMi0uNjUtLjIyLTEuMDF2LTcuNTZjMC0uMzUsLjA3LS42OCwuMjEtMSwuMTQtLjMyLC4zMy0uNTksLjU2LS44MnMuNTItLjQyLC44My0uNTYsLjY1LS4yMiwxLS4yMmgxMS4yOVptLS4wNywyLjEzdi0xLjA2SDkuNjh2MS4wNmgxMC42M1ptLTExLjctLjk3Yy0uMjMsLjA4LS40MiwuMi0uNTksLjM3cy0uMjksLjM3LS4zOCwuNmguOTd2LS45N1ptMTMuNTQsLjk3Yy0uMTktLjMzLS40NS0uNTktLjc4LS43OHYuNzhoLjc4Wm0tMTMuNTQsMS4wNmgtMS4wNnY2LjM4aDEuMDZ2LTYuMzhabTExLjcsMEg5LjY4djYuMzhoMTAuNjN2LTYuMzhabTIuMTMsMGgtMS4wNnY2LjM4aDEuMDZ2LTYuMzhabS0xNC44LDcuNDRjLjA4LC4yMywuMjEsLjQzLC4zNywuNnMuMzcsLjMsLjYsLjM3di0uOTdoLS45N1ptMi4wNCwwdjEuMDZoMTAuNjN2LTEuMDZIOS42OFptMTEuNywuNzhjLjMzLS4xOSwuNTktLjQ1LC43OC0uNzhoLS43OHYuNzhaIi8+PC9zdmc+",label:"Margins"}),(0,L.jsx)(I,{lockObject:n,label:"",target:o,propertyName:"margin"})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:ds,label:"Border Thickness"}),(0,L.jsx)(N,{lockObject:n,label:"",target:o,propertyName:"thickness",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),arrows:!0,min:0,digits:2})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:ws,label:"Automatically Stretch Width"}),(0,L.jsx)(qn,{label:"AUTO STRETCH",target:o,propertyName:"autoStretchWidth"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmJ7ZmlsbDojMzMzO308L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iYiIgZD0iTTIxLjk1LDkuNzhjLjcyLC4yNSwxLjIzLC45MywxLjIzLDEuNzR2OC4xOGMwLDEuOTItMS41NiwzLjQ4LTMuNDgsMy40OEgxMS41MmMtLjgsMC0xLjQ5LS41MS0xLjc0LTEuMjNoOS45MmMxLjI0LDAsMi4yNS0xLDIuMjUtMi4yNVY5Ljc4Wm0tMi42Ni0yLjk3YzEuMDIsMCwxLjg0LC44MiwxLjg0LDEuODR2MTAuNjRjMCwxLjAyLS44MiwxLjg0LTEuODQsMS44NEg4LjY2Yy0xLjAyLDAtMS44NC0uODItMS44NC0xLjg0VjguNjZjMC0xLjAyLC44Mi0xLjg0LDEuODQtMS44NGgxMC42NFptMCwxLjIzSDguNjZjLS4zNCwwLS42MSwuMjctLjYxLC42MXYxMC42NGMwLC4zNCwuMjcsLjYxLC42MSwuNjFoMTAuNjRjLjM0LDAsLjYxLS4yNywuNjEtLjYxVjguNjZjMC0uMzQtLjI3LS42MS0uNjEtLjYxWm0tNi4yNyw2LjQzbDMuMTgtMy4xOGMuMjQtLjI0LC42My0uMjQsLjg3LDAsLjIyLC4yMiwuMjQsLjU2LC4wNiwuOGwtLjA2LC4wNy0zLjY4LDMuNjhjLS4yNCwuMjQtLjYzLC4yNC0uODYsMGwtLjA2LS4wNy0xLjIzLTEuNjRjLS4yLS4yNy0uMTUtLjY2LC4xMi0uODYsLjI1LS4xOCwuNTktLjE2LC44LC4wNWwuMDYsLjA3LC44LDEuMDcsMy4xOC0zLjE4LTMuMTgsMy4xOFoiLz48L3N2Zz4=",label:"When Input is Focus, Select All"}),(0,L.jsx)(qn,{label:"ON FOCUS, SELECT ALL",target:o,propertyName:"onFocusSelectAll"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmJ7ZmlsbDojMzMzO308L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iYiIgZD0iTTIxLjc3LDYuOGMuMzEsMCwuNTcsLjIzLC42MSwuNTN2My43N2MwLC45NS0uNzIsMS43My0xLjY0LDEuODN2MS44NWMwLC45OC0uNzYsMS43OC0xLjcyLDEuODRoLS4zM3YyLjI5YzAsLjY3LS4zNiwxLjI4LS45NCwxLjZsLS4xMywuMDctNS40NCwyLjU1Yy0uMzgsLjE4LS44Mi0uMDctLjg3LS40N3YtNi4wM2gtLjIxYy0uOTgsMC0xLjc3LS43Ni0xLjg0LTEuNzJ2LTEuOThjLS44OC0uMS0xLjU3LS44MS0xLjY0LTEuN3YtMy44MmMwLS4zNCwuMjctLjYxLC42MS0uNjEsLjMxLDAsLjU3LC4yMywuNjEsLjUzdjMuNzdjMCwuMzEsLjI0LC41NywuNTQsLjYxaDExLjE1Yy4zMSwwLC41Ny0uMjMsLjYxLS41M3YtMy43N2MwLS4zNCwuMjgtLjYxLC42Mi0uNjFabS00LjMxLDkuODNoLTQuOTJ2NC45OGw0LjU2LTIuMTRjLjE5LS4wOSwuMzItLjI3LC4zNS0uNDd2LTIuMzhabTIuMDYtMy42OEgxMC40OXYxLjg0YzAsLjMxLC4yMywuNTcsLjUzLC42MWg3Ljg3Yy4zMSwwLC41Ny0uMjMsLjYxLS41M3YtMS45MloiLz48L3N2Zz4=",label:"Highlight Color"}),(0,L.jsx)(yo,{lockObject:n,label:"",target:o,propertyName:"textHighlightColor"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:Vo,label:"Highlight Opacity"}),(0,L.jsx)(S,{lockObject:n,label:"",minimum:0,maximum:1,step:.01,target:o,propertyName:"highligherOpacity"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:qo,label:"Background Color when Focused"}),(0,L.jsx)(yo,{lockObject:n,label:"",target:o,propertyName:"focusedBackground"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmJ7ZmlsbDojMzMzO308L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iYiIgZD0iTTEyLjI3LDcuNDJINS4zOGMtLjQxLDAtLjc1LC4zMy0uNzUsLjc1cy4zMywuNzUsLjc1LC43NWgyLjd2MTAuNzNjMCwuNDEsLjMzLC43NSwuNzUsLjc1cy43NS0uMzMsLjc1LS43NVY4LjkxaDIuN2MuNDEsMCwuNzUtLjMzLC43NS0uNzVzLS4zMy0uNzUtLjc1LS43NVoiLz48cGF0aCBjbGFzcz0iYiIgZD0iTTE3LjI1LDEyLjM1aDIuN2MuMiwwLC4zOS0uMDgsLjUzLS4yMiwuMTQtLjE0LC4yMi0uMzMsLjIyLS41M3MtLjA4LS4zOS0uMjItLjUzYy0uMTQtLjE0LS4zMy0uMjItLjUzLS4yMmgtMi43di0yLjdjMC0uNDEtLjMzLS43NS0uNzUtLjc1cy0uNzUsLjMzLS43NSwuNzV2Mi43aC0xLjU1Yy0uMiwwLS4zOSwuMDgtLjUzLC4yMi0uMTQsLjE0LS4yMiwuMzMtLjIyLC41M3MuMDgsLjM5LC4yMiwuNTNjLjE0LC4xNCwuMzMsLjIyLC41MywuMjJoMS41NXY0Ljk5YzAsLjUsLjE0LC45NywuMzUsMS4zOSwuMjMtLjc1LC42Mi0xLjQzLDEuMTQtMnYtNC4zOVoiLz48cGF0aCBjbGFzcz0iYiIgZD0iTTIyLjIxLDIwLjEzaC0xLjA3di0xLjQ5YzAtLjM0LS4yOC0uNjItLjYyLS42MnMtLjYyLC4yOC0uNjIsLjYydjIuMTJjMCwuMzQsLjI4LC42MiwuNjIsLjYyaDEuNjljLjM0LDAsLjYyLS4yOCwuNjItLjYycy0uMjgtLjYyLS42Mi0uNjJaIi8+PHBhdGggY2xhc3M9ImIiIGQ9Ik0yMS4wNCwxNS45M2MtMi4zOSwwLTQuMzMsMS45NC00LjMzLDQuMzNzMS45NCw0LjMzLDQuMzMsNC4zMyw0LjMzLTEuOTQsNC4zMy00LjMzLTEuOTQtNC4zMy00LjMzLTQuMzNabTAsNy40Yy0xLjcsMC0zLjA4LTEuMzgtMy4wOC0zLjA4czEuMzgtMy4wOCwzLjA4LTMuMDgsMy4wOCwxLjM4LDMuMDgsMy4wOC0xLjM4LDMuMDgtMy4wOCwzLjA4WiIvPjwvc3ZnPg==",label:"Placeholder Text"}),(0,L.jsx)(I,{lockObject:n,label:"",target:o,propertyName:"placeholderText"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:Xo,label:"Placeholder Color"}),(0,L.jsx)(yo,{lockObject:n,label:"",target:o,propertyName:"placeholderColor"})]})]})}}class ms extends t.Component{constructor(e){super(e)}render(){const e=this.props.colorPickers;return(0,L.jsxs)("div",{className:"pane",children:[(0,L.jsx)(ls,{lockObject:this.props.lockObject,controls:e,onFontsParsedObservable:this.props.onFontsParsedObservable,globalState:this.props.globalState}),(0,L.jsx)("hr",{}),(0,L.jsx)(h,{label:"COLOR PICKER",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:qo,label:"Color Picker Value"}),(0,L.jsx)(yo,{label:"",target:y(e,this.props.onPropertyChangedObservable),propertyName:"value",disableAlpha:!0,lockObject:this.props.lockObject})]})]})}}const bs="data:image/svg+xml;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CBjbGFzcz0iY2xzLTEiIGQ9Ik0yMS43MiwxNS44MWEuNjEuNjEsMCwwLDAtLjYxLjYydjMuMjVhMS40MywxLjQzLDAsMCwxLTEuNDMsMS40M0gxNVYxNy4yNEEyLjI0LDIuMjQsMCwwLDAsMTIuNzYsMTVIOC44OVYxMC4zMmExLjQzLDEuNDMsMCwwLDEsMS40My0xLjQzaDMuMjVhLjYxLjYxLDAsMCwwLC42Mi0uNjEuNjIuNjIsMCwwLDAtLjYyLS42MUgxMC4zMmEyLjY1LDIuNjUsMCwwLDAtMi42NSwyLjY1djkuMzZhMi42NSwyLjY1LDAsMCwwLDIuNjUsMi42NWg5LjM2YTIuNjUsMi42NSwwLDAsMCwyLjY1LTIuNjVWMTYuNDNBLjYyLjYyLDAsMCwwLDIxLjcyLDE1LjgxWm0tNy45NCw1LjNIMTAuMzJhMS40MywxLjQzLDAsMCwxLTEuNDMtMS40M1YxNi4yMmgzLjg3YTEsMSwwLDAsMSwxLDFaIi8+PC9zdmc+";class fs extends t.Component{constructor(e){super(e),this._observers=new Map,this.updateObservers([],e.images)}shouldComponentUpdate(e){return this.updateObservers(this.props.images,e.images),!0}updateObservers(e,t){for(const n of t)e.includes(n)||this._observers.set(n,n.onImageLoadedObservable.add((()=>this.forceUpdate())));for(const n of e)t.includes(n)||(n.onImageLoadedObservable.remove(this._observers.get(n)),this._observers.delete(n))}componentWillUnmount(){this.updateObservers(this.props.images,[])}toggleAnimations(e){for(const t of this.props.images)e?(t.cellId=0,t.cellWidth=t.imageWidth,t.cellHeight=t.imageHeight):t.cellId=-1}getMaxCells(){let e=Number.MAX_SAFE_INTEGER;for(const t of this.props.images){if(0===t.cellWidth||0===t.cellHeight)continue;const n=Math.ceil(t.imageWidth/t.cellWidth)*Math.ceil(t.imageHeight/t.cellHeight)-1;n<e&&(e=n)}return e}updateCellSize(){const e=this.getMaxCells();for(const t of this.props.images)t.cellId>e&&(t.cellId=e);this.forceUpdate()}render(){const e=this.props.images,t=e[0],n=y(e,this.props.onPropertyChangedObservable),o=[{label:"None",value:a.Image.STRETCH_NONE},{label:"Fill",value:a.Image.STRETCH_FILL},{label:"Uniform",value:a.Image.STRETCH_UNIFORM},{label:"Extend",value:a.Image.STRETCH_EXTEND},{label:"NinePatch",value:a.Image.STRETCH_NINE_PATCH}],s=e.every((e=>-1!==e.cellId)),i=this.getMaxCells(),r=Math.max(...e.map((e=>e.imageWidth))),l=Math.max(...e.map((e=>e.imageHeight)));return(0,L.jsxs)("div",{className:"pane",children:[(0,L.jsx)(ls,{lockObject:this.props.lockObject,controls:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable,onFontsParsedObservable:this.props.onFontsParsedObservable,globalState:this.props.globalState}),(0,L.jsx)("hr",{}),(0,L.jsx)(h,{label:"IMAGE",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTIuNzgsMTFhLjYuNiwwLDAsMSwuMDksMS4ySDExYTIuODIsMi44MiwwLDAsMC0uMTcsNS42NGgyYS42MS42MSwwLDAsMSwuNjEuNjEuNjIuNjIsMCwwLDEtLjUyLjZIMTFhNCw0LDAsMCwxLS4yLTguMDZoMlpNMTksMTFhNCw0LDAsMCwxLC4yLDguMDZoLTJhLjYuNiwwLDAsMS0uMDktMS4ySDE5YTIuODIsMi44MiwwLDAsMCwuMTctNS42NGgtMmEuNjEuNjEsMCwwLDEtLjYxLS42MS42Mi42MiwwLDAsMSwuNTItLjZIMTlaTTExLDE0LjRIMTlhLjYuNiwwLDAsMSwuMDgsMS4ySDExYS42LjYsMCwwLDEtLjA4LTEuMloiLz48L3N2Zz4=",label:"Source"}),(0,L.jsx)(I,{lockObject:this.props.lockObject,label:" ",target:n,propertyName:"source"})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:bs,label:"Crop"}),(0,L.jsx)(I,{lockObject:this.props.lockObject,label:"L",target:n,propertyName:"sourceLeft",numeric:!0,arrows:!0,min:0,placeholder:"0",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0})}),(0,L.jsx)(I,{lockObject:this.props.lockObject,label:"T",target:n,propertyName:"sourceTop",numeric:!0,arrows:!0,min:0,placeholder:"0",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0})})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:bs,label:"Crop"}),(0,L.jsx)(I,{lockObject:this.props.lockObject,label:"W",target:n,propertyName:"sourceWidth",numeric:!0,arrows:!0,min:0,placeholder:Math.max(...e.map((e=>e.imageWidth))).toString(),unit:(0,L.jsx)(ts,{unit:"PX",locked:!0})}),(0,L.jsx)(I,{lockObject:this.props.lockObject,label:"H",target:n,propertyName:"sourceHeight",numeric:!0,arrows:!0,min:0,placeholder:Math.max(...e.map((e=>e.imageHeight))).toString(),unit:(0,L.jsx)(ts,{unit:"PX",locked:!0})})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:ys,label:"Autoscale"}),(0,L.jsx)(qn,{label:"AUTOSCALE",target:n,propertyName:"autoScale",onPropertyChangedObservable:this.props.onPropertyChangedObservable})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTEuNzcsMTIuOTNhLjYxLjYxLDAsMCwxLC4wNi44NmwtLjU0LjYxSDEzLjZhLjYuNiwwLDAsMSwwLDEuMkgxMS4yOWwuNTQuNjFhLjYxLjYxLDAsMCwxLS45Mi44TDkuNSwxNS40YS42MS42MSwwLDAsMSwwLS44TDEwLjkxLDEzQS42MS42MSwwLDAsMSwxMS43NywxMi45M1ptNi40Mi44NmEuNjEuNjEsMCwxLDEsLjkxLS44bDEuNDEsMS42MWEuNjEuNjEsMCwwLDEsMCwuOEwxOS4xLDE3YS42MS42MSwwLDEsMS0uOTEtLjhsLjUzLS42MUgxNi40MWEuNi42LDAsMCwxLDAtMS4yaDIuMzFaTTYuOTMsMTAuMzZBMS44MiwxLjgyLDAsMCwxLDguNzUsOC41NWgxMi41YTEuODEsMS44MSwwLDAsMSwxLjgxLDEuODF2OS4yOGExLjgxLDEuODEsMCwwLDEtMS44MSwxLjgxSDguNzVhMS44MiwxLjgyLDAsMCwxLTEuODItMS44MVptMS44Mi0uNmEuNi42LDAsMCwwLS42MS42djkuMjhhLjYuNiwwLDAsMCwuNjEuNmgxMi41YS42LjYsMCwwLDAsLjYtLjZWMTAuMzZhLjYuNiwwLDAsMC0uNi0uNloiLz48L3N2Zz4=",label:"Stretch"}),(0,L.jsx)(hs,{label:" ",options:o,target:n,propertyName:"stretch",onSelect:e=>this.setState({mode:e})})]}),1===e.length&&t.stretch===a.Image.STRETCH_NINE_PATCH&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:bs,label:"Slice Horizontal"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"L",target:t,propertyName:"sliceLeft",onChange:()=>{t.populateNinePatchSlicesFromImage=!1,this.forceUpdate()}}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"R",target:t,propertyName:"sliceRight",onChange:()=>{t.populateNinePatchSlicesFromImage=!1,this.forceUpdate()}})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:bs,label:"Slice Vertical"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"T",target:t,propertyName:"sliceTop",onChange:()=>{t.populateNinePatchSlicesFromImage=!1,this.forceUpdate()}}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"B",target:t,propertyName:"sliceBottom",onChange:()=>{t.populateNinePatchSlicesFromImage=!1,this.forceUpdate()}})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:ys,label:"Populate Nine Patch Slices From Image"}),(0,L.jsx)(qn,{label:"SLICE FROM IMAGE",target:t,propertyName:"populateNinePatchSlicesFromImage",onValueChanged:()=>{this.forceUpdate(),t._markAsDirty()}})]})]}),(0,L.jsx)("hr",{}),(0,L.jsx)(qn,{iconLabel:"animationSheet",icon:"data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjMwIiBoZWlnaHQ9IjMwIiB2aWV3Qm94PSIwIDAgMzAgMzAiPjxkZWZzPjxzdHlsZT4uY2xzLTF7ZmlsbDojMzMzO308L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik04LjU2LDguNTZoOC44NUExLjYxLDEuNjEsMCwwLDEsMTksMTAuMTdWMTUuOGExLjYxLDEuNjEsMCwwLDEtMS42MSwxLjYxSDguNTZBMS42MSwxLjYxLDAsMCwxLDcsMTUuOFYxMC4xN0ExLjYxLDEuNjEsMCwwLDEsOC41Niw4LjU2Wm04Ljg1LDEuMjFIOC41NmEuNC40LDAsMCwwLS40LjRWMTUuOGEuNC40LDAsMCwwLC40LjQxaDguODVhLjQxLjQxLDAsMCwwLC40MS0uNDFWMTAuMTdBLjQuNCwwLDAsMCwxNy40MSw5Ljc3Wk05LDE4LjIyYTEuNjIsMS42MiwwLDAsMCwxLjU2LDEuMjFoNy4yNUEzLjIyLDMuMjIsMCwwLDAsMjEsMTYuMjF2LTRhMS42MiwxLjYyLDAsMCwwLTEuMjEtMS41NnY1LjU5YTIsMiwwLDAsMS0yLDJabTIsMmExLjYxLDEuNjEsMCwwLDAsMS41NiwxLjIxaDUuODNhNC42Myw0LjYzLDAsMCwwLDQuNjMtNC42M1YxNC4yYTEuNiwxLjYsMCwwLDAtMS4yMS0xLjU2djQuMTdhMy40MiwzLjQyLDAsMCwxLTMuNDIsMy40MloiLz48L3N2Zz4=",label:"ANIMATION SHEET",target:y(e,this.props.onPropertyChangedObservable,(e=>-1!==e.cellId)),onValueChanged:()=>{this.toggleAnimations(!s),this.forceUpdate()}}),s&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{className:"ge-divider double",children:(0,L.jsx)(N,{iconLabel:"Cell Id",icon:"data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTQuMTEsMTEuMzlhLjYyLjYyLDAsMCwxLC40OC43MWwtLjE4Ljg5aDJsLjIyLTEuMTJhLjYxLjYxLDAsMCwxLC43MS0uNDguNi42LDAsMCwxLC40Ny43MWwtLjE3Ljg5aC43OWEuNjEuNjEsMCwwLDEsMCwxLjIxaC0xbC0uMzMsMS42aDFBLjYxLjYxLDAsMCwxLDE4LDE3aC0xLjJsLS4yMiwxLjEzYS42Mi42MiwwLDAsMS0uNzEuNDcuNjEuNjEsMCwwLDEtLjQ4LS43MWwuMTgtLjg5aC0ybC0uMjIsMS4xM2EuNjEuNjEsMCwwLDEtLjcxLjQ3LjYuNiwwLDAsMS0uNDctLjcxbC4xNy0uODloLS43OWEuNjEuNjEsMCwwLDEsMC0xLjIxaDFsLjMzLTEuNkgxMkEuNjEuNjEsMCwwLDEsMTIsMTNoMS4ybC4yMi0xLjEyQS42Mi42MiwwLDAsMSwxNC4xMSwxMS4zOVptLS4yNiw0LjQxaDJsLjMyLTEuNmgtMlpNNy43NiwxMC4zN2EyLjYxLDIuNjEsMCwwLDEsMi42MS0yLjYxaDkuMjZhMi42MSwyLjYxLDAsMCwxLDIuNjEsMi42MXY5LjI2YTIuNjEsMi42MSwwLDAsMS0yLjYxLDIuNjFIMTAuMzdhMi42MSwyLjYxLDAsMCwxLTIuNjEtMi42MVpNMTAuMzcsOUExLjQsMS40LDAsMCwwLDksMTAuMzd2OS4yNmExLjQsMS40LDAsMCwwLDEuNCwxLjRoOS4yNmExLjQsMS40LDAsMCwwLDEuNC0xLjRWMTAuMzdBMS40LDEuNCwwLDAsMCwxOS42Myw5WiIvPjwvc3ZnPg==",lockObject:this.props.lockObject,label:"",isInteger:!0,target:n,propertyName:"cellId",min:0,max:i})}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(N,{icon:Qo,lockObject:this.props.lockObject,label:"W",target:n,propertyName:"cellWidth",isInteger:!0,onChange:()=>this.updateCellSize(),min:1,max:r}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"H",target:n,propertyName:"cellHeight",isInteger:!0,onChange:()=>this.updateCellSize(),min:1,max:l})]})]})]})}}class xs extends t.Component{constructor(e){super(e)}render(){const e=this.props.imageBasedSliders;return(0,L.jsxs)("div",{className:"pane",children:[(0,L.jsx)(ls,{lockObject:this.props.lockObject,controls:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable,onFontsParsedObservable:this.props.onFontsParsedObservable,globalState:this.props.globalState}),(0,L.jsx)("hr",{}),(0,L.jsx)(h,{label:"IMAGE LINKS",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTUsNi45MUE4LjA5LDguMDksMCwxLDAsMjMuMDksMTUsOC4wOSw4LjA5LDAsMCwwLDE1LDYuOTFabTAsMS4yMkE2Ljg3LDYuODcsMCwwLDEsMjAuNTksMTlsLTQuMzItNC4yMy0uMTEtLjA5YTEuOCwxLjgsMCwwLDAtMi40My4wOUw5LjQxLDE5QTYuODcsNi44NywwLDAsMSwxNSw4LjEzWk0xMC4yLDE5LjkxbDQuMzgtNC4yOS4wNywwYS41OC41OCwwLDAsMSwuNzcsMGw0LjM4LDQuMjlhNi44Niw2Ljg2LDAsMCwxLTkuNiwwWiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTE3LjYyLDEzLjQ0YTEuODEsMS44MSwwLDEsMC0xLjgyLTEuODFBMS44MSwxLjgxLDAsMCwwLDE3LjYyLDEzLjQ0Wm0wLTIuNDFhLjYxLjYxLDAsMSwxLS42MS42QS42LjYsMCwwLDEsMTcuNjIsMTFaIi8+PC9zdmc+",label:"Thumb Image Link"}),(0,L.jsx)(I,{lockObject:this.props.lockObject,target:y(e.map((e=>e.thumbImage)),this.props.onPropertyChangedObservable),label:"",propertyName:"source"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTcuNjIsMTAuNTRBMS44MSwxLjgxLDAsMSwwLDE1LjgsOC43MywxLjgxLDEuODEsMCwwLDAsMTcuNjIsMTAuNTRabTAtMi40MWEuNi42LDAsMCwxLC42LjYuNjEuNjEsMCwxLDEtMS4yMSwwQS42LjYsMCwwLDEsMTcuNjIsOC4xM1oiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0yMS43NSwxOC41OEg4LjI1YTIuMjUsMi4yNSwwLDAsMCwwLDQuNWgxMy41YTIuMjUsMi4yNSwwLDAsMCwwLTQuNVptMCwzSDguMjVhLjc1Ljc1LDAsMCwxLDAtMS41aDEzLjVhLjc1Ljc1LDAsMCwxLDAsMS41WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTcuMjIsMTcuMzhIMjIuNTVhLjUuNSwwLDAsMCwuNDQtLjUuNTEuNTEsMCwwLDAtLjUxLS41SDIwLjg3bC00LjYtNC41MS0uMTEtLjA5YTEuOCwxLjgsMCwwLDAtMi40My4wOWwtNC42LDQuNTFoLTJhLjUxLjUxLDAsMCwwLS40My41QS41LjUsMCwwLDAsNy4yMiwxNy4zOFptNy4zNi00LjY2LjA3LS4wNmEuNTkuNTksMCwwLDEsLjc3LjA2bDMuNzMsMy42NWgtOC4zWiIvPjwvc3ZnPg==",label:"Value Bar Image Link"}),(0,L.jsx)(I,{lockObject:this.props.lockObject,target:y(e.map((e=>e.valueBarImage)),this.props.onPropertyChangedObservable),label:"",propertyName:"source",onPropertyChangedObservable:this.props.onPropertyChangedObservable})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTUuODEsMTEuNzdBMS44MiwxLjgyLDAsMSwwLDE3LjYzLDEwLDEuODEsMS44MSwwLDAsMCwxNS44MSwxMS43N1ptMS44Mi0uNjFhLjYxLjYxLDAsMSwxLS42MS42MUEuNjEuNjEsMCwwLDEsMTcuNjMsMTEuMTZaIi8+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMjEuMDYsOS4zNEgxOC40M2EyLjU1LDIuNTUsMCwwLDEsMS40NSwxLjIxaDEuMThBMi40MywyLjQzLDAsMCwxLDIzLjQ5LDEzVjE3YTIuNDMsMi40MywwLDAsMS0yLjQzLDIuNDJIMjAuOWwtNC42My00LjUzLS4xLS4xYTEuODIsMS44MiwwLDAsMC0yLjQ0LjFMOS4xLDE5LjQ1SDguOTRBMi40MywyLjQzLDAsMCwxLDYuNTEsMTdWMTNhMi40MywyLjQzLDAsMCwxLDIuNDMtMi40Mmg2LjQ0YTIuNTQsMi41NCwwLDAsMSwxLjQ2LTEuMjFIOC45NEEzLjY0LDMuNjQsMCwwLDAsNS4zLDEzVjE3YTMuNjQsMy42NCwwLDAsMCwzLjY0LDMuNjNIMjEuMDZBMy42NCwzLjY0LDAsMCwwLDI0LjcsMTdWMTNBMy42NCwzLjY0LDAsMCwwLDIxLjA2LDkuMzRabS02LjQ4LDYuNDUuMDYtLjA2YS42MS42MSwwLDAsMSwuNzguMDZsMy43NSwzLjY2SDEwLjgzWiIvPjwvc3ZnPg==",label:"Background Image Link"}),(0,L.jsx)(I,{lockObject:this.props.lockObject,target:y(e.map((e=>e.backgroundImage)),this.props.onPropertyChangedObservable),label:"",propertyName:"source",onPropertyChangedObservable:this.props.onPropertyChangedObservable})]}),(0,L.jsx)(us,{sliders:e,lockObject:this.props.lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})]})}}class Ns extends t.Component{render(){const{containers:e,onPropertyChangedObservable:t}=this.props,n=y(e,t);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmc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EuNDIsMS40MiwwLDAsMS0xLjQyLTEuNDJWMTguNjVIMTZBMi42NCwyLjY0LDAsMCwwLDE4LjY1LDE2VjEyLjU2aDEuODNBMS40MiwxLjQyLDAsMCwxLDIxLjksMTRaIiBzdHlsZT0iZmlsbDojMzMzIi8+PC9zdmc+",label:"Clips content outside the bounding box of this control"}),(0,L.jsx)(qn,{label:"CLIP CONTENT",target:n,propertyName:"clipContent"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmJ7ZmlsbDojMzMzO308L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iYiIgZD0iTTIyLjE4LDEyLjgzaC02LjVjLTEuNDUsMC0yLjYyLDEuMTgtMi42MiwyLjYydjYuMzVjMCwxLjQ1LDEuMTgsMi42MiwyLjYyLDIuNjJoNi41YzEuNDUsMCwyLjYyLTEuMTgsMi42Mi0yLjYydi02LjM1YzAtMS40NS0xLjE4LTIuNjItMi42Mi0yLjYyWm0xLjM4LDguOTdjMCwuNzYtLjYyLDEuMzgtMS4zOCwxLjM4aC02LjVjLS43NiwwLTEuMzgtLjYyLTEuMzgtMS4zOHYtNi4zNWMwLS43NiwuNjItMS4zOCwxLjM4LTEuMzhoNi41Yy43NiwwLDEuMzgsLjYyLDEuMzgsMS4zOHY2LjM1WiIvPjxwYXRoIGNsYXNzPSJiIiBkPSJNMTMuNzcsOC4yNmMwLTEuNDUtMS4xOC0yLjYyLTIuNjItMi42MmgtMy4xNGMtMS40NSwwLTIuNjIsMS4xOC0yLjYyLDIuNjJ2My4wM2MwLDEuNDUsMS4xOCwyLjYyLDIuNjIsMi42MmgzLjE0YzEuNDUsMCwyLjYyLTEuMTgsMi42Mi0yLjYydi0zLjAzWm0tMi4yNy0xLjMybC00Ljc5LDQuNzljLS4wNS0uMTQtLjA4LS4yOC0uMDgtLjQ0di0uODVsMy41NS0zLjU1aC45NmMuMTIsMCwuMjQsLjAyLC4zNiwuMDVabS0zLjQ5LS4wNWguNDFsLTEuNzksMS43OXYtLjQxYzAtLjc2LC42Mi0xLjM4LDEuMzgtMS4zOFptLS40LDUuNzJsNC44Mi00LjgyYy4wNiwuMTUsLjA5LC4zMSwuMDksLjQ4di44NWwtMy41NSwzLjU1aC0uOTZjLS4xNCwwLS4yNy0uMDMtLjQtLjA3Wm0zLjU0LC4wN2gtLjQxbDEuNzgtMS43OHYuNDFjMCwuNzYtLjYyLDEuMzgtMS4zOCwxLjM4WiIvPjwvc3ZnPg==",label:"Clips child controls to this control's shape"}),(0,L.jsx)(qn,{label:"CLIP CHILDREN",target:n,propertyName:"clipChildren"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:ws,label:"Makes the container's width automatically adapt to its children"}),(0,L.jsx)(qn,{label:"ADAPT WIDTH TO CHILDREN",target:n,propertyName:"adaptWidthToChildren"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmJ7ZmlsbDojMzMzO308L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iYiIgZD0iTTEyLjE1LDEyLjEzYy0uMi0uMi0uMi0uNTEsMC0uNzFsMi41LTIuNWMuMi0uMiwuNTEtLjIsLjcxLDBsMi41LDIuNWMuMiwuMiwuMiwuNTEsMCwuNzEtLjIsLjItLjUxLC4yLS43MSwwbC0xLjY1LTEuNjV2My4zNmMwLC4yOC0uMjIsLjUtLjUsLjVzLS41LS4yMi0uNS0uNXYtMy4zNmwtMS42NSwxLjY1Yy0uMiwuMi0uNTEsLjItLjcxLDBabS0zLjAzLDEwLjQ2YzAtLjI2LC4xOS0uNDcsLjQ0LS41aDEwLjgxYy4yOCwwLC41LC4yMiwuNSwuNXMtLjE5LC40Ny0uNDQsLjVIOS42M2MtLjI4LDAtLjUtLjIyLS41LS41Wm0wLTE1LjE3YzAtLjI2LC4xOS0uNDcsLjQ0LS41aDEwLjgxYy4yOCwwLC41LC4yMiwuNSwuNSwwLC4yNi0uMTksLjQ3LS40NCwuNUg5LjYzYy0uMjgsMC0uNS0uMjItLjUtLjVabTMuNzMsMTAuNTZsMS42NSwxLjY1di0zLjM2YzAtLjI4LC4yMi0uNSwuNS0uNXMuNSwuMjIsLjUsLjV2My4zNmwxLjY1LTEuNjVjLjItLjIsLjUxLS4yLC43MSwwLC4yLC4yLC4yLC41MSwwLC43MWwtMi41LDIuNWMtLjIsLjItLjUxLC4yLS43MSwwbC0yLjUtMi41Yy0uMi0uMi0uMi0uNTEsMC0uNzEsLjItLjIsLjUxLS4yLC43MSwwWiIvPjwvc3ZnPg==",label:"Makes the container's height automatically adapt to its children"}),(0,L.jsx)(qn,{label:"ADAPT HEIGHT TO CHILDREN",target:n,propertyName:"adaptHeightToChildren"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:es,label:"Delegates picking to children controls"}),(0,L.jsx)(qn,{label:"DELEGATE PICKING TO CHILDREN",target:n,propertyName:"delegatePickingToChildren"})]})]})}}const Ss="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMjAuNDIsMjIuMjFIOS41N2ExLjc4LDEuNzgsMCwwLDEtMS43OC0xLjc4VjkuNThhMS44LDEuOCwwLDAsMSwyLTEuNzhBMTMuODYsMTMuODYsMCwwLDEsMjIuMiwyMC4yNWgwYTEuOCwxLjgsMCwwLDEtMS43OCwyWk05LjU4LDlhLjUyLjUyLDAsMCwwLS4zNi4xNC41Mi41MiwwLDAsMC0uMTguNFYyMC40M2EuNTMuNTMsMCwwLDAsLjUzLjUzSDIwLjQyYS41Mi41MiwwLDAsMCwuNC0uMTguNTYuNTYsMCwwLDAsLjE0LS40MUExMi42MiwxMi42MiwwLDAsMCw5LjYzLDlaIiBzdHlsZT0iZmlsbDojMzMzIi8+PC9zdmc+";class Ds extends t.Component{constructor(e){super(e)}render(){const{rectangles:e,lockObject:t,onPropertyChangedObservable:n}=this.props,o=y(e,n);return(0,L.jsxs)("div",{className:"pane",children:[(0,L.jsx)(ls,{lockObject:t,controls:e,onPropertyChangedObservable:n,onFontsParsedObservable:this.props.onFontsParsedObservable,globalState:this.props.globalState}),(0,L.jsx)("hr",{}),(0,L.jsx)(h,{label:"RECTANGLE",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:ds,label:"Stroke Weight"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"",target:o,propertyName:"thickness",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),arrows:!0,min:0,digits:2})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:Ss,label:"Corner Radius"}),(0,L.jsx)(N,{lockObject:t,label:"",target:o,propertyName:"cornerRadius",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),arrows:!0,min:0,digits:2})]}),(0,L.jsxs)("div",{className:"ge-divider quad",children:[(0,L.jsx)(N,{lockObject:t,label:"X",target:o,propertyName:"cornerRadiusX",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),arrows:!0,min:0,digits:2}),(0,L.jsx)(N,{lockObject:t,label:"Y",target:o,propertyName:"cornerRadiusY",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),arrows:!0,min:0,digits:2}),(0,L.jsx)(N,{lockObject:t,label:"Z",target:o,propertyName:"cornerRadiusZ",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),arrows:!0,min:0,digits:2}),(0,L.jsx)(N,{lockObject:t,label:"W",target:o,propertyName:"cornerRadiusW",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),arrows:!0,min:0,digits:2})]}),(0,L.jsx)(Ns,{containers:e,onPropertyChangedObservable:n})]})}}class Is extends t.Component{constructor(e){super(e)}render(){const{stackPanels:e,lockObject:t,onPropertyChangedObservable:n}=this.props,o=y(e,n);return(0,L.jsxs)("div",{className:"pane",children:[(0,L.jsx)(ls,{lockObject:t,controls:e,onPropertyChangedObservable:n,onFontsParsedObservable:this.props.onFontsParsedObservable,globalState:this.props.globalState}),(0,L.jsx)("hr",{}),(0,L.jsx)(h,{label:"STACKPANEL",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmJ7ZmlsbDojMzMzO308L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iYiIgZD0iTTE0LjM3LDIyLjcydi0xLjA0aC0yLjA5Yy0xLjA0LDAtMS44OC0uODQtMS44OC0xLjg4di0yLjA5YzAtMS4wNCwuODQtMS44OCwxLjg4LTEuODhoMi4wOXYtMS42N2gtMy43NmMtMS4wNCwwLTEuODgtLjg0LTEuODgtMS44OHYtMi4wOWMwLTEuMDQsLjg0LTEuODgsMS44OC0xLjg4aDMuNzZ2LTEuMDRjMC0uMzUsLjI4LS42MywuNjMtLjYzcy42MywuMjgsLjYzLC42M3YxLjA0aDMuNzZjMS4wNCwwLDEuODgsLjg0LDEuODgsMS44OHYyLjA5YzAsMS4wNC0uODQsMS44OC0xLjg4LDEuODhoLTMuNzZ2MS42N2gyLjA5YzEuMDQsMCwxLjg4LC44NCwxLjg4LDEuODh2Mi4wOWMwLDEuMDQtLjg0LDEuODgtMS44OCwxLjg4aC0yLjA5djEuMDRjMCwuMzUtLjI4LC42My0uNjMsLjYzcy0uNjMtLjI4LS42My0uNjNabTMuMzQtMi4zYy4zNSwwLC42My0uMjgsLjYzLS42M3YtMi4wOWMwLS4zNS0uMjgtLjYzLS42My0uNjNoLTUuNDNjLS4zNSwwLS42MywuMjgtLjYzLC42M3YyLjA5YzAsLjM1LC4yOCwuNjMsLjYzLC42M2g1LjQzWm0xLjY3LTcuNTJjLjM1LDAsLjYzLS4yOCwuNjMtLjYzdi0yLjA5YzAtLjM1LS4yOC0uNjMtLjYzLS42M0gxMC42MmMtLjM1LDAtLjYzLC4yOC0uNjMsLjYzdjIuMDljMCwuMzUsLjI4LC42MywuNjMsLjYzaDguNzdaIi8+PC9zdmc+",label:"Determines if children are stacked horizontally or vertically"}),(0,L.jsx)(qn,{label:o.isVertical?"ALIGNMENT: VERTICAL":"ALIGNMENT: HORIZONTAL",target:o,propertyName:"isVertical",onValueChanged:()=>{for(const t of e)for(const e of t.children)o.isVertical?(e.horizontalAlignment=a.StackPanel.HORIZONTAL_ALIGNMENT_CENTER,e._left.value=0,e._height.unit===a.ValueAndUnit.UNITMODE_PERCENTAGE&&u.ConvertToPixels(e,["height"])):(e.verticalAlignment=a.StackPanel.VERTICAL_ALIGNMENT_CENTER,e._top.value=0,e._width.unit===a.ValueAndUnit.UNITMODE_PERCENTAGE&&u.ConvertToPixels(e,["width"]));this.forceUpdate()}})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(f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4yOGMxLjQ1LDAsMi42MiwxLjE4LDIuNjIsMi42MnYzLjU1YzAsMS40NS0xLjE4LDIuNjItMi42MiwyLjYyWm0tNC4yOC03LjU1Yy0uNzYsMC0xLjM4LC42Mi0xLjM4LDEuMzh2My41NWMwLC43NiwuNjIsMS4zOCwxLjM4LDEuMzhoNC4yOGMuNzYsMCwxLjM4LS42MiwxLjM4LTEuMzh2LTMuNTVjMC0uNzYtLjYyLTEuMzgtMS4zOC0xLjM4aC00LjI4WiIvPjxwYXRoIGNsYXNzPSJiIiBkPSJNMTQuNTYsMjQuNDhoLTQuMjhjLTEuNDUsMC0yLjYyLTEuMTgtMi42Mi0yLjYydi0zLjU1YzAtMS40NSwxLjE4LTIuNjIsMi42Mi0yLjYyaDQuMjhjMS40NSwwLDIuNjIsMS4xOCwyLjYyLDIuNjJ2My41NWMwLDEuNDUtMS4xOCwyLjYyLTIuNjIsMi42MlptLTQuMjgtNy41NWMtLjc2LDAtMS4zOCwuNjItMS4zOCwxLjM4djMuNTVjMCwuNzYsLjYyLDEuMzgsMS4zOCwxLjM4aDQuMjhjLjc2LDAsMS4zOC0uNjIsMS4zOC0xLjM4di0zLjU1YzAtLjc2LS42Mi0xLjM4LTEuMzgtMS4zOGgtNC4yOFoiLz48L3N2Zz4=",label:"Spacing between children"}),(0,L.jsx)(N,{lockObject:t,label:" ",target:o,propertyName:"spacing",onChange:()=>e.forEach((e=>e._markAsDirty())),unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),arrows:!0,min:0})]}),(0,L.jsx)(Ns,{containers:e,onPropertyChangedObservable:n})]})}}const vs="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMTUsNi45NEE4LjA2LDguMDYsMCwxLDEsNi45NCwxNSw4LjA2LDguMDYsMCwwLDEsMTUsNi45NF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xLjRhNy45MSw3LjkxLDAsMSwwLDguMTcsNy45MXYwYS41OC41OCwwLDAsMC0uNTktLjU2aDBhLjU5LjU5LDAsMCwwLS41OC42MSw2LjcsNi43LDAsMSwxLTctNi43bC0xLjM5LDEuNGEuNi42LDAsMCwwLDAsLjg2LjYyLjYyLDAsMCwwLC44NiwwbDIuNDQtMi40NGEuNi42LDAsMCwwLDAtLjg2Wm00Ljg3LDcuMzFhLjYuNiwwLDAsMSwwLC44NmwtMy42NSwzLjY2YS42Mi42MiwwLDAsMS0uODYsMEwxMi43NCwxNmEuNjEuNjEsMCwwLDEsLjg2LS44NkwxNSwxNi41N2wzLjIyLTMuMjJBLjYuNiwwLDAsMSwxOS4wOCwxMy4zNVoiIHN0eWxlPSJmaWxsOiMzMzMiLz48L3N2Zz4=";class zs extends t.Component{constructor(e){super(e),this._previousGrid=null,this._rowDefinitions=[],this._rowEditFlags=[],this._columnEditFlags=[],this._columnDefinitions=[],this._editedRow=!1,this._editedColumn=!1,this._rowChild=!1,this._columnChild=!1,this.state={removingColumn:!1,removingRow:!1}}renderRows(){return this._rowDefinitions.map(((e,t)=>(0,L.jsx)("div",{className:this.state.removingRow&&t===this._rowEditFlags.length-1?"ge-grid-remove":this._rowEditFlags[t]?"ge-grid-edit":"ge-grid",children:(0,L.jsxs)("div",{className:"ge-grid-divider",children:[(0,L.jsx)(I,{lockObject:this.props.lockObject,label:"",icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJpY29ucyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHZpZXdCb3g9IjAgMCAzMCAzMCI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiMzMzM7fTwvc3R5bGU+PC9kZWZzPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0ibTcuNzQsMTMuMThjMC0xLC44MS0xLjgyLDEuODItMS44MmgxMC44OWMxLDAsMS44Mi44MSwxLjgyLDEuODJ2My42M2MwLDEtLjgxLDEuODItMS44MiwxLjgyaC0xMC44OWMtMSwwLTEuODItLjgxLTEuODItMS44MnYtMy42M1ptMS44Mi0uNjFjLS4zMywwLS42MS4yNy0uNjEuNjF2My42M2MwLC4zMy4yNy42MS42MS42MWgyLjYydi00Ljg0aC0yLjYyWm03LjA2LDQuODR2LTQuODRoLTMuMjN2NC44NGgzLjIzWm0xLjIxLDBoMi42MmMuMzMsMCwuNjEtLjI3LjYxLS42MXYtMy42M2MwLS4zMy0uMjctLjYxLS42MS0uNjFoLTIuNjJ2NC44NFoiLz48L3N2Zz4=",iconLabel:`Row ${t}`,value:e,numbersOnly:!0,onChange:e=>{e!==this._rowDefinitions[t]&&(this._rowDefinitions[t]=e,this._rowEditFlags[t]=!0,this._editedRow=!0,this._rowChild=!1,this.setState({removingRow:!1}))},disabled:this.state.removingRow},`rText${t}-${this.state.removingRow}`),(0,L.jsx)(h,{tooltip:"",label:`[${t}]`,value:"",color:"grey"}),this.state.removingRow&&t===this._rowEditFlags.length-1&&(0,L.jsx)(h,{icon:Bo,label:" ",value:" ",color:"grey"}),this._rowEditFlags[t]&&(0,L.jsx)(h,{icon:Ts,label:" ",value:" ",color:"grey"})]})},`r${t}`)))}setRowValues(){const e=this.props.grids[0];this._rowDefinitions=[],this._rowEditFlags=[],this._editedRow=!1;for(let t=0;t<e.rowCount;t++){const n=e.getRowDefinition(t);n&&(this._rowDefinitions.push(n.toString(e._host,2)),this._rowEditFlags.push(!1))}}setColumnValues(){const e=this.props.grids[0];this._columnDefinitions=[],this._columnEditFlags=[],this._editedColumn=!1;for(let t=0;t<e.columnCount;t++){const n=e.getColumnDefinition(t);n&&(this._columnDefinitions.push(n.toString(e._host,2)),this._columnEditFlags.push(!1))}}renderColumns(){return this._columnDefinitions.map(((e,t)=>(0,L.jsx)("div",{className:this.state.removingColumn&&t===this._columnEditFlags.length-1?"ge-grid-remove":this._columnEditFlags[t]?"ge-grid-edit":"ge-grid",children:(0,L.jsxs)("div",{className:"ge-grid-divider",children:[(0,L.jsx)(I,{lockObject:this.props.lockObject,label:"",icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJpY29ucyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHZpZXdCb3g9IjAgMCAzMCAzMCI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiMzMzM7fTwvc3R5bGU+PC9kZWZzPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0ibTEyLjU3LDE3LjgzdjIuNjNjMCwuMzQuMjcuNjEuNjEuNjFoMy42NGMuMzQsMCwuNjEtLjI3LjYxLS42MXYtMi42M2gtNC44NlptNC4yNS0xMC4xMmMxLjAxLDAsMS44Mi44MiwxLjgyLDEuODJ2MTAuOTNjMCwxLjAxLS44MiwxLjgyLTEuODIsMS44MmgtMy42NGMtMS4wMSwwLTEuODItLjgyLTEuODItMS44MnYtMTAuOTNjMC0xLjAxLjgyLTEuODIsMS44Mi0xLjgyaDMuNjRabS42MSwxLjgyYzAtLjM0LS4yNy0uNjEtLjYxLS42MWgtMy42NGMtLjM0LDAtLjYxLjI3LS42MS42MXYyLjYzaDQuODZ2LTIuNjNabS00Ljg2LDcuMDhoNC44NnYtMy4yNGgtNC44NnYzLjI0WiIvPjwvc3ZnPg==",iconLabel:`Column ${t}`,value:e,numbersOnly:!0,onChange:e=>{e!==this._columnDefinitions[t]&&(this._columnDefinitions[t]=e,this._columnEditFlags[t]=!0,this._editedColumn=!0,this._columnChild=!1,this.setState({removingColumn:!1}))},disabled:this.state.removingColumn},`ctext${t}-${this.state.removingColumn}`),(0,L.jsx)(h,{tooltip:"",label:`[${t}]`,value:"",color:"grey"}),this.state.removingColumn&&t===this._columnEditFlags.length-1&&(0,L.jsx)(h,{icon:Bo,label:" ",value:" ",color:"grey"}),this._columnEditFlags[t]&&(0,L.jsx)(h,{icon:Ts,label:" ",value:" ",color:"grey"})]})},`c${t}`)))}parsePercentage(e){let t;return t="%"===e.trim().at(-1)?parseFloat(e.replace("%",""))/100:parseFloat(e),a.MathTools.Round(t,1e4)}isCloseTo(e,t,n=.001){return Math.abs(e-t)<n}adjustPercentages(e,t){let n=0,o=0;const s=[];for(let i=0;i<e.length;++i){let r=e[i];const a=this.checkPercentage(r);t[i]&&(r=this.checkValue(r,a)),a&&(n+=this.parsePercentage(r),t[i]&&(o+=this.parsePercentage(r))),s.push(r)}let i=[];if(this.isCloseTo(n,1))i=s;else{const e=1-o,r=Math.abs(e),a=n-o,l=this.isCloseTo(a,0);for(let e=0;e<s.length;++e){const o=s[e];if(this.checkPercentage(o)&&!t[e]||t[e]&&l){const e=this.parsePercentage(o)/(l?n:a)*(l?1:r);i.push(100*e+"%")}else i.push(o)}}return i}resizeRow(){const e=this.props.grids[0],t=this.adjustPercentages(this._rowDefinitions,this._rowEditFlags);for(let n=0;n<t.length;++n)e.setRowDefinition(n,this.parsePercentage(t[n]),!this.checkPercentage(t[n]));this.setRowValues()}resizeColumn(){const e=this.props.grids[0],t=this.adjustPercentages(this._columnDefinitions,this._columnEditFlags);for(let n=0;n<t.length;++n)e.setColumnDefinition(n,this.parsePercentage(t[n]),!this.checkPercentage(this._columnDefinitions[n]));this.setColumnValues()}checkValue(e,t){let n=e.match(/([0-9.,]+)/g)?.[0];return n||(n="0"),n+=t?"%":"px",n}checkPercentage(e){return"px"!==e.substring(e.length-2,e.length)}resetValues(){const e=this.props.grids[0];this._columnChild=!1,this._rowChild=!1,this._previousGrid=e,this.setRowValues(),this.setColumnValues(),this.resizeColumn(),this.resizeRow(),this.setState({removingColumn:!1,removingRow:!1})}render(){const e=this.props.grids,t=this.props.grids[0];return t!==this._previousGrid&&this.resetValues(),(0,L.jsxs)("div",{className:"pane",children:[(0,L.jsx)(ls,{lockObject:this.props.lockObject,controls:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable,onFontsParsedObservable:this.props.onFontsParsedObservable,globalState:this.props.globalState}),(0,L.jsx)("hr",{className:"ge"}),(0,L.jsx)(h,{tooltip:"",label:"GRID",value:" ",color:"grey"}),this.renderRows(),1===this.props.grids.length&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{className:"ge-gridLine",children:(0,L.jsxs)("div",{className:"ge-grid-button-divider",children:[(0,L.jsx)(v,{altStyle:!0,tooltip:"Add Row",icon:$o,shortcut:"",isActive:!1,disabled:this.state.removingRow||this._editedRow,onClick:()=>{let e=0,n=0;for(let o=0;o<t.rowCount;++o){const s=t.getRowDefinition(o);s?.isPercentage&&(e+=s?.getValue(t.host),n++)}t.addRowDefinition(e/n,!1),this.resetValues(),this.forceUpdate()}})," ",(0,L.jsx)(v,{altStyle:!0,tooltip:"Remove Row",icon:vs,shortcut:"",isActive:!1,disabled:this.state.removingRow||t.rowCount<=1||this._editedRow,onClick:()=>{let e=!1;for(let n=0;n<t.columnCount;++n){const o=t.cells[t.rowCount-1+":"+n];if(o?.children.length){e=!0;break}}this.resetValues(),e&&(this._rowChild=!0),this.setState({removingRow:!0})}}),this._editedRow&&(0,L.jsxs)(L.Fragment,{children:[" ",(0,L.jsx)(v,{altStyle:!0,tooltip:"Confirm",icon:Po,shortcut:"",isActive:!1,onClick:()=>{this.resizeRow(),this.forceUpdate()}}),(0,L.jsx)(v,{altStyle:!0,tooltip:"Cancel",icon:Es,shortcut:"",isActive:!1,onClick:()=>{this.resetValues(),this.forceUpdate()}})]}),this.state.removingRow&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(v,{altStyle:!0,tooltip:"Confirm",icon:Po,shortcut:"",isActive:!1,onClick:()=>{t.removeRowDefinition(t.rowCount-1),this.setRowValues(),this.resizeRow(),this.setState({removingRow:!1}),this._rowChild=!1,this.props.onUpdateRequiredObservable?.notifyObservers()}}),(0,L.jsx)(v,{altStyle:!0,tooltip:"Cancel",icon:Es,shortcut:"",isActive:!1,onClick:()=>{this.setState({removingRow:!1}),this._rowChild=!1,this.forceUpdate()}})]})]})}),this._rowChild&&(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(h,{tooltip:"",label:"This row is not empty. Removing it will delete all contained controls. Do you want to remove this row and delete all controls within?",value:" ",color:"grey"})}),(0,L.jsx)("hr",{className:"ge"}),this.renderColumns(),(0,L.jsxs)("div",{className:"ge-grid-button-divider",children:[(0,L.jsx)(v,{altStyle:!0,tooltip:"Add Column",icon:$o,shortcut:"",isActive:!1,disabled:this.state.removingColumn||this._editedColumn,onClick:()=>{let e=0,n=0;for(let o=0;o<t.columnCount;++o){const s=t.getColumnDefinition(o);s?.isPercentage&&(e+=s?.getValue(t.host),n++)}t.addColumnDefinition(e/n,!1),this.resetValues(),this.forceUpdate()}}),(0,L.jsx)(v,{altStyle:!0,tooltip:"Remove Column",icon:vs,shortcut:"",isActive:!1,disabled:this.state.removingColumn||this._editedColumn||t.columnCount<=1,onClick:()=>{let e=!1;for(let n=0;n<t.rowCount;++n){const o=t.cells[n+":"+(t.columnCount-1)];if(o?.children.length){e=!0;break}}this.resetValues(),e&&(this._columnChild=!0),this.setState({removingColumn:!0})}}),this._editedColumn&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(v,{altStyle:!0,tooltip:"Confirm",icon:Po,shortcut:"",isActive:!1,onClick:()=>{this.resizeColumn(),this.forceUpdate()}}),(0,L.jsx)(v,{altStyle:!0,tooltip:"Cancel",icon:Es,shortcut:"",isActive:!1,onClick:()=>{this.resetValues(),this.forceUpdate()}})]}),this.state.removingColumn&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(v,{altStyle:!0,tooltip:"Confirm",icon:Po,shortcut:"",isActive:!1,onClick:()=>{t.removeColumnDefinition(t.columnCount-1),this.setColumnValues(),this.resizeColumn(),this.setState({removingColumn:!1}),this._columnChild=!1,this.props.onUpdateRequiredObservable?.notifyObservers()}}),(0,L.jsx)(v,{altStyle:!0,tooltip:"Cancel",icon:Es,shortcut:"",isActive:!1,onClick:()=>{this.setState({removingColumn:!1}),this._columnChild=!1}})]})," "]}),this._columnChild&&(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(h,{tooltip:"",label:"This column is not empty. Removing it will delete all contained controls. Do you want to remove this column and delete all controls within?",value:" ",color:"grey"})})]})]})}}class Os extends t.Component{constructor(e){super(e)}render(){const{scrollViewers:e,onPropertyChangedObservable:t,lockObject:n}=this.props,o=y(e,t);return(0,L.jsxs)("div",{className:"pane",children:[(0,L.jsx)(ls,{lockObject:n,controls:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable,onFontsParsedObservable:this.props.onFontsParsedObservable,globalState:this.props.globalState}),(0,L.jsx)("hr",{}),(0,L.jsx)(h,{label:"SCROLLVIEWER",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmJ7ZmlsbDojMzMzO308L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iYiIgZD0iTTE0LjIyLDkuNTZ2MS4xM2MwLC40MywuMzUsLjc4LC43OCwuNzhzLjc4LS4zNSwuNzgtLjc4di0xLjEzYzMuMDUsLjM2LDUuNDcsMi43OCw1LjgzLDUuODNoLTEuMTNjLS40MywwLS43OCwuMzUtLjc4LC43OHMuMzUsLjc4LC43OCwuNzhoMS4xM2MtLjE3LDEuNDItLjgyLDIuNy0xLjc1LDMuNzEtLjIyLC4yNC0uMjEsLjYxLC4wMywuODMsLjI0LC4yMiwuNjEsLjIxLC44My0uMDMsMS4yOS0xLjM5LDIuMTEtMy4yMywyLjExLTUuMjksMC00LjMzLTMuNTEtNy44My03LjgzLTcuODNzLTcuODMsMy41MS03LjgzLDcuODNjMCwyLjA2LC44MywzLjkxLDIuMTEsNS4yOSwuMjIsLjI0LC41OSwuMjUsLjgzLC4wMywuMjQtLjIyLC4yNS0uNTksLjAzLS44My0uOTQtMS4wMS0xLjU4LTIuMjktMS43NS0zLjcxaDEuMTNjLjQzLDAsLjc4LS4zNSwuNzgtLjc4cy0uMzUtLjc4LS43OC0uNzhoLTEuMTNjLjE1LTEuMjUsLjY0LTIuNCwxLjM4LTMuMzRsLjc2LC43NmMuMzEsLjMxLC44LC4zMSwxLjExLDAsLjMxLS4zMSwuMzEtLjgsMC0xLjExbC0uNzYtLjc2Yy45NC0uNzQsMi4wOS0xLjI0LDMuMzQtMS4zOFptNC41MSwyLjQxYy0uMTktLjE0LS40NS0uMTQtLjYzLC4wMWwtLjE3LC4xNGMtLjExLC4wOS0uMjYsLjIyLS40NSwuMzgtLjM3LC4zMi0uODgsLjc0LTEuMzksMS4xOC0uNTEsLjQ0LTEuMDQsLjg5LTEuNDYsMS4yNi0uMjEsLjE5LS4zOSwuMzUtLjU0LC40OS0uMTMsLjEzLS4yNiwuMjUtLjMzLC4zMy0uNTEsLjYzLS40LDEuNTUsLjI0LDIuMDUsLjY1LC41LDEuNTksLjM5LDIuMS0uMjQsLjA3LS4wOCwuMTYtLjIzLC4yNS0uMzksLjEtLjE3LC4yMi0uMzgsLjM2LS42MywuMjctLjQ4LC42LTEuMDksLjkyLTEuNjgsLjMyLS41OSwuNjMtMS4xNywuODUtMS42LC4xMS0uMjEsLjIxLS4zOSwuMjctLjUybC4xLS4xOWMuMTEtLjIxLC4wNS0uNDYtLjEzLS42WiIvPjwvc3ZnPg==",label:"Wheel Precision"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"",target:o,propertyName:"wheelPrecision",arrows:!0,min:0,digits:2})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:cs,label:"Bar Size"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"",target:o,propertyName:"barSize",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),arrows:!0,min:0,digits:2})]}),(0,L.jsxs)("div",{className:"e-divider",children:[(0,L.jsx)(fo,{icon:Xo,label:"Bar Color"}),(0,L.jsx)(yo,{lockObject:this.props.lockObject,label:"",target:o,propertyName:"barColor"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:qo,label:"Bar Background Color"}),(0,L.jsx)(yo,{lockObject:this.props.lockObject,label:"",target:o,propertyName:"barBackground"})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:ds,label:"Stroke Weight"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"",target:o,propertyName:"thickness",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),arrows:!0,min:0,digits:2})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:Ss,label:"Corner Radius"}),(0,L.jsx)(N,{lockObject:n,label:"",target:y(e,t),propertyName:"cornerRadius",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),arrows:!0,min:0,digits:2})]})]})}}class ks extends t.Component{constructor(e){super(e)}render(){const{ellipses:e,onPropertyChangedObservable:t,lockObject:n}=this.props,o=y(e,t);return(0,L.jsxs)("div",{className:"pane",children:[(0,L.jsx)(ls,{lockObject:n,controls:e,onPropertyChangedObservable:t,onFontsParsedObservable:this.props.onFontsParsedObservable,globalState:this.props.globalState}),(0,L.jsx)("hr",{}),(0,L.jsx)(h,{label:"ELLIPSE",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:ds,label:"Stroke Weight"}),(0,L.jsx)(N,{lockObject:n,label:"",target:o,propertyName:"thickness",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),arrows:!0,min:0,digits:2})]}),(0,L.jsx)(Ns,{containers:e,onPropertyChangedObservable:t})]})}}class Ys extends t.Component{constructor(e){super(e)}render(){const e=this.props.checkboxes;return(0,L.jsxs)("div",{className:"pane",children:[(0,L.jsx)(ls,{lockObject:this.props.lockObject,controls:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable,onFontsParsedObservable:this.props.onFontsParsedObservable,globalState:this.props.globalState}),(0,L.jsx)("hr",{}),(0,L.jsx)(h,{label:"CHECKBOX",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:Qo,label:"Check Size Ratio"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:" ",target:y(e,this.props.onPropertyChangedObservable),propertyName:"checkSizeRatio",min:0,max:1,arrows:!0,step:"0.01",digits:2})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:Ms,label:"Is Checkbox Checked"}),(0,L.jsx)(qn,{label:"CHECKED",target:y(e,this.props.onPropertyChangedObservable),propertyName:"isChecked",onPropertyChangedObservable:this.props.onPropertyChangedObservable})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:ds,label:"Thickness"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,target:y(e,this.props.onPropertyChangedObservable),propertyName:"thickness",label:"",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),arrows:!0,min:0,digits:2})]})]})}}class Ps extends t.Component{constructor(e){super(e)}render(){const e=this.props.controls;return(0,L.jsx)("div",{className:"pane",children:(0,L.jsx)(ls,{lockObject:this.props.lockObject,controls:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable,onFontsParsedObservable:this.props.onFontsParsedObservable,globalState:this.props.globalState})})}}class Bs extends t.Component{constructor(e){super(e)}updateGridPosition(){const e=this.props.control.parent;e&&this._changeCell(e,this.props.control,new o.Vector2(this._rowNumber,this._columnNumber))}getCellInfo(){const e=ns.GetCellInfo(this.props.control.parent,this.props.control);this._rowNumber=e.x,this._columnNumber=e.y}_changeCell(e,t,n){const o=e.children.indexOf(t);e.removeControl(t),ns.ReorderGrid(e,o,t,n)}render(){return this.getCellInfo(),(0,L.jsxs)("div",{className:"pane",children:[(0,L.jsx)("hr",{className:"ge"}),(0,L.jsx)(h,{tooltip:"",label:"GRID PARENTING",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"Row #",target:this,propertyName:"_rowNumber",isInteger:!0,min:0,onChange:()=>{this.updateGridPosition()}}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"Column #",target:this,propertyName:"_columnNumber",isInteger:!0,min:0,onChange:()=>{this.updateGridPosition()}})]})]})}}class Rs extends t.Component{constructor(e){super(e)}render(){const{displayGrids:e,lockObject:t,onPropertyChangedObservable:n}=this.props,o=y(e,n);return(0,L.jsxs)("div",{className:"pane",children:[(0,L.jsx)(ls,{lockObject:t,controls:e,onPropertyChangedObservable:n,onFontsParsedObservable:this.props.onFontsParsedObservable,globalState:this.props.globalState}),(0,L.jsx)("hr",{}),(0,L.jsx)(h,{label:"DISPLAY GRID",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:Qo,label:"Cell Size"}),(0,L.jsx)(N,{min:1,isInteger:!0,lockObject:t,label:"W",target:o,propertyName:"cellWidth",onPropertyChangedObservable:n,unit:(0,L.jsx)(ts,{locked:!0,unit:"PX"}),arrows:!0}),(0,L.jsx)(N,{min:1,isInteger:!0,lockObject:t,label:"H",target:o,propertyName:"cellHeight",onPropertyChangedObservable:n,unit:(0,L.jsx)(ts,{locked:!0,unit:"PX"}),arrows:!0})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMCAzMCI+PGRlZnM+PHN0eWxlPi5ie2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImIiIGQ9Ik03LjczLDkuOTVjMC0xLjIzLC45OS0yLjIyLDIuMjItMi4yMmgxMC4wOWMxLjIzLDAsMi4yMiwuOTksMi4yMiwyLjIydjEwLjA5YzAsMS4yMy0uOTksMi4yMi0yLjIyLDIuMjJIOS45NWMtMS4yMywwLTIuMjItLjk5LTIuMjItMi4yMlY5Ljk1Wm0yLjIyLTEuMDFjLS41NiwwLTEuMDEsLjQ1LTEuMDEsMS4wMXYxMC4wOWMwLC41NiwuNDUsMS4wMSwxLjAxLDEuMDFoMTAuMDljLjU2LDAsMS4wMS0uNDUsMS4wMS0xLjAxVjkuOTVjMC0uNTYtLjQ1LTEuMDEtMS4wMS0xLjAxSDkuOTVaIi8+PHBhdGggY2xhc3M9ImIiIGQ9Ik0xNS44NCwxMS45MnY2LjU0YzAsLjMtLjIzLC41My0uNTMsLjUzcy0uNTMtLjIzLS41My0uNTN2LTUuODhsLTEuMDcsLjQyYy0uMDksLjAzLS4yLC4wNy0uMjgsLjA3LS4yNiwwLS40Ny0uMjEtLjQ3LS40NywwLS4xNSwuMDctLjM1LC4zMy0uNDZsMS42NC0uNjZjLjA5LS4wMiwuMjItLjEsLjM3LS4xLC4zMSwwLC41MywuMjMsLjUzLC41NVoiLz48L3N2Zz4=",label:"Show Minor Lines"}),(0,L.jsx)(qn,{label:"SHOW MINOR LINES",onValueChanged:()=>this.forceUpdate(),target:o,propertyName:"_displayMinorLines"})]}),o._displayMinorLines&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:ds,label:"Minor Line Tickness"}),(0,L.jsx)(N,{min:1,isInteger:!0,lockObject:t,label:"",target:o,propertyName:"minorLineTickness",onPropertyChangedObservable:n,unit:(0,L.jsx)(ts,{locked:!0,unit:"PX"}),arrows:!0})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:Xo,label:"Minor Line Color"}),(0,L.jsx)(yo,{lockObject:t,label:"",target:o,propertyName:"minorLineColor",onPropertyChangedObservable:n})]})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMCAzMCI+PGRlZnM+PHN0eWxlPi5ie2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImIiIGQ9Ik03LjczLDkuOTVjMC0xLjIzLC45OS0yLjIyLDIuMjItMi4yMmgxMC4wOWMxLjIzLDAsMi4yMiwuOTksMi4yMiwyLjIydjEwLjA5YzAsMS4yMy0uOTksMi4yMi0yLjIyLDIuMjJIOS45NWMtMS4yMywwLTIuMjItLjk5LTIuMjItMi4yMlY5Ljk1Wm0yLjIyLTEuMDFjLS41NiwwLTEuMDEsLjQ1LTEuMDEsMS4wMXYxMC4wOWMwLC41NiwuNDUsMS4wMSwxLjAxLDEuMDFoMTAuMDljLjU2LDAsMS4wMS0uNDUsMS4wMS0xLjAxVjkuOTVjMC0uNTYtLjQ1LTEuMDEtMS4wMS0xLjAxSDkuOTVaIi8+PHBhdGggY2xhc3M9ImIiIGQ9Ik0xNy42MywxOC40NGMwLC4zMS0uMjMsLjUxLS41MiwuNTFoLTMuOTNjLS4zMiwwLS41NS0uMjEtLjU1LS41NSwwLS4yMywuMDktLjQxLC4zMS0uNjRsMi4yNS0yLjM0Yy41OC0uNTksLjk0LTEuMiwuOTQtMS44NiwwLS43LS41MS0xLjE3LTEuMi0xLjE3LS42MywwLTEuMDIsLjM0LTEuMjksLjY5LS4xLC4xMi0uMjIsLjI0LS40NSwuMjQtLjI4LDAtLjUtLjE4LS41MS0uNDUsMC0uMTUsLjA1LS4zLC4xMy0uNDIsLjMzLS41NywxLjA4LTEuMTEsMi4xNi0xLjExLDEuNDMsMCwyLjI4LC45NSwyLjI4LDIuMTcsMCwuODYtLjQsMS42Mi0xLjIxLDIuNDZsLTEuODgsMS45NmgyLjk1Yy4yOSwwLC41MiwuMiwuNTIsLjUxWiIvPjwvc3ZnPg==",label:"Show Major Lines"}),(0,L.jsx)(qn,{label:"SHOW MAJOR LINES",onValueChanged:()=>this.forceUpdate(),target:o,propertyName:"_displayMajorLines"})]}),o._displayMajorLines&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:ds,label:"Major Line Tickness"}),(0,L.jsx)(N,{min:1,isInteger:!0,lockObject:t,label:"",target:o,propertyName:"majorLineTickness",onPropertyChangedObservable:n,unit:(0,L.jsx)(ts,{locked:!0,unit:"PX"}),arrows:!0})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:Xo,label:"Major Line Color"}),(0,L.jsx)(yo,{lockObject:t,label:"",target:o,propertyName:"majorLineColor",onPropertyChangedObservable:n})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMCAzMCI+PGRlZnM+PHN0eWxlPi5ie2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImIiIGQ9Ik05LjU2LDIwLjQxYzAsLjMzLC4yNywuNjEsLjYxLC42MXMuNjEtLjI3LC42MS0uNjFWOC42MmMwLS4zMy0uMjctLjYxLS42MS0uNjFzLS42MSwuMjctLjYxLC42MXYxMS43OVoiLz48cGF0aCBjbGFzcz0iYiIgZD0iTTYuMzQsMTcuNTNjMCwuMzMsLjI3LC42MSwuNjEsLjYxcy42MS0uMjcsLjYxLS42MXYtMy45YzAtLjMzLS4yNy0uNjEtLjYxLS42MXMtLjYxLC4yNy0uNjEsLjYxdjMuOVoiLz48cGF0aCBjbGFzcz0iYiIgZD0iTTIyLjQ0LDE3LjUzYzAsLjMzLC4yNywuNjEsLjYxLC42MXMuNjEtLjI3LC42MS0uNjF2LTMuOWMwLS4zMy0uMjctLjYxLS42MS0uNjFzLS42MSwuMjctLjYxLC42MXYzLjlaIi8+PHBhdGggY2xhc3M9ImIiIGQ9Ik0xMi43OCwxOC4wMWMwLC4zMywuMjcsLjYxLC42MSwuNjFzLjYxLS4yNywuNjEtLjYxVjYuMjJjMC0uMzMtLjI3LS42MS0uNjEtLjYxcy0uNjEsLjI3LS42MSwuNjF2MTEuNzlaIi8+PHBhdGggY2xhc3M9ImIiIGQ9Ik0xNiwyMy43OGMwLC4zMywuMjcsLjYxLC42MSwuNjFzLjYxLS4yNywuNjEtLjYxVjExLjk5YzAtLjMzLS4yNy0uNjEtLjYxLS42MXMtLjYxLC4yNy0uNjEsLjYxdjExLjc5WiIvPjxwYXRoIGNsYXNzPSJiIiBkPSJNMTkuMjIsMjEuMzhjMCwuMzMsLjI3LC42MSwuNjEsLjYxcy42MS0uMjcsLjYxLS42MVY5LjU5YzAtLjMzLS4yNy0uNjEtLjYxLS42MXMtLjYxLC4yNy0uNjEsLjYxdjExLjc5WiIvPjwvc3ZnPg==",label:"Major Line Frequency"}),(0,L.jsx)(N,{min:1,isInteger:!0,lockObject:t,label:"",target:o,propertyName:"majorLineFrequency",onPropertyChangedObservable:n,arrows:!0})]})]})]})}}class Us extends t.Component{constructor(e){super(e)}render(){const{rectangles:e,lockObject:t,onPropertyChangedObservable:n,onAddComponent:o}=this.props,s=y(e,n);return(0,L.jsxs)("div",{className:"pane",children:[(0,L.jsx)(ls,{lockObject:t,controls:e,onPropertyChangedObservable:n,onFontsParsedObservable:this.props.onFontsParsedObservable,globalState:this.props.globalState}),(0,L.jsx)("hr",{}),(0,L.jsx)(h,{label:"BUTTON",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(v,{tooltip:"Add TextBlock",icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMTguMjMsMTQuNTdhNC40OCw0LjQ4LDAsMSwxLTQuNDcsNC40OEE0LjQ4LDQuNDgsMCwwLDEsMTguMjMsMTQuNTdabTAsMS42M2gtLjA3YS40LjQsMCwwLDAtLjMzLjMydjIuMTFIMTUuNzFhLjQxLjQxLDAsMCwwLS4zMi4zMnYuMTVhLjQyLjQyLDAsMCwwLC4zMi4zM2gyLjExdjIuMTFhLjQuNCwwLDAsMCwuMzMuMzNoLjE0YS40LjQsMCwwLDAsLjMzLS4zM1YxOS40NWgyLjExYS40Mi40MiwwLDAsMCwuMzItLjMzVjE5YS40MS40MSwwLDAsMC0uMzItLjMySDE4LjY0VjE2LjUzYS40LjQsMCwwLDAtLjMzLS4zMlptLTUuNDcsMi44NWE1LjQ0LDUuNDQsMCwwLDEsLjgyLTIuODhWNy43aDMuODV2MWEuNjEuNjEsMCwwLDAsMS4yMiwwVjcuMDlBLjYxLjYxLDAsMCwwLDE4LDYuNDhINy45MWEuNjEuNjEsMCwwLDAtLjYxLjYxVjguNzFhLjYxLjYxLDAsMSwwLDEuMjEsMHYtMWgzLjg1VjE4LjI0SDExLjE1YS42MS42MSwwLDEsMCwwLDEuMjFoMS42M0MxMi43NywxOS4zMiwxMi43NiwxOS4xOCwxMi43NiwxOS4wNVoiIHN0eWxlPSJmaWxsOiMzMzMiLz48L3N2Zz4=",shortcut:"",isActive:!1,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sMS40MywwLDAsMSwxLjQzLDEuNDN2Ni4zNmE1LjI3LDUuMjcsMCwwLDEsMS4yMi41MlY4LjI4YTIuNjUsMi42NSwwLDAsMC0yLjY1LTIuNjVIOS40NEEyLjY1LDIuNjUsMCwwLDAsNi43OSw4LjI4djkuMzdBMi42NSwyLjY1LDAsMCwwLDkuNDQsMjAuM2gzLjg1QzEzLjI4LDIwLjE3LDEzLjI2LDIwLDEzLjI2LDE5LjlaIiBzdHlsZT0iZmlsbDojMzMzIi8+PC9zdmc+",shortcut:"",isActive:!1,onClick:()=>{o("ButtonImage")}})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:ds,label:"Stroke Weight"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"",target:s,propertyName:"thickness",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),min:0,digits:2})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:Ss,label:"Corner Radius"}),(0,L.jsx)(N,{lockObject:t,label:"",target:s,propertyName:"cornerRadius",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),arrows:!0,min:0,digits:2})]}),(0,L.jsx)(Ns,{containers:e,onPropertyChangedObservable:n})]})}}class Gs{static CreateControlFromString(e){let t;switch(e){case"Slider":return t=new a.Slider("Slider"),t.isPointerBlocker=!0,t.width="120px",t.height="30px",t;case"Checkbox":return t=new a.Checkbox("Checkbox"),t.width="20px",t.height="20px",t.color="#cccccc",t;case"ColorPicker":return t=new a.ColorPicker("ColorPicker"),t.isPointerBlocker=!0,t.width="10%",t.height="10%",t;case"Ellipse":return t=new a.Ellipse("Ellipse"),t.color="#000000",t.background="#cccccc",t.isPointerBlocker=!0,t.thickness=1,t;case"Rectangle":return t=new a.Rectangle("Rectangle"),t.color="#000000",t.background="#cccccc",t.isPointerBlocker=!0,t.thickness=1,t;case"Line":return t=new a.Line("Line"),t.x1=0,t.y1=1024,t.y2=512,t.x2=512,t.lineWidth=2,t.isPointerBlocker=!0,t.isHitTestVisible=!0,t.color="#000000",t;case"TextBlock":return t=new a.TextBlock("Textblock"),t.text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam sed.",t.color="#000000",t.fontSize=20,t.resizeToFit=!0,t.isPointerBlocker=!0,t;case"ImageButton":return t=a.Button.CreateImageButton("Button","Click Me",Gs.ImageControlDefaultUrl),t.background="#333333",t.color="#ffffff",t.isPointerBlocker=!0,t.width="120px",t.height="40px",t;case"VirtualKeyboard":return t=a.VirtualKeyboard.CreateDefaultLayout("VirtualKeyboard"),t.addKeysRow(["1","2","3","←"]),t;case"Image":return t=new a.Image("Image",Gs.ImageControlDefaultUrl),t.width="512px",t.height="512px",t.autoScale=!0,t.color="transparent",t.isPointerBlocker=!0,t;case"ButtonImage":return t=new a.Image("Image",Gs.ImageControlDefaultUrl),t.width="100%",t.height="100%",t.color="transparent",t.isPointerBlocker=!0,t;case"InputText":return t=new a.InputText("InputText"),t.maxWidth=.6,t.text="Input Text",t.background="#333333",t.color="#ffffff",t.isPointerBlocker=!0,t.width="160px",t.height="40px",t;case"InputPassword":return t=new a.InputPassword("InputPassword"),t.maxWidth=.6,t.text="Password",t.background="#333333",t.color="#ffffff",t.isPointerBlocker=!0,t.width="160px",t.height="40px",t;case"Grid":return t=new a.Grid("Grid"),t.addColumnDefinition(1,!1),t.addRowDefinition(1,!1),t.isPointerBlocker=!0,t;case"DisplayGrid":return t=new a.DisplayGrid("DisplayGrid"),t;case"StackPanel":return t=new a.StackPanel("StackPanel"),t.width="100%",t.height="100%",t;case"ScrollViewer":return t=new a.ScrollViewer("ScrollViewer"),t.width=.4,t.height=.4,t.background="#CCCCCC",t;case"ImageBasedSlider":return t=new a.ImageBasedSlider("ImageBasedSlider"),t.isPointerBlocker=!0,t.width="120px",t.height="30px",t.isThumbClamped=!0,t.displayThumb=!0,t.backgroundImage=new a.Image("Image","https://playground.babylonjs.com/textures/gui/backgroundImage.png"),t.valueBarImage=new a.Image("Image","https://playground.babylonjs.com/textures/gui/valueImage.png"),t.thumbImage=new a.Image("Image","https://playground.babylonjs.com/textures/gui/thumb.png"),t;case"RadioButton":return t=new a.RadioButton("RadioButton"),t.isPointerBlocker=!0,t.width="20px",t.height="20px",t.color="#CCCCCC",t.background="#333333",t;case"Button":return t=a.Button.CreateSimpleButton("Button","Click Me"),t.background="#333333",t.color="#ffffff",t.isPointerBlocker=!0,t.width="120px",t.height="40px",t;default:throw"Error: control type not recognized"}}}Gs.ImageControlDefaultUrl="https://assets.babylonjs.com/textures/Checker_albedo.png";var Zs=s(788),_s={};_s.styleTagTransform=ho(),_s.setAttributes=po(),_s.insert=uo().bind(null,"head"),_s.domAPI=lo(),_s.insertStyleElement=Lo(),ro()(Zs.A,_s),Zs.A&&Zs.A.locals&&Zs.A.locals;const Ws=[{className:"Rectangle",icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMTAuMywxNi4zNmEzLjY0LDMuNjQsMCwwLDEsMy42NC0zLjY0SDI2LjA2YTMuNjQsMy42NCwwLDAsMSwzLjY0LDMuNjR2Ny4yOGEzLjY0LDMuNjQsMCwwLDEtMy42NCwzLjY0SDEzLjk0YTMuNjQsMy42NCwwLDAsMS0zLjY0LTMuNjRabTMuNjQtMi40MmEyLjQyLDIuNDIsMCwwLDAtMi40MywyLjQydjcuMjhhMi40MiwyLjQyLDAsMCwwLDIuNDMsMi40MkgyNi4wNmEyLjQyLDIuNDIsMCwwLDAsMi40My0yLjQyVjE2LjM2YTIuNDIsMi40MiwwLDAsMC0yLjQzLTIuNDJaIiBzdHlsZT0iZmlsbDojZmZmIi8+PC9zdmc+"},{className:"Ellipse",icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPS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IuNjIsMi42MiwwLDAsMC0yLjYyLDIuNjJaTTE0LDE1LjM2QTEuNDEsMS40MSwwLDAsMSwxNS4zNiwxNGg5LjI4YTEuNDEsMS40MSwwLDAsMSwxLjQxLDEuNDF2OS4yOGExLjQxLDEuNDEsMCwwLDEtMS40MSwxLjQxSDE1LjM2QTEuNDEsMS40MSwwLDAsMSwxNCwyNC42NFoiIHN0eWxlPSJmaWxsOiNmZmYiLz48L3N2Zz4="},{className:"Line",icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMTAuMywyMGEuNjEuNjEsMCwwLDEsLjYxLS42MUgyOS4wOWEuNjEuNjEsMCwxLDEsMCwxLjIySDEwLjkxQS42MS42MSwwLDAsMSwxMC4zLDIwWiIgc3R5bGU9ImZpbGw6I2ZmZiIvPjwvc3ZnPg=="},{className:"TextBlock",icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMTQuMzMsMTQuMTJhLjYxLjYxLDAsMCwxLC42LS42MUgyNS4wN2EuNjEuNjEsMCwwLDEsLjYuNjF2MS42MmEuNjEuNjEsMCwxLDEtMS4yMSwwdi0xSDIwLjYxVjI1LjI3aDEuMjFhLjYxLjYxLDAsMCwxLC42MS42MS42MS42MSwwLDAsMS0uNjEuNjFIMTguMThhLjYxLjYxLDAsMCwxLS42MS0uNjEuNjEuNjEsMCwwLDEsLjYxLS42MWgxLjIxVjE0LjczSDE1LjU0djFhLjYxLjYxLDAsMSwxLTEuMjEsMFoiIHN0eWxlPSJmaWxsOiNmZmYiLz48L3N2Zz4="},{className:"InputText",icon:"data:image/svg+xml;base64,PH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MCwxLDEtLjgyLS44MlptLTQuODgsMGEuODIuODIsMCwwLDEsLjgyLjgyLjgyLjgyLDAsMSwxLS44Mi0uODJabS0yLjQ0LDBhLjgyLjgyLDAsMCwxLC44Mi44Mi44Mi44MiwwLDAsMS0uODIuODEuODEuODEsMCwwLDEtLjgxLS44MUEuODIuODIsMCwwLDEsMTYuMzQsMTkuMThabTQuODksMEEuODIuODIsMCwwLDEsMjIsMjBhLjgxLjgxLDAsMCwxLS44MS44MS44Mi44MiwwLDAsMS0uODItLjgxQS44Mi44MiwwLDAsMSwyMS4yMywxOS4xOFptLTYuMTEtMi40NGEuODIuODIsMCwwLDEsLjgxLjgyLjgxLjgxLDAsMCwxLS44MS44MS44Mi44MiwwLDAsMS0uODItLjgxQS44Mi44MiwwLDAsMSwxNS4xMiwxNi43NFptMi40NCwwYS44Mi44MiwwLDAsMSwuODEuODIuODEuODEsMCwwLDEtLjgxLjgxLjgyLjgyLDAsMCwxLS44Mi0uODFBLjgyLjgyLDAsMCwxLDE3LjU2LDE2Ljc0Wm0yLjQ0LDBhLjgyLjgyLDAsMCwxLC44MS44Mi44MS44MSwwLDAsMS0uODEuODEuODIuODIsMCwwLDEtLjgyLS44MUEuODIuODIsMCwwLDEsMjAsMTYuNzRabTIuNDQsMGEuODIuODIsMCwwLDEsLjgxLjgyLjgxLjgxLDAsMSwxLTEuNjIsMEEuODIuODIsMCwwLDEsMjIuNDQsMTYuNzRabTIuNDQsMGEuODIuODIsMCwwLDEsLjgyLjgyLjgyLjgyLDAsMCwxLS44Mi44MS44MS44MSwwLDAsMS0uODEtLjgxQS44Mi44MiwwLDAsMSwyNC44OCwxNi43NFoiIHN0eWxlPSJmaWxsOiNmZmYiLz48L3N2Zz4="},{className:"ColorPicker",icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48c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this.props.globalState.guiTexture.serializeContent());C.DownloadAsFile(this.props.globalState.hostDocument,e,"guiTexture.json")}catch(e){this.props.globalState.hostWindow.alert("Unable to save your GUI"),o.Tools.Error("Unable to save your GUI")}},this.saveSelectedControlLocally=()=>{try{const e={controls:[]};for(const t of this.props.globalState.selectedControls){const n={};t.serialize(n),e.controls.push(n)}const t=JSON.stringify(e);C.DownloadAsFile(this.props.globalState.hostDocument,t,"guiControl.json")}catch(e){this.props.globalState.hostWindow.alert("Unable to save your selected Control"),o.Tools.Error("Unable to save your selected Control")}},this.saveToSnippetServerHelper=(e,t)=>new Promise(((n,s)=>{const i=new XMLHttpRequest;i.onreadystatechange=()=>{if(4==i.readyState)if(200==i.status){const e=JSON.parse(i.responseText),o=t.snippetId;t.snippetId=e.id,e.version&&"0"!=e.version&&(t.snippetId+="#"+e.version);const s=window;s.Playground&&o&&s.Playground.onRequestCodeChangeObservable.notifyObservers({regex:new RegExp(o,"g"),replace:t.snippetId}),n(t.snippetId)}else s("Unable to save your GUI")};const r=(new TextEncoder).encode(e);let l="";for(let e=0;e<r.length;e++)l+=String.fromCharCode(r[e]);const c={gui:e,encodedGui:l!==e?(0,o.EncodeArrayBufferToBase64)(r):void 0};i.open("POST",a.AdvancedDynamicTexture.SnippetUrl+(t.snippetId?"/"+t.snippetId:""),!0),i.setRequestHeader("Content-Type","application/json");const u={payload:JSON.stringify(c),name:"",description:"",tags:""};i.send(JSON.stringify(u))})),this.saveToSnippetServer=async()=>{const e=this.props.globalState.guiTexture,t=JSON.stringify(e.serializeContent());(this.props.globalState.customSave?.action||this.saveToSnippetServerHelper)(t,e).then((t=>{e.snippetId=t;const n=`GUI saved with ID: ${e.snippetId}`;this.props.globalState.hostWindow.navigator.clipboard?this.props.globalState.hostWindow.navigator.clipboard.writeText(e.snippetId).then((()=>{this.props.globalState.hostWindow.alert(`${n}. The ID was copied to your clipboard.`)})).catch((()=>{this.props.globalState.hostWindow.alert(n)})):this.props.globalState.hostWindow.alert(n),this.props.globalState.onBuiltObservable.notifyObservers()})).catch((e=>{this.props.globalState.hostWindow.alert(e)})),this.forceUpdate()},this._lockObject=new r,this.props.globalState.lockObject=this._lockObject,this.props.globalState.onSaveObservable.add((()=>{this.save(this.saveLocally)})),this.props.globalState.onSaveSelectedControl.add((()=>{this.save(this.saveSelectedControlLocally)})),this.props.globalState.onSnippetSaveObservable.add((()=>{this.save(this.saveToSnippetServer)})),this.props.globalState.onSnippetLoadObservable.add((()=>{this.loadFromSnippet()})),this.props.globalState.onPropertyGridUpdateRequiredObservable.add((()=>{this.forceUpdate()})),this.props.globalState.onLoadObservable.add((e=>this.load(e))),this.props.globalState.onControlLoadObservable.add((e=>this.loadControl(e)))}componentDidMount(){this.props.globalState.onSelectionChangedObservable.add((()=>{this.forceUpdate()})),this.props.globalState.onResizeObservable.add((()=>{this.forceUpdate()})),this._onBuiltObserver=this.props.globalState.onBuiltObservable.add((()=>{this.forceUpdate()})),this.props.globalState.onPropertyChangedObservable.add((()=>this.forceUpdate()))}componentWillUnmount(){window.clearInterval(this._timerIntervalId),this.props.globalState.onBuiltObservable.remove(this._onBuiltObserver)}load(e){o.Tools.ReadFile(e,(e=>{const t=new TextDecoder("utf-8");this.props.globalState.workbench.loadFromJson(JSON.parse(t.decode(e))),this.props.globalState.setSelection([])}),void 0,!0)}loadControl(e){o.Tools.ReadFile(e,(e=>{const t=new TextDecoder("utf-8");this.props.globalState.workbench.loadControlFromJson(JSON.parse(t.decode(e)))}),void 0,!0)}save(e){this.props.globalState.workbench.removeEditorTransformation();const t=this.props.globalState.guiTexture.rootContainer.getDescendants();for(const e of t)this.props.globalState.workbench.removeEditorBehavior(e);const n=this.props.globalState.workbench.guiSize;this.props.globalState.guiTexture.scaleTo(n.width,n.height),e();for(const e of t)this.props.globalState.workbench.addEditorBehavior(e)}loadFromSnippet(){const e=this.props.globalState.hostWindow.prompt("Please enter the snippet ID to use");e&&this.props.globalState.workbench.loadFromSnippet(e)}renderNode(e){const t=e[0];return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{id:"header",children:[(0,L.jsx)("img",{id:"logo",src:this.renderControlIcon(e)}),(0,L.jsx)("div",{id:"title",children:(0,L.jsx)(I,{noUnderline:!0,lockObject:this._lockObject,target:y(e,this.props.globalState.onPropertyChangedObservable),propertyName:"name",onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable})})]}),this.renderProperties(e),"Grid"===t?.parent?.typeName&&(0,L.jsx)(Bs,{control:t,onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable,lockObject:this._lockObject})]})}getControlsCommonClassName(e){if(0===e.length)return"";const t=e[0].getClassName();for(const n of e)if(n.getClassName()!==t)return"";return t}renderProperties(e){if(0===e.length)return;switch(this.getControlsCommonClassName(e)){case"TextBlock":{const t=e;return(0,L.jsx)(gs,{textBlocks:t,lockObject:this._lockObject,onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable,onFontsParsedObservable:this.props.globalState.onFontsParsedObservable,globalState:this.props.globalState})}case"InputText":{const t=e;return(0,L.jsx)(js,{inputTexts:t,lockObject:this._lockObject,onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable,onFontsParsedObservable:this.props.globalState.onFontsParsedObservable,globalState:this.props.globalState})}case"ColorPicker":{const t=e;return(0,L.jsx)(ms,{colorPickers:t,lockObject:this._lockObject,onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable,onFontsParsedObservable:this.props.globalState.onFontsParsedObservable,globalState:this.props.globalState})}case"Image":{const t=e;return(0,L.jsx)(fs,{images:t,lockObject:this._lockObject,onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable,onFontsParsedObservable:this.props.globalState.onFontsParsedObservable,globalState:this.props.globalState})}case"Slider":{const t=e;return(0,L.jsx)(As,{sliders:t,lockObject:this._lockObject,onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable,onFontsParsedObservable:this.props.globalState.onFontsParsedObservable,globalState:this.props.globalState})}case"ImageBasedSlider":{const t=e;return(0,L.jsx)(xs,{imageBasedSliders:t,lockObject:this._lockObject,onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable,onFontsParsedObservable:this.props.globalState.onFontsParsedObservable,globalState:this.props.globalState})}case"Rectangle":return(0,L.jsx)(Ds,{rectangles:e,lockObject:this._lockObject,onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable,onFontsParsedObservable:this.props.globalState.onFontsParsedObservable});case"StackPanel":{const t=e;return(0,L.jsx)(Is,{stackPanels:t,lockObject:this._lockObject,onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable,onFontsParsedObservable:this.props.globalState.onFontsParsedObservable,globalState:this.props.globalState})}case"Grid":{const t=e;return(0,L.jsx)(zs,{grids:t,lockObject:this._lockObject,onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable,onFontsParsedObservable:this.props.globalState.onFontsParsedObservable,globalState:this.props.globalState})}case"ScrollViewer":{const t=e;return(0,L.jsx)(Os,{scrollViewers:t,lockObject:this._lockObject,onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable,onFontsParsedObservable:this.props.globalState.onFontsParsedObservable,globalState:this.props.globalState})}case"Ellipse":{const t=e;return(0,L.jsx)(ks,{ellipses:t,lockObject:this._lockObject,onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable,onFontsParsedObservable:this.props.globalState.onFontsParsedObservable,globalState:this.props.globalState})}case"Checkbox":{const t=e;return(0,L.jsx)(Ys,{checkboxes:t,lockObject:this._lockObject,onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable,onFontsParsedObservable:this.props.globalState.onFontsParsedObservable,globalState:this.props.globalState})}case"RadioButton":{const t=e;return(0,L.jsx)(Ls,{radioButtons:t,lockObject:this._lockObject,onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable,onFontsParsedObservable:this.props.globalState.onFontsParsedObservable,globalState:this.props.globalState})}case"Line":{const t=e;return(0,L.jsx)(ps,{lines:t,lockObject:this._lockObject,onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable,onFontsParsedObservable:this.props.globalState.onFontsParsedObservable,globalState:this.props.globalState})}case"DisplayGrid":{const t=e;return(0,L.jsx)(Rs,{displayGrids:t,lockObject:this._lockObject,onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable,onFontsParsedObservable:this.props.globalState.onFontsParsedObservable,globalState:this.props.globalState})}case"Button":{const t=e;return(0,L.jsx)(Us,{rectangles:t,lockObject:this._lockObject,onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable,onAddComponent:e=>{for(const n of t){const t=Gs.CreateControlFromString(e);this.props.globalState.workbench.addEditorBehavior(t),n.addControl(t),this.props.globalState.select(t)}},onFontsParsedObservable:this.props.globalState.onFontsParsedObservable,globalState:this.props.globalState},"buttonMenu")}}const t=e;return(0,L.jsx)(Ps,{controls:t,lockObject:this._lockObject,onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable,onFontsParsedObservable:this.props.globalState.onFontsParsedObservable,globalState:this.props.globalState})}renderControlIcon(e){const t=e[0].getClassName();for(const n of e)if(n.getClassName()!==t)return es;const n=Ws.find((e=>e.className===t));return n?n.icon:es}render(){if(null==this.props.globalState.guiTexture)return null;const e=this.props.globalState.selectedControls.length>0?this.props.globalState.selectedControls:[this.props.globalState.workbench.trueRootContainer];return(0,L.jsx)("div",{id:"ge-propertyTab",children:this.renderNode(e)})}}class Qs extends t.Component{render(){return n.createPortal(this.props.children,this.props.globalState.hostElement)}}var Fs=s(548),Vs={};Vs.styleTagTransform=ho(),Vs.setAttributes=po(),Vs.insert=uo().bind(null,"head"),Vs.domAPI=lo(),Vs.insertStyleElement=Lo(),ro()(Fs.A,Vs),Fs.A&&Fs.A.locals&&Fs.A.locals;class Js extends t.Component{constructor(e){super(e),this.state={logs:[]}}componentDidMount(){this.props.globalState.onLogRequiredObservable.add((e=>{const t=this.state.logs.map((e=>e));t.push(e),this.setState({logs:t})}))}componentDidUpdate(){const e=n.findDOMNode(this.refs["log-console"]);e&&(e.scrollTop=e.scrollHeight)}render(){const e=new Date,t=e.getHours(),n=e.getMinutes(),o=e.getSeconds();return(0,L.jsx)("div",{id:"log-console",ref:"log-console",children:this.state.logs.map(((e,s)=>(0,L.jsx)("div",{className:"log"+(e.isError?" error":""),children:t+":"+n+":"+o+": "+e.message},s)))})}}var Xs=s(124),qs={};qs.styleTagTransform=ho(),qs.setAttributes=po(),qs.insert=uo().bind(null,"head"),qs.domAPI=lo(),qs.insertStyleElement=Lo(),ro()(Xs.A,qs);const Ks=Xs.A&&Xs.A.locals?Xs.A.locals:void 0,$s=e=>{const[n,o]=(0,t.useState)(e.message),[s,i]=(0,t.useState)(e.isError);return(0,t.useEffect)((()=>{o(e.message),i(e.isError)}),[e]),n?(0,L.jsx)("div",{className:Ks["dialog-container"],children:(0,L.jsxs)("div",{className:Ks.dialog,children:[(0,L.jsx)("div",{className:Ks["dialog-message"],children:n}),(0,L.jsx)("div",{className:Ks["dialog-buttons"],children:(0,L.jsx)("div",{className:Do({"dialog-button-ok":!0,error:s},Ks),onClick:()=>{o(""),e.onClose&&e.onClose()},children:"OK"})})]})}):null};class ei extends t.Component{constructor(e){super(e),this.state={value:""}}onClick(){this.props.onClick&&!this.props.renaming&&this.props.onClick()}onBlur(){this.props.setRenaming(!1)}render(){const e=this.props.renaming?this.state.value:this.props.label||"No Name";return(0,L.jsx)("div",{className:"title",onClick:()=>this.onClick(),children:this.props.renaming?(0,L.jsx)("input",{type:"text",onBlur:()=>this.onBlur(),autoFocus:!0,value:e,onChange:e=>{this.props.onChange(e.target.value),this.setState({value:e.target.value})},onKeyDown:e=>{"Enter"===e.key&&this.onBlur()},className:"titleText"}):(0,L.jsx)("div",{className:"titleText",onDoubleClick:()=>{this.props.setRenaming(!0),this.setState({value:e})},children:e})})}}class ti extends t.Component{constructor(e){super(e),this.state={popupVisible:!1},this._extensionRef=t.createRef()}showPopup(){this.setState({popupVisible:!0})}componentDidMount(){this._popup&&this._popup.focus()}componentDidUpdate(){this._popup&&this._popup.focus()}render(){if(!this.props.extensibilityGroups)return null;const e=[];for(const t of this.props.extensibilityGroups)t.predicate(this.props.target)&&e.push(...t.entries);return 0===e.length?null:(0,L.jsxs)("div",{ref:this._extensionRef,className:"extensions",onClick:()=>this.showPopup(),children:[(0,L.jsx)("div",{title:"Additional options",className:"icon",children:(0,L.jsx)(Vn,{icon:to})}),(0,L.jsx)("div",{ref:e=>{this._popup=e},tabIndex:-1,className:this.state.popupVisible?"popup show":"popup",onBlur:()=>this.setState({popupVisible:!1}),children:e.map((e=>(0,L.jsx)("div",{className:"popupMenu",onClick:()=>e.action(this.props.target),children:e.label},e.label)))})]})}}class ni extends t.Component{constructor(e){super(e);const t=this.props.control;this.state={isActive:t.isHighlighted,isVisible:t.isVisible,isRenaming:!1},this._onIsVisibleChangedObserver=t.onIsVisibleChangedObservable.add((e=>{this.setState({isVisible:e})}))}componentWillUnmount(){this._onIsVisibleChangedObserver&&this.props.control.onIsVisibleChangedObservable.remove(this._onIsVisibleChangedObserver)}highlight(){const e=this.props.control;e.isHighlighted=!e.isHighlighted,this.setState({isActive:e.isHighlighted})}switchVisibility(){const e=!this.state.isVisible;this.setState({isVisible:e}),this.props.control.isVisible=e}onRename(e){this.props.control.name=e,this.props.globalState.onPropertyGridUpdateRequiredObservable.notifyObservers()}render(){const e=this.props.control;let t="";"Grid"===e.parent?.typeName&&(t=e.parent.getChildCellInfo(this.props.control));const n=this.props.globalState.draggedControl===e,o=Ws.find((t=>t.className===e.getClassName()));return(0,L.jsxs)("div",{className:"controlTools",children:[o&&(0,L.jsx)("div",{className:"controlType icon",children:(0,L.jsx)("img",{src:o.icon,alt:o.className})}),(0,L.jsx)(ei,{label:e.name,bracket:t,onClick:()=>this.props.onClick(),onChange:e=>this.onRename(e),setRenaming:e=>{this.setState({isRenaming:e}),this.props.onRenamingStateChanged(e)},renaming:this.state.isRenaming}),!n&&this.props.isDragOver&&this.props.dragOverLocation==d.CENTER&&e instanceof a.Container&&(0,L.jsx)(L.Fragment,{children:(0,L.jsx)("div",{className:"makeChild icon",onClick:()=>this.highlight(),title:"Make Child",children:(0,L.jsx)("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMTguNjcsMTQuNzdsLS4wNywwYS42MS42MSwwLDAsMC0uNzksMEwxNS42MSwxN1YxMS40OEEuNi42LDAsMCwwLDE1LDExaC0uMDhhLjYuNiwwLDAsMC0uNTMuNlYxN2wtMi4yLTIuMjEtLjA3LS4wNmEuNjEuNjEsMCwwLDAtLjc5LjkybDMuMjQsMy4yNC4wNy4wNmEuNjIuNjIsMCwwLDAsLjc5LS4wNmwzLjI0LTMuMjQsMC0uMDdBLjYxLjYxLDAsMCwwLDE4LjY3LDE0Ljc3WiIgc3R5bGU9ImZpbGw6IzIxMjEyMSIvPjxwYXRoIGQ9Ik0xMC4zNSw3LjcyYTIuNjIsMi42MiwwLDAsMC0yLjYzLDIuNjN2OS4zYTIuNjIsMi42MiwwLDAsMCwyLjYzLDIuNjNoOS4zYTIuNjIsMi42MiwwLDAsMCwyLjYzLTIuNjN2LTkuM2EyLjYyLDIuNjIsMCwwLDAtMi42My0yLjYzWk04LjkzLDEwLjM1YTEuNDMsMS40MywwLDAsMSwxLjQyLTEuNDJoOS4zYTEuNDMsMS40MywwLDAsMSwxLjQyLDEuNDJ2OS4zYTEuNDMsMS40MywwLDAsMS0xLjQyLDEuNDJoLTkuM2ExLjQzLDEuNDMsMCwwLDEtMS40Mi0xLjQyWiIgc3R5bGU9ImZpbGw6IzIxMjEyMSIvPjwvc3ZnPg=="})})}),!this.state.isRenaming&&this.props.isHovered&&null===this.props.globalState.draggedControl&&this.props.dragOverLocation==d.NONE&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{className:"addComponent icon",onClick:()=>this.highlight(),title:"Add component (Not Implemented)",children:(0,L.jsx)("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMTUsMTFhLjYxLjYxLDAsMCwxLC42MS42MXYyLjgzaDIuODNhLjYxLjYxLDAsMCwxLDAsMS4yMkgxNS42MXYyLjgzYS42MS42MSwwLDAsMS0xLjIyLDBWMTUuNjFIMTEuNTZhLjYxLjYxLDAsMSwxLDAtMS4yMmgyLjgzVjExLjU2QS42MS42MSwwLDAsMSwxNSwxMVoiIHN0eWxlPSJmaWxsOiMzMzMiLz48cGF0aCBkPSJNNy43MSwxMC4zNGEyLjYzLDIuNjMsMCwwLDEsMi42My0yLjYzaDkuMzJhMi42MywyLjYzLDAsMCwxLDIuNjMsMi42M3Y5LjMyYTIuNjMsMi42MywwLDAsMS0yLjYzLDIuNjNIMTAuMzRhMi42MywyLjYzLDAsMCwxLTIuNjMtMi42M1ptMi42My0xLjQxYTEuNDEsMS40MSwwLDAsMC0xLjQxLDEuNDF2OS4zMmExLjQxLDEuNDEsMCwwLDAsMS40MSwxLjQxaDkuMzJhMS40MSwxLjQxLDAsMCwwLDEuNDEtMS40MVYxMC4zNGExLjQxLDEuNDEsMCwwLDAtMS40MS0xLjQxWiIgc3R5bGU9ImZpbGw6IzMzMyIvPjwvc3ZnPg=="})}),(0,L.jsx)("div",{className:"visibility icon",onClick:()=>this.switchVisibility(),title:"Set isVisible",children:(0,L.jsx)("img",{src:this.state.isVisible?Ko:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMTUsMTMuMTlhMy4yMywzLjIzLDAsMSwxLTMuMjIsMy4yMkEzLjIyLDMuMjIsMCwwLDEsMTUsMTMuMTlabTAsMS4yMWEyLDIsMCwxLDAsMiwyQTIsMiwwLDAsMCwxNSwxNC40Wm0wLTRhOC4wNiw4LjA2LDAsMCwxLDcuODIsNi4xLjYxLjYxLDAsMCwxLTEuMTguMjksNi44NCw2Ljg0LDAsMCwwLTEzLjI4LDAsLjYxLjYxLDAsMCwxLTEuMTgtLjNBOC4wNyw4LjA3LDAsMCwxLDE1LDEwLjM2WiIgc3R5bGU9ImZpbGw6Izg4OCIvPjwvc3ZnPg=="})})]}),(0,L.jsx)(ti,{target:e,extensibilityGroups:this.props.extensibilityGroups})]})}}const oi="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDE1IDMwIj48cGF0aCBkPSJNNy4xLDE2LjYzLDUuMSwxNGEuNS41LDAsMCwxLC40LS44aDRhLjUuNSwwLDAsMSwuNC44bC0yLDIuNjZBLjUuNSwwLDAsMSw3LjEsMTYuNjNaIiBzdHlsZT0iZmlsbDojOGU4ZThlIi8+PC9zdmc+",si="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDE1IDMwIj48cGF0aCBkPSJNOS4xMywxNS40bC0yLjY2LDJhLjUuNSwwLDAsMS0uOC0uNFYxM2EuNS41LDAsMCwxLC44LS40bDIuNjYsMkEuNS41LDAsMCwxLDkuMTMsMTUuNFoiIHN0eWxlPSJmaWxsOiM4ZThlOGUiLz48L3N2Zz4=";class ii extends t.Component{constructor(e){super(e),this._secondDragEnter=!1,this.state={expand:!0,dragOver:!1,dragOverLocation:d.NONE,isHovered:!1,isSelected:this.props.selectedEntities.includes(this.props.entity),blockDrag:!1},this._onSelectionChangedObservable=e.globalState.onSelectionChangedObservable.add((()=>{this.setState({isSelected:this.props.globalState.selectedControls.includes(this.props.entity)})})),this._onDraggingEndObservable=e.globalState.onDraggingEndObservable.add((()=>{this.setState({dragOverLocation:d.NONE})})),this._onDraggingStartObservable=e.globalState.onDraggingStartObservable.add((()=>{this.forceUpdate()}))}switchExpandedState(){this.props.entity.reservedDataStore.setExpandedState(!this.props.entity.reservedDataStore.isExpanded),this.setState({expand:!this.state.expand})}shouldComponentUpdate(e,t){return e.selectedEntities.includes(e.entity)?(t.isSelected=!0,!0):(t.isSelected=!1,ns.LookForItems(e.entity,e.selectedEntities),!0)}scrollIntoView(){const e=n.findDOMNode(this);e&&e.scrollIntoView(!1)}componentWillUnmount(){this.props.globalState.onSelectionChangedObservable.remove(this._onSelectionChangedObservable),this.props.globalState.onDraggingEndObservable.remove(this._onDraggingEndObservable),this.props.globalState.onDraggingStartObservable.remove(this._onDraggingStartObservable)}onSelect(){const e=this.props.entity;this.props.globalState.select(e),this.props.globalState.selectionLock=!0}renderChildren(e,t=!0){const n=this.props.entity;if(!n.getChildren&&!n.children||!e)return null;const o=ns.SortAndFilter(n,n.getChildren?n.getChildren():n.children);return"StackPanel"!==n.typeName&&"VirtualKeyboard"!==n.typeName||o.reverse(),o.map(((e,n)=>"Art-Board-Background"==e.name?null:(0,L.jsx)(ii,{globalState:this.props.globalState,mustExpand:this.props.mustExpand,extensibilityGroups:this.props.extensibilityGroups,selectedEntities:this.props.selectedEntities,offset:this.props.offset+(t?2:0),entity:e,filter:this.props.filter},n)))}render(){if(this.props.entity===this.props.globalState.workbench.trueRootContainer||this.props.entity===this.props.globalState.workbench.visibleRegionContainer||this.props.entity===this.props.globalState.workbench.panAndZoomContainer)return this.renderChildren(!0,!1);const e={paddingLeft:10*(this.props.offset+.5)-20+"px"},t={marginLeft:10*(this.props.offset+.5)-20+"px"};let n=this.props.entity;n.reservedDataStore||(n.reservedDataStore={isExpanded:!0,setExpandedState:e=>n.reservedDataStore.isExpanded=e});const o=n.reservedDataStore.isExpanded||ns.LookForItems(this.props.entity,this.props.selectedEntities);n.reservedDataStore.isExpanded=o;const s=o?(0,L.jsx)("img",{src:oi,className:"icon"}):(0,L.jsx)("img",{src:si,className:"icon"});let i="MultiMaterial"===n.getClassName()?[]:ns.SortAndFilter(n,n.getChildren?n.getChildren():n.children),r=i.length>0;if(this.props.filter){const e=this.props.filter.toLowerCase();if(!n.name||-1===n.name.toLowerCase().indexOf(e)){if(!r)return null;if(n.getDescendants&&0===n.getDescendants(!1,(t=>t.name&&-1!==t.name.toLowerCase().indexOf(e))).length)return null}}let l="itemContainer";l+=this.state.isSelected&&null===this.props.globalState.draggedControl?" selected":"",l+=this.state.isHovered&&null===this.props.globalState.draggedControl?" hover":"",l+=this.state.dragOver&&this.state.dragOverLocation==d.CENTER&&n instanceof a.Container?" parent":"",l+=this.props.globalState.draggedControl===this.props.entity?" dragged":"",l+=this.state.dragOver&&this.state.dragOverLocation==d.ABOVE&&n.parent?" seAbove":"",l+=this.state.dragOver&&this.state.dragOverLocation==d.BELOW&&n.parent?" seBelow":"";const c="itemContainer seAbove"===l||"itemContainer seBelow"===l?t:e;return(0,L.jsxs)("div",{children:[(0,L.jsxs)("div",{className:l,style:c,onPointerUp:()=>{this.onSelect()},onPointerEnter:()=>this.setState({isHovered:!0}),onPointerLeave:()=>this.setState({isHovered:!1}),onDragStart:()=>{this.props.globalState.draggedControl=this.props.entity,this.props.globalState.onDraggingStartObservable.notifyObservers()},onDragEnd:()=>{this.props.globalState.onDraggingEndObservable.notifyObservers()},draggable:n.parent&&!this.state.blockDrag,onDrop:e=>{this.drop(),e.preventDefault()},onDragEnter:e=>{e.preventDefault(),this.dragOver(e)},onDragOver:e=>this.updateDragOverLocation(e),onDragLeave:()=>{this._secondDragEnter?this._secondDragEnter=!1:this.setState({dragOver:!1})},children:[r&&(0,L.jsx)("div",{className:"arrow icon",onClick:e=>{if(this.switchExpandedState(),e.shiftKey)for(;r;)this.renderChildren(!0),n=n.children[0],i="MultiMaterial"===n.getClassName()?[]:ns.SortAndFilter(n,n.getChildren?n.getChildren():n.children),r=i.length>0,n.reservedDataStore.isExpanded=!0},children:s}),(0,L.jsx)(ni,{globalState:this.props.globalState,extensibilityGroups:this.props.extensibilityGroups,control:n,onClick:()=>{},isHovered:this.state.isHovered,isDragOver:this.state.dragOver,dragOverLocation:this.state.dragOverLocation,onRenamingStateChanged:e=>{this.setState({blockDrag:e})}})]}),this.renderChildren(o)]})}dragOver(e){this.updateDragOverLocation(e),this.state.dragOver?this._secondDragEnter=!0:this.setState({dragOver:!0})}updateDragOverLocation(e){const t=e.target.getBoundingClientRect(),n=e.clientY-t.top;this.props.entity instanceof a.Container?n<6.4?this.setState({dragOverLocation:d.ABOVE}):n>25.6?this.setState({dragOverLocation:d.BELOW}):this.setState({dragOverLocation:d.CENTER}):n<16?this.setState({dragOverLocation:d.ABOVE}):this.setState({dragOverLocation:d.BELOW})}drop(){this.props.globalState.onDropObservable.notifyObservers();const e=this.props.entity;this.props.globalState.draggedControl!=e&&(this.props.globalState.draggedControlDirection=this.state.dragOverLocation,this.props.globalState.onParentingChangeObservable.notifyObservers(this.props.entity)),this.props.globalState.draggedControl=null,this.setState({dragOverLocation:d.NONE,dragOver:!1}),this._secondDragEnter=!1}}var ri=s(312);class ai extends t.Component{constructor(e){super(e)}expandAll(){this.props.onExpandAll(!this.props.isExpanded)}render(){const e=this.props.isExpanded?(0,L.jsx)("img",{src:oi,className:"icon"}):(0,L.jsx)("img",{src:si,className:"icon"});return(0,L.jsxs)("div",{className:"expandableHeader",children:[(0,L.jsxs)("div",{className:"text",children:[(0,L.jsx)("div",{className:"arrow icon",onClick:()=>this.props.onClick(),children:e}),(0,L.jsx)("div",{className:"text-value",children:this.props.label})]}),(0,L.jsx)("div",{className:"expandAll icon",onClick:()=>this.expandAll(),title:this.props.isExpanded?"Collapse all":"Expand all",children:e})]})}}class li extends t.Component{constructor(e){super(e)}render(){return(0,L.jsx)("div",{className:"expandableHeader",children:(0,L.jsxs)("div",{className:"text",children:[(0,L.jsx)("div",{className:"arrow icon",children:(0,L.jsx)(Vn,{icon:$n})}),(0,L.jsx)("div",{className:"text-value",children:this.props.label})]})})}}class ci extends t.Component{constructor(e){super(e),this.state={isExpanded:!0,mustExpand:!0}}switchExpandedState(){this.setState({isExpanded:!this.state.isExpanded,mustExpand:!1})}shouldComponentUpdate(e,t){if(!t.isExpanded&&this.state.isExpanded)return!0;const n=e.items;if(n&&n.length)for(const o of n)if(ns.LookForItems(o,e.selectedEntities))return t.isExpanded=!0,!0;return!0}expandAll(e){this.setState({isExpanded:e,mustExpand:e})}renderContextMenu(){return this.props.contextMenuItems?(0,L.jsx)(ri.tz,{id:"contextmenu#"+ci._ContextMenuUniqueIdGenerator++,className:"context-menu",children:this.props.contextMenuItems.map((e=>(0,L.jsx)(ri.Dr,{onClick:()=>e.action(),children:e.label},e.label)))}):(ci._ContextMenuUniqueIdGenerator++,null)}render(){let e=this.props.items;const t={paddingLeft:10*(this.props.offset+.5)+"px"};if(!e){if(!this.props.forceSubitems)return(0,L.jsx)("div",{className:"groupContainer",style:t,children:(0,L.jsx)("div",{children:this.props.label})});e=[]}if(!e.length)return(0,L.jsx)("div",{className:"groupContainer",style:t,children:(0,L.jsxs)(ri.Rc,{id:"contextmenu#"+ci._ContextMenuUniqueIdGenerator,children:[this.renderContextMenu(),(0,L.jsx)(li,{label:this.props.label})]})});if(!this.state.isExpanded)return(0,L.jsx)("div",{className:"groupContainer",style:t,children:(0,L.jsxs)(ri.Rc,{id:"contextmenu#"+ci._ContextMenuUniqueIdGenerator,children:[this.renderContextMenu(),(0,L.jsx)(ai,{isExpanded:!1,label:this.props.label,onClick:()=>this.switchExpandedState(),onExpandAll:e=>this.expandAll(e)})]})});const n=ns.SortAndFilter(null,e)[0].getChildren();return(0,L.jsx)("div",{children:n.map((e=>(0,L.jsx)(ii,{extensibilityGroups:this.props.extensibilityGroups,offset:this.props.offset+1,selectedEntities:this.props.selectedEntities,entity:e,globalState:this.props.globalState,filter:this.props.filter},void 0!==e.uniqueId&&null!==e.uniqueId?e.uniqueId:e.name)))})}}ci._ContextMenuUniqueIdGenerator=0;var ui=s(660),Ai={};Ai.styleTagTransform=ho(),Ai.setAttributes=po(),Ai.insert=uo().bind(null,"head"),Ai.domAPI=lo(),Ai.insertStyleElement=Lo(),ro()(ui.A,Ai),ui.A&&ui.A.locals&&ui.A.locals,t.Component;class di extends t.Component{constructor(e){super(e),this.state={filter:null,selectedEntity:null,scene:this.props.scene?this.props.scene:null},this._onNewSceneObserver=this.props.globalState.onNewSceneObservable.add((e=>{this.setState({scene:e})})),this._onPropertyChangedObservable=this.props.globalState.onPropertyChangedObservable.add((e=>{"name"!==e.property&&"_columnNumber"!==e.property&&"_rowNumber"!==e.property||this.forceUpdate()})),this._onUpdateRequiredObserver=this.props.globalState.onUpdateRequiredObservable.add((()=>{this.forceUpdate()}))}componentDidMount(){this._onSelectionChangeObserver=this.props.globalState.onSelectionChangedObservable.add((e=>{this.state.selectedEntity!==e&&this.setState({selectedEntity:e})})),this.props.globalState.onSelectionChangedObservable.add((()=>{this.forceUpdate()})),this._onParrentingChangeObserver=this.props.globalState.onParentingChangeObservable.add((()=>{this.forceUpdate()}))}componentWillUnmount(){this._onSelectionChangeObserver&&this.props.globalState.onSelectionChangedObservable.remove(this._onSelectionChangeObserver),this._onNewSceneObserver&&this.props.globalState.onNewSceneObservable.remove(this._onNewSceneObserver),this._onParrentingChangeObserver&&this.props.globalState.onParentingChangeObservable.remove(this._onParrentingChangeObserver),this._onPropertyChangedObservable&&this.props.globalState.onPropertyChangedObservable.remove(this._onPropertyChangedObservable),this._onUpdateRequiredObserver&&this.props.globalState.onUpdateRequiredObservable.remove(this._onUpdateRequiredObserver)}filterContent(e){this.setState({filter:e})}findSiblings(e,t,n,o,s){if(!t)return!1;const i=ns.SortAndFilter(e,t);if(!t||0===i.length)return!1;for(const e of i){if(e===n){if(s.found=!0,!o)return s.previousOne&&this.props.globalState.select(s.previousOne),!0}else{if(s.found)return this.props.globalState.select(e),!0;s.previousOne=e}if(e.getChildren&&e.reservedDataStore&&e.reservedDataStore.isExpanded&&this.findSiblings(e,e.getChildren(),n,o,s))return!0}return!1}processKeys(e){if("input"===e.target.localName)return;const t=this.state.scene;let n=!1,s=!1;switch(e.key){case"ArrowUp":n=!0;break;case"ArrowDown":s=!0,n=!0;break;case"Enter":case"ArrowRight":return this.props.globalState.selectedControls.forEach((e=>{const t=e.reservedDataStore;t&&t.setExpandedState&&t.setExpandedState(!0)})),e.preventDefault(),void this.forceUpdate();case"ArrowLeft":return this.props.globalState.selectedControls.forEach((e=>{const t=e.reservedDataStore;o.Logger.Log(t),t&&t.setExpandedState&&t.setExpandedState(!1)})),e.preventDefault(),void this.forceUpdate();case"Delete":case"Backspace":this.props.globalState.deleteSelectedNodes(),this.forceUpdate()}if(n&&(e.preventDefault(),t)){const e=this.props.globalState.selectedControls[this.props.globalState.selectedControls.length-1],n={};this.findSiblings(null,t.rootNodes,e,s,n)||this.findSiblings(null,t.materials,e,s,n)||this.findSiblings(null,t.textures,e,s,n)}}renderContent(){if(!this.state.scene)return null;const e=[this.props.globalState.guiTexture];return(0,L.jsx)("div",{id:"tree",onDrop:()=>{this.props.globalState.onDropObservable.notifyObservers(),this.props.globalState.onParentingChangeObservable.notifyObservers(null)},onDragOver:e=>{e.preventDefault()},onClick:()=>{this.props.globalState.selectionLock?this.props.globalState.selectionLock=!1:this.props.globalState.setSelection([])},onContextMenu:e=>e.preventDefault(),children:e&&e.length>0&&(0,L.jsx)(ci,{globalState:this.props.globalState,extensibilityGroups:this.props.extensibilityGroups,selectedEntities:this.props.globalState.selectedControls,items:e,label:"GUI",offset:1,filter:this.state.filter})})}onClose(){this.props.onClose&&this.props.onClose()}onPopup(){this.props.onPopup&&this.props.onPopup()}render(){return(0,L.jsxs)("div",{id:"ge-sceneExplorer",tabIndex:0,onKeyDown:e=>this.processKeys(e),children:[this.props.children,this.renderContent()]})}}class pi extends t.Component{constructor(e){super(e),this._id=pi._IDGenerator++,this._uploadInputRef=t.createRef()}onChange(e){const t=e.target.files;t&&t.length&&this.props.onClick(t[0]),e.target.value=""}render(){return(0,L.jsxs)("div",{className:"buttonLine",children:[this.props.icon&&(0,L.jsx)("img",{src:this.props.icon,title:this.props.iconLabel,alt:this.props.iconLabel,className:"icon"}),(0,L.jsx)("label",{htmlFor:"file-upload"+this._id,className:"file-upload",children:this.props.label}),(0,L.jsx)("input",{ref:this._uploadInputRef,id:"file-upload"+this._id,type:"file",accept:this.props.accept,onChange:e=>this.onChange(e)})]})}}pi._IDGenerator=0;class Mi extends t.Component{constructor(e){super(e),this.state={isExpanded:!1,activeState:""}}render(){return(0,L.jsxs)(L.Fragment,{children:[this.state.isExpanded&&(0,L.jsx)("div",{className:"command-dropdown-blocker",onClick:()=>{this.setState({isExpanded:!1})}}),(0,L.jsxs)("div",{className:"command-dropdown-root",children:[(0,L.jsxs)("div",{className:"command-dropdown"+(this.state.isExpanded?" activated":""),title:this.props.tooltip,onClick:()=>{this.setState({isExpanded:!1});const e=!this.state.isExpanded,t=document.getElementById("embed-host");t&&(t.style.zIndex=e?"0":"10"),this.setState({isExpanded:e})},children:[this.props.icon&&(0,L.jsx)("div",{className:"command-dropdown-icon",children:(0,L.jsx)("img",{src:this.props.icon})}),!this.props.icon&&(0,L.jsx)("div",{className:"command-dropdown-active"})]}),this.state.isExpanded&&(0,L.jsx)("div",{className:"command-dropdown-content sub1"+(this.props.toRight?" toRight":""),children:this.props.items.map((e=>e.fileButton?(0,L.jsx)(pi,{label:e.loadControlButton?"Load control":"Load",onClick:t=>this.props.globalState[e.loadControlButton?"onControlLoadObservable":"onLoadObservable"].notifyObservers(t),accept:".json"},e.label):(0,L.jsxs)("div",{className:"command-dropdown-label"+(e.isActive?" active":""),onClick:()=>{e.onClick?e.subItems||(e.onClick(),this.setState({isExpanded:!1,activeState:e.label})):this.forceUpdate()},title:e.label,children:[!e.icon&&(0,L.jsx)("div",{className:"command-dropdown-label-text",children:(e.isActive?"> ":"")+e.label}),e.icon&&(0,L.jsx)("div",{className:"command-dropdown-icon",children:(0,L.jsx)("img",{src:e.icon})}),e.onCheck&&(0,L.jsx)("input",{type:"checkBox",className:"command-dropdown-label-check",onChange:t=>{this.forceUpdate(),e.onCheck(t.target.checked)},checked:!1}),e.subItems&&(0,L.jsx)("div",{className:"command-dropdown-arrow",children:">"}),e.subItems&&(0,L.jsx)("div",{className:"sub-items ",children:e.subItems.map((t=>(0,L.jsx)("div",{className:"sub-item",onClick:()=>{e.onClick(),this.setState({isExpanded:!1})},children:(0,L.jsx)("div",{className:"sub-item-label",children:t})},t)))})]},e.label)))})]})]})}}var Li=s(463),Ci={};Ci.styleTagTransform=ho(),Ci.setAttributes=po(),Ci.insert=uo().bind(null,"head"),Ci.domAPI=lo(),Ci.insertStyleElement=Lo(),ro()(Li.A,Ci),Li.A&&Li.A.locals&&Li.A.locals;const hi=[{width:1920,height:1080},{width:1366,height:768},{width:1280,height:800},{width:3840,height:2160},{width:750,height:1334},{width:1125,height:2436},{width:1170,height:2532},{width:1284,height:2778},{width:1080,height:2220},{width:1080,height:2340},{width:1024,height:1024},{width:2048,height:2048}],gi=[{label:"Web (1920)",value:0},{label:"Web (1366)",value:1},{label:"Web (1280)",value:2},{label:"Web (3840)",value:3},{label:"iPhone 8 (750)",value:4},{label:"iPhone X, 11 (1125)",value:5},{label:"iPhone 12 (1170)",value:6},{label:"iPhone Pro Max (1284)",value:7},{label:"Google Pixel 4 (1080)",value:8},{label:"Google Pixel 5 (1080)",value:9},{label:"Square (1024)",value:10},{label:"Square (2048)",value:11}];class wi extends t.Component{constructor(e){super(e),this._sizeOption=0,this._stopUpdating=!1,this._lockObject=new r,e.globalState.onToolChangeObservable.add((()=>{this.forceUpdate()})),e.globalState.onOutlineChangedObservable.add((()=>{this.forceUpdate()})),e.globalState.onResizeObservable.add((()=>{this.forceUpdate()})),e.globalState.onSelectionChangedObservable.add((()=>{this.forceUpdate()})),e.globalState.onWindowResizeObservable.add((()=>{this.forceUpdate()}))}render(){const e=!this.props.globalState.workbench||this.props.globalState.workbench.pasteDisabled,t=this.props.globalState.workbench?{...this.props.globalState.workbench.guiSize}:{width:0,height:0},n=0===this.props.globalState.selectedControls.length?"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJpY29ucyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiM3Nzc3Nzc7fTwvc3R5bGU+PC9kZWZzPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTE0Ljc2LDE0LjA2djEwLjI3YzAsMS40NiwxLjE4LDIuNjQsMi42NCwyLjY0aDcuMDFjLS4yNSwuNzEtLjkzLDEuMjItMS43MywxLjIyaC01LjI4Yy0yLjEzLDAtMy44Ni0xLjczLTMuODYtMy44NlYxNS43OGMwLS44LC41MS0xLjQ4LDEuMjItMS43M1ptOS45Ni0yLjE0YzEuMDEsMCwxLjgzLC44MiwxLjgzLDEuODN2MTAuNTdjMCwxLjAxLS44MiwxLjgzLTEuODMsMS44M2gtNy4zMmMtMS4wMSwwLTEuODMtLjgyLTEuODMtMS44M1YxMy43NWMwLTEuMDEsLjgyLTEuODMsMS44My0xLjgzaDcuMzJabTAsMS4yMmgtNy4zMmMtLjM0LDAtLjYxLC4yNy0uNjEsLjYxdjEwLjU3YzAsLjM0LC4yNywuNjEsLjYxLC42MWg3LjMyYy4zNCwwLC42MS0uMjcsLjYxLS42MVYxMy43NWMwLS4zNC0uMjctLjYxLS42MS0uNjFaIi8+PC9zdmc+":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJpY29ucyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iNDAiIGhla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0uNmgtLjA4Wm0tNC44Ny00Ljg4aC0yLjg1Yy0uMzMsMC0uNjEsLjI3LS42MSwuNjFzLjI3LC42MSwuNjEsLjYxaDIuODVjLjMzLDAsLjYxLS4yNywuNjEtLjYxcy0uMjctLjYxLS42MS0uNjFaIi8+PC9zdmc+",r=this.props.globalState.fromPG?o.DataStorage.ReadBoolean("responsiveUI",!0):o.DataStorage.ReadBoolean("Responsive",!0);return this._sizeOption=hi.findIndex((e=>e.width==t.width&&e.height==t.height)),this._sizeOption<0&&(this.props.globalState.onResponsiveChangeObservable.notifyObservers(!1),o.DataStorage.WriteBoolean("Responsive",!1)),(0,L.jsxs)("div",{className:"ge-commands",children:[(0,L.jsxs)("div",{className:"commands-left",children:[(0,L.jsxs)("div",{className:"divider",children:[(0,L.jsx)("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cG9seWdvbiBwb2ludHM9IjI5LjM5IDE0LjU4IDI2LjQ1IDEyLjg4IDIzLjYzIDE0LjUxIDI2LjU3IDE2LjIxIDI5LjM5IDE0LjU4IiBzdHlsZT0iZmlsbDojZTA2ODRiIi8+PHBvbHlnb24gcG9pbnRzPSIxMy40MyAxNi4yMSAyMi44MyAxMC43OSAyMCA5LjE1IDEwLjYxIDE0LjU4IDEzLjQzIDE2LjIxIiBzdHlsZT0iZmlsbDojZTA2ODRiIi8+PHBvbHlnb24gcG9pbnRzPSIxNy4wNiAyMS43IDIwIDIzLjM5IDIyLjk0IDIxLjcgMjAgMjAgMTcuMDYgMjEuNyIgc3R5bGU9ImZpbGw6I2UwNjg0YiIvPjxwb2x5Z29uIHBvaW50cz0iMjYuNTcgMTYuMjEgMjYuNTcgMjMuNzkgMjAgMjcuNTggMTMuNDMgMjMuNzkgMTMuNDMgMTYuMjEgMTAuNjEgMTQuNTggMTAuNjEgMjUuNDIgMjAgMzAuODUgMjkuMzkgMjUuNDIgMjkuMzkgMTQuNTggMjYuNTcgMTYuMjEiIHN0eWxlPSJmaWxsOiNiYjQ2NGIiLz48cG9seWdvbiBwb2ludHM9IjIwIDE2LjYxIDE3LjA2IDE4LjMgMTcuMDYgMjEuNyAyMCAyMCAyMi45NCAyMS43IDIyLjk0IDE4LjMgMjAgMTYuNjEiIHN0eWxlPSJmaWxsOiNiYjQ2NGIiLz48cG9seWdvbiBwb2ludHM9IjI2LjU3IDE2LjIxIDIyLjk0IDE4LjMgMjIuOTQgMjEuNyAyMCAyMy4zOSAyMCAyNy41OCAyNi41NyAyMy43OSAyNi41NyAxNi4yMSIgc3R5bGU9ImZpbGw6I2UwZGVkOCIvPjxwb2x5Z29uIHBvaW50cz0iMTMuNDMgMTYuMjEgMTcuMDYgMTguMyAxNy4wNiAyMS43IDIwIDIzLjM5IDIwIDI3LjU4IDEzLjQzIDIzLjc5IDEzLjQzIDE2LjIxIiBzdHlsZT0iZmlsbDojZDVkMmNhIi8+PHBvbHlnb24gcG9pbnRzPSIyMi44MyAxMC43OSAyNi40NSAxMi44OCAyMy42MyAxNC41MSAyNi41NyAxNi4yMSAyMi45NCAxOC4zIDIwIDE2LjYxIDE3LjA2IDE4LjMgMTMuNDMgMTYuMjEgMjIuODMgMTAuNzkiIHN0eWxlPSJmaWxsOiNmZmYiLz48L3N2Zz4=",color:"white",className:"active",draggable:!1}),(0,L.jsx)(Mi,{globalState:this.props.globalState,toRight:!0,icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMTIuNDYsMTUuMzFIMjcuNjJhLjYyLjYyLDAsMCwwLC41My0uNjEuNjEuNjEsMCwwLDAtLjYxLS42MUgxMi4zOGEuNjEuNjEsMCwwLDAsLjA4LDEuMjFaIiBzdHlsZT0iZmlsbDojZmZmIi8+PHBhdGggZD0iTTI3LjU0LDE5LjM5SDEyLjM4YS42MS42MSwwLDAsMCwuMDgsMS4yMUgyNy42MmEuNjIuNjIsMCwwLDAsLjUzLS42MUEuNjEuNjEsMCwwLDAsMjcuNTQsMTkuMzlaIiBzdHlsZT0iZmlsbDojZmZmIi8+PHBhdGggZD0iTTI3LjU0LDI0LjY5SDEyLjM4YS42Mi42MiwwLDAsMC0uNTMuNjEuNjEuNjEsMCwwLDAsLjYxLjYxSDI3LjYyYS42MS42MSwwLDAsMC0uMDgtMS4yMVoiIHN0eWxlPSJmaWxsOiNmZmYiLz48L3N2Zz4=",tooltip:"Options",items:[{label:"Save",onClick:()=>{this.props.globalState.onSaveObservable.notifyObservers()}},{label:"Load",fileButton:!0},{label:"Save to snippet",onClick:()=>{this.props.globalState.onSnippetSaveObservable.notifyObservers()}},{label:"Load from snippet",onClick:()=>{this.props.globalState.onSnippetLoadObservable.notifyObservers()}},{label:"Save selected control",onClick:()=>{this.props.globalState.onSaveSelectedControl.notifyObservers()}},{label:"Load control",fileButton:!0,loadControlButton:!0},{label:"Help",onClick:()=>{window.open("https://doc.babylonjs.com/toolsAndResources/tools/guiEditor","_blank")}},{label:"Give feedback",onClick:()=>{window.open("https://forum.babylonjs.com/t/introducing-the-gui-editor-beta/28943","_blank")}}]}),(0,L.jsx)(v,{tooltip:"Select",icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMjYuMDksMjAuNjUsMTUuMzcsMTIuMzFhMS4xOSwxLjE5LDAsMCwwLTEuOTIuOTR2MTMuNWExLjE5LDEuMTksMCwwLDAsMi4xMi43NGwzLjMzLTQuMjFhMS4zLDEuMywwLDAsMSwxLS41aDUuNDRBMS4xOSwxLjE5LDAsMCwwLDI2LjA5LDIwLjY1Wm0tNi4xNy45NGEyLjUxLDIuNTEsMCwwLDAtMiwuOTVsLTMuMzIsNC4yMVYxMy4yNWwxMC43Miw4LjM0WiIgc3R5bGU9ImZpbGw6I2ZmZiIvPjwvc3ZnPg==",shortcut:"S",isActive:this.props.globalState.tool===p.SELECT,onClick:()=>{this.props.globalState.tool=p.SELECT}}),(0,L.jsx)(v,{tooltip:"Pan",icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMTkuMzksMTMuNTF2NS4wN2EuNjEuNjEsMCwwLDAsLjYxLjYxLjYxLjYxLDAsMCwwLC42MS0uNjFWMTQuNTFhLjM5LjM5LDAsMCwxLC40LS4zOS40My40MywwLDAsMSwuNDEuNDF2Ni4wOGEuNjEuNjEsMCwwLDAsMSwuNDJoMGwwLDAsLjA4LS4wN2MuMDgtLjA3LjE5LS4xNi4zMy0uMjZBMi42NiwyLjY2LDAsMCwxLDI0LDIwLjJhMS44NiwxLjg2LDAsMCwxLDEuMTMuMTEuNjguNjgsMCwwLDEsLjM2LjQzbC0xLjM1LDFMMjQsMjEuOGwtMS43NiwxLjc2YTEwLDEwLDAsMCwwLTEuODcsMi41OSwxLjM1LDEuMzUsMCwwLDEtMS4yLjc0SDE3YTEuMjEsMS4yMSwwLDAsMS0xLjA3LS41OCw5LDksMCwwLDEtMS4zOS00LjA4VjE2YS40MS40MSwwLDEsMSwuODEsMHYyLjgzYS42MS42MSwwLDAsMCwuNjEuNjEuNjEuNjEsMCwwLDAsLjYxLS42MVYxNC41M2EuNC40LDAsMCwxLC40LS40MS40MS40MSwwLDAsMSwuNDEuNDF2NGEuNjEuNjEsMCwxLDAsMS4yMSwwVjEzLjUxYS40MS40MSwwLDAsMSwuODEsMFpNMjAuNTIsMTNBMS42MywxLjYzLDAsMCwwLDE5LDExLjg5LDEuNiwxLjYsMCwwLDAsMTcuNDYsMTNhMS42MywxLjYzLDAsMCwwLS41LS4wNywxLjYxLDEuNjEsMCwwLDAtMS42MSwxLjQ3LDEuODQsMS44NCwwLDAsMC0uNDEtLjA1QTEuNjIsMS42MiwwLDAsMCwxMy4zMSwxNnY2LjI4YTEwLjIsMTAuMiwwLDAsMCwxLjU2LDQuN0EyLjQ0LDIuNDQsMCwwLDAsMTcsMjguMTFIMTkuMmEyLjU4LDIuNTgsMCwwLDAsMi4yOS0xLjQxLDguNzksOC43OSwwLDAsMSwxLjYzLTIuMjhsMS43NC0xLjczLDEuNTgtMS4xOWEuNjEuNjEsMCwwLDAsLjI1LS40OSwxLjksMS45LDAsMCwwLTEuMDYtMS43OEEzLDMsMCwwLDAsMjMuNzQsMTlhMy42NCwzLjY0LDAsMCwwLTEuMTEuNFYxNC41M0ExLjYzLDEuNjMsMCwwLDAsMjEsMTIuOTEsMS41MSwxLjUxLDAsMCwwLDIwLjUyLDEzWiIgc3R5bGU9ImZpbGw6I2ZmZiIvPjwvc3ZnPg==",shortcut:"P",isActive:this.props.globalState.tool===p.PAN,onClick:()=>{this.props.globalState.tool=p.PAN}}),(0,L.jsx)(v,{tooltip:"Zoom",shortcut:"Z",icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMjcuMSwyNi4yNGwtNC00YTUuODYsNS44NiwwLDEsMC0uODYuODZsNCw0LC4wNy4wNmEuNjIuNjIsMCwwLDAsLjc5LS4wNkEuNi42LDAsMCwwLDI3LjEsMjYuMjRabS04LjUxLTNhNC42NSw0LjY1LDAsMSwxLDQuNjQtNC42NEE0LjY1LDQuNjUsMCwwLDEsMTguNTksMjMuMjNaIiBzdHlsZT0iZmlsbDojZmZmIi8+PC9zdmc+",isActive:this.props.globalState.tool===p.ZOOM,onClick:()=>{this.props.globalState.tool=p.ZOOM}})]}),(0,L.jsxs)("div",{className:"divider",children:[(0,L.jsx)(v,{tooltip:"Copy Selected",shortcut:"Ctrl + C",icon:n,isActive:!1,copyDeleteDisabled:0===this.props.globalState.selectedControls.length,onClick:()=>{this.props.globalState.onCopyObservable.notifyObservers((e=>this.props.globalState.hostWindow.navigator.clipboard.writeText(e))),this.forceUpdate()}}),(0,L.jsx)(v,{tooltip:"Paste",shortcut:"Ctrl + V",icon:i,isActive:!1,pasteDisabled:e,onClick:async()=>{this.props.globalState.onPasteObservable.notifyObservers(await this.props.globalState.hostWindow.navigator.clipboard.readText())}}),(0,L.jsx)(v,{tooltip:"Delete",shortcut:"Delete",icon:s,isActive:!1,copyDeleteDisabled:0===this.props.globalState.selectedControls.length,onClick:()=>{this.props.globalState.selectedControls.forEach((e=>{e!=this.props.globalState.guiTexture.getChildren()[0]&&(this.props.globalState.guiTexture.removeControl(e),this.props.globalState.liveGuiTexture?.removeControl(e),e.dispose())})),this.props.globalState.setSelection([])}})]}),(0,L.jsxs)("div",{className:"divider",children:[(0,L.jsx)(v,{tooltip:"Fit to Window",shortcut:"F",icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMjUuMDUsMTMuNTRhMywzLDAsMCwxLDMsM3Y2Ljg2YTMsMywwLDAsMS0zLDNIMTVhMywzLDAsMCwxLTMtM1YxNi41N2EzLDMsMCwwLDEsMy0zWm0wLDEuMjFIMTVhMS44MiwxLjgyLDAsMCwwLTEuODIsMS44MnY2Ljg2QTEuODIsMS44MiwwLDAsMCwxNSwyNS4yNWgxMC4xYTEuODIsMS44MiwwLDAsMCwxLjgyLTEuODJWMTYuNTdBMS44MiwxLjgyLDAsMCwwLDI1LjA1LDE0Ljc1Wm0wLDYuMDZhLjYxLjYxLDAsMCwxLC42MS42djFBMS42MiwxLjYyLDAsMCwxLDI0LDI0SDIzYS42MS42MSwwLDEsMSwwLTEuMjFoMWEuNC40LDAsMCwwLC40LS40MXYtMUEuNi42LDAsMCwxLDI1LjA1LDIwLjgxWm0tMTAuMSwwYS42LjYsMCwwLDEsLjYxLjZ2MWEuNC40LDAsMCwwLC40LjQxaDFBLjYxLjYxLDAsMSwxLDE3LDI0SDE2YTEuNjIsMS42MiwwLDAsMS0xLjYyLTEuNjJ2LTFBLjYxLjYxLDAsMCwxLDE1LDIwLjgxWk0xNiwxNmgxYS42MS42MSwwLDAsMSwuNjEuNjEuNjEuNjEsMCwwLDEtLjUzLjZIMTZhLjQyLjQyLDAsMCwwLS40LjMzdjEuMDlhLjYxLjYxLDAsMCwxLTEuMjEuMDhWMTcuNThBMS42MywxLjYzLDAsMCwxLDE1Ljg0LDE2Wk0yNCwxNmExLjYyLDEuNjIsMCwwLDEsMS42MiwxLjYydjFhLjYxLjYxLDAsMCwxLS42MS42LjYuNiwwLDAsMS0uNjEtLjZ2LTFhLjQuNCwwLDAsMC0uNC0uNDFIMjNBLjYxLjYxLDAsMSwxLDIzLDE2WiIgc3R5bGU9ImZpbGw6I2ZmZiIvPjwvc3ZnPg==",isActive:!1,onClick:()=>{this.props.globalState.onFitControlsToWindowObservable.notifyObservers()}}),(0,L.jsx)(v,{tooltip:"Toggle Guides",shortcut:"G",icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMjEuNiwxMy4zOGEuNi42LDAsMCwxLS42LjZIMTlhLjYuNiwwLDEsMSwwLTEuMmgyQS42LjYsMCwwLDEsMjEuNiwxMy4zOFoiIHN0eWxlPSJmaWxsOiNmZmYiLz48cGF0aCBkPSJNMTQsMTlhLjYuNiwwL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outlines})]}),(0,L.jsx)("div",{className:"divider padded",children:(0,L.jsx)(yo,{lockObject:this._lockObject,label:"Artboard:",target:this.props.globalState,propertyName:"backgroundColor",disableAlpha:!0})}),(0,L.jsxs)("div",{className:"divider padded",children:[(0,L.jsx)(qn,{label:"Responsive:",iconLabel:"Responsive GUIs will resize the UI layout and reflow controls to accommodate different device screen sizes",isSelected:()=>o.DataStorage.ReadBoolean("Responsive",!0),onSelect:e=>{this.props.globalState.onResponsiveChangeObservable.notifyObservers(e),o.DataStorage.WriteBoolean("Responsive",e),o.DataStorage.WriteBoolean("responsiveUI",e),this._sizeOption=gi.length,e&&(this._sizeOption=0,this.props.globalState.workbench.guiSize=hi[this._sizeOption],o.DataStorage.WriteNumber("width",this.props.globalState.workbench.guiSize.width),o.DataStorage.WriteNumber("height",this.props.globalState.workbench.guiSize.height)),this.forceUpdate()},large:!0}),r&&(0,L.jsx)(hs,{label:"",iconLabel:"Size",options:gi,target:this,propertyName:"_sizeOption",noDirectUpdate:!0,onSelect:e=>{if(this._sizeOption=e,this._sizeOption!==gi.length){const e=hi[this._sizeOption];this.props.globalState.workbench.guiSize=e,o.DataStorage.WriteNumber("width",this.props.globalState.workbench.guiSize.width),o.DataStorage.WriteNumber("height",this.props.globalState.workbench.guiSize.height)}this.forceUpdate()}}),!r&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(N,{lockObject:this._lockObject,label:"W",target:t,propertyName:"width",min:1,max:16384,onChange:e=>{this._stopUpdating||(this.props.globalState.workbench.guiSize={width:e,height:t.height},o.DataStorage.WriteNumber("width",this.props.globalState.workbench.guiSize.width))},onDragStart:()=>{this._stopUpdating=!0},onDragStop:e=>{this._stopUpdating=!1,this.props.globalState.workbench.guiSize={width:e,height:t.height},o.DataStorage.WriteNumber("width",this.props.globalState.workbench.guiSize.width)},arrows:!0,isInteger:!0}),(0,L.jsx)(N,{lockObject:this._lockObject,label:"H",target:t,propertyName:"height",min:1,max:16384,onChange:e=>{this._stopUpdating||(this.props.globalState.workbench.guiSize={width:t.width,height:e},o.DataStorage.WriteNumber("height",this.props.globalState.workbench.guiSize.width))},onDragStart:()=>{this._stopUpdating=!0},onDragStop:e=>{this._stopUpdating=!1,this.props.globalState.workbench.guiSize={width:t.width,height:e},o.DataStorage.WriteNumber("height",this.props.globalState.workbench.guiSize.width)},arrows:!0,isInteger:!0})]})]})]}),(0,L.jsx)("div",{className:"commands-right"})]})}}var ji;!function(e){e[e.Top=-1]="Top",e[e.Left=-1]="Left",e[e.Center=0]="Center",e[e.Right=1]="Right",e[e.Bottom=1]="Bottom"}(ji||(ji={}));const mi='url("data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNSAyNSIgIHdpZHRoPSIyNSIgaGVpZ2h0PSIyNSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjxwb2x5Z29uIHBvaW50cz0iNy41MSAxMS4wNCA2LjIyIDYuMjIgMTEuMDQgNy41MSA5LjYzIDguOTIgMTYuMDggMTUuMzcgMTcuNDggMTMuOTYgMTguNzcgMTguNzcgMTMuOTYgMTcuNDggMTUuMzcgMTYuMDggOC45MiA5LjYzIDcuNTEgMTEuMDQiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik02LjIyLDYuMjIsMTEsNy41MSw5LjYzLDguOTJsNi40NSw2LjQ1TDE3LjQ5LDE0bDEuMjksNC44MkwxNCwxNy40OWwxLjQxLTEuNDFMOC45Miw5LjYzLDcuNTEsMTEsNi4yMiw2LjIyTTQuODEsNC44MWwuNDUsMS42N0w2LjU1LDExLjMsNywxM2wxLjIyLTEuMjIuNy0uNyw1LDUtLjcuN0wxMiwxOGwxLjY3LjQ1LDQuODIsMS4yOSwxLjY3LjQ1LS40NS0xLjY3TDE4LjQ1LDE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45M2E4LjE1LDguMTUsMCwwLDAtOC4xNCw4LjE0di45M2gtMmwyLjQ5LDQuMzEsMi41LTQuMzFoLTJ2LS45M2E3LjE0LDcuMTQsMCwwLDEsNy4xNC03LjE0aC45M3YybDQuMzEtMi41TDE1Ljc0LDQuNjhaIi8+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTUuNzQsNC42OGw0LjMxLDIuNDktNC4zMSwyLjV2LTJoLS45M2E3LjE0LDcuMTQsMCwwLDAtNy4xNCw3LjE0di45M2gybC0yLjUsNC4zMUw0LjY4LDE1Ljc0aDJ2LS45M2E4LjE1LDguMTUsMCwwLDEsOC4xNC04LjE0aC45M3YtMk0xNC43NCwzVjUuNjdhOS4xNiw5LjE2LDAsMCwwLTkuMDcsOS4wN0gzbC44NiwxLjUsMi41LDQuMzEuODYsMS41TDgsMjAuNTVsMi40OS00LjMxLjg3LTEuNUg4LjY3YTYuMTUsNi4xNSwwLDAsMSw2LjA3LTYuMDdWMTEuNGwxLjUtLjg3TDIwLjU1LDhsMS41LS44Ny0xLjUtLjg2LTQuMzEtMi41TDE0Ljc0LDNaIi8+PC9zdmc+"].map((e=>`url("${e}") 12 12, pointer`));function Si(e){const{scalePoint:t,clickable:n,onDrag:o,onRotate:s,onUp:i,overrideCursor:r,canRotate:a,allowClickOnPivot:l}=e,c={left:`${t.position.x}px`,top:`${t.position.y}px`,transform:"translate(-50%, -50%) rotate("+t.rotation+"deg)",pointerEvents:n?"auto":"none"};if(t.isPivot)return(0,L.jsx)("img",{className:"pivot-point",src:"data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9PC9zdHlsZT48L2RlZnM+PGNpcmNsZSBjbGFzcz0iY2xzLTEiIGN4PSIxNSIgY3k9IjE1IiByPSI4Ljk4Ii8+PHBhdGggZD0iTTE1LDYuOUE4LjEsOC4xLDAsMSwwLDIzLjEsMTUsOC4xLDguMSwwLDAsMCwxNSw2LjlabTYuODYsNy40OUgxNS42M1Y4LjE0QTYuODksNi44OSwwLDAsMSwyMS44NiwxNC4zOVpNMTQuNDEsOC4xNHY2LjI1SDguMTRBNi44OSw2Ljg5LDAsMCwxLDE0LjQxLDguMTRaTTguMTQsMTUuNjFoNi4yN3Y2LjI1QTYuODksNi44OSwwLDAsMSw4LjE0LDE1LjYxWm03LjQ5LDYuMjVWMTUuNjFoNi4yM0E2Ljg5LDYuODksMCwwLDEsMTUuNjMsMjEuODZaIi8+PC9zdmc+",style:c,onDragStart:e=>e.preventDefault(),onPointerDown:e=>{l&&o(e,t)},onPointerUp:()=>{l&&i()}});const u=((t.defaultRotation+t.rotation)%360+360)%360;const A=Math.round(u/45)%8,d=r||xi[A],p={top:5+7*t.verticalPosition,left:5+7*t.horizontalPosition,cursor:Ni[A]},M={top:5-5*t.verticalPosition,left:5-5*t.horizontalPosition,cursor:d};return(0,L.jsxs)("div",{style:c,className:"scale-point-container",children:[a&&(0,L.jsx)("div",{className:"rotate-click-area",onPointerDown:e=>{s(e,t)},style:p}),(0,L.jsx)("div",{className:"scale-click-area",draggable:!0,onDragStart:e=>e.preventDefault(),onPointerDown:e=>{1&e.buttons&&o(e,t)},onPointerUp:i,style:M}),(0,L.jsx)("div",{className:"scale-point",draggable:!0,onDragStart:e=>e.preventDefault(),onPointerDown:e=>{1&e.buttons&&o(e,t)},onPointerUp:i,style:{cursor:d}})]})}const Di=e=>Math.round(100*e)/100,Ii=[[0,2],[0,6],[2,8],[6,8]],vi=[315,0,45,270,0,90,225,180,135];class Ei extends t.Component{constructor(e){super(e),this._onUp=e=>{e&&1&e.buttons||this.setState({scalePointDragging:-1,isRotating:!1})},this._onMove=()=>{const e=this.props.globalState.workbench._scene;if(-1!==this.state.scalePointDragging){const t=this.props.control,n=u.MousePointerToRTTSpace(t,e.pointerX,e.pointerY),o=u.RttToLocalNodeSpace(t,n.x,n.y,void 0,this._storedValues);this._dragLocalBounds(o,this.props.globalState.shiftKeyPressed),this._updateNodeFromLocalBounds(),this.props.globalState.onPropertyGridUpdateRequiredObservable.notifyObservers()}if(this.state.isRotating){const t=Math.atan2(e.pointerY-this._rotation.pivot.y,e.pointerX-this._rotation.pivot.x);for(const e of this.props.globalState.selectedControls)e.rotation+=t-this._rotation.initialAngleToPivot;this._rotation.initialAngleToPivot=t,this.props.globalState.onPropertyGridUpdateRequiredObservable.notifyObservers()}},this._beginDraggingScalePoint=e=>{this.setState({scalePointDragging:e});const t=this.props.control;this._localBounds=u.ComputeLocalBounds(t),this._storedValues=new l(t.leftInPixels,t.topInPixels,t.leftInPixels+t.widthInPixels,t.topInPixels+t.heightInPixels);for(const e of this.props.globalState.selectedControls)e.metadata.localBounds=u.ComputeLocalBounds(e),e.metadata.storedValues=new l(e.leftInPixels,e.topInPixels,e.leftInPixels+e.widthInPixels,e.topInPixels+e.heightInPixels)},this._beginRotate=()=>{const e=this.props.globalState.workbench._scene,t=this.props.control,n=new o.Vector2(t.transformCenterX,t.transformCenterY),s=u.NodeToRTTSpace(t,n.x,n.y,void 0),i=u.RttToCanvasSpace(s.x,s.y),r=new o.Vector2(i.x,i.y),a=Math.atan2(e.pointerY-r.y,e.pointerX-r.x);this._rotation={pivot:r,initialAngleToPivot:a},this.setState({isRotating:!0})};const t=[];for(let e=ji.Top;e<=ji.Bottom;e++)for(let n=ji.Left;n<=ji.Right;n++){const s=n===ji.Center&&e===ji.Center;t.push({position:new o.Vector2,horizontalPosition:n,verticalPosition:e,rotation:0,isPivot:s,defaultRotation:vi[t.length]})}this._localBounds=new l(0,0,0,0),this.state={canvasBounds:new l(0,0,0,0),scalePoints:t,scalePointDragging:-1,isRotating:!1},this._gizmoUpdateObserver=this.props.globalState.onGizmoUpdateRequireObservable.add((()=>{this.updateGizmo()})),this._pointerUpObserver=this.props.globalState.onPointerUpObservable.add((e=>this._onUp(e))),this._pointerMoveObserver=this.props.globalState.onPointerMoveObservable.add((()=>this._onMove()))}componentDidMount(){this.updateGizmo()}componentWillUnmount(){this.props.globalState.onGizmoUpdateRequireObservable.remove(this._gizmoUpdateObserver),this.props.globalState.onPointerUpObservable.remove(this._pointerUpObserver),this.props.globalState.onPointerMoveObservable.remove(this._pointerMoveObserver)}updateGizmo(){const e=this.props.control,t=new l(Number.MAX_VALUE,Number.MAX_VALUE,0,0),n=u.ComputeLocalBounds(e),s={left:0,right:0,top:0,bottom:0};let i=e.parent;for(;null!=i;)s.left+=i.paddingLeftInPixels,s.right+=i.paddingRightInPixels,s.top+=i.paddingTopInPixels,s.bottom+=i.paddingBottomInPixels,i=i.parent;const r=.5*(s.left-s.right);n.left+=r,n.right+=r;const a=.5*(s.top-s.bottom);n.top+=a,n.bottom+=a;const c=this.state.scalePoints.map((s=>{const i=new o.Vector2;switch(s.horizontalPosition){case ji.Left:i.x=n.left;break;case ji.Center:i.x=n.center.x;break;case ji.Right:i.x=n.right}switch(s.verticalPosition){case ji.Top:i.y=n.top;break;case ji.Center:i.y=n.center.y;break;case ji.Bottom:i.y=n.bottom}if(s.isPivot){const t=e.transformCenterX-.5,n=e.transformCenterY-.5;i.x=e.widthInPixels*t,i.y=e.heightInPixels*n}const r=u.NodeToRTTSpace(e,i.x,i.y,void 0),a=u.RttToCanvasSpace(r.x,r.y);return a.x<t.left&&(t.left=a.x),a.x>t.right&&(t.right=a.x),a.y<t.top&&(t.top=a.y),a.y>t.bottom&&(t.bottom=a.y),s.position.x=a.x,s.position.y=a.y,s.rotation=u.GetRotation(e)*(180/Math.PI),s}));this.setState({canvasBounds:t,scalePoints:[...c]})}_rotate(e,t,n,o,s){return{x:(e-n)*Math.cos(s)-(t-o)*Math.sin(s)+n,y:(e-n)*Math.sin(s)+(t-o)*Math.cos(s)+o}}_dragLocalBounds(e,t=!1){const n=this.state.scalePoints[this.state.scalePointDragging],o=this._localBounds.clone(),s=a.MathTools.Round(this._localBounds.width/this._localBounds.height);if(n.horizontalPosition===ji.Left&&(o.left=Math.min(this._localBounds.right-1,e.x)),n.verticalPosition===ji.Top&&(o.top=Math.min(this._localBounds.bottom-1,e.y)),n.horizontalPosition===ji.Right&&(o.right=Math.max(this._localBounds.left+1,e.x)),n.verticalPosition===ji.Bottom&&(o.bottom=Math.max(this._localBounds.top+1,e.y)),t){const e=o.width-this._localBounds.width,t=o.height-this._localBounds.height,i=n.horizontalPosition===ji.Center||n.verticalPosition===ji.Center,r=Math.abs(e)>Math.abs(t);if(i?r:!r){const t=e/s;n.verticalPosition===ji.Top?o.top=this._localBounds.top-t:n.verticalPosition===ji.Bottom?o.bottom=this._localBounds.bottom+t:(o.top=this._localBounds.top-t/2,o.bottom=this._localBounds.bottom+t/2)}else{const e=t*s;n.horizontalPosition===ji.Left?o.left=this._localBounds.left-e:n.horizontalPosition===ji.Right?o.right=this._localBounds.right+e:(o.left=this._localBounds.left-e/2,o.right=this._localBounds.right+e/2)}}const i=["left","top","right","bottom"];for(const e of this.props.globalState.selectedControls){const t=e.metadata.localBounds,n=t.clone(),s=2*(((this.props.control.rotation-e.rotation)%(r=2*Math.PI)+r)%r/Math.PI);i.forEach(((e,t)=>{const r=Math.round(t+s)%4,a=t<2==r<2?1:-1;n[i[r]]+=(o[e]-this._localBounds[e])*a})),n.left=Math.min(t.right-1,n.left),n.top=Math.min(t.bottom-1,n.top),n.right=Math.max(t.left+1,n.right),n.bottom=Math.max(t.top+1,n.bottom),e.metadata.localBounds=n}var r;this._localBounds=o}_updateNodeFromLocalBounds(){const e=this.state.scalePoints[this.state.scalePointDragging],t=e.horizontalPosition===ji.Left&&e.verticalPosition!==ji.Center,n=e.verticalPosition===ji.Top&&e.horizontalPosition!==ji.Center;for(const e of this.props.globalState.selectedControls){const o=e.metadata.localBounds.right-e.metadata.localBounds.left,s=e.metadata.localBounds.bottom-e.metadata.localBounds.top,i=u.GetRotation(e,!0),r=u.GetScale(e,!0),l=e.metadata.localBounds.center,c=l.clone();c.multiplyInPlace(r);const A=Math.cos(i),d=Math.sin(i),p=Math.cos(i+Math.PI),M=Math.sin(i+Math.PI),L=.5*(e.metadata.storedValues.width-o),C=.5*(e.metadata.storedValues.height-s);switch(e.horizontalAlignment){case a.Control.HORIZONTAL_ALIGNMENT_LEFT:c.x+=(t?L:-l.x)*A,c.y+=(t?-L:l.x)*d;break;case a.Control.HORIZONTAL_ALIGNMENT_RIGHT:c.x+=(t?-L:l.x)*A,c.y+=(t?L:-l.x)*d}switch(e.verticalAlignment){case a.Control.VERTICAL_ALIGNMENT_TOP:c.y+=(n?-C:l.y)*p,c.x+=(n?-C:l.y)*M;break;case a.Control.VERTICAL_ALIGNMENT_BOTTOM:c.y+=(n?C:-l.y)*p,c.x+=(n?C:-l.y)*M}const h=this._rotate(c.x,c.y,0,0,i),g=["left","top","width","height"];for(const t of g){let n=0;switch(t){case"left":n=Di(e.metadata.storedValues.left+h.x);break;case"top":n=Di(e.metadata.storedValues.top+h.y);break;case"width":n=Di(o);break;case"height":n=Di(s)}const i=e[`_${t}`].unit;e[`${t}InPixels`]=n,i===a.ValueAndUnit.UNITMODE_PERCENTAGE&&u.ConvertToPercentage(e,[t])}"Image"===e.typeName?e.autoScale=!1:"TextBlock"===e.typeName&&(e.resizeToFit=!1)}}render(){return(0,L.jsxs)("div",{className:"gizmo",children:[Ii.map(((e,t)=>{const n=this.state.scalePoints[e[0]],o=this.state.scalePoints[e[1]].position.subtract(n.position),s=Math.atan2(o.y,o.x),i=o.length();return(0,L.jsx)("div",{className:"bounding-box-line",style:{left:`${n.position.x+o.x/2}px`,top:`${n.position.y+o.y/2}px`,width:`${i}px`,transform:`translate(-50%, -50%) rotate(${s}rad)`}},t)})),this.state.scalePoints.map(((e,t)=>(0,L.jsx)(Si,{clickable:-1===this.state.scalePointDragging&&!e.isPivot&&!this.state.isRotating,scalePoint:e,onDrag:()=>this._beginDraggingScalePoint(t),onRotate:()=>this._beginRotate(),onUp:()=>this._onUp(),canRotate:!0},t)))]})}}function Ti(e,t,n,o,s,i,r){const a=Math.min(e,n),l=Math.min(t,o),c=a+(Math.max(e,n)-a)*s,u=l+(Math.max(t,o)-l)*i;r.x=c,r.y=u}const zi=[new o.Vector2,new o.Vector2,new o.Vector2];function Oi(e){const{control:n,globalState:s}=e,i=t.useRef(!1),r=t.useRef(!1),l=t.useRef(!1),c=t.useRef(),A=t.useRef(new o.Vector2),d=t.useRef(new o.Vector2),[p,M]=t.useState([{position:new o.Vector2,horizontalPosition:ji.Left,verticalPosition:ji.Top,rotation:0,isPivot:!1,defaultRotation:0,id:0},{position:new o.Vector2,horizontalPosition:ji.Center,verticalPosition:ji.Center,rotation:0,isPivot:!0,defaultRotation:0,id:1},{position:new o.Vector2,horizontalPosition:ji.Right,verticalPosition:ji.Bottom,rotation:0,isPivot:!1,defaultRotation:0,id:2}]);t.useEffect((()=>{const e=s.onGizmoUpdateRequireObservable.add((()=>{C()}));return()=>{s.onGizmoUpdateRequireObservable.remove(e)}}),[]);const C=()=>{const e=n,t=e._cachedParentMeasure.left+e._x1.getValue(e._host),o=e._cachedParentMeasure.top+e._y1.getValue(e._host),s=e._cachedParentMeasure.left+e._effectiveX2,i=e._cachedParentMeasure.top+e._effectiveY2,r=zi[0].set(t,o),a=zi[1].set(s,i),l=zi[2];Ti(t,o,s,i,e.transformCenterX,e.transformCenterY,l);const c=e._transformMatrix;c.transformCoordinates(r.x,r.y,r),c.transformCoordinates(a.x,a.y,a),c.transformCoordinates(l.x,l.y,l),d.current=l;const u=[r,l,a];M(p.map(((t,n)=>({...t,position:u[n],rotation:e.rotation}))))},h=(e,t,n)=>a.MathTools.Round(e.getValue(t)+n),g=(e,t)=>{const o=u.MousePointerToRTTSpace(n,e.x,e.y),s=u.RttToLocalNodeSpace(n,o.x,o.y),i=u.MousePointerToRTTSpace(n,A.current.x,A.current.y),r=u.RttToLocalNodeSpace(n,i.x,i.y),a=zi[0];s.subtractToRef(r,a);const l=zi[1];a.rotateToRef(n.rotation,l),t.x=l.x,t.y=l.y},w=()=>{const e=s.workbench._scene,t=new o.Vector2(e.pointerX,e.pointerY);r.current&&i.current?(e=>{const t=zi[0];g(e,t),n.x1=h(n._x1,n._host,t.x),n.y1=h(n._y1,n._host,t.y),n.x2=h(n._x2,n._host,t.x),n.y2=h(n._y2,n._host,t.y),s.onPropertyGridUpdateRequiredObservable.notifyObservers()})(t):r.current?(e=>{const t=zi[0];g(e,t);const o=c.current;0===o?(n.x1=h(n._x1,n._host,t.x),n.y1=h(n._y1,n._host,t.y)):2===o&&(n.x2=h(n._x2,n._host,t.x),n.y2=h(n._y2,n._host,t.y)),s.onPropertyGridUpdateRequiredObservable.notifyObservers()})(t):l.current&&(e=>{const t=e.subtract(d.current);t.normalize();const i=A.current.subtract(d.current);i.normalize();const r=o.Vector2.Dot(t,i),l=Math.acos(r),c=-Math.sign(t.x*i.y-t.y*i.x);isNaN(l)||(n.rotation+=c*l,n.rotation=a.MathTools.Round(n.rotation),s.onPropertyGridUpdateRequiredObservable.notifyObservers())})(t),A.current=t},j=()=>{r.current=!1,l.current=!1};t.useEffect((()=>{const t=e.globalState.onPointerMoveObservable.add(w),n=e.globalState.onPointerUpObservable.add(j);return()=>{e.globalState.onPointerMoveObservable.remove(t),e.globalState.onPointerUpObservable.remove(n)}}),[]);const m=(e,t)=>{if(e&&t){const e=s.workbench._scene;if(A.current=new o.Vector2(e.pointerX,e.pointerY),i.current=t.isPivot,!t.isPivot&&n.rotation){const e=n,t=e._x1.getValue(e._host),o=e._y1.getValue(e._host),i=e._x2.getValue(e._host),r=e._y2.getValue(e._host),l=zi[0].set(t,o),c=zi[1].set(i,r),u=zi[2];Ti(t,o,i,r,e.transformCenterX,e.transformCenterY,u);const A=a.Matrix2D.Identity(),d=a.Matrix2D.Identity();a.Matrix2D.TranslationToRef(-u.x,-u.y,d),A.multiplyToRef(d,A),a.Matrix2D.RotationToRef(n.rotation,d),A.multiplyToRef(d,A),a.Matrix2D.TranslationToRef(u.x,u.y,d),A.multiplyToRef(d,A),A.transformCoordinates(l.x,l.y,l),A.transformCoordinates(c.x,c.y,c),n.rotation=0,n.x1=a.MathTools.Round(l.x),n.y1=a.MathTools.Round(l.y),n.x2=a.MathTools.Round(c.x),n.y2=a.MathTools.Round(c.y),s.onPropertyGridUpdateRequiredObservable.notifyObservers()}r.current=!0,l.current=!1,c.current=t.id}},b=e=>{if(e){l.current=!0,r.current=!1;const e=s.workbench._scene;A.current=new o.Vector2(e.pointerX,e.pointerY)}};return(0,L.jsx)("div",{className:"gizmo",children:p.map(((e,t)=>(0,L.jsx)(Si,{scalePoint:e,allowClickOnPivot:!0,clickable:!0,onDrag:m,onRotate:b,onUp:j,canRotate:!0},t)))})}class ki extends t.Component{componentWillMount(){this.observer=this.props.globalState.onSelectionChangedObservable.add((()=>this.forceUpdate()))}componentWillUnmount(){this.props.globalState.onSelectionChangedObservable.remove(this.observer)}render(){const e=this.props.globalState.selectedControls;return(0,L.jsx)(L.Fragment,{children:e.map((e=>"Line"===e.getClassName()?(0,L.jsx)(Oi,{globalState:this.props.globalState,control:e},e.uniqueId):(0,L.jsx)(Ei,{globalState:this.props.globalState,control:e},e.uniqueId)))})}}class Yi extends t.Component{constructor(e){super(e),this.state={bounds:new l(0,0,0,0)},this.props.globalState.onArtBoardUpdateRequiredObservable.add((()=>this.update()))}update(){const e=this.props.globalState.workbench.visibleRegionContainer;if(!e)return;const t=u.ComputeLocalBounds(e),n=u.NodeToRTTSpace(e,t.left,t.top,void 0),o=u.RttToCanvasSpace(n.x,n.y),s=u.NodeToRTTSpace(e,t.right,t.bottom,void 0),i=u.RttToCanvasSpace(s.x,s.y);this.setState({bounds:new l(o.x,o.y,i.x,i.y)})}render(){const e={top:`${this.state.bounds.top}px`,left:`${this.state.bounds.left}px`,width:`${this.state.bounds.width}px`,height:`${this.state.bounds.height}px`};return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{className:"artboard-stroke",style:e}),(0,L.jsx)("div",{className:"artboard-background",style:e})]})}}var Pi=s(569),Bi={};Bi.styleTagTransform=ho(),Bi.setAttributes=po(),Bi.insert=uo().bind(null,"head"),Bi.domAPI=lo(),Bi.insertStyleElement=Lo(),ro()(Pi.A,Bi),Pi.A&&Pi.A.locals&&Pi.A.locals;var Ri=s(664),Ui={};Ui.styleTagTransform=ho(),Ui.setAttributes=po(),Ui.insert=uo().bind(null,"head"),Ui.domAPI=lo(),Ui.insertStyleElement=Lo(),ro()(Ri.A,Ui),Ri.A&&Ri.A.locals&&Ri.A.locals;class Gi extends t.Component{componentDidMount(){-1!==navigator.userAgent.indexOf("Mobile")&&((this.props.globalState.hostDocument||document).querySelector(".blocker").style.visibility="visible"),document.addEventListener("keydown",this.addToolControls),document.addEventListener("keyup",this.removePressToolControls)}componentWillUnmount(){document.removeEventListener("keydown",this.addToolControls),document.removeEventListener("keyup",this.removePressToolControls),this._onErrorMessageObserver&&this.props.globalState.onErrorMessageDialogRequiredObservable.remove(this._onErrorMessageObserver)}constructor(e){super(e),this._leftWidth=o.DataStorage.ReadNumber("LeftWidth",200),this._rightWidth=o.DataStorage.ReadNumber("RightWidth",300),this.addToolControls=e=>{if(!(e.target&&e.target instanceof HTMLInputElement&&"text"===e.target.type))switch(e.key){case"s":case"S":this.props.globalState.tool=p.SELECT;break;case"p":case"P":case" ":this.props.globalState.tool=p.PAN;break;case"z":case"Z":this.props.globalState.tool=p.ZOOM;break;case"g":case"G":this.props.globalState.outlines=!this.props.globalState.outlines;break;case"f":case"F":this.props.globalState.onFitControlsToWindowObservable.notifyObservers()}},this.removePressToolControls=e=>{" "===e.key&&this.props.globalState.restorePreviousTool()},this.handlePopUp=()=>{this.setState({showPreviewPopUp:!0}),this.props.globalState.hostWindow.addEventListener("beforeunload",this.handleClosingPopUp)},this.handleClosingPopUp=()=>{this._popUpWindow.close()},this.createPopupWindow=(e,t,n=500,o=500)=>{const s={width:n,height:o,top:(this.props.globalState.hostWindow.innerHeight-n)/2+window.screenY,left:(this.props.globalState.hostWindow.innerWidth-o)/2+window.screenX},i=Object.keys(s).map((e=>e+"="+s[e])).join(","),r=this.props.globalState.hostWindow.open("",e,i);if(!r)return null;const a=r.document;a.title=e,a.body.style.width="100%",a.body.style.height="100%",a.body.style.margin="0",a.body.style.padding="0";const l=a.createElement("div");return l.style.width="100%",l.style.height="100%",l.style.margin="0",l.style.padding="0",l.style.display="grid",l.style.gridTemplateRows="40px auto",l.id="gui-editor-workbench-root",l.className="right-panel",r.document.body.appendChild(l),this.copyStyles(this.props.globalState.hostWindow.document,a),this[t]=r,this._popUpWindow=r,r},this.copyStyles=(e,t)=>{const n=[];for(let s=0;s<e.styleSheets.length;s++){const i=e.styleSheets[s];try{if(i.href){const o=e.createElement("link");o.rel="stylesheet",o.href=i.href,t.head.appendChild(o),n.push(o)}else if(i.cssRules){const o=e.createElement("style");for(const t of i.cssRules)o.appendChild(e.createTextNode(t.cssText));t.head.appendChild(o),n.push(o)}}catch(e){o.Logger.Log(e)}}},this._rootRef=t.createRef(),this.state={showPreviewPopUp:!1,toolbarExpand:!0,message:""},this.props.globalState.onBackgroundColorChangeObservable.add((()=>this.forceUpdate())),this.props.globalState.onDropObservable.add((()=>{null!=this._draggedItem&&(this.props.globalState.draggedControl=this.onCreate(this._draggedItem)),this._draggedItem=null})),this._onErrorMessageObserver=this.props.globalState.onErrorMessageDialogRequiredObservable.add((e=>{this.setState({message:e})}))}showWaitScreen(){this.props.globalState.hostDocument.querySelector(".wait-screen")?.classList.remove("hidden")}hideWaitScreen(){this.props.globalState.hostDocument.querySelector(".wait-screen")?.classList.add("hidden")}onPointerDown(e){0===e.button&&(this._moveInProgress=!0,e.currentTarget.setPointerCapture(e.pointerId))}onPointerUp(e){0===e.button&&(this._moveInProgress=!1,e.currentTarget.releasePointerCapture(e.pointerId))}resizeColumns(e,t=!0){if(!this._moveInProgress)return;const n=e.currentTarget.ownerDocument.getElementById("gui-editor-workbench-root"),s=this.props.globalState.hostWindow.innerWidth;t?(this._leftWidth=Math.max(150,Math.min(s-this._rightWidth,e.clientX-this._rootRef.current.clientLeft)),o.DataStorage.WriteNumber("LeftWidth",this._leftWidth)):(this._rightWidth=Math.max(250,Math.min(s-this._leftWidth,this._rootRef.current.clientLeft+this._rootRef.current.clientWidth-e.clientX)),o.DataStorage.WriteNumber("RightWidth",this._rightWidth)),n.style.gridTemplateColumns=this.buildColumnLayout(),this.props.globalState.onWindowResizeObservable.notifyObservers()}buildColumnLayout(){return`${this._leftWidth}px 1fr ${this._rightWidth}px`}switchExpandedState(){this.setState({toolbarExpand:!this.state.toolbarExpand}),this.state.toolbarExpand?this._leftWidth=this._leftWidth+50:this._leftWidth=this._leftWidth-50}render(){const e=this.state.toolbarExpand?"left-panel":"left-panel expand";return(0,L.jsxs)(Qs,{globalState:this.props.globalState,children:[(0,L.jsx)("div",{id:"ge-header",children:(0,L.jsx)("div",{className:"command-bar",children:(0,L.jsx)(wi,{globalState:this.props.globalState})})}),(0,L.jsxs)("div",{id:"gui-editor-workbench-root",style:{gridTemplateColumns:this.buildColumnLayout()},onMouseDown:e=>{e.target.nodeName},ref:this._rootRef,onPointerUp:e=>this.onPointerUp(e),children:[(0,L.jsxs)("div",{className:e,children:[(0,L.jsx)(di,{globalState:this.props.globalState,noExpand:!0}),this.createToolbar(),(0,L.jsx)("div",{id:"leftGrab",onPointerDown:e=>this.onPointerDown(e),onPointerMove:e=>this.resizeColumns(e)})]}),(0,L.jsx)(di,{globalState:this.props.globalState,noExpand:!0}),this.createToolbar(),(0,L.jsxs)("div",{className:"diagram-container",onDrop:e=>{e.preventDefault(),this.props.globalState.onDropObservable.notifyObservers(),this.props.globalState.onParentingChangeObservable.notifyObservers(null)},onDragOver:e=>{e.preventDefault()},style:{backgroundColor:this.props.globalState.backgroundColor.toHexString()},children:[(0,L.jsx)(Yi,{globalState:this.props.globalState}),(0,L.jsx)(rs,{ref:"workbenchCanvas",globalState:this.props.globalState}),(0,L.jsx)(ki,{globalState:this.props.globalState})]}),(0,L.jsxs)("div",{className:"right-panel",children:[(0,L.jsx)("div",{id:"rightGrab",onPointerDown:e=>this.onPointerDown(e),onPointerMove:e=>this.resizeColumns(e,!1)}),(0,L.jsx)(Hs,{globalState:this.props.globalState})]}),(0,L.jsx)(Js,{globalState:this.props.globalState})]}),(0,L.jsx)($s,{message:this.state.message,isError:!0}),(0,L.jsx)("div",{className:"blocker",children:"GUI Editor runs only on desktop"}),(0,L.jsx)("div",{className:"wait-screen hidden",children:"Processing...please wait"})]})}onCreate(e){const t=Gs.CreateControlFromString(e),n=this.props.globalState.workbench.appendBlock(t);return this.props.globalState.setSelection([n]),this.props.globalState.onPointerUpObservable.notifyObservers(null),this.forceUpdate(),n}createBlackLine(){const e=this.state.toolbarExpand?(0,L.jsx)("img",{src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZGVmcz48c3R5bGU+LmJ7ZmlsbDojZmZmO308L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iYiIgZD0iTTcuNjYsMTEuMzlsMy40LTMuMzktMy40LTMuMzljLS4xMy0uMTMtLjEzLS4zNCwwLS40NywuMTMtLjEzLC4zNC0uMTMsLjQ3LDBsMy42MSwzLjZjLjE0LC4xNCwuMTQsLjM3LDAsLjUxbC0zLjYxLDMuNmMtLjEzLC4xMy0uMzQsLjEzLS40NywwLS4xMy0uMTMtLjEzLS4zNCwwLS40N1ptLTIuNjMsMGwzLjQtMy4zOS0zLjQtMy4zOWMtLjEzLS4xMy0uMTMtLjM0LDAtLjQ3LC4xMy0uMTMsLjM0LS4xMywuNDcsMGwzLjYxLDMuNmMuMTQsLjE0LC4xNCwuMzcsMCwuNTFsLTMuNjEsMy42Yy0uMTMsLjEzLS4zNCwuMTMtLjQ3LDAtLjEzLS4xMy0uMTMtLjM0LDAtLjQ3WiIvPjwvc3ZnPg==",className:"icon"}):(0,L.jsx)("img",{src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZGVmcz48c3R5bGU+LmJ7ZmlsbDojZmZmO308L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iYiIgZD0iTTguMzQsMTEuODZjLS4xMywuMTMtLjM0LC4xMy0uNDcsMGwtMy42MS0zLjZjLS4xNC0uMTQtLjE0LS4zNywwLS41MWwzLjYxLTMuNmMuMTMtLjEzLC4zNC0uMTMsLjQ3LDAsLjEzLC4xMywuMTMsLjM0LDAsLjQ3bC0zLjQsMy4zOSwzLjQsMy4zOWMuMTMsLjEzLC4xMywuMzQsMCwuNDdabTIuNjMsMGMtLjEzLC4xMy0uMzQsLjEzLS40NywwbC0zLjYxLTMuNmMtLjE0LS4xNC0uMTQtLjM3LDAtLjUxbDMuNjEtMy42Yy4xMy0uMTMsLjM0LS4xMywuNDcsMCwuMTMsLjEzLC4xMywuMzQsMCwuNDdsLTMuNCwzLjM5LDMuNCwzLjM5Yy4xMywuMTMsLjEzLC4zNCwwLC40N1oiLz48L3N2Zz4=",className:"icon"});return(0,L.jsx)("div",{className:"blackLine",children:(0,L.jsx)("div",{className:"arrow",onClick:()=>this.switchExpandedState(),children:e})})}createToolbarHelper(e){return e.map((e=>(0,L.jsx)("div",{className:"toolbar-label",onDragStart:()=>{this._draggedItem=e.className},onClick:()=>{this.onCreate(e.className)},title:e.className,children:e.icon&&(0,L.jsx)("div",{className:"toolbar-icon",draggable:!0,children:(0,L.jsx)("img",{src:e.icon,alt:e.className,width:"40px",height:"40px"})})},e.className)))}createToolbar(){return this.state.toolbarExpand?(0,L.jsx)(L.Fragment,{children:(0,L.jsxs)("div",{className:"toolbarGrab",children:[this.createBlackLine(),(0,L.jsx)("div",{className:"toolbar-content-sub1",children:this.createToolbarHelper(Ws)})]})}):(0,L.jsx)(L.Fragment,{children:(0,L.jsxs)("div",{className:"toolbarGrab expanded",children:[this.createBlackLine(),(0,L.jsxs)("div",{className:"toolbar-content-sub1",children:[this.createToolbarHelper(Ws.slice(0,Math.ceil(Ws.length/2))),this.createToolbarHelper(Ws.slice(Math.ceil(Ws.length/2)))]})]})})}}class Zi{static async Show(e,o){let s=e.hostElement;if(this._CurrentState&&s){if(e.currentSnippetToken)try{this._CurrentState.workbench.loadFromSnippet(e.currentSnippetToken)}catch(e){}return}if(!s){const e=as["gui-editor"];e&&e.close(),s=as.CreatePopup("BABYLON.JS GUI EDITOR","gui-editor",1200,800)}const i=new M;e.liveGuiTexture&&(i.liveGuiTexture=e.liveGuiTexture),i.hostElement=s,i.hostDocument=s.ownerDocument,i.customSave=e.customSave,i.customLoad=e.customLoad,i.hostWindow=s.ownerDocument.defaultView,i.registerEventListeners();const r=t.createElement(Gi,{globalState:i});if(n.render(r,s),!i.guiTexture&&(i.workbench.createGUICanvas(o),e.currentSnippetToken))try{await i.workbench.loadFromSnippet(e.currentSnippetToken)}catch(e){}e.customLoadObservable&&e.customLoadObservable.add((()=>{i.onResetRequiredObservable.notifyObservers(),i.onBuiltObservable.notifyObservers()})),this._CurrentState=i,as["gui-editor"]&&(window.onbeforeunload=()=>{const e=as["gui-editor"];e&&e.close()}),i.hostWindow.addEventListener("beforeunload",(()=>{i.onPopupClosedObservable.notifyObservers(),i.dispose()}))}}const _i=void 0!==s.g?s.g:"undefined"!=typeof window?window:void 0;void 0!==_i&&(_i.BABYLON=_i.BABYLON||{},_i.BABYLON.GuiEditor=Zi,_i.BABYLON.GUIEditor=Zi,_i.GUIEDITOR={GUIEditor:Zi});const Wi=e})(),i.default})()));
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@babylonjs/core"),require("@babylonjs/gui")):"function"==typeof define&&define.amd?define("@babylonjs/gui-editor",["@babylonjs/core","@babylonjs/gui"],t):"object"==typeof exports?exports["@babylonjs/gui-editor"]=t(require("@babylonjs/core"),require("@babylonjs/gui")):e.GUIEDITOR=t(e.BABYLON,e.BABYLON.GUI)}("undefined"!=typeof self?self:"undefined"!=typeof global?global:this,((e,t)=>(()=>{var n={228:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(234),s=n.n(o),i=n(474),r=n.n(i)()(s());r.push([e.id,'.color-picker-container{width:320px;height:300px;background-color:#fff;display:grid;grid-template-columns:100%;grid-template-rows:50% 50px 60px 40px 1fr auto;font-family:"acumin-pro-condensed";font-weight:normal;font-size:14px}.color-picker-container.with-hints{height:380px}.color-picker-container .color-picker-saturation{grid-row:1;grid-column:1;display:grid;grid-template-columns:100%;grid-template-rows:100%;position:relative;cursor:pointer}.color-picker-container .color-picker-saturation .color-picker-saturation-white{grid-row:1;grid-column:1;background:linear-gradient(to right, #fff, rgba(255, 255, 255, 0))}.color-picker-container .color-picker-saturation .color-picker-saturation-black{grid-row:1;grid-column:1;background:linear-gradient(to top, #000, rgba(0, 0, 0, 0))}.color-picker-container .color-picker-saturation .color-picker-saturation-cursor{pointer-events:none;width:4px;height:4px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);border-radius:50%;transform:translate(-2px, -2px);position:absolute}.color-picker-container .color-picker-hue{grid-row:2;grid-column:1;display:grid;margin:10px;grid-template-columns:24% 76%;grid-template-rows:100%}.color-picker-container .color-picker-hue .color-picker-hue-color{grid-row:1;grid-column:1;align-self:center;justify-self:center;width:30px;height:30px;border-radius:15px;border:1px solid #000}.color-picker-container .color-picker-hue .color-picker-hue-slider{grid-row:1;grid-column:2;align-self:center;height:16px;position:relative;cursor:pointer;background:linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%)}.color-picker-container .color-picker-hue .color-picker-hue-slider .color-picker-hue-cursor{pointer-events:none;width:8px;height:18px;transform:translate(-4px, -2px);background-color:#f8f8f8;box-shadow:0 1px 4px 0 rgba(0,0,0,.37);position:absolute}.color-picker-container .color-picker-component{display:grid;margin:5px;grid-template-columns:100%;grid-template-rows:50% 50%}.color-picker-container .color-picker-component .color-picker-component-value{justify-self:center;align-self:center;grid-row:1;grid-column:1;margin-bottom:4px}.color-picker-container .color-picker-component .color-picker-component-value input{width:50px}.color-picker-container .color-picker-component .color-picker-component-label{justify-self:center;align-self:center;grid-row:2;grid-column:1;color:#000}.color-picker-container .color-picker-rgb{grid-row:3;grid-column:1;display:grid;margin:10px;grid-template-columns:20% 6.66% 20% 6.66% 20% 6.66% 20%;grid-template-rows:100%}.color-picker-container .red{grid-row:1;grid-column:1}.color-picker-container .green{grid-row:1;grid-column:3}.color-picker-container .blue{grid-row:1;grid-column:5}.color-picker-container .alpha{grid-row:1;grid-column:7}.color-picker-container .alpha.grayed{opacity:.5}.color-picker-container .color-picker-hex{grid-row:4;grid-column:1;display:grid;grid-template-columns:20% 80%;grid-template-rows:100%}.color-picker-container .color-picker-hex .color-picker-hex-label{justify-self:center;align-self:center;grid-row:1;grid-column:1;margin-left:10px;color:#000}.color-picker-container .color-picker-hex .color-picker-hex-value{justify-self:left;align-self:center;grid-row:1;grid-column:2;margin-left:10px;margin-right:10px}.color-picker-container .color-picker-hex .color-picker-hex-value input{width:70px}.color-picker-container .color-picker-warning{color:#000;font-size:11px;padding:4px;justify-self:left;align-self:center;grid-row:6;grid-column:1}',"",{version:3,sources:["webpack://./../../../dev/sharedUiComponents/dist/colorPicker/colorPicker.scss"],names:[],mappings:"AAAA,wBACI,WAAA,CACA,YAAA,CACA,qBAAA,CACA,YAAA,CACA,0BAAA,CACA,8CAAA,CACA,kCAAA,CACA,kBAAA,CACA,cAAA,CAEA,mCACI,YAAA,CAGJ,iDACI,UAAA,CACA,aAAA,CACA,YAAA,CACA,0BA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AA,CACA,cAAA,CACA,WAAA,CACA,iBAAA,CACA,iBAAA,CACA,UAAA,CACA,aAAA",sourceRoot:""}]),r.locals={};const a=r},548:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(234),s=n.n(o),i=n(474),r=n.n(i)()(s());r.push([e.id,'#log-console{background:#333;height:120px;box-sizing:border-box;margin:0;padding:10px;width:100%;overflow:hidden;overflow-y:auto}#log-console .log{color:#fff;font-size:14px;font-family:"Courier New",Courier,monospace}#log-console .log.error{color:red}',"",{version:3,sources:["webpack://./../../../tools/guiEditor/dist/components/log/log.scss"],names:[],mappings:"AAAA,aACI,eAAA,CACA,YAAA,CACA,qBAAA,CACA,QAAA,CACA,YAAA,CACA,UAAA,CACA,eAAA,CACA,eAAA,CAEA,kBACI,UAAA,CACA,cAAA,CACA,2CAAA,CAEA,wBACI,SAAA",sourceRoot:""}]),r.locals={};const a=r},788:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(234),s=n.n(o),i=n(474),r=n.n(i)()(s());r.push([e.id,':root{--backgroundGrey: #aaaaaa;--spacingHeight: 30px;--button: #333333;--buttonBackground: #ffffff;--buttonDisabledBackground: #c8c8c8;--disabledBackground: #c8c8c8;--buttonPressed: #ffffff;--buttonPressedBackground: #606060;--buttonHoverBackground: #afafaf}#ge-propertyTab{user-select:none;color:#000;background:#e2e2e2}#ge-propertyTab *{font-family:"acumin-pro-condensed",sans-serif;font-size:12px}#ge-propertyTab #header{height:32px;font-size:16px;color:#fff;background:#fff;grid-row:1;text-align:center;display:grid;grid-template-columns:30px 1fr;user-select:none}#ge-propertyTab #header #logo{position:relative;grid-column:1;width:32px;height:32px;left:0;display:flex;align-self:center;justify-self:center;filter:invert(1)}#ge-propertyTab #header #title{background:#fff;color:#000;grid-column:2;display:grid;align-items:center;text-align:center}#ge-propertyTab .copy{display:none}#ge-propertyTab .range{-webkit-appearance:none;width:100%;height:2px;background:#bcbcbc;border-radius:5px;outline:none;opacity:.7;transition:opacity .2s;padding:0}#ge-propertyTab .range:hover{opacity:1}#ge-propertyTab .range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:14px;height:14px;border-radius:50%;background:#e2e2e2;border:solid;border-width:thin;cursor:pointer}#ge-propertyTab .range::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:#000;cursor:pointer}#ge-propertyTab input[type=color]{-webkit-appearance:none;border:1px solid hsla(0,0%,100%,.5);padding:0;width:30px;height:20px}#ge-propertyTab input[type=color]::-webkit-color-swatch-wrapper{padding:0}#ge-propertyTab input[type=color]::-webkit-color-swatch{border:none}#ge-propertyTab hr{border:1px solid #d0cece}#ge-propertyTab .icon{width:30px;height:30px}#ge-propertyTab .unit{width:26px;height:26px;color:var(--button);background-color:var(--buttonBackground);border:none;margin-top:2px;cursor:pointer;margin-left:2px;font-family:"atten-round-new",sans-serif;font-weight:500;font-style:normal;display:flex;justify-content:center;align-items:center}#ge-propertyTab .unit:disabled{background-color:var(--buttonDisabledBackground);cursor:not-allowed}#ge-propertyTab .unit:not(:disabled):hover{background-color:var(--buttonHoverBackground)}#ge-propertyTab .unit:not(:disabled):active{color:var(--buttonPressed);background-color:var(--buttonPressedBackground)}#ge-propertyTab input,#ge-propertyTab select{outline-style:solid;outline-width:0px;outline-color:rgba(0,0,0,0);outline-offset:-1px;outline-width:1px;transition:outline-color .2s;border:rgba(0,0,0,0);padding-left:5px}#ge-propertyTab input:focus,#ge-propertyTab select:focus{outline-width:1px;outline-color:#000}#ge-propertyTab .hasArrows input::-webkit-outer-spin-button,#ge-propertyTab .hasArrows input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}#ge-propertyTab .sliderLine{height:var(--spacingHeight);display:grid;grid-template-rows:100%;grid-template-columns:auto 1fr 20px 1fr;flex-grow:1}#ge-propertyTab .sliderLine .label{grid-column:1;display:flex;align-items:center;min-width:15px;font-weight:600}#ge-propertyTab .sliderLine .img{grid-column:1;display:flex;align-items:center}#ge-propertyTab .sliderLine .slider{grid-column:4;grid-row:1;margin-right:5px;display:flex;align-items:center;padding-left:5px}#ge-propertyTab .sliderLine .floatLine{grid-column:2;padding-left:0px;grid-template-columns:1fr auto}#ge-propertyTab .sliderLine .floatLine .label{grid-column:1;display:none;align-items:center;font-weight:600}#ge-propertyTab .sliderLine .floatLine .short{grid-column:1;display:flex;align-items:center}#ge-propertyTab .sliderLine .floatLine .short input{width:100%;background-color:#fff;height:24px}#ge-propertyTab .sliderLine .floatLine .short input::-webkit-outer-spin-button,#ge-propertyTab .sliderLine .floatLine .short input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}#ge-propertyTab .sliderLine .floatLine .short input[type=number]{-webkit-appearance:textfield;appearance:textfield}#ge-propertyTab .sliderLine .floatLine .copy{display:none}#ge-propertyTab .sliderLine .copy{display:none}#ge-propertyTab .ge-divider{padding-right:18px;padding-left:5px;display:grid;grid-template-columns:auto 1fr;padding-top:1px;padding-bottom:1px}#ge-propertyTab .ge-divider>.textLine+.command-button{margin-top:-3px;grid-column:5}#ge-propertyTab .ge-divider.double{display:grid;grid-template-columns:auto 1fr 5px 1fr}#ge-propertyTab .ge-divider.double>.textInputLine:first-of-type,#ge-propertyTab .ge-divider.double>.floatLine:first-of-type{grid-column:2}#ge-propertyTab .ge-divider.double>.textInputLine:nth-of-type(2),#ge-propertyTab .ge-divider.double>.floatLine:nth-of-type(2){grid-column:4}#ge-propertyTab .ge-divider.double>.command-button{grid-column:5;margin-left:5px}#ge-propertyTab .ge-divider.quad{display:grid;grid-template-columns:1fr 5px 1fr 5px 1fr 5px 1fr}#ge-propertyTab .ge-divider.quad>.textInputLine:first-of-type,#ge-propertyTab .ge-divider.quad>.floatLine:first-of-type{grid-column:1}#ge-propertyTab .ge-divider.quad>.textInputLine:nth-of-type(2),#ge-propertyTab .ge-divider.quad>.floatLine:nth-of-type(2){grid-column:3}#ge-propertyTab .ge-divider.quad>.textInputLine:nth-of-type(3),#ge-propertyTab .ge-divider.quad>.floatLine:nth-of-type(3){grid-column:5}#ge-propertyTab .ge-divider.quad>.textInputLine:nth-of-type(4),#ge-propertyTab .ge-divider.quad>.floatLine:nth-of-type(4){grid-column:7}#ge-propertyTab .ge-grid-divider{display:grid;grid-template-columns:150px 1fr auto}#ge-propertyTab .ge-grid-divider .textLine{grid-column:auto}#ge-propertyTab .ge-grid-button-divider{display:grid;grid-template-columns:60px 60px 60px 60px}#ge-propertyTab .ge-grid-remove{display:grid;background-color:#c2c2c2;margin-bottom:5px;filter:invert(1)}#ge-propertyTab .ge-grid-edit{display:grid;background-color:#878787;margin-bottom:5px;filter:invert(1)}#ge-propertyTab .ge-grid{display:grid;margin-bottom:5px}#ge-propertyTab .ge-divider.double .textInputLine{grid-template-columns:auto auto 1fr auto}#ge-propertyTab .textInputLine,#ge-propertyTab .floatLine{user-select:none;padding-bottom:0px;padding-top:0px;height:var(--spacingHeight);display:grid;grid-template-columns:auto auto 1fr;flex-grow:1}#ge-propertyTab .textInputLine .label,#ge-propertyTab .floatLine .label{grid-column:2;display:flex;align-items:center;min-width:15px;font-weight:600}#ge-propertyTab .textInputLine .disabled,#ge-propertyTab .floatLine .disabled{color:var(--backgroundGrey);background-color:var(--disabledBackground)}#ge-propertyTab .textInputLine img,#ge-propertyTab .floatLine img{width:30px}#ge-propertyTab .textInputLine .img,#ge-propertyTab .floatLine .img{grid-column:1;display:flex;align-items:center}#ge-propertyTab .textInputLine .value,#ge-propertyTab .floatLine .value{display:flex;align-items:center;grid-column:3;background:rgba(0,0,0,0);height:26px;position:relative;background-color:#fff;margin-top:2px;overflow-y:hidden}#ge-propertyTab .textInputLine .value input,#ge-propertyTab .floatLine .value input{width:100%;height:24px;color:#333}#ge-propertyTab .textInputLine .value input.hasArrows,#ge-propertyTab .floatLine .value input.hasArrows{padding-right:15px}#ge-propertyTab .textInputLine .value .arrows,#ge-propertyTab .floatLine .value .arrows{display:none;position:absolute;right:0;flex-direction:column;cursor:grab}#ge-propertyTab .textInputLine .value .arrows .downArrowIcon,#ge-propertyTab .textInputLine .value .arrows .upArrowIcon,#ge-propertyTab .floatLine .value .arrows .downArrowIcon,#ge-propertyTab .floatLine .value .arrows .upArrowIcon{width:13px;height:13px}#ge-propertyTab .textInputLine .value:hover .arrows,#ge-propertyTab .textInputLine .value:focus .arrows,#ge-propertyTab .textInputLine .value.dragging .arrows,#ge-propertyTab .floatLine .value:hover .arrows,#ge-propertyTab .floatLine .value:focus .arrows,#ge-propertyTab .floatLine .value.dragging .arrows{display:flex}#ge-propertyTab .textInputLine .value .arrows:hover,#ge-propertyTab .floatLine .value .arrows:hover{background-color:var(--buttonHoverBackground)}#ge-propertyTab .textInputLine .value.dragging .arrows,#ge-propertyTab .floatLine .value.dragging .arrows{background-color:var(--buttonPressedBackground)}#ge-propertyTab .textInputLine .value.dragging .arrows .downArrowIcon,#ge-propertyTab .textInputLine .value.dragging .arrows .upArrowIcon,#ge-propertyTab .floatLine .value.dragging .arrows .downArrowIcon,#ge-propertyTab .floatLine .value.dragging .arrows .upArrowIcon{filter:brightness(10)}#ge-propertyTab .textInputLine .copy,#ge-propertyTab .floatLine .copy{display:none}#ge-propertyTab .textInputLine.withUnits{grid-template-columns:auto auto 1fr auto}#ge-propertyTab .textInputArea{height:100%;display:grid;grid-template-columns:1fr 120px}#ge-propertyTab .textInputArea .disabled{color:var(--backgroundGrey);background-color:var(--disabledBackground)}#ge-propertyTab .textInputArea .label{grid-column:1;display:flex;align-items:center}#ge-propertyTab .textInputArea .value{display:flex;align-items:center;grid-column:2}#ge-propertyTab .textInputArea .value textarea{width:calc(150% - 5px);margin-left:-50%;height:40px}#ge-propertyTab .paneContainer{margin-top:3px;display:grid;grid-template-rows:100%;grid-template-columns:100%}#ge-propertyTab .paneContainer .paneList{border-left:3px solid rgba(0,0,0,0)}#ge-propertyTab .paneContainer:hover .paneList{border-left:3px solid rgba(51,122,183,.8)}#ge-propertyTab .paneContainer:hover .paneContainer-content .header .title{border-left:3px solid #337ab7}#ge-propertyTab .paneContainer .paneContainer-highlight-border{grid-row:1;grid-column:1;opacity:1;border:3px solid red;transition:opacity 250ms;pointer-events:none}#ge-propertyTab .paneContainer .paneContainer-highlight-border.transparent{opacity:0}#ge-propertyTab .paneContainer .paneContainer-content{grid-row:1;grid-column:1}#ge-propertyTab .paneContainer .paneContainer-content .header{display:grid;grid-template-columns:1fr auto;background:#ccc;height:var(--spacingHeight);padding-bottom:0px;padding-top:0px;padding-right:5px;cursor:pointer}#ge-propertyTab .paneContainer .paneContainer-content .header .title{border-left:3px solid rgba(0,0,0,0);padding-left:5px;grid-column:1;display:flex;align-items:center}#ge-propertyTab .paneContainer .paneContainer-content .header .collapse{grid-column:2;display:flex;align-items:center;justify-items:center;transform-origin:center}#ge-propertyTab .paneContainer .paneContainer-content .header .collapse.closed{transform:rotate(180deg)}#ge-propertyTab .paneContainer .paneContainer-content .paneList>div:not(:last-child){border-bottom:.5px solid hsla(0,0%,100%,.1)}#ge-propertyTab .paneContainer .paneContainer-content .fragment>div:not(:last-child){border-bottom:.5px solid hsla(0,0%,100%,.1)}#ge-propertyTab .color-picker{height:26px;width:26px}#ge-propertyTab .color-picker .color-rect-background{width:calc(100% - 2px);height:calc(100% - 2px);border:1px #000 solid;cursor:pointer;background:repeating-conic-gradient(#e2e2e2 0% 25%, white 0% 50%) 50%/100% 100%}#ge-propertyTab .color-picker .color-rect-background .color-rect{height:100%}#ge-propertyTab .color-picker .color-picker-cover{z-index:2;position:fixed;top:0px;right:0px;bottom:0px;left:0px}#ge-propertyTab .color-picker .color-picker-float{position:absolute;outline:1px solid #000}#ge-propertyTab .color-picker .color-picker-container{background-color:#e2e2e2}#ge-propertyTab .gradient-step{display:grid;grid-template-rows:100%;grid-template-columns:20px 30px 40px auto 20px 30px;padding-top:5px;padding-left:5px;padding-bottom:5px}#ge-propertyTab .gradient-step .step{grid-row:1;grid-column:1}#ge-propertyTab .gradient-step .color{grid-row:1;grid-column:2;cursor:pointer}#ge-propertyTab .gradient-step .step-value{margin-left:5px;grid-row:1;grid-column:3;text-align:right;margin-right:5px}#ge-propertyTab .gradient-step .step-slider{grid-row:1;grid-column:4;display:grid;justify-content:stretch;align-content:center;margin-right:-5px;padding-left:12px}#ge-propertyTab .gradient-step .step-slider input{width:90%}#ge-propertyTab .gradient-step .gradient-copy{grid-row:1;grid-column:5;display:grid;align-content:center;justify-content:center}#ge-propertyTab .gradient-step .gradient-copy .img{height:20px;width:20px}#ge-propertyTab .gradient-step .gradient-copy .img:hover{cursor:pointer}#ge-propertyTab .gradient-step .gradient-delete{grid-row:1;grid-column:6;display:grid;align-content:center;justify-content:center}#ge-propertyTab .gradient-step .gradient-delete .img{height:20px;width:20px}#ge-propertyTab .gradient-step .gradient-delete .img:hover{cursor:pointer}#ge-propertyTab .alignment-bar{display:flex;justify-content:center;padding-right:5px}#ge-propertyTab .command-button{cursor:pointer;width:30px}#ge-propertyTab .command-button .command-label{display:none}#ge-propertyTab .command-button .command-button-icon{height:100%;width:100%;display:grid;color:#fff;align-content:center;justify-content:center}#ge-propertyTab .command-button:hover{background-color:#fff}#ge-propertyTab .command-button .active{transform-origin:center;background-color:#fff}#ge-propertyTab .command-button img.active{background-color:#fff}#ge-propertyTab .command-button.disabled{background-color:var(--buttonDisabledBackground);pointer-events:none}#ge-propertyTab .command-button-alt{cursor:pointer;width:40px;margin-left:5px;margin-right:5px;background-color:#fff}#ge-propertyTab .command-button-alt .command-label{display:none}#ge-propertyTab .command-button-alt .command-button-icon{height:100%;width:100%;display:grid;align-content:center;justify-content:center}#ge-propertyTab .command-button-alt:hover{background-color:#c2c2c2;filter:invert(1)}#ge-propertyTab .command-button-alt-disabled{cursor:pointer;pointer-events:none;width:40px;margin-left:5px;margin-right:5px;background-color:#fff}#ge-propertyTab .command-button-alt-disabled .command-label{display:none}#ge-propertyTab .command-button-alt-disabled .command-button-icon{height:100%;width:100%;display:grid;align-content:center;justify-content:center}#ge-propertyTab .command-button-alt-disabled img{filter:invert(1)}#ge-propertyTab .command-button-alt-active{cursor:pointer;pointer-events:none;width:40px;margin-left:5px;margin-right:5px;background-color:#c2c2c2;filter:invert(1)}#ge-propertyTab .command-button-alt-active .command-label{display:none}#ge-propertyTab .command-button-alt-active .command-button-icon{height:100%;width:100%;display:grid;align-content:center;justify-content:center}#ge-propertyTab .floatLine{user-select:none;height:var(--spacingHeight);padding-bottom:0px;padding-top:0px;display:grid;grid-template-columns:auto auto 2fr auto;flex-grow:1}#ge-propertyTab .floatLine .label{grid-column:2;display:flex;align-items:center;min-width:15px;font-weight:600}#ge-propertyTab .floatLine img{width:30px}#ge-propertyTab .floatLine .img{grid-column:1;display:flex;align-items:center}#ge-propertyTab .floatLine .value{display:flex;align-items:center;grid-column:3;background:rgba(0,0,0,0);height:26px}#ge-propertyTab .floatLine .value input{width:100%;background-color:#fff;height:24px}#ge-propertyTab .floatLine .short{grid-column:2;display:flex;align-items:center}#ge-propertyTab .floatLine .short input{width:100%}#ge-propertyTab .floatLine .short input::-webkit-outer-spin-button,#ge-propertyTab .floatLine .short input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}#ge-propertyTab .floatLine .copy{display:none}#ge-propertyTab .vector3Line{padding-bottom:0px;padding-top:0px;display:grid}#ge-propertyTab .vector3Line .firstLine{display:grid;grid-template-columns:1fr auto 20px;height:var(--spacingHeight)}#ge-propertyTab .vector3Line .firstLine .label{grid-column:1;display:flex;align-items:center}#ge-propertyTab .vector3Line .firstLine .vector{grid-column:2;display:flex;align-items:center;text-align:right;opacity:.8}#ge-propertyTab .vector3Line .firstLine .expand{grid-column:3;display:grid;align-items:center;justify-items:center;cursor:pointer}#ge-propertyTab .vector3Line .firstLine .copy{display:none}#ge-propertyTab .vector3Line .secondLine{display:grid;padding-right:5px;border-left:1px solid #337ab7}#ge-propertyTab .vector3Line .secondLine .no-right-margin{margin-right:0}#ge-propertyTab .vector3Line .secondLine .numeric{display:grid;grid-template-columns:1fr auto}#ge-propertyTab .vector3Line .secondLine .numeric-label{text-align:right;grid-column:1;display:flex;align-items:center;justify-self:right;margin-right:10px}#ge-propertyTab .vector3Line .secondLine .numeric-value{width:120px;grid-column:2;display:flex;align-items:center;border:1px solid #337ab7}#ge-propertyTab .buttonLine{height:var(--spacingHeight);padding-bottom:0px;padding-top:0px;display:grid;align-items:center;justify-items:stretch;padding-bottom:5px}#ge-propertyTab .buttonLine input[type=file]{display:none}#ge-propertyTab .buttonLine .file-upload{background:var(--backgroundGrey);border:1px solid #424242;margin:5px 10px;color:#fff;padding:4px 5px;opacity:.9;cursor:pointer;text-align:center;border-radius:4px}#ge-propertyTab .buttonLine .file-upload:hover{opacity:1}#ge-propertyTab .buttonLine .file-upload:active{transform:scale(0.98);transform-origin:.5 .5}#ge-propertyTab .buttonLine button{background:var(--backgroundGrey);border:1px solid #424242;margin:5px 10px 5px 10px;color:#fff;padding:4px 5px;opacity:.9;border-radius:4px}#ge-propertyTab .buttonLine button:hover{opacity:1}#ge-propertyTab .buttonLine button:active{background:#282828}#ge-propertyTab .buttonLine button:focus{border:1px solid #424242;outline:0px}#ge-propertyTab .numeric{padding-bottom:0px;padding-top:0px;height:var(--spacingHeight);display:grid;grid-template-columns:1fr 120px auto}#ge-propertyTab .numeric .numeric-label{grid-column:1;display:flex;align-items:center}#ge-propertyTab .numeric .number{display:flex;align-items:center;grid-column:2;height:10px}#ge-propertyTab .numeric .number .input{width:calc(100% - 5px);height:10px}#ge-propertyTab .checkBoxLine{padding-bottom:0px;padding-top:0px;height:var(--spacingHeight);display:grid;grid-template-columns:auto 1fr auto;flex-grow:1}#ge-propertyTab .checkBoxLine .label{grid-column:2;display:flex;align-items:center;min-width:100px;margin-left:15px;height:var(--spacingHeight);font-weight:600}#ge-propertyTab .checkBoxLine img{width:30px}#ge-propertyTab .checkBoxLine .img{grid-column:1;display:flex;align-items:center}#ge-propertyTab .checkBoxLine .hidden{display:none}#ge-propertyTab .checkBoxLine .copy{display:none}#ge-propertyTab .listLine{padding-bottom:0px;padding-top:0px;height:var(--spacingHeight);display:grid;grid-template-columns:auto 1fr auto;flex-grow:1}#ge-propertyTab .listLine .label{grid-column:2;display:none;align-items:center}#ge-propertyTab .listLine img{width:30px}#ge-propertyTab .listLine .img{grid-column:1;display:flex;align-items:center}#ge-propertyTab .listLine .options{grid-column:2;padding-left:15px;display:flex;align-items:center}#ge-propertyTab .listLine .options select{width:100%;height:25px;border:rgba(0,0,0,0)}#ge-propertyTab .listLine .options input{width:100%;height:24px;color:#333}#ge-propertyTab .listLine .copy{display:none}#ge-propertyTab .color3Line{padding-left:15px;padding-bottom:0px;padding-top:0px;display:grid;flex-grow:1}#ge-propertyTab .color3Line .firstLine{height:var(--spacingHeight);display:flex;align-items:center}#ge-propertyTab .color3Line .firstLine .label{grid-column:2;padding-left:5px;display:none;align-items:center;min-width:15px}#ge-propertyTab .color3Line .firstLine .img{grid-column:1;display:flex;align-items:center}#ge-propertyTab .color3Line .firstLine img{width:30px;height:30px}#ge-propertyTab .color3Line .firstLine .textInputLine{grid-column:3;padding-left:2px;flex-grow:1}#ge-propertyTab .color3Line .firstLine .color3{display:flex;align-items:center}#ge-propertyTab .color3Line .firstLine .color3 input{margin-right:5px}#ge-propertyTab .color3Line .firstLine .expand{grid-column:3;display:none;align-items:center;justify-items:center;cursor:pointer}#ge-propertyTab .color3Line .firstLine .expand img{height:100%;width:20px}#ge-propertyTab .color3Line .firstLine .copy{grid-column:4;display:none;align-items:center;justify-items:center;cursor:pointer;color:#000}#ge-propertyTab .color3Line .firstLine .copy img{height:100%;width:20px}#ge-propertyTab .color3Line .secondLine{display:grid;padding-right:5px;border-left:1px solid #337ab7}#ge-propertyTab .color3Line .secondLine .numeric{display:grid;grid-template-columns:1fr auto}#ge-propertyTab .color3Line .secondLine .numeric-label{text-align:right;grid-column:1;display:flex;align-items:center;justify-self:right;margin-right:10px}#ge-propertyTab .color3Line .secondLine .numeric-value{width:120px;grid-column:2;display:flex;align-items:center;border:1px solid #337ab7}#ge-propertyTab .textLine{padding-left:5px;padding-bottom:0px;padding-top:0px;padding-right:18px;height:auto;display:grid;grid-template-columns:auto auto 2fr 1fr}#ge-propertyTab .textLine .label{grid-column:2;padding-left:5px;padding-top:4px;display:flex;align-items:left;min-width:15px;color:#a9a9a9;font-size:10px;font-family:"acumin-pro-semi-condensed",sans-serif;font-weight:600}#ge-propertyTab .textLine img{width:30px}#ge-propertyTab .textLine .img{grid-column:1;display:flex;align-items:center}#ge-propertyTab .textLine .link-value{grid-column:2;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-align:end;opacity:.8;margin:5px;margin-top:6px;max-width:140px;text-decoration:underline;cursor:pointer}#ge-propertyTab .textLine .value{display:none;grid-column:3;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-align:end;opacity:.8;margin:5px;margin-top:6px;max-width:200px;user-select:text}#ge-propertyTab .textLine .value.check{color:green}#ge-propertyTab .textLine .value.uncheck{color:red}',"",{version:3,sources:["webpack://./../../../tools/guiEditor/dist/components/propertyTab/propertyTab.scss"],names:[],mappings:"AAAA,MACI,yBAAA,CACA,qBAAA,CACA,iBAAA,CACA,2BAAA,CACA,mCAAA,CACA,6BAAA,CACA,wBAAA,CACA,kCAAA,CACA,gCAAA,CAGJ,gBACI,gBAAA,CAKA,UAAA,CACA,kBAAA,CACA,kBACI,6CAAA,CACA,cAAA,CAEJ,wBACI,WAAA,CACA,cAAA,CACA,UAAA,CACA,eAAA,CACA,UAAA,CACA,iBAAA,CACA,YAAA,CACA,8BAAA,CACA,gBAAA,CAEA,8BACI,iBAAA,CACA,aAAA,CACA,UAAA,CACA,WAAA,CACA,MAAA,CACA,YAAA,CACA,iBAAA,CACA,mBAAA,CACA,gBAAA,CAGJ,+BACI,eAAA,CACA,UAAA,CACA,aAAA,CACA,YAAA,CACA,kBAAA,CACA,iBAAA,CAIR,sBACI,YAAA,CAGJ,uBACI,uBAAA,CACA,UAAA,CACA,UAAA,CACA,kBAAA,CACA,iBAAA,CACA,YAAA,CACA,UAAA,CACA,sBAAA,CACA,SAAA,CAGJ,6BACI,SAAA,CAGJ,6CACI,uBAAA,CACA,eAAA,CACA,UAAA,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ACA,UAAA,CAIR,6CACI,aAAA,CACA,YAAA,CACA,kBAAA,CACA,oBAAA,CACA,cAAA,CACA,UAAA,CACA,iDACI,WAAA,CACA,UAAA,CAKZ,wCACI,YAAA,CACA,iBAAA,CACA,6BAAA,CAEA,iDACI,YAAA,CACA,8BAAA,CAGJ,uDACI,gBAAA,CACA,aAAA,CACA,YAAA,CACA,kBAAA,CACA,kBAAA,CACA,iBAAA,CAGJ,uDACI,WAAA,CACA,aAAA,CACA,YAAA,CACA,kBAAA,CACA,wBAAA,CAKZ,0BACI,gBAnnCgB,CAonChB,kBAnnCkB,CAonClB,eAnnCe,CAonCf,kBAnnCiB,CAonCjB,WAAA,CACA,YAAA,CACA,uCAAA,CACA,iCACI,aAAA,CACA,gBAAA,CACA,eAAA,CACA,YAAA,CACA,gBAAA,CACA,cAAA,CACA,aAAA,CACA,cAAA,CACA,kDAAA,CACA,eAAA,CAGJ,8BACI,UAAA,CAGJ,+BACI,aAAA,CACA,YAAA,CACA,kBAAA,CAGJ,sCACI,aAAA,CACA,kBAAA,CACA,sBAAA,CACA,eAAA,CACA,cAAA,CACA,UAAA,CACA,UAAA,CACA,cAAA,CACA,eAAA,CACA,yBAAA,CACA,cAAA,CAGJ,iCACI,YAAA,CACA,aAAA,CACA,kBAAA,CACA,sBAAA,CACA,eAAA,CACA,cAAA,CACA,UAAA,CACA,UAAA,CACA,cAAA,CACA,eAAA,CACA,gBAAA,CAEA,uCACI,WAAA,CAGJ,yCACI,SAAA",sourceRoot:""}]),r.locals={};const a=r},660:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(234),s=n.n(o),i=n(474),r=n.n(i)()(s());r.push([e.id,'#ge-scene-explorer-host{position:absolute;left:0px;top:0px;bottom:0px}#ge-scene-explorer-host *{font-family:"acumin-pro-condensed"}#ge-scene-explorer-host:focus{outline:none}#ge-__resizable_base__{display:none}.ge-context-menu{background:#e2e2e2}.ge-context-menu .react-contextmenu-item{padding:10px;cursor:pointer}.ge-context-menu .react-contextmenu-item:hover{background:#e2e2e2}.ge-eact-contextmenu.context-menu.react-contextmenu--visible{z-index:99;transform:scale(1)}#ge-sceneExplorer{background:#e2e2e2;height:100%;margin:0;padding:0;display:grid;grid-template-rows:auto 1fr;font:16px "acumin-pro-condensed"}#ge-sceneExplorer:focus{outline:none}#ge-sceneExplorer #header{height:30px;font-size:16px;color:#000;background:#e2e2e2;grid-row:1;text-align:center;display:grid;grid-template-columns:30px 1fr 50px;user-select:none}#ge-sceneExplorer #header #logo{position:relative;grid-column:1;width:24px;height:24px;left:0;display:flex;align-self:center;justify-self:center}#ge-sceneExplorer #header #title{grid-column:2;display:grid;align-items:center;text-align:center}#ge-sceneExplorer #header #commands{grid-column:3;display:grid;align-items:center;grid-template-columns:1fr 1fr}#ge-sceneExplorer #header #commands .expand{grid-column:1;display:grid;align-items:center;justify-items:center;cursor:pointer}#ge-sceneExplorer #header #commands .close{grid-column:2;display:grid;align-items:center;justify-items:center;cursor:pointer}#ge-sceneExplorer #tree{grid-row:2;overflow-x:hidden;overflow-y:auto}#ge-sceneExplorer .filter{display:flex;align-items:stretch}#ge-sceneExplorer .filter input{width:100%;margin:10px 40px 5px 40px;display:block;border:none;padding:0;border-bottom:solid 1px #337ab7;background:linear-gradient(to bottom, rgba(255, 255, 255, 0) 96%, rgb(51, 122, 183) 4%);background-position:-1000px 0;background-size:1000px 100%;background-repeat:no-repeat;color:#000}#ge-sceneExplorer .filter input::placeholder{color:#d3d3d3}#ge-sceneExplorer .filter input:focus{box-shadow:none;outline:none;background-position:0 0}#ge-sceneExplorer .groupContainer{margin-left:0px;color:#000;margin-top:0px;margin-bottom:0px;height:24px;user-select:none;align-self:center;display:grid;align-items:center}#ge-sceneExplorer .groupContainer:hover{background:#bbb}#ge-sceneExplorer .groupContainer .expandableHeader{display:grid;grid-template-columns:1fr 20px}#ge-sceneExplorer .groupContainer .expandableHeader .text{grid-column:1;display:grid;grid-template-columns:20px 1fr}#ge-sceneExplorer .groupContainer .expandableHeader .text .arrow{grid-column:1;margin-left:0px;color:#000;cursor:pointer;display:inline-block;margin-right:6px;opacity:.5}#ge-sceneExplorer .groupContainer .expandableHeader .text .text-value{grid-column:2;display:flex;align-items:center}#ge-sceneExplorer .groupContainer .expandableHeader .expandAll{opacity:.5;grid-column:2;margin-right:10px}#ge-sceneExplorer .icon{display:grid;align-items:center;justify-items:center;cursor:pointer}#ge-sceneExplorer .addComponent{display:none}#ge-sceneExplorer .makeChild{grid-column:3}#ge-sceneExplorer .itemContainer{margin-left:0px;color:#000;margin-top:0px;margin-bottom:0px;height:32px;-webkit-user-select:none;user-select:none;display:grid;grid-template-columns:20px 1fr;border:2px solid rgba(0,0,0,0)}#ge-sceneExplorer .itemContainer.hover{border:2px solid #527089;cursor:pointer}#ge-sceneExplorer .itemContainer.seAbove{border-top:2px solid #527089;cursor:pointer}#ge-sceneExplorer .itemContainer.seBelow{border-bottom:2px solid #527089;cursor:pointer}#ge-sceneExplorer .itemContainer.selected{background:#bfbebe;color:#000}#ge-sceneExplorer .itemContainer.dragged{background:rgba(0,0,0,0);color:#000}#ge-sceneExplorer .itemContainer.parent{background:#fff;color:#000}#ge-sceneExplorer .itemContainer .isNotActive{opacity:.3}#ge-sceneExplorer .itemContainer .arrow{grid-column:1;color:#000;opacity:.6}#ge-sceneExplorer .itemContainer .popup{width:200px;visibility:hidden;background-color:#bbb;color:#fff;border:1px solid hsla(0,0%,100%,.5);position:absolute;z-index:1;margin-left:-180px;box-sizing:border-box}#ge-sceneExplorer .itemContainer .popup.show{visibility:visible}#ge-sceneExplorer .itemContainer .popup:focus{outline:none}#ge-sceneExplorer .itemContainer .popup .popupMenu{padding:6px 5px 5px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;height:18px}#ge-sceneExplorer .itemContainer .popup .popupMenu:hover{background:#fff;color:#333}#ge-sceneExplorer .itemContainer .sceneNode{grid-column:2;margin-left:-10px;display:grid;grid-template-columns:1fr 20px 20px 20px 20px 10px 20px 20px auto 5px;align-items:center;cursor:pointer}#ge-sceneExplorer .itemContainer .sceneNode .sceneTitle{grid-column:1;margin-right:5px;display:flex;align-items:center;height:24px}#ge-sceneExplorer .itemContainer .sceneNode .translation{grid-column:2;opacity:.6}#ge-sceneExplorer .itemContainer .sceneNode .translation.selected{opacity:1}#ge-sceneExplorer .itemContainer .sceneNode .rotation{grid-column:3;opacity:.6}#ge-sceneExplorer .itemContainer .sceneNode .rotation.selected{opacity:1}#ge-sceneExplorer .itemContainer .sceneNode .scaling{grid-column:4;opacity:.6}#ge-sceneExplorer .itemContainer .sceneNode .scaling.selected{opacity:1}#ge-sceneExplorer .itemContainer .sceneNode .bounding{grid-column:5;opacity:.6}#ge-sceneExplorer .itemContainer .sceneNode .bounding.selected{opacity:1}#ge-sceneExplorer .itemContainer .sceneNode .separator{grid-column:6;margin-left:5px;width:5px;display:flex;align-items:center;height:18px;border-left:solid 1px #337ab7}#ge-sceneExplorer .itemContainer .sceneNode .pickingMode{grid-column:7;opacity:.6}#ge-sceneExplorer .itemContainer .sceneNode .pickingMode.selected{opacity:1}#ge-sceneExplorer .itemContainer .sceneNode .refresh{grid-column:8}#ge-sceneExplorer .itemContainer .sceneNode .extensions{width:20px;grid-column:9}#ge-sceneExplorer .itemContainer .adtextureTools{grid-column:2;display:grid;grid-template-columns:1fr 20px auto 5px;align-items:center}#ge-sceneExplorer .itemContainer .adtextureTools .pickingMode{grid-column:2;opacity:.6}#ge-sceneExplorer .itemContainer .adtextureTools .pickingMode.selected{opacity:1}#ge-sceneExplorer .itemContainer .adtextureTools .extensions{width:20px;grid-column:3}#ge-sceneExplorer .itemContainer .controlTools{grid-column:2;display:grid;align-items:center;grid-template-columns:auto 1fr auto auto auto}#ge-sceneExplorer .itemContainer .controlTools .controlType{grid-column:1}#ge-sceneExplorer .itemContainer .controlTools .controlType img{width:32px;height:32px;filter:invert(100%)}#ge-sceneExplorer .itemContainer .controlTools .highlight{grid-column:3}#ge-sceneExplorer .itemContainer .controlTools .visibility{grid-column:4}#ge-sceneExplorer .itemContainer .controlTools .extensions{width:20px;grid-column:5}#ge-sceneExplorer .itemContainer .title{background:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;min-width:0;margin-right:5px;align-items:center;height:24px;cursor:pointer}#ge-sceneExplorer .itemContainer .title .titleText{font-family:"acumin-pro-condensed",sans-serif;font-size:16px;border:unset;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;outline:none}',"",{version:3,sources:["webpack://./../../../tools/guiEditor/dist/components/sceneExplorer/sceneExplorer.scss"],names:[],mappings:"AAAA,wBACI,iBAAA,CACA,QAAA,CACA,OAAA,CACA,UAAA,CACA,0BACI,kCAAA,CAEJ,8BACI,YAAA,CAIR,uBACI,YAAA,CAGJ,iBACI,kBAAA,CAEA,yCACI,YAAA,CACA,cAAA,CAEA,+CACI,kBAAA,CAKZ,6DACI,UAAA,CACA,kBAAA,CAGJ,kBACI,kBAAA,CACA,WAAA,CACA,QAAA,CACA,SAAA,CACA,YAAA,CACA,2BAAA,CACA,gCAAA,CAEA,wBACI,YAAA,CAGJ,0BACI,WAAA,CACA,cAAA,CACA,UAAA,CACA,kBAAA,CACA,UAAA,CACA,iBAAA,CACA,YAAA,CACA,mCAAA,CACA,gBAAA,CAEA,gCACI,iBAAA,CACA,aAAA,CACA,UAAA,CACA,WAAA,CACA,MAAA,CACA,YAAA,CACA,iBAAA,CACA,mBAAA,CAGJ,iCACI,aAAA,CACA,YAAA,CACA,kBAAA,CACA,iBAAA,CAGJ,oCACI,aAAA,CACA,YAAA,CACA,kBAAA,CACA,6BAAA,CAEA,4CACI,aAAA,CACA,YAAA,CACA,kBAAA,CACA,oBAAA,CACA,cAAA,CAGJ,2CACI,aAAA,CACA,YAAA,CACA,kBAAA,CACA,oBAAA,CACA,cAAA,CAKZ,wBACI,UAAA,CAEA,iBAAA,CACA,eAAA,CAGJ,0BACI,YAAA,CACA,mBAAA,CAEA,gCACI,UAAA,CACA,yBAAA,CACA,aAAA,CACA,WAAA,CACA,SAAA,CAC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BAAA,CACA,YAAA,CACA,qEAAA,CACA,kBAAA,CACA,cAAA,CAEA,wDACI,aAAA,CACA,gBAAA,CACA,YAAA,CACA,kBAAA,CACA,WAAA,CAGJ,yDACI,aAAA,CACA,UAAA,CAEA,kEACI,SAAA,CAIR,sDACI,aAAA,CACA,UAAA,CAEA,+DACI,SAAA,CAIR,qDACI,aAAA,CACA,UAAA,CACA,8DACI,SAAA,CAIR,sDACI,aAAA,CACA,UAAA,CACA,+DACI,SAAA,CAIR,uDACI,aAAA,CACA,eAAA,CACA,SAAA,CACA,YAAA,CACA,kBAAA,CACA,WAAA,CACA,6BAAA,CAGJ,yDACI,aAAA,CACA,UAAA,CAEA,kEACI,SAAA,CAIR,qDACI,aAAA,CAGJ,wDACI,UAAA,CACA,aAAA,CAIR,iDACI,aAAA,CACA,YAAA,CACA,uCAAA,CACA,kBAAA,CAEA,8DACI,aAAA,CACA,UAAA,CAEA,uEACI,SAAA,CAIR,6DACI,UAAA,CACA,aAAA,CAIR,+CACI,aAAA,CACA,YAAA,CACA,kBAAA,CACA,6CAAA,CAEA,4DACI,aAAA,CACA,gEACI,UAAA,CACA,WAAA,CACA,mBAAA,CAIR,0DACI,aAAA,CAGJ,2DACI,aAAA,CAGJ,2DACI,UAAA,CACA,aAAA,CAIR,wCACI,wBAAA,CACA,kBAAA,CACA,eAAA,CACA,WAAA,CACA,gBAAA,CACA,kBAAA,CACA,WAAA,CACA,cAAA,CAEA,mDACI,6CAAA,CACA,cAAA,CACA,YAAA,CACA,kBAAA,CACA,sBAAA,CACA,eAAA,CACA,YAAA",sourceRoot:""}]),r.locals={};const a=r},59:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(234),s=n.n(o),i=n(474),r=n.n(i)()(s());r.push([e.id,'#workbench-canvas{grid-column:1;grid-row:1;width:100%;height:100%;margin:0;padding:0;font:14px "acumin-pro-condensed";cursor:default;user-select:none;overflow:hidden;background-image:linear-gradient(to right, #4f4e4f 1px, transparent 1px),linear-gradient(to bottom, #4f4e4f 1px, transparent 1px)}#workbench-canvas #selection-container{pointer-events:none}#workbench-canvas #selection-container .selection-box{z-index:10;background:rgba(72,72,196,.5);border:blue solid 2px}#workbench-canvas #workbench-container{width:100%;height:100%;left:0;top:0;transform-origin:left top;display:grid;grid-template-rows:100%;grid-template-columns:100%}#workbench-canvas #workbench-container #frame-container{overflow:visible;grid-row:1;grid-column:1;position:relative;width:100%;height:100%}#workbench-canvas #workbench-container .frame-box{position:absolute;background:rgba(72,72,72,.7);display:grid;grid-template-rows:40px calc(100% - 40px);grid-template-columns:100%;box-sizing:border-box}#workbench-canvas #workbench-container .frame-box.collapsed{height:auto !important;width:200px !important;z-index:3}#workbench-canvas #workbench-container .frame-box.collapsed .frame-box-header{font-size:16px;grid-template-columns:calc(100% - 37px) 30px 7px}#workbench-canvas #workbench-container .frame-box.collapsed .frame-box-header .frame-box-header-collapse{margin-top:-2px}#workbench-canvas #workbench-container .frame-box.collapsed .frame-box-header .frame-box-header-close{display:none}#workbench-canvas #workbench-container .frame-box.collapsed .frame-comments.has-comments .frame-comment-span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}#workbench-canvas #workbench-container .frame-box .frame-box-border{grid-row:1/span 2;grid-column:1;width:100%;height:100%;border:rgba(0,0,0,0) solid 4px;pointer-events:none;box-sizing:border-box}#workbench-canvas #workbench-container .frame-box .frame-box-header{grid-row:1;grid-column:1;background:#484848;color:#fff;font-size:24px;text-align:center;display:grid;grid-template-rows:100%;grid-template-columns:calc(100% - 74px) 30px 7px 30px 7px;align-content:center;overflow:hidden}#workbench-canvas #workbench-container .frame-box .frame-box-header .frame-box-header-button{cursor:pointer;align-self:center;transform-origin:50% 50%;transform:scale(1);stroke:rgba(0,0,0,0);fill:#fff;display:grid}#workbench-canvas #workbench-container .frame-box .frame-box-header .frame-box-header-button.down{transform:scale(0.9)}#workbench-canvas #workbench-container .frame-box .frame-box-header .frame-box-header-collapse{grid-column:2;grid-row:1}#workbench-canvas #workbench-container .frame-box .frame-box-header .frame-box-header-close{grid-column:4;grid-row:1}#workbench-canvas #workbench-container .frame-box .frame-box-header .frame-box-header-title{grid-column:1;grid-row:1;display:grid;height:100%;width:100%;align-self:stretch;align-items:center;margin-top:-2px}#workbench-canvas #workbench-container .frame-box .frame-comments.has-comments{display:grid;grid-row:2;grid-column:1;padding:0 10px;font-style:italic;word-wrap:break-word}#workbench-canvas #workbench-container .frame-box.selected .frame-box-border{border-color:#fff}#workbench-canvas #workbench-container .frame-box .right-handle{grid-area:1/2/3/2;width:4px;background-color:rgba(0,0,0,0);cursor:ew-resize}#workbench-canvas #workbench-container .frame-box .right-handle::after{content:"";width:8px;position:absolute;top:0;bottom:0;margin-left:-4px;cursor:ew-resize}#workbench-canvas #workbench-container .frame-box .right-handle.collapsed{cursor:pointer}#workbench-canvas #workbench-container .frame-box .top-right-corner-handle{background-color:rgba(0,0,0,0);height:4px;z-index:21;cursor:ne-resize;width:4px;margin-left:-6px}#workbench-canvas #workbench-container .frame-box .top-right-corner-handle::after{background-color:rgba(0,0,0,0);cursor:ne-resize;margin-left:unset;top:-4px;height:10px;width:10px}#workbench-canvas #workbench-container .frame-box .bottom-right-corner-handle{background-color:rgba(0,0,0,0);height:0px;z-index:21;cursor:nw-resize;grid-area:4/2/4/2;margin-left:-2px}#workbench-canvas #workbench-container .frame-box .bottom-right-corner-handle::after{background-color:rgba(0,0,0,0);height:10px;cursor:nw-resize;top:unset;bottom:-4px;width:10px}#workbench-canvas #workbench-container .frame-box .left-handle{grid-area:1/1/3/1;width:4px;background-color:rgba(0,0,0,0);cursor:ew-resize}#workbench-canvas #workbench-container .frame-box .left-handle::before{content:"";width:8px;position:absolute;top:0;bottom:0;margin-left:-4px}#workbench-canvas #workbench-container .frame-box .top-left-corner-handle{background-color:rgba(0,0,0,0);height:4px;z-index:21;cursor:nw-resize;width:4px;margin-left:-4px}#workbench-canvas #workbench-container .frame-box .top-left-corner-handle::before{background-color:rgba(0,0,0,0);cursor:nw-resize;margin-left:unset;top:-4px;height:10px;width:10px}#workbench-canvas #workbench-container .frame-box .bottom-left-corner-handle{background-color:rgba(0,0,0,0);height:0px;z-index:21;cursor:sw-resize;grid-area:4/1/4/1}#workbench-canvas #workbench-container .frame-box .bottom-left-corner-handle::before{background-color:rgba(0,0,0,0);height:10px;cursor:sw-resize;top:unset;bottom:-4px;width:10px}#workbench-canvas #workbench-container .frame-box .top-handle{grid-area:1/1/1/1;background-color:rgba(0,0,0,0);height:4px;cursor:ns-resize}#workbench-canvas #workbench-container .frame-box .top-handle::before{content:"";width:100%;position:absolute;top:-4px;bottom:100%;right:0;left:0;margin-bottom:-8px;cursor:ns-resize;height:8px}#workbench-canvas #workbench-container .frame-box .bottom-handle{grid-area:3/1/3/1;background-color:rgba(0,0,0,0);height:4px;cursor:ns-resize}#workbench-canvas #workbench-container .frame-box .bottom-handle::after{content:"";width:100%;position:absolute;top:100%;bottom:0;right:0;left:0;margin-top:-8px;cursor:ns-resize;height:12px}#workbench-canvas #workbench-container .frame-box.collapsed .top-handle,#workbench-canvas #workbench-container .frame-box.collapsed .top-right-corner-handle,#workbench-canvas #workbench-container .frame-box.collapsed .right-handle,#workbench-canvas #workbench-container .frame-box.collapsed .bottom-right-corner-handle,#workbench-canvas #workbench-container .frame-box.collapsed .bottom-handle,#workbench-canvas #workbench-container .frame-box.collapsed .bottom-left-corner-handle,#workbench-canvas #workbench-container .frame-box.collapsed .left-handle,#workbench-canvas #workbench-container .frame-box.collapsed .top-left-corner-handle{cursor:default}#workbench-canvas #workbench-container .frame-box.collapsed .right-handle::after,#workbench-canvas #workbench-container .frame-box.collapsed .bottom-handle::after,#workbench-canvas #workbench-container .frame-box.collapsed .top-right-corner-handle::after,#workbench-canvas #workbench-container .frame-box.collapsed .bottom-right-corner-handle::after{cursor:default}#workbench-canvas #workbench-container .frame-box.collapsed .left-handle::before,#workbench-canvas #workbench-container .frame-box.collapsed .top-handle::before,#workbench-canvas #workbench-container .frame-box.collapsed .top-left-corner-handle::before,#workbench-canvas #workbench-container .frame-box.collapsed .bottom-left-corner-handle::before{cursor:default}#workbench-canvas #workbench-container #workbench-svg-container{grid-row:1;grid-column:1;position:relative;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:2}#workbench-canvas #workbench-container #workbench-svg-container .link{stroke-width:4px}#workbench-canvas #workbench-container #workbench-svg-container .link.selected{stroke:#fff !important;stroke-dasharray:10,2}#workbench-canvas #workbench-container #workbench-svg-container .link.hidden{display:none}#workbench-canvas #workbench-container #workbench-svg-container .selection-link{pointer-events:all;stroke-width:16px;opacity:0;transition:opacity 75ms;stroke:rgba(0,0,0,0);cursor:pointer}#workbench-canvas #workbench-container #workbench-svg-container .selection-link.hidden{display:none}#workbench-canvas #workbench-container #workbench-svg-container .selection-link:hover,#workbench-canvas #workbench-container #workbench-svg-container .selection-link.selected{stroke:#fff !important;opacity:.4}#workbench-canvas #workbench-container #workbench-canvas-container{grid-row:1;grid-column:1;position:relative;width:100%;height:100%}#workbench-canvas #workbench-container #workbench-canvas-container .visual{z-index:4;width:200px;position:absolute;left:0;top:0;background:gray;border:4px solid #000;border-radius:12px;display:grid;grid-template-rows:30px auto;grid-template-columns:100%;color:#fff}#workbench-canvas #workbench-container #workbench-canvas-container .visual.hidden{display:none}#workbench-canvas #workbench-container #workbench-canvas-container .visual .comments{position:absolute;top:-50px;width:200px;height:45px;overflow:hidden;font-style:italic;opacity:.8;display:grid;align-items:flex-end;pointer-events:none}#workbench-canvas #workbench-container #workbench-canvas-container .visual .selection-border{grid-row:1/span 3;grid-column:1;margin:-4px;transition:border-color 100ms;border:4px solid #000;border-radius:12px}#workbench-canvas #workbench-container #workbench-canvas-container .visual.selected .selection-border{border-color:#fff}#workbench-canvas #workbench-container #workbench-canvas-container .visual .header{grid-row:1;grid-column:1;border:4px solid #000;border-top-right-radius:7px;border-top-left-radius:7px;font-size:16px;text-align:center;margin-top:-1px;margin-left:-1px;margin-right:-1px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;background:#000;color:#fff}#workbench-canvas #workbench-container #workbench-canvas-container .visual .header.constant{border-color:#464348;background:#464348}#workbench-canvas #workbench-container #workbench-canvas-container .visual .header.inspector{border-color:#66491b;background:#66491b}',"",{version:3,sources:["webpack://./../../../tools/guiEditor/dist/diagram/workbenchCanvas.scss"],names:[],mappings:"AAAA,kBACI,aAAA,CACA,UAAA,CACA,UAAA,CACA,WAAA,CACA,QAAA,CACA,SAAA,CACA,gCAAA,CACA,cAAA,CACA,gBAAA,CACA,eAAA,CAEA,iIAAA,CAEA,uCACI,mBAAA,CAEA,sDACI,UAAA,CACA,6BAAA,CACA,qBAAA,CAIR,uCACI,UAAA,CACA,WAAA,CACA,MAAA,CACA,KAAA,CACA,yBAAA,CACA,YAAA,CACA,uBAAA,CACA,0BAAA,CAEA,wDACI,gBAAA,CACA,UAAA,CACA,aAAA,CACA,iBAAA,CACA,UAAA,CACA,WAAA,CAGJ,kDACI,iBAAA,CACA,4BAAA,CACA,YAAA,CACA,yCAAA,CACA,0BAAA,CACA,qBAAA,CAEA,4DACI,sBAAA,CACA,sBAAA,CACA,SAAA,CAEA,8EACI,cAAA,CACA,gDAAA,CAEA,yGACI,eAAA,CAGJ,sGACI,YAAA,CAKJ,6GACI,kBAAA,CACA,sBAAA,CACA,eAAA,CAKZ,oEACI,iBAAA,CACA,aAAA,CACA,UAAA,CACA,WAAA,CACA,8BAAA,CACA,mBAAA,CACA,qBAAA,CAGJ,oEACI,UAAA,CACA,aAAA,CACA,kBAAA,CACA,UAAA,CACA,cAAA,CACA,iBAAA,CACA,YAAA,CACA,uBAAA,CACA,yDAAA,CACA,oBAAA,CACA,eAAA,CAEA,6FACI,cAAA,CACA,iBAAA,CACA,wBAAA,CACA,kBAAA,CACA,oBAAA,CACA,SAAA,CACA,YAAA,CAEA,kGACI,oBAAA,CAIR,+FACI,aAAA,CACA,UAAA,CAGJ,4FACI,aAAA,CACA,UAAA,CAGJ,4FACI,aAAA,CACA,UAAA,CACA,YAAA,CACA,WAAA,CACA,UAA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A,gBAAA,CAEA,wEACI,UAAA,CACA,UAAA,CACA,iBAAA,CACA,QAAA,CACA,QAAA,CACA,OAAA,CACA,MAAA,CACA,eAAA,CACA,gBAAA,CACA,WAAA,CAKJ,8nBAQI,cAAA,CAOA,8VACI,cAAA,CAQJ,4VACI,cAAA,CAMhB,gEACI,UAAA,CACA,aAAA,CACA,iBAAA,CACA,UAAA,CACA,WAAA,CACA,gBAAA,CACA,mBAAA,CACA,SAAA,CAEA,sEACI,gBAAA,CACA,+EACI,sBAAA,CACA,qBAAA,CAGJ,6EACI,YAAA,CAIR,gFACI,kBAAA,CACA,iBAAA,CACA,SAAA,CACA,uBAAA,CACA,oBAAA,CACA,cAAA,CAEA,uFACI,YAAA,CAGJ,+KAEI,sBAAA,CACA,UAAA,CAKZ,mEACI,UAAA,CACA,aAAA,CACA,iBAAA,CACA,UAAA,CACA,WAAA,CAEA,2EACI,SAAA,CACA,WAAA,CACA,iBAAA,CACA,MAAA,CACA,KAAA,CACA,eAAA,CACA,qBAAA,CACA,kBAAA,CACA,YAAA,CACA,4BAAA,CACA,0BAAA,CACA,UAAA,CAEA,kFACI,YAAA,CAGJ,qFACI,iBAAA,CACA,SAAA,CACA,WAAA,CACA,WAAA,CACA,eAAA,CACA,iBAAA,CACA,UAAA,CACA,YAAA,CACA,oBAAA,CACA,mBAAA,CAGJ,6FACI,iBAAA,CACA,aAAA,CACA,WAAA,CAEA,6BAAA,CAEA,qBAAA,CACA,kBAAA,CAIA,sGACI,iBAAA,CAIR,mFACI,UAAA,CACA,aAAA,CACA,qBAAA,CACA,2BAAA,CACA,0BAAA,CACA,cAAA,CACA,iBAAA,CACA,eAAA,CACA,gBAAA,CACA,iBAAA,CACA,kBAAA,CACA,sBAAA,CACA,eAAA,CACA,eAAA,CACA,UAAA,CAEA,4FACI,oBAAA,CACA,kBAAA,CAGJ,6FACI,oBAAA,CACA,kBAAA",sourceRoot:""}]),r.locals={};const a=r},569:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(234),s=n.n(o),i=n(474),r=n.n(i)()(s());r.push([e.id,':root{--blackBarHeight: 55px}#gui-editor-workbench-root{display:grid;grid-template-rows:calc(100% - 55px);height:100%;width:100%;background:#e2e2e2;font:14px "acumin-pro-condensed"}.wait-screen{display:grid;justify-content:center;align-content:center;height:100%;width:100%;background:#464646;opacity:.95;color:#fff;font:24px "acumin-pro-condensed";position:absolute;top:0;left:0}.wait-screen.hidden{visibility:hidden}#leftGrab{width:5px;height:100%;cursor:ew-resize;position:absolute;right:-1px;top:0}#rightGrab{cursor:ew-resize;width:5px;bottom:0;position:absolute;top:0;left:0}.toolbarGrab{background:#333;grid-row:1/span 3;grid-column:2;height:100%;overflow-y:auto}.toolbarGrab .blackLine{height:16px;background:#000;position:relative}.toolbarGrab .arrow{color:#fff;position:absolute}.toolbarGrab .toolbar-label{color:#fff;font-size:18px;display:grid;align-items:center;cursor:pointer;user-select:none;grid-template-columns:1fr 20px;grid-template-rows:100%;position:relative}.toolbarGrab .toolbar-label.active{font-weight:bold;font-size:20px}.toolbarGrab .toolbar-label:hover{background:var(--selectionGrey)}.toolbarGrab .toolbar-label:hover .sub-items{display:block}.toolbarGrab .toolbar-icon{width:40px;height:40px}.toolbarGrab.expanded .toolbar-content-sub1{column-count:2}.diagram-container{position:relative;display:grid;grid-row:1;grid-column:2;background:#ccc;width:100%;height:100%;overflow:hidden}.diagram-container .diagram{display:none;width:100%;height:100%}.left-panel{grid-row:1/span 2;grid-column:1;display:grid;grid-template-rows:100%;grid-template-columns:1fr 50px;position:relative;overflow:hidden}.left-panel.expand{grid-template-columns:1fr 100px}.right-panel{grid-row:1/span 2;grid-column:3;display:grid;grid-template-rows:1fr 40px auto 40px;grid-template-columns:100%;overflow-y:auto;position:relative}.right-panel #propertyTab{grid-row:1;grid-column:1}.right-panel .button{display:grid;justify-content:center;align-content:center;height:auto;width:14.2857142857%;cursor:pointer}.right-panel .button:hover{background:#337ab7;color:#fff;opacity:.8}.right-panel .button.selected{background:#337ab7;color:#fff}.right-panel .button.align{justify-content:stretch;text-align:center}.blocker{visibility:hidden;position:absolute;width:calc(100% - 40px);height:100%;top:0;left:0;background:rgba(20,20,20,.95);font-family:"acumin-pro-condensed",sans-serif;color:#fff;font-size:24px;display:grid;align-content:center;justify-content:center;user-select:none;padding:20px;text-align:center}#log-console{grid-row:2;grid-column:4;display:none}.gizmo *{user-select:none}.gizmo .bounding-box-line{background-color:#000;position:absolute;line-height:1px;height:1px;pointer-events:none}.gizmo .scale-point-container{position:absolute;width:30px;height:30px}.gizmo .scale-point-container .scale-point{top:10px;left:10px;position:absolute;width:10px;height:10px;background:rgba(0,0,0,0);outline:#7d7d7d 2px solid}.gizmo .scale-point-container .rotate-click-area{width:20px;height:20px;position:absolute}.gizmo .scale-point-container .scale-click-area{width:20px;height:20px;position:absolute}.gizmo .pivot-point{width:30px;height:30px;background:rgba(0,0,0,0);position:absolute}#workbench-canvas{position:relative}.artboard-stroke{outline:1px solid #000;position:absolute;z-index:2;pointer-events:none}.artboard-background{position:absolute;background:repeating-conic-gradient(#e2e2e2 0% 25%, white 0% 50%) 50%/10px 10px;width:100%;height:100%}',"",{version:3,sources:["webpack://./../../../tools/guiEditor/dist/main.scss"],names:[],mappings:"AAAA,MACI,sBAAA,CAGJ,2BACI,YAAA,CACA,oCAAA,CACA,WAAA,CACA,UAAA,CACA,kBAAA,CACA,gCAAA,CAGJ,aACI,YAAA,CACA,sBAAA,CACA,oBAAA,CACA,WAAA,CACA,UAAA,CACA,kBAAA,CACA,WAAA,CACA,UAAA,CACA,gCAAA,CACA,iBAAA,CACA,KAAA,CACA,MAAA,CAEA,oBACI,iBAAA,CAIR,UACI,SAAA,CACA,WAAA,CACA,gBAAA,CACA,iBAAA,CACA,UAAA,CACA,KAAA,CAGJ,WACI,gBAAA,CACA,SAAA,CACA,QAAA,CACA,iBAAA,CACA,KAAA,CACA,MAAA,CAGJ,aACI,eAAA,CACA,iBAAA,CACA,aAAA,CACA,WAAA,CACA,eAAA,C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BAAA,CACA,UAAA,CACA,WAAA,CACA,wBAAA,CACA,yBAAA,CAEJ,iDACI,UAAA,CACA,WAAA,CACA,iBAAA,CAEJ,gDACI,UAAA,CACA,WAAA,CACA,iBAAA,CAGR,oBACI,UAAA,CACA,WAAA,CACA,wBAAA,CACA,iBAAA,CAGR,kBACI,iBAAA,CAEJ,iBACI,sBAAA,CACA,iBAAA,CACA,SAAA,CACA,mBAAA,CAEJ,qBACI,iBAAA,CACA,+EAAA,CACA,UAAA,CACA,WAAA",sourceRoot:""}]),r.locals={};const a=r},463:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(234),s=n.n(o),i=n(474),r=n.n(i)()(s());r.push([e.id,':root{--selectionGrey: #666666}.ge-commands{grid-row:1;grid-column:1;user-select:none}.ge-commands *{font-family:"acumin-pro-condensed";font-weight:600;font-size:12px}.ge-commands .copy{display:none}.ge-commands .commands-left{float:left;display:flex}.ge-commands .commands-right{float:right;display:flex}.ge-commands .commands-right .beta-flag{height:30px;position:relative;left:-15px}.ge-commands.background-ts .command-button img,.ge-commands.background-ts .command-dropdown img{filter:invert(64%) sepia(78%) saturate(940%) hue-rotate(323deg) brightness(105%) contrast(103%)}.ge-commands.background-ts .command-button .command-dropdown-active,.ge-commands.background-ts .command-dropdown .command-dropdown-active{color:#333}.ge-commands.background-ts .command-button:hover img,.ge-commands.background-ts .command-button.activated img,.ge-commands.background-ts .command-dropdown:hover img,.ge-commands.background-ts .command-dropdown.activated img{filter:invert(34%) sepia(21%) saturate(3832%) hue-rotate(324deg) brightness(88%) contrast(82%) !important}.ge-commands.background-js .command-button img,.ge-commands.background-js .command-dropdown img{filter:invert(57%) sepia(80%) saturate(2031%) hue-rotate(215deg)}.ge-commands.background-js .command-button .command-dropdown-active,.ge-commands.background-js .command-dropdown .command-dropdown-active{color:#333}.ge-commands.background-js .command-button:hover img,.ge-commands.background-js .command-button.activated img,.ge-commands.background-js .command-dropdown:hover img,.ge-commands.background-js .command-dropdown.activated img{filter:invert(17%) !important}.ge-commands .command-button{cursor:pointer;width:55px;height:55px}.ge-commands .command-button .command-label{display:none}.ge-commands .command-button .command-button-icon{height:100%;width:100%;display:grid;color:#fff;align-content:center;justify-content:center}.ge-commands .command-button .active{transform-origin:center;background-color:var(--selectionGrey)}.ge-commands .command-button img.active{background-color:var(--selectionGrey)}.ge-commands .command-button:hover{background-color:var(--selectionGrey)}.ge-commands .copyAndDeleteDisabled{pointer-events:none;color:#000}.ge-commands .pasteDisabled{pointer-events:none;color:#000}.ge-commands .command-dropdown-root{position:relative;text-transform:uppercase;z-index:1}.ge-commands .command-dropdown{cursor:pointer;width:55px;height:55px}.ge-commands .command-dropdown .command-dropdown-icon{height:100%;width:100%;display:grid;align-content:center;justify-content:center}.ge-commands .command-dropdown .command-dropdown-active{height:100%;width:100%;display:grid;align-content:center;justify-content:center;font-size:14px}.ge-commands .command-dropdown:hover,.ge-commands .command-dropdown.activated{background-color:#666;color:#000}.ge-commands .command-dropdown:active{transform-origin:center;transform:scale(0.95)}.ge-commands .command-dropdown-blocker{position:absolute;top:0;left:0;width:100%;height:100%;transform:scale(1);z-index:1}.ge-commands.background-js .command-dropdown-content{background:#333}.ge-commands.background-js .command-dropdown-content .command-dropdown-label:hover{background:#333}.ge-commands.background-ts .command-dropdown-content .command-dropdown-label:hover{background:#333}.ge-commands .command-dropdown-content{background:#333;position:absolute;top:55px;width:55px;transform:scale(1)}.ge-commands .command-dropdown-content.toRight{width:120px}.ge-commands .command-dropdown-content .command-dropdown-label{color:#fff;padding:5px;padding-left:7px;height:35px;font-size:18px;display:grid;align-items:center;cursor:pointer;user-select:none;grid-template-columns:1fr 20px;grid-template-rows:100%;position:relative}.ge-commands .command-dropdown-content .command-dropdown-label.active{font-weight:bold;font-size:20px}.ge-commands .command-dropdown-content .command-dropdown-label:hover{background:var(--selectionGrey)}.ge-commands .command-dropdown-content .command-dropdown-label:hover .sub-items{display:block}.ge-commands .command-dropdown-content .command-dropdown-label .command-dropdown-label-text{font-size:12px;grid-column:1;grid-row:1}.ge-commands .command-dropdown-content .command-dropdown-label .command-dropdown-label-check{grid-column:2;grid-row:1}.ge-commands .command-dropdown-content .command-dropdown-label .command-dropdown-arrow{grid-column:2;grid-row:1;font-size:20px;font-weight:bold;padding-bottom:10px;padding-left:4px}.ge-commands .command-dropdown-content .command-dropdown-label .sub-items{position:absolute;left:200px;top:0;width:150px;display:none}.ge-commands .command-dropdown-content .command-dropdown-label .sub-items.background-js{background:#bfabff}.ge-commands .command-dropdown-content .command-dropdown-label .sub-items.background-js .sub-item:hover{background-color:#333;color:#fff}.ge-commands .command-dropdown-content .command-dropdown-label .sub-items.background-ts{background:#333}.ge-commands .command-dropdown-content .command-dropdown-label .sub-items.background-ts .sub-item:hover{background-color:#333;color:#fff}.ge-commands .command-dropdown-content .command-dropdown-label .sub-items .sub-item{color:#fff;padding:5px;padding-left:10px;height:35px;display:grid}.ge-commands .command-dropdown-content .command-dropdown-label .sub-items .sub-item.checked{background:#fff;color:#000}.ge-commands .command-dropdown-content .buttonLine{color:#fff;padding:5px;padding-left:7px;height:35px;font-size:18px;display:grid;align-items:center;cursor:pointer;user-select:none;grid-template-columns:1fr 20px;grid-template-rows:100%;position:relative;font-size:12px;grid-column:1;grid-row:1}.ge-commands .command-dropdown-content .buttonLine input[type=file]{display:none}.ge-commands .command-dropdown-content .buttonLine.active{font-weight:bold;font-size:20px;cursor:pointer}.ge-commands .command-dropdown-content .buttonLine:hover{background:var(--selectionGrey);cursor:pointer}.ge-commands .command-dropdown-content .buttonLine:hover .sub-items{display:block}.ge-commands .command-dropdown-content .buttonLine .file-upload{cursor:pointer}.ge-commands .divider{display:flex;align-items:center;border-right:1px solid #000;color:#fff}.ge-commands .divider:last-of-type{border-right:none}.ge-commands .divider.padded{padding-left:10px;padding-right:10px}.ge-commands .floatLine,.ge-commands .checkBoxLine{display:flex;align-items:center}.ge-commands .floatLine .copy,.ge-commands .checkBoxLine .copy{display:none}.ge-commands .checkBoxLine .icon{filter:brightness(10)}.ge-commands .checkBoxLine .hidden{display:none}.ge-commands .checkBoxLine .checkBox{height:40px}.ge-commands .checkBoxLine .copy{display:none}.ge-commands .color3Line{display:grid}.ge-commands .color3Line .firstLine{display:flex;align-items:center}.ge-commands .color3Line .firstLine .label{padding-right:5px}.ge-commands .color3Line .firstLine .floatLine .value{padding-left:2px}.ge-commands .color3Line .firstLine .copy{display:none}.ge-commands .color3Line .firstLine .expand{display:none}.ge-commands .color3Line .secondLine{display:grid;padding-right:5px;border-left:1px solid #337ab7}.ge-commands .color3Line .secondLine .numeric{display:grid;grid-template-columns:1fr auto}.ge-commands .color3Line .secondLine .numeric-label{text-align:right;grid-column:1;display:flex;align-items:center;justify-self:right;margin-right:10px}.ge-commands .color3Line .secondLine .numeric-value{width:120px;grid-column:2;display:flex;align-items:center;border:1px solid #337ab7}.ge-commands .color-picker{height:26px;width:26px}.ge-commands .color-picker .color-rect-background{width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid #fff;cursor:pointer;background:repeating-conic-gradient(#e2e2e2 0% 25%, white 0% 50%) 50%/100% 100%}.ge-commands .color-picker .color-rect-background .color-rect{height:100%}.ge-commands .color-picker .color-picker-cover{position:fixed;top:0px;right:0px;bottom:0px;left:0px;z-index:2}.ge-commands .color-picker .color-picker-float{position:absolute;outline:1px solid #000}.ge-commands .color-picker .color-picker-container{background-color:#e2e2e2}.ge-commands .color-picker input:focus{outline-color:#000}.ge-commands .floatLine input,.ge-commands .listLine select{background-color:#000;color:#fff;padding:5px;border:none}.ge-commands input,.ge-commands .listLine select{outline-color:rgba(0,0,0,0);outline-width:1px;outline-offset:-1px;outline-style:solid;transition:.2s outline;border:none}.ge-commands .floatLine .value{position:relative;margin:5px}.ge-commands .floatLine input:focus{outline-color:#fff}.ge-commands .listLine select{width:150px}.ge-commands .hasArrows .arrows{display:none;position:absolute;right:0;top:0;flex-direction:column;cursor:grab;filter:brightness(10)}.ge-commands .hasArrows .arrows .downArrowIcon,.ge-commands .hasArrows .arrows .upArrowIcon{width:13px;height:13px}.ge-commands .hasArrows:hover .arrows,.ge-commands .hasArrows:focus .arrows,.ge-commands .hasArrows.dragging .arrows{display:flex}.ge-commands .hasArrows .arrows:hover{background-color:var(--buttonHoverBackground);filter:none}.ge-commands .hasArrows.dragging .arrows{background-color:var(--buttonPressedBackground)}.ge-commands .hasArrows.dragging .arrows .downArrowIcon,.ge-commands .hasArrows.dragging .arrows .upArrowIcon{filter:none}.ge-commands .hasArrows input::-webkit-outer-spin-button,.ge-commands .hasArrows input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.ge-commands .hasArrows input[type=number]{-moz-appearance:textfield}',"",{version:3,sources:["webpack://./../../../tools/guiEditor/dist/scss/commandBar.scss"],names:[],mappings:"AAAA,MACI,wBAAA,CAGJ,aACI,UAAA,CACA,aAAA,CACA,gBAAA,CACA,eACI,kCAAA,CACA,eAAA,CACA,cAAA,CAGJ,mBACI,YAAA,CAGJ,4BACI,UAAA,CACA,YAAA,CAGJ,6BACI,WAAA,CACA,YAAA,CACA,wCACI,WAAA,CACA,iBAAA,CACA,UAAA,CAOA,gGACI,+FAAA,CAGJ,0IACI,UAAA,CAKA,gOACI,yGAAA,CASR,gGACI,gEAAA,CAGJ,0IACI,UAAA,CAKA,gOACI,6BAAA,CAMhB,6BACI,cAAA,CACA,UAAA,CACA,WAAA,CAEA,4CACI,YAAA,CAGJ,kDACI,WAAA,CACA,UAAA,CACA,YAAA,CACA,UAAA,CACA,oBAAA,CACA,sBAAA,CAGJ,qCACI,uBAAA,CACA,qCAAA,CAIA,wCACI,qCAAA,CAIZ,mCACI,qCAAA,CAEJ,oCACI,mBAAA,CACA,UAAA,CAEJ,4BACI,mBAAA,CACA,UAAA,CAEJ,oCACI,iBAAA,CACA,wBAAA,CACA,SAAA,CAGJ,+BACI,cAAA,CACA,UAAA,CACA,WAAA,CAEA,sDACI,WAAA,CACA,UAAA,CACA,YAAA,CACA,oBAAA,CACA,sBAAA,CAGJ,wDACI,WAAA,CACA,UAA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ACI,+CAAA,CACA,8GAEI,WAAA,CAIZ,kHAEI,uBAAA,CACA,QAAA,CAGJ,2CACI,yBAAA",sourceRoot:""}]),r.locals={};const a=r},664:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(234),s=n.n(o),i=n(474),r=n.n(i)()(s());r.push([e.id,"#ge-header{width:100%;grid-column:2/4;grid-row:1;padding:0;margin:0;display:grid;grid-template-columns:auto 1fr;grid-template-rows:100%;background:#333}#ge-header .command-bar{padding-left:15px;grid-row:1;grid-column:2;width:100%}#ge-header .command-bar .language-button{grid-row:1;grid-column:2;color:#fff;width:144px;font-size:18px;text-align:center;display:grid;align-content:center;border-top-left-radius:14px;transform:scale(1);user-select:none}#ge-header .command-bar .language-button.active{width:74px;cursor:pointer;grid-column:1;margin-right:-5px;transform:translateX(10px)}","",{version:3,sources:["webpack://./../../../tools/guiEditor/dist/scss/header.scss"],names:[],mappings:"AAAA,WACI,UAAA,CACA,eAAA,CACA,UAAA,CACA,SAAA,CACA,QAAA,CACA,YAAA,CACA,8BAAA,CACA,uBAAA,CACA,eAAA,CAEA,wBACI,iBAAA,CACA,UAAA,CACA,aAAA,CACA,UAAA,CAEA,yCACI,UAAA,CACA,aAAA,CACA,UAAA,CACA,WAAA,CACA,cAAA,CACA,iBAAA,CACA,YAAA,CACA,oBAAA,CACA,2BAAA,CACA,kBAAA,CACA,gBAAA,CAEA,gDACI,UAAA,CACA,cAAA,CACA,aAAA,CACA,iBAAA,CACA,0BAAA",sourceRoot:""}]),r.locals={};const a=r},767:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var o=n(234),s=n.n(o),i=n(474),r=n.n(i),a=n(976),l=r()(s());l.i(a.A,"",!0),l.push([e.id,".b95R0O6ILc85rYlO1WPd{width:55px;height:55px;border:none;display:inline-flex;align-items:center;justify-content:center;padding:0 0}.b95R0O6ILc85rYlO1WPd.kgkXfJMN1pBn5GDwKAiQ{width:120px;height:45px;justify-content:start}.b95R0O6ILc85rYlO1WPd.auFPe0ZDyYDP90hWHa6t{width:30px;height:30px}.b95R0O6ILc85rYlO1WPd.MKxtRa83RlF4LPUy2B33{width:25px;height:25px}.b95R0O6ILc85rYlO1WPd.K4N1g645ZLynf7rUfSyB{background-color:#E2E2E2;color:#333333}.b95R0O6ILc85rYlO1WPd.K4N1g645ZLynf7rUfSyB:hover,.b95R0O6ILc85rYlO1WPd.K4N1g645ZLynf7rUfSyB.lD5Ki9XODid4PAR8thSw{background-color:#FFFFFF}.b95R0O6ILc85rYlO1WPd.K4N1g645ZLynf7rUfSyB:disabled{background-color:#FFFFFF}.b95R0O6ILc85rYlO1WPd.y9P5FsHRKkfc_RVnfyko{background-color:#333333;color:#FFFFFF}.b95R0O6ILc85rYlO1WPd.y9P5FsHRKkfc_RVnfyko:hover,.b95R0O6ILc85rYlO1WPd.y9P5FsHRKkfc_RVnfyko.lD5Ki9XODid4PAR8thSw{background-color:#666666}","",{version:3,sources:["webpack://./../../../dev/sharedUiComponents/dist/components/Button.modules.scss"],names:[],mappings:"AACA,sBAEI,UAAA,CACA,WAAA,CACA,WAAA,CACA,mBAAA,CACA,kBAAA,CACA,sBAAA,CACA,WAAA,CACA,2CACI,WAAA,CACA,WAAA,CACA,qBAAA,CAEJ,2CACI,UAAA,CACA,WAAA,CAEJ,2CACI,UAAA,CACA,WAAA,CAEJ,2CACI,wBAAA,CACA,aAAA,CACA,iHAEI,wBAAA,CAEJ,oDACI,wBAAA,CAGR,2CACI,wBAAA,CACA,aAAA,CACA,iHAEI,wBAAA",sourceRoot:""}]),l.locals={"light-background":"#E2E2E2","light-active-background":"#FFFFFF","light-disabled-background":"#C8C8C8","light-color":"#FFFFFF","dark-background":"#333333","dark-active-background":"#666666","dark-color":"#333333",button:`b95R0O6ILc85rYlO1WPd ${a.A.locals.fontRegular}`,wide:"kgkXfJMN1pBn5GDwKAiQ",small:"auFPe0ZDyYDP90hWHa6t",smaller:"MKxtRa83RlF4LPUy2B33",light:"K4N1g645ZLynf7rUfSyB",active:"lD5Ki9XODid4PAR8thSw",dark:"y9P5FsHRKkfc_RVnfyko"};const c=l},734:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(234),s=n.n(o),i=n(474),r=n.n(i)()(s());r.push([e.id,".np3yGjrPQUltnJjOZks4{filter:brightness(10)}","",{version:3,sources:["webpack://./../../../dev/sharedUiComponents/dist/components/Icon.modules.scss"],names:[],mappings:"AAAA,sBACI,qBAAA",sourceRoot:""}]),r.locals={light:"np3yGjrPQUltnJjOZks4"};const a=r},124:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(234),s=n.n(o),i=n(474),r=n.n(i)()(s());r.push([e.id,'.stbiu24JbUBfHNSSYhSR{position:absolute;width:100%;height:100%;background:rgba(.1,.1,.1,.6);display:grid;font-family:"acumin-pro";top:0}.stbiu24JbUBfHNSSYhSR .fCGAiNfXRhhXF8hQPpct{align-self:center;justify-self:center;min-height:140px;max-width:400px;border-radius:10px;background:#fff;padding:10px;display:grid;grid-template-columns:100%;grid-template-rows:1fr 50px}.stbiu24JbUBfHNSSYhSR .fCGAiNfXRhhXF8hQPpct .yRrm4hWjzyu4RnCc412h{grid-row:1;grid-column:1;margin-top:20px;padding:10px;font-size:18px;color:#000}.stbiu24JbUBfHNSSYhSR .fCGAiNfXRhhXF8hQPpct .c5hG_qW6gImPmY2mRXUf{grid-row:2;grid-column:1;display:grid;grid-template-rows:100%;grid-template-columns:100%;color:#fff}.stbiu24JbUBfHNSSYhSR .fCGAiNfXRhhXF8hQPpct .c5hG_qW6gImPmY2mRXUf .TaDL8j02NlDZlEf6mraY{cursor:pointer;justify-self:center;background:green;min-width:80px;justify-content:center;display:grid;align-content:center;align-self:center;height:35px;border-radius:10px}.stbiu24JbUBfHNSSYhSR .fCGAiNfXRhhXF8hQPpct .c5hG_qW6gImPmY2mRXUf .TaDL8j02NlDZlEf6mraY:hover{opacity:.8}.stbiu24JbUBfHNSSYhSR .fCGAiNfXRhhXF8hQPpct .c5hG_qW6gImPmY2mRXUf .TaDL8j02NlDZlEf6mraY.gWN6zWjwiaTlrWBw3gRR{background:red}',"",{version:3,sources:["webpack://./../../../dev/sharedUiComponents/dist/components/MessageDialog.modules.scss"],names:[],mappings:"AAAA,sBACI,iBAAA,CACA,UAAA,CACA,WAAA,CACA,4BAAA,CACA,YAAA,CACA,wBAAA,CACA,KAAA,CAEA,4CACI,iBAAA,CACA,mBAAA,CACA,gBAAA,CACA,eAAA,CACA,kBAAA,CACA,eAAA,CACA,YAAA,CAEA,YAAA,CACA,0BAAA,CACA,2BAAA,CAEA,kEACI,UAAA,CACA,aAAA,CACA,eAAA,CACA,YAAA,CACA,cAAA,CACA,UAAA,CAGJ,kEACI,UAAA,CACA,aAAA,CACA,YAAA,CACA,uBAAA,CACA,0BAAA,CACA,UAAA,CAEA,wFACI,cAAA,CACA,mBAAA,CACA,gBAAA,CACA,cAAA,CACA,sBAAA,CACA,YAAA,CACA,oBAAA,CACA,iBAAA,CACA,WAAA,CACA,kBAAA,CAEA,8FACI,UAAA,CAGJ,6GACI,cAAA",sourceRoot:""}]),r.locals={"dialog-container":"stbiu24JbUBfHNSSYhSR",dialog:"fCGAiNfXRhhXF8hQPpct","dialog-message":"yRrm4hWjzyu4RnCc412h","dialog-buttons":"c5hG_qW6gImPmY2mRXUf","dialog-button-ok":"TaDL8j02NlDZlEf6mraY",error:"gWN6zWjwiaTlrWBw3gRR"};const a=r},182:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(234),s=n.n(o),i=n(474),r=n.n(i)()(s());r.push([e.id,".cAdE59gB2fAtRPTNL4rr{width:100%;height:100%;display:flex;justify-content:space-between;align-items:center}.Q5g62nnQiAkjss2bvjv_{border:unset;background-color:inherit;flex-grow:1;width:100px}.K3K9PQvh6pJwXhAYXmq4{background-color:#fff}.G9HbTQuNLy6q2zLRNUcJ{background-color:hsla(0,100%,90%,.8)}","",{version:3,sources:["webpack://./../../../dev/sharedUiComponents/dist/components/TextInputWithSubmit.modules.scss"],names:[],mappings:"AAAA,sBACI,UAAA,CACA,WAAA,CACA,YAAA,CACA,6BAAA,CACA,kBAAA,CAGJ,sBACI,YAAA,CACA,wBAAA,CACA,WAAA,CACA,WAAA,CAGJ,sBACI,qBAAA,CAGJ,sBACI,oCAAA",sourceRoot:""}]),r.locals={line:"cAdE59gB2fAtRPTNL4rr",input:"Q5g62nnQiAkjss2bvjv_",valid:"K3K9PQvh6pJwXhAYXmq4",invalid:"G9HbTQuNLy6q2zLRNUcJ"};const a=r},348:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(234),s=n.n(o),i=n(474),r=n.n(i)()(s());r.push([e.id,'.bOUut2FWKU2aN_ahzdAI{font-family:"acumin-pro-condensed",sans-serif;font-size:12px;height:25px;padding-left:15px}.ZN_DCHJ9pa7dUkP3Eml9{width:100%;height:100%;border:unset}',"",{version:3,sources:["webpack://./../../../dev/sharedUiComponents/dist/components/lines/OptionsLineComponent.modules.scss"],names:[],mappings:"AAAA,sBACI,6CAAA,CACA,cAAA,CACA,WAAA,CACA,iBAAA,CAGJ,sBACI,UAAA,CACA,WAAA,CACA,YAAA",sourceRoot:""}]),r.locals={optionsLine:"bOUut2FWKU2aN_ahzdAI",optionsSelect:"ZN_DCHJ9pa7dUkP3Eml9"};const a=r},976:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(234),s=n.n(o),i=n(474),r=n.n(i)()(s());r.push([e.id,'.BvwFwd6uzMRFN0JwO92p {\n font-family: "acumin-pro-condensed";\n font-size: 14px;\n}\n',"",{version:3,sources:["webpack://./../../../dev/sharedUiComponents/dist/components/Fonts.scss"],names:[],mappings:"AAAA;IACI,mCAAmC;IACnC,eAAe;AACnB",sourcesContent:[':local(.fontRegular) {\r\n font-family: "acumin-pro-condensed";\r\n font-size: 14px;\r\n}\r\n'],sourceRoot:""}]),r.locals={fontRegular:"BvwFwd6uzMRFN0JwO92p"};const a=r},474:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,o,s,i){"string"==typeof e&&(e=[[null,e,void 0]]);var r={};if(o)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(r[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);o&&r[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),s&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=s):u[4]="".concat(s)),t.push(u))}},t}},234:e=>{"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var o=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),i="/*# ".concat(s," */");return[t].concat([i]).join("\n")}return[t].join("\n")}},772:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,s){for(var i,r,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))n.call(i,c)&&(a[c]=i[c]);if(t){r=t(i);for(var u=0;u<r.length;u++)o.call(i,r[u])&&(a[r[u]]=i[r[u]])}}return a}},878:(e,t,n)=>{"use strict";var o=n(565);function s(){}function i(){}i.resetWarningCache=s,e.exports=function(){function e(e,t,n,s,i,r){if(r!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:s};return n.PropTypes=n,n}},764:(e,t,n)=>{e.exports=n(878)()},565:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},315:(e,t,n)=>{"use strict";function o(e){return o="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},o(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var s={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var a=i?Object.getOwnPropertyDescriptor(e,r):null;a&&(a.get||a.set)?Object.defineProperty(s,r,a):s[r]=e[r]}return s.default=e,n&&n.set(e,s),s}(n(460)),i=a(n(764)),r=a(n(122));function a(e){return e&&e.__esModule?e:{default:e}}function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A(e){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},A(e)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(l,e);var t,n,i,a=(n=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=A(n);if(i){var s=A(this).constructor;e=Reflect.construct(t,arguments,s)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return u(e)}(this,e)});function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),d(u(t=a.call(this,e)),"handleKeyNavigation",(function(e){if(!1!==t.state.isVisible)switch(e.keyCode){case 37:case 27:e.preventDefault(),t.hideMenu(e);break;case 38:e.preventDefault(),t.selectChildren(!0);break;case 40:e.preventDefault(),t.selectChildren(!1);break;case 39:t.tryToOpenSubMenu(e);break;case 13:e.preventDefault(),t.tryToOpenSubMenu(e);var n=t.seletedItemRef&&t.seletedItemRef.props&&t.seletedItemRef.props.disabled;t.seletedItemRef&&t.seletedItemRef.ref instanceof HTMLElement&&!n?t.seletedItemRef.ref.click():t.hideMenu(e)}})),d(u(t),"handleForceClose",(function(){t.setState({forceSubMenuOpen:!1})})),d(u(t),"tryToOpenSubMenu",(function(e){t.state.selectedItem&&t.state.selectedItem.type===t.getSubMenuType()&&(e.preventDefault(),t.setState({forceSubMenuOpen:!0}))})),d(u(t),"selectChildren",(function(e){var n=t.state.selectedItem,o=[],i=0,a={};if(s.default.Children.forEach(t.props.children,(function e(n,l){n&&([r.default,t.getSubMenuType()].indexOf(n.type)<0?s.default.Children.forEach(n.props.children,e):n.props.divider||(n.props.disabled&&(++i,a[l]=!0),o.push(n)))})),i!==o.length){var l=function(t){var n=t;do{e?--n:++n,n<0?n=o.length-1:n>=o.length&&(n=0)}while(n!==t&&a[n]);return n===t?null:n}(o.indexOf(n));null!==l&&t.setState({selectedItem:o[l],forceSubMenuOpen:!1})}})),d(u(t),"onChildMouseMove",(function(e){t.state.selectedItem!==e&&t.setState({selectedItem:e,forceSubMenuOpen:!1})})),d(u(t),"onChildMouseLeave",(function(){t.setState({selectedItem:null,forceSubMenuOpen:!1})})),d(u(t),"renderChildren",(function(e){return s.default.Children.map(e,(function(e){var n={};return s.default.isValidElement(e)?[r.default,t.getSubMenuType()].indexOf(e.type)<0?(n.children=t.renderChildren(e.props.children),s.default.cloneElement(e,n)):(n.onMouseLeave=t.onChildMouseLeave.bind(u(t)),e.type===t.getSubMenuType()&&(n.forceOpen=t.state.forceSubMenuOpen&&t.state.selectedItem===e,n.forceClose=t.handleForceClose,n.parentKeyNavigationHandler=t.handleKeyNavigation),e.props.divider||t.state.selectedItem!==e?(n.onMouseMove=function(){return t.onChildMouseMove(e)},s.default.cloneElement(e,n)):(n.selected=!0,n.ref=function(e){t.seletedItemRef=e},s.default.cloneElement(e,n))):e}))})),t.seletedItemRef=null,t.state={selectedItem:null,forceSubMenuOpen:!1},t}return t=l,Object.defineProperty(t,"prototype",{writable:!1}),t}(s.Component);t.default=p,d(p,"propTypes",{children:i.default.node.isRequired})},824:(e,t,n)=>{"use strict";function o(e){return o="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},o(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=p(n(460)),i=p(n(764)),r=p(n(368)),a=p(n(772)),l=p(n(225)),c=p(n(315)),u=p(n(349)),A=n(451),d=n(645);function p(e){return e&&e.__esModule?e:{default:e}}function M(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function L(e,t){return L=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},L(e,t)}function C(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&L(e,t)}(w,e);var t,n,i,c,p=(i=w,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(i);if(c){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return C(e)}(this,e)});function w(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,w),g(C(t=p.call(this,e)),"registerHandlers",(function(){document.addEventListener("mousedown",t.handleOutsideClick),document.addEventListener("touchstart",t.handleOutsideClick),t.props.preventHideOnScroll||document.addEventListener("scroll",t.handleHide),t.props.preventHideOnContextMenu||document.addEventListener("contextmenu",t.handleHide),document.addEventListener("keydown",t.handleKeyNavigation),t.props.preventHideOnResize||window.addEventListener("resize",t.handleHide)})),g(C(t),"unregisterHandlers",(function(){document.removeEventListener("mousedown",t.handleOutsideClick),document.removeEventListener("touchstart",t.handleOutsideClick),document.removeEventListener("scroll",t.handleHide),document.removeEventListener("contextmenu",t.handleHide),document.removeEventListener("keydown",t.handleKeyNavigation),window.removeEventListener("resize",t.handleHide)})),g(C(t),"handleShow",(function(e){if(e.detail.id===t.props.id&&!t.state.isVisible){var n=e.detail.position,o=n.x,s=n.y;t.setState({isVisible:!0,x:o,y:s}),t.registerHandlers(),(0,d.callIfExists)(t.props.onShow,e)}})),g(C(t),"handleHide",(function(e){!t.state.isVisible||e.detail&&e.detail.id&&e.detail.id!==t.props.id||(t.unregisterHandlers(),t.setState({isVisible:!1,selectedItem:null,forceSubMenuOpen:!1}),(0,d.callIfExists)(t.props.onHide,e))})),g(C(t),"handleOutsideClick",(function(e){t.menu.contains(e.target)||(0,A.hideMenu)()})),g(C(t),"handleMouseLeave",(function(e){e.preventDefault(),(0,d.callIfExists)(t.props.onMouseLeave,e,(0,a.default)({},t.props.data,d.store.data),d.store.target),t.props.hideOnLeave&&(0,A.hideMenu)()})),g(C(t),"handleContextMenu",(function(e){e.preventDefault(),t.handleHide(e)})),g(C(t),"hideMenu",(function(e){27!==e.keyCode&&13!==e.keyCode||(0,A.hideMenu)()})),g(C(t),"getMenuPosition",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o={top:n,left:e};if(!t.menu)return o;var s=window,i=s.innerWidth,r=s.innerHeight,a=t.menu.getBoundingClientRect();return n+a.height>r&&(o.top-=a.height),e+a.width>i&&(o.left-=a.width),o.top<0&&(o.top=a.height<r?(r-a.height)/2:0),o.left<0&&(o.left=a.width<i?(i-a.width)/2:0),o})),g(C(t),"getRTLMenuPosition",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o={top:n,left:e};if(!t.menu)return o;var s=window,i=s.innerWidth,r=s.innerHeight,a=t.menu.getBoundingClientRect();return o.left=e-a.width,n+a.height>r&&(o.top-=a.height),o.left<0&&(o.left+=a.width),o.top<0&&(o.top=a.height<r?(r-a.height)/2:0),o.left+a.width>i&&(o.left=a.width<i?(i-a.width)/2:0),o})),g(C(t),"menuRef",(function(e){t.menu=e})),t.state=(0,a.default)({},t.state,{x:0,y:0,isVisible:!1}),t}return t=w,(n=[{key:"getSubMenuType",value:function(){return u.default}},{key:"componentDidMount",value:function(){this.listenId=l.default.register(this.handleShow,this.handleHide)}},{key:"componentDidUpdate",value:function(){var e=this,t=window.requestAnimationFrame||setTimeout;this.state.isVisible?t((function(){var n=e.state,o=n.x,s=n.y,i=e.props.rtl?e.getRTLMenuPosition(o,s):e.getMenuPosition(o,s),r=i.top,a=i.left;t((function(){e.menu&&(e.menu.style.top="".concat(r,"px"),e.menu.style.left="".concat(a,"px"),e.menu.style.opacity=1,e.menu.style.pointerEvents="auto")}))})):t((function(){e.menu&&(e.menu.style.opacity=0,e.menu.style.pointerEvents="none")}))}},{key:"componentWillUnmount",value:function(){this.listenId&&l.default.unregister(this.listenId),this.unregisterHandlers()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,o=e.style,i=this.state.isVisible,l=(0,a.default)({},o,{position:"fixed",opacity:0,pointerEvents:"none"}),c=(0,r.default)(d.cssClasses.menu,n,g({},d.cssClasses.menuVisible,i));return s.default.createElement("nav",{role:"menu",tabIndex:"-1",ref:this.menuRef,style:l,className:c,onContextMenu:this.handleContextMenu,onMouseLeave:this.handleMouseLeave},this.renderChildren(t))}}])&&M(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),w}(c.default);t.default=w,g(w,"propTypes",{id:i.default.string.isRequired,children:i.default.node.isRequired,data:i.default.object,className:i.default.string,hideOnLeave:i.default.bool,rtl:i.default.bool,onHide:i.default.func,onMouseLeave:i.default.func,onShow:i.default.func,preventHideOnContextMenu:i.default.bool,preventHideOnResize:i.default.bool,preventHideOnScroll:i.default.bool,style:i.default.object}),g(w,"defaultProps",{className:"",data:{},hideOnLeave:!1,rtl:!1,onHide:function(){return null},onMouseLeave:function(){return null},onShow:function(){return null},preventHideOnContextMenu:!1,preventHideOnResize:!1,preventHideOnScroll:!1,style:{}})},774:(e,t,n)=>{"use strict";function o(e){return o="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},o(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=A(t);if(n&&n.has(e))return n.get(e);var s={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var a=i?Object.getOwnPropertyDescriptor(e,r):null;a&&(a.get||a.set)?Object.defineProperty(s,r,a):s[r]=e[r]}return s.default=e,n&&n.set(e,s),s}(n(460)),i=u(n(764)),r=u(n(368)),a=u(n(772)),l=n(451),c=n(645);function u(e){return e&&e.__esModule?e:{default:e}}function A(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(A=function(e){return e?n:t})(e)}function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function M(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L(e){return L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},L(e)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(h,e);var t,n,i,u,A=(i=h,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=L(i);if(u){var n=L(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return M(e)}(this,e)});function h(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return C(M(e=A.call.apply(A,[this].concat(n))),"touchHandled",!1),C(M(e),"handleMouseDown",(function(t){e.props.holdToDisplay>=0&&0===t.button&&(t.persist(),t.stopPropagation(),e.mouseDownTimeoutId=setTimeout((function(){return e.handleContextClick(t)}),e.props.holdToDisplay)),(0,c.callIfExists)(e.props.attributes.onMouseDown,t)})),C(M(e),"handleMouseUp",(function(t){0===t.button&&clearTimeout(e.mouseDownTimeoutId),(0,c.callIfExists)(e.props.attributes.onMouseUp,t)})),C(M(e),"handleMouseOut",(function(t){0===t.button&&clearTimeout(e.mouseDownTimeoutId),(0,c.callIfExists)(e.props.attributes.onMouseOut,t)})),C(M(e),"handleTouchstart",(function(t){e.touchHandled=!1,e.props.holdToDisplay>=0&&(t.persist(),t.stopPropagation(),e.touchstartTimeoutId=setTimeout((function(){e.handleContextClick(t),e.touchHandled=!0}),e.props.holdToDisplay)),(0,c.callIfExists)(e.props.attributes.onTouchStart,t)})),C(M(e),"handleTouchEnd",(function(t){e.touchHandled&&t.preventDefault(),clearTimeout(e.touchstartTimeoutId),(0,c.callIfExists)(e.props.attributes.onTouchEnd,t)})),C(M(e),"handleContextMenu",(function(t){t.button===e.props.mouseButton&&e.handleContextClick(t),(0,c.callIfExists)(e.props.attributes.onContextMenu,t)})),C(M(e),"handleMouseClick",(function(t){t.button===e.props.mouseButton&&e.handleContextClick(t),(0,c.callIfExists)(e.props.attributes.onClick,t)})),C(M(e),"handleContextClick",(function(t){if(!(e.props.disable||e.props.disableIfShiftIsPressed&&t.shiftKey)){t.preventDefault(),t.stopPropagation();var n=t.clientX||t.touches&&t.touches[0].pageX,o=t.clientY||t.touches&&t.touches[0].pageY;e.props.posX&&(n-=e.props.posX),e.props.posY&&(o-=e.props.posY),(0,l.hideMenu)();var s=(0,c.callIfExists)(e.props.collect,e.props),i={position:{x:n,y:o},target:e.elem,id:e.props.id};s&&"function"==typeof s.then?s.then((function(e){i.data=(0,a.default)({},e,{target:t.target}),(0,l.showMenu)(i)})):(i.data=(0,a.default)({},s,{target:t.target}),(0,l.showMenu)(i))}})),C(M(e),"elemRef",(function(t){e.elem=t})),e}return t=h,(n=[{key:"render",value:function(){var e=this.props,t=e.renderTag,n=e.attributes,o=e.children,i=(0,a.default)({},n,{className:(0,r.default)(c.cssClasses.menuWrapper,n.className),onContextMenu:this.handleContextMenu,onClick:this.handleMouseClick,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onTouchStart:this.handleTouchstart,onTouchEnd:this.handleTouchEnd,onMouseOut:this.handleMouseOut,ref:this.elemRef});return s.default.createElement(t,i,o)}}])&&d(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),h}(s.Component);t.default=h,C(h,"propTypes",{id:i.default.string.isRequired,children:i.default.node.isRequired,attributes:i.default.object,collect:i.default.func,disable:i.default.bool,holdToDisplay:i.default.number,posX:i.default.number,posY:i.default.number,renderTag:i.default.elementType,mouseButton:i.default.number,disableIfShiftIsPressed:i.default.bool}),C(h,"defaultProps",{attributes:{},collect:function(){return null},disable:!1,holdToDisplay:1e3,renderTag:"div",posX:0,posY:0,mouseButton:2,disableIfShiftIsPressed:!1})},122:(e,t,n)=>{"use strict";function o(e){return o="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},o(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=A(t);if(n&&n.has(e))return n.get(e);var s={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var a=i?Object.getOwnPropertyDescriptor(e,r):null;a&&(a.get||a.set)?Object.defineProperty(s,r,a):s[r]=e[r]}return s.default=e,n&&n.set(e,s),s}(n(460)),i=u(n(764)),r=u(n(368)),a=u(n(772)),l=n(451),c=n(645);function u(e){return e&&e.__esModule?e:{default:e}}function A(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(A=function(e){return e?n:t})(e)}function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},d.apply(this,arguments)}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function M(e,t){return M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},M(e,t)}function L(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&M(e,t)}(g,e);var t,n,i,u,A=(i=g,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=C(i);if(u){var n=C(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return L(e)}(this,e)});function g(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return h(L(e=A.call.apply(A,[this].concat(n))),"handleClick",(function(t){0!==t.button&&1!==t.button&&t.preventDefault(),e.props.disabled||e.props.divider||((0,c.callIfExists)(e.props.onClick,t,(0,a.default)({},e.props.data,c.store.data),c.store.target),e.props.preventClose||(0,l.hideMenu)())})),e}return t=g,(n=[{key:"render",value:function(){var e,t=this,n=this.props,o=n.attributes,i=n.children,a=n.className,l=n.disabled,u=n.divider,A=n.selected,p=(0,r.default)(a,c.cssClasses.menuItem,o.className,(h(e={},(0,r.default)(c.cssClasses.menuItemDisabled,o.disabledClassName),l),h(e,(0,r.default)(c.cssClasses.menuItemDivider,o.dividerClassName),u),h(e,(0,r.default)(c.cssClasses.menuItemSelected,o.selectedClassName),A),e));return s.default.createElement("div",d({},o,{className:p,role:"menuitem",tabIndex:"-1","aria-disabled":l?"true":"false","aria-orientation":u?"horizontal":null,ref:function(e){t.ref=e},onMouseMove:this.props.onMouseMove,onMouseLeave:this.props.onMouseLeave,onTouchEnd:this.handleClick,onClick:this.handleClick}),u?null:i)}}])&&p(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),g}(s.Component);t.default=g,h(g,"propTypes",{attributes:i.default.object,children:i.default.node,className:i.default.string,data:i.default.object,disabled:i.default.bool,divider:i.default.bool,onClick:i.default.func,onMouseLeave:i.default.func,onMouseMove:i.default.func,preventClose:i.default.bool,selected:i.default.bool}),h(g,"defaultProps",{attributes:{},children:null,className:"",data:{},disabled:!1,divider:!1,onClick:function(){return null},onMouseMove:function(){return null},onMouseLeave:function(){return null},preventClose:!1,selected:!1})},349:(e,t,n)=>{"use strict";function o(e){return o="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},o(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=d(n(460)),i=d(n(764)),r=d(n(368)),a=d(n(772)),l=n(451),c=d(n(315)),u=n(645),A=d(n(225));function d(e){return e&&e.__esModule?e:{default:e}}function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},p.apply(this,arguments)}function M(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function L(e,t){return L=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},L(e,t)}function C(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&L(e,t)}(w,e);var t,n,i,c,d=(i=w,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(i);if(c){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return C(e)}(this,e)});function w(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,w),g(C(t=d.call(this,e)),"getMenuPosition",(function(){var e=window,n=e.innerWidth,o=e.innerHeight,s=t.subMenu.getBoundingClientRect(),i={};return s.bottom>o?i.bottom=0:i.top=0,s.right<n?i.left="100%":i.right="100%",i})),g(C(t),"getRTLMenuPosition",(function(){var e=window.innerHeight,n=t.subMenu.getBoundingClientRect(),o={};return n.bottom>e?o.bottom=0:o.top=0,n.left<0?o.left="100%":o.right="100%",o})),g(C(t),"hideMenu",(function(e){e.preventDefault(),t.hideSubMenu(e)})),g(C(t),"hideSubMenu",(function(e){e.detail&&e.detail.id&&t.menu&&e.detail.id!==t.menu.id||(t.props.forceOpen&&t.props.forceClose(),t.setState({visible:!1,selectedItem:null}),t.unregisterHandlers())})),g(C(t),"handleClick",(function(e){e.preventDefault(),t.props.disabled||((0,u.callIfExists)(t.props.onClick,e,(0,a.default)({},t.props.data,u.store.data),u.store.target),t.props.onClick&&!t.props.preventCloseOnClick&&(0,l.hideMenu)())})),g(C(t),"handleMouseEnter",(function(){t.closetimer&&clearTimeout(t.closetimer),t.props.disabled||t.state.visible||(t.opentimer=setTimeout((function(){return t.setState({visible:!0,selectedItem:null})}),t.props.hoverDelay))})),g(C(t),"handleMouseLeave",(function(){t.opentimer&&clearTimeout(t.opentimer),t.state.visible&&(t.closetimer=setTimeout((function(){return t.setState({visible:!1,selectedItem:null})}),t.props.hoverDelay))})),g(C(t),"menuRef",(function(e){t.menu=e})),g(C(t),"subMenuRef",(function(e){t.subMenu=e})),g(C(t),"registerHandlers",(function(){document.removeEventListener("keydown",t.props.parentKeyNavigationHandler),document.addEventListener("keydown",t.handleKeyNavigation)})),g(C(t),"unregisterHandlers",(function(e){document.removeEventListener("keydown",t.handleKeyNavigation),e||document.addEventListener("keydown",t.props.parentKeyNavigationHandler)})),t.state=(0,a.default)({},t.state,{visible:!1}),t}return t=w,(n=[{key:"componentDidMount",value:function(){this.listenId=A.default.register((function(){}),this.hideSubMenu)}},{key:"getSubMenuType",value:function(){return w}},{key:"shouldComponentUpdate",value:function(e,t){return this.isVisibilityChange=!(this.state.visible===t.visible&&this.props.forceOpen===e.forceOpen||this.state.visible&&e.forceOpen||this.props.forceOpen&&t.visible),!0}},{key:"componentDidUpdate",value:function(){var e=this;this.isVisibilityChange&&(this.props.forceOpen||this.state.visible?(window.requestAnimationFrame||setTimeout)((function(){var t=e.props.rtl?e.getRTLMenuPosition():e.getMenuPosition();e.subMenu.style.removeProperty("top"),e.subMenu.style.removeProperty("bottom"),e.subMenu.style.removeProperty("left"),e.subMenu.style.removeProperty("right"),(0,u.hasOwnProp)(t,"top")&&(e.subMenu.style.top=t.top),(0,u.hasOwnProp)(t,"left")&&(e.subMenu.style.left=t.left),(0,u.hasOwnProp)(t,"bottom")&&(e.subMenu.style.bottom=t.bottom),(0,u.hasOwnProp)(t,"right")&&(e.subMenu.style.right=t.right),e.subMenu.classList.add(u.cssClasses.menuVisible),e.registerHandlers(),e.setState({selectedItem:null})})):(this.subMenu.addEventListener("transitionend",(function t(){e.subMenu.removeEventListener("transitionend",t),e.subMenu.style.removeProperty("bottom"),e.subMenu.style.removeProperty("right"),e.subMenu.style.top=0,e.subMenu.style.left="100%",e.unregisterHandlers()})),this.subMenu.classList.remove(u.cssClasses.menuVisible)))}},{key:"componentWillUnmount",value:function(){this.listenId&&A.default.unregister(this.listenId),this.opentimer&&clearTimeout(this.opentimer),this.closetimer&&clearTimeout(this.closetimer),this.unregisterHandlers(!0)}},{key:"render",value:function(){var e,t=this.props,n=t.children,o=t.attributes,i=t.disabled,a=t.title,l=t.selected,c=this.state.visible,A={ref:this.menuRef,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,className:(0,r.default)(u.cssClasses.menuItem,u.cssClasses.subMenu,o.listClassName),style:{position:"relative"}},d={className:(0,r.default)(u.cssClasses.menuItem,o.className,(e={},g(e,(0,r.default)(u.cssClasses.menuItemDisabled,o.disabledClassName),i),g(e,(0,r.default)(u.cssClasses.menuItemActive,o.visibleClassName),c),g(e,(0,r.default)(u.cssClasses.menuItemSelected,o.selectedClassName),l),e)),onMouseMove:this.props.onMouseMove,onMouseOut:this.props.onMouseOut,onClick:this.handleClick},M={ref:this.subMenuRef,style:{position:"absolute",transition:"opacity 1ms",top:0,left:"100%"},className:(0,r.default)(u.cssClasses.menu,this.props.className)};return s.default.createElement("nav",p({},A,{role:"menuitem",tabIndex:"-1","aria-haspopup":"true"}),s.default.createElement("div",p({},o,d),a),s.default.createElement("nav",p({},M,{role:"menu",tabIndex:"-1"}),this.renderChildren(n)))}}])&&M(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),w}(c.default);t.default=w,g(w,"propTypes",{children:i.default.node.isRequired,attributes:i.default.object,title:i.default.node.isRequired,className:i.default.string,disabled:i.default.bool,hoverDelay:i.default.number,rtl:i.default.bool,selected:i.default.bool,onMouseMove:i.default.func,onMouseOut:i.default.func,forceOpen:i.default.bool,forceClose:i.default.func,parentKeyNavigationHandler:i.default.func}),g(w,"defaultProps",{disabled:!1,hoverDelay:500,attributes:{},className:"",rtl:!1,selected:!1,onMouseMove:function(){return null},onMouseOut:function(){return null},forceOpen:!1,forceClose:function(){return null},parentKeyNavigationHandler:function(){return null}})},451:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MENU_SHOW=t.MENU_HIDE=void 0,t.dispatchGlobalEvent=l,t.hideMenu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;l(a,(0,s.default)({},e,{type:a}),t)},t.showMenu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;l(r,(0,s.default)({},e,{type:r}),t)};var o,s=(o=n(772))&&o.__esModule?o:{default:o},i=n(645),r="REACT_CONTEXTMENU_SHOW";t.MENU_SHOW=r;var a="REACT_CONTEXTMENU_HIDE";function l(e,t){var n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;"function"==typeof window.CustomEvent?n=new window.CustomEvent(e,{detail:t}):(n=document.createEvent("CustomEvent")).initCustomEvent(e,!1,!0,t),o&&(o.dispatchEvent(n),(0,s.default)(i.store,t))}t.MENU_HIDE=a},857:(e,t,n)=>{"use strict";function o(e){return o="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},o(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){return function(n){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&A(e,t)}(g,n);var i,a,l,L,C=(i=g,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(i);if(a){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return d(e)}(this,e)});function g(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),M(d(n=C.call(this,t)),"handleShow",(function(t){if(t.detail.id===e){var o=t.detail.data,s={};for(var i in o)h.includes(i)||(s[i]=o[i]);n.setState({trigger:s})}})),M(d(n),"handleHide",(function(){n.setState({trigger:null})})),n.state={trigger:null},n}return l=g,(L=[{key:"componentDidMount",value:function(){this.listenId=r.default.register(this.handleShow,this.handleHide)}},{key:"componentWillUnmount",value:function(){this.listenId&&r.default.unregister(this.listenId)}},{key:"render",value:function(){return s.default.createElement(t,c({},this.props,{id:e,trigger:this.state.trigger}))}}])&&u(l.prototype,L),Object.defineProperty(l,"prototype",{writable:!1}),g}(s.Component)}};var s=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var s={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var a=i?Object.getOwnPropertyDescriptor(e,r):null;a&&(a.get||a.set)?Object.defineProperty(s,r,a):s[r]=e[r]}return s.default=e,n&&n.set(e,s),s}(n(460)),i=a(n(774)),r=a(n(225));function a(e){return e&&e.__esModule?e:{default:e}}function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},c.apply(this,arguments)}function u(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function A(e,t){return A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},A(e,t)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var C,h=[].concat(function(e){if(Array.isArray(e))return L(e)}(C=Object.keys(i.default.propTypes))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(C)||function(e,t){if(e){if("string"==typeof e)return L(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(e,t):void 0}}(C)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),["children"])},225:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(451),s=n(645);function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function r(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=new(r((function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,"handleShowEvent",(function(e){for(var n in t.callbacks)(0,s.hasOwnProp)(t.callbacks,n)&&t.callbacks[n].show(e)})),a(this,"handleHideEvent",(function(e){for(var n in t.callbacks)(0,s.hasOwnProp)(t.callbacks,n)&&t.callbacks[n].hide(e)})),a(this,"register",(function(e,n){var o=(0,s.uniqueId)();return t.callbacks[o]={show:e,hide:n},o})),a(this,"unregister",(function(e){e&&t.callbacks[e]&&delete t.callbacks[e]})),this.callbacks={},s.canUseDOM&&(window.addEventListener(o.MENU_SHOW,this.handleShowEvent),window.addEventListener(o.MENU_HIDE,this.handleHideEvent))})));t.default=l},645:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callIfExists=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return"function"==typeof e&&e.apply(void 0,n)},t.cssClasses=t.canUseDOM=void 0,t.hasOwnProp=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.store=void 0,t.uniqueId=function(){return Math.random().toString(36).substring(7)},t.cssClasses={menu:"react-contextmenu",menuVisible:"react-contextmenu--visible",menuWrapper:"react-contextmenu-wrapper",menuItem:"react-contextmenu-item",menuItemActive:"react-contextmenu-item--active",menuItemDisabled:"react-contextmenu-item--disabled",menuItemDivider:"react-contextmenu-item--divider",menuItemSelected:"react-contextmenu-item--selected",subMenu:"react-contextmenu-submenu"},t.store={};var n=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);t.canUseDOM=n},312:(e,t,n)=>{"use strict";Object.defineProperty(t,"tz",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"Rc",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"Dr",{enumerable:!0,get:function(){return i.default}});var o=r(n(824)),s=r(n(774)),i=r(n(122));r(n(349)),r(n(857)),n(451);function r(e){return e&&e.__esModule?e:{default:e}}},903:(e,t,n)=>{"use strict";var o=n(460),s=n(772),i=n(798);function r(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!o)throw Error(r(227));var a=new Set,l={};function c(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(l[e]=t,e=0;e<t.length;e++)a.add(t[e])}var A=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,M={},L={};function C(e,t,n,o,s,i,r){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=r}var h={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){h[e]=new C(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];h[t]=new C(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){h[e]=new C(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){h[e]=new C(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){h[e]=new C(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){h[e]=new C(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){h[e]=new C(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){h[e]=new C(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){h[e]=new C(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function w(e){return e[1].toUpperCase()}function j(e,t,n,o){var s=h.hasOwnProperty(t)?h[t]:null;(null!==s?0===s.type:!o&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,n,o){if(null==t||function(e,t,n,o){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!o&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,o))return!0;if(o)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,s,o)&&(n=null),o||null===s?function(e){return!!p.call(L,e)||!p.call(M,e)&&(d.test(e)?L[e]=!0:(M[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=null===n?3!==s.type&&"":n:(t=s.attributeName,o=s.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(s=s.type)||4===s&&!0===n?"":""+n,o?e.setAttributeNS(o,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(g,w);h[t]=new C(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,w);h[t]=new C(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(g,w);h[t]=new C(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){h[e]=new C(e,1,!1,e.toLowerCase(),null,!1,!1)})),h.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){h[e]=new C(e,1,!1,e.toLowerCase(),null,!0,!0)}));var m=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,b=60103,y=60106,f=60107,x=60108,N=60114,S=60109,D=60110,I=60112,v=60113,E=60120,T=60115,z=60116,O=60121,k=60128,Y=60129,P=60130,B=60131;if("function"==typeof Symbol&&Symbol.for){var R=Symbol.for;b=R("react.element"),y=R("react.portal"),f=R("react.fragment"),x=R("react.strict_mode"),N=R("react.profiler"),S=R("react.provider"),D=R("react.context"),I=R("react.forward_ref"),v=R("react.suspense"),E=R("react.suspense_list"),T=R("react.memo"),z=R("react.lazy"),O=R("react.block"),R("react.scope"),k=R("react.opaque.id"),Y=R("react.debug_trace_mode"),P=R("react.offscreen"),B=R("react.legacy_hidden")}var U,G="function"==typeof Symbol&&Symbol.iterator;function Z(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=G&&e[G]||e["@@iterator"])?e:null}function _(e){if(void 0===U)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);U=t&&t[1]||""}return"\n"+U+e}var W=!1;function H(e,t){if(!e||W)return"";W=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var o=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){o=e}e.call(t.prototype)}else{try{throw Error()}catch(e){o=e}e()}}catch(e){if(e&&o&&"string"==typeof e.stack){for(var s=e.stack.split("\n"),i=o.stack.split("\n"),r=s.length-1,a=i.length-1;1<=r&&0<=a&&s[r]!==i[a];)a--;for(;1<=r&&0<=a;r--,a--)if(s[r]!==i[a]){if(1!==r||1!==a)do{if(r--,0>--a||s[r]!==i[a])return"\n"+s[r].replace(" at new "," at ")}while(1<=r&&0<=a);break}}}finally{W=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?_(e):""}function Q(e){switch(e.tag){case 5:return _(e.type);case 16:return _("Lazy");case 13:return _("Suspense");case 19:return _("SuspenseList");case 0:case 2:case 15:return H(e.type,!1);case 11:return H(e.type.render,!1);case 22:return H(e.type._render,!1);case 1:return H(e.type,!0);default:return""}}function F(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case f:return"Fragment";case y:return"Portal";case N:return"Profiler";case x:return"StrictMode";case v:return"Suspense";case E:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case D:return(e.displayName||"Context")+".Consumer";case S:return(e._context.displayName||"Context")+".Provider";case I:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case T:return F(e.type);case O:return F(e._render);case z:t=e._payload,e=e._init;try{return F(e(t))}catch(e){}}return null}function V(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function J(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function X(e){e._valueTracker||(e._valueTracker=function(e){var t=J(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(e){o=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(e){o=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=J(e)?e.checked?"true":"false":e.value),(e=o)!==n&&(t.setValue(e),!0)}function K(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function $(e,t){var n=t.checked;return s({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,o=null!=t.checked?t.checked:t.defaultChecked;n=V(null!=t.value?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&j(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=V(t.value),o=t.type;if(null!=n)"number"===o?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===o||"reset"===o)return void e.removeAttribute("value");t.hasOwnProperty("value")?se(e,t.type,n):t.hasOwnProperty("defaultValue")&&se(e,t.type,V(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function oe(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!("submit"!==o&&"reset"!==o||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function se(e,t,n){"number"===t&&K(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ie(e,t){return e=s({children:void 0},t),(t=function(e){var t="";return o.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function re(e,t,n,o){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&o&&(e[n].defaultSelected=!0)}else{for(n=""+V(n),t=null,s=0;s<e.length;s++){if(e[s].value===n)return e[s].selected=!0,void(o&&(e[s].defaultSelected=!0));null!==t||e[s].disabled||(t=e[s])}null!==t&&(t.selected=!0)}}function ae(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(r(91));return s({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(r(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(r(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:V(n)}}function ce(e,t){var n=V(t.value),o=V(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=o&&(e.defaultValue=""+o)}function ue(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Ae="http://www.w3.org/1999/xhtml";function de(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function pe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?de(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Me,Le,Ce=(Le=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((Me=Me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,o){MSApp.execUnsafeLocalFunction((function(){return Le(e,t)}))}:Le);function he(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ge={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},we=["Webkit","ms","Moz","O"];function je(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ge.hasOwnProperty(e)&&ge[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var o=0===n.indexOf("--"),s=je(n,t[n],o);"float"===n&&(n="cssFloat"),o?e.setProperty(n,s):e[n]=s}}Object.keys(ge).forEach((function(e){we.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ge[t]=ge[e]}))}));var be=s({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(be[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(r(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(r(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(r(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(r(62))}}function fe(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ne=null,Se=null,De=null;function Ie(e){if(e=os(e)){if("function"!=typeof Ne)throw Error(r(280));var t=e.stateNode;t&&(t=is(t),Ne(e.stateNode,e.type,t))}}function ve(e){Se?De?De.push(e):De=[e]:Se=e}function Ee(){if(Se){var e=Se,t=De;if(De=Se=null,Ie(e),t)for(e=0;e<t.length;e++)Ie(t[e])}}function Te(e,t){return e(t)}function ze(e,t,n,o,s){return e(t,n,o,s)}function Oe(){}var ke=Te,Ye=!1,Pe=!1;function Be(){null===Se&&null===De||(Oe(),Ee())}function Re(e,t){var n=e.stateNode;if(null===n)return null;var o=is(n);if(null===o)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(r(231,t,typeof n));return n}var Ue=!1;if(A)try{var Ge={};Object.defineProperty(Ge,"passive",{get:function(){Ue=!0}}),window.addEventListener("test",Ge,Ge),window.removeEventListener("test",Ge,Ge)}catch(Le){Ue=!1}function Ze(e,t,n,o,s,i,r,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var _e=!1,We=null,He=!1,Qe=null,Fe={onError:function(e){_e=!0,We=e}};function Ve(e,t,n,o,s,i,r,a,l){_e=!1,We=null,Ze.apply(Fe,arguments)}function Je(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Xe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function qe(e){if(Je(e)!==e)throw Error(r(188))}function Ke(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Je(e)))throw Error(r(188));return t!==e?null:e}for(var n=e,o=t;;){var s=n.return;if(null===s)break;var i=s.alternate;if(null===i){if(null!==(o=s.return)){n=o;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return qe(s),e;if(i===o)return qe(s),t;i=i.sibling}throw Error(r(188))}if(n.return!==o.return)n=s,o=i;else{for(var a=!1,l=s.child;l;){if(l===n){a=!0,n=s,o=i;break}if(l===o){a=!0,o=s,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,o=s;break}if(l===o){a=!0,o=i,n=s;break}l=l.sibling}if(!a)throw Error(r(189))}}if(n.alternate!==o)throw Error(r(190))}if(3!==n.tag)throw Error(r(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function $e(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,ot,st=!1,it=[],rt=null,at=null,lt=null,ct=new Map,ut=new Map,At=[],dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pt(e,t,n,o,s){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:s,targetContainers:[o]}}function Mt(e,t){switch(e){case"focusin":case"focusout":rt=null;break;case"dragenter":case"dragleave":at=null;break;case"mouseover":case"mouseout":lt=null;break;case"pointerover":case"pointerout":ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ut.delete(t.pointerId)}}function Lt(e,t,n,o,s,i){return null===e||e.nativeEvent!==i?(e=pt(t,n,o,s,i),null!==t&&null!==(t=os(t))&&tt(t),e):(e.eventSystemFlags|=o,t=e.targetContainers,null!==s&&-1===t.indexOf(s)&&t.push(s),e)}function Ct(e){var t=ns(e.target);if(null!==t){var n=Je(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Xe(n)))return e.blockedOn=t,void ot(e.lanePriority,(function(){i.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function ht(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=os(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function gt(e,t,n){ht(e)&&n.delete(t)}function wt(){for(st=!1;0<it.length;){var e=it[0];if(null!==e.blockedOn){null!==(e=os(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&it.shift()}null!==rt&&ht(rt)&&(rt=null),null!==at&&ht(at)&&(at=null),null!==lt&&ht(lt)&&(lt=null),ct.forEach(gt),ut.forEach(gt)}function jt(e,t){e.blockedOn===t&&(e.blockedOn=null,st||(st=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,wt)))}function mt(e){function t(t){return jt(t,e)}if(0<it.length){jt(it[0],e);for(var n=1;n<it.length;n++){var o=it[n];o.blockedOn===e&&(o.blockedOn=null)}}for(null!==rt&&jt(rt,e),null!==at&&jt(at,e),null!==lt&&jt(lt,e),ct.forEach(t),ut.forEach(t),n=0;n<At.length;n++)(o=At[n]).blockedOn===e&&(o.blockedOn=null);for(;0<At.length&&null===(n=At[0]).blockedOn;)Ct(n),null===n.blockedOn&&At.shift()}function bt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var yt={animationend:bt("Animation","AnimationEnd"),animationiteration:bt("Animation","AnimationIteration"),animationstart:bt("Animation","AnimationStart"),transitionend:bt("Transition","TransitionEnd")},ft={},xt={};function Nt(e){if(ft[e])return ft[e];if(!yt[e])return e;var t,n=yt[e];for(t in n)if(n.hasOwnProperty(t)&&t in xt)return ft[e]=n[t];return e}A&&(xt=document.createElement("div").style,"AnimationEvent"in window||(delete yt.animationend.animation,delete yt.animationiteration.animation,delete yt.animationstart.animation),"TransitionEvent"in window||delete yt.transitionend.transition);var St=Nt("animationend"),Dt=Nt("animationiteration"),It=Nt("animationstart"),vt=Nt("transitionend"),Et=new Map,Tt=new Map,zt=["abort","abort",St,"animationEnd",Dt,"animationIteration",It,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",vt,"transitionEnd","waiting","waiting"];function Ot(e,t){for(var n=0;n<e.length;n+=2){var o=e[n],s=e[n+1];s="on"+(s[0].toUpperCase()+s.slice(1)),Tt.set(o,t),Et.set(o,s),c(s,[o])}}(0,i.unstable_now)();var kt=8;function Yt(e){if(1&e)return kt=15,1;if(2&e)return kt=14,2;if(4&e)return kt=13,4;var t=24&e;return 0!==t?(kt=12,t):32&e?(kt=11,32):0!=(t=192&e)?(kt=10,t):256&e?(kt=9,256):0!=(t=3584&e)?(kt=8,t):4096&e?(kt=7,4096):0!=(t=4186112&e)?(kt=6,t):0!=(t=62914560&e)?(kt=5,t):67108864&e?(kt=4,67108864):134217728&e?(kt=3,134217728):0!=(t=805306368&e)?(kt=2,t):1073741824&e?(kt=1,1073741824):(kt=8,e)}function Pt(e,t){var n=e.pendingLanes;if(0===n)return kt=0;var o=0,s=0,i=e.expiredLanes,r=e.suspendedLanes,a=e.pingedLanes;if(0!==i)o=i,s=kt=15;else if(0!=(i=134217727&n)){var l=i&~r;0!==l?(o=Yt(l),s=kt):0!=(a&=i)&&(o=Yt(a),s=kt)}else 0!=(i=n&~r)?(o=Yt(i),s=kt):0!==a&&(o=Yt(a),s=kt);if(0===o)return 0;if(o=n&((0>(o=31-_t(o))?0:1<<o)<<1)-1,0!==t&&t!==o&&!(t&r)){if(Yt(t),s<=kt)return t;kt=s}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=o;0<t;)s=1<<(n=31-_t(t)),o|=e[n],t&=~s;return o}function Bt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Rt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Ut(24&~t))?Rt(10,t):e;case 10:return 0===(e=Ut(192&~t))?Rt(8,t):e;case 8:return 0===(e=Ut(3584&~t))&&0===(e=Ut(4186112&~t))&&(e=512),e;case 2:return 0===(t=Ut(805306368&~t))&&(t=268435456),t}throw Error(r(358,e))}function Ut(e){return e&-e}function Gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Zt(e,t,n){e.pendingLanes|=t;var o=t-1;e.suspendedLanes&=o,e.pingedLanes&=o,(e=e.eventTimes)[t=31-_t(t)]=n}var _t=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Wt(e)/Ht|0)|0},Wt=Math.log,Ht=Math.LN2,Qt=i.unstable_UserBlockingPriority,Ft=i.unstable_runWithPriority,Vt=!0;function Jt(e,t,n,o){Ye||Oe();var s=qt,i=Ye;Ye=!0;try{ze(s,e,t,n,o)}finally{(Ye=i)||Be()}}function Xt(e,t,n,o){Ft(Qt,qt.bind(null,e,t,n,o))}function qt(e,t,n,o){var s;if(Vt)if((s=!(4&t))&&0<it.length&&-1<dt.indexOf(e))e=pt(null,e,t,n,o),it.push(e);else{var i=Kt(e,t,n,o);if(null===i)s&&Mt(e,o);else{if(s){if(-1<dt.indexOf(e))return e=pt(i,e,t,n,o),void it.push(e);if(function(e,t,n,o,s){switch(t){case"focusin":return rt=Lt(rt,e,t,n,o,s),!0;case"dragenter":return at=Lt(at,e,t,n,o,s),!0;case"mouseover":return lt=Lt(lt,e,t,n,o,s),!0;case"pointerover":var i=s.pointerId;return ct.set(i,Lt(ct.get(i)||null,e,t,n,o,s)),!0;case"gotpointercapture":return i=s.pointerId,ut.set(i,Lt(ut.get(i)||null,e,t,n,o,s)),!0}return!1}(i,e,t,n,o))return;Mt(e,o)}ko(e,t,o,null,n)}}}function Kt(e,t,n,o){var s=xe(o);if(null!==(s=ns(s))){var i=Je(s);if(null===i)s=null;else{var r=i.tag;if(13===r){if(null!==(s=Xe(i)))return s;s=null}else if(3===r){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;s=null}else i!==s&&(s=null)}}return ko(e,t,o,s,n),null}var $t=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,o=n.length,s="value"in $t?$t.value:$t.textContent,i=s.length;for(e=0;e<o&&n[e]===s[e];e++);var r=o-e;for(t=1;t<=r&&n[o-t]===s[i-t];t++);return tn=s.slice(e,1<t?1-t:void 0)}function on(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function sn(){return!0}function rn(){return!1}function an(e){function t(t,n,o,s,i){for(var r in this._reactName=t,this._targetInst=o,this.type=n,this.nativeEvent=s,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(r)&&(t=e[r],this[r]=t?t(s):s[r]);return this.isDefaultPrevented=(null!=s.defaultPrevented?s.defaultPrevented:!1===s.returnValue)?sn:rn,this.isPropagationStopped=rn,this}return s(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=sn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=sn)},persist:function(){},isPersistent:sn}),t}var ln,cn,un,An={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=an(An),pn=s({},An,{view:0,detail:0}),Mn=an(pn),Ln=s({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==un&&(un&&"mousemove"===e.type?(ln=e.screenX-un.screenX,cn=e.screenY-un.screenY):cn=ln=0,un=e),ln)},movementY:function(e){return"movementY"in e?e.movementY:cn}}),Cn=an(Ln),hn=an(s({},Ln,{dataTransfer:0})),gn=an(s({},pn,{relatedTarget:0})),wn=an(s({},An,{animationName:0,elapsedTime:0,pseudoElement:0})),jn=s({},An,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),mn=an(jn),bn=an(s({},An,{data:0})),yn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Nn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function Sn(){return Nn}var Dn=s({},pn,{key:function(e){if(e.key){var t=yn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=on(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?fn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sn,charCode:function(e){return"keypress"===e.type?on(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?on(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),In=an(Dn),vn=an(s({},Ln,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),En=an(s({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sn})),Tn=an(s({},An,{propertyName:0,elapsedTime:0,pseudoElement:0})),zn=s({},Ln,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),On=an(zn),kn=[9,13,27,32],Yn=A&&"CompositionEvent"in window,Pn=null;A&&"documentMode"in document&&(Pn=document.documentMode);var Bn=A&&"TextEvent"in window&&!Pn,Rn=A&&(!Yn||Pn&&8<Pn&&11>=Pn),Un=String.fromCharCode(32),Gn=!1;function Zn(e,t){switch(e){case"keyup":return-1!==kn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _n(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Wn=!1,Hn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function Fn(e,t,n,o){ve(o),0<(t=Po(t,"onChange")).length&&(n=new dn("onChange","change",null,n,o),e.push({event:n,listeners:t}))}var Vn=null,Jn=null;function Xn(e){Io(e,0)}function qn(e){if(q(ss(e)))return e}function Kn(e,t){if("change"===e)return t}var $n=!1;if(A){var eo;if(A){var to="oninput"in document;if(!to){var no=document.createElement("div");no.setAttribute("oninput","return;"),to="function"==typeof no.oninput}eo=to}else eo=!1;$n=eo&&(!document.documentMode||9<document.documentMode)}function oo(){Vn&&(Vn.detachEvent("onpropertychange",so),Jn=Vn=null)}function so(e){if("value"===e.propertyName&&qn(Jn)){var t=[];if(Fn(t,Jn,e,xe(e)),e=Xn,Ye)e(t);else{Ye=!0;try{Te(e,t)}finally{Ye=!1,Be()}}}}function io(e,t,n){"focusin"===e?(oo(),Jn=n,(Vn=t).attachEvent("onpropertychange",so)):"focusout"===e&&oo()}function ro(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return qn(Jn)}function ao(e,t){if("click"===e)return qn(t)}function lo(e,t){if("input"===e||"change"===e)return qn(t)}var co="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},uo=Object.prototype.hasOwnProperty;function Ao(e,t){if(co(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++)if(!uo.call(t,n[o])||!co(e[n[o]],t[n[o]]))return!1;return!0}function po(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Mo(e,t){var n,o=po(e);for(e=0;o;){if(3===o.nodeType){if(n=e+o.textContent.length,e<=t&&n>=t)return{node:o,offset:t-e};e=n}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=po(o)}}function Lo(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Lo(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Co(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=K((e=t.contentWindow).document)}return t}function ho(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var go=A&&"documentMode"in document&&11>=document.documentMode,wo=null,jo=null,mo=null,bo=!1;function yo(e,t,n){var o=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;bo||null==wo||wo!==K(o)||(o="selectionStart"in(o=wo)&&ho(o)?{start:o.selectionStart,end:o.selectionEnd}:{anchorNode:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset},mo&&Ao(mo,o)||(mo=o,0<(o=Po(jo,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:o}),t.target=wo)))}Ot("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Ot("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Ot(zt,2);for(var fo="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),xo=0;xo<fo.length;xo++)Tt.set(fo[xo],0);u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var No="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),So=new Set("cancel close invalid load scroll toggle".split(" ").concat(No));function Do(e,t,n){var o=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,o,s,i,a,l,c){if(Ve.apply(this,arguments),_e){if(!_e)throw Error(r(198));var u=We;_e=!1,We=null,He||(He=!0,Qe=u)}}(o,t,void 0,e),e.currentTarget=null}function Io(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var o=e[n],s=o.event;o=o.listeners;e:{var i=void 0;if(t)for(var r=o.length-1;0<=r;r--){var a=o[r],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==i&&s.isPropagationStopped())break e;Do(s,a,c),i=l}else for(r=0;r<o.length;r++){if(l=(a=o[r]).instance,c=a.currentTarget,a=a.listener,l!==i&&s.isPropagationStopped())break e;Do(s,a,c),i=l}}}if(He)throw e=Qe,He=!1,Qe=null,e}function vo(e,t){var n=rs(t),o=e+"__bubble";n.has(o)||(Oo(t,e,2,!1),n.add(o))}var Eo="_reactListening"+Math.random().toString(36).slice(2);function To(e){e[Eo]||(e[Eo]=!0,a.forEach((function(t){So.has(t)||zo(t,!1,e,null),zo(t,!0,e,null)})))}function zo(e,t,n,o){var s=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=n;if("selectionchange"===e&&9!==n.nodeType&&(i=n.ownerDocument),null!==o&&!t&&So.has(e)){if("scroll"!==e)return;s|=2,i=o}var r=rs(i),a=e+"__"+(t?"capture":"bubble");r.has(a)||(t&&(s|=4),Oo(i,e,s,t),r.add(a))}function Oo(e,t,n,o){var s=Tt.get(t);switch(void 0===s?2:s){case 0:s=Jt;break;case 1:s=Xt;break;default:s=qt}n=s.bind(null,t,n,e),s=void 0,!Ue||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(s=!0),o?void 0!==s?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):void 0!==s?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function ko(e,t,n,o,s){var i=o;if(!(1&t||2&t||null===o))e:for(;;){if(null===o)return;var r=o.tag;if(3===r||4===r){var a=o.stateNode.containerInfo;if(a===s||8===a.nodeType&&a.parentNode===s)break;if(4===r)for(r=o.return;null!==r;){var l=r.tag;if((3===l||4===l)&&((l=r.stateNode.containerInfo)===s||8===l.nodeType&&l.parentNode===s))return;r=r.return}for(;null!==a;){if(null===(r=ns(a)))return;if(5===(l=r.tag)||6===l){o=i=r;continue e}a=a.parentNode}}o=o.return}!function(e,t,n){if(Pe)return e();Pe=!0;try{return ke(e,t,n)}finally{Pe=!1,Be()}}((function(){var o=i,s=xe(n),r=[];e:{var a=Et.get(e);if(void 0!==a){var l=dn,c=e;switch(e){case"keypress":if(0===on(n))break e;case"keydown":case"keyup":l=In;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=Cn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=hn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=En;break;case St:case Dt:case It:l=wn;break;case vt:l=Tn;break;case"scroll":l=Mn;break;case"wheel":l=On;break;case"copy":case"cut":case"paste":l=mn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=vn}var u=!!(4&t),A=!u&&"scroll"===e,d=u?null!==a?a+"Capture":null:a;u=[];for(var p,M=o;null!==M;){var L=(p=M).stateNode;if(5===p.tag&&null!==L&&(p=L,null!==d&&null!=(L=Re(M,d))&&u.push(Yo(M,L,p))),A)break;M=M.return}0<u.length&&(a=new l(a,c,null,n,s),r.push({event:a,listeners:u}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(a="mouseover"===e||"pointerover"===e)||16&t||!(c=n.relatedTarget||n.fromElement)||!ns(c)&&!c[es])&&(l||a)&&(a=s.window===s?s:(a=s.ownerDocument)?a.defaultView||a.parentWindow:window,l?(l=o,null!==(c=(c=n.relatedTarget||n.toElement)?ns(c):null)&&(c!==(A=Je(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=o),l!==c)){if(u=Cn,L="onMouseLeave",d="onMouseEnter",M="mouse","pointerout"!==e&&"pointerover"!==e||(u=vn,L="onPointerLeave",d="onPointerEnter",M="pointer"),A=null==l?a:ss(l),p=null==c?a:ss(c),(a=new u(L,M+"leave",l,n,s)).target=A,a.relatedTarget=p,L=null,ns(s)===o&&((u=new u(d,M+"enter",c,n,s)).target=p,u.relatedTarget=A,L=u),A=L,l&&c)e:{for(d=c,M=0,p=u=l;p;p=Bo(p))M++;for(p=0,L=d;L;L=Bo(L))p++;for(;0<M-p;)u=Bo(u),M--;for(;0<p-M;)d=Bo(d),p--;for(;M--;){if(u===d||null!==d&&u===d.alternate)break e;u=Bo(u),d=Bo(d)}u=null}else u=null;null!==l&&Ro(r,a,l,u,!1),null!==c&&null!==A&&Ro(r,A,c,u,!0)}if("select"===(l=(a=o?ss(o):window).nodeName&&a.nodeName.toLowerCase())||"input"===l&&"file"===a.type)var C=Kn;else if(Qn(a))if($n)C=lo;else{C=ro;var h=io}else(l=a.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(C=ao);switch(C&&(C=C(e,o))?Fn(r,C,n,s):(h&&h(e,a,o),"focusout"===e&&(h=a._wrapperState)&&h.controlled&&"number"===a.type&&se(a,"number",a.value)),h=o?ss(o):window,e){case"focusin":(Qn(h)||"true"===h.contentEditable)&&(wo=h,jo=o,mo=null);break;case"focusout":mo=jo=wo=null;break;case"mousedown":bo=!0;break;case"contextmenu":case"mouseup":case"dragend":bo=!1,yo(r,n,s);break;case"selectionchange":if(go)break;case"keydown":case"keyup":yo(r,n,s)}var g;if(Yn)e:{switch(e){case"compositionstart":var w="onCompositionStart";break e;case"compositionend":w="onCompositionEnd";break e;case"compositionupdate":w="onCompositionUpdate";break e}w=void 0}else Wn?Zn(e,n)&&(w="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(w="onCompositionStart");w&&(Rn&&"ko"!==n.locale&&(Wn||"onCompositionStart"!==w?"onCompositionEnd"===w&&Wn&&(g=nn()):(en="value"in($t=s)?$t.value:$t.textContent,Wn=!0)),0<(h=Po(o,w)).length&&(w=new bn(w,e,null,n,s),r.push({event:w,listeners:h}),(g||null!==(g=_n(n)))&&(w.data=g))),(g=Bn?function(e,t){switch(e){case"compositionend":return _n(t);case"keypress":return 32!==t.which?null:(Gn=!0,Un);case"textInput":return(e=t.data)===Un&&Gn?null:e;default:return null}}(e,n):function(e,t){if(Wn)return"compositionend"===e||!Yn&&Zn(e,t)?(e=nn(),tn=en=$t=null,Wn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Rn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(o=Po(o,"onBeforeInput")).length&&(s=new bn("onBeforeInput","beforeinput",null,n,s),r.push({event:s,listeners:o}),s.data=g)}Io(r,t)}))}function Yo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Po(e,t){for(var n=t+"Capture",o=[];null!==e;){var s=e,i=s.stateNode;5===s.tag&&null!==i&&(s=i,null!=(i=Re(e,n))&&o.unshift(Yo(e,i,s)),null!=(i=Re(e,t))&&o.push(Yo(e,i,s))),e=e.return}return o}function Bo(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Ro(e,t,n,o,s){for(var i=t._reactName,r=[];null!==n&&n!==o;){var a=n,l=a.alternate,c=a.stateNode;if(null!==l&&l===o)break;5===a.tag&&null!==c&&(a=c,s?null!=(l=Re(n,i))&&r.unshift(Yo(n,l,a)):s||null!=(l=Re(n,i))&&r.push(Yo(n,l,a))),n=n.return}0!==r.length&&e.push({event:t,listeners:r})}function Uo(){}var Go=null,Zo=null;function _o(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Wo(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Ho="function"==typeof setTimeout?setTimeout:void 0,Qo="function"==typeof clearTimeout?clearTimeout:void 0;function Fo(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function Vo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Jo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Xo=0,qo=Math.random().toString(36).slice(2),Ko="__reactFiber$"+qo,$o="__reactProps$"+qo,es="__reactContainer$"+qo,ts="__reactEvents$"+qo;function ns(e){var t=e[Ko];if(t)return t;for(var n=e.parentNode;n;){if(t=n[es]||n[Ko]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Jo(e);null!==e;){if(n=e[Ko])return n;e=Jo(e)}return t}n=(e=n).parentNode}return null}function os(e){return!(e=e[Ko]||e[es])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ss(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(r(33))}function is(e){return e[$o]||null}function rs(e){var t=e[ts];return void 0===t&&(t=e[ts]=new Set),t}var as=[],ls=-1;function cs(e){return{current:e}}function us(e){0>ls||(e.current=as[ls],as[ls]=null,ls--)}function As(e,t){ls++,as[ls]=e.current,e.current=t}var ds={},ps=cs(ds),Ms=cs(!1),Ls=ds;function Cs(e,t){var n=e.type.contextTypes;if(!n)return ds;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var s,i={};for(s in n)i[s]=t[s];return o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function hs(e){return null!=e.childContextTypes}function gs(){us(Ms),us(ps)}function ws(e,t,n){if(ps.current!==ds)throw Error(r(168));As(ps,t),As(Ms,n)}function js(e,t,n){var o=e.stateNode;if(e=t.childContextTypes,"function"!=typeof o.getChildContext)return n;for(var i in o=o.getChildContext())if(!(i in e))throw Error(r(108,F(t)||"Unknown",i));return s({},n,o)}function ms(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ds,Ls=ps.current,As(ps,e),As(Ms,Ms.current),!0}function bs(e,t,n){var o=e.stateNode;if(!o)throw Error(r(169));n?(e=js(e,t,Ls),o.__reactInternalMemoizedMergedChildContext=e,us(Ms),us(ps),As(ps,e)):us(Ms),As(Ms,n)}var ys=null,fs=null,xs=i.unstable_runWithPriority,Ns=i.unstable_scheduleCallback,Ss=i.unstable_cancelCallback,Ds=i.unstable_shouldYield,Is=i.unstable_requestPaint,vs=i.unstable_now,Es=i.unstable_getCurrentPriorityLevel,Ts=i.unstable_ImmediatePriority,zs=i.unstable_UserBlockingPriority,Os=i.unstable_NormalPriority,ks=i.unstable_LowPriority,Ys=i.unstable_IdlePriority,Ps={},Bs=void 0!==Is?Is:function(){},Rs=null,Us=null,Gs=!1,Zs=vs(),_s=1e4>Zs?vs:function(){return vs()-Zs};function Ws(){switch(Es()){case Ts:return 99;case zs:return 98;case Os:return 97;case ks:return 96;case Ys:return 95;default:throw Error(r(332))}}function Hs(e){switch(e){case 99:return Ts;case 98:return zs;case 97:return Os;case 96:return ks;case 95:return Ys;default:throw Error(r(332))}}function Qs(e,t){return e=Hs(e),xs(e,t)}function Fs(e,t,n){return e=Hs(e),Ns(e,t,n)}function Vs(){if(null!==Us){var e=Us;Us=null,Ss(e)}Js()}function Js(){if(!Gs&&null!==Rs){Gs=!0;var e=0;try{var t=Rs;Qs(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Rs=null}catch(t){throw null!==Rs&&(Rs=Rs.slice(e+1)),Ns(Ts,Vs),t}finally{Gs=!1}}}var Xs=m.ReactCurrentBatchConfig;function qs(e,t){if(e&&e.defaultProps){for(var n in t=s({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Ks=cs(null),$s=null,ei=null,ti=null;function ni(){ti=ei=$s=null}function oi(e){var t=Ks.current;us(Ks),e.type._context._currentValue=t}function si(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ii(e,t){$s=e,ti=ei=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(Yr=!0),e.firstContext=null)}function ri(e,t){if(ti!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(ti=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ei){if(null===$s)throw Error(r(308));ei=t,$s.dependencies={lanes:0,firstContext:t,responders:null}}else ei=ei.next=t;return e._currentValue}var ai=!1;function li(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ci(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ui(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ai(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function di(e,t){var n=e.updateQueue,o=e.alternate;if(null!==o&&n===(o=o.updateQueue)){var s=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var r={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?s=i=r:i=i.next=r,n=n.next}while(null!==n);null===i?s=i=t:i=i.next=t}else s=i=t;return n={baseState:o.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:o.shared,effects:o.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function pi(e,t,n,o){var i=e.updateQueue;ai=!1;var r=i.firstBaseUpdate,a=i.lastBaseUpdate,l=i.shared.pending;if(null!==l){i.shared.pending=null;var c=l,u=c.next;c.next=null,null===a?r=u:a.next=u,a=c;var A=e.alternate;if(null!==A){var d=(A=A.updateQueue).lastBaseUpdate;d!==a&&(null===d?A.firstBaseUpdate=u:d.next=u,A.lastBaseUpdate=c)}}if(null!==r){for(d=i.baseState,a=0,A=u=c=null;;){l=r.lane;var p=r.eventTime;if((o&l)===l){null!==A&&(A=A.next={eventTime:p,lane:0,tag:r.tag,payload:r.payload,callback:r.callback,next:null});e:{var M=e,L=r;switch(l=t,p=n,L.tag){case 1:if("function"==typeof(M=L.payload)){d=M.call(p,d,l);break e}d=M;break e;case 3:M.flags=-4097&M.flags|64;case 0:if(null==(l="function"==typeof(M=L.payload)?M.call(p,d,l):M))break e;d=s({},d,l);break e;case 2:ai=!0}}null!==r.callback&&(e.flags|=32,null===(l=i.effects)?i.effects=[r]:l.push(r))}else p={eventTime:p,lane:l,tag:r.tag,payload:r.payload,callback:r.callback,next:null},null===A?(u=A=p,c=d):A=A.next=p,a|=l;if(null===(r=r.next)){if(null===(l=i.shared.pending))break;r=l.next,l.next=null,i.lastBaseUpdate=l,i.shared.pending=null}}null===A&&(c=d),i.baseState=c,i.firstBaseUpdate=u,i.lastBaseUpdate=A,Ra|=a,e.lanes=a,e.memoizedState=d}}function Mi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],s=o.callback;if(null!==s){if(o.callback=null,o=n,"function"!=typeof s)throw Error(r(191,s));s.call(o)}}}var Li=(new o.Component).refs;function Ci(e,t,n,o){n=null==(n=n(o,t=e.memoizedState))?t:s({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var hi={isMounted:function(e){return!!(e=e._reactInternals)&&Je(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var o=ul(),s=Al(e),i=ui(o,s);i.payload=t,null!=n&&(i.callback=n),Ai(e,i),dl(e,s,o)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var o=ul(),s=Al(e),i=ui(o,s);i.tag=1,i.payload=t,null!=n&&(i.callback=n),Ai(e,i),dl(e,s,o)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ul(),o=Al(e),s=ui(n,o);s.tag=2,null!=t&&(s.callback=t),Ai(e,s),dl(e,o,n)}};function gi(e,t,n,o,s,i,r){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(o,i,r):!(t.prototype&&t.prototype.isPureReactComponent&&Ao(n,o)&&Ao(s,i))}function wi(e,t,n){var o=!1,s=ds,i=t.contextType;return"object"==typeof i&&null!==i?i=ri(i):(s=hs(t)?Ls:ps.current,i=(o=null!=(o=t.contextTypes))?Cs(e,s):ds),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=hi,e.stateNode=t,t._reactInternals=e,o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function ji(e,t,n,o){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,o),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,o),t.state!==e&&hi.enqueueReplaceState(t,t.state,null)}function mi(e,t,n,o){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs=Li,li(e);var i=t.contextType;"object"==typeof i&&null!==i?s.context=ri(i):(i=hs(t)?Ls:ps.current,s.context=Cs(e,i)),pi(e,n,s,o),s.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Ci(e,t,i,n),s.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof s.getSnapshotBeforeUpdate||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||(t=s.state,"function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount(),t!==s.state&&hi.enqueueReplaceState(s,s.state,null),pi(e,n,s,o),s.state=e.memoizedState),"function"==typeof s.componentDidMount&&(e.flags|=4)}var bi=Array.isArray;function yi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(r(309));var o=n.stateNode}if(!o)throw Error(r(147,e));var s=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===s?t.ref:(t=function(e){var t=o.refs;t===Li&&(t=o.refs={}),null===e?delete t[s]:t[s]=e},t._stringRef=s,t)}if("string"!=typeof e)throw Error(r(284));if(!n._owner)throw Error(r(290,e))}return e}function fi(e,t){if("textarea"!==e.type)throw Error(r(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function xi(e){function t(t,n){if(e){var o=t.lastEffect;null!==o?(o.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,o){if(!e)return null;for(;null!==o;)t(n,o),o=o.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function s(e,t){return(e=Zl(e,t)).index=0,e.sibling=null,e}function i(t,n,o){return t.index=o,e?null!==(o=t.alternate)?(o=o.index)<n?(t.flags=2,n):o:(t.flags=2,n):n}function a(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,o){return null===t||6!==t.tag?((t=Ql(n,e.mode,o)).return=e,t):((t=s(t,n)).return=e,t)}function c(e,t,n,o){return null!==t&&t.elementType===n.type?((o=s(t,n.props)).ref=yi(e,t,n),o.return=e,o):((o=_l(n.type,n.key,n.props,null,e.mode,o)).ref=yi(e,t,n),o.return=e,o)}function u(e,t,n,o){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fl(n,e.mode,o)).return=e,t):((t=s(t,n.children||[])).return=e,t)}function A(e,t,n,o,i){return null===t||7!==t.tag?((t=Wl(n,e.mode,o,i)).return=e,t):((t=s(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Ql(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case b:return(n=_l(t.type,t.key,t.props,null,e.mode,n)).ref=yi(e,null,t),n.return=e,n;case y:return(t=Fl(t,e.mode,n)).return=e,t}if(bi(t)||Z(t))return(t=Wl(t,e.mode,n,null)).return=e,t;fi(e,t)}return null}function p(e,t,n,o){var s=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==s?null:l(e,t,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case b:return n.key===s?n.type===f?A(e,t,n.props.children,o,s):c(e,t,n,o):null;case y:return n.key===s?u(e,t,n,o):null}if(bi(n)||Z(n))return null!==s?null:A(e,t,n,o,null);fi(e,n)}return null}function M(e,t,n,o,s){if("string"==typeof o||"number"==typeof o)return l(t,e=e.get(n)||null,""+o,s);if("object"==typeof o&&null!==o){switch(o.$$typeof){case b:return e=e.get(null===o.key?n:o.key)||null,o.type===f?A(t,e,o.props.children,s,o.key):c(t,e,o,s);case y:return u(t,e=e.get(null===o.key?n:o.key)||null,o,s)}if(bi(o)||Z(o))return A(t,e=e.get(n)||null,o,s,null);fi(t,o)}return null}function L(s,r,a,l){for(var c=null,u=null,A=r,L=r=0,C=null;null!==A&&L<a.length;L++){A.index>L?(C=A,A=null):C=A.sibling;var h=p(s,A,a[L],l);if(null===h){null===A&&(A=C);break}e&&A&&null===h.alternate&&t(s,A),r=i(h,r,L),null===u?c=h:u.sibling=h,u=h,A=C}if(L===a.length)return n(s,A),c;if(null===A){for(;L<a.length;L++)null!==(A=d(s,a[L],l))&&(r=i(A,r,L),null===u?c=A:u.sibling=A,u=A);return c}for(A=o(s,A);L<a.length;L++)null!==(C=M(A,s,L,a[L],l))&&(e&&null!==C.alternate&&A.delete(null===C.key?L:C.key),r=i(C,r,L),null===u?c=C:u.sibling=C,u=C);return e&&A.forEach((function(e){return t(s,e)})),c}function C(s,a,l,c){var u=Z(l);if("function"!=typeof u)throw Error(r(150));if(null==(l=u.call(l)))throw Error(r(151));for(var A=u=null,L=a,C=a=0,h=null,g=l.next();null!==L&&!g.done;C++,g=l.next()){L.index>C?(h=L,L=null):h=L.sibling;var w=p(s,L,g.value,c);if(null===w){null===L&&(L=h);break}e&&L&&null===w.alternate&&t(s,L),a=i(w,a,C),null===A?u=w:A.sibling=w,A=w,L=h}if(g.done)return n(s,L),u;if(null===L){for(;!g.done;C++,g=l.next())null!==(g=d(s,g.value,c))&&(a=i(g,a,C),null===A?u=g:A.sibling=g,A=g);return u}for(L=o(s,L);!g.done;C++,g=l.next())null!==(g=M(L,s,C,g.value,c))&&(e&&null!==g.alternate&&L.delete(null===g.key?C:g.key),a=i(g,a,C),null===A?u=g:A.sibling=g,A=g);return e&&L.forEach((function(e){return t(s,e)})),u}return function(e,o,i,l){var c="object"==typeof i&&null!==i&&i.type===f&&null===i.key;c&&(i=i.props.children);var u="object"==typeof i&&null!==i;if(u)switch(i.$$typeof){case b:e:{for(u=i.key,c=o;null!==c;){if(c.key===u){if(7===c.tag){if(i.type===f){n(e,c.sibling),(o=s(c,i.props.children)).return=e,e=o;break e}}else if(c.elementType===i.type){n(e,c.sibling),(o=s(c,i.props)).ref=yi(e,c,i),o.return=e,e=o;break e}n(e,c);break}t(e,c),c=c.sibling}i.type===f?((o=Wl(i.props.children,e.mode,l,i.key)).return=e,e=o):((l=_l(i.type,i.key,i.props,null,e.mode,l)).ref=yi(e,o,i),l.return=e,e=l)}return a(e);case y:e:{for(c=i.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===i.containerInfo&&o.stateNode.implementation===i.implementation){n(e,o.sibling),(o=s(o,i.children||[])).return=e,e=o;break e}n(e,o);break}t(e,o),o=o.sibling}(o=Fl(i,e.mode,l)).return=e,e=o}return a(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==o&&6===o.tag?(n(e,o.sibling),(o=s(o,i)).return=e,e=o):(n(e,o),(o=Ql(i,e.mode,l)).return=e,e=o),a(e);if(bi(i))return L(e,o,i,l);if(Z(i))return C(e,o,i,l);if(u&&fi(e,i),void 0===i&&!c)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(r(152,F(e.type)||"Component"))}return n(e,o)}}var Ni=xi(!0),Si=xi(!1),Di={},Ii=cs(Di),vi=cs(Di),Ei=cs(Di);function Ti(e){if(e===Di)throw Error(r(174));return e}function zi(e,t){switch(As(Ei,t),As(vi,e),As(Ii,Di),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pe(null,"");break;default:t=pe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}us(Ii),As(Ii,t)}function Oi(){us(Ii),us(vi),us(Ei)}function ki(e){Ti(Ei.current);var t=Ti(Ii.current),n=pe(t,e.type);t!==n&&(As(vi,e),As(Ii,n))}function Yi(e){vi.current===e&&(us(Ii),us(vi))}var Pi=cs(0);function Bi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(64&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ri=null,Ui=null,Gi=!1;function Zi(e,t){var n=Ul(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function _i(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Wi(e){if(Gi){var t=Ui;if(t){var n=t;if(!_i(e,t)){if(!(t=Vo(n.nextSibling))||!_i(e,t))return e.flags=-1025&e.flags|2,Gi=!1,void(Ri=e);Zi(Ri,n)}Ri=e,Ui=Vo(t.firstChild)}else e.flags=-1025&e.flags|2,Gi=!1,Ri=e}}function Hi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ri=e}function Qi(e){if(e!==Ri)return!1;if(!Gi)return Hi(e),Gi=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Wo(t,e.memoizedProps))for(t=Ui;t;)Zi(e,t),t=Vo(t.nextSibling);if(Hi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Ui=Vo(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Ui=null}}else Ui=Ri?Vo(e.stateNode.nextSibling):null;return!0}function Fi(){Ui=Ri=null,Gi=!1}var Vi=[];function Ji(){for(var e=0;e<Vi.length;e++)Vi[e]._workInProgressVersionPrimary=null;Vi.length=0}var Xi=m.ReactCurrentDispatcher,qi=m.ReactCurrentBatchConfig,Ki=0,$i=null,er=null,tr=null,nr=!1,or=!1;function sr(){throw Error(r(321))}function ir(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!co(e[n],t[n]))return!1;return!0}function rr(e,t,n,o,s,i){if(Ki=i,$i=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Xi.current=null===e||null===e.memoizedState?Tr:zr,e=n(o,s),or){i=0;do{if(or=!1,!(25>i))throw Error(r(301));i+=1,tr=er=null,t.updateQueue=null,Xi.current=Or,e=n(o,s)}while(or)}if(Xi.current=Er,t=null!==er&&null!==er.next,Ki=0,tr=er=$i=null,nr=!1,t)throw Error(r(300));return e}function ar(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===tr?$i.memoizedState=tr=e:tr=tr.next=e,tr}function lr(){if(null===er){var e=$i.alternate;e=null!==e?e.memoizedState:null}else e=er.next;var t=null===tr?$i.memoizedState:tr.next;if(null!==t)tr=t,er=e;else{if(null===e)throw Error(r(310));e={memoizedState:(er=e).memoizedState,baseState:er.baseState,baseQueue:er.baseQueue,queue:er.queue,next:null},null===tr?$i.memoizedState=tr=e:tr=tr.next=e}return tr}function cr(e,t){return"function"==typeof t?t(e):t}function ur(e){var t=lr(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var o=er,s=o.baseQueue,i=n.pending;if(null!==i){if(null!==s){var a=s.next;s.next=i.next,i.next=a}o.baseQueue=s=i,n.pending=null}if(null!==s){s=s.next,o=o.baseState;var l=a=i=null,c=s;do{var u=c.lane;if((Ki&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),o=c.eagerReducer===e?c.eagerState:e(o,c.action);else{var A={lane:u,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(a=l=A,i=o):l=l.next=A,$i.lanes|=u,Ra|=u}c=c.next}while(null!==c&&c!==s);null===l?i=o:l.next=a,co(o,t.memoizedState)||(Yr=!0),t.memoizedState=o,t.baseState=i,t.baseQueue=l,n.lastRenderedState=o}return[t.memoizedState,n.dispatch]}function Ar(e){var t=lr(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var o=n.dispatch,s=n.pending,i=t.memoizedState;if(null!==s){n.pending=null;var a=s=s.next;do{i=e(i,a.action),a=a.next}while(a!==s);co(i,t.memoizedState)||(Yr=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,o]}function dr(e,t,n){var o=t._getVersion;o=o(t._source);var s=t._workInProgressVersionPrimary;if(null!==s?e=s===o:(e=e.mutableReadLanes,(e=(Ki&e)===e)&&(t._workInProgressVersionPrimary=o,Vi.push(t))),e)return n(t._source);throw Vi.push(t),Error(r(350))}function pr(e,t,n,o){var s=Ea;if(null===s)throw Error(r(349));var i=t._getVersion,a=i(t._source),l=Xi.current,c=l.useState((function(){return dr(s,t,n)})),u=c[1],A=c[0];c=tr;var d=e.memoizedState,p=d.refs,M=p.getSnapshot,L=d.source;d=d.subscribe;var C=$i;return e.memoizedState={refs:p,source:t,subscribe:o},l.useEffect((function(){p.getSnapshot=n,p.setSnapshot=u;var e=i(t._source);if(!co(a,e)){e=n(t._source),co(A,e)||(u(e),e=Al(C),s.mutableReadLanes|=e&s.pendingLanes),e=s.mutableReadLanes,s.entangledLanes|=e;for(var o=s.entanglements,r=e;0<r;){var l=31-_t(r),c=1<<l;o[l]|=e,r&=~c}}}),[n,t,o]),l.useEffect((function(){return o(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var o=Al(C);s.mutableReadLanes|=o&s.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,o]),co(M,n)&&co(L,t)&&co(d,o)||((e={pending:null,dispatch:null,lastRenderedReducer:cr,lastRenderedState:A}).dispatch=u=vr.bind(null,$i,e),c.queue=e,c.baseQueue=null,A=dr(s,t,n),c.memoizedState=c.baseState=A),A}function Mr(e,t,n){return pr(lr(),e,t,n)}function Lr(e){var t=ar();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:cr,lastRenderedState:e}).dispatch=vr.bind(null,$i,e),[t.memoizedState,e]}function Cr(e,t,n,o){return e={tag:e,create:t,destroy:n,deps:o,next:null},null===(t=$i.updateQueue)?(t={lastEffect:null},$i.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(o=n.next,n.next=e,e.next=o,t.lastEffect=e),e}function hr(e){return e={current:e},ar().memoizedState=e}function gr(){return lr().memoizedState}function wr(e,t,n,o){var s=ar();$i.flags|=e,s.memoizedState=Cr(1|t,n,void 0,void 0===o?null:o)}function jr(e,t,n,o){var s=lr();o=void 0===o?null:o;var i=void 0;if(null!==er){var r=er.memoizedState;if(i=r.destroy,null!==o&&ir(o,r.deps))return void Cr(t,n,i,o)}$i.flags|=e,s.memoizedState=Cr(1|t,n,i,o)}function mr(e,t){return wr(516,4,e,t)}function br(e,t){return jr(516,4,e,t)}function yr(e,t){return jr(4,2,e,t)}function fr(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function xr(e,t,n){return n=null!=n?n.concat([e]):null,jr(4,2,fr.bind(null,t,e),n)}function Nr(){}function Sr(e,t){var n=lr();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&ir(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function Dr(e,t){var n=lr();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&ir(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)}function Ir(e,t){var n=Ws();Qs(98>n?98:n,(function(){e(!0)})),Qs(97<n?97:n,(function(){var n=qi.transition;qi.transition=1;try{e(!1),t()}finally{qi.transition=n}}))}function vr(e,t,n){var o=ul(),s=Al(e),i={lane:s,action:n,eagerReducer:null,eagerState:null,next:null},r=t.pending;if(null===r?i.next=i:(i.next=r.next,r.next=i),t.pending=i,r=e.alternate,e===$i||null!==r&&r===$i)or=nr=!0;else{if(0===e.lanes&&(null===r||0===r.lanes)&&null!==(r=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=r(a,n);if(i.eagerReducer=r,i.eagerState=l,co(l,a))return}catch(e){}dl(e,s,o)}}var Er={readContext:ri,useCallback:sr,useContext:sr,useEffect:sr,useImperativeHandle:sr,useLayoutEffect:sr,useMemo:sr,useReducer:sr,useRef:sr,useState:sr,useDebugValue:sr,useDeferredValue:sr,useTransition:sr,useMutableSource:sr,useOpaqueIdentifier:sr,unstable_isNewReconciler:!1},Tr={readContext:ri,useCallback:function(e,t){return ar().memoizedState=[e,void 0===t?null:t],e},useContext:ri,useEffect:mr,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,wr(4,2,fr.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wr(4,2,e,t)},useMemo:function(e,t){var n=ar();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=ar();return t=void 0!==n?n(t):t,o.memoizedState=o.baseState=t,e=(e=o.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=vr.bind(null,$i,e),[o.memoizedState,e]},useRef:hr,useState:Lr,useDebugValue:Nr,useDeferredValue:function(e){var t=Lr(e),n=t[0],o=t[1];return mr((function(){var t=qi.transition;qi.transition=1;try{o(e)}finally{qi.transition=t}}),[e]),n},useTransition:function(){var e=Lr(!1),t=e[0];return hr(e=Ir.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var o=ar();return o.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},pr(o,e,t,n)},useOpaqueIdentifier:function(){if(Gi){var e=!1,t=function(e){return{$$typeof:k,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Xo++).toString(36))),Error(r(355))})),n=Lr(t)[1];return!(2&$i.mode)&&($i.flags|=516,Cr(5,(function(){n("r:"+(Xo++).toString(36))}),void 0,null)),t}return Lr(t="r:"+(Xo++).toString(36)),t},unstable_isNewReconciler:!1},zr={readContext:ri,useCallback:Sr,useContext:ri,useEffect:br,useImperativeHandle:xr,useLayoutEffect:yr,useMemo:Dr,useReducer:ur,useRef:gr,useState:function(){return ur(cr)},useDebugValue:Nr,useDeferredValue:function(e){var t=ur(cr),n=t[0],o=t[1];return br((function(){var t=qi.transition;qi.transition=1;try{o(e)}finally{qi.transition=t}}),[e]),n},useTransition:function(){var e=ur(cr)[0];return[gr().current,e]},useMutableSource:Mr,useOpaqueIdentifier:function(){return ur(cr)[0]},unstable_isNewReconciler:!1},Or={readContext:ri,useCallback:Sr,useContext:ri,useEffect:br,useImperativeHandle:xr,useLayoutEffect:yr,useMemo:Dr,useReducer:Ar,useRef:gr,useState:function(){return Ar(cr)},useDebugValue:Nr,useDeferredValue:function(e){var t=Ar(cr),n=t[0],o=t[1];return br((function(){var t=qi.transition;qi.transition=1;try{o(e)}finally{qi.transition=t}}),[e]),n},useTransition:function(){var e=Ar(cr)[0];return[gr().current,e]},useMutableSource:Mr,useOpaqueIdentifier:function(){return Ar(cr)[0]},unstable_isNewReconciler:!1},kr=m.ReactCurrentOwner,Yr=!1;function Pr(e,t,n,o){t.child=null===e?Si(t,null,n,o):Ni(t,e.child,n,o)}function Br(e,t,n,o,s){n=n.render;var i=t.ref;return ii(t,s),o=rr(e,t,n,o,i,s),null===e||Yr?(t.flags|=1,Pr(e,t,o,s),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~s,oa(e,t,s))}function Rr(e,t,n,o,s,i){if(null===e){var r=n.type;return"function"!=typeof r||Gl(r)||void 0!==r.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=_l(n.type,null,o,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=r,Ur(e,t,r,o,s,i))}return r=e.child,s&i||(s=r.memoizedProps,!(n=null!==(n=n.compare)?n:Ao)(s,o)||e.ref!==t.ref)?(t.flags|=1,(e=Zl(r,o)).ref=t.ref,e.return=t,t.child=e):oa(e,t,i)}function Ur(e,t,n,o,s,i){if(null!==e&&Ao(e.memoizedProps,o)&&e.ref===t.ref){if(Yr=!1,!(i&s))return t.lanes=e.lanes,oa(e,t,i);16384&e.flags&&(Yr=!0)}return _r(e,t,n,o,i)}function Gr(e,t,n){var o=t.pendingProps,s=o.children,i=null!==e?e.memoizedState:null;if("hidden"===o.mode||"unstable-defer-without-hiding"===o.mode)if(4&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},gl(0,e),null;t.memoizedState={baseLanes:0},gl(0,null!==i?i.baseLanes:n)}else t.memoizedState={baseLanes:0},gl(0,n);else null!==i?(o=i.baseLanes|n,t.memoizedState=null):o=n,gl(0,o);return Pr(e,t,s,n),t.child}function Zr(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function _r(e,t,n,o,s){var i=hs(n)?Ls:ps.current;return i=Cs(t,i),ii(t,s),n=rr(e,t,n,o,i,s),null===e||Yr?(t.flags|=1,Pr(e,t,n,s),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~s,oa(e,t,s))}function Wr(e,t,n,o,s){if(hs(n)){var i=!0;ms(t)}else i=!1;if(ii(t,s),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),wi(t,n,o),mi(t,n,o,s),o=!0;else if(null===e){var r=t.stateNode,a=t.memoizedProps;r.props=a;var l=r.context,c=n.contextType;c="object"==typeof c&&null!==c?ri(c):Cs(t,c=hs(n)?Ls:ps.current);var u=n.getDerivedStateFromProps,A="function"==typeof u||"function"==typeof r.getSnapshotBeforeUpdate;A||"function"!=typeof r.UNSAFE_componentWillReceiveProps&&"function"!=typeof r.componentWillReceiveProps||(a!==o||l!==c)&&ji(t,r,o,c),ai=!1;var d=t.memoizedState;r.state=d,pi(t,o,r,s),l=t.memoizedState,a!==o||d!==l||Ms.current||ai?("function"==typeof u&&(Ci(t,n,u,o),l=t.memoizedState),(a=ai||gi(t,n,a,o,d,l,c))?(A||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||("function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount()),"function"==typeof r.componentDidMount&&(t.flags|=4)):("function"==typeof r.componentDidMount&&(t.flags|=4),t.memoizedProps=o,t.memoizedState=l),r.props=o,r.state=l,r.context=c,o=a):("function"==typeof r.componentDidMount&&(t.flags|=4),o=!1)}else{r=t.stateNode,ci(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:qs(t.type,a),r.props=c,A=t.pendingProps,d=r.context,l="object"==typeof(l=n.contextType)&&null!==l?ri(l):Cs(t,l=hs(n)?Ls:ps.current);var p=n.getDerivedStateFromProps;(u="function"==typeof p||"function"==typeof r.getSnapshotBeforeUpdate)||"function"!=typeof r.UNSAFE_componentWillReceiveProps&&"function"!=typeof r.componentWillReceiveProps||(a!==A||d!==l)&&ji(t,r,o,l),ai=!1,d=t.memoizedState,r.state=d,pi(t,o,r,s);var M=t.memoizedState;a!==A||d!==M||Ms.current||ai?("function"==typeof p&&(Ci(t,n,p,o),M=t.memoizedState),(c=ai||gi(t,n,c,o,d,M,l))?(u||"function"!=typeof r.UNSAFE_componentWillUpdate&&"function"!=typeof r.componentWillUpdate||("function"==typeof r.componentWillUpdate&&r.componentWillUpdate(o,M,l),"function"==typeof r.UNSAFE_componentWillUpdate&&r.UNSAFE_componentWillUpdate(o,M,l)),"function"==typeof r.componentDidUpdate&&(t.flags|=4),"function"==typeof r.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof r.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof r.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=o,t.memoizedState=M),r.props=o,r.state=M,r.context=l,o=c):("function"!=typeof r.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof r.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),o=!1)}return Hr(e,t,n,o,i,s)}function Hr(e,t,n,o,s,i){Zr(e,t);var r=!!(64&t.flags);if(!o&&!r)return s&&bs(t,n,!1),oa(e,t,i);o=t.stateNode,kr.current=t;var a=r&&"function"!=typeof n.getDerivedStateFromError?null:o.render();return t.flags|=1,null!==e&&r?(t.child=Ni(t,e.child,null,i),t.child=Ni(t,null,a,i)):Pr(e,t,a,i),t.memoizedState=o.state,s&&bs(t,n,!0),t.child}function Qr(e){var t=e.stateNode;t.pendingContext?ws(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ws(0,t.context,!1),zi(e,t.containerInfo)}var Fr,Vr,Jr,Xr,qr={dehydrated:null,retryLane:0};function Kr(e,t,n){var o,s=t.pendingProps,i=Pi.current,r=!1;return(o=!!(64&t.flags))||(o=(null===e||null!==e.memoizedState)&&!!(2&i)),o?(r=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===s.fallback||!0===s.unstable_avoidThisFallback||(i|=1),As(Pi,1&i),null===e?(void 0!==s.fallback&&Wi(t),e=s.children,i=s.fallback,r?(e=$r(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=qr,e):"number"==typeof s.unstable_expectedLoadTime?(e=$r(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=qr,t.lanes=33554432,e):((n=Hl({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,r?(s=function(e,t,n,o,s){var i=t.mode,r=e.child;e=r.sibling;var a={mode:"hidden",children:n};return 2&i||t.child===r?n=Zl(r,a):((n=t.child).childLanes=0,n.pendingProps=a,null!==(r=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=r,r.nextEffect=null):t.firstEffect=t.lastEffect=null),null!==e?o=Zl(e,o):(o=Wl(o,i,s,null)).flags|=2,o.return=t,n.return=t,n.sibling=o,t.child=n,o}(e,t,s.children,s.fallback,n),r=t.child,i=e.child.memoizedState,r.memoizedState=null===i?{baseLanes:n}:{baseLanes:i.baseLanes|n},r.childLanes=e.childLanes&~n,t.memoizedState=qr,s):(n=function(e,t,n,o){var s=e.child;return e=s.sibling,n=Zl(s,{mode:"visible",children:n}),!(2&t.mode)&&(n.lanes=o),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}(e,t,s.children,n),t.memoizedState=null,n))}function $r(e,t,n,o){var s=e.mode,i=e.child;return t={mode:"hidden",children:t},2&s||null===i?i=Hl(t,s,0,null):(i.childLanes=0,i.pendingProps=t),n=Wl(n,s,o,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n}function ea(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),si(e.return,t)}function ta(e,t,n,o,s,i){var r=e.memoizedState;null===r?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:s,lastEffect:i}:(r.isBackwards=t,r.rendering=null,r.renderingStartTime=0,r.last=o,r.tail=n,r.tailMode=s,r.lastEffect=i)}function na(e,t,n){var o=t.pendingProps,s=o.revealOrder,i=o.tail;if(Pr(e,t,o.children,n),2&(o=Pi.current))o=1&o|2,t.flags|=64;else{if(null!==e&&64&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ea(e,n);else if(19===e.tag)ea(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(As(Pi,o),2&t.mode)switch(s){case"forwards":for(n=t.child,s=null;null!==n;)null!==(e=n.alternate)&&null===Bi(e)&&(s=n),n=n.sibling;null===(n=s)?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),ta(t,!1,s,n,i,t.lastEffect);break;case"backwards":for(n=null,s=t.child,t.child=null;null!==s;){if(null!==(e=s.alternate)&&null===Bi(e)){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}ta(t,!0,n,null,i,t.lastEffect);break;case"together":ta(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function oa(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ra|=t.lanes,n&t.childLanes){if(null!==e&&t.child!==e.child)throw Error(r(153));if(null!==t.child){for(n=Zl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Zl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function sa(e,t){if(!Gi)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var o=null;null!==n;)null!==n.alternate&&(o=n),n=n.sibling;null===o?t||null===e.tail?e.tail=null:e.tail.sibling=null:o.sibling=null}}function ia(e,t,n){var o=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return hs(t.type)&&gs(),null;case 3:return Oi(),us(Ms),us(ps),Ji(),(o=t.stateNode).pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),null!==e&&null!==e.child||(Qi(t)?t.flags|=4:o.hydrate||(t.flags|=256)),Vr(t),null;case 5:Yi(t);var i=Ti(Ei.current);if(n=t.type,null!==e&&null!=t.stateNode)Jr(e,t,n,o,i),e.ref!==t.ref&&(t.flags|=128);else{if(!o){if(null===t.stateNode)throw Error(r(166));return null}if(e=Ti(Ii.current),Qi(t)){o=t.stateNode,n=t.type;var a=t.memoizedProps;switch(o[Ko]=t,o[$o]=a,n){case"dialog":vo("cancel",o),vo("close",o);break;case"iframe":case"object":case"embed":vo("load",o);break;case"video":case"audio":for(e=0;e<No.length;e++)vo(No[e],o);break;case"source":vo("error",o);break;case"img":case"image":case"link":vo("error",o),vo("load",o);break;case"details":vo("toggle",o);break;case"input":ee(o,a),vo("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!a.multiple},vo("invalid",o);break;case"textarea":le(o,a),vo("invalid",o)}for(var c in ye(n,a),e=null,a)a.hasOwnProperty(c)&&(i=a[c],"children"===c?"string"==typeof i?o.textContent!==i&&(e=["children",i]):"number"==typeof i&&o.textContent!==""+i&&(e=["children",""+i]):l.hasOwnProperty(c)&&null!=i&&"onScroll"===c&&vo("scroll",o));switch(n){case"input":X(o),oe(o,a,!0);break;case"textarea":X(o),ue(o);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(o.onclick=Uo)}o=e,t.updateQueue=o,null!==o&&(t.flags|=4)}else{switch(c=9===i.nodeType?i:i.ownerDocument,e===Ae&&(e=de(n)),e===Ae?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof o.is?e=c.createElement(n,{is:o.is}):(e=c.createElement(n),"select"===n&&(c=e,o.multiple?c.multiple=!0:o.size&&(c.size=o.size))):e=c.createElementNS(e,n),e[Ko]=t,e[$o]=o,Fr(e,t,!1,!1),t.stateNode=e,c=fe(n,o),n){case"dialog":vo("cancel",e),vo("close",e),i=o;break;case"iframe":case"object":case"embed":vo("load",e),i=o;break;case"video":case"audio":for(i=0;i<No.length;i++)vo(No[i],e);i=o;break;case"source":vo("error",e),i=o;break;case"img":case"image":case"link":vo("error",e),vo("load",e),i=o;break;case"details":vo("toggle",e),i=o;break;case"input":ee(e,o),i=$(e,o),vo("invalid",e);break;case"option":i=ie(e,o);break;case"select":e._wrapperState={wasMultiple:!!o.multiple},i=s({},o,{value:void 0}),vo("invalid",e);break;case"textarea":le(e,o),i=ae(e,o),vo("invalid",e);break;default:i=o}ye(n,i);var u=i;for(a in u)if(u.hasOwnProperty(a)){var A=u[a];"style"===a?me(e,A):"dangerouslySetInnerHTML"===a?null!=(A=A?A.__html:void 0)&&Ce(e,A):"children"===a?"string"==typeof A?("textarea"!==n||""!==A)&&he(e,A):"number"==typeof A&&he(e,""+A):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(l.hasOwnProperty(a)?null!=A&&"onScroll"===a&&vo("scroll",e):null!=A&&j(e,a,A,c))}switch(n){case"input":X(e),oe(e,o,!1);break;case"textarea":X(e),ue(e);break;case"option":null!=o.value&&e.setAttribute("value",""+V(o.value));break;case"select":e.multiple=!!o.multiple,null!=(a=o.value)?re(e,!!o.multiple,a,!1):null!=o.defaultValue&&re(e,!!o.multiple,o.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Uo)}_o(n,o)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Xr(e,t,e.memoizedProps,o);else{if("string"!=typeof o&&null===t.stateNode)throw Error(r(166));n=Ti(Ei.current),Ti(Ii.current),Qi(t)?(o=t.stateNode,n=t.memoizedProps,o[Ko]=t,o.nodeValue!==n&&(t.flags|=4)):((o=(9===n.nodeType?n:n.ownerDocument).createTextNode(o))[Ko]=t,t.stateNode=o)}return null;case 13:return us(Pi),o=t.memoizedState,64&t.flags?(t.lanes=n,t):(o=null!==o,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Qi(t):n=null!==e.memoizedState,o&&!n&&2&t.mode&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||1&Pi.current?0===Ya&&(Ya=3):(0!==Ya&&3!==Ya||(Ya=4),null===Ea||!(134217727&Ra)&&!(134217727&Ua)||Cl(Ea,za))),(o||n)&&(t.flags|=4),null);case 4:return Oi(),Vr(t),null===e&&To(t.stateNode.containerInfo),null;case 10:return oi(t),null;case 19:if(us(Pi),null===(o=t.memoizedState))return null;if(a=!!(64&t.flags),null===(c=o.rendering))if(a)sa(o,!1);else{if(0!==Ya||null!==e&&64&e.flags)for(e=t.child;null!==e;){if(null!==(c=Bi(e))){for(t.flags|=64,sa(o,!1),null!==(a=c.updateQueue)&&(t.updateQueue=a,t.flags|=4),null===o.lastEffect&&(t.firstEffect=null),t.lastEffect=o.lastEffect,o=n,n=t.child;null!==n;)e=o,(a=n).flags&=2,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null,null===(c=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=c.childLanes,a.lanes=c.lanes,a.child=c.child,a.memoizedProps=c.memoizedProps,a.memoizedState=c.memoizedState,a.updateQueue=c.updateQueue,a.type=c.type,e=c.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return As(Pi,1&Pi.current|2),t.child}e=e.sibling}null!==o.tail&&_s()>Wa&&(t.flags|=64,a=!0,sa(o,!1),t.lanes=33554432)}else{if(!a)if(null!==(e=Bi(c))){if(t.flags|=64,a=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),sa(o,!0),null===o.tail&&"hidden"===o.tailMode&&!c.alternate&&!Gi)return null!==(t=t.lastEffect=o.lastEffect)&&(t.nextEffect=null),null}else 2*_s()-o.renderingStartTime>Wa&&1073741824!==n&&(t.flags|=64,a=!0,sa(o,!1),t.lanes=33554432);o.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=o.last)?n.sibling=c:t.child=c,o.last=c)}return null!==o.tail?(n=o.tail,o.rendering=n,o.tail=n.sibling,o.lastEffect=t.lastEffect,o.renderingStartTime=_s(),n.sibling=null,t=Pi.current,As(Pi,a?1&t|2:1&t),n):null;case 23:case 24:return wl(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==o.mode&&(t.flags|=4),null}throw Error(r(156,t.tag))}function ra(e){switch(e.tag){case 1:hs(e.type)&&gs();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Oi(),us(Ms),us(ps),Ji(),64&(t=e.flags))throw Error(r(285));return e.flags=-4097&t|64,e;case 5:return Yi(e),null;case 13:return us(Pi),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return us(Pi),null;case 4:return Oi(),null;case 10:return oi(e),null;case 23:case 24:return wl(),null;default:return null}}function aa(e,t){try{var n="",o=t;do{n+=Q(o),o=o.return}while(o);var s=n}catch(e){s="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:s}}function la(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Fr=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Vr=function(){},Jr=function(e,t,n,o){var i=e.memoizedProps;if(i!==o){e=t.stateNode,Ti(Ii.current);var r,a=null;switch(n){case"input":i=$(e,i),o=$(e,o),a=[];break;case"option":i=ie(e,i),o=ie(e,o),a=[];break;case"select":i=s({},i,{value:void 0}),o=s({},o,{value:void 0}),a=[];break;case"textarea":i=ae(e,i),o=ae(e,o),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof o.onClick&&(e.onclick=Uo)}for(A in ye(n,o),n=null,i)if(!o.hasOwnProperty(A)&&i.hasOwnProperty(A)&&null!=i[A])if("style"===A){var c=i[A];for(r in c)c.hasOwnProperty(r)&&(n||(n={}),n[r]="")}else"dangerouslySetInnerHTML"!==A&&"children"!==A&&"suppressContentEditableWarning"!==A&&"suppressHydrationWarning"!==A&&"autoFocus"!==A&&(l.hasOwnProperty(A)?a||(a=[]):(a=a||[]).push(A,null));for(A in o){var u=o[A];if(c=null!=i?i[A]:void 0,o.hasOwnProperty(A)&&u!==c&&(null!=u||null!=c))if("style"===A)if(c){for(r in c)!c.hasOwnProperty(r)||u&&u.hasOwnProperty(r)||(n||(n={}),n[r]="");for(r in u)u.hasOwnProperty(r)&&c[r]!==u[r]&&(n||(n={}),n[r]=u[r])}else n||(a||(a=[]),a.push(A,n)),n=u;else"dangerouslySetInnerHTML"===A?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(a=a||[]).push(A,u)):"children"===A?"string"!=typeof u&&"number"!=typeof u||(a=a||[]).push(A,""+u):"suppressContentEditableWarning"!==A&&"suppressHydrationWarning"!==A&&(l.hasOwnProperty(A)?(null!=u&&"onScroll"===A&&vo("scroll",e),a||c===u||(a=[])):"object"==typeof u&&null!==u&&u.$$typeof===k?u.toString():(a=a||[]).push(A,u))}n&&(a=a||[]).push("style",n);var A=a;(t.updateQueue=A)&&(t.flags|=4)}},Xr=function(e,t,n,o){n!==o&&(t.flags|=4)};var ca="function"==typeof WeakMap?WeakMap:Map;function ua(e,t,n){(n=ui(-1,n)).tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){Va||(Va=!0,Ja=o),la(0,t)},n}function Aa(e,t,n){(n=ui(-1,n)).tag=3;var o=e.type.getDerivedStateFromError;if("function"==typeof o){var s=t.value;n.payload=function(){return la(0,t),o(s)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof o&&(null===Xa?Xa=new Set([this]):Xa.add(this),la(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var da="function"==typeof WeakSet?WeakSet:Set;function pa(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Yl(e,t)}else t.current=null}function Ma(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,o=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:qs(t.type,n),o),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Fo(t.stateNode.containerInfo))}throw Error(r(163))}function La(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(!(3&~e.tag)){var o=e.create;e.destroy=o()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var s=e;o=s.next,4&(s=s.tag)&&1&s&&(zl(n,e),Tl(n,e)),e=o}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(o=n.elementType===n.type?t.memoizedProps:qs(n.type,t.memoizedProps),e.componentDidUpdate(o,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&Mi(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}Mi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&_o(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&mt(n)))))}throw Error(r(163))}function Ca(e,t){for(var n=e;;){if(5===n.tag){var o=n.stateNode;if(t)"function"==typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none";else{o=n.stateNode;var s=n.memoizedProps.style;s=null!=s&&s.hasOwnProperty("display")?s.display:null,o.style.display=je("display",s)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function ha(e,t){if(fs&&"function"==typeof fs.onCommitFiberUnmount)try{fs.onCommitFiberUnmount(ys,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var o=n,s=o.destroy;if(o=o.tag,void 0!==s)if(4&o)zl(t,n);else{o=t;try{s()}catch(e){Yl(o,e)}}n=n.next}while(n!==e)}break;case 1:if(pa(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Yl(t,e)}break;case 5:pa(t);break;case 4:ya(e,t)}}function ga(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function wa(e){return 5===e.tag||3===e.tag||4===e.tag}function ja(e){e:{for(var t=e.return;null!==t;){if(wa(t))break e;t=t.return}throw Error(r(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var o=!1;break;case 3:case 4:t=t.containerInfo,o=!0;break;default:throw Error(r(161))}16&n.flags&&(he(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||wa(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}o?ma(e,n,t):ba(e,n,t)}function ma(e,t,n){var o=e.tag,s=5===o||6===o;if(s)e=s?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Uo));else if(4!==o&&null!==(e=e.child))for(ma(e,t,n),e=e.sibling;null!==e;)ma(e,t,n),e=e.sibling}function ba(e,t,n){var o=e.tag,s=5===o||6===o;if(s)e=s?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==o&&null!==(e=e.child))for(ba(e,t,n),e=e.sibling;null!==e;)ba(e,t,n),e=e.sibling}function ya(e,t){for(var n,o,s=t,i=!1;;){if(!i){i=s.return;e:for(;;){if(null===i)throw Error(r(160));switch(n=i.stateNode,i.tag){case 5:o=!1;break e;case 3:case 4:n=n.containerInfo,o=!0;break e}i=i.return}i=!0}if(5===s.tag||6===s.tag){e:for(var a=e,l=s,c=l;;)if(ha(a,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===l)break e;for(;null===c.sibling;){if(null===c.return||c.return===l)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}o?(a=n,l=s.stateNode,8===a.nodeType?a.parentNode.removeChild(l):a.removeChild(l)):n.removeChild(s.stateNode)}else if(4===s.tag){if(null!==s.child){n=s.stateNode.containerInfo,o=!0,s.child.return=s,s=s.child;continue}}else if(ha(e,s),null!==s.child){s.child.return=s,s=s.child;continue}if(s===t)break;for(;null===s.sibling;){if(null===s.return||s.return===t)return;4===(s=s.return).tag&&(i=!1)}s.sibling.return=s.return,s=s.sibling}}function fa(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var o=n=n.next;do{!(3&~o.tag)&&(e=o.destroy,o.destroy=void 0,void 0!==e&&e()),o=o.next}while(o!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){o=t.memoizedProps;var s=null!==e?e.memoizedProps:o;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[$o]=o,"input"===e&&"radio"===o.type&&null!=o.name&&te(n,o),fe(e,s),t=fe(e,o),s=0;s<i.length;s+=2){var a=i[s],l=i[s+1];"style"===a?me(n,l):"dangerouslySetInnerHTML"===a?Ce(n,l):"children"===a?he(n,l):j(n,a,l,t)}switch(e){case"input":ne(n,o);break;case"textarea":ce(n,o);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!o.multiple,null!=(i=o.value)?re(n,!!o.multiple,i,!1):e!==!!o.multiple&&(null!=o.defaultValue?re(n,!!o.multiple,o.defaultValue,!0):re(n,!!o.multiple,o.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(r(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,mt(n.containerInfo)));case 13:return null!==t.memoizedState&&(_a=_s(),Ca(t.child,!0)),void xa(t);case 19:return void xa(t);case 23:case 24:return void Ca(t,null!==t.memoizedState)}throw Error(r(163))}function xa(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new da),t.forEach((function(t){var o=Bl.bind(null,e,t);n.has(t)||(n.add(t),t.then(o,o))}))}}function Na(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&null!==(t=t.memoizedState)&&null===t.dehydrated}var Sa=Math.ceil,Da=m.ReactCurrentDispatcher,Ia=m.ReactCurrentOwner,va=0,Ea=null,Ta=null,za=0,Oa=0,ka=cs(0),Ya=0,Pa=null,Ba=0,Ra=0,Ua=0,Ga=0,Za=null,_a=0,Wa=1/0;function Ha(){Wa=_s()+500}var Qa,Fa=null,Va=!1,Ja=null,Xa=null,qa=!1,Ka=null,$a=90,el=[],tl=[],nl=null,ol=0,sl=null,il=-1,rl=0,al=0,ll=null,cl=!1;function ul(){return 48&va?_s():-1!==il?il:il=_s()}function Al(e){if(!(2&(e=e.mode)))return 1;if(!(4&e))return 99===Ws()?1:2;if(0===rl&&(rl=Ba),0!==Xs.transition){0!==al&&(al=null!==Za?Za.pendingLanes:0),e=rl;var t=4186112&~al;return 0==(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=Ws(),e=Rt(4&va&&98===e?12:e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),rl)}function dl(e,t,n){if(50<ol)throw ol=0,sl=null,Error(r(185));if(null===(e=pl(e,t)))return null;Zt(e,t,n),e===Ea&&(Ua|=t,4===Ya&&Cl(e,za));var o=Ws();1===t?8&va&&!(48&va)?hl(e):(Ml(e,n),0===va&&(Ha(),Vs())):(!(4&va)||98!==o&&99!==o||(null===nl?nl=new Set([e]):nl.add(e)),Ml(e,n)),Za=e}function pl(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function Ml(e,t){for(var n=e.callbackNode,o=e.suspendedLanes,s=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var l=31-_t(a),c=1<<l,u=i[l];if(-1===u){if(!(c&o)||c&s){u=t,Yt(c);var A=kt;i[l]=10<=A?u+250:6<=A?u+5e3:-1}}else u<=t&&(e.expiredLanes|=c);a&=~c}if(o=Pt(e,e===Ea?za:0),t=kt,0===o)null!==n&&(n!==Ps&&Ss(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Ps&&Ss(n)}15===t?(n=hl.bind(null,e),null===Rs?(Rs=[n],Us=Ns(Ts,Js)):Rs.push(n),n=Ps):14===t?n=Fs(99,hl.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(r(358,e))}}(t),n=Fs(n,Ll.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function Ll(e){if(il=-1,al=rl=0,48&va)throw Error(r(327));var t=e.callbackNode;if(El()&&e.callbackNode!==t)return null;var n=Pt(e,e===Ea?za:0);if(0===n)return null;var o=n,s=va;va|=16;var i=bl();for(Ea===e&&za===o||(Ha(),jl(e,o));;)try{xl();break}catch(t){ml(e,t)}if(ni(),Da.current=i,va=s,null!==Ta?o=0:(Ea=null,za=0,o=Ya),Ba&Ua)jl(e,0);else if(0!==o){if(2===o&&(va|=64,e.hydrate&&(e.hydrate=!1,Fo(e.containerInfo)),0!==(n=Bt(e))&&(o=yl(e,n))),1===o)throw t=Pa,jl(e,0),Cl(e,n),Ml(e,_s()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,o){case 0:case 1:throw Error(r(345));case 2:case 5:Dl(e);break;case 3:if(Cl(e,n),(62914560&n)===n&&10<(o=_a+500-_s())){if(0!==Pt(e,0))break;if(((s=e.suspendedLanes)&n)!==n){ul(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Ho(Dl.bind(null,e),o);break}Dl(e);break;case 4:if(Cl(e,n),(4186112&n)===n)break;for(o=e.eventTimes,s=-1;0<n;){var a=31-_t(n);i=1<<a,(a=o[a])>s&&(s=a),n&=~i}if(n=s,10<(n=(120>(n=_s()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Sa(n/1960))-n)){e.timeoutHandle=Ho(Dl.bind(null,e),n);break}Dl(e);break;default:throw Error(r(329))}}return Ml(e,_s()),e.callbackNode===t?Ll.bind(null,e):null}function Cl(e,t){for(t&=~Ga,t&=~Ua,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-_t(t),o=1<<n;e[n]=-1,t&=~o}}function hl(e){if(48&va)throw Error(r(327));if(El(),e===Ea&&e.expiredLanes&za){var t=za,n=yl(e,t);Ba&Ua&&(n=yl(e,t=Pt(e,t)))}else n=yl(e,t=Pt(e,0));if(0!==e.tag&&2===n&&(va|=64,e.hydrate&&(e.hydrate=!1,Fo(e.containerInfo)),0!==(t=Bt(e))&&(n=yl(e,t))),1===n)throw n=Pa,jl(e,0),Cl(e,t),Ml(e,_s()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Dl(e),Ml(e,_s()),null}function gl(e,t){As(ka,Oa),Oa|=t,Ba|=t}function wl(){Oa=ka.current,us(ka)}function jl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Qo(n)),null!==Ta)for(n=Ta.return;null!==n;){var o=n;switch(o.tag){case 1:null!=(o=o.type.childContextTypes)&&gs();break;case 3:Oi(),us(Ms),us(ps),Ji();break;case 5:Yi(o);break;case 4:Oi();break;case 13:case 19:us(Pi);break;case 10:oi(o);break;case 23:case 24:wl()}n=n.return}Ea=e,Ta=Zl(e.current,null),za=Oa=Ba=t,Ya=0,Pa=null,Ga=Ua=Ra=0}function ml(e,t){for(;;){var n=Ta;try{if(ni(),Xi.current=Er,nr){for(var o=$i.memoizedState;null!==o;){var s=o.queue;null!==s&&(s.pending=null),o=o.next}nr=!1}if(Ki=0,tr=er=$i=null,or=!1,Ia.current=null,null===n||null===n.return){Ya=1,Pa=t,Ta=null;break}e:{var i=e,r=n.return,a=n,l=t;if(t=za,a.flags|=2048,a.firstEffect=a.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l;if(!(2&a.mode)){var u=a.alternate;u?(a.updateQueue=u.updateQueue,a.memoizedState=u.memoizedState,a.lanes=u.lanes):(a.updateQueue=null,a.memoizedState=null)}var A=!!(1&Pi.current),d=r;do{var p;if(p=13===d.tag){var M=d.memoizedState;if(null!==M)p=null!==M.dehydrated;else{var L=d.memoizedProps;p=void 0!==L.fallback&&(!0!==L.unstable_avoidThisFallback||!A)}}if(p){var C=d.updateQueue;if(null===C){var h=new Set;h.add(c),d.updateQueue=h}else C.add(c);if(!(2&d.mode)){if(d.flags|=64,a.flags|=16384,a.flags&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var g=ui(-1,1);g.tag=2,Ai(a,g)}a.lanes|=1;break e}l=void 0,a=t;var w=i.pingCache;if(null===w?(w=i.pingCache=new ca,l=new Set,w.set(c,l)):void 0===(l=w.get(c))&&(l=new Set,w.set(c,l)),!l.has(a)){l.add(a);var j=Pl.bind(null,i,c,a);c.then(j,j)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);l=Error((F(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Ya&&(Ya=2),l=aa(l,a),d=r;do{switch(d.tag){case 3:i=l,d.flags|=4096,t&=-t,d.lanes|=t,di(d,ua(0,i,t));break e;case 1:i=l;var m=d.type,b=d.stateNode;if(!(64&d.flags||"function"!=typeof m.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Xa&&Xa.has(b)))){d.flags|=4096,t&=-t,d.lanes|=t,di(d,Aa(d,i,t));break e}}d=d.return}while(null!==d)}Sl(n)}catch(e){t=e,Ta===n&&null!==n&&(Ta=n=n.return);continue}break}}function bl(){var e=Da.current;return Da.current=Er,null===e?Er:e}function yl(e,t){var n=va;va|=16;var o=bl();for(Ea===e&&za===t||jl(e,t);;)try{fl();break}catch(t){ml(e,t)}if(ni(),va=n,Da.current=o,null!==Ta)throw Error(r(261));return Ea=null,za=0,Ya}function fl(){for(;null!==Ta;)Nl(Ta)}function xl(){for(;null!==Ta&&!Ds();)Nl(Ta)}function Nl(e){var t=Qa(e.alternate,e,Oa);e.memoizedProps=e.pendingProps,null===t?Sl(e):Ta=t,Ia.current=null}function Sl(e){var t=e;do{var n=t.alternate;if(e=t.return,2048&t.flags){if(null!==(n=ra(t)))return n.flags&=2047,void(Ta=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(null!==(n=ia(n,t,Oa)))return void(Ta=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||1073741824&Oa||!(4&n.mode)){for(var o=0,s=n.child;null!==s;)o|=s.lanes|s.childLanes,s=s.sibling;n.childLanes=o}null!==e&&!(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}if(null!==(t=t.sibling))return void(Ta=t);Ta=t=e}while(null!==t);0===Ya&&(Ya=5)}function Dl(e){var t=Ws();return Qs(99,Il.bind(null,e,t)),null}function Il(e,t){do{El()}while(null!==Ka);if(48&va)throw Error(r(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(r(177));e.callbackNode=null;var o=n.lanes|n.childLanes,s=o,i=e.pendingLanes&~s;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=s,e.mutableReadLanes&=s,e.entangledLanes&=s,s=e.entanglements;for(var a=e.eventTimes,l=e.expirationTimes;0<i;){var c=31-_t(i),u=1<<c;s[c]=0,a[c]=-1,l[c]=-1,i&=~u}if(null!==nl&&!(24&o)&&nl.has(e)&&nl.delete(e),e===Ea&&(Ta=Ea=null,za=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,null!==o){if(s=va,va|=32,Ia.current=null,Go=Vt,ho(a=Co())){if("selectionStart"in a)l={start:a.selectionStart,end:a.selectionEnd};else e:if(l=(l=a.ownerDocument)&&l.defaultView||window,(u=l.getSelection&&l.getSelection())&&0!==u.rangeCount){l=u.anchorNode,i=u.anchorOffset,c=u.focusNode,u=u.focusOffset;try{l.nodeType,c.nodeType}catch(e){l=null;break e}var A=0,d=-1,p=-1,M=0,L=0,C=a,h=null;t:for(;;){for(var g;C!==l||0!==i&&3!==C.nodeType||(d=A+i),C!==c||0!==u&&3!==C.nodeType||(p=A+u),3===C.nodeType&&(A+=C.nodeValue.length),null!==(g=C.firstChild);)h=C,C=g;for(;;){if(C===a)break t;if(h===l&&++M===i&&(d=A),h===c&&++L===u&&(p=A),null!==(g=C.nextSibling))break;h=(C=h).parentNode}C=g}l=-1===d||-1===p?null:{start:d,end:p}}else l=null;l=l||{start:0,end:0}}else l=null;Zo={focusedElem:a,selectionRange:l},Vt=!1,ll=null,cl=!1,Fa=o;do{try{vl()}catch(e){if(null===Fa)throw Error(r(330));Yl(Fa,e),Fa=Fa.nextEffect}}while(null!==Fa);ll=null,Fa=o;do{try{for(a=e;null!==Fa;){var w=Fa.flags;if(16&w&&he(Fa.stateNode,""),128&w){var j=Fa.alternate;if(null!==j){var m=j.ref;null!==m&&("function"==typeof m?m(null):m.current=null)}}switch(1038&w){case 2:ja(Fa),Fa.flags&=-3;break;case 6:ja(Fa),Fa.flags&=-3,fa(Fa.alternate,Fa);break;case 1024:Fa.flags&=-1025;break;case 1028:Fa.flags&=-1025,fa(Fa.alternate,Fa);break;case 4:fa(Fa.alternate,Fa);break;case 8:ya(a,l=Fa);var b=l.alternate;ga(l),null!==b&&ga(b)}Fa=Fa.nextEffect}}catch(e){if(null===Fa)throw Error(r(330));Yl(Fa,e),Fa=Fa.nextEffect}}while(null!==Fa);if(m=Zo,j=Co(),w=m.focusedElem,a=m.selectionRange,j!==w&&w&&w.ownerDocument&&Lo(w.ownerDocument.documentElement,w)){null!==a&&ho(w)&&(j=a.start,void 0===(m=a.end)&&(m=j),"selectionStart"in w?(w.selectionStart=j,w.selectionEnd=Math.min(m,w.value.length)):(m=(j=w.ownerDocument||document)&&j.defaultView||window).getSelection&&(m=m.getSelection(),l=w.textContent.length,b=Math.min(a.start,l),a=void 0===a.end?b:Math.min(a.end,l),!m.extend&&b>a&&(l=a,a=b,b=l),l=Mo(w,b),i=Mo(w,a),l&&i&&(1!==m.rangeCount||m.anchorNode!==l.node||m.anchorOffset!==l.offset||m.focusNode!==i.node||m.focusOffset!==i.offset)&&((j=j.createRange()).setStart(l.node,l.offset),m.removeAllRanges(),b>a?(m.addRange(j),m.extend(i.node,i.offset)):(j.setEnd(i.node,i.offset),m.addRange(j))))),j=[];for(m=w;m=m.parentNode;)1===m.nodeType&&j.push({element:m,left:m.scrollLeft,top:m.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w<j.length;w++)(m=j[w]).element.scrollLeft=m.left,m.element.scrollTop=m.top}Vt=!!Go,Zo=Go=null,e.current=n,Fa=o;do{try{for(w=e;null!==Fa;){var y=Fa.flags;if(36&y&&La(w,Fa.alternate,Fa),128&y){j=void 0;var f=Fa.ref;if(null!==f){var x=Fa.stateNode;Fa.tag,j=x,"function"==typeof f?f(j):f.current=j}}Fa=Fa.nextEffect}}catch(e){if(null===Fa)throw Error(r(330));Yl(Fa,e),Fa=Fa.nextEffect}}while(null!==Fa);Fa=null,Bs(),va=s}else e.current=n;if(qa)qa=!1,Ka=e,$a=t;else for(Fa=o;null!==Fa;)t=Fa.nextEffect,Fa.nextEffect=null,8&Fa.flags&&((y=Fa).sibling=null,y.stateNode=null),Fa=t;if(0===(o=e.pendingLanes)&&(Xa=null),1===o?e===sl?ol++:(ol=0,sl=e):ol=0,n=n.stateNode,fs&&"function"==typeof fs.onCommitFiberRoot)try{fs.onCommitFiberRoot(ys,n,void 0,!(64&~n.current.flags))}catch(e){}if(Ml(e,_s()),Va)throw Va=!1,e=Ja,Ja=null,e;return 8&va||Vs(),null}function vl(){for(;null!==Fa;){var e=Fa.alternate;cl||null===ll||(8&Fa.flags?$e(Fa,ll)&&(cl=!0):13===Fa.tag&&Na(e,Fa)&&$e(Fa,ll)&&(cl=!0));var t=Fa.flags;256&t&&Ma(e,Fa),!(512&t)||qa||(qa=!0,Fs(97,(function(){return El(),null}))),Fa=Fa.nextEffect}}function El(){if(90!==$a){var e=97<$a?97:$a;return $a=90,Qs(e,Ol)}return!1}function Tl(e,t){el.push(t,e),qa||(qa=!0,Fs(97,(function(){return El(),null})))}function zl(e,t){tl.push(t,e),qa||(qa=!0,Fs(97,(function(){return El(),null})))}function Ol(){if(null===Ka)return!1;var e=Ka;if(Ka=null,48&va)throw Error(r(331));var t=va;va|=32;var n=tl;tl=[];for(var o=0;o<n.length;o+=2){var s=n[o],i=n[o+1],a=s.destroy;if(s.destroy=void 0,"function"==typeof a)try{a()}catch(e){if(null===i)throw Error(r(330));Yl(i,e)}}for(n=el,el=[],o=0;o<n.length;o+=2){s=n[o],i=n[o+1];try{var l=s.create;s.destroy=l()}catch(e){if(null===i)throw Error(r(330));Yl(i,e)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return va=t,Vs(),!0}function kl(e,t,n){Ai(e,t=ua(0,t=aa(n,t),1)),t=ul(),null!==(e=pl(e,1))&&(Zt(e,1,t),Ml(e,t))}function Yl(e,t){if(3===e.tag)kl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){kl(n,e,t);break}if(1===n.tag){var o=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof o.componentDidCatch&&(null===Xa||!Xa.has(o))){var s=Aa(n,e=aa(t,e),1);if(Ai(n,s),s=ul(),null!==(n=pl(n,1)))Zt(n,1,s),Ml(n,s);else if("function"==typeof o.componentDidCatch&&(null===Xa||!Xa.has(o)))try{o.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Pl(e,t,n){var o=e.pingCache;null!==o&&o.delete(t),t=ul(),e.pingedLanes|=e.suspendedLanes&n,Ea===e&&(za&n)===n&&(4===Ya||3===Ya&&(62914560&za)===za&&500>_s()-_a?jl(e,0):Ga|=n),Ml(e,t)}function Bl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(2&(t=e.mode)?4&t?(0===rl&&(rl=Ba),0===(t=Ut(62914560&~rl))&&(t=4194304)):t=99===Ws()?1:2:t=1),n=ul(),null!==(e=pl(e,t))&&(Zt(e,t,n),Ml(e,n))}function Rl(e,t,n,o){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Ul(e,t,n,o){return new Rl(e,t,n,o)}function Gl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Zl(e,t){var n=e.alternate;return null===n?((n=Ul(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function _l(e,t,n,o,s,i){var a=2;if(o=e,"function"==typeof e)Gl(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case f:return Wl(n.children,s,i,t);case Y:a=8,s|=16;break;case x:a=8,s|=1;break;case N:return(e=Ul(12,n,t,8|s)).elementType=N,e.type=N,e.lanes=i,e;case v:return(e=Ul(13,n,t,s)).type=v,e.elementType=v,e.lanes=i,e;case E:return(e=Ul(19,n,t,s)).elementType=E,e.lanes=i,e;case P:return Hl(n,s,i,t);case B:return(e=Ul(24,n,t,s)).elementType=B,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case S:a=10;break e;case D:a=9;break e;case I:a=11;break e;case T:a=14;break e;case z:a=16,o=null;break e;case O:a=22;break e}throw Error(r(130,null==e?e:typeof e,""))}return(t=Ul(a,n,t,s)).elementType=e,t.type=o,t.lanes=i,t}function Wl(e,t,n,o){return(e=Ul(7,e,o,t)).lanes=n,e}function Hl(e,t,n,o){return(e=Ul(23,e,o,t)).elementType=P,e.lanes=n,e}function Ql(e,t,n){return(e=Ul(6,e,null,t)).lanes=n,e}function Fl(e,t,n){return(t=Ul(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vl(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Gt(0),this.expirationTimes=Gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gt(0),this.mutableSourceEagerHydrationData=null}function Jl(e,t,n,o){var s=t.current,i=ul(),a=Al(s);e:if(n){t:{if(Je(n=n._reactInternals)!==n||1!==n.tag)throw Error(r(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(hs(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(r(171))}if(1===n.tag){var c=n.type;if(hs(c)){n=js(n,c,l);break e}}n=l}else n=ds;return null===t.context?t.context=n:t.pendingContext=n,(t=ui(i,a)).payload={element:e},null!==(o=void 0===o?null:o)&&(t.callback=o),Ai(s,t),dl(s,a,i),a}function Xl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function ql(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Kl(e,t){ql(e,t),(e=e.alternate)&&ql(e,t)}function $l(e,t,n){var o=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Vl(e,t,null!=n&&!0===n.hydrate),t=Ul(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,li(t),e[es]=n.current,To(8===e.nodeType?e.parentNode:e),o)for(e=0;e<o.length;e++){var s=(t=o[e])._getVersion;s=s(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,s]:n.mutableSourceEagerHydrationData.push(t,s)}this._internalRoot=n}function ec(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function tc(e,t,n,o,s){var i=n._reactRootContainer;if(i){var r=i._internalRoot;if("function"==typeof s){var a=s;s=function(){var e=Xl(r);a.call(e)}}Jl(t,r,e,s)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new $l(e,0,t?{hydrate:!0}:void 0)}(n,o),r=i._internalRoot,"function"==typeof s){var l=s;s=function(){var e=Xl(r);l.call(e)}}!function(e,t){var n=va;va&=-2,va|=8;try{return e(t)}finally{0===(va=n)&&(Ha(),Vs())}}((function(){Jl(t,r,e,s)}))}return Xl(r)}Qa=function(e,t,n){var o=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||Ms.current)Yr=!0;else{if(!(n&o)){switch(Yr=!1,t.tag){case 3:Qr(t),Fi();break;case 5:ki(t);break;case 1:hs(t.type)&&ms(t);break;case 4:zi(t,t.stateNode.containerInfo);break;case 10:o=t.memoizedProps.value;var s=t.type._context;As(Ks,s._currentValue),s._currentValue=o;break;case 13:if(null!==t.memoizedState)return n&t.child.childLanes?Kr(e,t,n):(As(Pi,1&Pi.current),null!==(t=oa(e,t,n))?t.sibling:null);As(Pi,1&Pi.current);break;case 19:if(o=!!(n&t.childLanes),64&e.flags){if(o)return na(e,t,n);t.flags|=64}if(null!==(s=t.memoizedState)&&(s.rendering=null,s.tail=null,s.lastEffect=null),As(Pi,Pi.current),o)break;return null;case 23:case 24:return t.lanes=0,Gr(e,t,n)}return oa(e,t,n)}Yr=!!(16384&e.flags)}else Yr=!1;switch(t.lanes=0,t.tag){case 2:if(o=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,s=Cs(t,ps.current),ii(t,n),s=rr(null,t,o,e,s,n),t.flags|=1,"object"==typeof s&&null!==s&&"function"==typeof s.render&&void 0===s.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,hs(o)){var i=!0;ms(t)}else i=!1;t.memoizedState=null!==s.state&&void 0!==s.state?s.state:null,li(t);var a=o.getDerivedStateFromProps;"function"==typeof a&&Ci(t,o,a,e),s.updater=hi,t.stateNode=s,s._reactInternals=t,mi(t,o,e,n),t=Hr(null,t,o,!0,i,n)}else t.tag=0,Pr(null,t,s,n),t=t.child;return t;case 16:s=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,s=(i=s._init)(s._payload),t.type=s,i=t.tag=function(e){if("function"==typeof e)return Gl(e)?1:0;if(null!=e){if((e=e.$$typeof)===I)return 11;if(e===T)return 14}return 2}(s),e=qs(s,e),i){case 0:t=_r(null,t,s,e,n);break e;case 1:t=Wr(null,t,s,e,n);break e;case 11:t=Br(null,t,s,e,n);break e;case 14:t=Rr(null,t,s,qs(s.type,e),o,n);break e}throw Error(r(306,s,""))}return t;case 0:return o=t.type,s=t.pendingProps,_r(e,t,o,s=t.elementType===o?s:qs(o,s),n);case 1:return o=t.type,s=t.pendingProps,Wr(e,t,o,s=t.elementType===o?s:qs(o,s),n);case 3:if(Qr(t),o=t.updateQueue,null===e||null===o)throw Error(r(282));if(o=t.pendingProps,s=null!==(s=t.memoizedState)?s.element:null,ci(e,t),pi(t,o,null,n),(o=t.memoizedState.element)===s)Fi(),t=oa(e,t,n);else{if((i=(s=t.stateNode).hydrate)&&(Ui=Vo(t.stateNode.containerInfo.firstChild),Ri=t,i=Gi=!0),i){if(null!=(e=s.mutableSourceEagerHydrationData))for(s=0;s<e.length;s+=2)(i=e[s])._workInProgressVersionPrimary=e[s+1],Vi.push(i);for(n=Si(t,null,o,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Pr(e,t,o,n),Fi();t=t.child}return t;case 5:return ki(t),null===e&&Wi(t),o=t.type,s=t.pendingProps,i=null!==e?e.memoizedProps:null,a=s.children,Wo(o,s)?a=null:null!==i&&Wo(o,i)&&(t.flags|=16),Zr(e,t),Pr(e,t,a,n),t.child;case 6:return null===e&&Wi(t),null;case 13:return Kr(e,t,n);case 4:return zi(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=Ni(t,null,o,n):Pr(e,t,o,n),t.child;case 11:return o=t.type,s=t.pendingProps,Br(e,t,o,s=t.elementType===o?s:qs(o,s),n);case 7:return Pr(e,t,t.pendingProps,n),t.child;case 8:case 12:return Pr(e,t,t.pendingProps.children,n),t.child;case 10:e:{o=t.type._context,s=t.pendingProps,a=t.memoizedProps,i=s.value;var l=t.type._context;if(As(Ks,l._currentValue),l._currentValue=i,null!==a)if(l=a.value,0==(i=co(l,i)?0:0|("function"==typeof o._calculateChangedBits?o._calculateChangedBits(l,i):1073741823))){if(a.children===s.children&&!Ms.current){t=oa(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){a=l.child;for(var u=c.firstContext;null!==u;){if(u.context===o&&u.observedBits&i){1===l.tag&&((u=ui(-1,n&-n)).tag=2,Ai(l,u)),l.lanes|=n,null!==(u=l.alternate)&&(u.lanes|=n),si(l.return,n),c.lanes|=n;break}u=u.next}}else a=10===l.tag&&l.type===t.type?null:l.child;if(null!==a)a.return=l;else for(a=l;null!==a;){if(a===t){a=null;break}if(null!==(l=a.sibling)){l.return=a.return,a=l;break}a=a.return}l=a}Pr(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,o=(i=t.pendingProps).children,ii(t,n),o=o(s=ri(s,i.unstable_observedBits)),t.flags|=1,Pr(e,t,o,n),t.child;case 14:return i=qs(s=t.type,t.pendingProps),Rr(e,t,s,i=qs(s.type,i),o,n);case 15:return Ur(e,t,t.type,t.pendingProps,o,n);case 17:return o=t.type,s=t.pendingProps,s=t.elementType===o?s:qs(o,s),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,hs(o)?(e=!0,ms(t)):e=!1,ii(t,n),wi(t,o,s),mi(t,o,s,n),Hr(null,t,o,!0,e,n);case 19:return na(e,t,n);case 23:case 24:return Gr(e,t,n)}throw Error(r(156,t.tag))},$l.prototype.render=function(e){Jl(e,this._internalRoot,null,null)},$l.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Jl(null,e,null,(function(){t[es]=null}))},et=function(e){13===e.tag&&(dl(e,4,ul()),Kl(e,4))},tt=function(e){13===e.tag&&(dl(e,67108864,ul()),Kl(e,67108864))},nt=function(e){if(13===e.tag){var t=ul(),n=Al(e);dl(e,n,t),Kl(e,n)}},ot=function(e,t){return t()},Ne=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var s=is(o);if(!s)throw Error(r(90));q(o),ne(o,s)}}}break;case"textarea":ce(e,n);break;case"select":null!=(t=n.value)&&re(e,!!n.multiple,t,!1)}},Te=function(e,t){var n=va;va|=1;try{return e(t)}finally{0===(va=n)&&(Ha(),Vs())}},ze=function(e,t,n,o,s){var i=va;va|=4;try{return Qs(98,e.bind(null,t,n,o,s))}finally{0===(va=i)&&(Ha(),Vs())}},Oe=function(){!(49&va)&&(function(){if(null!==nl){var e=nl;nl=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,Ml(e,_s())}))}Vs()}(),El())},ke=function(e,t){var n=va;va|=2;try{return e(t)}finally{0===(va=n)&&(Ha(),Vs())}};var nc={findFiberByHostInstance:ns,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},oc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:m.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ke(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var sc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!sc.isDisabled&&sc.supportsFiber)try{ys=sc.inject(oc),fs=sc}catch(Le){}}t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ec(t))throw Error(r(200));return function(e,t,n){var o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:y,key:null==o?null:""+o,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(r(188));throw Error(r(268,Object.keys(e)))}return null===(e=Ke(t))?null:e.stateNode},t.render=function(e,t,n){if(!ec(t))throw Error(r(200));return tc(null,e,t,!1,n)}},665:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(903)},924:(e,t,n)=>{"use strict";n(772);var o=n(460),s=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;s=i("react.element"),t.Fragment=i("react.fragment")}var r=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var o,i={},c=null,u=null;for(o in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,o)&&!l.hasOwnProperty(o)&&(i[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===i[o]&&(i[o]=t[o]);return{$$typeof:s,type:e,key:c,ref:u,props:i,_owner:r.current}}t.jsx=c,t.jsxs=c},351:(e,t,n)=>{"use strict";var o=n(772),s=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var r=60109,a=60110,l=60112;t.Suspense=60113;var c=60115,u=60116;if("function"==typeof Symbol&&Symbol.for){var A=Symbol.for;s=A("react.element"),i=A("react.portal"),t.Fragment=A("react.fragment"),t.StrictMode=A("react.strict_mode"),t.Profiler=A("react.profiler"),r=A("react.provider"),a=A("react.context"),l=A("react.forward_ref"),t.Suspense=A("react.suspense"),c=A("react.memo"),u=A("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var M={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L={};function C(e,t,n){this.props=e,this.context=t,this.refs=L,this.updater=n||M}function h(){}function g(e,t,n){this.props=e,this.context=t,this.refs=L,this.updater=n||M}C.prototype.isReactComponent={},C.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},C.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},h.prototype=C.prototype;var w=g.prototype=new h;w.constructor=g,o(w,C.prototype),w.isPureReactComponent=!0;var j={current:null},m=Object.prototype.hasOwnProperty,b={key:!0,ref:!0,__self:!0,__source:!0};function y(e,t,n){var o,i={},r=null,a=null;if(null!=t)for(o in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(r=""+t.key),t)m.call(t,o)&&!b.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:s,type:e,key:r,ref:a,props:i,_owner:j.current}}function f(e){return"object"==typeof e&&null!==e&&e.$$typeof===s}var x=/\/+/g;function N(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function S(e,t,n,o,r){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l=!1;if(null===e)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case s:case i:l=!0}}if(l)return r=r(l=e),e=""===o?"."+N(l,0):o,Array.isArray(r)?(n="",null!=e&&(n=e.replace(x,"$&/")+"/"),S(r,t,n,"",(function(e){return e}))):null!=r&&(f(r)&&(r=function(e,t){return{$$typeof:s,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(r,n+(!r.key||l&&l.key===r.key?"":(""+r.key).replace(x,"$&/")+"/")+e)),t.push(r)),1;if(l=0,o=""===o?".":o+":",Array.isArray(e))for(var c=0;c<e.length;c++){var u=o+N(a=e[c],c);l+=S(a,t,n,u,r)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(a=e.next()).done;)l+=S(a=a.value,t,n,u=o+N(a,c++),r);else if("object"===a)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function D(e,t,n){if(null==e)return e;var o=[],s=0;return S(e,o,"","",(function(e){return t.call(n,e,s++)})),o}function I(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var v={current:null};function E(){var e=v.current;if(null===e)throw Error(p(321));return e}var T={ReactCurrentDispatcher:v,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:j,IsSomeRendererActing:{current:!1},assign:o};t.Children={map:D,forEach:function(e,t,n){D(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return D(e,(function(){t++})),t},toArray:function(e){return D(e,(function(e){return e}))||[]},only:function(e){if(!f(e))throw Error(p(143));return e}},t.Component=C,t.PureComponent=g,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var i=o({},e.props),r=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=j.current),void 0!==t.key&&(r=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)m.call(t,u)&&!b.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){c=Array(u);for(var A=0;A<u;A++)c[A]=arguments[A+2];i.children=c}return{$$typeof:s,type:e.type,key:r,ref:a,props:i,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:a,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:r,_context:e},e.Consumer=e},t.createElement=y,t.createFactory=function(e){var t=y.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=f,t.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return E().useCallback(e,t)},t.useContext=function(e,t){return E().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return E().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return E().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return E().useLayoutEffect(e,t)},t.useMemo=function(e,t){return E().useMemo(e,t)},t.useReducer=function(e,t,n){return E().useReducer(e,t,n)},t.useRef=function(e){return E().useRef(e)},t.useState=function(e){return E().useState(e)},t.version="17.0.2"},460:(e,t,n)=>{"use strict";e.exports=n(351)},88:(e,t,n)=>{"use strict";e.exports=n(924)},447:(e,t)=>{"use strict";var n,o,s,i;if("object"==typeof performance&&"function"==typeof performance.now){var r=performance;t.unstable_now=function(){return r.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,u=null,A=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(A,0),e}};n=function(e){null!==c?setTimeout(n,0,e):(c=e,setTimeout(A,0))},o=function(e,t){u=setTimeout(e,t)},s=function(){clearTimeout(u)},t.unstable_shouldYield=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,p=window.clearTimeout;if("undefined"!=typeof console){var M=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof M&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var L=!1,C=null,h=-1,g=5,w=0;t.unstable_shouldYield=function(){return t.unstable_now()>=w},i=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):g=0<e?Math.floor(1e3/e):5};var j=new MessageChannel,m=j.port2;j.port1.onmessage=function(){if(null!==C){var e=t.unstable_now();w=e+g;try{C(!0,e)?m.postMessage(null):(L=!1,C=null)}catch(e){throw m.postMessage(null),e}}else L=!1},n=function(e){C=e,L||(L=!0,m.postMessage(null))},o=function(e,n){h=d((function(){e(t.unstable_now())}),n)},s=function(){p(h),h=-1}}function b(e,t){var n=e.length;e.push(t);e:for(;;){var o=n-1>>>1,s=e[o];if(!(void 0!==s&&0<x(s,t)))break e;e[o]=t,e[n]=s,n=o}}function y(e){return void 0===(e=e[0])?null:e}function f(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var o=0,s=e.length;o<s;){var i=2*(o+1)-1,r=e[i],a=i+1,l=e[a];if(void 0!==r&&0>x(r,n))void 0!==l&&0>x(l,r)?(e[o]=l,e[a]=n,o=a):(e[o]=r,e[i]=n,o=i);else{if(!(void 0!==l&&0>x(l,n)))break e;e[o]=l,e[a]=n,o=a}}}return t}return null}function x(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var N=[],S=[],D=1,I=null,v=3,E=!1,T=!1,z=!1;function O(e){for(var t=y(S);null!==t;){if(null===t.callback)f(S);else{if(!(t.startTime<=e))break;f(S),t.sortIndex=t.expirationTime,b(N,t)}t=y(S)}}function k(e){if(z=!1,O(e),!T)if(null!==y(N))T=!0,n(Y);else{var t=y(S);null!==t&&o(k,t.startTime-e)}}function Y(e,n){T=!1,z&&(z=!1,s()),E=!0;var i=v;try{for(O(n),I=y(N);null!==I&&(!(I.expirationTime>n)||e&&!t.unstable_shouldYield());){var r=I.callback;if("function"==typeof r){I.callback=null,v=I.priorityLevel;var a=r(I.expirationTime<=n);n=t.unstable_now(),"function"==typeof a?I.callback=a:I===y(N)&&f(N),O(n)}else f(N);I=y(N)}if(null!==I)var l=!0;else{var c=y(S);null!==c&&o(k,c.startTime-n),l=!1}return l}finally{I=null,v=i,E=!1}}var P=i;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){T||E||(T=!0,n(Y))},t.unstable_getCurrentPriorityLevel=function(){return v},t.unstable_getFirstCallbackNode=function(){return y(N)},t.unstable_next=function(e){switch(v){case 1:case 2:case 3:var t=3;break;default:t=v}var n=v;v=t;try{return e()}finally{v=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=P,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=v;v=e;try{return t()}finally{v=n}},t.unstable_scheduleCallback=function(e,i,r){var a=t.unstable_now();switch(r="object"==typeof r&&null!==r&&"number"==typeof(r=r.delay)&&0<r?a+r:a,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:D++,callback:i,priorityLevel:e,startTime:r,expirationTime:l=r+l,sortIndex:-1},r>a?(e.sortIndex=r,b(S,e),null===y(N)&&e===y(S)&&(z?s():z=!0,o(k,r-a))):(e.sortIndex=l,b(N,e),T||E||(T=!0,n(Y))),e},t.unstable_wrapCallback=function(e){var t=v;return function(){var n=v;v=t;try{return e.apply(this,arguments)}finally{v=n}}}},798:(e,t,n)=>{"use strict";e.exports=n(447)},392:e=>{"use strict";var t=[];function n(e){for(var n=-1,o=0;o<t.length;o++)if(t[o].identifier===e){n=o;break}return n}function o(e,o){for(var i={},r=[],a=0;a<e.length;a++){var l=e[a],c=o.base?l[0]+o.base:l[0],u=i[c]||0,A="".concat(c," ").concat(u);i[c]=u+1;var d=n(A),p={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)t[d].references++,t[d].updater(p);else{var M=s(p,o);o.byIndex=a,t.splice(a,0,{identifier:A,updater:M,references:1})}r.push(A)}return r}function s(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,s){var i=o(e=e||[],s=s||{});return function(e){e=e||[];for(var r=0;r<i.length;r++){var a=n(i[r]);t[a].references--}for(var l=o(e,s),c=0;c<i.length;c++){var u=n(i[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}i=l}}},187:e=>{"use strict";var t={};e.exports=function(e,n){var o=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}},316:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},784:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},633:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var o="";n.supports&&(o+="@supports (".concat(n.supports,") {")),n.media&&(o+="@media ".concat(n.media," {"));var s=void 0!==n.layer;s&&(o+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),o+=n.css,s&&(o+="}"),n.media&&(o+="}"),n.supports&&(o+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(o,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},809:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},395:t=>{"use strict";t.exports=e},566:e=>{"use strict";e.exports=t},368:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function s(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=r(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return s.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)o.call(e,n)&&e[n]&&(t=r(t,n));return t}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(s.default=s,e.exports=s):void 0===(n=function(){return s}.apply(t,[]))||(e.exports=n)}()}},o={};function s(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={id:e,exports:{}};return n[e](i,i.exports,s),i.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nc=void 0;var i={};return(()=>{"use strict";s.d(i,{default:()=>Wi});var e={};s.r(e),s.d(e,{GUIEditor:()=>Zi});var t=s(460),n=s(665),o=s(395);class r{constructor(){this.lock=!1}}var a=s(566);class l{constructor(e,t,n,o){this.left=e,this.top=t,this.right=n,this.bottom=o}clone(){return new l(this.left,this.top,this.right,this.bottom)}get center(){const e=new o.Vector2(this.left,this.top);return e.addInPlace(new o.Vector2(this.right,this.bottom).subtractInPlace(e).multiplyByFloats(.5,.5))}get width(){return this.right-this.left}get height(){return this.bottom-this.top}}const c=e=>Math.round(100*e)/100;class u{static GetScale(e,t){let n=e.scaleX,s=e.scaleY;if(t)return new o.Vector2(n,s);let i=e.parent;for(;i;)n*=i.scaleX,s*=i.scaleY,i=i.parent;return new o.Vector2(n,s)}static GetRotation(e,t){let n=e.rotation;if(t)return n;let o=e.parent;for(;o;)n+=o.rotation,o=o.parent;return n}static GetParentSizes(e){const t=new a.Measure(0,0,0,0);if(e.parent&&(t.copyFrom(e.parent._currentMeasure),"Grid"===e.parent.typeName)){const n=e.parent.getChildCellInfo(e),o=e.parent.cells[n];o&&(t.width=o.widthInPixels,t.height=o.heightInPixels)}return t}static GetNodeMatrix(e,t){const n=this.GlobalState.guiTexture.getSize();let o,s;if(e.parent){const t=u.GetParentSizes(e);o=t.width,s=t.height}else o=n.width,s=n.height;let i=0,r=0;const l=t?t.width:e.widthInPixels,c=t?t.height:e.heightInPixels,A=t?t.left:e.leftInPixels,d=t?t.top:e.topInPixels;switch(e.horizontalAlignment){case a.Control.HORIZONTAL_ALIGNMENT_LEFT:i=-(o-l)/2;break;case a.Control.HORIZONTAL_ALIGNMENT_RIGHT:i=(o-l)/2;break;case a.Control.HORIZONTAL_ALIGNMENT_CENTER:i=0}switch(e.verticalAlignment){case a.Control.VERTICAL_ALIGNMENT_TOP:r=-(s-c)/2;break;case a.Control.VERTICAL_ALIGNMENT_BOTTOM:r=(s-c)/2;break;case a.Control.VERTICAL_ALIGNMENT_CENTER:r=0}this._ResetMatrixArray();const p=this._MatrixCache[0],M=this._MatrixCache[1],L=a.Matrix2D.Identity();let C=l*e.transformCenterX-l/2,h=c*e.transformCenterY-c/2;e.descendantsOnlyPadding||(C-=1*(e.paddingRightInPixels-e.paddingLeftInPixels)/2,h-=1*(e.paddingBottomInPixels-e.paddingTopInPixels)/2),a.Matrix2D.TranslationToRef(i+A,r+d,M);const g=this.GetRotation(e,!0),w=this.GetScale(e,!0);return a.Matrix2D.ComposeToRef(-C,-h,g,w.x,w.y,null,p),L.multiplyToRef(p,L),L.multiplyToRef(M,L),L}static NodeToRTTWorldMatrix(e,t,n){const o=[e];let s=e.parent,i=e;for(;s&&i!==n;){if("Grid"===s.typeName){const e=s.getChildCellInfo(i),t=s.cells[e];o.push(t)}o.push(s),i=s,s=s.parent}this._ResetMatrixArray();const r=o.map(((e,n)=>this.GetNodeMatrix(e,0===n?t:void 0)));return r.reduce(((e,t)=>(e.multiplyToRef(t,e),e)),this._MatrixCache[2])}static NodeToRTTSpace(e,t,n,s=new o.Vector2,i,r){return this.NodeToRTTWorldMatrix(e,i,r).transformCoordinates(t,n,s),s.x=c(s.x),s.y=c(s.y),s}static RttToLocalNodeSpace(e,t,n,s=new o.Vector2,i){const r=this.NodeToRTTWorldMatrix(e,i),a=this._MatrixCache[3];return r.invertToRef(a),a.transformCoordinates(t,n,s),s.x=c(s.x),s.y=c(s.y),s}static RttToCanvasSpace(e,t){const n=this.GlobalState.workbench._scene.getEngine();return new o.Vector2(e+n.getRenderWidth()/2,t+n.getRenderHeight()/2)}static MousePointerToRTTSpace(e,t,n){const s=this.GlobalState.workbench._scene,i=s.getEngine();return new o.Vector2((t||s.pointerX)-i.getRenderWidth()/2,(n||s.pointerY)-i.getRenderHeight()/2)}static _ResetMatrixArray(){this._MatrixCache.forEach((e=>{a.Matrix2D.IdentityToRef(e)}))}static ComputeLocalBounds(e){return new l(.5*-e.widthInPixels,.5*-e.heightInPixels,.5*e.widthInPixels,.5*e.heightInPixels)}static ConvertToPercentage(e,t=["left","top","width","height"],n){let o=1,s=1;if(e.parent)if("Grid"===e.parent.typeName){const t=e.parent.getChildCellInfo(e),n=e.parent.cells[t];o=n.widthInPixels,s=n.heightInPixels}else if("Rectangle"===e.parent.typeName||"Button"===e.parent.typeName){const t=2*e.parent.thickness;o=e.parent._currentMeasure.width-t,s=e.parent._currentMeasure.height-t}else o=e.parent._currentMeasure.width,s=e.parent._currentMeasure.height;for(const i of t){const t=e[i],r="left"===i||"width"===i||"paddingLeft"===i||"paddingRight"===i?o:s,a=100*e[`${i}InPixels`]/r;e[i]=`${a.toFixed(2)}%`,n?.notifyObservers({object:e,initialValue:t,value:e[i],property:i})}}static Round(e){return Math.floor(100*e)/100}static ConvertToPixels(e,t=["left","top","width","height"],n){const o=u.GetParentSizes(e);e._processMeasures(o,e.host.getContext());for(const o of t){const t=e[o];e[`_${o}`]=new a.ValueAndUnit(this.Round(e[`${o}InPixels`]),a.ValueAndUnit.UNITMODE_PIXEL),n?.notifyObservers({object:e,initialValue:t,value:e[o],property:o})}}}u._MatrixCache=[a.Matrix2D.Identity(),a.Matrix2D.Identity(),a.Matrix2D.Identity(),a.Matrix2D.Identity()];class A{constructor(e){this._kdListener=e=>this._keyEvent(e,!0),this._kuListener=e=>this._keyEvent(e,!1),this._moveListener=e=>this._updateModifierKeys(e),this._focusOutListener=()=>this._clearKeys(),this._keys=new Set,this._hostElement=e,e.addEventListener("keydown",this._kdListener),e.addEventListener("keypress",this._kdListener),e.addEventListener("keyup",this._kuListener),e.addEventListener("mousemove",this._moveListener),e.addEventListener("focusout",this._focusOutListener),this.onKeyPressedObservable=new o.Observable}_keyEvent(e,t){this._updateModifierKeys(e)," "===e.key&&this._setKeyDown("space",t)}_updateModifierKeys(e){this._setKeyDown("control",e.ctrlKey),this._setKeyDown("alt",e.altKey),this._setKeyDown("shift",e.shiftKey),this._setKeyDown("meta",e.metaKey)}_setKeyDown(e,t){this._keys.has(e)!==t&&(t?this._keys.add(e):this._keys.delete(e),this.onKeyPressedObservable.notifyObservers(e))}_clearKeys(){for(const e of this._keys)this._keys.delete(e),this.onKeyPressedObservable.notifyObservers(e)}isKeyDown(e){return this._keys.has(e)}dispose(){this._hostElement.removeEventListener("keydown",this._kdListener),this._hostElement.removeEventListener("keypress",this._kdListener),this._hostElement.removeEventListener("keyup",this._kuListener),this._hostElement.removeEventListener("mousemove",this._moveListener),this._hostElement.removeEventListener("focusout",this._focusOutListener)}}var d,p;!function(e){e[e.ABOVE=0]="ABOVE",e[e.BELOW=1]="BELOW",e[e.CENTER=2]="CENTER",e[e.NONE=3]="NONE"}(d||(d={})),function(e){e[e.SELECT=0]="SELECT",e[e.PAN=1]="PAN",e[e.ZOOM=2]="ZOOM"}(p||(p={}));class M{get tool(){return this._tool===p.ZOOM?p.ZOOM:this._tool===p.PAN?p.PAN:p.SELECT}set tool(e){this._tool!==e&&(this._prevTool=this._tool,this._tool=e,this.onToolChangeObservable.notifyObservers())}get usePrevSelected(){return this._usePrevSelected}set usePrevSelected(e){this._usePrevSelected=e}restorePreviousTool(){this._tool!==this._prevTool&&(this._tool=this._prevTool,this.onToolChangeObservable.notifyObservers())}constructor(){this.selectedControls=[],this.onSelectionChangedObservable=new o.Observable,this.onResizeObservable=new o.Observable,this.onBuiltObservable=new o.Observable,this.onResetRequiredObservable=new o.Observable,this.onUpdateRequiredObservable=new o.Observable,this.onLogRequiredObservable=new o.Observable,this.onErrorMessageDialogRequiredObservable=new o.Observable,this.onIsLoadingChanged=new o.Observable,this.onSelectionBoxMoved=new o.Observable,this.onNewSceneObservable=new o.Observable,this.onGuiNodeRemovalObservable=new o.Observable,this.onPopupClosedObservable=new o.Observable,this._outlines=!1,this.blockKeyboardEvents=!1,this.onOutlineChangedObservable=new o.Observable,this.onPropertyChangedObservable=new o.Observable,this._tool=p.SELECT,this._prevTool=this._tool,this.onToolChangeObservable=new o.Observable,this.onFitControlsToWindowObservable=new o.Observable,this.onReframeWindowObservable=new o.Observable,this.onLoadObservable=new o.Observable,this.onSaveObservable=new o.Observable,this.onSaveSelectedControl=new o.Observable,this.onSnippetLoadObservable=new o.Observable,this.onSnippetSaveObservable=new o.Observable,this.onControlLoadObservable=new o.Observable,this.onResponsiveChangeObservable=new o.Observable,this.onParentingChangeObservable=new o.Observable,this.onDropObservable=new o.Observable,this.onPropertyGridUpdateRequiredObservable=new o.Observable,this.onDraggingEndObservable=new o.Observable,this.onDraggingStartObservable=new o.Observable,this.onWindowResizeObservable=new o.Observable,this.onGizmoUpdateRequireObservable=new o.Observable,this.onArtBoardUpdateRequiredObservable=new o.Observable,this.onBackgroundColorChangeObservable=new o.Observable,this.onFontsParsedObservable=new o.Observable,this.onPointerMoveObservable=new o.Observable,this.onPointerUpObservable=new o.Observable,this.draggedControl=null,this.onCopyObservable=new o.Observable,this.onCutObservable=new o.Observable,this.onPasteObservable=new o.Observable,this.isSaving=!1,this.lockObject=new r,this.shiftKeyPressed=!1,this.controlCamera=o.DataStorage.ReadBoolean("ControlCamera",!0);const e=o.DataStorage.ReadNumber("BackgroundColorR",.8),t=o.DataStorage.ReadNumber("BackgroundColorG",.8),n=o.DataStorage.ReadNumber("BackgroundColorB",.8);this.backgroundColor=new o.Color3(e,t,n),this.onBackgroundColorChangeObservable.notifyObservers(),u.GlobalState=this}registerEventListeners(){const e=e=>e.isContentEditable||"INPUT"===e.tagName||"TEXTAREA"===e.tagName;this.hostDocument.addEventListener("copy",(t=>{e(t.target)||(this.onCopyObservable.notifyObservers((e=>t.clipboardData?.setData("text/plain",e))),t.preventDefault())})),this.hostDocument.addEventListener("cut",(t=>{e(t.target)||(this.onCutObservable.notifyObservers((e=>t.clipboardData?.setData("text/plain",e))),t.preventDefault())})),this.hostDocument.addEventListener("paste",(t=>{e(t.target)||(this.onPasteObservable.notifyObservers(t.clipboardData?.getData("text")||""),t.preventDefault())})),this.keys=new A(this.hostDocument),this.keys.onKeyPressedObservable.add((()=>{this.onToolChangeObservable.notifyObservers()}))}get backgroundColor(){return this._backgroundColor}get fromPG(){return this._fromPG}set fromPG(e){this._fromPG=e}set backgroundColor(e){this._backgroundColor=e,this.onBackgroundColorChangeObservable.notifyObservers(),o.DataStorage.WriteNumber("BackgroundColorR",e.r),o.DataStorage.WriteNumber("BackgroundColorG",e.g),o.DataStorage.WriteNumber("BackgroundColorB",e.b)}get outlines(){return this._outlines}set outlines(e){this._outlines=e,this.onOutlineChangedObservable.notifyObservers()}select(e){this.keys.isKeyDown("control")&&this.isMultiSelectable(e)?-1===this.selectedControls.indexOf(e)?this.setSelection([...this.selectedControls,e]):this.setSelection(this.selectedControls.filter((t=>t!==e))):this.setSelection([e])}setSelection(e){this.selectedControls=[...e],this.onSelectionChangedObservable.notifyObservers()}_findParentControlInTexture(e,t){const n=[e.rootContainer];for(;n.length>0;){const e=n.splice(0,1)[0],o=e.children;if(-1!==o.indexOf(t))return e;for(const e of o)e instanceof a.Container&&n.push(e)}return null}deleteSelectedNodes(){for(const e of this.selectedControls){const t=this._findParentControlInTexture(this.guiTexture,e);if(t?.removeControl(e),this.liveGuiTexture){const t=e.getDescendants();for(const e of t){const t=this._findParentControlInTexture(this.liveGuiTexture,e);t?.removeControl(e),e.dispose()}const n=this._findParentControlInTexture(this.liveGuiTexture,e);n?.removeControl(e)}e.dispose()}this.setSelection([])}isMultiSelectable(e){return 0===this.selectedControls.length||this.selectedControls[0].parent===e.parent}dispose(){this.keys.dispose()}}var L=s(88);class C{static _SaveAs(e,t,n){if("download"in HTMLAnchorElement.prototype){const o=window.URL||window.webkitURL,s=n.createElement("a");return s.download=t,s.rel="noopener",s.href=o.createObjectURL(e),setTimeout((()=>{o.revokeObjectURL(s.href)}),4e4),void setTimeout((()=>{this._Click(s,n)}),0)}let o=open("","_blank");o&&(o.document.title=o.document.body.innerText="downloading...");const s="application/octet-stream"===e.type,i=/constructor/i.test(window.HTMLElement)||window.safari,r=/CriOS\/[\d]+/.test(navigator.userAgent);if((r||s&&i)&&"undefined"!=typeof FileReader){const t=new FileReader;t.onloadend=()=>{let e=t.result;e=r?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location.href=e,o=null},t.readAsDataURL(e)}else{const t=window.URL||window.webkitURL,n=t.createObjectURL(e);o?o.location.href=n:location.href=n,o=null,setTimeout((function(){t.revokeObjectURL(n)}),4e4)}}static _Click(e,t){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){const o=t.createEvent("MouseEvents");o.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(o)}}static DownloadAsFile(e,t,n){const o=new Blob([t],{type:"application/octet-stream"});this._SaveAs(o,n,e)}}class h extends t.Component{constructor(e){super(e)}onLink(){this.props.url?window.open(this.props.url,"_blank"):this.props.onLink&&this.props.onLink()}renderContent(){return this.props.ignoreValue?null:this.props.onLink||this.props.url?(0,L.jsx)("div",{className:"link-value",title:this.props.tooltip??this.props.label??"",onClick:()=>this.onLink(),children:this.props.url?"doc":this.props.value||"no name"}):(0,L.jsx)("div",{className:"value",title:this.props.tooltip??this.props.label??"",style:{color:this.props.color?this.props.color:""},children:this.props.value||"no name"})}render(){return(0,L.jsxs)("div",{className:this.props.underline?"textLine underline":"textLine"+(this.props.additionalClass?" "+this.props.additionalClass:""),children:[this.props.icon&&(0,L.jsx)("img",{src:this.props.icon,title:this.props.iconLabel,alt:this.props.iconLabel,className:"icon"}),(0,L.jsx)("div",{className:"label",title:this.props.tooltip??this.props.label??"",children:this.props.label??""}),this.renderContent()]})}}let g="";const w=void 0!==s.g?s.g:"undefined"!=typeof window?window:void 0;function j(e){const t=document.createElement("div");if(t.textContent=e,document.body.appendChild(t),window.getSelection){const e=document.createRange();e.selectNode(t),window.getSelection().removeAllRanges(),window.getSelection().addRange(e)}document.execCommand("copy"),t.remove()}function m(e){let t=(0,o.GetClassName)(e);return t.includes("BABYLON.")&&(t=t.split("BABYLON.")[1]),{className:t,babylonNamespace:g}}void 0!==w&&void 0!==w.BABYLON&&(g="BABYLON.");const b="—";function y(e,t,n=(e,t)=>e[t]){return new Proxy({},{get(t,o){const s=o;if(0===e.length)return b;const i=n(e[0],s);for(const t of e)if(n(t,s)!==i)return b;return i},set(n,o,s){if("—"===s)return!0;const i=o;for(const n of e){const e=n[i];n[i]=s,t&&t.notifyObservers({object:n,property:o,value:n[i],initialValue:e})}return!0}})}class f extends t.Component{constructor(){super(...arguments),this._arrowsRef=t.createRef(),this._drag=e=>{this.props.incrementValue(-e.movementY)},this._releaseListener=()=>{this.props.setDragging(!1),this._arrowsRef.current?.ownerDocument.exitPointerLock(),this._arrowsRef.current?.ownerDocument.defaultView.removeEventListener("pointerup",this._releaseListener),this._arrowsRef.current?.ownerDocument.removeEventListener("pointerlockchange",this._lockChangeListener),this._arrowsRef.current?.ownerDocument.defaultView.removeEventListener("mousemove",this._drag)},this._lockChangeListener=()=>{this._arrowsRef.current?.ownerDocument.pointerLockElement!==this._arrowsRef.current&&this._releaseListener()}}render(){return(0,L.jsxs)("div",{className:"arrows",ref:this._arrowsRef,onPointerDown:()=>{this._arrowsRef.current?.ownerDocument.addEventListener("pointerlockchange",this._lockChangeListener),this._arrowsRef.current?.ownerDocument.defaultView.addEventListener("pointerup",this._releaseListener),this._arrowsRef.current?.ownerDocument.defaultView.addEventListener("mousemove",this._drag),this.props.setDragging(!0),this._arrowsRef.current?.requestPointerLock()},onDragStart:e=>e.preventDefault(),children:[(0,L.jsx)("img",{className:"upArrowIcon",src:"data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDE1IDE1Ij48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNNC4wOSw5LjQ1YS42LjYsMCwwLDEsMC0uODRsMy0zYS42LjYsMCwwLDEsLjg0LDBsMywzYS42LjYsMCwwLDEsMCwuODQuNjEuNjEsMCwwLDEtLjg1LDBsLTItMnY1LjczYS42LjYsMCwwLDEtMS4yLDBWNy40OGwtMiwyQS42MS42MSwwLDAsMSw0LjA5LDkuNDVaIi8+PC9zdmc+",alt:"Increase Value"}),(0,L.jsx)("img",{className:"downArrowIcon",src:"data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDE1IDE1Ij48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNNC4wOSw1LjU1YS42MS42MSwwLDAsMSwuODUsMGwyLDJWMS43OWEuNi42LDAsMSwxLDEuMiwwVjcuNTJsMi0yYS42MS42MSwwLDAsMSwuODUsMCwuNi42LDAsMCwxLDAsLjg0bC0zLDNhLjYuNiwwLDAsMS0uODQsMGwtMy0zQS42LjYsMCwwLDEsNC4wOSw1LjU1WiIvPjwvc3ZnPg==",alt:"Increase Value"})]})}}const x="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MCA0MCI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5jb3B5PC90aXRsZT48ZyBpZD0iVUlfRWxlbWVudHMiIGRhdGEtbmFtZT0iVUkgRWxlbWVudHMiPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTI0LDE0Ljg5SDIyLjc2bC0zLTNIMTIuNDNWMjYuNTloNC4yNnYzaDExLjVWMTlabS4zLDEuNzEsMi4xNCwyLjEzSDI0LjM0Wm0tMTAuOTEsOVYxMi45M2g1LjkzbDIsMkgxNi42OXYxMC43Wm00LjI2LDNWMTUuODloNS42NXYzLjg0aDMuODV2OC44M1oiLz48L2c+PC9zdmc+";class N extends t.Component{constructor(e){super(e),this._localChange=!1;const t=this.props.target[this.props.propertyName];this.state={value:this.getValueString(t,this.props),dragging:!1},this._store=t}componentWillUnmount(){this.unlock()}getValueString(e,t){return e?e===b?b:t.isInteger?e.toFixed(0):e.toFixed(t.digits||4):"0"}shouldComponentUpdate(e,t){if(this._localChange)return this._localChange=!1,!0;const n=e.target[e.propertyName],o=this.getValueString(n,e);return o!==t.value?(t.value=o,!0):t.dragging!=this.state.dragging||e.unit!==this.props.unit||e.isInteger!==this.props.isInteger}raiseOnPropertyChanged(e,t){this.props.onChange&&this.props.onChange(e),this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:e,initialValue:t})}updateValue(e){if(/[^0-9.-]/g.test(e))return;let t;t=this.props.isInteger?parseInt(e):parseFloat(e),isNaN(t)?null!=this.props.defaultValue&&(t=this.props.defaultValue):(void 0!==this.props.min&&t<this.props.min&&(t=this.props.min,e=t.toString()),void 0!==this.props.max&&t>this.props.max&&(t=this.props.max,e=t.toString())),this._localChange=!0,this.setState({value:e}),isNaN(t)||(this.props.target[this.props.propertyName]=t,this.raiseOnPropertyChanged(t,this._store),this._store=t)}lock(){this.props.lockObject&&(this.props.lockObject.lock=!0)}unlock(){this.props.lockObject&&(this.props.lockObject.lock=!1)}incrementValue(e,t=!0){t&&this.props.step&&(e*=parseFloat(this.props.step));let n=parseFloat(this.state.value);isNaN(n)&&(n=0),this.updateValue((n+e).toFixed(2))}onKeyDown(e){const t=parseFloat(this.props.step||this.props.isInteger?"1":"0.01"),n=n=>{e.shiftKey&&(n*=10,(e.ctrlKey||e.metaKey)&&(n*=10)),this.incrementValue(n*t,!1),e.preventDefault()};"ArrowUp"===e.key?n(1):"ArrowDown"===e.key&&n(-1),"Enter"===e.key&&this.props.onEnter&&this.props.onEnter(this._store)}onCopyClick(){if(this.props&&this.props.target){const{className:e,babylonNamespace:t}=m(this.props.target);j("globalThis.debugNode."+this.props.propertyName+" = "+this.props.target[this.props.propertyName]+";// (debugNode as "+t+e+")")}else j("undefined")}render(){let e;e=this.props.isInteger?parseInt(this.state.value):parseFloat(this.state.value);let t=this.props.smallUI?"short":"value";this.state.dragging&&(t+=" dragging"),this.props.arrows&&(t+=" hasArrows");const n=this.state.value===b?"":this.state.value,s=this.state.value===b?b:"";return(0,L.jsxs)(L.Fragment,{children:[!this.props.useEuler&&(0,L.jsxs)("div",{className:this.props.additionalClass?this.props.additionalClass+" floatLine":"floatLine",children:[this.props.icon&&(0,L.jsx)("img",{src:this.props.icon,title:this.props.iconLabel,alt:this.props.iconLabel,className:"icon"}),(!this.props.icon||""!=this.props.label)&&(0,L.jsx)("div",{className:"label",title:this.props.label,children:this.props.label}),(0,L.jsxs)("div",{className:t,children:[(0,L.jsx)("input",{type:"number",step:this.props.step||this.props.isInteger?"1":"0.01",className:"numeric-input",onKeyDown:e=>this.onKeyDown(e),value:n,onBlur:()=>{this.unlock(),this.props.onEnter&&this.props.onEnter(this._store)},placeholder:s,onFocus:()=>this.lock(),onChange:e=>this.updateValue(e.target.value),disabled:this.props.disabled}),this.props.arrows&&(0,L.jsx)(f,{incrementValue:e=>this.incrementValue(e),setDragging:t=>{const n=this.state.dragging;!n&&t&&this.props.onDragStart?this.props.onDragStart(e):n&&!t&&this.props.onDragStop&&this.props.onDragStop(e),this.setState({dragging:t})}})]}),this.props.unit,(0,L.jsx)("div",{className:"copy hoverIcon",onClick:()=>this.onCopyClick(),title:"Copy to clipboard",children:(0,L.jsx)("img",{src:x,alt:"Copy"})})]}),this.props.useEuler&&(0,L.jsx)(S,{lockObject:this.props.lockObject,label:this.props.label,minimum:0,maximum:360,step:.1,directValue:o.Tools.ToDegrees(e),onChange:e=>this.updateValue(o.Tools.ToRadians(e).toString())})]})}}class S extends t.Component{constructor(e){if(super(e),this._localChange=!1,void 0!==this.props.directValue)this.state={value:this.props.directValue};else{let e=this.props.target[this.props.propertyName];void 0===e&&(e=this.props.maximum),this.state={value:e}}}shouldComponentUpdate(e,t){if(void 0!==e.directValue)return t.value=e.directValue,!0;if(e.label!==this.props.label)return!0;let n=e.target[e.propertyName];return void 0===n&&(n=e.maximum),n!==t.value||this._localChange||e.maximum!==this.props.maximum||e.minimum!==this.props.minimum?(t.value=n,this._localChange=!1,!0):e.unit!==this.props.unit}onChange(e){if("—"===e)return;this._localChange=!0;let t=parseFloat(e);this.props.useEuler&&(t=o.Tools.ToRadians(t)),this.props.target&&(this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:t,initialValue:this.state.value}),this.props.target[this.props.propertyName]=t),this.props.onChange&&this.props.onChange(t),this.setState({value:t})}onInput(e){const t=parseFloat(e);this.props.onInput&&this.props.onInput(t)}prepareDataToRead(e){return null===e&&(e=0),this.props.useEuler?o.Tools.ToDegrees(e):e}onCopyClick(){if(this.props&&this.props.target){const{className:e,babylonNamespace:t}=m(this.props.target);j("globalThis.debugNode."+this.props.propertyName+" = "+this.props.target[this.props.propertyName]+";// (debugNode as "+t+e+")")}else j("undefined")}render(){return(0,L.jsxs)("div",{className:"sliderLine",children:[this.props.icon&&(0,L.jsx)("img",{src:this.props.icon,title:this.props.iconLabel,alt:this.props.iconLabel,className:"icon"}),(!this.props.icon||""!=this.props.label)&&(0,L.jsx)("div",{className:this.props.margin?"label withMargins":"label",title:this.props.label,children:this.props.label}),(0,L.jsx)(N,{lockObject:this.props.lockObject,isInteger:0===this.props.decimalCount,smallUI:!0,label:"",target:this.state,digits:void 0===this.props.decimalCount?4:this.props.decimalCount,propertyName:"value",min:this.props.minimum,max:this.props.maximum,onEnter:()=>{const e=this.prepareDataToRead(this.state.value);this.onChange(e)},onChange:()=>{const e=this.prepareDataToRead(this.state.value);this.onChange(e)},onPropertyChangedObservable:this.props.onPropertyChangedObservable,unit:this.props.unit}),(0,L.jsx)("div",{className:"slider",children:(0,L.jsx)("input",{className:"range",type:"range",step:this.props.step,min:this.prepareDataToRead(this.props.minimum),max:this.prepareDataToRead(this.props.maximum),value:this.prepareDataToRead(this.state.value),onInput:e=>this.onInput(e.target.value),onChange:e=>this.onChange(e.target.value)})}),(0,L.jsx)("div",{className:"copy hoverIcon",onClick:()=>this.onCopyClick(),title:"Copy to clipboard",children:(0,L.jsx)("img",{src:x,alt:"Copy"})})]})}}let D=-1;class I extends t.Component{constructor(e){super(e),this._localChange=!1;const t=this.props.numeric?"0":"";this.state={value:(void 0!==this.props.value?this.props.value:this.props.target[this.props.propertyName])||t,dragging:!1}}componentWillUnmount(){this.props.lockObject&&(this.props.lockObject.lock=!1)}shouldComponentUpdate(e,t){if(this._localChange)return this._localChange=!1,!0;const n=void 0!==e.value?e.value:e.target[e.propertyName];return n!==t.value?(t.value=n||"",!0):t.dragging!=this.state.dragging||e.unit!==this.props.unit}raiseOnPropertyChanged(e,t){this.props.onChange?this.props.onChange(e):this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:e,initialValue:t})}getCurrentNumericValue(e){const t=parseFloat(e);if(!isNaN(t))return t;if(void 0!==this.props.placeholder){const e=parseFloat(this.props.placeholder);if(!isNaN(e))return e}return 0}updateValue(e,t){if(this.props.disabled)return;if(this.props.numbersOnly){if(/[^0-9.px%-]/g.test(e))return;e||(e="0"),0===e.search(/0+[0-9-]/g)&&(e=e.substring(1))}if(this.props.numeric){let t=this.getCurrentNumericValue(e);this.props.roundValues&&(t=Math.round(t)),void 0!==this.props.min&&(t=Math.max(this.props.min,t)),void 0!==this.props.max&&(t=Math.min(this.props.max,t)),e=t.toString()}this._localChange=!0;const n=void 0!==this.props.value?this.props.value:this.props.target[this.props.propertyName];this.props.validator&&t&&0==this.props.validator(t)&&(e=n),this.setState({value:e}),this.props.propertyName&&!this.props.delayInput&&(this.props.target[this.props.propertyName]=e),this.props.throttlePropertyChangedNotification?(D>=0&&window.clearTimeout(D),D=window.setTimeout((()=>{this.raiseOnPropertyChanged(e,n)}),this.props.throttlePropertyChangedNotificationDelay??200)):this.raiseOnPropertyChanged(e,n)}incrementValue(e){if(this.props.step&&(e*=this.props.step),this.props.arrowsIncrement)return void this.props.arrowsIncrement(e);const t=this.getCurrentNumericValue(this.state.value);this.updateValue((t+e).toFixed(2))}onKeyDown(e){!this.props.disabled&&this.props.arrows&&("ArrowUp"===e.key&&(this.incrementValue(1),e.preventDefault()),"ArrowDown"===e.key&&(this.incrementValue(-1),e.preventDefault()))}render(){const e=this.state.value===b?"":this.state.value,t=this.state.value===b?b:this.props.placeholder||"",n=this.props.step||(this.props.roundValues?1:.01),o=this.props.multilines?"textInputArea":void 0!==this.props.unit?"textInputLine withUnits":"textInputLine";return(0,L.jsxs)("div",{className:o,children:[this.props.icon&&(0,L.jsx)("img",{src:this.props.icon,title:this.props.iconLabel,alt:this.props.iconLabel,color:"black",className:"icon"}),void 0!==this.props.label&&(0,L.jsx)("div",{className:"label",title:this.props.label,children:this.props.label}),this.props.multilines&&(0,L.jsx)(L.Fragment,{children:(0,L.jsx)("textarea",{className:this.props.disabled?"disabled":"",value:this.state.value,onFocus:()=>{this.props.lockObject&&(this.props.lockObject.lock=!0)},onChange:e=>this.updateValue(e.target.value),onKeyDown:e=>{13===e.keyCode&&this.updateValue(this.state.value)},onBlur:e=>{this.updateValue(e.target.value,e.target.value),this.props.lockObject&&(this.props.lockObject.lock=!1)},disabled:this.props.disabled})}),!this.props.multilines&&(0,L.jsxs)("div",{className:`value${!0===this.props.noUnderline?" noUnderline":""}${this.props.arrows?" hasArrows":""}${this.state.dragging?" dragging":""}`,children:[(0,L.jsx)("input",{className:this.props.disabled?"disabled":"",value:e,onBlur:e=>{this.props.lockObject&&(this.props.lockObject.lock=!1),this.updateValue((void 0!==this.props.value?this.props.value:this.props.target[this.props.propertyName])||"",e.target.value)},onFocus:()=>{this.props.lockObject&&(this.props.lockObject.lock=!0)},onChange:e=>this.updateValue(e.target.value),onKeyDown:e=>this.onKeyDown(e),placeholder:t,type:this.props.numeric?"number":"text",step:n,disabled:this.props.disabled}),this.props.arrows&&(0,L.jsx)(f,{incrementValue:e=>this.incrementValue(e),setDragging:e=>this.setState({dragging:e})})]}),this.props.unit]})}}class v extends t.Component{constructor(e){super(e)}render(){let e=this.props.altStyle?`command-button-alt${this.props.disabled?"-disabled":""}${this.props.isActive?"-":""}`:"command-button",t="command-button-icon ";return this.props.isActive&&(e+=" active",t+=" active"),this.props.disabled?e+=" disabled":this.props.copyDeleteDisabled?e+=" copyAndDeleteDisabled":this.props.pasteDisabled&&(e+=" pasteDisabled"),(0,L.jsxs)("div",{className:e,onClick:this.props.onClick,title:`${this.props.tooltip} ${this.props.shortcut?" ("+this.props.shortcut+")":""}`,children:[(0,L.jsx)("div",{className:t,children:(0,L.jsx)("img",{src:this.props.icon,title:this.props.iconLabel,alt:this.props.iconLabel,className:this.props.isActive?"active":"",draggable:!1})}),(0,L.jsx)("div",{className:"command-label",children:this.props.tooltip})]})}}const E=()=>{};let T={},z={},O=null,k={mark:E,measure:E};try{"undefined"!=typeof window&&(T=window),"undefined"!=typeof document&&(z=document),"undefined"!=typeof MutationObserver&&(O=MutationObserver),"undefined"!=typeof performance&&(k=performance)}catch(e){}const{userAgent:Y=""}=T.navigator||{},P=T,B=z,R=O,U=k,G=(P.document,!!B.documentElement&&!!B.head&&"function"==typeof B.addEventListener&&"function"==typeof B.createElement),Z=~Y.indexOf("MSIE")||~Y.indexOf("Trident/");var _="classic",W="duotone",H="sharp",Q="sharp-duotone",F=[_,W,H,Q],V={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid"}},J=[1,2,3,4,5,6,7,8,9,10],X=J.concat([11,12,13,14,15,16,17,18,19,20]),q={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},K=[...Object.keys({classic:["fas","far","fal","fat"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds"]}),"solid","regular","light","thin","duotone","brands","2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",q.GROUP,q.SWAP_OPACITY,q.PRIMARY,q.SECONDARY].concat(J.map((e=>"".concat(e,"x")))).concat(X.map((e=>"w-".concat(e))));const $="___FONT_AWESOME___",ee=16,te="svg-inline--fa",ne="data-fa-i2svg",oe="data-fa-pseudo-element",se="data-prefix",ie="data-icon",re="fontawesome-i2svg",ae=["HTML","HEAD","STYLE","SCRIPT"],le=(()=>{try{return!0}catch(e){return!1}})(),ce=[_,H,Q];function ue(e){return new Proxy(e,{get:(e,t)=>t in e?e[t]:e[_]})}const Ae={...V};Ae[_]={...V[_],fak:"kit","fa-kit":"kit",fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"};const de=ue(Ae),pe={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds"}};pe[_]={...pe[_],kit:"fak","kit-duotone":"fakd"};const Me=ue(pe),Le={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid"}};Le[_]={...Le[_],fak:"fa-kit"};const Ce=ue(Le),he={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds"}};he[_]={...he[_],"fa-kit":"fak"};const ge=ue(he),we=/fa(s|r|l|t|d|b|k|kd|ss|sr|sl|st|sds)?[\-\ ]/,je="fa-layers-text",me=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,be=(ue({classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds"}}),["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"]),ye=q,fe=new Set;Object.keys(Me[_]).map(fe.add.bind(fe)),Object.keys(Me[H]).map(fe.add.bind(fe)),Object.keys(Me[Q]).map(fe.add.bind(fe));const xe=["kit",...K],Ne=P.FontAwesomeConfig||{};B&&"function"==typeof B.querySelector&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((e=>{let[t,n]=e;const o=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=B.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(t));null!=o&&(Ne[n]=o)}));const Se={styleDefault:"solid",familyDefault:"classic",cssPrefix:"fa",replacementClass:te,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Ne.familyPrefix&&(Ne.cssPrefix=Ne.familyPrefix);const De={...Se,...Ne};De.autoReplaceSvg||(De.observeMutations=!1);const Ie={};Object.keys(Se).forEach((e=>{Object.defineProperty(Ie,e,{enumerable:!0,set:function(t){De[e]=t,ve.forEach((e=>e(Ie)))},get:function(){return De[e]}})})),Object.defineProperty(Ie,"familyPrefix",{enumerable:!0,set:function(e){De.cssPrefix=e,ve.forEach((e=>e(Ie)))},get:function(){return De.cssPrefix}}),P.FontAwesomeConfig=Ie;const ve=[],Ee=ee,Te={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function ze(){let e=12,t="";for(;e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function Oe(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function ke(e){return e.classList?Oe(e.classList):(e.getAttribute("class")||"").split(" ").filter((e=>e))}function Ye(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Pe(e){return Object.keys(e||{}).reduce(((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";")),"")}function Be(e){return e.size!==Te.size||e.x!==Te.x||e.y!==Te.y||e.rotate!==Te.rotate||e.flipX||e.flipY}function Re(){const e="fa",t=te,n=Ie.cssPrefix,o=Ie.replacementClass;let s=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-counter-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(-1 * var(--fa-li-width, 2em));\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n animation-name: fa-beat;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n animation-name: fa-bounce;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n animation-name: fa-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n animation-name: fa-beat-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n animation-name: fa-flip;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n animation-name: fa-shake;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n animation-name: fa-spin;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 2s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n animation-name: fa-spin;\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n animation-delay: -1ms;\n animation-duration: 1ms;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n transform: scale(1);\n }\n 45% {\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-bounce {\n 0% {\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-flip {\n 50% {\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-shake {\n 0% {\n transform: rotate(-15deg);\n }\n 4% {\n transform: rotate(15deg);\n }\n 8%, 24% {\n transform: rotate(-18deg);\n }\n 12%, 28% {\n transform: rotate(18deg);\n }\n 16% {\n transform: rotate(-22deg);\n }\n 20% {\n transform: rotate(22deg);\n }\n 32% {\n transform: rotate(-12deg);\n }\n 36% {\n transform: rotate(12deg);\n }\n 40%, 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if(n!==e||o!==t){const i=new RegExp("\\.".concat(e,"\\-"),"g"),r=new RegExp("\\--".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");s=s.replace(i,".".concat(n,"-")).replace(r,"--".concat(n,"-")).replace(a,".".concat(o))}return s}let Ue=!1;function Ge(){Ie.autoAddCss&&!Ue&&(function(e){if(!e||!G)return;const t=B.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=B.head.childNodes;let o=null;for(let e=n.length-1;e>-1;e--){const t=n[e],s=(t.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(o=t)}B.head.insertBefore(t,o)}(Re()),Ue=!0)}var Ze={mixout:()=>({dom:{css:Re,insertCss:Ge}}),hooks:()=>({beforeDOMElementCreation(){Ge()},beforeI2svg(){Ge()}})};const _e=P||{};_e[$]||(_e[$]={}),_e[$].styles||(_e[$].styles={}),_e[$].hooks||(_e[$].hooks={}),_e[$].shims||(_e[$].shims=[]);var We=_e[$];const He=[],Qe=function(){B.removeEventListener("DOMContentLoaded",Qe),Fe=1,He.map((e=>e()))};let Fe=!1;function Ve(e){const{tag:t,attributes:n={},children:o=[]}=e;return"string"==typeof e?Ye(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce(((t,n)=>t+"".concat(n,'="').concat(Ye(e[n]),'" ')),"").trim()}(n),">").concat(o.map(Ve).join(""),"</").concat(t,">")}function Je(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}G&&(Fe=(B.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(B.readyState),Fe||B.addEventListener("DOMContentLoaded",Qe));var Xe=function(e,t,n,o){var s,i,r,a=Object.keys(e),l=a.length,c=void 0!==o?function(e,t){return function(n,o,s,i){return e.call(t,n,o,s,i)}}(t,o):t;for(void 0===n?(s=1,r=e[a[0]]):(s=0,r=n);s<l;s++)r=c(r,e[i=a[s]],i,e);return r};function qe(e){const t=function(e){const t=[];let n=0;const o=e.length;for(;n<o;){const s=e.charCodeAt(n++);if(s>=55296&&s<=56319&&n<o){const o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&s)<<10)+(1023&o)+65536):(t.push(s),n--)}else t.push(s)}return t}(e);return 1===t.length?t[0].toString(16):null}function Ke(e){return Object.keys(e).reduce(((t,n)=>{const o=e[n];return o.icon?t[o.iconName]=o.icon:t[n]=o,t}),{})}function $e(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{skipHooks:o=!1}=n,s=Ke(t);"function"!=typeof We.hooks.addPack||o?We.styles[e]={...We.styles[e]||{},...s}:We.hooks.addPack(e,Ke(t)),"fas"===e&&$e("fa",t)}const{styles:et,shims:tt}=We,nt={[_]:Object.values(Ce[_]),[H]:Object.values(Ce[H]),[Q]:Object.values(Ce[Q])};let ot=null,st={},it={},rt={},at={},lt={};const ct={[_]:Object.keys(de[_]),[H]:Object.keys(de[H]),[Q]:Object.keys(de[Q])};const ut=()=>{const e=e=>Xe(et,((t,n,o)=>(t[o]=Xe(n,e,{}),t)),{});st=e(((e,t,n)=>(t[3]&&(e[t[3]]=n),t[2]&&t[2].filter((e=>"number"==typeof e)).forEach((t=>{e[t.toString(16)]=n})),e))),it=e(((e,t,n)=>(e[n]=n,t[2]&&t[2].filter((e=>"string"==typeof e)).forEach((t=>{e[t]=n})),e))),lt=e(((e,t,n)=>{const o=t[2];return e[n]=n,o.forEach((t=>{e[t]=n})),e}));const t="far"in et||Ie.autoFetchSvg,n=Xe(tt,((e,n)=>{const o=n[0];let s=n[1];const i=n[2];return"far"!==s||t||(s="fas"),"string"==typeof o&&(e.names[o]={prefix:s,iconName:i}),"number"==typeof o&&(e.unicodes[o.toString(16)]={prefix:s,iconName:i}),e}),{names:{},unicodes:{}});rt=n.names,at=n.unicodes,ot=Ct(Ie.styleDefault,{family:Ie.familyDefault})};var At;function dt(e,t){return(st[e]||{})[t]}function pt(e,t){return(lt[e]||{})[t]}function Mt(e){return rt[e]||{prefix:null,iconName:null}}function Lt(){return ot}function Ct(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{family:n=_}=t,o=de[n][e],s=Me[n][e]||Me[n][o],i=e in We.styles?e:null;return s||i||null}At=e=>{ot=Ct(e.styleDefault,{family:Ie.familyDefault})},ve.push(At),ut();const ht={[_]:Object.keys(Ce[_]),[H]:Object.keys(Ce[H]),[Q]:Object.keys(Ce[Q])};function gt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{skipLookups:n=!1}=t,o={[_]:"".concat(Ie.cssPrefix,"-").concat(_),[H]:"".concat(Ie.cssPrefix,"-").concat(H),[Q]:"".concat(Ie.cssPrefix,"-").concat(Q)};let s=null,i=_;const r=F.filter((e=>e!==W));r.forEach((t=>{(e.includes(o[t])||e.some((e=>ht[t].includes(e))))&&(i=t)}));const a=e.reduce(((e,t)=>{const a=function(e,t){const n=t.split("-"),o=n[0],s=n.slice(1).join("-");return o!==e||""===s||(i=s,~xe.indexOf(i))?null:s;var i}(Ie.cssPrefix,t);if(et[t]?(t=nt[i].includes(t)?ge[i][t]:t,s=t,e.prefix=t):ct[i].indexOf(t)>-1?(s=t,e.prefix=Ct(t,{family:i})):a?e.iconName=a:t===Ie.replacementClass||r.some((e=>t===o[e]))||e.rest.push(t),!n&&e.prefix&&e.iconName){const t="fa"===s?Mt(e.iconName):{},n=pt(e.prefix,e.iconName);t.prefix&&(s=null),e.iconName=t.iconName||n||e.iconName,e.prefix=t.prefix||e.prefix,"far"!==e.prefix||et.far||!et.fas||Ie.autoFetchSvg||(e.prefix="fas")}return e}),{prefix:null,iconName:null,rest:[]});return(e.includes("fa-brands")||e.includes("fab"))&&(a.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(a.prefix="fad"),a.prefix||i!==H||!et.fass&&!Ie.autoFetchSvg||(a.prefix="fass",a.iconName=pt(a.prefix,a.iconName)||a.iconName),a.prefix||i!==Q||!et.fasds&&!Ie.autoFetchSvg||(a.prefix="fasds",a.iconName=pt(a.prefix,a.iconName)||a.iconName),"fa"!==a.prefix&&"fa"!==s||(a.prefix=Lt()||"fas"),a}let wt=[],jt={};const mt={},bt=Object.keys(mt);function yt(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),s=2;s<n;s++)o[s-2]=arguments[s];return(jt[e]||[]).forEach((e=>{t=e.apply(null,[t,...o])})),t}function ft(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];(jt[e]||[]).forEach((e=>{e.apply(null,n)}))}function xt(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return mt[e]?mt[e].apply(null,t):void 0}function Nt(e){"fa"===e.prefix&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||Lt();if(t)return t=pt(n,t)||t,Je(St.definitions,n,t)||Je(We.styles,n,t)}const St=new class{constructor(){this.definitions={}}add(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const o=t.reduce(this._pullDefinitions,{});Object.keys(o).forEach((e=>{this.definitions[e]={...this.definitions[e]||{},...o[e]},$e(e,o[e]);const t=Ce[_][e];t&&$e(t,o[e]),ut()}))}reset(){this.definitions={}}_pullDefinitions(e,t){const n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map((t=>{const{prefix:o,iconName:s,icon:i}=n[t],r=i[2];e[o]||(e[o]={}),r.length>0&&r.forEach((t=>{"string"==typeof t&&(e[o][t]=i)})),e[o][s]=i})),e}},Dt={i2svg:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return G?(ft("beforeI2svg",e),xt("pseudoElements2svg",e),xt("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;var n;!1===Ie.autoReplaceSvg&&(Ie.autoReplaceSvg=!0),Ie.observeMutations=!0,n=()=>{Et({autoReplaceSvgRoot:t}),ft("watch",e)},G&&(Fe?setTimeout(n,0):He.push(n))}},It={icon:e=>{if(null===e)return null;if("object"==typeof e&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:pt(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){const t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=Ct(e[0]);return{prefix:n,iconName:pt(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(Ie.cssPrefix,"-"))>-1||e.match(we))){const t=gt(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||Lt(),iconName:pt(t.prefix,t.iconName)||t.iconName}}if("string"==typeof e){const t=Lt();return{prefix:t,iconName:pt(t,e)||e}}}},vt={noAuto:()=>{Ie.autoReplaceSvg=!1,Ie.observeMutations=!1,ft("noAuto")},config:Ie,dom:Dt,parse:It,library:St,findIconDefinition:Nt,toHtml:Ve},Et=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t=B}=e;(Object.keys(We.styles).length>0||Ie.autoFetchSvg)&&G&&Ie.autoReplaceSvg&&vt.dom.i2svg({node:t})};function Tt(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((e=>Ve(e)))}}),Object.defineProperty(e,"node",{get:function(){if(!G)return;const t=B.createElement("div");return t.innerHTML=e.html,t.children}}),e}function zt(e){const{icons:{main:t,mask:n},prefix:o,iconName:s,transform:i,symbol:r,title:a,maskId:l,titleId:c,extra:u,watchable:A=!1}=e,{width:d,height:p}=n.found?n:t,M="fak"===o,L=[Ie.replacementClass,s?"".concat(Ie.cssPrefix,"-").concat(s):""].filter((e=>-1===u.classes.indexOf(e))).filter((e=>""!==e||!!e)).concat(u.classes).join(" ");let C={children:[],attributes:{...u.attributes,"data-prefix":o,"data-icon":s,class:L,role:u.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(d," ").concat(p)}};const h=M&&!~u.classes.indexOf("fa-fw")?{width:"".concat(d/p*16*.0625,"em")}:{};A&&(C.attributes[ne]=""),a&&(C.children.push({tag:"title",attributes:{id:C.attributes["aria-labelledby"]||"title-".concat(c||ze())},children:[a]}),delete C.attributes.title);const g={...C,prefix:o,iconName:s,main:t,mask:n,maskId:l,transform:i,symbol:r,styles:{...h,...u.styles}},{children:w,attributes:j}=n.found&&t.found?xt("generateAbstractMask",g)||{children:[],attributes:{}}:xt("generateAbstractIcon",g)||{children:[],attributes:{}};return g.children=w,g.attributes=j,r?function(e){let{prefix:t,iconName:n,children:o,attributes:s,symbol:i}=e;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:{...s,id:!0===i?"".concat(t,"-").concat(Ie.cssPrefix,"-").concat(n):i},children:o}]}]}(g):function(e){let{children:t,main:n,mask:o,attributes:s,styles:i,transform:r}=e;if(Be(r)&&n.found&&!o.found){const{width:e,height:t}=n,o={x:e/t/2,y:.5};s.style=Pe({...i,"transform-origin":"".concat(o.x+r.x/16,"em ").concat(o.y+r.y/16,"em")})}return[{tag:"svg",attributes:s,children:t}]}(g)}function Ot(e){const{content:t,width:n,height:o,transform:s,title:i,extra:r,watchable:a=!1}=e,l={...r.attributes,...i?{title:i}:{},class:r.classes.join(" ")};a&&(l[ne]="");const c={...r.styles};Be(s)&&(c.transform=function(e){let{transform:t,width:n=ee,height:o=ee,startCentered:s=!1}=e,i="";return i+=s&&Z?"translate(".concat(t.x/Ee-n/2,"em, ").concat(t.y/Ee-o/2,"em) "):s?"translate(calc(-50% + ".concat(t.x/Ee,"em), calc(-50% + ").concat(t.y/Ee,"em)) "):"translate(".concat(t.x/Ee,"em, ").concat(t.y/Ee,"em) "),i+="scale(".concat(t.size/Ee*(t.flipX?-1:1),", ").concat(t.size/Ee*(t.flipY?-1:1),") "),i+="rotate(".concat(t.rotate,"deg) "),i}({transform:s,startCentered:!0,width:n,height:o}),c["-webkit-transform"]=c.transform);const u=Pe(c);u.length>0&&(l.style=u);const A=[];return A.push({tag:"span",attributes:l,children:[t]}),i&&A.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),A}const{styles:kt}=We;function Yt(e){const t=e[0],n=e[1],[o]=e.slice(4);let s=null;return s=Array.isArray(o)?{tag:"g",attributes:{class:"".concat(Ie.cssPrefix,"-").concat(ye.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Ie.cssPrefix,"-").concat(ye.SECONDARY),fill:"currentColor",d:o[0]}},{tag:"path",attributes:{class:"".concat(Ie.cssPrefix,"-").concat(ye.PRIMARY),fill:"currentColor",d:o[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:o}},{found:!0,width:t,height:n,icon:s}}const Pt={found:!1,width:512,height:512};function Bt(e,t){let n=t;return"fa"===t&&null!==Ie.styleDefault&&(t=Lt()),new Promise(((o,s)=>{if("fa"===n){const n=Mt(e)||{};e=n.iconName||e,t=n.prefix||t}if(e&&t&&kt[t]&&kt[t][e])return o(Yt(kt[t][e]));!function(e,t){le||Ie.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),o({...Pt,icon:Ie.showMissingIcons&&e&&xt("missingIconAbstract")||{}})}))}const Rt=()=>{},Ut=Ie.measurePerformance&&U&&U.mark&&U.measure?U:{mark:Rt,measure:Rt},Gt='FA "6.6.0"';var Zt=e=>(Ut.mark("".concat(Gt," ").concat(e," begins")),()=>(e=>{Ut.mark("".concat(Gt," ").concat(e," ends")),Ut.measure("".concat(Gt," ").concat(e),"".concat(Gt," ").concat(e," begins"),"".concat(Gt," ").concat(e," ends"))})(e));const _t=()=>{};function Wt(e){return"string"==typeof(e.getAttribute?e.getAttribute(ne):null)}function Ht(e){return B.createElementNS("http://www.w3.org/2000/svg",e)}function Qt(e){return B.createElement(e)}function Ft(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{ceFn:n=("svg"===e.tag?Ht:Qt)}=t;if("string"==typeof e)return B.createTextNode(e);const o=n(e.tag);return Object.keys(e.attributes||[]).forEach((function(t){o.setAttribute(t,e.attributes[t])})),(e.children||[]).forEach((function(e){o.appendChild(Ft(e,{ceFn:n}))})),o}const Vt={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach((e=>{t.parentNode.insertBefore(Ft(e),t)})),null===t.getAttribute(ne)&&Ie.keepOriginalSource){let e=B.createComment(function(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}(t));t.parentNode.replaceChild(e,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~ke(t).indexOf(Ie.replacementClass))return Vt.replace(e);const o=new RegExp("".concat(Ie.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const e=n[0].attributes.class.split(" ").reduce(((e,t)=>(t===Ie.replacementClass||t.match(o)?e.toSvg.push(t):e.toNode.push(t),e)),{toNode:[],toSvg:[]});n[0].attributes.class=e.toSvg.join(" "),0===e.toNode.length?t.removeAttribute("class"):t.setAttribute("class",e.toNode.join(" "))}const s=n.map((e=>Ve(e))).join("\n");t.setAttribute(ne,""),t.innerHTML=s}};function Jt(e){e()}function Xt(e,t){const n="function"==typeof t?t:_t;if(0===e.length)n();else{let t=Jt;"async"===Ie.mutateApproach&&(t=P.requestAnimationFrame||Jt),t((()=>{const t=!0===Ie.autoReplaceSvg?Vt.replace:Vt[Ie.autoReplaceSvg]||Vt.replace,o=Zt("mutate");e.map(t),o(),n()}))}}let qt=!1;function Kt(){qt=!0}function $t(){qt=!1}let en=null;function tn(e){if(!R)return;if(!Ie.observeMutations)return;const{treeCallback:t=_t,nodeCallback:n=_t,pseudoElementsCallback:o=_t,observeMutationsRoot:s=B}=e;en=new R((e=>{if(qt)return;const s=Lt();Oe(e).forEach((e=>{if("childList"===e.type&&e.addedNodes.length>0&&!Wt(e.addedNodes[0])&&(Ie.searchPseudoElements&&o(e.target),t(e.target)),"attributes"===e.type&&e.target.parentNode&&Ie.searchPseudoElements&&o(e.target.parentNode),"attributes"===e.type&&Wt(e.target)&&~be.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){const t=e.getAttribute?e.getAttribute(se):null,n=e.getAttribute?e.getAttribute(ie):null;return t&&n}(e.target)){const{prefix:t,iconName:n}=gt(ke(e.target));e.target.setAttribute(se,t||s),n&&e.target.setAttribute(ie,n)}else(i=e.target)&&i.classList&&i.classList.contains&&i.classList.contains(Ie.replacementClass)&&n(e.target);var i}))})),G&&en.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function nn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0};const{iconName:n,prefix:o,rest:s}=function(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),o=void 0!==e.innerText?e.innerText.trim():"";let s=gt(ke(e));return s.prefix||(s.prefix=Lt()),t&&n&&(s.prefix=t,s.iconName=n),s.iconName&&s.prefix||(s.prefix&&o.length>0&&(s.iconName=(i=s.prefix,r=e.innerText,(it[i]||{})[r]||dt(s.prefix,qe(e.innerText)))),!s.iconName&&Ie.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(s.iconName=e.firstChild.data)),s;var i,r}(e),i=function(e){const t=Oe(e.attributes).reduce(((e,t)=>("class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e)),{}),n=e.getAttribute("title"),o=e.getAttribute("data-fa-title-id");return Ie.autoA11y&&(n?t["aria-labelledby"]="".concat(Ie.replacementClass,"-title-").concat(o||ze()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),r=yt("parseNodeAttributes",{},e);let a=t.styleParser?function(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce(((e,t)=>{const n=t.split(":"),o=n[0],s=n.slice(1);return o&&s.length>0&&(e[o]=s.join(":").trim()),e}),{})),n}(e):[];return{iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:o,transform:Te,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:s,styles:a,attributes:i},...r}}const{styles:on}=We;function sn(e){const t="nest"===Ie.autoReplaceSvg?nn(e,{styleParser:!1}):nn(e);return~t.extra.classes.indexOf(je)?xt("generateLayersText",e,t):xt("generateSvgReplacementMutation",e,t)}let rn=new Set;function an(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!G)return Promise.resolve();const n=B.documentElement.classList,o=e=>n.add("".concat(re,"-").concat(e)),s=e=>n.remove("".concat(re,"-").concat(e)),i=Ie.autoFetchSvg?rn:ce.map((e=>"fa-".concat(e))).concat(Object.keys(on));i.includes("fa")||i.push("fa");const r=[".".concat(je,":not([").concat(ne,"])")].concat(i.map((e=>".".concat(e,":not([").concat(ne,"])")))).join(", ");if(0===r.length)return Promise.resolve();let a=[];try{a=Oe(e.querySelectorAll(r))}catch(e){}if(!(a.length>0))return Promise.resolve();o("pending"),s("complete");const l=Zt("onTree"),c=a.reduce(((e,t)=>{try{const n=sn(t);n&&e.push(n)}catch(e){le||"MissingIcon"===e.name&&console.error(e)}return e}),[]);return new Promise(((e,n)=>{Promise.all(c).then((n=>{Xt(n,(()=>{o("active"),o("complete"),s("pending"),"function"==typeof t&&t(),l(),e()}))})).catch((e=>{l(),n(e)}))}))}function ln(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;sn(e).then((e=>{e&&Xt([e],t)}))}ce.map((e=>{rn.add("fa-".concat(e))})),Object.keys(de[_]).map(rn.add.bind(rn)),Object.keys(de[H]).map(rn.add.bind(rn)),Object.keys(de[Q]).map(rn.add.bind(rn)),rn=[...rn];const cn=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=Te,symbol:o=!1,mask:s=null,maskId:i=null,title:r=null,titleId:a=null,classes:l=[],attributes:c={},styles:u={}}=t;if(!e)return;const{prefix:A,iconName:d,icon:p}=e;return Tt({type:"icon",...e},(()=>(ft("beforeDOMElementCreation",{iconDefinition:e,params:t}),Ie.autoA11y&&(r?c["aria-labelledby"]="".concat(Ie.replacementClass,"-title-").concat(a||ze()):(c["aria-hidden"]="true",c.focusable="false")),zt({icons:{main:Yt(p),mask:s?Yt(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:A,iconName:d,transform:{...Te,...n},symbol:o,title:r,maskId:i,titleId:a,extra:{attributes:c,styles:u,classes:l}}))))};var un={mixout(){return{icon:(e=cn,function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=(t||{}).icon?t:Nt(t||{});let{mask:s}=n;return s&&(s=(s||{}).icon?s:Nt(s||{})),e(o,{...n,mask:s})})};var e},hooks:()=>({mutationObserverCallbacks:e=>(e.treeCallback=an,e.nodeCallback=ln,e)}),provides(e){e.i2svg=function(e){const{node:t=B,callback:n=()=>{}}=e;return an(t,n)},e.generateSvgReplacementMutation=function(e,t){const{iconName:n,title:o,titleId:s,prefix:i,transform:r,symbol:a,mask:l,maskId:c,extra:u}=t;return new Promise(((t,A)=>{Promise.all([Bt(n,i),l.iconName?Bt(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((l=>{let[A,d]=l;t([e,zt({icons:{main:A,mask:d},prefix:i,iconName:n,transform:r,symbol:a,maskId:c,title:o,titleId:s,extra:u,watchable:!0})])})).catch(A)}))},e.generateAbstractIcon=function(e){let{children:t,attributes:n,main:o,transform:s,styles:i}=e;const r=Pe(i);let a;return r.length>0&&(n.style=r),Be(s)&&(a=xt("generateAbstractTransformGrouping",{main:o,transform:s,containerWidth:o.width,iconWidth:o.width})),t.push(a||o.icon),{children:t,attributes:n}}}},An={mixout:()=>({layer(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{classes:n=[]}=t;return Tt({type:"layer"},(()=>{ft("beforeDOMElementCreation",{assembler:e,params:t});let o=[];return e((e=>{Array.isArray(e)?e.map((e=>{o=o.concat(e.abstract)})):o=o.concat(e.abstract)})),[{tag:"span",attributes:{class:["".concat(Ie.cssPrefix,"-layers"),...n].join(" ")},children:o}]}))}})},dn={mixout:()=>({counter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{title:n=null,classes:o=[],attributes:s={},styles:i={}}=t;return Tt({type:"counter",content:e},(()=>(ft("beforeDOMElementCreation",{content:e,params:t}),function(e){const{content:t,title:n,extra:o}=e,s={...o.attributes,...n?{title:n}:{},class:o.classes.join(" ")},i=Pe(o.styles);i.length>0&&(s.style=i);const r=[];return r.push({tag:"span",attributes:s,children:[t]}),n&&r.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),r}({content:e.toString(),title:n,extra:{attributes:s,styles:i,classes:["".concat(Ie.cssPrefix,"-layers-counter"),...o]}}))))}})},pn={mixout:()=>({text(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=Te,title:o=null,classes:s=[],attributes:i={},styles:r={}}=t;return Tt({type:"text",content:e},(()=>(ft("beforeDOMElementCreation",{content:e,params:t}),Ot({content:e,transform:{...Te,...n},title:o,extra:{attributes:i,styles:r,classes:["".concat(Ie.cssPrefix,"-layers-text"),...s]}}))))}}),provides(e){e.generateLayersText=function(e,t){const{title:n,transform:o,extra:s}=t;let i=null,r=null;if(Z){const t=parseInt(getComputedStyle(e).fontSize,10),n=e.getBoundingClientRect();i=n.width/t,r=n.height/t}return Ie.autoA11y&&!n&&(s.attributes["aria-hidden"]="true"),Promise.resolve([e,Ot({content:e.innerHTML,width:i,height:r,transform:o,title:n,extra:s,watchable:!0})])}}};const Mn=new RegExp('"',"ug"),Ln=[1105920,1112319],Cn={FontAwesome:{normal:"fas",400:"fas"},"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds"},"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"},"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},hn=Object.keys(Cn).reduce(((e,t)=>(e[t.toLowerCase()]=Cn[t],e)),{}),gn=Object.keys(hn).reduce(((e,t)=>{const n=hn[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e}),{});function wn(e,t){const n="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise(((o,s)=>{if(null!==e.getAttribute(n))return o();const i=Oe(e.children).filter((e=>e.getAttribute(oe)===t))[0],r=P.getComputedStyle(e,t),a=r.getPropertyValue("font-family"),l=a.match(me),c=r.getPropertyValue("font-weight"),u=r.getPropertyValue("content");if(i&&!l)return e.removeChild(i),o();if(l&&"none"!==u&&""!==u){const u=r.getPropertyValue("content");let A=function(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),o=parseInt(t),s=isNaN(o)?"normal":o;return(hn[n]||{})[s]||gn[n]}(a,c);const{value:d,isSecondary:p}=function(e){const t=e.replace(Mn,""),n=function(e){const t=e.length;let n,o=e.charCodeAt(0);return o>=55296&&o<=56319&&t>1&&(n=e.charCodeAt(1),n>=56320&&n<=57343)?1024*(o-55296)+n-56320+65536:o}(t),o=n>=Ln[0]&&n<=Ln[1],s=2===t.length&&t[0]===t[1];return{value:qe(s?t[0]:t),isSecondary:o||s}}(u),M=l[0].startsWith("FontAwesome");let L=dt(A,d),C=L;if(M){const e=function(e){const t=at[e],n=dt("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}(d);e.iconName&&e.prefix&&(L=e.iconName,A=e.prefix)}if(!L||p||i&&i.getAttribute(se)===A&&i.getAttribute(ie)===C)o();else{e.setAttribute(n,C),i&&e.removeChild(i);const r={iconName:null,title:null,titleId:null,prefix:null,transform:Te,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},{extra:a}=r;a.attributes[oe]=t,Bt(L,A).then((s=>{const i=zt({...r,icons:{main:s,mask:{prefix:null,iconName:null,rest:[]}},prefix:A,iconName:C,extra:a,watchable:!0}),l=B.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(l,e.firstChild):e.appendChild(l),l.outerHTML=i.map((e=>Ve(e))).join("\n"),e.removeAttribute(n),o()})).catch(s)}}else o()}))}function jn(e){return Promise.all([wn(e,"::before"),wn(e,"::after")])}function mn(e){return!(e.parentNode===document.head||~ae.indexOf(e.tagName.toUpperCase())||e.getAttribute(oe)||e.parentNode&&"svg"===e.parentNode.tagName)}function bn(e){if(G)return new Promise(((t,n)=>{const o=Oe(e.querySelectorAll("*")).filter(mn).map(jn),s=Zt("searchPseudoElements");Kt(),Promise.all(o).then((()=>{s(),$t(),t()})).catch((()=>{s(),$t(),n()}))}))}var yn={hooks:()=>({mutationObserverCallbacks:e=>(e.pseudoElementsCallback=bn,e)}),provides(e){e.pseudoElements2svg=function(e){const{node:t=B}=e;Ie.searchPseudoElements&&bn(t)}}};let fn=!1;var xn={mixout:()=>({dom:{unwatch(){Kt(),fn=!0}}}),hooks:()=>({bootstrap(){tn(yt("mutationObserverCallbacks",{}))},noAuto(){en&&en.disconnect()},watch(e){const{observeMutationsRoot:t}=e;fn?$t():tn(yt("mutationObserverCallbacks",{observeMutationsRoot:t}))}})};const Nn=e=>e.toLowerCase().split(" ").reduce(((e,t)=>{const n=t.toLowerCase().split("-"),o=n[0];let s=n.slice(1).join("-");if(o&&"h"===s)return e.flipX=!0,e;if(o&&"v"===s)return e.flipY=!0,e;if(s=parseFloat(s),isNaN(s))return e;switch(o){case"grow":e.size=e.size+s;break;case"shrink":e.size=e.size-s;break;case"left":e.x=e.x-s;break;case"right":e.x=e.x+s;break;case"up":e.y=e.y-s;break;case"down":e.y=e.y+s;break;case"rotate":e.rotate=e.rotate+s}return e}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0});var Sn={mixout:()=>({parse:{transform:e=>Nn(e)}}),hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=Nn(n)),e}}),provides(e){e.generateAbstractTransformGrouping=function(e){let{main:t,transform:n,containerWidth:o,iconWidth:s}=e;const i={transform:"translate(".concat(o/2," 256)")},r="translate(".concat(32*n.x,", ").concat(32*n.y,") "),a="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),l="rotate(".concat(n.rotate," 0 0)"),c={transform:"".concat(r," ").concat(a," ").concat(l)},u={transform:"translate(".concat(s/2*-1," -256)")};return{tag:"g",attributes:{...i},children:[{tag:"g",attributes:{...c},children:[{tag:t.icon.tag,children:t.icon.children,attributes:{...t.icon.attributes,...u}}]}]}}}};const Dn={x:0,y:0,width:"100%",height:"100%"};function In(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}var vn={hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),o=n?gt(n.split(" ").map((e=>e.trim()))):{prefix:null,iconName:null,rest:[]};return o.prefix||(o.prefix=Lt()),e.mask=o,e.maskId=t.getAttribute("data-fa-mask-id"),e}}),provides(e){e.generateAbstractMask=function(e){let{children:t,attributes:n,main:o,mask:s,maskId:i,transform:r}=e;const{width:a,icon:l}=o,{width:c,icon:u}=s,A=function(e){let{transform:t,containerWidth:n,iconWidth:o}=e;const s={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),r="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)");return{outer:s,inner:{transform:"".concat(i," ").concat(r," ").concat(a)},path:{transform:"translate(".concat(o/2*-1," -256)")}}}({transform:r,containerWidth:c,iconWidth:a}),d={tag:"rect",attributes:{...Dn,fill:"white"}},p=l.children?{children:l.children.map(In)}:{},M={tag:"g",attributes:{...A.inner},children:[In({tag:l.tag,attributes:{...l.attributes,...A.path},...p})]},L={tag:"g",attributes:{...A.outer},children:[M]},C="mask-".concat(i||ze()),h="clip-".concat(i||ze()),g={tag:"mask",attributes:{...Dn,id:C,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"},children:[d,L]},w={tag:"defs",children:[{tag:"clipPath",attributes:{id:h},children:(j=u,"g"===j.tag?j.children:[j])},g]};var j;return t.push(w,{tag:"rect",attributes:{fill:"currentColor","clip-path":"url(#".concat(h,")"),mask:"url(#".concat(C,")"),...Dn}}),{children:t,attributes:n}}}},En={provides(e){let t=!1;P.matchMedia&&(t=P.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const e=[],n={fill:"currentColor"},o={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:{...n,d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}});const s={...o,attributeName:"opacity"},i={tag:"circle",attributes:{...n,cx:"256",cy:"364",r:"28"},children:[]};return t||i.children.push({tag:"animate",attributes:{...o,attributeName:"r",values:"28;14;28;28;14;28;"}},{tag:"animate",attributes:{...s,values:"1;0;1;1;0;1;"}}),e.push(i),e.push({tag:"path",attributes:{...n,opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"},children:t?[]:[{tag:"animate",attributes:{...s,values:"1;0;0;0;0;1;"}}]}),t||e.push({tag:"path",attributes:{...n,opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"},children:[{tag:"animate",attributes:{...s,values:"0;0;1;1;0;0;"}}]}),{tag:"g",attributes:{class:"missing"},children:e}}}};!function(e,t){let{mixoutsTo:n}=t;wt=e,jt={},Object.keys(mt).forEach((e=>{-1===bt.indexOf(e)&&delete mt[e]})),wt.forEach((e=>{const t=e.mixout?e.mixout():{};if(Object.keys(t).forEach((e=>{"function"==typeof t[e]&&(n[e]=t[e]),"object"==typeof t[e]&&Object.keys(t[e]).forEach((o=>{n[e]||(n[e]={}),n[e][o]=t[e][o]}))})),e.hooks){const t=e.hooks();Object.keys(t).forEach((e=>{jt[e]||(jt[e]=[]),jt[e].push(t[e])}))}e.provides&&e.provides(mt)}))}([Ze,un,An,dn,pn,yn,xn,Sn,vn,En,{hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),o=null!==n&&(""===n||n);return e.symbol=o,e}})}],{mixoutsTo:vt});const Tn=vt.parse,zn=vt.icon;var On=s(764),kn=s.n(On);function Yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Pn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yn(Object(n),!0).forEach((function(t){Rn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bn(e){return Bn="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},Bn(e)}function Rn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Un(e){return function(e){if(Array.isArray(e))return Gn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Gn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gn(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function Zn(e){return t=e,(t-=0)==t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}var _n=["style"],Wn=!1;try{Wn=!0}catch(e){}function Hn(e){return e&&"object"===Bn(e)&&e.prefix&&e.iconName&&e.icon?e:Tn.icon?Tn.icon(e):null===e?null:e&&"object"===Bn(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function Qn(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Rn({},e,t):{}}var Fn={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},Vn=t.forwardRef((function(e,t){var n=Pn(Pn({},Fn),e),o=n.icon,s=n.mask,i=n.symbol,r=n.className,a=n.title,l=n.titleId,c=n.maskId,u=Hn(o),A=Qn("classes",[].concat(Un(function(e){var t,n=e.beat,o=e.fade,s=e.beatFade,i=e.bounce,r=e.shake,a=e.flash,l=e.spin,c=e.spinPulse,u=e.spinReverse,A=e.pulse,d=e.fixedWidth,p=e.inverse,M=e.border,L=e.listItem,C=e.flip,h=e.size,g=e.rotation,w=e.pull,j=(Rn(t={"fa-beat":n,"fa-fade":o,"fa-beat-fade":s,"fa-bounce":i,"fa-shake":r,"fa-flash":a,"fa-spin":l,"fa-spin-reverse":u,"fa-spin-pulse":c,"fa-pulse":A,"fa-fw":d,"fa-inverse":p,"fa-border":M,"fa-li":L,"fa-flip":!0===C,"fa-flip-horizontal":"horizontal"===C||"both"===C,"fa-flip-vertical":"vertical"===C||"both"===C},"fa-".concat(h),null!=h),Rn(t,"fa-rotate-".concat(g),null!=g&&0!==g),Rn(t,"fa-pull-".concat(w),null!=w),Rn(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(j).map((function(e){return j[e]?e:null})).filter((function(e){return e}))}(n)),Un((r||"").split(" ")))),d=Qn("transform","string"==typeof n.transform?Tn.transform(n.transform):n.transform),p=Qn("mask",Hn(s)),M=zn(u,Pn(Pn(Pn(Pn({},A),d),p),{},{symbol:i,title:a,titleId:l,maskId:c}));if(!M)return function(){var e;!Wn&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",u),null;var L=M.abstract,C={ref:t};return Object.keys(n).forEach((function(e){Fn.hasOwnProperty(e)||(C[e]=n[e])})),Jn(L[0],C)}));Vn.displayName="FontAwesomeIcon",Vn.propTypes={beat:kn().bool,border:kn().bool,beatFade:kn().bool,bounce:kn().bool,className:kn().string,fade:kn().bool,flash:kn().bool,mask:kn().oneOfType([kn().object,kn().array,kn().string]),maskId:kn().string,fixedWidth:kn().bool,inverse:kn().bool,flip:kn().oneOf([!0,!1,"horizontal","vertical","both"]),icon:kn().oneOfType([kn().object,kn().array,kn().string]),listItem:kn().bool,pull:kn().oneOf(["right","left"]),pulse:kn().bool,rotation:kn().oneOf([0,90,180,270]),shake:kn().bool,size:kn().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:kn().bool,spinPulse:kn().bool,spinReverse:kn().bool,symbol:kn().oneOfType([kn().bool,kn().string]),title:kn().string,titleId:kn().string,transform:kn().oneOfType([kn().string,kn().object]),swapOpacity:kn().bool};var Jn=function e(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var s=(n.children||[]).map((function(n){return e(t,n)})),i=Object.keys(n.attributes||{}).reduce((function(e,t){var o=n.attributes[t];switch(t){case"class":e.attrs.className=o,delete n.attributes.class;break;case"style":e.attrs.style=o.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,o=t.indexOf(":"),s=Zn(t.slice(0,o)),i=t.slice(o+1).trim();return s.startsWith("webkit")?e[(n=s,n.charAt(0).toUpperCase()+n.slice(1))]=i:e[s]=i,e}),{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=o:e.attrs[Zn(t)]=o}return e}),{attrs:{}}),r=o.style,a=void 0===r?{}:r,l=function(e,t){if(null==e)return{};var n,o,s=function(e,t){if(null==e)return{};var n,o,s={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(s[n]=e[n]);return s}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}(o,_n);return i.attrs.style=Pn(Pn({},i.attrs.style),a),t.apply(void 0,[n.tag,Pn(Pn({},i.attrs),l)].concat(Un(s)))}.bind(null,t.createElement);const Xn={size30:{on:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMTkuNzUsMTcuNWEyLjUsMi41LDAsMSwwLTIuNS0yLjVBMi41LDIuNSwwLDAsMCwxOS43NSwxNy41WiIgc3R5bGU9ImZpbGw6IzMzMyIvPjxwYXRoIGQ9Ik01LDE1YTUsNSwwLDAsMSw1LTVIMjBhNSw1LDAsMCwxLDAsMTBIMTBBNSw1LDAsMCwxLDUsMTVabTUtMy41YTMuNSwzLjUsMCwwLDAsMCw3SDIwYTMuNSwzLjUsMCwwLDAsMC03WiIgc3R5bGU9ImZpbGw6IzMzMyIvPjwvc3ZnP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MTIsMi41LTIuNSwyLjVaIi8+PHBhdGggY2xhc3M9ImIiIGQ9Ik0yNSwyNUgxNWMtMi43NiwwLTUtMi4yNC01LTUsMC0yLjc2LDIuMjQtNSw1LTVoMTBjMi43NiwwLDUsMi4yNCw1LDUsMCwyLjc2LTIuMjQsNS01LDVabS0xMC04LjVjLTEuOTMsMC0zLjUsMS41Ny0zLjUsMy41czEuNTcsMy41LDMuNSwzLjVoMTBjMS45MywwLDMuNS0xLjU3LDMuNS0zLjVzLTEuNTctMy41LTMuNS0zLjVIMTVaIi8+PC9zdmc+"}};class qn extends t.Component{constructor(e){super(e),this._localChange=!1,this.props.isSelected?this.state={isSelected:this.props.isSelected(),isConflict:!1}:this.state={isSelected:!0===this.props.target[this.props.propertyName],isConflict:this.props.target[this.props.propertyName]===b},this.props.disabled&&(this.state={...this.state,isDisabled:this.props.disabled})}shouldComponentUpdate(e,t){let n;return e.isSelected?n=e.isSelected():(n=!0===e.target[e.propertyName],e.target[e.propertyName]===b&&(t.isConflict=!0)),n!==t.isSelected||this._localChange?(t.isSelected=n,this._localChange=!1,!0):e.disabled!==t.isDisabled||e.label!==this.props.label||e.target!==this.props.target||t.isConflict!==this.state.isConflict}onChange(){this._localChange=!0,this.props.onSelect?this.props.onSelect(!this.state.isSelected):(this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:!this.state.isSelected,initialValue:this.state.isSelected}),this.props.target&&this.props.propertyName&&(this.props.target[this.props.propertyName]=!this.state.isSelected)),this.props.onValueChanged&&this.props.onValueChanged(),this.setState({isSelected:!this.state.isSelected,isConflict:!1})}onCopyClick(){if(this.props&&this.props.target){const{className:e,babylonNamespace:t}=m(this.props.target);j("globalThis.debugNode."+this.props.propertyName+" = "+this.props.target[this.props.propertyName]+";// (debugNode as "+t+e+")")}else j("undefined")}render(){const e=this.props.large?Xn.size40:Xn.size30,t=this.state.isConflict?e.mixed:this.state.isSelected?e.on:e.off;return(0,L.jsxs)("div",{className:"checkBoxLine",children:[this.props.icon&&(0,L.jsx)("img",{src:this.props.icon,title:this.props.iconLabel,alt:this.props.iconLabel,className:"icon"}),this.props.label&&(0,L.jsx)("div",{className:"label",title:this.props.iconLabel,children:this.props.label}),this.props.faIcons&&(0,L.jsx)(Vn,{className:"cbx "+(this.props.disabled?"disabled":""),icon:this.state.isSelected?this.props.faIcons.enabled:this.props.faIcons.disabled,onClick:()=>!this.props.disabled&&this.onChange()}),!this.props.faIcons&&(0,L.jsx)("div",{className:"checkBox",children:(0,L.jsxs)("label",{className:`container lbl${this.props.disabled?" disabled":""} ${this.state.isSelected?"checked":""}`,children:[(0,L.jsx)("input",{type:"checkbox",className:"cbx hidden "+(this.state.isConflict?"conflict":""),checked:this.state.isSelected,onChange:()=>this.onChange(),disabled:!!this.props.disabled}),(0,L.jsx)("img",{className:"icon",src:t,alt:this.props.label})]})}),(0,L.jsx)("div",{className:"copy hoverIcon",onClick:()=>this.onCopyClick(),title:"Copy to clipboard",children:(0,L.jsx)("img",{src:x,alt:"Copy"})})]})}}class Kn extends t.Component{constructor(e){super(e),this._localChange=!1,this.state={value:this.props.value.toFixed(void 0!==this.props.precision?this.props.precision:3)}}componentWillUnmount(){this.props.lockObject&&(this.props.lockObject.lock=!1)}shouldComponentUpdate(e,t){return this._localChange?(this._localChange=!1,!0):e.value.toString()!==t.value&&(t.value=e.value.toFixed(void 0!==this.props.precision?this.props.precision:3),!0)}updateValue(e){if(/[^0-9.-]/g.test(e))return;const t=parseFloat(e);this._localChange=!0,this.setState({value:e}),isNaN(t)||this.props.onChange(t)}onBlur(){this._localChange=!1;const e=parseFloat(this.state.value);this.props.lockObject&&(this.props.lockObject.lock=!1),isNaN(e)?this.props.onChange(this.props.value):this.props.onChange(e)}incrementValue(e){let t=parseFloat(this.state.value);isNaN(t)&&(t=0),this.updateValue((t+e).toFixed(void 0!==this.props.precision?this.props.precision:3))}onKeyDown(e){const t=this.props.step||1,n=n=>{e.shiftKey&&(n*=10,(e.ctrlKey||e.metaKey)&&(n*=10)),this.incrementValue(n*t),e.preventDefault()};"ArrowUp"===e.key?n(1):"ArrowDown"===e.key&&n(-1)}render(){return(0,L.jsxs)("div",{className:"numeric",children:[this.props.icon&&(0,L.jsx)("img",{src:this.props.icon,title:this.props.iconLabel,alt:this.props.iconLabel,className:"icon"}),this.props.label&&(0,L.jsx)("div",{className:"numeric-label",title:this.props.labelTooltip??this.props.label,children:`${this.props.label}: `}),(0,L.jsx)("input",{type:"number",step:this.props.step,className:"numeric-input",value:this.state.value,onChange:e=>this.updateValue(e.target.value),onKeyDown:e=>this.onKeyDown(e),onFocus:()=>{this.props.lockObject&&(this.props.lockObject.lock=!0)},onBlur:()=>this.onBlur()})]})}}Kn.defaultProps={step:1};const $n={prefix:"fas",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M367.2 412.5L99.5 144.8C77.1 176.1 64 214.5 64 256c0 106 86 192 192 192c41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3C434.9 335.9 448 297.5 448 256c0-106-86-192-192-192c-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},eo={prefix:"fas",iconName:"minus",icon:[448,512,[8211,8722,10134,"subtract"],"f068","M432 256c0 17.7-14.3 32-32 32L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l352 0c17.7 0 32 14.3 32 32z"]},to={prefix:"fas",iconName:"ellipsis",icon:[448,512,["ellipsis-h"],"f141","M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z"]},no={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]};class oo extends t.Component{constructor(e){super(e)}updateValue(e){if(/[^0-9.-]/g.test(e))return;let t=parseInt(e);isNaN(t)||(null!=this.props.max&&t>this.props.max&&(t=this.props.max),null!=this.props.min&&t<this.props.min&&(t=this.props.min),this.props.onChange(t))}lock(){this.props.lockObject&&(this.props.lockObject.lock=!0)}unlock(){this.props.lockObject&&(this.props.lockObject.lock=!1)}render(){return(0,L.jsxs)("div",{className:"color-picker-component",children:[(0,L.jsx)("div",{className:"color-picker-component-value",children:(0,L.jsx)("input",{type:"number",step:1,className:"numeric-input",value:this.props.value,onBlur:()=>this.unlock(),onFocus:()=>this.lock(),onChange:e=>this.updateValue(e.target.value),disabled:this.props.disabled})}),(0,L.jsx)("div",{className:"color-picker-component-label",children:this.props.label})]})}}class so extends t.Component{constructor(e){super(e),this.state={hex:this.props.value.replace("#","")}}shouldComponentUpdate(e,t){return e.value!==this.props.value&&(t.hex=e.value.replace("#","")),!0}lock(){this.props.lockObject&&(this.props.lockObject.lock=!0)}unlock(){this.props.lockObject&&(this.props.lockObject.lock=!1)}updateHexValue(e){if(""==e||0!=/^[0-9A-Fa-f]+$/g.test(e)){if(this.setState({hex:e}),e.length!==this.props.expectedLength)if(8===this.props.expectedLength&&6===e.length)e+="FF";else{if(6!==this.props.expectedLength||8!==e.length)return;e=e.substring(0,6)}this.props.onChange("#"+e)}}render(){return(0,L.jsx)("input",{type:"string",className:"hex-input",value:this.state.hex,onBlur:()=>this.unlock(),onFocus:()=>this.lock(),onChange:e=>this.updateHexValue(e.target.value)})}}var io=s(392),ro=s.n(io),ao=s(633),lo=s.n(ao),co=s(187),uo=s.n(co),Ao=s(784),po=s.n(Ao),Mo=s(316),Lo=s.n(Mo),Co=s(809),ho=s.n(Co),go=s(228),wo={};wo.styleTagTransform=ho(),wo.setAttributes=po(),wo.insert=uo().bind(null,"head"),wo.domAPI=lo(),wo.insertStyleElement=Lo(),ro()(go.A,wo),go.A&&go.A.locals&&go.A.locals;class jo extends t.Component{constructor(e){super(e),this.props.color instanceof o.Color4?this.state={color:new o.Color3(this.props.color.r,this.props.color.g,this.props.color.b),alpha:this.props.color.a}:this.state={color:this.props.color.clone(),alpha:1},this._saturationRef=t.createRef(),this._hueRef=t.createRef()}shouldComponentUpdate(e,t){return e.color.toHexString()!==this.props.color.toHexString()||t.color.toHexString()!==this.props.color.toHexString()}onSaturationPointerDown(e){this._evaluateSaturation(e),this._isSaturationPointerDown=!0,e.currentTarget.setPointerCapture(e.pointerId)}onSaturationPointerUp(e){this._isSaturationPointerDown=!1,e.currentTarget.releasePointerCapture(e.pointerId)}onSaturationPointerMove(e){this._isSaturationPointerDown&&this._evaluateSaturation(e)}onHuePointerDown(e){this._evaluateHue(e),this._isHuePointerDown=!0,e.currentTarget.setPointerCapture(e.pointerId)}onHuePointerUp(e){this._isHuePointerDown=!1,e.currentTarget.releasePointerCapture(e.pointerId)}onHuePointerMove(e){this._isHuePointerDown&&this._evaluateHue(e)}_evaluateSaturation(e){const t=e.nativeEvent.offsetX,n=e.nativeEvent.offsetY,s=Math.min(1,Math.max(1e-4,t/this._saturationRef.current.clientWidth)),i=Math.min(1,Math.max(1e-4,1-n/this._saturationRef.current.clientHeight));this.props.debugMode&&(o.Logger.Log("Saturation: "+s),o.Logger.Log("Value: "+i));const r=this.state.color.toHSV();o.Color3.HSVtoRGBToRef(r.r,s,i,this.state.color),0===this.state.alpha&&this.setState({alpha:1}),this.setState({color:this.state.color})}_evaluateHue(e){const t=e.nativeEvent.offsetX,n=360*Math.min(.9999,Math.max(1e-4,t/this._hueRef.current.clientWidth));this.props.debugMode&&o.Logger.Log("Hue: "+n);const s=this.state.color.toHSV();o.Color3.HSVtoRGBToRef(n,Math.max(s.g,.01),Math.max(s.b,.01),this.state.color),this.setState({color:this.state.color})}componentDidUpdate(){this.raiseOnColorChanged()}raiseOnColorChanged(){if(this.props.onColorChanged)if(this.props.color instanceof o.Color4){const e=o.Color4.FromColor3(this.state.color,this.state.alpha);this.props.onColorChanged(e)}else this.props.onColorChanged(this.state.color.clone())}render(){const e=o.Color4.FromColor3(this.state.color);e.a=this.state.alpha;const t=e.toHexString(),n=this.state.color.toHSV(),s=new o.Color3;o.Color3.HSVtoRGBToRef(n.r,1,1,s);const i=s.toHexString(),r=this.props.color instanceof o.Color4;return(0,L.jsxs)("div",{className:"color-picker-container"+(this.props.linearhint?" with-hints":""),children:[(0,L.jsxs)("div",{className:"color-picker-saturation",onPointerMove:e=>this.onSaturationPointerMove(e),onPointerDown:e=>this.onSaturationPointerDown(e),onPointerUp:e=>this.onSaturationPointerUp(e),ref:this._saturationRef,style:{background:i},children:[(0,L.jsx)("div",{className:"color-picker-saturation-white"}),(0,L.jsx)("div",{className:"color-picker-saturation-black"}),(0,L.jsx)("div",{className:"color-picker-saturation-cursor",style:{top:-100*n.b+100+"%",left:100*n.g+"%"}})]}),(0,L.jsxs)("div",{className:"color-picker-hue",children:[(0,L.jsx)("div",{className:"color-picker-hue-color",style:{background:t}}),(0,L.jsx)("div",{className:"color-picker-hue-slider",ref:this._hueRef,onPointerMove:e=>this.onHuePointerMove(e),onPointerDown:e=>this.onHuePointerDown(e),onPointerUp:e=>this.onHuePointerUp(e),children:(0,L.jsx)("div",{className:"color-picker-hue-cursor",style:{left:n.r/360*100+"%",border:"1px solid "+i}})})]}),(0,L.jsx)("div",{className:"color-picker-alpha"}),(0,L.jsxs)("div",{className:"color-picker-rgb",children:[(0,L.jsx)("div",{className:"red",children:(0,L.jsx)(oo,{lockObject:this.props.lockObject,label:"R",min:0,max:255,value:Math.round(255*this.state.color.r),onChange:e=>{this.state.color.r=e/255,this.forceUpdate()}})}),(0,L.jsx)("div",{className:"green",children:(0,L.jsx)(oo,{lockObject:this.props.lockObject,label:"G",min:0,max:255,value:Math.round(255*this.state.color.g),onChange:e=>{this.state.color.g=e/255,this.forceUpdate()}})}),(0,L.jsx)("div",{className:"blue",children:(0,L.jsx)(oo,{lockObject:this.props.lockObject,label:"B",min:0,max:255,value:Math.round(255*this.state.color.b),onChange:e=>{this.state.color.b=e/255,this.forceUpdate()}})}),(0,L.jsx)("div",{className:"alpha"+(r?"":" grayed"),children:(0,L.jsx)(oo,{lockObject:this.props.lockObject,label:"A",min:0,max:255,value:Math.round(255*this.state.alpha),onChange:e=>{this.setState({alpha:e/255}),this.forceUpdate()}})})]}),(0,L.jsxs)("div",{className:"color-picker-hex",children:[(0,L.jsx)("div",{className:"color-picker-hex-label",children:"Hex"}),(0,L.jsx)("div",{className:"color-picker-hex-value",children:(0,L.jsx)(so,{lockObject:this.props.lockObject,expectedLength:r?8:6,value:t,onChange:e=>{if(r){const t=o.Color4.FromHexString(e);this.setState({color:new o.Color3(t.r,t.g,t.b),alpha:t.a})}else this.setState({color:o.Color3.FromHexString(e)})}})})]}),this.props.linearhint&&(0,L.jsx)("div",{className:"color-picker-warning",children:"(Note: color is stored in linear mode and was converted to gamma to be displayed here (toGammaSpace() / toLinearSpace()))"})]})}}class mo extends t.Component{constructor(e){super(e),this.state={pickerEnabled:!1,color:this.props.value,hex:this.getHexString(e)},this._floatRef=t.createRef(),this._floatHostRef=t.createRef()}syncPositions(){const e=this._floatRef.current,t=this._floatHostRef.current;if(!e||!t)return;let n=t.getBoundingClientRect().top;const o=e.getBoundingClientRect().height;n+o+10>window.innerHeight&&(n=window.innerHeight-o-10),e.style.top=n+"px",this.props.shouldPopRight?e.style.left=t.getBoundingClientRect().left+"px":e.style.left=t.getBoundingClientRect().left-e.getBoundingClientRect().width+"px"}shouldComponentUpdate(e,t){const n=this.getHexString(e)!==this.getHexString();return n&&(t.color=e.value,t.hex=this.getHexString(e)),n||t.hex!==this.state.hex||t.pickerEnabled!==this.state.pickerEnabled}getHexString(e=this.props){return e.value.toHexString()}componentDidUpdate(){this.syncPositions()}componentDidMount(){this.syncPositions()}render(){return(0,L.jsxs)("div",{className:"color-picker",children:[this.props.icon&&(0,L.jsx)("img",{src:this.props.icon,title:this.props.iconLabel,alt:this.props.iconLabel,className:"icon"}),(0,L.jsx)("div",{className:"color-rect-background",ref:this._floatHostRef,onClick:()=>this.setState({pickerEnabled:!0}),children:(0,L.jsx)("div",{className:"color-rect",style:{background:this.state.hex}})}),this.state.pickerEnabled&&(0,L.jsx)(L.Fragment,{children:(0,L.jsx)("div",{className:"color-picker-cover",onClick:e=>{e.target===this._floatRef.current?.ownerDocument?.querySelector(".color-picker-cover")&&this.setState({pickerEnabled:!1})},children:(0,L.jsx)("div",{className:"color-picker-float",ref:this._floatRef,children:(0,L.jsx)(jo,{lockObject:this.props.lockObject||{},color:this.state.color,linearhint:this.props.linearHint,onColorChanged:e=>{const t=e.toHexString();this.setState({hex:t,color:e}),this.props.onColorChanged(t)}})})})})]})}}const bo=new o.Color4(0,0,0,0);class yo extends t.Component{constructor(e){super(e),this.state={isExpanded:!1,color:this.getValue()},this.props.target._isLinearColor=e.isLinear}shouldComponentUpdate(e,t){const n=t.color,o=this.getValue(e);return n!==this.state.color?(t.color=n,!0):o!==this.state.color?(t.color=o,!0):t.isExpanded!==this.state.isExpanded}getValue(e=this.props){const t=e.target[e.propertyName];return t?"string"==typeof t?t===b?bo:this._convertToColor(t):e.isLinear?t.toGammaSpace():t.clone():bo}setColorFromString(e){const t=this._convertToColor(e);this.setColor(t)}setColor(e){this.setState({color:e.clone()}),this.props.isLinear&&e.toLinearSpaceToRef(e);const t=this.props.disableAlpha?this._toColor3(e):e,n=this.props.target,o=n[this.props.propertyName],s="string"==typeof n[this.props.propertyName]?t.toHexString():t;n[this.props.propertyName]=s,this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:n,property:this.props.propertyName,value:s,initialValue:o}),this.props.onChange&&this.props.onChange()}switchExpandState(){this.setState({isExpanded:!this.state.isExpanded})}updateStateR(e){this.setColor(new o.Color4(e,this.state.color.g,this.state.color.b,this.state.color.a))}updateStateG(e){this.setColor(new o.Color4(this.state.color.r,e,this.state.color.b,this.state.color.a))}updateStateB(e){this.setColor(new o.Color4(this.state.color.r,this.state.color.g,e,this.state.color.a))}updateStateA(e){this.props.disableAlpha||this.setColor(new o.Color4(this.state.color.r,this.state.color.g,this.state.color.b,e))}_convertToColor(e){if(""===e||"transparent"===e)return bo;if("#"!==e.substring(0,1)||7!==e.length&&9!==e.length){const t=document.createElement("div");t.style.color=e,document.body.append(t);const n=window.getComputedStyle(t).color;document.body.removeChild(t);const s=n.substring(4,n.length-1).replace(/ /g,"").split(","),i=s.length>3?parseInt(s[3])/255:1;return new o.Color4(parseInt(s[0])/255,parseInt(s[1])/255,parseInt(s[2])/255,i)}if(this.props.disableAlpha){const t=o.Color3.FromHexString(e);return new o.Color4(t.r,t.g,t.b,1)}return o.Color4.FromHexString(e)}_toColor3(e){return new o.Color3(e.r,e.g,e.b)}onCopyClick(){if(this.props&&this.props.target){const{className:e,babylonNamespace:t}=m(this.props.target),n="globalThis.debugNode",o=this.props.propertyName,s=this.props.target[this.props.propertyName],i=this.state.color.toHexString();let r;r=s.a?"new "+t+"Color4("+s.r+", "+s.g+", "+s.b+", "+s.a+")":"new "+t+"Color3("+s.r+", "+s.g+", "+s.b+")",r+=";// (HEX : "+i,j(n+"."+o+" = "+r+" , debugNode as "+t+e+")")}else j("undefined")}render(){const e=this.state.isExpanded?(0,L.jsx)(Vn,{icon:eo}):(0,L.jsx)(Vn,{icon:no});return(0,L.jsxs)("div",{className:"color3Line",children:[(0,L.jsxs)("div",{className:"firstLine",children:[this.props.icon&&(0,L.jsx)("img",{src:this.props.icon,title:this.props.iconLabel,alt:this.props.iconLabel,className:"icon"}),(0,L.jsx)("div",{className:"label",title:this.props.label,children:this.props.label}),(0,L.jsx)("div",{className:"color3",children:(0,L.jsx)(mo,{lockObject:this.props.lockObject,linearHint:this.props.isLinear,value:this.props.disableAlpha?this._toColor3(this.state.color):this.state.color,onColorChanged:e=>{this.setColorFromString(e)}})}),(0,L.jsx)("div",{className:"expand hoverIcon",onClick:()=>this.switchExpandState(),title:"Expand",children:e}),(0,L.jsx)("div",{className:"copy hoverIcon",onClick:()=>this.onCopyClick(),title:"Copy to clipboard",children:(0,L.jsx)("img",{src:x,alt:"Copy"})})]}),this.state.isExpanded&&(0,L.jsxs)("div",{className:"secondLine",children:[(0,L.jsx)(Kn,{lockObject:this.props.lockObject,label:"r",labelTooltip:"Red",value:this.state.color.r,onChange:e=>this.updateStateR(e)}),(0,L.jsx)(Kn,{lockObject:this.props.lockObject,label:"g",labelTooltip:"Green",value:this.state.color.g,onChange:e=>this.updateStateG(e)}),(0,L.jsx)(Kn,{lockObject:this.props.lockObject,label:"b",labelTooltip:"Blue",value:this.state.color.b,onChange:e=>this.updateStateB(e)}),this.props.disableAlpha||(0,L.jsx)(Kn,{lockObject:this.props.lockObject,label:"a",labelTooltip:"Alpha",value:this.state.color.a,onChange:e=>this.updateStateA(e)})]})]})}}class fo extends t.Component{render(){return(0,L.jsx)("img",{src:this.props.icon,title:this.props.label,alt:this.props.label,color:"black",className:"icon",onDragStart:e=>e.preventDefault()})}}var xo=s(767),No={};No.styleTagTransform=ho(),No.setAttributes=po(),No.insert=uo().bind(null,"head"),No.domAPI=lo(),No.insertStyleElement=Lo(),ro()(xo.A,No);const So=xo.A&&xo.A.locals?xo.A.locals:void 0;function Do(e,t){let n="";for(const o in e)e[o]&&(n+=t[o]+" ");return n}const Io=({disabled:e,active:t,onClick:n,children:o,color:s,size:i,title:r,backgroundColor:a})=>(0,L.jsx)("button",{className:Do({button:!0,active:t,wide:"wide"===i,small:"small"===i,smaller:"smaller"===i,light:"light"===s,dark:"dark"===s},So),disabled:e,onClick:n,title:r,style:{backgroundColor:a},children:o});var vo=s(734),Eo={};Eo.styleTagTransform=ho(),Eo.setAttributes=po(),Eo.insert=uo().bind(null,"head"),Eo.domAPI=lo(),Eo.insertStyleElement=Lo(),ro()(vo.A,Eo);const To=vo.A&&vo.A.locals?vo.A.locals:void 0,zo=({color:e="dark",icon:t})=>(0,L.jsx)("img",{src:t,style:{width:"100%",height:"100%"},className:Do({light:"light"===e},To)});var Oo=s(182),ko={};ko.styleTagTransform=ho(),ko.setAttributes=po(),ko.insert=uo().bind(null,"head"),ko.domAPI=lo(),ko.insertStyleElement=Lo(),ro()(Oo.A,ko);const Yo=Oo.A&&Oo.A.locals?Oo.A.locals:void 0,Po="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMTUsNi44OUE4LjExLDguMTEsMCwxLDEsNi44OSwxNSw4LjExLDguMTEsMCwwLDEsMTUsNi44OVptMCwxLjIyQTYuODksNi44OSwwLDEsMCwyMS44OSwxNSw2Ljg4LDYuODgsMCwwLDAsMTUsOC4xMVptLTEsOC4wNiwzLjYyLTMuNjNhLjYxLjYxLDAsMCwxLC45Mi43OWwtLjA2LjA3LTQsNC4wNmEuNjQuNjQsMCwwLDEtLjguMDZsLS4wNi0uMDYtMi0yYS42LjYsMCwwLDEsMC0uODYuNi42LDAsMCwxLC43OS0uMDZsLjA3LjA2LDEuNiwxLjYsMy42Mi0zLjYzWiIgc3R5bGU9ImZpbGw6IzMzMyIvPjwvc3ZnPg==",Bo="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMTUsOC43MWEyLDIsMCwwLDEsMiwxLjkxdi4xMWgzLjI2YS40Ny40NywwLDAsMSwuMDYuOTNoLS41NkwxOSwxOS43NWExLjcsMS43LDAsMCwxLTEuNTksMS41M0gxMi43MUExLjcxLDEuNzEsMCwwLDEsMTEsMTkuODVsMC0uMS0uNzktOC4wOWgtLjVhLjQ2LjQ2LDAsMCwxLS40Ni0uNFYxMS4yYS40Ni40NiwwLDAsMSwuNC0uNDZIMTNBMiwyLDAsMCwxLDE1LDguNzFabTMuODUsMi45NWgtNy43bC43OSw4YS43OC43OCwwLDAsMCwuNjkuN2g0LjY2YS43Ny43NywwLDAsMCwuNzYtLjYydi0uMDhabS0yLjc2LDEuNzFhLjQ3LjQ3LDAsMCwxLC40Ni40djQuNDFhLjQ2LjQ2LDAsMCwxLS45Mi4wNnYtNC40QS40Ny40NywwLDAsMSwxNi4wOSwxMy4zN1ptLTIuMTgsMGEuNDYuNDYsMCwwLDEsLjQ2LjR2NC40MWEuNDcuNDcsMCwwLDEtLjkzLjA2di00LjRBLjQ3LjQ3LDAsMCwxLDEzLjkxLDEzLjM3Wk0xNSw5LjY1YTEuMDcsMS4wNywwLDAsMC0xLjA4LDF2LjA5aDIuMThBMS4wOCwxLjA4LDAsMCwwLDE1LDkuNjVaIiBzdHlsZT0iZmlsbDojMzMzIi8+PC9zdmc+",Ro=e=>{const[n,o]=(0,t.useState)(""),[s,i]=(0,t.useState)(!e.validateValue||e.validateValue(n));return(0,t.useEffect)((()=>{i(!e.validateValue||e.validateValue(n))}),[n]),(0,L.jsxs)("div",{className:Do({line:!0,valid:s,invalid:!s},Yo),children:[e.label&&(0,L.jsx)("label",{children:e.label}),(0,L.jsx)("input",{className:Yo.input,type:"text",placeholder:e.placeholder,value:n,onChange:e=>{o(e.target.value)}}),(0,L.jsxs)("div",{children:[(0,L.jsx)(Io,{color:"light",size:"smaller",backgroundColor:"inherit",onClick:()=>{e.submitValue(n)},disabled:!s,children:(0,L.jsx)(zo,{icon:Po,color:"dark"})}),(0,L.jsx)(Io,{color:"light",size:"smaller",backgroundColor:"inherit",onClick:()=>{e.cancelSubmit?.(),o("")},children:(0,L.jsx)(zo,{icon:Bo,color:"dark"})})]})]})};var Uo=s(348),Go={};Go.styleTagTransform=ho(),Go.setAttributes=po(),Go.insert=uo().bind(null,"head"),Go.domAPI=lo(),Go.insertStyleElement=Lo(),ro()(Uo.A,Go);const Zo=Uo.A&&Uo.A.locals?Uo.A.locals:void 0;var _o;!function(e){e[e.Default=0]="Default",e[e.Adding=1]="Adding"}(_o||(_o={}));const Wo="addCustomOption",Ho=e=>{const[n,o]=(0,t.useState)(_o.Default);return(0,L.jsxs)("div",{className:Zo.optionsLine,children:[n===_o.Adding&&(0,L.jsx)(Ro,{submitValue:t=>{const n={label:t,value:t,id:Date.now().toString()};e.onOptionAdded?.(n),e.onOptionSelected(n.value),o(_o.Default)},placeholder:e.addOptionPlaceholder,validateValue:e.validateNewOptionValue,cancelSubmit:()=>{o(_o.Default)}}),n===_o.Default&&(0,L.jsxs)("select",{className:Zo.optionsSelect,onChange:t=>{t.target.value===Wo?o(_o.Adding):e.onOptionSelected(t.target.value)},value:e.selectedOptionValue,children:[e.onOptionAdded&&(0,L.jsx)("option",{value:Wo,children:e.addOptionText??"Custom"},Wo),e.options.map((e=>(0,L.jsx)("option",{value:e.value,children:e.label},e.id)))]})]})},Qo="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMTAsN2EzLDMsMCwwLDAtMywzdjMuNWEuNS41LDAsMCwwLDEsMFYxMGEyLDIsMCwwLDEsMi0yaDMuNWEuNS41LDAsMCwwLDAtMVoiIHN0eWxlPSJmaWxsOiMzMzMiLz48cGF0aCBkPSJNMTYuNSw3YS41LjUsMCwwLDAsMCwxSDIwYTIsMiwwLDAsMSwyLDJ2My41YS41LjUsMCwwLDAsMSwwVjEwYTMsMywwLDAsMC0zLTNaIiBzdHlsZT0iZmlsbDojMzMzIi8+PHBhdGggZD0iTTcuNSwxNmEuNS41LDAsMCwxLC41LjVWMjBhMiwyLDAsMCwwLDIsMmgzLjVhLjUuNSwwLDAsMSwwLDFIMTBhMywzLDAsMCwxLTMtM1YxNi41QS41LjUsMCwwLDEsNy41LDE2WiIgc3R5bGU9ImZpbGw6IzMzMyIvPjxwYXRoIGQ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sMCwwLDEtLjQxLS40MVpNMjYsMTcuMDhsLTQuNzUtNC43NC0uMDctLjA2TDIxLDEyLjEzbC0uMS0uMDUtLjE4LS4xYTEuNzIsMS43MiwwLDAsMC0uNTEtLjExSDE1LjEyYTEuNjMsMS42MywwLDAsMC0xLjYzLDEuNjN2MTNhMS42MywxLjYzLDAsMCwwLDEuNjMsMS42M2g5Ljc2YTEuNjMsMS42MywwLDAsMCwxLjYzLTEuNjNWMTguMjNBMS42NSwxLjY1LDAsMCwwLDI2LDE3LjA4WiIgc3R5bGU9ImZpbGw6IzMzMyIvPjwvc3ZnPg==";function ts(e){return(0,L.jsx)("button",{className:"unit",onClick:()=>{e.onClick&&!e.locked&&e.onClick(e.unit||"")},disabled:e.locked,children:e.unit})}class ns{static LookForItems(e,t,n=!0){if(0==t.length)return!1;if(!n&&t.includes(e))return!0;const o=e.getChildren?e.getChildren():e.children;if(o)for(const e of o)if(ns.LookForItems(e,t,!1))return!0;return!1}static _RecursiveRemoveHiddenMeshesAndHoistChildren(e){const t=[];for(const n of e)n.reservedDataStore&&n.reservedDataStore.hidden&&n.getChildMeshes?ns._RecursiveRemoveHiddenMeshesAndHoistChildren(n.getChildMeshes()).forEach((e=>{t.push(e)})):n.reservedDataStore&&n.reservedDataStore.hidden||t.push(n);return t}static SortAndFilter(e,t){if(!t)return[];const n=ns._RecursiveRemoveHiddenMeshesAndHoistChildren(t);return e&&e.reservedDataStore&&e.reservedDataStore.detachedChildren&&n.push(...e.reservedDataStore.detachedChildren),n.reverse()}static GetCellInfo(e,t){const n=e.getChildCellInfo(t);let s=parseInt(n.substring(0,n.search(":")));isNaN(s)&&(s=0);let i=parseInt(n.substring(n.search(":")+1));return isNaN(i)&&(i=0),new o.Vector2(s,i)}static ReorderGrid(e,t,n,o){const s=[],i=[],r=e.children.length;for(let n=t;n<r;++n){const n=e.children[t];i.push(n),s.push(ns.GetCellInfo(e,n)),e.removeControl(n)}e.addControl(n,o.x,o.y);for(let t=0;t<i.length;++t)e.addControl(i[t],s[t].x,s[t].y)}}var os,ss=s(59),is={};is.styleTagTransform=ho(),is.setAttributes=po(),is.insert=uo().bind(null,"head"),is.domAPI=lo(),is.insertStyleElement=Lo(),ro()(ss.A,is),ss.A&&ss.A.locals&&ss.A.locals,function(e){e[e.NONE=0]="NONE",e[e.X=2]="X",e[e.Y=3]="Y"}(os||(os={}));class rs extends t.Component{static get addedFonts(){return this._addedFonts}get visibleRegionContainer(){return this._visibleRegionContainer}get panAndZoomContainer(){return this._panAndZoomContainer}set trueRootContainer(e){e!==this._trueRootContainer&&(this._visibleRegionContainer.children.forEach((e=>this._visibleRegionContainer.removeControl(e))),this._visibleRegionContainer.addControl(e),this._trueRootContainer=e,e._host=this.props.globalState.guiTexture)}get trueRootContainer(){return this._trueRootContainer}get guiSize(){return this._guiSize}get pasteDisabled(){return this._pasteDisabled}set guiSize(e){this._guiSize={...e},this._visibleRegionContainer.widthInPixels=this._guiSize.width,this._visibleRegionContainer.heightInPixels=this._guiSize.height,this.props.globalState.onResizeObservable.notifyObservers(this._guiSize),this.props.globalState.onReframeWindowObservable.notifyObservers(),this.props.globalState.onWindowResizeObservable.notifyObservers()}applyEditorTransformation(){const e=this.props.globalState.guiTexture;e._rootContainer!=this._panAndZoomContainer&&(e._rootContainer=this._panAndZoomContainer,this._visibleRegionContainer.addControl(this._trueRootContainer),this.props.globalState.guiTexture.markAsDirty()),e.getSize().width===this._engine.getRenderWidth()&&e.getSize().height===this._engine.getRenderHeight()||e.scaleTo(this._engine.getRenderWidth(),this._engine.getRenderHeight()),e.getSize().width===this._engine.getRenderWidth()&&e.getSize().height===this._engine.getRenderHeight()||e.scaleTo(this._engine.getRenderWidth(),this._engine.getRenderHeight()),this._trueRootContainer.clipContent=!1,this._trueRootContainer.clipChildren=!1}removeEditorTransformation(){const e=this.props.globalState.guiTexture;e._rootContainer!=this._trueRootContainer&&(this._visibleRegionContainer.removeControl(this._trueRootContainer),e._rootContainer=this._trueRootContainer),this._trueRootContainer.clipContent=!0,this._trueRootContainer.clipChildren=!0}_reframeWindow(){this._panningOffset=new o.Vector2(0,0);const e=this._engine.getRenderWidth()/this.guiSize.width,t=this._engine.getRenderHeight()/this.guiSize.height;this._zoomFactor=.9*Math.min(e,t)}constructor(e){super(e),this._setConstraintDirection=!1,this._mouseStartPoint=null,this._constraintDirection=os.NONE,this._isOverGUINode=[],this._doubleClick=null,this._currLeft=0,this._currTop=0,this._controlsHit=[],this._pointerTravelDistance=0,this._processSelectionOnUp=!1,this._centerZoomMousePosition=new o.Vector2(0,0),this._hasPerformedDragZoom=!1,this._defaultGUISize={width:1024,height:1024},this._initialPanningOffset=new o.Vector2(0,0),this._panningOffset=new o.Vector2(0,0),this._zoomFactor=1,this._zoomModeIncrement=.2,this._guiSize=this._defaultGUISize,this._pasteDisabled=!0,this.keyEvent=e=>{"INPUT"!==e.target.nodeName&&(e.shiftKey?this._setConstraintDirection=this._constraintDirection===os.NONE:(this._setConstraintDirection=!1,this._constraintDirection=os.NONE),this.props.globalState.shiftKeyPressed=e.shiftKey&&"keydown"===e.type,"Delete"!==e.key&&"Backspace"!==e.key||this.props.globalState.lockObject.lock||this.props.globalState.deleteSelectedNodes(),this.props.globalState.keys.isKeyDown("control")&&!this.props.globalState.lockObject.lock&&"a"===e.key&&(e.preventDefault(),this.props.globalState.setSelection(this.trueRootContainer.children)))},this.blurEvent=()=>{this._constraintDirection=os.NONE,this.props.globalState.onPointerUpObservable.notifyObservers(null)},this._controlToLinkedMeshMap=new Map,this._observersMap={onPointerDownObservable:new Map,onPointerUpObservable:new Map,onPointerMoveObservable:new Map,onPointerEnterObservable:new Map,onPointerOutObservable:new Map,onPointerClickObservable:new Map,onDisposeObservable:new Map,onIsVisibleChangedObservable:new Map,onBeforeDrawObservable:new Map,onAfterDrawObservable:new Map,onWheelObservable:new Map};const{globalState:n}=e;this._rootContainer=t.createRef(),n.onSelectionChangedObservable.add((()=>this.updateNodeOutlines())),n.onToolChangeObservable.add((()=>{this.forceUpdate()})),n.onFitControlsToWindowObservable.add((()=>{if(n.selectedControls.length){let e=Number.MAX_SAFE_INTEGER,t=Number.MAX_SAFE_INTEGER,s=-Number.MAX_SAFE_INTEGER,i=-Number.MAX_SAFE_INTEGER;for(const r of n.selectedControls){const n=-r.widthInPixels/2,a=-r.heightInPixels/2,l=n+r.widthInPixels,c=a+r.heightInPixels,A=u.NodeToRTTSpace(r,n,a,new o.Vector2,void 0,this.trueRootContainer),d=u.NodeToRTTSpace(r,l,c,new o.Vector2,void 0,this.trueRootContainer),p=u.NodeToRTTSpace(r,n,c,new o.Vector2,void 0,this.trueRootContainer),M=u.NodeToRTTSpace(r,l,a,new o.Vector2,void 0,this.trueRootContainer);e=Math.min(e,A.x,d.x,p.x,M.x),t=Math.min(t,A.y,d.y,p.y,M.y),s=Math.max(s,A.x,d.x,p.x,M.x),i=Math.max(i,A.y,d.y,p.y,M.y)}const r=s-e,a=i-t,l=(e+s)/2,c=(t+i)/2;this._panningOffset=new o.Vector2(-l,c);const A=this._engine.getRenderWidth()/r,d=this._engine.getRenderHeight()/a;this._zoomFactor=.9*Math.min(A,d)}else this._reframeWindow()})),n.onReframeWindowObservable.add((()=>{this._reframeWindow()})),n.onOutlineChangedObservable.add((()=>{this.updateNodeOutlines()})),n.onSelectionChangedObservable.add((()=>{this.updateNodeOutlines()})),n.onParentingChangeObservable.add((e=>{this.parent(e)})),n.hostDocument.addEventListener("keyup",this.keyEvent,!1),n.hostDocument.addEventListener("keydown",this.keyEvent,!1),n.hostDocument.defaultView.addEventListener("blur",this.blurEvent,!1);let s=1;n.onWindowResizeObservable.add((()=>{s+=5})),n.onNewSceneObservable.add((e=>{e&&e.onBeforeRenderObservable.add((()=>{s>0&&(s--,n.onGizmoUpdateRequireObservable.notifyObservers(),this._engine.resize(),n.onArtBoardUpdateRequiredObservable.notifyObservers())}))})),n.onCopyObservable.add((e=>this.copyToClipboard(e))),n.onCutObservable.add((e=>this.cutToClipboard(e))),n.onPasteObservable.add((e=>this.pasteFromClipboard(e))),n.workbench=this,n.onResizeObservable.notifyObservers(this._guiSize),n.onPopupClosedObservable.add((()=>{this.dispose()}))}copyToClipboard(e){this._pasteDisabled=!1;const t=[];for(const e of this.props.globalState.selectedControls){if("Grid"===e.parent?.getClassName()){const t=e.parent.getChildCellInfo(e),[n,o]=t.split(":");e.metadata={...e.metadata,_cellInfo:{row:n,column:o}}}const n={};e.serialize(n),t.push(n),this._currLeft=e.leftInPixels,this._currTop=e.topInPixels}e(JSON.stringify({GUIClipboard:!0,controls:t}))}cutToClipboard(e){this.copyToClipboard(e),this.props.globalState.deleteSelectedNodes()}pasteFromClipboard(e){try{const t=JSON.parse(e);if(t.GUIClipboard){const e=[];for(const n of t.controls)e.push(a.Control.Parse(n,this.props.globalState.guiTexture));"StackPanel"!=e[0].parent?.typeName&&(this._currLeft+=10,this._currTop+=10),e[0].leftInPixels=this._currLeft,e[0].topInPixels=this._currTop;const n=this.props.globalState.workbench.appendBlock(e[0]);if("Grid"===n.parent?.typeName&&n.metadata?._cellInfo){const{row:e,column:t}=n.metadata._cellInfo,o=n.parent;o.removeControl(n),o.addControl(n,parseInt(e),parseInt(t))}return this.props.globalState.setSelection([n]),!0}}catch{}return o.Logger.Warn("Paste attempted, but clipboard content was invalid."),!1}CopyGUIControl(e){const t={};e.serialize(t);const n=a.Control.Parse(t,this.props.globalState.guiTexture);if(n){if(this.props.globalState.workbench.appendBlock(n),this.props.globalState.guiTexture.removeControl(n),"Grid"===e.parent?.typeName){const t=ns.GetCellInfo(e.parent,e);e.parent.addControl(n,t.x,t.y)}else e.parent?.addControl(n);let t=1;for(;this.props.globalState.guiTexture.getDescendants(!1).filter((e=>e.name===`${n.name} Copy ${t}`)).length;)t++;n.name=`${n.name} Copy ${t}`,this.props.globalState.select(n)}}addEditorBehavior(e){e.onPointerUpObservable.add((()=>{this.clicked=!1})),e.onPointerDownObservable.add((t=>{t.buttonIndex>0||this.props.globalState.tool!==p.SELECT||this._controlsHit.push(e)})),e.onPointerEnterObservable.add((()=>{-1===this._isOverGUINode.indexOf(e)&&this._isOverGUINode.push(e)})),e.onPointerOutObservable.add((()=>{const t=this._isOverGUINode.indexOf(e);-1!==t&&this._isOverGUINode.splice(t,1)})),e.onDisposeObservable.add((()=>{const t=this._isOverGUINode.indexOf(e);-1!==t&&this._isOverGUINode.splice(t,1)})),e.metadata={...e.metadata,guiEditor:!0}}removeEditorBehavior(e){e.metadata&&e.metadata.guiEditor&&(delete e.metadata.guiEditor,delete e.metadata.editorUniqueId)}dispose(){this.props.globalState.hostDocument.removeEventListener("keyup",this.keyEvent),this.props.globalState.hostDocument.removeEventListener("keydown",this.keyEvent),this.props.globalState.hostDocument.defaultView.removeEventListener("blur",this.blurEvent),this._guiRenderObserver&&this.props.globalState.guiTexture.onEndRenderObservable.remove(this._guiRenderObserver),this._engine.dispose()}loadFromJson(e){this.removeEditorTransformation(),this.props.globalState.setSelection([]),this.props.globalState.liveGuiTexture?(this.props.globalState.liveGuiTexture?.parseContent(e,!0),this.synchronizeLiveGUI()):this.props.globalState.guiTexture.parseContent(e,!0),this.trueRootContainer=this.props.globalState.guiTexture._rootContainer,this.guiSize=this.props.globalState.guiTexture.getSize(),this.loadToEditor()}loadControlFromJson(e){const t=[];for(const n of e.controls){const e=a.Control.Parse(n,this.props.globalState.guiTexture);t.push(e);const o=this.props.globalState.workbench.appendBlock(e);if("Grid"===o.parent?.typeName&&o.metadata?._cellInfo){const{row:e,column:t}=o.metadata._cellInfo,n=o.parent;n.removeControl(o),n.addControl(o,parseInt(e),parseInt(t))}}this.props.globalState.setSelection(t)}async loadFromSnippet(e){this.removeEditorTransformation(),this.props.globalState.setSelection([]),this.props.globalState.liveGuiTexture?(await(this.props.globalState.liveGuiTexture?.parseFromSnippetAsync(e,!0)),this.synchronizeLiveGUI()):await this.props.globalState.guiTexture.parseFromSnippetAsync(e,!0),this.trueRootContainer=this.props.globalState.guiTexture._rootContainer,this.guiSize=this.props.globalState.guiTexture.getSize(),this.loadToEditor(),this.props.globalState.customLoad&&this.props.globalState.customLoad.action(e).catch((()=>{alert("Unable to load your GUI")}))}loadToEditor(){this.props.globalState.guiTexture.rootContainer.getDescendants().forEach((e=>{const t=e.fontFamily.trim().toLowerCase();-1===rs._addedFonts.indexOf(t)&&rs._addedFonts.push(e.fontFamily),this.addEditorBehavior(e)})),this._isOverGUINode=[],this.props.globalState.setSelection([]),this.props.globalState.onFitControlsToWindowObservable.notifyObservers(),this.props.globalState.onFontsParsedObservable.notifyObservers()}updateNodeOutlines(){for(const e of this._trueRootContainer.getDescendants())e.isHighlighted="Grid"===e.getClassName()&&(this.props.globalState.outlines||this.props.globalState.selectedControls.includes(e)),e.highlightLineWidth=5}appendBlock(e){return this.addEditorBehavior(e),e.getDescendants(!0).forEach((e=>this.addEditorBehavior(e))),0!=this.props.globalState.selectedControls.length?this.props.globalState.selectedControls[0].parent?.addControl(e):this.trueRootContainer.addControl(e),e}parent(e){const t=this.props.globalState.draggedControl,n=t?.parent;if(n&&t&&this._isNotChildInsert(e,t))if(null!=e)if(e instanceof a.Container&&this.props.globalState.draggedControlDirection===d.CENTER)n.removeControl(t),e.addControl(t);else if(e.parent)if("Grid"!==e.parent.typeName){n.removeControl(t);let o=e.parent.children.indexOf(e);const s="StackPanel"===e.parent.typeName||"VirtualKeyboard"===e.parent.typeName;o=this._adjustParentingIndex(o,s),e.parent.children.splice(o,0,t),t.parent=e.parent}else e.parent===n||(n.removeControl(t),e.parent.addControl(t)),this._reorderGrid(e.parent,t,e);else n.removeControl(t),this.trueRootContainer.addControl(t);else n.removeControl(t),this.trueRootContainer.addControl(t),this.trueRootContainer.children.pop(),this.trueRootContainer.children.splice(0,0,t);if(t){const e=t.parent;if(e){if("StackPanel"===e.typeName||"VirtualKeyboard"===e.typeName){const n=e.isVertical;t._width.unit!==a.ValueAndUnit.UNITMODE_PERCENTAGE||n||(u.ConvertToPixels(t,["width"]),this.props.globalState.hostWindow.alert("Warning: Parenting to horizontal stack panel converts width to pixel values")),t._height.unit===a.ValueAndUnit.UNITMODE_PERCENTAGE&&n&&(u.ConvertToPixels(t,["height"]),this.props.globalState.hostWindow.alert("Warning: Parenting to vertical stack panel converts height to pixel values"))}e.markAsDirty()}}this.props.globalState.draggedControl=null}_canClone(){return this.props.globalState.liveGuiTexture&&this.props.globalState.guiTexture&&this.trueRootContainer}_saveObservables(e){e.getDescendants().forEach((e=>{e.linkedMesh&&this._controlToLinkedMeshMap.set(e.metadata.editorUniqueId,e.linkedMesh),Object.keys(this._observersMap).forEach((t=>{const n=e[t];n.hasObservers()&&this._observersMap[t].set(e.metadata.editorUniqueId,n)}))}))}_restoreObservables(e){e.getDescendants().forEach((e=>{if(this._controlToLinkedMeshMap.has(e.metadata?.editorUniqueId)){const t=this._controlToLinkedMeshMap.get(e.metadata.editorUniqueId);t&&e.linkWithMesh(t)}Object.keys(this._observersMap).forEach((t=>{const n=this._observersMap[t].get(e.metadata?.editorUniqueId);n&&(e[t]=n)}))})),this._controlToLinkedMeshMap.clear(),Object.keys(this._observersMap).forEach((e=>{this._observersMap[e].clear()}))}_copyEditorGUIToLiveGUI(){if(this._canClone()){const e=this.props.globalState.liveGuiTexture.rootContainer;this._saveObservables(e),e.clearControls();const t=new Map,n=this.trueRootContainer.children.slice(0);for(const o of n){const n=o.clone(this.props.globalState.liveGuiTexture);t.set(o,n),e.addControl(n)}this._restoreObservables(e),this._syncConnectedLines(n,t)}}_reorderGrid(e,t,n){const o=ns.GetCellInfo(e,t);e.removeControl(t);let s=e.children.indexOf(n);s=this._adjustParentingIndex(s),ns.ReorderGrid(e,s,t,o)}_isNotChildInsert(e,t){for(;e?.parent;){if(e.parent==t)return!1;e=e.parent}return!0}_adjustParentingIndex(e,t=!1){switch(this.props.globalState.draggedControlDirection){case d.ABOVE:return t?e:e+1;case d.BELOW:case d.CENTER:return t?e+1:e}return e}isSelected(e,t){this.props.globalState.select(t)}_onMove(e,t,n){const s=[];e._top.unit===a.ValueAndUnit.UNITMODE_PERCENTAGE&&s.push("top"),e._left.unit===a.ValueAndUnit.UNITMODE_PERCENTAGE&&s.push("left");let i=t.x-n.x,r=t.y-n.y;this._setConstraintDirection&&(this._setConstraintDirection=!1,this._constraintDirection=Math.abs(i)>=Math.abs(r)?os.X:os.Y),this._constraintDirection===os.X?r=0:this._constraintDirection===os.Y&&(i=0);const l=new o.Vector2(i,r);if("Line"===e.typeName){const t=e,n=t.x1.substring(0,t.x1.length-2),o=t.x2.substring(0,t.x2.length-2),s=t.y1.substring(0,t.y1.length-2),a=t.y2.substring(0,t.y2.length-2);return t.x1=(Number(n)+i).toFixed(2),t.x2=(Number(o)+i).toFixed(2),t.y1=(Number(s)+r).toFixed(2),t.y2=(Number(a)+r).toFixed(2),void this.props.globalState.onPropertyGridUpdateRequiredObservable.notifyObservers()}let c=0,A=e.parent;for(;A;)c+=A.rotation,A=A.parent;const d=new o.Vector2(0,0),p=Math.sin(-c),M=Math.cos(-c);d.x=M*l.x-p*l.y,d.y=p*l.x+M*l.y,e.leftInPixels+=d.x,e.topInPixels+=d.y,u.ConvertToPercentage(e,s),this.props.globalState.onPropertyGridUpdateRequiredObservable.notifyObservers()}onMove(e){const t=this.getScaledPointerPosition();null==this._mouseStartPoint||this._panning||(this.props.globalState.selectedControls.forEach((e=>{t&&this._onMove(e,t,this._mouseStartPoint)})),this._mouseStartPoint=t||this._mouseStartPoint),this._pointerTravelDistance+=e.movementX*e.movementX+e.movementY*e.movementY,this._panning&&this.panning()}_screenToTexturePosition(e){const t=new o.Vector2(this._zoomFactor,this._zoomFactor);return e.divideInPlace(t).add(this._panningOffset)}getScaledPointerPosition(){return this._screenToTexturePosition(new o.Vector2(this._scene.pointerX,this._scene.pointerY))}startPanning(){this._panning=!0,this._initialPanningOffset=this.getScaledPointerPosition()}endPanning(){this._panning=!1}processSelection(){if(this.props.globalState.usePrevSelected)this.props.globalState.usePrevSelected=!1;else if(0!==this._controlsHit.length){for(const e of this._controlsHit)if(this.props.globalState.selectedControls.includes(e.parent)){if(this._doubleClick===e)return void this.props.globalState.select(e);this._doubleClick=e,window.setTimeout((()=>{this._doubleClick=null}),300)}for(const e of this._controlsHit)for(const t of this.props.globalState.selectedControls){if(t.parent===e.parent)return void this.props.globalState.select(e);break}for(const e of this._controlsHit)e.parent===this._trueRootContainer&&this.props.globalState.select(e)}else this.props.globalState.setSelection([])}onDown(e){this._pointerTravelDistance=0,this._rootContainer.current?.setPointerCapture(e.pointerId),this.props.globalState.tool===p.SELECT&&(this._mouseStartPoint=this.getScaledPointerPosition()),this.props.globalState.tool===p.ZOOM&&this._centerZoomMousePosition.set(this._scene.pointerX,this._scene.pointerY),4&e.buttons||this.props.globalState.tool===p.PAN?this.startPanning():(this.endPanning(),0!==this.props.globalState.selectedControls.length&&(this._processSelectionOnUp=!0),this._scene.onAfterRenderObservable.addOnce((()=>{this._processSelectionOnUp&&0!==this._controlsHit.filter((e=>this.props.globalState.selectedControls.includes(e))).length||(this.processSelection(),this._controlsHit=[],this._processSelectionOnUp=!1)})))}onUp(e){this.props.globalState.tool!==p.ZOOM||this._hasPerformedDragZoom||(this._panZoomToCenter(1e3*this._zoomModeIncrement,new o.Vector2(this._scene.pointerX,this._scene.pointerY)),this.zooming(1+(this.props.globalState.keys.isKeyDown("alt")?-this._zoomModeIncrement:this._zoomModeIncrement))),this._hasPerformedDragZoom=!1,this._mouseStartPoint=null,this._centerZoomMousePosition.set(0,0),this._constraintDirection=os.NONE,this._rootContainer.current?.releasePointerCapture(e.pointerId),this._panning=!1,this._processSelectionOnUp&&(Math.sqrt(this._pointerTravelDistance)<=5&&this.processSelection(),this._controlsHit=[],this._processSelectionOnUp=!1)}_syncConnectedLines(e,t){for(const n of e)if("Line"===n.getClassName()){const e=n;if(e.connectedControl){const n=e.connectedControl,o=t.get(e),s=t.get(n);o&&s&&(o.connectedControl=s)}}}_copyLiveGUIToEditorGUI(){if(this.props.globalState.liveGuiTexture&&this.trueRootContainer){this.props.globalState.liveGuiTexture.rootContainer.getDescendants().forEach((e=>{e.metadata={...e.metadata??{},editorUniqueId:(0,o.RandomGUID)()}})),this.trueRootContainer.clearControls();const e=new Map;for(const t of this.props.globalState.liveGuiTexture.rootContainer.children){const n=t.clone(this.props.globalState.guiTexture);e.set(t,n),this.appendBlock(n)}this._syncConnectedLines(this.props.globalState.liveGuiTexture.rootContainer.children,e)}}createGUICanvas(e){const t=this._rootContainer.current;this._engine=new o.Engine(t),this._scene=new o.Scene(this._engine),this._scene.clearColor=new o.Color4(0,0,0,0),new o.HemisphericLight("light1",o.Axis.Y,this._scene).intensity=.9,this.props.globalState.liveGuiTexture?(this._guiSize.width=this.props.globalState.liveGuiTexture.getSize().width,this._guiSize.height=this.props.globalState.liveGuiTexture.getSize().height,t.width=this._guiSize.width,t.height=this._guiSize.height):(this._guiSize.width=o.DataStorage.ReadNumber("GUIEditorWidth",1024),this._guiSize.height=o.DataStorage.ReadNumber("GUIEditorHeight",1024)),this._panAndZoomContainer=new a.Container("panAndZoom"),this._panAndZoomContainer.clipContent=!1,this._panAndZoomContainer.clipChildren=!1,this._visibleRegionContainer=new a.Container("visibleRegion"),this._visibleRegionContainer.clipChildren=!1,this._visibleRegionContainer.clipContent=!1,this._visibleRegionContainer.widthInPixels=this.guiSize.width,this._visibleRegionContainer.heightInPixels=this.guiSize.height,this._panAndZoomContainer.addControl(this._visibleRegionContainer);const n=this.props.globalState.guiTexture=this._visibleRegionContainer._host=this._panAndZoomContainer._host=a.AdvancedDynamicTexture.CreateFullscreenUI("guiTexture",!0,this._scene,o.Texture.NEAREST_NEAREST_MIPNEAREST,!1);n.useInvalidateRectOptimization=!1,this.trueRootContainer=n.rootContainer,n.onEndRenderObservable.add((()=>this.props.globalState.onGizmoUpdateRequireObservable.notifyObservers())),this._copyLiveGUIToEditorGUI(),new o.ArcRotateCamera("Camera",0,0,0,o.Vector3.Zero(),this._scene),this.addControls(this._scene),this._scene.getEngine().onCanvasPointerOutObservable.clear(),this._scene.doNotHandleCursors=!0,this.props.globalState.hostWindow.addEventListener("resize",(()=>{this.props.globalState.onWindowResizeObservable.notifyObservers(),this._scene.onBeforeRenderObservable.addOnce((()=>{this.props.globalState.onWindowResizeObservable.notifyObservers()}))})),this.props.globalState.onWindowResizeObservable.notifyObservers(),this.props.globalState.guiTexture.onBeginRenderObservable.add((()=>{this.applyEditorTransformation()})),this.props.globalState.onPropertyChangedObservable.add((e=>{e.object.markAsDirty(!1),this.props.globalState.onWindowResizeObservable.notifyObservers()}));const s=function(e){let t=0;return function(...n){const o=Date.now();o-t<33||(t=o,e(...n))}}((()=>{this._copyEditorGUIToLiveGUI()}));this.props.globalState.liveGuiTexture&&(this._guiRenderObserver=this.props.globalState.guiTexture.onEndRenderObservable.add(s)),this._engine.runRenderLoop((()=>{this._scene.render()})),this.props.globalState.onNewSceneObservable.notifyObservers(this.props.globalState.guiTexture.getScene()),this.props.globalState.onPropertyGridUpdateRequiredObservable.notifyObservers(),this.props.globalState.onFitControlsToWindowObservable.notifyObservers()}synchronizeLiveGUI(){this.props.globalState.liveGuiTexture&&(this._trueRootContainer.getDescendants().forEach((e=>e.dispose())),this.props.globalState.liveGuiTexture.rootContainer.getDescendants(!0).forEach((e=>{this.props.globalState.liveGuiTexture?.removeControl(e),this.appendBlock(e)})),this.props.globalState.guiTexture.snippetId=this.props.globalState.liveGuiTexture.snippetId)}addControls(e){e.onKeyboardObservable.add((e=>{switch(e.event.key){case"ArrowUp":this.moveControls(!1,e.event.shiftKey?-5:-1);break;case"ArrowDown":this.moveControls(!1,e.event.shiftKey?5:1);break;case"ArrowLeft":this.moveControls(!0,e.event.shiftKey?-5:-1);break;case"ArrowRight":this.moveControls(!0,e.event.shiftKey?5:1)}}),o.KeyboardEventTypes.KEYDOWN),e.onBeforeRenderObservable.add((()=>{this._panAndZoomContainer.scaleX!==this._zoomFactor&&(this._panAndZoomContainer.scaleX=this._zoomFactor,this._panAndZoomContainer.scaleY=this._zoomFactor,this.props.globalState.onArtBoardUpdateRequiredObservable.notifyObservers(),this.props.globalState.onGizmoUpdateRequireObservable.notifyObservers());const e=this._zoomFactor*this._panningOffset.x,t=this._zoomFactor*-this._panningOffset.y;this._panAndZoomContainer.leftInPixels===e&&this._panAndZoomContainer.topInPixels===t||(this._panAndZoomContainer.leftInPixels=e,this._panAndZoomContainer.topInPixels=t,this.props.globalState.onArtBoardUpdateRequiredObservable.notifyObservers(),this.props.globalState.onGizmoUpdateRequireObservable.notifyObservers())}))}panning(){const e=this.getScaledPointerPosition().subtract(this._initialPanningOffset).multiplyByFloats(1,-1);this._panningOffset=this._panningOffset.add(e),this._initialPanningOffset=this.getScaledPointerPosition(),this.props.globalState.onWindowResizeObservable.notifyObservers()}moveControls(e,t){for(const n of this.props.globalState.selectedControls)if(e){const e=n.leftInPixels;n.leftInPixels+=t,this.props.globalState.onPropertyChangedObservable.notifyObservers({object:n,property:"leftInPixels",value:n.leftInPixels,initialValue:e}),this.props.globalState.onPropertyGridUpdateRequiredObservable.notifyObservers()}else{const e=n.topInPixels;n.topInPixels+=t,this.props.globalState.onPropertyChangedObservable.notifyObservers({object:n,property:"topInPixels",value:n.topInPixels,initialValue:e}),this.props.globalState.onPropertyGridUpdateRequiredObservable.notifyObservers()}}zoomWheel(e){let t=0;e.deltaY?t=-e.deltaY:e.detail&&(t=-e.detail);const n=new o.Vector2(this._scene.pointerX,this._scene.pointerY);this._panZoomToCenter(t,n),this.zooming(1+t/1e3)}_panZoomToCenter(e,t){const n=u.MousePointerToRTTSpace(this.trueRootContainer,t.x,t.y),o=u.RttToLocalNodeSpace(this.trueRootContainer,n.x,n.y),s=u.MousePointerToRTTSpace(this.trueRootContainer,this._engine.getRenderWidth()/2,this._engine.getRenderHeight()/2),i=u.RttToLocalNodeSpace(this.trueRootContainer,s.x,s.y),r=-e/1e3,a=o.subtract(i).scale(r).multiplyByFloats(1,-1);this._panningOffset.addInPlace(a)}zoomDrag(e){let t=0;0!==e.movementY&&(t=-e.movementY),this._hasPerformedDragZoom=!0,this._panZoomToCenter(t,this._centerZoomMousePosition),this.zooming(1+t/1e3)}zooming(e){this._zoomFactor*=e}zeroIfClose(e){Math.abs(e.x)<o.Epsilon&&(e.x=0),Math.abs(e.y)<o.Epsilon&&(e.y=0),Math.abs(e.z)<o.Epsilon&&(e.z=0)}render(){let e="default";return this.props.globalState.tool===p.PAN?e="grab":this.props.globalState.tool===p.ZOOM&&(e=this.props.globalState.keys.isKeyDown("alt")?"zoom-out":"zoom-in"),(0,L.jsx)("canvas",{id:"workbench-canvas",onPointerMove:e=>{this._mouseDown&&this.props.globalState.tool===p.ZOOM&&this.zoomDrag(e),this.props.globalState.guiTexture&&this.onMove(e),this.props.globalState.onPointerMoveObservable.notifyObservers(e)},onPointerDown:e=>{this.onDown(e),0===this._controlsHit.length?this._mouseDown=!0:this._mouseDown=!1},onPointerUp:e=>{this.onUp(e),this.props.globalState.onPointerUpObservable.notifyObservers(e),this._mouseDown=!1},onWheel:e=>this.zoomWheel(e),onContextMenu:e=>e.preventDefault(),ref:this._rootContainer,style:{cursor:e}})}}rs._addedFonts=[];class as{static CreatePopup(e,t,n=300,o=800){const s={width:n,height:o,top:(window.innerHeight-n)/2+window.screenY,left:(window.innerWidth-o)/2+window.screenX},i=Object.keys(s).map((e=>e+"="+s[e])).join(","),r=window.open("",e,i);if(!r)return null;const a=r.document,l=a.createElement("link");l.rel="stylesheet",l.href="https://use.typekit.net/cta4xsb.css",a.head.appendChild(l),a.title=e,a.body.style.width="100%",a.body.style.height="100%",a.body.style.margin="0",a.body.style.padding="0";const c=a.createElement("div");return c.style.width="100%",c.style.height="100%",c.style.margin="0",c.style.padding="0",r.document.body.appendChild(c),this._CopyStyles(window.document,a),setTimeout((()=>{this._CopyStyles(window.document,a)}),0),this[t]=r,c}static _CopyStyles(e,t){for(let n=0;n<e.styleSheets.length;n++){const o=e.styleSheets[n];try{if(o.cssRules){const n=e.createElement("style");for(const t of o.cssRules)n.appendChild(e.createTextNode(t.cssText));t.head.appendChild(n)}else if(o.href){const n=e.createElement("link");n.rel="stylesheet",n.href=o.href,t.head.appendChild(n)}}catch(e){console.log(e)}}}}class ls extends t.Component{constructor(e){super(e),this._onControlVisibilityChangedObservers=[],this.state={fontFamilyOptions:JSON.parse(String(window.sessionStorage.getItem("fonts")))??[{label:"Arial",value:1},{label:"Verdana",value:2},{label:"Helvetica",value:3},{label:"Trebuchet MS",value:4},{label:"Times New Roman",value:5},{label:"Georgia",value:6},{label:"Garamond",value:7},{label:"Courier New",value:8},{label:"Brush Script MT",value:9}]};const t=this.props.controls;for(const e of t){const t=this._getTransformedReferenceCoordinate(e);e.metadata||(e.metadata={}),e.metadata._previousCenter=t;const n=e.onIsVisibleChangedObservable.add((()=>{this.forceUpdate()}));this._onControlVisibilityChangedObservers.push(n)}this._onFontsParsedObserver=this.props.onFontsParsedObservable?.add((()=>{this._checkFontsInLayout()})),this._onPropertyChangedObserver=this.props.onPropertyChangedObservable?.add((e=>{const n="transformCenterX"===e.property||"transformCenterY"===e.property;for(const o of t){let t=this._getTransformedReferenceCoordinate(o);if(n&&o.metadata._previousCenter){const e=t.subtract(o.metadata._previousCenter);o.leftInPixels-=e.x,o.topInPixels-=e.y,t=this._getTransformedReferenceCoordinate(o)}o.metadata._previousCenter=t,"TextBlock"!==o.getClassName()||"width"!==e.property&&"height"!==e.property||(o.resizeToFit=!1)}}))}componentWillMount(){this._checkFontsInLayout()}_checkFontsInLayout(){const e=[];for(const t of this.state.fontFamilyOptions.values())document.fonts.check(`12px "${t.label}"`)&&"Custom Font"!=t.label&&e.push(t);const t=rs.addedFonts;for(let n=0;n<t.length;n++){const o=t[n].trim();e.push({label:o,value:o})}this.setState({fontFamilyOptions:e}),window.sessionStorage.setItem("fonts",JSON.stringify(e))}_addFont(e){const t=e.trim();t.length>0&&(this.state.fontFamilyOptions.find((({value:t})=>t===e))||this.setState((e=>(e.fontFamilyOptions.push({label:t,value:t}),e)),this._checkFontsInLayout))}_getTransformedReferenceCoordinate(e){const t=u.GetNodeMatrix(e),n=new o.Vector2(1,1);return t.transformCoordinates(1,1,n),n}_updateAlignment(e,t){for(const n of this.props.controls)"TextBlock"===n.typeName&&!1===n.resizeToFit?n["text"+e.charAt(0).toUpperCase()+e.slice(1)]=t:n[e]=t;this.forceUpdate()}_checkAndUpdateValues(e,t){for(const n of this.props.controls){let o=n["_"+e].isPercentage;const s="-"===t.charAt(0);"%"===t.charAt(t.length-1)?o=!0:"x"===t.charAt(t.length-1)&&"p"===t.charAt(t.length-2)&&(o=!1),"StackPanel"===n.parent?.typeName&&(o=!1);let i=t.match(/([\d.,]+)/g)?.[0];i||(i="0"),i=(s?"-":"")+i,i+=o?"%":"px";const r=n[e];n[e]=i,this.props.onPropertyChangedObservable?.notifyObservers({object:n,property:e,initialValue:r,value:n[e]})}}_addOrUpdateMetadata(e){for(const t of this.props.controls){const n=t.metadata;for(const t in e){const n=e[t];isNaN(n)||isNaN(parseFloat(n))?"true"===n.trim()?e[t]=!0:"false"===n.trim()&&(e[t]=!1):e[t]=parseFloat(n)}const o=Object.assign({},t.metadata,e);t.metadata=o,this.props.onPropertyChangedObservable?.notifyObservers({object:t,property:"metadata",initialValue:n,value:o})}}_removeFromMetadata(e){for(const t of this.props.controls){const n=Object.assign({},t.metadata);delete t.metadata[e],this.props.onPropertyChangedObservable?.notifyObservers({object:t,property:"metadata",initialValue:n,value:t.metadata})}}_getCommonPropertyKeys(e){if(0===(e=e.filter((e=>!!e))).length)return[];if(1===e.length)return Object.keys(e[0]);const[t,...n]=e;return Object.keys(t).filter((e=>n.every((t=>e in t))))}_markChildrenAsDirty(){for(const e of this.props.controls)e instanceof a.Container&&e._children.forEach((e=>{e._markAsDirty()}))}componentWillUnmount(){this._onPropertyChangedObserver&&this.props.onPropertyChangedObservable?.remove(this._onPropertyChangedObserver),this._onFontsParsedObserver&&this.props.onFontsParsedObservable?.remove(this._onFontsParsedObserver);for(let e=0;e<this._onControlVisibilityChangedObservers.length;e++)this.props.controls[e].onIsVisibleChangedObservable.remove(this._onControlVisibilityChangedObservers[e])}_filterFontDuplicates(e){const t=new Set;return e.filter((e=>{const n=e.value,o=t.has(n);return t.add(n),!o}))}render(){const e=this.props.controls,t=e[0];let n=t.horizontalAlignment,o=t.verticalAlignment;for(const t of e)t.horizontalAlignment!==n&&(n=a.Control.HORIZONTAL_ALIGNMENT_CENTER),t.verticalAlignment!==o&&(o=a.Control.VERTICAL_ALIGNMENT_CENTER);e.every((e=>"TextBlock"===e.typeName&&!1===e.resizeToFit))&&(n=t.textHorizontalAlignment,o=t.textVerticalAlignment);const s=t instanceof a.Container||"TextBlock"===t.typeName||"InputText"===t.typeName||"InputPassword"===t.typeName,i=y(e,this.props.onPropertyChangedObservable),r=t=>{const n=e.map((e=>e[t]._value)),o=n[0];if(n.every((e=>e===o))){const e=l(t);return"%"===e?(100*o).toFixed(2):"PX"===e?o.toFixed(2):b}return b},l=t=>{const n=e.map((e=>e[t]._unit)),o=n[0];return n.every((e=>e===o))?o===a.ValueAndUnit.UNITMODE_PIXEL?"PX":"%":b},c=(t,n,o,s)=>{for(const i of e){const e=i[t],r=i["_"+t]._unit;let l=i[`${t}InPixels`]+n;void 0!==o&&l<o&&(l=o),void 0!==s&&l>s&&(l=s),i[`${t}InPixels`]=l,r===a.ValueAndUnit.UNITMODE_PERCENTAGE&&u.ConvertToPercentage(i,[t]),this.props.onPropertyChangedObservable?.notifyObservers({object:i,property:t,initialValue:e,value:i[t]})}},A=(t,n)=>{for(const o of e)"PX"===t?u.ConvertToPercentage(o,[n],this.props.onPropertyChangedObservable):u.ConvertToPixels(o,[n],this.props.onPropertyChangedObservable)};let d=!1,p=!1,M=!1,C=!1;const g=e[0].parent,w=this._filterFontDuplicates(this.state.fontFamilyOptions.filter((({label:e})=>"Custom Font"!==e)).map((({label:e,value:t})=>({label:e,value:e,id:t.toString()}))));return"StackPanel"!==g?.getClassName()&&"VirtualKeyboard"!==g?.getClassName()||(g.isVertical?(p=!0,C=!0):(d=!0,M=!0)),(0,L.jsxs)("div",{children:[!this.props.hideDimensions&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:"ge-divider alignment-bar",children:[(0,L.jsx)(v,{tooltip:"Left",icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMjIuMyw5LjkzQTIuMjMsMi4yMywwLDAsMCwyMC4wNyw3LjdIOS45M0EyLjIzLDIuMjMsMCwwLDAsNy43LDkuOTNWMjAuMDdBMi4yMywyLjIzLDAsMCwwLDkuOTMsMjIuM0gyMC4wN2EyLjIzLDIuMjMsMCwwLDAsMi4yMy0yLjIzWm0tMTIuMzctMUgyMC4wN2ExLDEsMCwwLDEsMSwxVjIwLjA3YTEsMSwwLDAsMS0xLDFIOS45M2ExLDEsMCwwLDEtMS0xVjkuOTNBMSwxLDAsMCwxLDkuOTMsOC45MVoiIHN0eWxlPSJmaWxsOiMzMzMiLz48cGF0aCBkPSJNMTAuNzYsMTMuMzloOC40NmEuNi42LDAsMCwxLC4wOCwxLjJIMTAuNzZhLjYuNiwwLDAsMS0uMDgtMS4yWiIgc3R5bGU9ImZpbGw6IzMzMyIvPjxwYXRoIGQ9Ik0xMC43NiwxNS44Mmg1LjQxYS42LjYsMCwwLDEsLjA4LDEuMkgxMC43NmEuNi42LDAsMCwxLS4wOC0xLjJaIiBzdHlsZT0iZmlsbDojMzMzIi8+PC9zdmc+",shortcut:"",isActive:n===a.Control.HORIZONTAL_ALIGNMENT_LEFT,onClick:()=>{this._updateAlignment("horizontalAlignment",a.Control.HORIZONTAL_ALIGNMENT_LEFT)},disabled:d}),(0,L.jsx)(v,{tooltip:"Center",icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMjIuMyw5LjkzQTIuMjMsMi4yMywwLDAsMCwyMC4wNyw3LjdIOS45M0EyLjIzLDIuMjMsMCwwLDAsNy43LDkuOTNWMjAuMDdBMi4yMywyLjIzLDAsMCwwLDkuOTMsMjIuM0gyMC4wN2EyLjIzLDIuMjMsMCwwLDAsMi4yMy0yLjIzWm0tMTIuMzctMUgyMC4wN2ExLDEsMCwwLDEsMSwxVjIwLjA3YTEsMSwwLDAsMS0xLDFIOS45M2ExLDEsMCwwLDEtMS0xVjkuOTNBMSwxLDAsMCwxLDkuOTMsOC45MVoiIHN0eWxlPSJmaWxsOiMzMzMiLz48cGF0aCBkPSJNMTAuNzYsMTMuMzloOC40NmEuNi42LDAsMCwxLC4wOCwxLjJIMTAuNzZhLjYuNiwwLDAsMS0uMDgtMS4yWiIgc3R5bGU9ImZpbGw6IzMzMyIvPjxwYXRoIGQ9Ik0xMi4zLDE1LjgyaDUuNGEuNi42LDAsMCwxLC4wOSwxLjJIMTIuM2EuNi42LDAsMCwxLS4wOS0xLjJaIiBzdHlsZT0iZmlsbDojMzMzIi8+PC9zdmc+",shortcut:"",isActive:n===a.Control.HORIZONTAL_ALIGNMENT_CENTER,onClick:()=>{this._updateAlignment("horizontalAlignment",a.Control.HORIZONTAL_ALIGNMENT_CENTER)},disabled:d}),(0,L.jsx)(v,{tooltip:"Right",icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMjIuMyw5LjkzQTIuMjMsMi4yMywwLDAsMCwyMC4wNyw3LjdIOS45M0EyLjIzLDIuMjMsMCwwLDAsNy43LDkuOTNWMjAuMDdBMi4yMywyLjIzLDAsMCwwLDkuOTMsMjIuM0gyMC4wN2EyLjIzLDIuMjMsMCwwLDAsMi4yMy0yLjIzWm0tMTIuMzctMUgyMC4wN2ExLDEsMCwwLDEsMSwxVjIwLjA3YTEsMSwwLDAsMS0xLDFIOS45M2ExLDEsMCwwLDEtMS0xVjkuOTNBMSwxLDAsMCwxLDkuOTMsOC45MVoiIHN0eWxlPSJmaWxsOiMzMzMiLz48cGF0aCBkPSJNMTAuNzYsMTMuMzloOC40NmEuNi42LDAsMCwxLC4wOCwxLjJIMTAuNzZhLjYuNiwwLDAsMS0uMDgtMS4yWiIgc3R5bGU9ImZpbGw6IzMzMyIvPjxwYXRoIGQ9Ik0xMy44MSwxNS44Mmg1LjQxQS42LjYsMCwwLDEsMTkuMywxN0gxMy44MWEuNi42LDAsMCwxLS4wOC0xLjJaIiBzdHlsZT0iZmlsbDojMzMzIi8+PC9zdmc+",shortcut:"",isActive:n===a.Control.HORIZONTAL_ALIGNMENT_RIGHT,onClick:()=>{this._updateAlignment("horizontalAlignment",a.Control.HORIZONTAL_ALIGNMENT_RIGHT)},disabled:d}),(0,L.jsx)(v,{tooltip:"Top",icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMjIuMjksOS45NGEyLjIzLDIuMjMsMCwwLDAtMi4yMy0yLjIzSDkuOTRBMi4yMywyLjIzLDAsMCwwLDcuNzEsOS45NFYyMC4wNmEyLjIzLDIuMjMsMCwwLDAsMi4yMywyLjIzSDIwLjA2YTIuMjMsMi4yMywwLDAsMCwyLjIzLTIuMjNabS0xMi4zNS0xSDIwLjA2YTEsMSwwLDAsMSwxLDFWMjAuMDZhMSwxLDAsMCwxLTEsMUg5Ljk0YTEsMSwwLDAsMS0xLTFWOS45NEExLDEsMCwwLDEsOS45NCw4LjkyWm0uODEsMi40M2g4LjVhLjYxLjYxLDAsMCwxLC42MS42MS42LjYsMCwwLDEtLjUyLjZIMTAuNzVhLjYxLjYxLDAsMCwxLS4wOS0xLjIxWm04LjUsMi40M0gxMC42NkEuNjEuNjEsMCwwLDAsMTAuNzUsMTVoOC41OWEuNi42LDAsMCwwLC41Mi0uNkEuNjEuNjEsMCwwLDAsMTkuMjUsMTMuNzhaIiBzdHlsZT0iZmlsbDojMzMzIi8+PC9zdmc+",shortcut:"",isActive:o===a.Control.VERTICAL_ALIGNMENT_TOP,onClick:()=>{this._updateAlignment("verticalAlignment",a.Control.VERTICAL_ALIGNMENT_TOP)},disabled:p}),(0,L.jsx)(v,{tooltip:"Center",icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMTEsMTMuMzloOGEuNzIuNzIsMCwwLDEsLjguNjEuNjkuNjksMCwwLDEtLjY5LjU5SDExYy0uNDQsMC0uOC0uMjctLjgtLjZhLjY5LjY5LDAsMCwxLC42OS0uNloiIHN0eWxlPSJmaWxsOiMzMzMiLz48cGF0aCBkPSJNMTksMTUuOEgxMC44N2EuNjkuNjksMCwwLDAtLjY5LjZjMCwuMzMuMzYuNi44LjZoOC4xNWEuNjkuNjksMCwwLDAsLjY5LS41OUEuNzIuNzIsMCwwLDAsMTksMTUuOFoiIHN0eWxlPSJmaWxsOiMzMzMiLz48cGF0aCBkPSJNMjIuMjMsMTBBMi4yMSwyLjIxLDAsMCwwLDIwLDcuNzdIMTBBMi4yMSwyLjIxLDAsMCwwLDcuNzcsMTBWMjBBMi4yMSwyLjIxLDAsMCwwLDEwLDIyLjIzSDIwQTIuMjEsMi4yMSwwLDAsMCwyMi4yMywyMFpNMTAsOUgyMGExLDEsMCwwLDEsMSwxVjIwYTEsMSwwLDAsMS0xLDFIMTBhMSwxLDAsMCwxLTEtMVYxMEExLDEsMCwwLDEsMTAsOVoiIHN0eWxlPSJmaWxsOiMzMzMiLz48L3N2Zz4=",shortcut:"",isActive:o===a.Control.VERTICAL_ALIGNMENT_CENTER,onClick:()=>{this._updateAlignment("verticalAlignment",a.Control.VERTICAL_ALIGNMENT_CENTER)},disabled:p}),(0,L.jsx)(v,{tooltip:"Bottom",icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMTAuNzcsMTYuMjFoOC40NmEuNi42LDAsMCwxLC4wOCwxLjJIMTAuNzdhLjYxLjYxLDAsMCwxLS4wOC0xLjIxWiIgc3R5bGU9ImZpbGw6IzMzMyIvPjxwYXRoIGQ9Ik0xOS4yMywxOC42M0gxMC42OWEuNi42LDAsMCwwLC4wOCwxLjJoOC41NGEuNi42LDAsMCwwLS4wOC0xLjJaIiBzdHlsZT0iZmlsbDojMzMzIi8+PHBhdGggZD0iTTIyLjI1LDEwQTIuMjEsMi4yMSwwLDAsMCwyMCw3Ljc1SDEwQTIuMjEsMi4yMSwwLDAsMCw3Ljc1LDEwVjIwQTIuMjEsMi4yMSwwLDAsMCwxMCwyMi4yNUgyMEEyLjIxLDIuMjEsMCwwLDAsMjIuMjUsMjBaTTEwLDlIMjBhMSwxLDAsMCwxLDEsMVYyMGExLDEsMCwwLDEtMSwxSDEwYTEsMSwwLDAsMS0xLTFWMTBBMSwxLDAsMCwxLDEwLDlaIiBzdHlsZT0iZmlsbDojMzMzIi8+PC9zdmc+",shortcut:"",isActive:o===a.Control.VERTICAL_ALIGNMENT_BOTTOM,onClick:()=>{this._updateAlignment("verticalAlignment",a.Control.VERTICAL_ALIGNMENT_BOTTOM)},disabled:p})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMTYuNTEsMTVhLjYxLjYxLDAsMCwwLC42MS42aDQuNTlsLS41OC41OGEuNi42LDAsMCwwLDAsLjg2LjU5LjU5LDAsMCwwLC44NSwwbDEuNjItMS42MWEuNjIuNjIsMCwwLDAsMC0uODZMMjIsMTNhLjYuNiwwLDEsMC0uODUuODVsLjU4LjU4SDE3LjEyQS42MS42MSwwLDAsMCwxNi41MSwxNVptLTMuNjMtLjYxSDguMjlsLjU4LS41OEEuNi42LDAsMSwwLDgsMTNMNi40LDE0LjU4YS42Mi42MiwwLDAsMCwwLC44Nkw4LDE3LjA1YS41OS41OSwwLDAsMCwuODUsMCwuNi42LDAsMCwwLDAtLjg2bC0uNTgtLjU4aDQuNTlhLjYxLjYxLDAsMSwwLDAtMS4yMVpNMTUsMTMuNDlhLjYxLjYxLDAsMCwwLC42LS42MVY4LjI5bC41OC41OGEuNi42LDAsMCwwLC44NiwwQS42MS42MSwwLDAsMCwxNyw4TDE1LjM5LDYuNGEuNjEuNjEsMCwwLDAtLjg1LDBMMTIuOTIsOGEuNjEuNjEsMCwwLDAsMCwuODUuNi42LDAsMCwwLC44NiwwbC41OC0uNTh2NC41OUEuNjEuNjEsMCwwLDAsMTUsMTMuNDlabS0uNjEsMy42M3Y0LjU5bC0uNTgtLjU4YS42LjYsMCwwLDAtLjg2LDAsLjYxLjYxLDAsMCwwLDAsLjg1bDEuNjIsMS42MmEuNjEuNjEsMCwwLDAsLjg1LDBMMTcsMjJhLjYxLjYxLDAsMCwwLDAtLjg1LjYuNiwwLDAsMC0uODYsMGwtLjU4LjU4VjE3LjEyYS42MS42MSwwLDEsMC0xLjIxLDBaIiBzdHlsZT0iZmlsbDojMzMzIi8+PC9zdmc+",label:"Position"}),(0,L.jsx)(I,{numbersOnly:!0,lockObject:this.props.lockObject,label:"X",delayInput:!0,value:r("_left"),onChange:e=>this._checkAndUpdateValues("left",e),unit:(0,L.jsx)(ts,{unit:l("_left"),onClick:e=>A(e,"left")}),arrows:!0,arrowsIncrement:e=>c("left",e)}),(0,L.jsx)(I,{numbersOnly:!0,lockObject:this.props.lockObject,label:"Y",delayInput:!0,value:r("_top"),onChange:e=>this._checkAndUpdateValues("top",e),unit:(0,L.jsx)(ts,{unit:l("_top"),onClick:e=>A(e,"top")}),arrows:!0,arrowsIncrement:e=>c("top",e)})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:Qo,label:"Size"}),(0,L.jsx)(I,{numbersOnly:!0,lockObject:this.props.lockObject,label:"W",delayInput:!0,value:r("_width"),onChange:t=>{for(const n of e)"Image"===n.typeName?n.autoScale=!1:n instanceof a.Container?n.adaptWidthToChildren=!1:"ColorPicker"===n.typeName&&("0"!==t&&"-"!==t||(t="1"));this._checkAndUpdateValues("width",t)},unit:(0,L.jsx)(ts,{unit:l("_width"),locked:M,onClick:e=>A(e,"width")}),arrows:!0,arrowsIncrement:e=>c("width",e)}),(0,L.jsx)(I,{numbersOnly:!0,lockObject:this.props.lockObject,label:"H",delayInput:!0,value:r("_height"),onChange:t=>{for(const n of e)"Image"===n.typeName?n.autoScale=!1:n instanceof a.Container?n.adaptHeightToChildren=!1:"ColorPicker"===n.typeName&&("0"!==t&&"-"!==t||(t="1"));this._checkAndUpdateValues("height",t)},unit:(0,L.jsx)(ts,{unit:l("_height"),locked:C,onClick:e=>A(e,"height")}),arrows:!0,arrowsIncrement:e=>c("height",e)})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMjEuNjMsOWEuNi42LDAsMCwwLDAtMS4ySDguMzdhLjYuNiwwLDAsMCwwLDEuMloiIHN0eWxlPSJmaWxsOiMzMzMiLz48cGF0aCBkPSJNMjEuNjMsMjIuMjNhLjYuNiwwLDAsMCwwLTEuMkg4LjM3YS42LjYsMCwwLDAsMCwxLjJaIiBzdHlsZT0iZmlsbDojMzMzIi8+PHBhdGggZD0iTTEwLjc4LDExLjc5YTEuNDEsMS40MSwwLDAsMC0xLjQxLDEuNHYzLjYyYTEuNDEsMS40MSwwLDAsMCwxLjQxLDEuNGg4LjQ0YTEuNDEsMS40MSwwLDAsMCwxLjQxLTEuNFYxMy4xOWExLjQxLDEuNDEsMCwwLDAtMS40MS0xLjRabS0uMiwxLjRhLjIuMiwwLDAsMSwuMi0uMmg4LjQ0YS4yLjIsMCwwLDEsLjIuMnYzLjYyYS4yLjIsMCwwLDEtLjIuMkgxMC43OGEuMi4yLDAsMCwxLS4yLS4yWiIgc3R5bGU9ImZpbGw6IzMzMyIvPjwvc3ZnPg==",label:"Vertical Padding"}),(0,L.jsx)(I,{numbersOnly:!0,lockObject:this.props.lockObject,label:"T",delayInput:!0,value:r("_paddingTop"),onChange:e=>{this._checkAndUpdateValues("paddingTop",e),this._markChildrenAsDirty()},unit:(0,L.jsx)(ts,{unit:l("_paddingTop"),onClick:e=>A(e,"paddingTop")}),arrows:!0,arrowsIncrement:e=>c("paddingTop",e,0)}),(0,L.jsx)(I,{numbersOnly:!0,lockObject:this.props.lockObject,label:"B",delayInput:!0,value:r("_paddingBottom"),onChange:e=>{this._checkAndUpdateValues("paddingBottom",e),this._markChildrenAsDirty()},unit:(0,L.jsx)(ts,{unit:l("_paddingBottom"),onClick:e=>A(e,"paddingBottom")}),arrows:!0,arrowsIncrement:e=>c("paddingBottom",e,0)})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNOSw4LjM3YS42LjYsMCwxLDAtMS4yLDBWMjEuNjNhLjYuNiwwLDEsMCwxLjIsMFoiIHN0eWxlPSJmaWxsOiMzMzMiLz48cGF0aCBkPSJNMjIuMjMsOC4zN2EuNi42LDAsMSwwLTEuMiwwVjIxLjYzYS42LjYsMCwxLDAsMS4yLDBaIiBzdHlsZT0iZmlsbDojMzMzIi8+PHBhdGggZD0iTTExLjc5LDE5LjIyYTEuNDEsMS40MSwwLDAsMCwxLjQsMS40MWgzLjYyYTEuNDEsMS40MSwwLDAsMCwxLjQtMS40MVYxMC43OGExLjQxLDEuNDEsMCwwLDAtMS40LTEuNDFIMTMuMTlhMS40MSwxLjQxLDAsMCwwLTEuNCwxLjQxWm0xLjQuMmEuMi4yLDAsMCwxLS4yLS4yVjEwLjc4YS4yLjIsMCwwLDEsLjItLjJoMy42MmEuMi4yLDAsMCwxLC4yLjJ2OC40NGEuMi4yLDAsMCwxLS4yLjJaIiBzdHlsZT0iZmlsbDojMzMzIi8+PC9zdmc+",label:"Horizontal Padding"}),(0,L.jsx)(I,{numbersOnly:!0,lockObject:this.props.lockObject,label:"L",delayInput:!0,value:r("_paddingLeft"),onChange:e=>{this._checkAndUpdateValues("paddingLeft",e),this._markChildrenAsDirty()},unit:(0,L.jsx)(ts,{unit:l("_paddingLeft"),onClick:e=>A(e,"paddingLeft")}),arrows:!0,arrowsIncrement:e=>c("paddingLeft",e)}),(0,L.jsx)(I,{numbersOnly:!0,lockObject:this.props.lockObject,label:"R",delayInput:!0,value:r("_paddingRight"),onChange:e=>{this._checkAndUpdateValues("paddingRight",e),this._markChildrenAsDirty()},onPropertyChangedObservable:this.props.onPropertyChangedObservable,unit:(0,L.jsx)(ts,{unit:l("_paddingRight"),onClick:e=>A(e,"paddingRight")}),arrows:!0,arrowsIncrement:e=>c("paddingRight",e)})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMjMuMTEsOS4zMmEyLjIzLDIuMjMsMCwwLDEtMi4yMywyLjI0SDkuMTJhMi4yNCwyLjI0LDAsMCwxLDAtNC40N0gyMC44OEEyLjIzLDIuMjMsMCwwLDEsMjMuMTEsOS4zMlpNMjEuNDksMTVhMi4yMywyLjIzLDAsMCwxLTIuMjMsMi4yM0gxMC43NGEyLjIzLDIuMjMsMCwwLDEsMC00LjQ2aDguNTJBMi4yMywyLjIzLDAsMCwxLDIxLjQ5LDE1Wm0tMi40NCw1LjY4YTIuMjMsMi4yMywwLDAsMS0yLjIzLDIuMjNIMTMuMThhMi4yNCwyLjI0LDAsMCwxLDAtNC40N2gzLjY0QTIuMjMsMi4yMywwLDAsMSwxOS4wNSwyMC42OFpNMjEuODksOS4zMmExLDEsMCwwLDAtMS0xSDkuMTJhMSwxLDAsMCwwLDAsMkgyMC44OEExLDEsMCwwLDAsMjEuODksOS4zMlpNMjAuMjcsMTVhMSwxLDAsMCwwLTEtMUgxMC43NGExLDEsMCwwLDAsMCwyaDguNTJBMSwxLDAsMCwwLDIwLjI3LDE1Wm0tMi40Myw1LjY4YTEsMSwwLDAsMC0xLTFIMTMuMThhMSwxLDAsMSwwLDAsMmgzLjY0QTEsMSwwLDAsMCwxNy44NCwyMC42OFoiLz48L3N2Zz4=",label:"Makes padding affect only the descendants of this control"}),(0,L.jsx)(qn,{label:"ONLY PAD DESCENDANTS",target:i,propertyName:"descendentsOnlyPadding"})]}),(0,L.jsx)("hr",{className:"ge"})]}),"root"===g?.name&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(h,{label:"LINK OFFSET",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2l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MjQsLjg2LDAsLjI0LS4yNCwuMjQtLjYyLDAtLjg2bC0uNTgtLjU4WiIvPjwvZz48L3N2Zz4=",label:"Link offset"}),(0,L.jsx)(I,{numbersOnly:!0,lockObject:this.props.lockObject,label:"X",delayInput:!0,value:r("_linkOffsetX"),onChange:e=>this._checkAndUpdateValues("linkOffsetX",e),unit:(0,L.jsx)(ts,{unit:l("_linkOffsetX"),onClick:e=>A(e,"linkOffsetX")}),arrows:!0,arrowsIncrement:e=>c("linkOffsetX",e)}),(0,L.jsx)(I,{numbersOnly:!0,lockObject:this.props.lockObject,label:"Y",delayInput:!0,value:r("_linkOffsetY"),onChange:e=>this._checkAndUpdateValues("linkOffsetY",e),unit:(0,L.jsx)(ts,{unit:l("_linkOffsetY"),onClick:e=>A(e,"linkOffsetY")}),arrows:!0,arrowsIncrement:e=>c("linkOffsetY",e)})]}),(0,L.jsx)("hr",{className:"ge"})]}),(0,L.jsx)(h,{tooltip:"",label:"SERIALIZATION",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:es,label:"Serializable"}),(0,L.jsx)(qn,{label:"ISSERIALIZABLE",target:i,propertyName:"isSerializable"})]}),(0,L.jsx)(h,{tooltip:"",label:"VISIBILITY",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:Ko,label:"Visible"}),(0,L.jsx)(qn,{label:"ISVISIBLE",target:i,propertyName:"isVisible",onPropertyChangedObservable:this.props.onPropertyChangedObservable})]}),(0,L.jsx)(h,{tooltip:"",label:"TRANSFORMATION",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:Jo,label:"Scale"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"X",target:i,propertyName:"scaleX",arrows:!0,digits:2,step:"0.0005"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"Y",target:i,propertyName:"scaleY",arrows:!0,digits:2,step:"0.0005"})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMTUsNi45QTguMSw4LjEsMCwxLDAsMjMuMSwxNSw4LjEsOC4xLDAsMCwwLDE1LDYuOVptNi44Niw3LjQ5SDE1LjYzVjguMTRBNi44OSw2Ljg5LDAsMCwxLDIxLjg2LDE0LjM5Wk0xNC40MSw4LjE0djYuMjVIOC4xNEE2Ljg5LDYuODksMCwwLDEsMTQuNDEsOC4xNFpNOC4xNCwxNS42MWg2LjI3djYuMjVBNi44OSw2Ljg5LDAsMCwxLDguMTQsMTUuNjFabTcuNDksNi4yNVYxNS42MWg2LjIzQTYuODksNi44OSwwLDAsMSwxNS42MywyMS44NloiIHN0eWxlPSJmaWxsOiMzMzMiLz48L3N2Zz4=",label:"Transform Center"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"X",target:i,propertyName:"transformCenterX",arrows:!0,digits:2,step:"0.0005"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"Y",target:i,propertyName:"transformCenterY",arrows:!0,digits:2,step:"0.0005"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMTUsNy43M2E3LjI3LDcuMjcsMCwwLDEsNCwxMy4zM2gxLjQzYS42MS42MSwwLDAsMSwuNjEuNjEuNjEuNjEsMCwwLDEtLjUyLjZIMTcuMjJhLjYxLjYxLDAsMCwxLS42LS41MlYxOC40M2EuNi42LDAsMCwxLDEuMi0uMDh2MkE2LjA2LDYuMDYsMCwxLDAsOC45NCwxNWEuNjEuNjEsMCwxLDEtMS4yMSwwQTcuMjYsNy4yNiwwLDAsMSwxNSw3LjczWm0wLDVBMi4yMiwyLjIyLDAsMSwxLDEyLjc4LDE1LDIuMjEsMi4yMSwwLDAsMSwxNSwxMi43OFpNMTUsMTRhMSwxLDAsMSwwLDEsMUExLDEsMCwwLDAsMTUsMTRaIiBzdHlsZT0iZmlsbDojMzMzIi8+PC9zdmc+",label:"Rotation"}),(0,L.jsx)(S,{iconLabel:"Rotation",lockObject:this.props.lockObject,label:"",target:i,decimalCount:2,propertyName:"rotation",minimum:0,maximum:2*Math.PI,step:.01,unit:(0,L.jsx)(ts,{unit:"RAD",locked:!0})})]}),(0,L.jsx)("hr",{className:"ge"}),(0,L.jsx)(h,{tooltip:"",label:"APPEARANCE",value:" ",color:"grey"}),e.every((e=>void 0!==e.color&&"Image"!==e.typeName&&"ImageBasedSlider"!==e.typeName&&"ColorPicker"!==e.typeName))&&(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:Xo,label:"Outline Color"}),(0,L.jsx)(yo,{lockObject:this.props.lockObject,label:"Outline Color",target:i,propertyName:"color"})]}),e.every((e=>void 0!==e.background))&&(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:qo,label:"Background Color"}),(0,L.jsx)(yo,{lockObject:this.props.lockObject,label:"Background Color",target:i,propertyName:"background"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:Vo,label:"Alpha"}),(0,L.jsx)(S,{lockObject:this.props.lockObject,label:"",target:i,propertyName:"alpha",minimum:0,maximum:1,step:.01})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNNy43MywxMEEyLjIzLDIuMjMsMCwwLDEsMTAsNy43M2gxMC4xQTIuMjMsMi4yMywwLDAsMSwyMi4yNywxMHYxMC4xYTIuMjMsMi4yMywwLDAsMS0yLjIyLDIuMjJIMTBhMi4yMywyLjIzLDAsMCwxLTIuMjItMi4yMlptMi4yMi0xYTEsMSwwLDAsMC0xLDF2MTAuMWExLDEsMCwwLDAsMSwxaDEwLjFhMSwxLDAsMCwwLDEtMVYxMGExLDEsMCwwLDAtMS0xWiIgc3R5bGU9ImZpbGw6IzMzMyIvPjxwYXRoIGQ9Ik0xOS45MywyMC4wNWwuMTItMTIuMzJBMi4yMywyLjIzLDAsMCwxLDIyLjI3LDEwdjEwLjFhMi4yMywyLjIzLDAsMCwxLTIuMjIsMi4yMkgxMGEyLjIzLDIuMjMsMCwwLDEtMi4yMi0yLjIyWiIgc3R5bGU9ImZpbGw6IzMzMyIvPjwvc3ZnPg==",label:"Shadow Color"}),(0,L.jsx)(yo,{lockObject:this.props.lockObject,label:"",target:i,propertyName:"shadowColor"})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMTkuMTgsMTEuNzJhLjc3Ljc3LDAsMCwwLS41Ni0uMjUuNzguNzgsMCwwLDAtLjUuMTkuNzUuNzUsMCwwLDAtLjA2LDEuMDZsLjg5LDFIMTYuMTJhLjc1Ljc1LDAsMSwwLDAsMS41SDE5bC0uODksMWEuNzUuNzUsMCwwLDAsLjA2LDEuMDYuNzUuNzUsMCwwLDAsMS4wNi0uMDZsMi0yLjI1YS43Ni43NiwwLDAsMCwwLTFaIiBzdHlsZT0iZmlsbDojMzMzIi8+PHBhdGggZD0iTTIxLjM1LDguNDhhMi4yLDIuMiwwLDAsMC0yLjA2LTEuNDFIOS4yQTIuMjEsMi4yMSwwLDAsMCw3LDkuMjlWMTkuMzhhMi4yMSwyLjIxLDAsMCwwLDEuNjcsMi4xNCwyLjIsMi4yLDAsMCwwLDIuMDYsMS40MUgyMC44QTIuMjEsMi4yMSwwLDAsMCwyMywyMC43MVYxMC42MkEyLjIxLDIuMjEsMCwwLDAsMjEuMzUsOC40OFptLjU4LDcuMTZMMjAuMywxNy40N3YxLjkxYTEsMSwwLDAsMS0xLDFIOS4yYTEsMSwwLDAsMS0xLTFWOS4yOWExLDEsMCwwLDEsMS0xSDE5LjI5YTEsMSwwLDAsMSwxLDF2Mi4xOWwxLjYzLDEuODNBMS43NSwxLjc1LDAsMCwxLDIxLjkzLDE1LjY0WiIgc3R5bGU9ImZpbGw6IzMzMyIvPjwvc3ZnPg==",label:"Shadow Offset"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"X",target:i,propertyName:"shadowOffsetX",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),arrows:!0,step:"0.1",digits:2}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"Y",target:i,propertyName:"shadowOffsetY",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),arrows:!0,step:"0.1",digits:2})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNNy43OSwxNUE3LjIxLDcuMjEsMCwwLDEsMTksOUgxNWE2LDYsMCwwLDAsMCwxMlYxOS44aDUuMzdBNy4yLDcuMiwwLDAsMSw3Ljc5LDE1WiIgc3R5bGU9ImZpbGw6IzMzMyIvPjxwYXRoIGQ9Ik0yMCw5LjhIMTVWMTFoNkE2Ljg0LDYuODQsMCwwLDAsMjAsOS44WiIgc3R5bGU9ImZpbGw6IzMzMyIvPjxwYXRoIGQ9Ik0xNSwxMS44aDYuNDZhNi45Miw2LjkyLDAsMCwxLC40NiwxLjJIMTVaIiBzdHlsZT0iZmlsbDojMzMzIi8+PHBhdGggZD0iTTIyLjExLDEzLjhIMTVWMTVoNy4yMUE3Ljg4LDcuODgsMCwwLDAsMjIuMTEsMTMuOFoiIHN0eWxlPSJmaWxsOiMzMzMiLz48cGF0aCBkPSJNMTUsMTUuOGg3LjE2YTYuMDgsNi4wOCwwLDAsMS0uMjQsMS4ySDE1WiIgc3R5bGU9ImZpbGw6IzMzMyIvPjxwYXRoIGQ9Ik0yMS42NCwxNy44SDE1VjE5aDZBNy4yOSw3LjI5LDAsMCwwLDIxLjY0LDE3LjhaIiBzdHlsZT0iZmlsbDojMzMzIi8+PC9zdmc+",label:"Shadow Blur"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:" ",target:i,propertyName:"shadowBlur",arrows:!0,min:0,digits:2})]}),s&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("hr",{className:"ge"}),(0,L.jsx)(h,{tooltip:"",label:"FONT STYLE",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:Fo,label:"Font Family"}),(0,L.jsx)(Ho,{options:w,selectedOptionValue:i.fontFamily,onOptionSelected:e=>{i.fontFamily=e},onOptionAdded:({value:e})=>{this._addFont(e)},addOptionPlaceholder:"Add new font...",validateNewOptionValue:e=>e.length>0&&!w.find((t=>t.label===e))&&document.fonts.check(`12px ${e}`)})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjMwIiBoZWlnaHQ9IjMwIiB2aWV3Qm94PSIwIDAgMzAgMzAiPjxkZWZzPjxzdHlsZT4uY2xzLTF7ZmlsbDojMzMzO308L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0yNC4zNSwyMC40NSwyMC4yMiw4LjgxbDAtLjEyYTEuMDcsMS4wNywwLDAsMC0xLjk0LjE1TDE0Ljc3LDE4LjYsMTEuMiw4LjU0bDAtLjA5YS42MS42MSwwLDAsMC0xLjEuMDlMNS42MiwyMS4wNWEuNjEuNjEsMCwwLDAsMS4xMS40OGwwLS4wNywxLjI5LTMuNjNoNS4xNmwxLjI5LDMuNjMsMCwuMDdhLjYxLjYxLDAsMCwwLC41My4zM2gwYTEuMDcsMS4wNywwLDAsMCwxLS42bDEuMTItMy4xNGg0LjA5bDEuMDgsMy4wNy4wNS4xYTEuMDcsMS4wNywwLDAsMCwuOTUuNTcsMS4xMiwxLjEyLDAsMCwwLC4zNS0uMDZBMS4wNSwxLjA1LDAsMCwwLDI0LjM1LDIwLjQ1Wk04LjQ4LDE2LjYxbDIuMTUtNi4wNiwyLjE1LDYuMDZaTTE4LDE2bDEuMjgtMy42M0wyMC41MiwxNloiLz48L3N2Zz4=",label:"Font Weight"}),(0,L.jsx)(I,{lockObject:this.props.lockObject,label:"",target:i,propertyName:"fontWeight"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMjEuNCwxOS42NWwwLDBhMi40NSwyLjQ1LDAsMCwxLC4xMS43MSwyLDIsMCwwLDEtMiwyLDIsMiwwLDAsMS0xLjEyLS4zNGwtLjA1LDAtLjA1LDBhMi4zMywyLjMzLDAsMCwxLS42NC0uODR2MGwtLjc5LTEuODhIMTNsLS43NSwxLjgzYTIsMiwwLDAsMS0uNzQsMUEyLDIsMCwwLDEsOSwyMS44N2ExLjg4LDEuODgsMCwwLDEtLjU1LTEuMzgsMy4zNywzLjM3LDAsMCwxLDAtLjQ4bDAtLjEzLDQuNTUtMTFoMGEyLjI3LDIuMjcsMCwwLDEsLjc2LS45NCwxLjk0LDEuOTQsMCwwLDEsMS4yNi0uMzIsMiwyLDAsMCwxLDEuODIsMS4zMVpNMTUuODEsOS4zNGEuNzkuNzksMCwwLDAtLjMtLjQxLjgzLjgzLDAsMCwwLS40MS0uMTNIMTVhMS4xMSwxLjExLDAsMCwwLS4yNiwwLC42NC42NCwwLDAsMC0uMjUuMTIuODUuODUsMCwwLDAtLjM0LjQyTDkuNzEsMjAuMjFhMS40OCwxLjQ4LDAsMCwwLDAsLjI4LjcyLjcyLDAsMCwwLC4xOS41My43Ny43NywwLDAsMCwuNTcuMTkuNy43LDAsMCwwLC40NC0uMTQuNzYuNzYsMCwwLDAsLjMtLjRsMS4wNy0yLjYxaDUuNDNsMS4wOSwyLjU5YTEuMTcsMS4xNywwLDAsMCwuMzIuNDIuNzYuNzYsMCwwLDAsLjQ2LjE0LjcuNywwLDAsMCwuNTQtLjIzLjczLjczLDAsMCwwLC4yNS0uNTgsMS4yLDEuMiwwLDAsMCwwLS4zM1pNMTcsMTYuNDYsMTUsMTEuNTRsLTIsNC45MlptLTIuMzEtMS4yaC41bC0uMjUtLjZaIiBzdHlsZT0iZmlsbDojMzMzIi8+PC9zdmc+",label:"Font Style"}),(0,L.jsx)(Ho,{options:[{label:"normal",value:"normal",id:"0"},{label:"italic",value:"italic",id:"1"},{label:"oblique",value:"oblique",id:"2"}],selectedOptionValue:i.fontStyle,onOptionSelected:e=>{i.fontStyle=e}})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMTMuNTYsMTkuNTNsMy45LTExYS42MS42MSwwLDAsMSwxLjEtLjA5bDAsLjA5TDIzLDIxLjA1YS42Mi42MiwwLDAsMS0uMzcuNzguNi42LDAsMCwxLS43NC0uM2wwLS4wNy0xLjI5LTMuNjRIMTUuNDVsLTEuMjgsMy42YS41Ny41NywwLDAsMS0uMjkuMzZsLS4wNywwYS42MS42MSwwLDAsMS0uNzUtLjI3bDAtLjA3LS44LTJIOC45bC0uOCwyYS42MS42MSwwLDAsMS0uNzEuMzdsLS4wOCwwYS41OS41OSwwLDAsMS0uMzYtLjdMNywyMWwzLTcuNjdhLjYxLjYxLDAsMCwxLDEuMDktLjA4bDAsLjA5LDIuNDMsNi4xNiwzLjktMTFabS0zLTQuMjktMS4xOCwzaDIuMzZaTTE4LDEwLjU1bC0yLjE2LDYuMDZoNC4zMVoiIHN0eWxlPSJmaWxsOiMzMzMiLz48L3N2Zz4=",label:"Font Size"}),(0,L.jsx)(I,{lockObject:this.props.lockObject,label:"",numbersOnly:!0,value:r("_fontSize"),onChange:e=>this._checkAndUpdateValues("fontSize",e),unit:(0,L.jsx)(ts,{unit:l("_fontSize"),onClick:e=>A(e,"fontSize")}),arrows:!0,arrowsIncrement:e=>c("fontSize",e,0)})]})]}),(0,L.jsx)("hr",{className:"ge"}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(h,{tooltip:"",label:"METADATA",value:" ",color:"grey"}),(0,L.jsx)(v,{tooltip:"Add",icon:$o,isActive:!1,onClick:()=>{const t=(as["gui-editor"]??window).prompt("Enter new key name for metadata value","newKey");if(null===t||""===t.trim())return;let n=t,o=1;for(;e.some((e=>n in e.metadata));)o++,n=t+o;this._addOrUpdateMetadata({[n]:""})}})]}),this._getCommonPropertyKeys(e.map((e=>e.metadata))).map((t=>{if("guiEditor"===t||t.startsWith("_")||"editorUniqueId"===t)return;const n=e.find((e=>!!e.metadata));if(!n)return;let o=n.metadata[t];const s="object"==typeof o;return e.map((e=>e.metadata[t])).every((e=>e===o))||(o=b),(0,L.jsx)("div",{children:(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(I,{numbersOnly:!1,lockObject:this.props.lockObject,label:"",delayInput:!0,value:t,disabled:!0}),(0,L.jsx)(I,{numbersOnly:!1,lockObject:this.props.lockObject,label:":",delayInput:!0,disabled:s,value:"string"==typeof o?o:JSON.stringify(o),onChange:e=>this._addOrUpdateMetadata({[t]:e})}),(0,L.jsx)(v,{tooltip:"Remove",icon:Bo,isActive:!1,onClick:()=>this._removeFromMetadata(t)})]})},t)}))]})}}const cs="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmJ7ZmlsbDojMzMzO308L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iYiIgZD0iTTIxLjU2LDEwLjQ5YzAtMS4wMi0uODMtMS44NC0xLjg0LTEuODRIMTAuMjljLTEuMDIsMC0xLjg0LC44My0xLjg0LDEuODR2My4yOGMwLC4zNCwuMjgsLjYxLC42MSwuNjFzLjYxLS4yOCwuNjEtLjYxdi0zLjI4YzAtLjM0LC4yOC0uNjEsLjYxLS42MWg5LjQzYy4zNCwwLC42MSwuMjgsLjYxLC42MXYzLjI4YzAsLjM0LC4yOCwuNjEsLjYxLC42MXMuNjEtLjI4LC42MS0uNjF2LTMuMjhabS0yLjI4LDUuNzJjLjIyLS4yMiwuNTYtLjI0LC44LS4wNmwuMDcsLjA2LDEuOTQsMS45NGMuMTcsLjEsLjI5LC4zMSwuMjksLjU0LDAsLjIxLS4wOSwuMzktLjIzLC41bC0uMDYsLjA0LTEuOTQsMS45NC0uMDcsLjA2Yy0uMjEsLjE2LS41MSwuMTYtLjcyLDBsLS4wOC0uMDctLjA2LS4wN2MtLjE2LS4yMS0uMTYtLjUxLDAtLjcybC4wNy0uMDgsMS0xaC0zLjE4Yy0uMjYtLjA1LS40Ni0uMy0uNDYtLjYxcy4yLS41NywuNDctLjYxaDMuMThsLTEtMS4wMS0uMDYtLjA3Yy0uMTgtLjI0LS4xNi0uNTgsLjA2LS44Wm0tOC41NiwwYy4yMiwuMjIsLjI0LC41NiwuMDYsLjhsLS4wNiwuMDctMSwxaDMuMWMuMywwLC41NCwuMjgsLjU0LC42MSwwLC4zMS0uMiwuNTctLjQ2LC42MWgtMy4xOGwxLDEuMDFjLjIyLC4yMiwuMjQsLjU2LC4wNiwuOGwtLjA2LC4wN2MtLjIyLC4yMi0uNTYsLjI0LS44LC4wNmwtLjA3LS4wNi0xLjk0LTEuOTRjLS4xNy0uMS0uMjktLjMxLS4yOS0uNTRzLjEyLS40NCwuMjktLjU0bDEuOTQtMS45NGMuMjQtLjI0LC42My0uMjQsLjg3LDBaIi8+PC9zdmc+";class us extends t.Component{constructor(e){super(e)}render(){const{sliders:e,onPropertyChangedObservable:t}=this.props,n=y(e,t);return(0,L.jsxs)("div",{className:"pane",children:[(0,L.jsx)("hr",{}),(0,L.jsx)(h,{label:"SLIDER",value:" ",color:"grey"}),e.every((e=>"Slider"===e.typeName))&&(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:Xo,label:"Border Color"}),(0,L.jsx)(yo,{lockObject:this.props.lockObject,label:"",target:n,propertyName:"borderColor"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTguMDgsNi43OWExLjg1LDEuODUsMCwwLDEsMS44NSwxLjg1VjIxLjM2YTEuODUsMS44NSwwLDAsMS0xLjg1LDEuODVIMTEuOTJhMS44NSwxLjg1LDAsMCwxLTEuODUtMS44NVY4LjY0YTEuODUsMS44NSwwLDAsMSwxLjg1LTEuODVabTAsMS4yM0gxMS45MmEuNjEuNjEsMCwwLDAtLjYxLjYyVjIxLjM2YS42MS42MSwwLDAsMCwuNjEuNjJoNi4xNmEuNjEuNjEsMCwwLDAsLjYxLS42MlY4LjY0QS42MS42MSwwLDAsMCwxOC4wOCw4Wm0tLjgsOC4xOGEuNjIuNjIsMCwwLDEsLjA3LjhsLS4wNi4wN0wxNS40NCwxOWEuNjIuNjIsMCwwLDEtLjgxLjA2TDE0LjU2LDE5bC0xLjg1LTEuODlhLjYxLjYxLDAsMCwxLC44MS0uOTJsLjA3LjA2TDE1LDE3LjY1bDEuNDEtMS40NEEuNjIuNjIsMCwwLDEsMTcuMjgsMTYuMlptLTEuODQtNS4xMkwxNy4yOSwxM2EuNjQuNjQsMCwwLDEsMCwuODguNjMuNjMsMCwwLDEtLjg3LDBMMTUsMTIuMzlsLTEuNDEsMS40NGEuNjIuNjIsMCwxLDEtLjg4LS44N2wxLjg1LTEuODhBLjYxLjYxLDAsMCwxLDE1LjQ0LDExLjA4WiIvPjwvc3ZnPg==",label:"Vertical"}),(0,L.jsx)(qn,{label:"VERTICAL",target:n,propertyName:"isVertical"})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNOS4xNSwxMi40MmExLjQyLD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),(0,L.jsx)(I,{lockObject:this.props.lockObject,label:"",target:n,propertyName:"barOffset"})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTMuNzgsNy4yNGEuNjEuNjEsMCwwLDAtLjQ5LS43MS42LjYsMCwwLDAtLjcuNDhsLS44Myw0LjM1SDcuOTNhLjYyLjYyLDAsMCwwLS42LjYxLjYuNiwwLDAsMCwuNi42MWgzLjZsLS43Niw0SDcuMTJhLjYxLjYxLDAsMCwwLDAsMS4yMWgzLjQyTDkuNzYsMjJhLjYxLjYxLDAsMSwwLDEuMTkuMjJsLjgyLTQuMzVoMi4xNmE1LjE4LDUuMTgsMCwwLDEsLjQ1LTEuMjFIMTJsLjc3LTRoNC40MmwtLjMyLDEuNjlhNC44Niw0Ljg2LDAsMCwxLDEuMzEtLjRsLjI0LTEuMjloMy42NWEuNjEuNjEsMCwwLDAsMC0xLjIxSDE4LjY1bC43OC00LjEyQS42MS42MSwwLDAsMCwxOC4yNCw3bC0uODIsNC4zNUgxM1pNMTQuNiwxOUE0LjQ0LDQuNDQsMCwxLDEsMTksMjMuNDgsNC40NCw0LjQ0LDAsMCwxLDE0LjYsMTlabTQuNTksMi44LjA2LDAsMCwwLDIuMDUtMi4wNS4wNS0uMDZhLjQuNCwwLDAsMC0uNTYtLjU2bC0uMDYuMDUtMS4zMywxLjMzVjE2LjE0YS40LjQsMCwwLDAtLjMzLS4zM0gxOWEuNC40LDAsMCwwLS4zMy4zM3Y0LjM1bC0xLjMyLTEuMzMtLjA2LS4wNWEuNDMuNDMsMCwwLDAtLjQ2LDBsLS4wNi4wNSwwLC4wNWEuMzkuMzksMCwwLDAsMCwuNDZsMCwuMDYsMiwyLDAsMCwuMDYsMCwuMDcsMGguMTNsLjA3LDBaIi8+PC9zdmc+",label:"Minimum Value"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"",target:n,propertyName:"minimum",arrows:!0})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTMuNzgsNy4yNGEuNjEuNjEsMCwwLDAtLjQ5LS43MS42LjYsMCwwLDAtLjcuNDhsLS44Myw0LjM1SDcuOTNhLjYyLjYyLDAsMCwwLS42LjYxLjYuNiwwLDAsMCwuNi42MWgzLjZsLS43Niw0SDcuMTJhLjYxLjYxLDAsMCwwLDAsMS4yMWgzLjQyTDkuNzYsMjJhLjYxLjYxLDAsMSwwLDEuMTkuMjJsLjgyLTQuMzVoMi4xNmE1LjE4LDUuMTgsMCwwLDEsLjQ1LTEuMjFIMTJsLjc3LTRoNC40MmwtLjMyLDEuNjlhNC44Niw0Ljg2LDAsMCwxLDEuMzEtLjRsLjI0LTEuMjloMy42NWEuNjEuNjEsMCwwLDAsMC0xLjIxSDE4LjY1bC43OC00LjEyQS42MS42MSwwLDAsMCwxOC4yNCw3bC0uODIsNC4zNUgxM1pNMTksMTQuNkE0LjQ0LDQuNDQsMCwxLDEsMTQuNiwxOSw0LjQ0LDQuNDQsMCwwLDEsMTksMTQuNlptLjEsMS42My0uMDcsMGgtLjEzbC0uMDcsMC0uMDYsMCwwLDAtMiwyLDAsLjA2YS4zOS4zOSwwLDAsMCwwLC40NmwwLC4wNS4wNiwwYS40My40MywwLDAsMCwuNDYsMGwuMDYsMCwxLjMyLTEuMzN2NC4zNWEuNC40LDAsMCwwLC4zMy4zMmguMTRhLjQuNCwwLDAsMCwuMzMtLjMyVjE3LjU5bDEuMzMsMS4zMy4wNiwwYS40LjQsMCwwLDAsLjU2LS41NmwtLjA1LS4wNkwxOS4yOSwxNi4zbDAsMC0uMDYsMFoiLz48L3N2Zz4=",label:"Maximum Value"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"",target:n,propertyName:"maximum",arrows:!0})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTQuMTgsNy42NEEuNjEuNjEsMCwwLDAsMTMsNy40MWwtLjgyLDQuMzZIOC4zM2EuNjEuNjEsMCwwLDAsMCwxLjIxaDMuNmwtLjc3LDRINy41M2EuNjEuNjEsMCwxLDAsMCwxLjIxSDExbC0uNzksNC4xM2EuNjEuNjEsMCwwLDAsLjQ5LjcxLjYuNiwwLDAsMCwuNy0uNDhsLjgzLTQuMzZIMTYuNmwtLjc4LDQuMTNhLjYxLjYxLDAsMSwwLDEuMTkuMjNsLjgyLTQuMzZoMy44NGEuNjEuNjEsMCwwLDAsMC0xLjIxaC0zLjZsLjc3LTRoMy42NGEuNjEuNjEsMCwxLDAsMC0xLjIxSDE5LjA2bC43OC00LjEyYS42MS42MSwwLDAsMC0uNDktLjcxLjYuNiwwLDAsMC0uNy40OGwtLjgzLDQuMzVIMTMuNFptLTEsNS4zNGg0LjQybC0uNzYsNEgxMi40MVoiLz48L3N2Zz4=",label:"Initial Value"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"",target:n,propertyName:"value",arrows:!0})]}),(0,L.jsx)("hr",{}),(0,L.jsx)(h,{label:"THUMB",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMjAuMzMsMTguMDV2MGExLjQzLDEuNDMsMCwwLDAsMS4yMi4zOXYyLjlhMS44NSwxLjg1LDAsMCwxLTEuNzIsMS44NEgxMC4yOGExLjg1LDEuODUsMCwwLDEtMS44NC0xLjcydi0zYTEuNDIsMS40MiwwLDAsMCwxLjEyLS4zbC4xMS0uMXYzLjNhLjYyLjYyLDAsMCwwLC41My42MWg5LjUyYS42Mi42MiwwLDAsMCwuNjEtLjUzVjE4LjA1Wk05LjA4LDEyLjUxYS42MS42MSwwLDAsMSwuMDYuOGwtLjA2LjA3LTEsMWgzLjFhLjU4LjU4LDAsMCwxLC41NC42Mi41OS41OSwwLDAsMS0uNDcuNjFIOC4wOGwxLDFhLjYxLjYxLDAsMCwxLC4wNi44bC0uMDYuMDdhLjYyLjYyLDAsMCwxLS44LjA1bC0uMDctLjA1TDYuMjcsMTUuNTRhLjY1LjY1LDAsMCwxLDAtMS4wOGwxLjk0LTJBLjYyLjYyLDAsMCwxLDkuMDgsMTIuNTFabTExLjg0LDBhLjYxLjYxLDAsMCwxLC44LS4wNmwuMDcuMDYsMS45NCwxLjk0QS42My42MywwLDAsMSwyNCwxNWEuNjcuNjcsMCwwLDEtLjIyLjVsLS4wNywwLTEuOTQsMS45NC0uMDcuMDZhLjYyLjYyLDAsMCwxLS43MiwwbC0uMDgtLjA3LS4wNi0uMDdhLjYuNiwwLDAsMSwwLS43MmwuMDYtLjA4LDEtMUgxOC43NWEuNTkuNTksMCwwLDEtLjQ3LS42MS41OC41OCwwLDAsMSwuNDctLjYxaDMuMTdsLTEtMS0uMDYtLjA3QS42MS42MSwwLDAsMSwyMC45MiwxMi41MVpNMTkuNzIsNi44YTEuODUsMS44NSwwLDAsMSwxLjg0LDEuNzJ2M2ExLjQ0LDEuNDQsMCwwLDAtMS4xMi4zMWwtLjExLjFWOC42NEEuNjIuNjIsMCwwLDAsMTkuOCw4SDEwLjI4YS42Mi42MiwwLDAsMC0uNjEuNTN2My4zOGgwYTEuNDQsMS40NCwwLDAsMC0xLjIyLS40VjguNjRBMS44NSwxLjg1LDAsMCwxLDEwLjE2LDYuOGg5LjU2WiIvPjwvc3ZnPg==",label:"Display Thumb"}),(0,L.jsx)(qn,{label:"DISPLAY THUMB",target:n,propertyName:"displayThumb",onValueChanged:()=>this.forceUpdate()})]}),n.displayThumb&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTUsOC4xM0E2Ljg3LDYuODcsMCwxLDAsMjEuODcsMTUsNi44Niw2Ljg2LDAsMCwwLDE1LDguMTNaTTYuOTEsMTVBOC4wOSw4LjA5LDAsMSwxLDE1LDIzLjA5LDguMDksOC4wOSwwLDAsMSw2LjkxLDE1WiIvPjwvc3ZnPg==",label:"Thumb Circular"}),(0,L.jsx)(qn,{label:"CIRCULAR",target:n,propertyName:"isThumbCircle"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml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jI5LTIuODgtMi44OFoiLz48L3N2Zz4=",label:"Thumb Clamped to Edges"}),(0,L.jsx)(qn,{label:"CLAMPED",target:n,propertyName:"isThumbClamped"})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:cs,label:"Width"}),(0,L.jsx)(I,{lockObject:this.props.lockObject,label:"",target:n,propertyName:"thumbWidth"})]})]})]})}}class As extends t.Component{constructor(e){super(e)}render(){const e=this.props.sliders;return(0,L.jsxs)("div",{className:"pane",children:[(0,L.jsx)(ls,{lockObject:this.props.lockObject,controls:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable,onFontsParsedObservable:this.props.onFontsParsedObservable,globalState:this.props.globalState}),(0,L.jsx)(us,{sliders:e,lockObject:this.props.lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})]})}}const ds="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNNy43MywxMEEyLjIzLDIuMjMsMCwwLDEsMTAsNy43M2gxMC4xQTIuMjMsMi4yMywwLDAsMSwyMi4yNywxMHYxMC4xYTIuMjMsMi4yMywwLDAsMS0yLjIyLDIuMjJIMTBhMi4yMywyLjIzLDAsMCwxLTIuMjItMi4yMlptMi4yMi0xYTEsMSwwLDAsMC0xLDF2MTAuMWExLDEsMCwwLDAsMSwxaDEwLjFhMSwxLDAsMCwwLDEtMVYxMGExLDEsMCwwLDAtMS0xWiIgc3R5bGU9ImZpbGw6IzMzMyIvPjwvc3ZnPg==";class ps extends t.Component{constructor(e){super(e)}onDashChange(e){const t=e.split(",");for(const e of this.props.lines)e.dash=[],t.forEach((t=>{const n=parseInt(t);isNaN(n)||e.dash.push(n)}));this.forceUpdate()}render(){const{lines:e,onPropertyChangedObservable:t,lockObject:n}=this.props,o=y(e,t);let s=e[0].dash;for(const t of e){if(0===s.length)break;t.dash.length!==s.length&&(s=[]),s.forEach(((e,n)=>{t.dash[n]!==e&&(s=[])}))}const i=s.join(",");return(0,L.jsxs)("div",{className:"pane",children:[(0,L.jsx)(h,{label:"LINE",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMCAzMCI+PGRlZnM+PHN0eWxlPi5ie2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImIiIGQ9Ik0yMS4yMyw0Ljc5djUuODhjMCwuMjctLjIxLC40OC0uNDgsLjQ4cy0uNDctLjIxLS40Ny0uNDhWNS4zOWwtLjk2LC4zOGMtLjA4LC4wMy0uMTgsLjA2LS4yNSwuMDYtLjI0LDAtLjQzLS4xOS0uNDMtLjQzLDAtLjE0LC4wNi0uMzIsLjMtLjQybDEuNDctLjU5Yy4wOC0uMDIsLjItLjA5LC4zNC0uMDksLjI4LDAsLjQ4LC4yMSwuNDgsLjQ5WiIvPjxwYXRoIGNsYXNzPSJiIiBkPSJNMTYuNTEsMTUuMDFjMCwuMzMsLjI3LC42MSwuNjEsLjYxaDQuNTlsLS41OCwuNThjLS4yNCwuMjQtLjI0LC42MiwwLC44NiwuMjQsLjI0LC42MiwuMjQsLjg2LDBsMS42MS0xLjYxYy4yNC0uMjQsLjI0LS42MiwwLS44NmwtMS42MS0xLjYxYy0uMjQtLjI0LS42Mi0uMjQtLjg2LDAtLjI0LC4yNC0uMjQsLjYyLDAsLjg2bC41OCwuNThoLTQuNTljLS4zMywwLS42MSwuMjctLjYxLC42MVptLTMuNjMtLjYxaC00LjU5bC41OC0uNThjLjI0LS4yNCwuMjQtLjYyLDAtLjg2LS4yNC0uMjQtLjYyLS4yNC0uODYsMGwtMS42MSwxLjYxYy0uMjQsLjI0LS4yNCwuNjIsMCwuODZsMS42MSwxLjYxYy4yNCwuMjQsLjYyLC4yNCwuODYsMCwuMjQtLjI0LC4yNC0uNjIsMC0uODZsLS41OC0uNThoNC41OWMuMzMsMCwuNjEtLjI3LC42MS0uNjEsMC0uMzMtLjI3LS42MS0uNjEtLjYxWm0yLjA5LS45MmMuMzMsMCwuNjEtLjI3LC42MS0uNjF2LTQuNTlsLjU4LC41OGMuMjQsLjI0LC42MiwuMjQsLjg2LDAsLjI0LS4yNCwuMjQtLjYyLDAtLjg2bC0xLjYxLTEuNjFjLS4yNC0uMjQtLjYyLS4yNC0uODYsMGwtMS42MSwxLjYxYy0uMjQsLjI0LS4yNCwuNjIsMCwuODYsLjI0LC4yNCwuNjIsLjI0LC44NiwwbC41OC0uNTh2NC41OWMwLC4zMywuMjcsLjYxLC42MSwuNjFabS0uNjEsMy42M3Y0LjU5bC0uNTgtLjU4Yy0uMjQtLjI0LS42Mi0uMjQtLjg2LDAtLjI0LC4yNC0uMjQsLjYyLDAsLjg2bDEuNjEsMS42MWMuMjQsLjI0LC42MiwuMjQsLjg2LDBsMS42MS0xLjYxYy4yNC0uMjQsLjI0LS42MiwwLS44Ni0uMjQtLjI0LS42Mi0uMjQtLjg2LDBsLS41OCwuNTh2LTQuNTljMC0uMzMtLjI3LS42MS0uNjEtLjYxcy0uNjEsLjI3LS42MSwuNjFaIi8+PC9zdmc+",label:"Position 1"}),(0,L.jsx)(I,{lockObject:n,label:"X",target:o,propertyName:"x1"}),(0,L.jsx)(I,{lockObject:n,label:"Y",target:o,propertyName:"y1"})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciI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uMjQtLjI0LC4yNC0uNjIsMC0uODZsLS41OC0uNThoNC41OWMuMzMsMCwuNjEtLjI3LC42MS0uNjEsMC0uMzMtLjI3LS42MS0uNjEtLjYxWm0yLjA5LS45MmMuMzMsMCwuNjEtLjI3LC42MS0uNjF2LTQuNTlsLjU4LC41OGMuMjQsLjI0LC42MiwuMjQsLjg2LDAsLjI0LS4yNCwuMjQtLjYyLDAtLjg2bC0xLjYxLTEuNjFjLS4yNC0uMjQtLjYyLS4yNC0uODYsMGwtMS42MSwxLjYxYy0uMjQsLjI0LS4yNCwuNjIsMCwuODYsLjI0LC4yNCwuNjIsLjI0LC44NiwwbC41OC0uNTh2NC41OWMwLC4zMywuMjcsLjYxLC42MSwuNjFabS0uNjEsMy42M3Y0LjU5bC0uNTgtLjU4Yy0uMjQtLjI0LS42Mi0uMjQtLjg2LDAtLjI0LC4yNC0uMjQsLjYyLDAsLjg2bDEuNjEsMS42MWMuMjQsLjI0LC42MiwuMjQsLjg2LDBsMS42MS0xLjYxYy4yNC0uMjQsLjI0LS42MiwwLS44Ni0uMjQtLjI0LS42Mi0uMjQtLjg2LDBsLS41OCwuNTh2LTQuNTljMC0uMzMtLjI3LS42MS0uNjEtLjYxcy0uNjEsLjI3LS42MSwuNjFaIi8+PC9zdmc+",label:"Position 2"}),(0,L.jsx)(I,{lockObject:n,label:"X",target:o,propertyName:"x2"}),(0,L.jsx)(I,{lockObject:n,label:"Y",target:o,propertyName:"y2"})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:ds,label:"Line Width"}),(0,L.jsx)(N,{lockObject:n,label:"",target:o,propertyName:"lineWidth",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),min:0,arrows:!0})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0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LjI3LC42LS42LC42WiIvPjwvZz48Zz48cGF0aCBjbGFzcz0iYiIgZD0iTTE2LjUxLDIyLjI1aC0yLjk4Yy0uMzMsMC0uNi0uMjctLjYtLjZzLjI3LS42LC42LS42aDIuOThjLjMzLDAsLjYsLjI3LC42LC42cy0uMjcsLjYtLjYsLjZaIi8+PHBhdGggY2xhc3M9ImIiIGQ9Ik0yMC4wNSwyMi4yNWgtMWMtLjMzLDAtLjYtLjI3LS42LS42cy4yNy0uNiwuNi0uNmgxYy41OCwwLDEuMDUtLjQ3LDEuMDUtMS4wNXYtMWMwLS4zMywuMjctLjYsLjYtLjZzLjYsLjI3LC42LC42djFjMCwxLjI0LTEuMDEsMi4yNS0yLjI1LDIuMjVaIi8+PC9nPjxwYXRoIGNsYXNzPSJiIiBkPSJNMjEuNjUsMTcuMDdjLS4zMywwLS42LS4yNy0uNi0uNnYtMi45OGMwLS4zMywuMjctLjYsLjYtLjZzLjYsLjI3LC42LC42djIuOThjMCwuMzMtLjI3LC42LS42LC42WiIvPjwvc3ZnPg==",label:"Dash Pattern"}),(0,L.jsx)(I,{lockObject:n,label:"",target:o,value:i,onChange:e=>this.onDashChange(e)})]}),(0,L.jsx)("hr",{}),(0,L.jsx)(ls,{hideDimensions:!0,lockObject:n,controls:e,onPropertyChangedObservable:t,onFontsParsedObservable:this.props.onFontsParsedObservable,globalState:this.props.globalState})]})}}const Ms="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMjUsMTIuNzZBMi4yMSwyLjIxLDAsMCwxLDI3LjI0LDE1VjI1QTIuMjEsMi4yMSwwLDAsMSwyNSwyNy4yNEgxNUEyLjIxLDIuMjEsMCwwLDEsMTIuNzYsMjVWMTVBMi4yMSwyLjIxLDAsMCwxLDE1LDEyLjc2Wk0yNSwxNEgxNWExLDEsMCwwLDAtMSwxVjI1YTEsMSwwLDAsMCwxLDFIMjVhMSwxLDAsMCwwLDEtMVYxNUExLDEsMCwwLDAsMjUsMTRabS02LjY0LDgsNS4yMS01LjJhLjU5LjU5LDAsMCwxLC44NSwwLC42MS42MSwwLDAsMSwuMDYuNzhsLS4wNi4wNy01LjYzLDUuNjNhLjYuNiwwLDAsMS0uNzkuMDZMMTgsMjMuMjRsLTIuNDEtMi40MWEuNjEuNjEsMCwwLDEsMC0uODUuNi42LDAsMCwxLC43OS0uMDZsLjA2LjA2LDIsMiw1LjIxLTUuMloiIHN0eWxlPSJmaWxsOiMzMzMiLz48L3N2Zz4=";class Ls extends t.Component{constructor(e){super(e)}render(){const e=this.props.radioButtons;return(0,L.jsxs)("div",{className:"pane",children:[(0,L.jsx)(ls,{lockObject:this.props.lockObject,controls:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable,onFontsParsedObservable:this.props.onFontsParsedObservable,globalState:this.props.globalState}),(0,L.jsx)("hr",{}),(0,L.jsx)(h,{label:"RADIO BUTTON",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:ds,label:"Stroke Weight"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"",target:y(e,this.props.onPropertyChangedObservable),propertyName:"thickness",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),arrows:!0,min:0,digits:2})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:Jo,label:"Check Size Ratio"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"",target:y(e,this.props.onPropertyChangedObservable),propertyName:"checkSizeRatio",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),arrows:!0,min:0,digits:2})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:ds,label:"Name of Group"}),(0,L.jsx)(I,{lockObject:this.props.lockObject,label:"",target:y(e,this.props.onPropertyChangedObservable),propertyName:"group"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:Ms,label:"Is Checked"}),(0,L.jsx)(qn,{label:"CHECKED",target:y(e,this.props.onPropertyChangedObservable),propertyName:"isChecked"})]})]})}}const Cs=Number.MAX_SAFE_INTEGER;class hs extends t.Component{_remapValueIn(e){return this.props.allowNullValue&&null===e?Cs:e}_remapValueOut(e){return this.props.allowNullValue&&e===Cs?null:e}_getValue(e){return e.extractValue?e.extractValue(e.target):e.target&&e.propertyName?e.target[e.propertyName]:e.options[e.defaultIfNull||0]}constructor(e){super(e),this._localChange=!1,this.state={value:this._remapValueIn(this._getValue(e))}}shouldComponentUpdate(e,t){if(this._localChange)return this._localChange=!1,!0;const n=this._remapValueIn(e.extractValue?e.extractValue(this.props.target):e.target[e.propertyName]);return null!=n&&n!==t.value&&(t.value=n,!0)}raiseOnPropertyChanged(e,t){this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:e,initialValue:t,allowNullValue:this.props.allowNullValue})}setValue(e){this.setState({value:e})}updateValue(e){const t=this.props.valuesAreStrings?e:parseInt(e);this._localChange=!0;const n=this.props.extractValue?this.props.extractValue(this.props.target):this.props.target[this.props.propertyName];this.props.noDirectUpdate||(this.props.target[this.props.propertyName]=this._remapValueOut(t)),this.setState({value:t}),this.props.onSelect&&this.props.onSelect(t);const o=this.props.extractValue?this.props.extractValue(this.props.target):this.props.target[this.props.propertyName];this.raiseOnPropertyChanged(o,n)}onCopyClick(){if(this.props&&this.props.target){const{className:e,babylonNamespace:t}=m(this.props.target);j("globalThis.debugNode."+this.props.propertyName+" = "+this.props.target[this.props.propertyName]+";// (debugNode as "+t+e+")")}else j("undefined")}render(){return(0,L.jsxs)("div",{className:"listLine"+(this.props.className?" "+this.props.className:""),children:[this.props.icon&&(0,L.jsx)("img",{src:this.props.icon,title:this.props.iconLabel,alt:this.props.iconLabel,color:"black",className:"icon"}),(0,L.jsx)("div",{className:"label",title:this.props.label,children:this.props.label}),(0,L.jsx)("div",{className:"options",children:(0,L.jsx)("select",{onChange:e=>this.updateValue(e.target.value),value:this.state.value??"",children:this.props.options.map(((e,t)=>(0,L.jsx)("option",{selected:e.selected,value:e.value,title:e.label,children:e.label},e.label+t)))})}),(0,L.jsx)("div",{className:"copy hoverIcon",onClick:()=>this.onCopyClick(),title:"Copy to clipboard",children:(0,L.jsx)("img",{src:x,alt:"Copy"})})]})}}class gs extends t.Component{constructor(e){super(e)}render(){const{onPropertyChangedObservable:e}=this.props,t=this.props.textBlocks,n=y(t,e);return(0,L.jsxs)("div",{className:"pane",children:[(0,L.jsx)(ls,{lockObject:this.props.lockObject,controls:t,onPropertyChangedObservable:this.props.onPropertyChangedObservable,onFontsParsedObservable:this.props.onFontsParsedObservable,globalState:this.props.globalState}),(0,L.jsx)("hr",{}),(0,L.jsx)(h,{label:"TEXTBLOCK",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:Fo,label:"Text"}),(0,L.jsx)(I,{lockObject:this.props.lockObject,label:" ",target:n,propertyName:"text"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMTAuMzUsOC45M2ExLjQzLDEuNDMsMCwwLDAtMS40MiwxLjQydjEuMjFhLjYxLjYxLDAsMSwxLTEuMjEsMFYxMC4zNWEyLjYzLDIuNjMsMCwwLDEsMi42My0yLjYzaDEuMjFhLjYxLjYxLDAsMSwxLDAsMS4yMVoiIHN0eWxlPSJmaWxsOiMzMzMiLz48cGF0aCBkPSJNMjEuMDcsMTAuMzVhMS40MywxLjQzLDAsMCwwLTEuNDItMS40MkgxOC40NGEuNjEuNjEsMCwxLDEsMC0xLjIxaDEuMjFhMi42MywyLjYzLDAsMCwxLDIuNjMsMi42M3YxLjIxYS42MS42MSwwLDEsMS0xLjIxLDBaIiBzdHlsZT0iZmlsbDojMzMzIi8+PHBhdGggZD0iTTIxLjA3LDE5LjY1YTEuNDMsMS40MywwLDAsMS0xLjQyLDEuNDJIMTguNDRhLjYxLjYxLDAsMSwwLDAsMS4yMWgxLjIxYTIuNjMsMi42MywwLDAsMCwyLjYzLTIuNjNWMTguNDRhLjYxLjYxLDAsMSwwLTEuMjEsMFoiIHN0eWxlPSJmaWxsOiMzMzMiLz48cGF0aCBkPSJNOC45MywxOS42NWExLjQzLDEuNDMsMCwwLDAsMS40MiwxLjQyaDEuMjFhLjYxLjYxLDAsMSwxLDAsMS4yMUgxMC4zNWEyLjYzLDIuNjMsMCwwLDEtMi42My0yLjYzVjE4LjQ0YS42MS42MSwwLDEsMSwxLjIxLDBaIiBzdHlsZT0iZmlsbDojMzMzIi8+PHBhdGggZD0iTTEyLDEwLjE1QTEuODEsMS44MSwwLDAsMCwxMC4xNSwxMlYxOEExLjgxLDEuODEsMCwwLDAsMTIsMTkuODVIMThBMS44MSwxLjgxLDAsMCwwLDE5Ljg1LDE4VjEyQTEuODEsMS44MSwwLDAsMCwxOCwxMC4xNVpNMTEuMzYsMTJhLjYxLjYxLDAsMCwxLC42MS0uNjFIMThhLjYxLjYxLDAsMCwxLC42MS42MVYxOGEuNjEuNjEsMCwwLDEtLjYxLjYxSDEyYS42MS42MSwwLDAsMS0uNjEtLjYxWiIgc3R5bGU9ImZpbGw6IzMzMyIvPjwvc3ZnPg==",label:"Automatically resize the text block to fit the size of the text"}),(0,L.jsx)(qn,{label:"RESIZE TO FIT",target:n,propertyName:"resizeToFit"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNNy4xMyw4LjM0YS42MS42MSwwLDEsMCwwLDEuMjFIMjIuMDZhLjYxLjYxLDAsMSwwLDAtMS4yMVoiIHN0eWxlPSJmaWxsOiMzMzMiLz48cGF0aCBkPSJNNy4xMywxMy41OWEuNjEuNjEsMCwxLDAsMCwxLjIxSDIwLjI1YTIsMiwwLDAsMSwwLDRIMTYuNjZsLjU4LS41OWEuNi42LDAsMCwwLS44NS0uODVMMTQuNzcsMTlhLjYyLjYyLDAsMCwwLDAsLjg2bDEuNjIsMS42MWEuNi42LDAsMCwwLC44NS0uODVsLS41OC0uNThoMy41OWEzLjIzLDMuMjMsMCwwLDAsMC02LjQ2WiIgc3R5bGU9ImZpbGw6IzMzMyIvPjxwYXRoIGQ9Ik02LjUyLDE5LjQ0YS42LjYsMCwwLDEsLjYxLS42aDUuMjVhLjYxLjYxLDAsMCwxLDAsMS4yMUg3LjEzQS42MS42MSwwLDAsMSw2LjUyLDE5LjQ0WiIgc3R5bGU9ImZpbGw6IzMzMyIvPjwvc3ZnPg==",label:"Text Wrapping"}),(0,L.jsx)(hs,{label:" ",options:[{label:"Clip",value:0},{label:"Ellipsis",value:2},{label:"Word wrap",value:1}],target:n,propertyName:"textWrapping"})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMjEuMjEsNy44OCwyMi44Myw5LjVhLjYxLjYxLDAsMCwxLS44Ni44NmwtLjU4LS41OHYzLjhhLjYxLjYxLDAsMCwxLS42MS42MS42MS42MSwwLDAsMS0uNjEtLjYxVjkuNzhsLS41OC41OGEuNjEuNjEsMCwwLDEtLjg2LS44NmwxLjYyLTEuNjJhLjYuNiwwLDAsMSwuNDMtLjE4aDBhLjU5LjU5LDAsMCwxLC4yMywwQS42My42MywwLDAsMSwyMS4yMSw3Ljg4WiIgc3R5bGU9ImZpbGw6IzMzMyIvPjxwYXRoIGQ9Ik03LDkuOTNhLjYxLjYxLDAsMCwxLC42MS0uNjFoNi44OWEuNjEuNjEsMCwwLDEsLjYxLjYxLjYxLjYxLDAsMCwxLS42MS42MUg3LjZBLjYxLjYxLDAsMCwxLDcsOS45M1oiIHN0eWxlPSJmaWxsOiMzMzMiLz48cGF0aCBkPSJNNywxNS4yYS42MS42MSwwLDAsMSwuNjEtLjYxaDkuMzNhLjYxLjYxLDAsMCwxLC42LjYxLjYuNiwwLDAsMS0uNi42MUg3LjZBLjYxLjYxLDAsMCwxLDcsMTUuMloiIHN0eWxlPSJmaWxsOiMzMzMiLz48cGF0aCBkPSJNNy42LDE5Ljg3YS42MS42MSwwLDEsMCwwLDEuMjFoNi44OWEuNjEuNjEsMCwxLDAsMC0xLjIxWiIgc3R5bGU9ImZpbGw6IzMzMyIvPjxwYXRoIGQ9Ik0yMC4xNywyMC4yMnYtMy44YS42MS42MSwwLDAsMSwuNjEtLjYxLjYxLjYxLDAsMCwxLC42MS42MXYzLjhsLjU4LS41OGEuNjEuNjEsMCwwLDEsLjg2Ljg2bC0xLjYyLDEuNjJhLjYzLjYzLDAsMCwxLS4yLjEzLjY1LjY1LDAsMCwxLS4yLjA1aDBhLjU5LjU5LDAsMCwxLS4yMy0uMDUuNTMuNTMsMCwwLDEtLjItLjEzTDE4LjczLDIwLjVhLjYxLjYxLDAsMCwxLC44Ni0uODZaIiBzdHlsZT0iZmlsbDojMzMzIi8+PC9zdmc+",label:"Line Spacing"}),(0,L.jsx)(I,{lockObject:this.props.lockObject,label:" ",target:n,propertyName:"lineSpacing"})]}),(0,L.jsx)("hr",{}),(0,L.jsx)(h,{label:"OUTLINE",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:ds,label:"Outline Width"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:" ",target:n,propertyName:"outlineWidth",arrows:!0,min:0,unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),step:"0.01"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:qo,label:"Outline Color"}),(0,L.jsx)(yo,{lockObject:this.props.lockObject,label:" ",target:n,propertyName:"outlineColor"})]})]})}}const ws="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmJ7ZmlsbDojMzMzO308L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iYiIgZD0iTTE3Ljg3LDEyLjE1Yy4yLS4yLC41MS0uMiwuNzEsMGwyLjUsMi41Yy4yLC4yLC4yLC41MSwwLC43MWwtMi41LDIuNWMtLjIsLjItLjUxLC4yLS43MSwwLS4yLS4yLS4yLS41MSwwLS43MWwxLjY1LTEuNjVoLTMuMzZjLS4yOCwwLS41LS4yMi0uNS0uNXMuMjItLjUsLjUtLjVoMy4zNmwtMS42NS0xLjY1Yy0uMi0uMi0uMi0uNTEsMC0uNzFabS0xMC40Ni0zLjAzYy4yNiwwLC40NywuMTksLjUsLjQ0djEwLjgxYzAsLjI4LS4yMiwuNS0uNSwuNS0uMjYsMC0uNDctLjE5LS41LS40NFY5LjYzYzAtLjI4LC4yMi0uNSwuNS0uNVptMTUuMTcsMGMuMjYsMCwuNDcsLjE5LC41LC40NHYxMC44MWMwLC4yOC0uMjIsLjUtLjUsLjUtLjI2LDAtLjQ3LS4xOS0uNS0uNDRWOS42M2MwLS4yOCwuMjItLjUsLjUtLjVabS0xMC41NiwzLjczbC0xLjY1LDEuNjVoMy4zNmMuMjgsMCwuNSwuMjIsLjUsLjUsMCwuMjgtLjIyLC41LS41LC41aC0zLjM2bDEuNjUsMS42NWMuMiwuMiwuMiwuNTEsMCwuNzEtLjIsLjItLjUxLC4yLS43MSwwbC0yLjUtMi41Yy0uMi0uMi0uMi0uNTEsMC0uNzFsMi41LTIuNWMuMi0uMiwuNTEtLjIsLjcxLDAsLjIsLjIsLjIsLjUxLDAsLjcxWiIvPjwvc3ZnPg==";class js extends t.Component{constructor(e){super(e)}render(){const{inputTexts:e,onPropertyChangedObservable:t,lockObject:n}=this.props,o=y(e,t);return(0,L.jsxs)("div",{className:"pane",children:[(0,L.jsx)(ls,{lockObject:n,controls:e,onPropertyChangedObservable:t,onFontsParsedObservable:this.props.onFontsParsedObservable,globalState:this.props.globalState}),(0,L.jsx)("hr",{}),(0,L.jsx)(h,{label:"INPUT TEXT",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmJ7ZmlsbDojMzMzO308L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iYiIgZD0iTTE2LjU1LDExLjk2Yy0uMiwwLS4zOSwuMDgtLjUzLC4yMi0uMTQsLjE0LS4yMiwuMzMtLjIyLC41M3MuMDgsLjM5LC4yMiwuNTNjLjE0LC4xNCwuMzMsLjIyLC41MywuMjJoMS41NXY0Ljk5YzAsMS42OCwxLjM3LDMuMDQsMy4wNCwzLjA0aDEuMTVjLjQxLDAsLjc1LS4zMywuNzUtLjc1cy0uMzMtLjc1LS43NS0uNzVoLTEuMTVjLS44NSwwLTEuNTUtLjctMS41NS0xLjU1di00Ljk5aDIuN2MuMiwwLC4zOS0uMDgsLjUzLS4yMiwuMTQtLjE0LC4yMi0uMzMsLjIyLS41M3MtLjA4LS4zOS0uMjItLjUzYy0uMTQtLjE0LS4zMy0uMjItLjUzLS4yMmgtMi43di0yLjdjMC0uNDEtLjMzLS43NS0uNzUtLjc1cy0uNzUsLjMzLS43NSwuNzV2Mi43aC0xLjU1Wm0tOC44My0zLjQ0Yy0uNDEsMC0uNzUsLjMzLS43NSwuNzVzLjMzLC43NSwuNzUsLjc1aDIuN3YxMC43M2MwLC40MSwuMzMsLjc1LC43NSwuNzVzLjc1LS4zMywuNzUtLjc1VjEwLjAxaDIuN2MuNDEsMCwuNzUtLjMzLC43NS0uNzVzLS4zMy0uNzUtLjc1LS43NUg3LjcxWiIvPjwvc3ZnPg==",label:"Text"}),(0,L.jsx)(I,{lockObject:n,label:"",target:o,propertyName:"text"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmJ7ZmlsbDojMzMzO308L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iYiIgZD0iTTE1LjY1LDEzLjQ1Yy4yLDAsLjM5LS4wOCwuNTMtLjIyLC4xNC0uMTQsLjIyLS4zMywuMjItLjUzcy0uMDgtLjM5LS4yMi0uNTNjLS4xNC0uMTQtLjMzLS4yMi0uNTMtLjIyaC0yLjd2LTIuN2MwLS40MS0uMzMtLjc1LS43NS0uNzVzLS43NSwuMzMtLjc1LC43NXYyLjdoLTEuNTVjLS4yLDAtLjM5LC4wOC0uNTMsLjIyLS4xNCwuMTQtLjIyLC4zMy0uMjIsLjUzcy4wOCwuMzksLjIyLC41M2MuMTQsLjE0LC4zMywuMjIsLjUzLC4yMmgxLjU1djQuOTljMCwxLjY4LDEuMzcsMy4wNCwzLjA0LDMuMDRoMS4xNWMuNDEsMCwuNzUtLjMzLC43NS0uNzVzLS4zMy0uNzUtLjc1LS43NWgtMS4xNWMtLjg1LDAtMS41NS0uNy0xLjU1LTEuNTV2LTQuOTloMi43WiIvPjxwYXRoIGNsYXNzPSJiIiBkPSJNMjAuMjEsNC44MmMtLjM0LDAtLjYyLC4yOC0uNjIsLjYyVjI0LjU1YzAsLjM0LC4yOCwuNjIsLjYyLC42MnMuNjItLjI4LC42Mi0uNjJWNS40NWMwLS4zNC0uMjgtLjYyLS42Mi0uNjJaIi8+PC9zdmc+",label:"Prompt Text"}),(0,L.jsx)(I,{lockObject:n,label:"",target:o,propertyName:"promptMessage"})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:cs,label:"Max Width"}),(0,L.jsx)(I,{lockObject:n,label:"",target:o,propertyName:"maxWidth"})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmJ7ZmlsbDojMzMzO308L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iYiIgZD0iTTIwLjM4LDguNjJjLjQyLDAsLjgxLC4wOCwxLjE5LC4yNXMuNzEsLjM5LDEsLjY4LC41MiwuNjIsLjY4LDFjLjE3LC4zOCwuMjUsLjc4LC4yNiwxLjJ2Ni41MWMwLC40Mi0uMDgsLjgxLS4yNSwxLjE5cy0uMzksLjcxLS42OCwxLS42MiwuNTItMSwuNjgtLjc4LC4yNS0xLjIsLjI2SDkuMTVjLS4zNSwwLS42OS0uMDctMS4wMS0uMnMtLjYtLjMyLS44NS0uNTYtLjQ0LS41Mi0uNTgtLjgzYy0uMTQtLjMyLS4yMi0uNjUtLjIyLTEuMDF2LTcuNTZjMC0uMzUsLjA3LS42OCwuMjEtMSwuMTQtLjMyLC4zMy0uNTksLjU2LS44MnMuNTItLjQyLC44My0uNTYsLjY1LS4yMiwxLS4yMmgxMS4yOVptLS4wNywyLjEzdi0xLjA2SDkuNjh2MS4wNmgxMC42M1ptLTExLjctLjk3Yy0uMjMsLjA4LS40MiwuMi0uNTksLjM3cy0uMjksLjM3LS4zOCwuNmguOTd2LS45N1ptMTMuNTQsLjk3Yy0uMTktLjMzLS40NS0uNTktLjc4LS43OHYuNzhoLjc4Wm0tMTMuNTQsMS4wNmgtMS4wNnY2LjM4aDEuMDZ2LTYuMzhabTExLjcsMEg5LjY4djYuMzhoMTAuNjN2LTYuMzhabTIuMTMsMGgtMS4wNnY2LjM4aDEuMDZ2LTYuMzhabS0xNC44LDcuNDRjLjA4LC4yMywuMjEsLjQzLC4zNywuNnMuMzcsLjMsLjYsLjM3di0uOTdoLS45N1ptMi4wNCwwdjEuMDZoMTAuNjN2LTEuMDZIOS42OFptMTEuNywuNzhjLjMzLS4xOSwuNTktLjQ1LC43OC0uNzhoLS43OHYuNzhaIi8+PC9zdmc+",label:"Margins"}),(0,L.jsx)(I,{lockObject:n,label:"",target:o,propertyName:"margin"})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:ds,label:"Border Thickness"}),(0,L.jsx)(N,{lockObject:n,label:"",target:o,propertyName:"thickness",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),arrows:!0,min:0,digits:2})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:ws,label:"Automatically Stretch Width"}),(0,L.jsx)(qn,{label:"AUTO STRETCH",target:o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OCwuNTktLjE2LC44LC4wNWwuMDYsLjA3LC44LDEuMDcsMy4xOC0zLjE4LTMuMTgsMy4xOFoiLz48L3N2Zz4=",label:"When Input is Focus, Select All"}),(0,L.jsx)(qn,{label:"ON FOCUS, SELECT ALL",target:o,propertyName:"onFocusSelectAll"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmJ7ZmlsbDojMzMzO308L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iYiIgZD0iTTIxLjc3LDYuOGMuMzEsMCwuNTcsLjIzLC42MSwuNTN2My43N2MwLC45NS0uNzIsMS43My0xLjY0LDEuODN2MS44NWMwLC45OC0uNzYsMS43OC0xLjcyLDEuODRoLS4zM3YyLjI5YzAsLjY3LS4zNiwxLjI4LS45NCwxLjZsLS4xMywuMDctNS40NCwyLjU1Yy0uMzgsLjE4LS44Mi0uMDctLjg3LS40N3YtNi4wM2gtLjIxYy0uOTgsMC0xLjc3LS43Ni0xLjg0LTEuNzJ2LTEuOThjLS44OC0uMS0xLjU3LS44MS0xLjY0LTEuN3YtMy44MmMwLS4zNCwuMjctLjYxLC42MS0uNjEsLjMxLDAsLjU3LC4yMywuNjEsLjUzdjMuNzdjMCwuMzEsLjI0LC41NywuNTQsLjYxaDExLjE1Yy4zMSwwLC41Ny0uMjMsLjYxLS41M3YtMy43N2MwLS4zNCwuMjgtLjYxLC42Mi0uNjFabS00LjMxLDkuODNoLTQuOTJ2NC45OGw0LjU2LTIuMTRjLjE5LS4wOSwuMzItLjI3LC4zNS0uNDd2LTIuMzhabTIuMDYtMy42OEgxMC40OXYxLjg0YzAsLjMxLC4yMywuNTcsLjUzLC42MWg3Ljg3Yy4zMSwwLC41Ny0uMjMsLjYxLS41M3YtMS45MloiLz48L3N2Zz4=",label:"Highlight Color"}),(0,L.jsx)(yo,{lockObject:n,label:"",target:o,propertyName:"textHighlightColor"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:Vo,label:"Highlight Opacity"}),(0,L.jsx)(S,{lockObject:n,label:"",minimum:0,maximum:1,step:.01,target:o,propertyName:"highligherOpacity"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:qo,label:"Background Color when Focused"}),(0,L.jsx)(yo,{lockObject:n,label:"",target:o,propertyName:"focusedBackground"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmJ7ZmlsbDojMzMzO308L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iYiIgZD0iTTEyLjI3LDcuNDJINS4zOGMtLjQxLDAtLjc1LC4zMy0uNzUsLjc1cy4zMywuNzUsLjc1LC43NWgyLjd2MTAuNzNjMCwuNDEsLjMzLC43NSwuNzUsLjc1cy43NS0uMzMsLjc1LS43NVY4LjkxaDIuN2MuNDEsMCwuNzUtLjMzLC43NS0uNzVzLS4zMy0uNzUtLjc1LS43NVoiLz48cGF0aCBjbGFzcz0iYiIgZD0iTTE3LjI1LDEyLjM1aDIuN2MuMiwwLC4zOS0uMDgsLjUzLS4yMiwuMTQtLjE0LC4yMi0uMzMsLjIyLS41M3MtLjA4LS4zOS0uMjItLjUzYy0uMTQtLjE0LS4zMy0uMjItLjUzLS4yMmgtMi43di0yLjdjMC0uNDEtLjMzLS43NS0uNzUtLjc1cy0uNzUsLjMzLS43NSwuNzV2Mi43aC0xLjU1Yy0uMiwwLS4zOSwuMDgtLjUzLC4yMi0uMTQsLjE0LS4yMiwuMzMtLjIyLC41M3MuMDgsLjM5LC4yMiwuNTNjLjE0LC4xNCwuMzMsLjIyLC41MywuMjJoMS41NXY0Ljk5YzAsLjUsLjE0LC45NywuMzUsMS4zOSwuMjMtLjc1LC42Mi0xLjQzLDEuMTQtMnYtNC4zOVoiLz48cGF0aCBjbGFzcz0iYiIgZD0iTTIyLjIxLDIwLjEzaC0xLjA3di0xLjQ5YzAtLjM0LS4yOC0uNjItLjYyLS42MnMtLjYyLC4yOC0uNjIsLjYydjIuMTJjMCwuMzQsLjI4LC42MiwuNjIsLjYyaDEuNjljLjM0LDAsLjYyLS4yOCwuNjItLjYycy0uMjgtLjYyLS42Mi0uNjJaIi8+PHBhdGggY2xhc3M9ImIiIGQ9Ik0yMS4wNCwxNS45M2MtMi4zOSwwLTQuMzMsMS45NC00LjMzLDQuMzNzMS45NCw0LjMzLDQuMzMsNC4zMyw0LjMzLTEuOTQsNC4zMy00LjMzLTEuOTQtNC4zMy00LjMzLTQuMzNabTAsNy40Yy0xLjcsMC0zLjA4LTEuMzgtMy4wOC0zLjA4czEuMzgtMy4wOCwzLjA4LTMuMDgsMy4wOCwxLjM4LDMuMDgsMy4wOC0xLjM4LDMuMDgtMy4wOCwzLjA4WiIvPjwvc3ZnPg==",label:"Placeholder Text"}),(0,L.jsx)(I,{lockObject:n,label:"",target:o,propertyName:"placeholderText"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:Xo,label:"Placeholder Color"}),(0,L.jsx)(yo,{lockObject:n,label:"",target:o,propertyName:"placeholderColor"})]})]})}}class ms extends t.Component{constructor(e){super(e)}render(){const e=this.props.colorPickers;return(0,L.jsxs)("div",{className:"pane",children:[(0,L.jsx)(ls,{lockObject:this.props.lockObject,controls:e,onFontsParsedObservable:this.props.onFontsParsedObservable,globalState:this.props.globalState}),(0,L.jsx)("hr",{}),(0,L.jsx)(h,{label:"COLOR PICKER",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:qo,label:"Color Picker Value"}),(0,L.jsx)(yo,{label:"",target:y(e,this.props.onPropertyChangedObservable),propertyName:"value",disableAlpha:!0,lockObject:this.props.lockObject})]})]})}}const bs="data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMjIuNDMsMTlhLjYuNiwwLDAsMSwuMDksMS4yaC0yLjN2Mi4yMWEuNi42LDAsMCwxLS42LjYxLjYxLjYxLDAsMCwxLS42LS41MnYtMi4zSDEyLjM5YTIuNjEsMi42MSwwLDAsMS0yLjYxLTIuNDZWMTFINy41NmEuNi42LDAsMCwxLS4wOC0xLjJIOS43N1Y3LjU3YS42LjYsMCwwLDEsLjYtLjYxLjYxLjYxLDAsMCwxLC42LjUydjIuM2gwVjExaDB2Ni42M0ExLjQsMS40LDAsMCwwLDEyLjI3LDE5SDIyLjQzWk0xMS43OCw5Ljc4aDUuODNhMi42MiwyLjYyLDAsMCwxLDIuNjEsMi40NnY2SDE5VjEyLjM5QTEuNCwxLjQsMCwwLDAsMTcuNzMsMTFoLTZaIi8+PC9zdmc+",ys="data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMjEuNzIsNy42N2gtNS4zYS42Mi42MiwwLDAsMC0uNjEuNjEuNjEuNjEsMCwwLDAsLjYxLjYxaDMuODJMMTYsMTMuMTRhLjYyLjYyLDAsMCwwLC44Ny44N2w0LjI1LTQuMjV2My44MmEuNjEuNjEsMCwwLDAsLjYxLjYxLjYyLjYyLDAsMCwwLC42MS0uNjFWOC4yOEEuNjIuNjIsMCwwLDAsMjEuNzIsNy42N1oiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0yMS43MiwxNS44MWEuNjEuNjEsMCwwLDAtLjYxLjYydjMuMjVhMS40MywxLjQzLDAsMCwxLTEuNDMsMS40M0gxNVYxNy4yNEEyLjI0LDIuMjQsMCwwLDAsMTIuNzYsMTVIOC44OVYxMC4zMmExLjQzLDEuNDMsMCwwLDEsMS40My0xLjQzaDMuMjVhLjYxLjYxLDAsMCwwLC42Mi0uNjEuNjIuNjIsMCwwLDAtLjYyLS42MUgxMC4zMmEyLjY1LDIuNjUsMCwwLDAtMi42NSwyLjY1djkuMzZhMi42NSwyLjY1LDAsMCwwLDIuNjUsMi42NWg5LjM2YTIuNjUsMi42NSwwLDAsMCwyLjY1LTIuNjVWMTYuNDNBLjYyLjYyLDAsMCwwLDIxLjcyLDE1LjgxWm0tNy45NCw1LjNIMTAuMzJhMS40MywxLjQzLDAsMCwxLTEuNDMtMS40M1YxNi4yMmgzLjg3YTEsMSwwLDAsMSwxLDFaIi8+PC9zdmc+";class fs extends t.Component{constructor(e){super(e),this._observers=new Map,this.updateObservers([],e.images)}shouldComponentUpdate(e){return this.updateObservers(this.props.images,e.images),!0}updateObservers(e,t){for(const n of t)e.includes(n)||this._observers.set(n,n.onImageLoadedObservable.add((()=>this.forceUpdate())));for(const n of e)t.includes(n)||(n.onImageLoadedObservable.remove(this._observers.get(n)),this._observers.delete(n))}componentWillUnmount(){this.updateObservers(this.props.images,[])}toggleAnimations(e){for(const t of this.props.images)e?(t.cellId=0,t.cellWidth=t.imageWidth,t.cellHeight=t.imageHeight):t.cellId=-1}getMaxCells(){let e=Number.MAX_SAFE_INTEGER;for(const t of this.props.images){if(0===t.cellWidth||0===t.cellHeight)continue;const n=Math.ceil(t.imageWidth/t.cellWidth)*Math.ceil(t.imageHeight/t.cellHeight)-1;n<e&&(e=n)}return e}updateCellSize(){const e=this.getMaxCells();for(const t of this.props.images)t.cellId>e&&(t.cellId=e);this.forceUpdate()}render(){const e=this.props.images,t=e[0],n=y(e,this.props.onPropertyChangedObservable),o=[{label:"None",value:a.Image.STRETCH_NONE},{label:"Fill",value:a.Image.STRETCH_FILL},{label:"Uniform",value:a.Image.STRETCH_UNIFORM},{label:"Extend",value:a.Image.STRETCH_EXTEND},{label:"NinePatch",value:a.Image.STRETCH_NINE_PATCH}],s=e.every((e=>-1!==e.cellId)),i=this.getMaxCells(),r=Math.max(...e.map((e=>e.imageWidth))),l=Math.max(...e.map((e=>e.imageHeight)));return(0,L.jsxs)("div",{className:"pane",children:[(0,L.jsx)(ls,{lockObject:this.props.lockObject,controls:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable,onFontsParsedObservable:this.props.onFontsParsedObservable,globalState:this.props.globalState}),(0,L.jsx)("hr",{}),(0,L.jsx)(h,{label:"IMAGE",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTIuNzgsMTFhLjYuNiwwLDAsMSwuMDksMS4ySDExYTIuODIsMi44MiwwLDAsMC0uMTcsNS42NGgyYS42MS42MSwwLDAsMSwuNjEuNjEuNjIuNjIsMCwwLDEtLjUyLjZIMTFhNCw0LDAsMCwxLS4yLTguMDZoMlpNMTksMTFhNCw0LDAsMCwxLC4yLDguMDZoLTJhLjYuNiwwLDAsMS0uMDktMS4ySDE5YTIuODIsMi44MiwwLDAsMCwuMTctNS42NGgtMmEuNjEuNjEsMCwwLDEtLjYxLS42MS42Mi42MiwwLDAsMSwuNTItLjZIMTlaTTExLDE0LjRIMTlhLjYuNiwwLDAsMSwuMDgsMS4ySDExYS42LjYsMCwwLDEtLjA4LTEuMloiLz48L3N2Zz4=",label:"Source"}),(0,L.jsx)(I,{lockObject:this.props.lockObject,label:" ",target:n,propertyName:"source"})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:bs,label:"Crop"}),(0,L.jsx)(I,{lockObject:this.props.lockObject,label:"L",target:n,propertyName:"sourceLeft",numeric:!0,arrows:!0,min:0,placeholder:"0",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0})}),(0,L.jsx)(I,{lockObject:this.props.lockObject,label:"T",target:n,propertyName:"sourceTop",numeric:!0,arrows:!0,min:0,placeholder:"0",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0})})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:bs,label:"Crop"}),(0,L.jsx)(I,{lockObject:this.props.lockObject,label:"W",target:n,propertyName:"sourceWidth",numeric:!0,arrows:!0,min:0,placeholder:Math.max(...e.map((e=>e.imageWidth))).toString(),unit:(0,L.jsx)(ts,{unit:"PX",locked:!0})}),(0,L.jsx)(I,{lockObject:this.props.lockObject,label:"H",target:n,propertyName:"sourceHeight",numeric:!0,arrows:!0,min:0,placeholder:Math.max(...e.map((e=>e.imageHeight))).toString(),unit:(0,L.jsx)(ts,{unit:"PX",locked:!0})})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:ys,label:"Autoscale"}),(0,L.jsx)(qn,{label:"AUTOSCALE",target:n,propertyName:"autoScale",onPropertyChangedObservable:this.props.onPropertyChangedObservable})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTEuNzcsMTIuOTNhLjYxLjYxLDAsMCwxLC4wNi44NmwtLjU0LjYxSDEzLjZhLjYuNiwwLDAsMSwwLDEuMkgxMS4yOWwuNTQuNjFhLjYxLjYxLDAsMCwxLS45Mi44TDkuNSwxNS40YS42MS42MSwwLDAsMSwwLS44TDEwLjkxLDEzQS42MS42MSwwLDAsMSwxMS43NywxMi45M1ptNi40Mi44NmEuNjEuNjEsMCwxLDEsLjkxLS44bDEuNDEsMS42MWEuNjEuNjEsMCwwLDEsMCwuOEwxOS4xLDE3YS42MS42MSwwLDEsMS0uOTEtLjhsLjUzLS42MUgxNi40MWEuNi42LDAsMCwxLDAtMS4yaDIuMzFaTTYuOTMsMTAuMzZBMS44MiwxLjgyLDAsMCwxLDguNzUsOC41NWgxMi41YTEuODEsMS44MSwwLDAsMSwxLjgxLDEuODF2OS4yOGExLjgxLDEuODEsMCwwLDEtMS44MSwxLjgxSDguNzVhMS44MiwxLjgyLDAsMCwxLTEuODItMS44MVptMS44Mi0uNmEuNi42LDAsMCwwLS42MS42djkuMjhhLjYuNiwwLDAsMCwuNjEuNmgxMi41YS42LjYsMCwwLDAsLjYtLjZWMTAuMzZhLjYuNiwwLDAsMC0uNi0uNloiLz48L3N2Zz4=",label:"Stretch"}),(0,L.jsx)(hs,{label:" ",options:o,target:n,propertyName:"stretch",onSelect:e=>this.setState({mode:e})})]}),1===e.length&&t.stretch===a.Image.STRETCH_NINE_PATCH&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:bs,label:"Slice Horizontal"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"L",target:t,propertyName:"sliceLeft",onChange:()=>{t.populateNinePatchSlicesFromImage=!1,this.forceUpdate()}}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"R",target:t,propertyName:"sliceRight",onChange:()=>{t.populateNinePatchSlicesFromImage=!1,this.forceUpdate()}})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:bs,label:"Slice Vertical"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"T",target:t,propertyName:"sliceTop",onChange:()=>{t.populateNinePatchSlicesFromImage=!1,this.forceUpdate()}}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"B",target:t,propertyName:"sliceBottom",onChange:()=>{t.populateNinePatchSlicesFromImage=!1,this.forceUpdate()}})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:ys,label:"Populate Nine Patch Slices From Image"}),(0,L.jsx)(qn,{label:"SLICE FROM IMAGE",target:t,propertyName:"populateNinePatchSlicesFromImage",onValueChanged:()=>{this.forceUpdate(),t._markAsDirty()}})]})]}),(0,L.jsx)("hr",{}),(0,L.jsx)(qn,{iconLabel:"animationSheet",icon:"data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjMwIiBoZWlnaHQ9IjMwIiB2aWV3Qm94PSIwIDAgMzAgMzAiPjxkZWZzPjxzdHlsZT4uY2xzLTF7ZmlsbDojMzMzO308L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik04LjU2LDguNTZoOC44NUExLjYxLDEuNjEsMCwwLDEsMTksMTAuMTdWMTUuOGExLjYxLDEuNjEsMCwwLDEtMS42MSwxLjYxSDguNTZBMS42MSwxLjYxLDAsMCwxLDcsMTUuOFYxMC4xN0ExLjYxLDEuNjEsMCwwLDEsOC41Niw4LjU2Wm04Ljg1LDEuMjFIOC41NmEuNC40LDAsMCwwLS40LjRWMTUuOGEuNC40LDAsMCwwLC40LjQxaDguODVhLjQxLjQxLDAsMCwwLC40MS0uNDFWMTAuMTdBLjQuNCwwLDAsMCwxNy40MSw5Ljc3Wk05LDE4LjIyYTEuNjIsMS42MiwwLDAsMCwxLjU2LDEuMjFoNy4yNUEzLjIyLDMuMjIsMCwwLDAsMjEsMTYuMjF2LTRhMS42MiwxLjYyLDAsMCwwLTEuMjEtMS41NnY1LjU5YTIsMiwwLDAsMS0yLDJabTIsMmExLjYxLDEuNjEsMCwwLDAsMS41NiwxLjIxaDUuODNhNC42Myw0LjYzLDAsMCwwLDQuNjMtNC42M1YxNC4yYTEuNiwxLjYsMCwwLDAtMS4yMS0xLjU2djQuMTdhMy40MiwzLjQyLDAsMCwxLTMuNDIsMy40MloiLz48L3N2Zz4=",label:"ANIMATION SHEET",target:y(e,this.props.onPropertyChangedObservable,(e=>-1!==e.cellId)),onValueChanged:()=>{this.toggleAnimations(!s),this.forceUpdate()}}),s&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{className:"ge-divider double",children:(0,L.jsx)(N,{iconLabel:"Cell Id",icon:"data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTQuMTEsMTEuMzlhLjYyLjYyLDAsMCwxLC40OC43MWwtLjE4Ljg5aDJsLjIyLTEuMTJhLjYxLjYxLDAsMCwxLC43MS0uNDguNi42LDAsMCwxLC40Ny43MWwtLjE3Ljg5aC43OWEuNjEuNjEsMCwwLDEsMCwxLjIxaC0xbC0uMzMsMS42aDFBLjYxLjYxLDAsMCwxLDE4LDE3aC0xLjJsLS4yMiwxLjEzYS42Mi42MiwwLDAsMS0uNzEuNDcuNjEuNjEsMCwwLDEtLjQ4LS43MWwuMTgtLjg5aC0ybC0uMjIsMS4xM2EuNjEuNjEsMCwwLDEtLjcxLjQ3LjYuNiwwLDAsMS0uNDctLjcxbC4xNy0uODloLS43OWEuNjEuNjEsMCwwLDEsMC0xLjIxaDFsLjMzLTEuNkgxMkEuNjEuNjEsMCwwLDEsMTIsMTNoMS4ybC4yMi0xLjEyQS42Mi42MiwwLDAsMSwxNC4xMSwxMS4zOVptLS4yNiw0LjQxaDJsLjMyLTEuNmgtMlpNNy43NiwxMC4zN2EyLjYxLDIuNjEsMCwwLDEsMi42MS0yLjYxaDkuMjZhMi42MSwyLjYxLDAsMCwxLDIuNjEsMi42MXY5LjI2YTIuNjEsMi42MSwwLDAsMS0yLjYxLDIuNjFIMTAuMzdhMi42MSwyLjYxLDAsMCwxLTIuNjEtMi42MVpNMTAuMzcsOUExLjQsMS40LDAsMCwwLDksMTAuMzd2OS4yNmExLjQsMS40LDAsMCwwLDEuNCwxLjRoOS4yNmExLjQsMS40LDAsMCwwLDEuNC0xLjRWMTAuMzdBMS40LDEuNCwwLDAsMCwxOS42Myw5WiIvPjwvc3ZnPg==",lockObject:this.props.lockObject,label:"",isInteger:!0,target:n,propertyName:"cellId",min:0,max:i})}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(N,{icon:Qo,lockObject:this.props.lockObject,label:"W",target:n,propertyName:"cellWidth",isInteger:!0,onChange:()=>this.updateCellSize(),min:1,max:r}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"H",target:n,propertyName:"cellHeight",isInteger:!0,onChange:()=>this.updateCellSize(),min:1,max:l})]})]})]})}}class xs extends t.Component{constructor(e){super(e)}render(){const e=this.props.imageBasedSliders;return(0,L.jsxs)("div",{className:"pane",children:[(0,L.jsx)(ls,{lockObject:this.props.lockObject,controls:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable,onFontsParsedObservable:this.props.onFontsParsedObservable,globalState:this.props.globalState}),(0,L.jsx)("hr",{}),(0,L.jsx)(h,{label:"IMAGE LINKS",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTUsNi45MUE4LjA5LDguMDksMCwxLDAsMjMuMDksMTUsOC4wOSw4LjA5LDAsMCwwLDE1LDYuOTFabTAsMS4yMkE2Ljg3LDYuODcsMCwwLDEsMjAuNTksMTlsLTQuMzItNC4yMy0uMTEtLjA5YTEuOCwxLjgsMCwwLDAtMi40My4wOUw5LjQxLDE5QTYuODcsNi44NywwLDAsMSwxNSw4LjEzWk0xMC4yLDE5LjkxbDQuMzgtNC4yOS4wNywwYS41OC41OCwwLDAsMSwuNzcsMGw0LjM4LDQuMjlhNi44Niw2Ljg2LDAsMCwxLTkuNiwwWiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTE3LjYyLDEzLjQ0YTEuODEsMS44MSwwLDEsMC0xLjgyLTEuODFBMS44MSwxLjgxLDAsMCwwLDE3LjYyLDEzLjQ0Wm0wLTIuNDFhLjYxLjYxLDAsMSwxLS42MS42QS42LjYsMCwwLDEsMTcuNjIsMTFaIi8+PC9zdmc+",label:"Thumb Image Link"}),(0,L.jsx)(I,{lockObject:this.props.lockObject,target:y(e.map((e=>e.thumbImage)),this.props.onPropertyChangedObservable),label:"",propertyName:"source"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTcuNjIsMTAuNTRBMS44MSwxLjgxLDAsMSwwLDE1LjgsOC43MywxLjgxLDEuODEsMCwwLDAsMTcuNjIsMTAuNTRabTAtMi40MWEuNi42LDAsMCwxLC42LjYuNjEuNjEsMCwxLDEtMS4yMSwwQS42LjYsMCwwLDEsMTcuNjIsOC4xM1oiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0yMS43NSwxOC41OEg4LjI1YTIuMjUsMi4yNSwwLDAsMCwwLDQuNWgxMy41YTIuMjUsMi4yNSwwLDAsMCwwLTQuNVptMCwzSDguMjVhLjc1Ljc1LDAsMCwxLDAtMS41aDEzLjVhLjc1Ljc1LDAsMCwxLDAsMS41WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTcuMjIsMTcuMzhIMjIuNTVhLjUuNSwwLDAsMCwuNDQtLjUuNTEuNTEsMCwwLDAtLjUxLS41SDIwLjg3bC00LjYtNC41MS0uMTEtLjA5YTEuOCwxLjgsMCwwLDAtMi40My4wOWwtNC42LDQuNTFoLTJhLjUxLjUxLDAsMCwwLS40My41QS41LjUsMCwwLDAsNy4yMiwxNy4zOFptNy4zNi00LjY2LjA3LS4wNmEuNTkuNTksMCwwLDEsLjc3LjA2bDMuNzMsMy42NWgtOC4zWiIvPjwvc3ZnPg==",label:"Value Bar Image Link"}),(0,L.jsx)(I,{lockObject:this.props.lockObject,target:y(e.map((e=>e.valueBarImage)),this.props.onPropertyChangedObservable),label:"",propertyName:"source",onPropertyChangedObservable:this.props.onPropertyChangedObservable})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTUuODEsMTEuNzdBMS44MiwxLjgyLDAsMSwwLDE3LjYzLDEwLDEuODEsMS44MSwwLDAsMCwxNS44MSwxMS43N1ptMS44Mi0uNjFhLjYxLjYxLDAsMSwxLS42MS42MUEuNjEuNjEsMCwwLDEsMTcuNjMsMTEuMTZaIi8+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMjEuMDYsOS4zNEgxOC40M2EyLjU1LDIuNTUsMCwwLDEsMS40NSwxLjIxaDEuMThBMi40MywyLjQzLDAsMCwxLDIzLjQ5LDEzVjE3YTIuNDMsMi40MywwLDAsMS0yLjQzLDIuNDJIMjAuOWwtNC42My00LjUzLS4xLS4xYTEuODIsMS44MiwwLDAsMC0yLjQ0LjFMOS4xLDE5LjQ1SDguOTRBMi40MywyLjQzLDAsMCwxLDYuNTEsMTdWMTNhMi40MywyLjQzLDAsMCwxLDIuNDMtMi40Mmg2LjQ0YTIuNTQsMi41NCwwLDAsMSwxLjQ2LTEuMjFIOC45NEEzLjY0LDMuNjQsMCwwLDAsNS4zLDEzVjE3YTMuNjQsMy42NCwwLDAsMCwzLjY0LDMuNjNIMjEuMDZBMy42NCwzLjY0LDAsMCwwLDI0LjcsMTdWMTNBMy42NCwzLjY0LDAsMCwwLDIxLjA2LDkuMzRabS02LjQ4LDYuNDUuMDYtLjA2YS42MS42MSwwLDAsMSwuNzguMDZsMy43NSwzLjY2SDEwLjgzWiIvPjwvc3ZnPg==",label:"Background Image Link"}),(0,L.jsx)(I,{lockObject:this.props.lockObject,target:y(e.map((e=>e.backgroundImage)),this.props.onPropertyChangedObservable),label:"",propertyName:"source",onPropertyChangedObservable:this.props.onPropertyChangedObservable})]}),(0,L.jsx)(us,{sliders:e,lockObject:this.props.lockObject,onPropertyChangedObservable:this.props.onPropertyChangedObservable})]})}}class Ns extends t.Component{render(){const{containers:e,onPropertyChangedObservable:t}=this.props,n=y(e,t);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMjAuNDgsMTEuMzVIMTguNjVWOS41MmExLjkzLDEuOTMsMCwwLDAsMC0uMjQsMi41MywyLjUzLDAsMCwwLS4zOC0xLjE1TDE4LjIsOGEyLjYyLDIuNjIsMCwwLDAtMS45NC0xLjE1SDkuNTJBMi42NCwyLjY0LDAsMCwwLDYuODgsOS41MlYxNmEyLDIsMCwwLDAsMCwuMjUsMi42NiwyLjY2LDAsMCwwLC4zOCwxLjE0bC4wNi4wOWEyLjY3LDIuNjcsMCwwLDAsLjguNzcsMi41MywyLjUzLDAsMCwwLDEuMTUuMzhoMi4wN3YxLjgzQTIuNjQsMi42NCwwLDAsMCwxNCwyMy4xMmg2LjVhMi42NCwyLjY0LDAsMCwwLDIuNjQtMi42NFYxNEEyLjY0LDIuNjQsMCwwLDAsMjAuNDgsMTEuMzVabS0zLTEuODN2MWwtLjg3Ljg3SDE1LjA1TDE3LjM1LDlBMS4yOCwxLjI4LDAsMCwxLDE3LjQ0LDkuNTJabTAsM1YxNkExLjQzLDEuNDMsMCwwLDEsMTYsMTcuNDRIMTIuNTZWMTRBMS40MywxLjQzLDAsMCwxLDE0LDEyLjU2Wm0tOS4zNC0zQTEuNDEsMS40MSwwLDAsMSw5LjUyLDguMWguNTZsLTIsMlptMCwyLjI4LDMuNy0zLjdoMS41M0w4LjEsMTMuMzNabTMuMjUsNC43Ny0uODcuODdoLTFBMS4yOCwxLjI4LDAsMCwxLDksMTcuMzVsMi4zMS0yLjNabS4xMS0zLjM2TDguMTgsMTYuNDlBMS41MSwxLjUxLDAsMCwxLDguMSwxNnYtMWw3LTdoMWExLjUsMS41LDAsMCwxLC40Ny4wOGwtMy4yOCwzLjI4QTIuNjgsMi42OCwwLDAsMCwxMS40NiwxMy4yMVpNMjEuOSwyMC40OGExLjQxLDEuNDEsMCwwLDEtMS40MiwxLjQySDE0YTEuNDIsMS40MiwwLDAsMS0xLjQyLTEuNDJWMTguNjVIMTZBMi42NCwyLjY0LDAsMCwwLDE4LjY1LDE2VjEyLjU2aDEuODNBMS40MiwxLjQyLDAsMCwxLDIxLjksMTRaIiBzdHlsZT0iZmlsbDojMzMzIi8+PC9zdmc+",label:"Clips content outside the bounding box of this control"}),(0,L.jsx)(qn,{label:"CLIP CONTENT",target:n,propertyName:"clipContent"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmJ7ZmlsbDojMzMzO308L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iYiIgZD0iTTIyLjE4LDEyLjgzaC02LjVjLTEuNDUsMC0yLjYyLDEuMTgtMi42MiwyLjYydjYuMzVjMCwxLjQ1LDEuMTgsMi42MiwyLjYyLDIuNjJoNi41YzEuNDUsMCwyLjYyLTEuMTgsMi42Mi0yLjYydi02LjM1YzAtMS40NS0xLjE4LTIuNjItMi42Mi0yLjYyWm0xLjM4LDguOTdjMCwuNzYtLjYyLDEuMzgtMS4zOCwxLjM4aC02LjVjLS43NiwwLTEuMzgtLjYyLTEuMzgtMS4zOHYtNi4zNWMwLS43NiwuNjItMS4zOCwxLjM4LTEuMzhoNi41Yy43NiwwLDEuMzgsLjYyLDEuMzgsMS4zOHY2LjM1WiIvPjxwYXRoIGNsYXNzPSJiIiBkPSJNMTMuNzcsOC4yNmMwLTEuNDUtMS4xOC0yLjYyLTIuNjItMi42MmgtMy4xNGMtMS40NSwwLTIuNjIsMS4xOC0yLjYyLDIuNjJ2My4wM2MwLDEuNDUsMS4xOCwyLjYyLDIuNjIsMi42MmgzLjE0YzEuNDUsMCwyLjYyLTEuMTgsMi42Mi0yLjYydi0zLjAzWm0tMi4yNy0xLjMybC00Ljc5LDQuNzljLS4wNS0uMTQtLjA4LS4yOC0uMDgtLjQ0di0uODVsMy41NS0zLjU1aC45NmMuMTIsMCwuMjQsLjAyLC4zNiwuMDVabS0zLjQ5LS4wNWguNDFsLTEuNzksMS43OXYtLjQxYzAtLjc2LC42Mi0xLjM4LDEuMzgtMS4zOFptLS40LDUuNzJsNC44Mi00LjgyYy4wNiwuMTUsLjA5LC4zMSwuMDksLjQ4di44NWwtMy41NSwzLjU1aC0uOTZjLS4xNCwwLS4yNy0uMDMtLjQtLjA3Wm0zLjU0LC4wN2gtLjQxbDEuNzgtMS43OHYuNDFjMCwuNzYtLjYyLDEuMzgtMS4zOCwxLjM4WiIvPjwvc3ZnPg==",label:"Clips child controls to this control's shape"}),(0,L.jsx)(qn,{label:"CLIP CHILDREN",target:n,propertyName:"clipChildren"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:ws,label:"Makes the container's width automatically adapt to its children"}),(0,L.jsx)(qn,{label:"ADAPT WIDTH TO CHILDREN",target:n,propertyName:"adaptWidthToChildren"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmJ7ZmlsbDojMzMzO308L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iYiIgZD0iTTEyLjE1LDEyLjEzYy0uMi0uMi0uMi0uNTEsMC0uNzFsMi41LTIuNWMuMi0uMiwuNTEtLjIsLjcxLDBsMi41LDIuNWMuMiwuMiwuMiwuNTEsMCwuNzEtLjIsLjItLjUxLC4yLS43MSwwbC0xLjY1LTEuNjV2My4zNmMwLC4yOC0uMjIsLjUtLjUsLjVzLS41LS4yMi0uNS0uNXYtMy4zNmwtMS42NSwxLjY1Yy0uMiwuMi0uNTEsLjItLjcxLDBabS0zLjAzLDEwLjQ2YzAtLjI2LC4xOS0uNDcsLjQ0LS41aDEwLjgxYy4yOCwwLC41LC4yMiwuNSwuNXMtLjE5LC40Ny0uNDQsLjVIOS42M2MtLjI4LDAtLjUtLjIyLS41LS41Wm0wLTE1LjE3YzAtLjI2LC4xOS0uNDcsLjQ0LS41aDEwLjgxYy4yOCwwLC41LC4yMiwuNSwuNSwwLC4yNi0uMTksLjQ3LS40NCwuNUg5LjYzYy0uMjgsMC0uNS0uMjItLjUtLjVabTMuNzMsMTAuNTZsMS42NSwxLjY1di0zLjM2YzAtLjI4LC4yMi0uNSwuNS0uNXMuNSwuMjIsLjUsLjV2My4zNmwxLjY1LTEuNjVjLjItLjIsLjUxLS4yLC43MSwwLC4yLC4yLC4yLC41MSwwLC43MWwtMi41LDIuNWMtLjIsLjItLjUxLC4yLS43MSwwbC0yLjUtMi41Yy0uMi0uMi0uMi0uNTEsMC0uNzEsLjItLjIsLjUxLS4yLC43MSwwWiIvPjwvc3ZnPg==",label:"Makes the container's height automatically adapt to its children"}),(0,L.jsx)(qn,{label:"ADAPT HEIGHT TO CHILDREN",target:n,propertyName:"adaptHeightToChildren"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:es,label:"Delegates picking to children controls"}),(0,L.jsx)(qn,{label:"DELEGATE PICKING TO CHILDREN",target:n,propertyName:"delegatePickingToChildren"})]})]})}}const Ss="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMjAuNDIsMjIuMjFIOS41N2ExLjc4LDEuNzgsMCwwLDEtMS43OC0xLjc4VjkuNThhMS44LDEuOCwwLDAsMSwyLTEuNzhBMTMuODYsMTMuODYsMCwwLDEsMjIuMiwyMC4yNWgwYTEuOCwxLjgsMCwwLDEtMS43OCwyWk05LjU4LDlhLjUyLjUyLDAsMCwwLS4zNi4xNC41Mi41MiwwLDAsMC0uMTguNFYyMC40M2EuNTMuNTMsMCwwLDAsLjUzLjUzSDIwLjQyYS41Mi41MiwwLDAsMCwuNC0uMTguNTYuNTYsMCwwLDAsLjE0LS40MUExMi42MiwxMi42MiwwLDAsMCw5LjYzLDlaIiBzdHlsZT0iZmlsbDojMzMzIi8+PC9zdmc+";class Ds extends t.Component{constructor(e){super(e)}render(){const{rectangles:e,lockObject:t,onPropertyChangedObservable:n}=this.props,o=y(e,n);return(0,L.jsxs)("div",{className:"pane",children:[(0,L.jsx)(ls,{lockObject:t,controls:e,onPropertyChangedObservable:n,onFontsParsedObservable:this.props.onFontsParsedObservable,globalState:this.props.globalState}),(0,L.jsx)("hr",{}),(0,L.jsx)(h,{label:"RECTANGLE",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:ds,label:"Stroke Weight"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"",target:o,propertyName:"thickness",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),arrows:!0,min:0,digits:2})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:Ss,label:"Corner Radius"}),(0,L.jsx)(N,{lockObject:t,label:"",target:o,propertyName:"cornerRadius",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),arrows:!0,min:0,digits:2})]}),(0,L.jsxs)("div",{className:"ge-divider quad",children:[(0,L.jsx)(N,{lockObject:t,label:"X",target:o,propertyName:"cornerRadiusX",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),arrows:!0,min:0,digits:2}),(0,L.jsx)(N,{lockObject:t,label:"Y",target:o,propertyName:"cornerRadiusY",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),arrows:!0,min:0,digits:2}),(0,L.jsx)(N,{lockObject:t,label:"Z",target:o,propertyName:"cornerRadiusZ",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),arrows:!0,min:0,digits:2}),(0,L.jsx)(N,{lockObject:t,label:"W",target:o,propertyName:"cornerRadiusW",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),arrows:!0,min:0,digits:2})]}),(0,L.jsx)(Ns,{containers:e,onPropertyChangedObservable:n})]})}}class Is extends t.Component{constructor(e){super(e)}render(){const{stackPanels:e,lockObject:t,onPropertyChangedObservable:n}=this.props,o=y(e,n);return(0,L.jsxs)("div",{className:"pane",children:[(0,L.jsx)(ls,{lockObject:t,controls:e,onPropertyChangedObservable:n,onFontsParsedObservable:this.props.onFontsParsedObservable,globalState:this.props.globalState}),(0,L.jsx)("hr",{}),(0,L.jsx)(h,{label:"STACKPANEL",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmJ7ZmlsbDojMzMzO308L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iYiIgZD0iTTE0LjM3LDIyLjcydi0xLjA0aC0yLjA5Yy0xLjA0LDAtMS44OC0uODQtMS44OC0xLjg4di0yLjA5YzAtMS4wNCwuODQtMS44OCwxLjg4LTEuODhoMi4wOXYtMS42N2gtMy43NmMtMS4wNCwwLTEuODgtLjg0LTEuODgtMS44OHYtMi4wOWMwLTEuMDQsLjg0LTEuODgsMS44OC0xLjg4aDMuNzZ2LTEuMDRjMC0uMzUsLjI4LS42MywuNjMtLjYzcy42MywuMjgsLjYzLC42M3YxLjA0aDMuNzZjMS4wNCwwLDEuODgsLjg0LDEuODgsMS44OHYyLjA5YzAsMS4wNC0uODQsMS44OC0xLjg4LDEuODhoLTMuNzZ2MS42N2gyLjA5YzEuMDQsMCwxLjg4LC44NCwxLjg4LDEuODh2Mi4wOWMwLDEuMDQtLjg0LDEuODgtMS44OCwxLjg4aC0yLjA5djEuMDRjMCwuMzUtLjI4LC42My0uNjMsLjYzcy0uNjMtLjI4LS42My0uNjNabTMuMzQtMi4zYy4zNSwwLC42My0uMjgsLjYzLS42M3YtMi4wOWMwLS4zNS0uMjgtLjYzLS42My0uNjNoLTUuNDNjLS4zNSwwLS42MywuMjgtLjYzLC42M3YyLjA5YzAsLjM1LC4yOCwuNjMsLjYzLC42M2g1LjQzWm0xLjY3LTcuNTJjLjM1LDAsLjYzLS4yOCwuNjMtLjYzdi0yLjA5YzAtLjM1LS4yOC0uNjMtLjYzLS42M0gxMC42MmMtLjM1LDAtLjYzLC4yOC0uNjMsLjYzdjIuMDljMCwuMzUsLjI4LC42MywuNjMsLjYzaDguNzdaIi8+PC9zdmc+",label:"Determines if children are stacked horizontally or vertically"}),(0,L.jsx)(qn,{label:o.isVertical?"ALIGNMENT: VERTICAL":"ALIGNMENT: HORIZONTAL",target:o,propertyName:"isVertical",onValueChanged:()=>{for(const t of e)for(const e of t.children)o.isVertical?(e.horizontalAlignment=a.StackPanel.HORIZONTAL_ALIGNMENT_CENTER,e._left.value=0,e._height.unit===a.ValueAndUnit.UNITMODE_PERCENTAGE&&u.ConvertToPixels(e,["height"])):(e.verticalAlignment=a.StackPanel.VERTICAL_ALIGNMENT_CENTER,e._top.value=0,e._width.unit===a.ValueAndUnit.UNITMODE_PERCENTAGE&&u.ConvertToPixels(e,["width"]));this.forceUpdate()}})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmJ7ZmlsbDojMzMzO308L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iYiIgZD0iTTIxLjA1LDExLjQ1djIuMzJjMCwuMzYtLjI5LC42NS0uNjUsLjY1cy0uNjUtLjI5LS42NS0uNjV2LTIuMzJsLS4xOSwuMTljLS4yNSwuMjUtLjY2LC4yNS0uOTIsMC0uMjUtLjI1LS4yNS0uNjYsMC0uOTJsMS4zLTEuM2MuMDYtLjA2LC4xMy0uMTEsLjIxLS4xNCwuMDgtLjAzLC4xNi0uMDUsLjI1LS4wNXMuMTcsLjAyLC4yNSwuMDVjLjA4LC4wMywuMTUsLjA4LC4yMSwuMTRsMS4zLDEuM2MuMjUsLjI1LC4yNSwuNjYsMCwuOTItLjI1LC4yNS0uNjYsLjI1LS45MiwwbC0uMTktLjE5Wm0wLDQuOTJ2Mi4zMmwuMTktLjE5Yy4yNS0uMjUsLjY2LS4yNSwuOTIsMCwuMjUsLjI1LC4yNSwuNjYsMCwuOTJsLTEuMywxLjNjLS4yNSwuMjUtLjY2LC4yNS0uOTIsMGwtMS4zLTEuM2MtLjI1LS4yNS0uMjUtLjY2LDAtLjkyLC4yNS0uMjUsLjY2LS4yNSwuOTIsMGwuMTksLjE5di0yLjMyYzAtLjM2LC4yOS0uNjUsLjY1LS42NXMuNjUsLjI5LC42NSwuNjVaIi8+PHBhdGggY2xhc3M9ImIiIGQ9Ik0xNC41NiwxNC4zMmgtNC4yOGMtMS40NSwwLTIuNjItMS4xOC0yLjYyLTIuNjJ2LTMuNTVjMC0xLjQ1LDEuMTgtMi42MiwyLjYyLTIuNjJoNC4yOGMxLjQ1LDAsMi42MiwxLjE4LDIuNjIsMi42MnYzLjU1YzAsMS40NS0xLjE4LDIuNjItMi42MiwyLjYyWm0tNC4yOC03LjU1Yy0uNzYsMC0xLjM4LC42Mi0xLjM4LDEuMzh2My41NWMwLC43NiwuNjIsMS4zOCwxLjM4LDEuMzhoNC4yOGMuNzYsMCwxLjM4LS42MiwxLjM4LTEuMzh2LTMuNTVjMC0uNzYtLjYyLTEuMzgtMS4zOC0xLjM4aC00LjI4WiIvPjxwYXRoIGNsYXNzPSJiIiBkPSJNMTQuNTYsMjQuNDhoLTQuMjhjLTEuNDUsMC0yLjYyLTEuMTgtMi42Mi0yLjYydi0zLjU1YzAtMS40NSwxLjE4LTIuNjIsMi42Mi0yLjYyaDQuMjhjMS40NSwwLDIuNjIsMS4xOCwyLjYyLDIuNjJ2My41NWMwLDEuNDUtMS4xOCwyLjYyLTIuNjIsMi42MlptLTQuMjgtNy41NWMtLjc2LDAtMS4zOCwuNjItMS4zOCwxLjM4djMuNTVjMCwuNzYsLjYyLDEuMzgsMS4zOCwxLjM4aDQuMjhjLjc2LDAsMS4zOC0uNjIsMS4zOC0xLjM4di0zLjU1YzAtLjc2LS42Mi0xLjM4LTEuMzgtMS4zOGgtNC4yOFoiLz48L3N2Zz4=",label:"Spacing between children"}),(0,L.jsx)(N,{lockObject:t,label:" ",target:o,propertyName:"spacing",onChange:()=>e.forEach((e=>e._markAsDirty())),unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),arrows:!0,min:0})]}),(0,L.jsx)(Ns,{containers:e,onPropertyChangedObservable:n})]})}}const vs="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMTUsNi45NEE4LjA2LDguMDYsMCwxLDEsNi45NCwxNSw4LjA2LDguMDYsMCwwLDEsMTUsNi45NFptMCwxLjIxQTYuODUsNi44NSwwLDEsMCwyMS44NSwxNSw2Ljg0LDYuODQsMCwwLDAsMTUsOC4xNVptMy40Myw2LjI1YS42LjYsMCwxLDEsMCwxLjJIMTEuNTdhLjYuNiwwLDAsMSwwLTEuMloiIHN0eWxlPSJmaWxsOiMzMzMiLz48L3N2Zz4=",Es="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMTUsNi44OEE4LjEyLDguMTIsMCwxLDEsNi44OCwxNSw4LjEzLDguMTMsMCwwLDEsMTUsNi44OFpNMTUsOC4xQTYuOSw2LjksMCwxLDAsMjEuOSwxNSw2LjksNi45LDAsMCwwLDE1LDguMVptMi44LDQsLjA3LjA1YS42Mi42MiwwLDAsMSwuMDUuOGwtLjA1LjA3LTIsMiwyLDJhLjYyLjYyLDAsMCwxLC4wNS44bC0uMDUuMDdhLjYyLjYyLDAsMCwxLS44LjA1TDE3LDE3Ljg3bC0yLTItMiwyYS42Mi42MiwwLDAsMS0uOC4wNWwtLjA3LS4wNWEuNjIuNjIsMCwwLDEtLjA1LS44bC4wNS0uMDcsMi0yLTItMmEuNjIuNjIsMCwwLDEtLjA1LS44bC4wNS0uMDdhLjYyLjYyLDAsMCwxLC44LS4wNWwuMDcuMDUsMiwyLDItMkEuNjIuNjIsMCwwLDEsMTcuOCwxMi4wOFoiIHN0eWxlPSJmaWxsOiMzMzMiLz48L3N2Zz4=",Ts="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMTQuMjEsNmEuNjIuNjIsMCwwLDAtLjg2LDAsLjYyLjYyLDAsMCwwLDAsLjg3bDEuNCwxLjRhNy45MSw3LjkxLDAsMSwwLDguMTcsNy45MXYwYS41OC41OCwwLDAsMC0uNTktLjU2aDBhLjU5LjU5LDAsMCwwLS41OC42MSw2LjcsNi43LDAsMSwxLTctNi43bC0xLjM5LDEuNGEuNi42LDAsMCwwLDAsLjg2LjYyLjYyLDAsMCwwLC44NiwwbDIuNDQtMi40NGEuNi42LDAsMCwwLDAtLjg2Wm00Ljg3LDcuMzFhLjYuNiwwLDAsMSwwLC44NmwtMy42NSwzLjY2YS42Mi42MiwwLDAsMS0uODYsMEwxMi43NCwxNmEuNjEuNjEsMCwwLDEsLjg2LS44NkwxNSwxNi41N2wzLjIyLTMuMjJBLjYuNiwwLDAsMSwxOS4wOCwxMy4zNVoiIHN0eWxlPSJmaWxsOiMzMzMiLz48L3N2Zz4=";class zs extends t.Component{constructor(e){super(e),this._previousGrid=null,this._rowDefinitions=[],this._rowEditFlags=[],this._columnEditFlags=[],this._columnDefinitions=[],this._editedRow=!1,this._editedColumn=!1,this._rowChild=!1,this._columnChild=!1,this.state={removingColumn:!1,removingRow:!1}}renderRows(){return this._rowDefinitions.map(((e,t)=>(0,L.jsx)("div",{className:this.state.removingRow&&t===this._rowEditFlags.length-1?"ge-grid-remove":this._rowEditFlags[t]?"ge-grid-edit":"ge-grid",children:(0,L.jsxs)("div",{className:"ge-grid-divider",children:[(0,L.jsx)(I,{lockObject:this.props.lockObject,label:"",icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJpY29ucyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHZpZXdCb3g9IjAgMCAzMCAzMCI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiMzMzM7fTwvc3R5bGU+PC9kZWZzPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0ibTcuNzQsMTMuMThjMC0xLC44MS0xLjgyLDEuODItMS44MmgxMC44OWMxLDAsMS44Mi44MSwxLjgyLDEuODJ2My42M2MwLDEtLjgxLDEuODItMS44MiwxLjgyaC0xMC44OWMtMSwwLTEuODItLjgxLTEuODItMS44MnYtMy42M1ptMS44Mi0uNjFjLS4zMywwLS42MS4yNy0uNjEuNjF2My42M2MwLC4zMy4yNy42MS42MS42MWgyLjYydi00Ljg0aC0yLjYyWm03LjA2LDQuODR2LTQuODRoLTMuMjN2NC44NGgzLjIzWm0xLjIxLDBoMi42MmMuMzMsMCwuNjEtLjI3LjYxLS42MXYtMy42M2MwLS4zMy0uMjctLjYxLS42MS0uNjFoLTIuNjJ2NC44NFoiLz48L3N2Zz4=",iconLabel:`Row ${t}`,value:e,numbersOnly:!0,onChange:e=>{e!==this._rowDefinitions[t]&&(this._rowDefinitions[t]=e,this._rowEditFlags[t]=!0,this._editedRow=!0,this._rowChild=!1,this.setState({removingRow:!1}))},disabled:this.state.removingRow},`rText${t}-${this.state.removingRow}`),(0,L.jsx)(h,{tooltip:"",label:`[${t}]`,value:"",color:"grey"}),this.state.removingRow&&t===this._rowEditFlags.length-1&&(0,L.jsx)(h,{icon:Bo,label:" ",value:" ",color:"grey"}),this._rowEditFlags[t]&&(0,L.jsx)(h,{icon:Ts,label:" ",value:" ",color:"grey"})]})},`r${t}`)))}setRowValues(){const e=this.props.grids[0];this._rowDefinitions=[],this._rowEditFlags=[],this._editedRow=!1;for(let t=0;t<e.rowCount;t++){const n=e.getRowDefinition(t);n&&(this._rowDefinitions.push(n.toString(e._host,2)),this._rowEditFlags.push(!1))}}setColumnValues(){const e=this.props.grids[0];this._columnDefinitions=[],this._columnEditFlags=[],this._editedColumn=!1;for(let t=0;t<e.columnCount;t++){const n=e.getColumnDefinition(t);n&&(this._columnDefinitions.push(n.toString(e._host,2)),this._columnEditFlags.push(!1))}}renderColumns(){return this._columnDefinitions.map(((e,t)=>(0,L.jsx)("div",{className:this.state.removingColumn&&t===this._columnEditFlags.length-1?"ge-grid-remove":this._columnEditFlags[t]?"ge-grid-edit":"ge-grid",children:(0,L.jsxs)("div",{className:"ge-grid-divider",children:[(0,L.jsx)(I,{lockObject:this.props.lockObject,label:"",icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJpY29ucyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHZpZXdCb3g9IjAgMCAzMCAzMCI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiMzMzM7fTwvc3R5bGU+PC9kZWZzPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0ibTEyLjU3LDE3LjgzdjIuNjNjMCwuMzQuMjcuNjEuNjEuNjFoMy42NGMuMzQsMCwuNjEtLjI3LjYxLS42MXYtMi42M2gtNC44NlptNC4yNS0xMC4xMmMxLjAxLDAsMS44Mi44MiwxLjgyLDEuODJ2MTAuOTNjMCwxLjAxLS44MiwxLjgyLTEuODIsMS44MmgtMy42NGMtMS4wMSwwLTEuODItLjgyLTEuODItMS44MnYtMTAuOTNjMC0xLjAxLjgyLTEuODIsMS44Mi0xLjgyaDMuNjRabS42MSwxLjgyYzAtLjM0LS4yNy0uNjEtLjYxLS42MWgtMy42NGMtLjM0LDAtLjYxLjI3LS42MS42MXYyLjYzaDQuODZ2LTIuNjNabS00Ljg2LDcuMDhoNC44NnYtMy4yNGgtNC44NnYzLjI0WiIvPjwvc3ZnPg==",iconLabel:`Column ${t}`,value:e,numbersOnly:!0,onChange:e=>{e!==this._columnDefinitions[t]&&(this._columnDefinitions[t]=e,this._columnEditFlags[t]=!0,this._editedColumn=!0,this._columnChild=!1,this.setState({removingColumn:!1}))},disabled:this.state.removingColumn},`ctext${t}-${this.state.removingColumn}`),(0,L.jsx)(h,{tooltip:"",label:`[${t}]`,value:"",color:"grey"}),this.state.removingColumn&&t===this._columnEditFlags.length-1&&(0,L.jsx)(h,{icon:Bo,label:" ",value:" ",color:"grey"}),this._columnEditFlags[t]&&(0,L.jsx)(h,{icon:Ts,label:" ",value:" ",color:"grey"})]})},`c${t}`)))}parsePercentage(e){let t;return t="%"===e.trim().at(-1)?parseFloat(e.replace("%",""))/100:parseFloat(e),a.MathTools.Round(t,1e4)}isCloseTo(e,t,n=.001){return Math.abs(e-t)<n}adjustPercentages(e,t){let n=0,o=0;const s=[];for(let i=0;i<e.length;++i){let r=e[i];const a=this.checkPercentage(r);t[i]&&(r=this.checkValue(r,a)),a&&(n+=this.parsePercentage(r),t[i]&&(o+=this.parsePercentage(r))),s.push(r)}let i=[];if(this.isCloseTo(n,1))i=s;else{const e=1-o,r=Math.abs(e),a=n-o,l=this.isCloseTo(a,0);for(let e=0;e<s.length;++e){const o=s[e];if(this.checkPercentage(o)&&!t[e]||t[e]&&l){const e=this.parsePercentage(o)/(l?n:a)*(l?1:r);i.push(100*e+"%")}else i.push(o)}}return i}resizeRow(){const e=this.props.grids[0],t=this.adjustPercentages(this._rowDefinitions,this._rowEditFlags);for(let n=0;n<t.length;++n)e.setRowDefinition(n,this.parsePercentage(t[n]),!this.checkPercentage(t[n]));this.setRowValues()}resizeColumn(){const e=this.props.grids[0],t=this.adjustPercentages(this._columnDefinitions,this._columnEditFlags);for(let n=0;n<t.length;++n)e.setColumnDefinition(n,this.parsePercentage(t[n]),!this.checkPercentage(this._columnDefinitions[n]));this.setColumnValues()}checkValue(e,t){let n=e.match(/([0-9.,]+)/g)?.[0];return n||(n="0"),n+=t?"%":"px",n}checkPercentage(e){return"px"!==e.substring(e.length-2,e.length)}resetValues(){const e=this.props.grids[0];this._columnChild=!1,this._rowChild=!1,this._previousGrid=e,this.setRowValues(),this.setColumnValues(),this.resizeColumn(),this.resizeRow(),this.setState({removingColumn:!1,removingRow:!1})}render(){const e=this.props.grids,t=this.props.grids[0];return t!==this._previousGrid&&this.resetValues(),(0,L.jsxs)("div",{className:"pane",children:[(0,L.jsx)(ls,{lockObject:this.props.lockObject,controls:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable,onFontsParsedObservable:this.props.onFontsParsedObservable,globalState:this.props.globalState}),(0,L.jsx)("hr",{className:"ge"}),(0,L.jsx)(h,{tooltip:"",label:"GRID",value:" ",color:"grey"}),this.renderRows(),1===this.props.grids.length&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{className:"ge-gridLine",children:(0,L.jsxs)("div",{className:"ge-grid-button-divider",children:[(0,L.jsx)(v,{altStyle:!0,tooltip:"Add Row",icon:$o,shortcut:"",isActive:!1,disabled:this.state.removingRow||this._editedRow,onClick:()=>{let e=0,n=0;for(let o=0;o<t.rowCount;++o){const s=t.getRowDefinition(o);s?.isPercentage&&(e+=s?.getValue(t.host),n++)}t.addRowDefinition(e/n,!1),this.resetValues(),this.forceUpdate()}})," ",(0,L.jsx)(v,{altStyle:!0,tooltip:"Remove Row",icon:vs,shortcut:"",isActive:!1,disabled:this.state.removingRow||t.rowCount<=1||this._editedRow,onClick:()=>{let e=!1;for(let n=0;n<t.columnCount;++n){const o=t.cells[t.rowCount-1+":"+n];if(o?.children.length){e=!0;break}}this.resetValues(),e&&(this._rowChild=!0),this.setState({removingRow:!0})}}),this._editedRow&&(0,L.jsxs)(L.Fragment,{children:[" ",(0,L.jsx)(v,{altStyle:!0,tooltip:"Confirm",icon:Po,shortcut:"",isActive:!1,onClick:()=>{this.resizeRow(),this.forceUpdate()}}),(0,L.jsx)(v,{altStyle:!0,tooltip:"Cancel",icon:Es,shortcut:"",isActive:!1,onClick:()=>{this.resetValues(),this.forceUpdate()}})]}),this.state.removingRow&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(v,{altStyle:!0,tooltip:"Confirm",icon:Po,shortcut:"",isActive:!1,onClick:()=>{t.removeRowDefinition(t.rowCount-1),this.setRowValues(),this.resizeRow(),this.setState({removingRow:!1}),this._rowChild=!1,this.props.onUpdateRequiredObservable?.notifyObservers()}}),(0,L.jsx)(v,{altStyle:!0,tooltip:"Cancel",icon:Es,shortcut:"",isActive:!1,onClick:()=>{this.setState({removingRow:!1}),this._rowChild=!1,this.forceUpdate()}})]})]})}),this._rowChild&&(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(h,{tooltip:"",label:"This row is not empty. Removing it will delete all contained controls. Do you want to remove this row and delete all controls within?",value:" ",color:"grey"})}),(0,L.jsx)("hr",{className:"ge"}),this.renderColumns(),(0,L.jsxs)("div",{className:"ge-grid-button-divider",children:[(0,L.jsx)(v,{altStyle:!0,tooltip:"Add Column",icon:$o,shortcut:"",isActive:!1,disabled:this.state.removingColumn||this._editedColumn,onClick:()=>{let e=0,n=0;for(let o=0;o<t.columnCount;++o){const s=t.getColumnDefinition(o);s?.isPercentage&&(e+=s?.getValue(t.host),n++)}t.addColumnDefinition(e/n,!1),this.resetValues(),this.forceUpdate()}}),(0,L.jsx)(v,{altStyle:!0,tooltip:"Remove Column",icon:vs,shortcut:"",isActive:!1,disabled:this.state.removingColumn||this._editedColumn||t.columnCount<=1,onClick:()=>{let e=!1;for(let n=0;n<t.rowCount;++n){const o=t.cells[n+":"+(t.columnCount-1)];if(o?.children.length){e=!0;break}}this.resetValues(),e&&(this._columnChild=!0),this.setState({removingColumn:!0})}}),this._editedColumn&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(v,{altStyle:!0,tooltip:"Confirm",icon:Po,shortcut:"",isActive:!1,onClick:()=>{this.resizeColumn(),this.forceUpdate()}}),(0,L.jsx)(v,{altStyle:!0,tooltip:"Cancel",icon:Es,shortcut:"",isActive:!1,onClick:()=>{this.resetValues(),this.forceUpdate()}})]}),this.state.removingColumn&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(v,{altStyle:!0,tooltip:"Confirm",icon:Po,shortcut:"",isActive:!1,onClick:()=>{t.removeColumnDefinition(t.columnCount-1),this.setColumnValues(),this.resizeColumn(),this.setState({removingColumn:!1}),this._columnChild=!1,this.props.onUpdateRequiredObservable?.notifyObservers()}}),(0,L.jsx)(v,{altStyle:!0,tooltip:"Cancel",icon:Es,shortcut:"",isActive:!1,onClick:()=>{this.setState({removingColumn:!1}),this._columnChild=!1}})]})," "]}),this._columnChild&&(0,L.jsx)(L.Fragment,{children:(0,L.jsx)(h,{tooltip:"",label:"This column is not empty. Removing it will delete all contained controls. Do you want to remove this column and delete all controls within?",value:" ",color:"grey"})})]})]})}}class Os extends t.Component{constructor(e){super(e)}render(){const{scrollViewers:e,onPropertyChangedObservable:t,lockObject:n}=this.props,o=y(e,t);return(0,L.jsxs)("div",{className:"pane",children:[(0,L.jsx)(ls,{lockObject:n,controls:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable,onFontsParsedObservable:this.props.onFontsParsedObservable,globalState:this.props.globalState}),(0,L.jsx)("hr",{}),(0,L.jsx)(h,{label:"SCROLLVIEWER",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmJ7ZmlsbDojMzMzO308L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iYiIgZD0iTTE0LjIyLDkuNTZ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MzgsLjM2LS42MywuMjctLjQ4LC42LTEuMDksLjkyLTEuNjgsLjMyLS41OSwuNjMtMS4xNywuODUtMS42LC4xMS0uMjEsLjIxLS4zOSwuMjctLjUybC4xLS4xOWMuMTEtLjIxLC4wNS0uNDYtLjEzLS42WiIvPjwvc3ZnPg==",label:"Wheel Precision"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"",target:o,propertyName:"wheelPrecision",arrows:!0,min:0,digits:2})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:cs,label:"Bar Size"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"",target:o,propertyName:"barSize",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),arrows:!0,min:0,digits:2})]}),(0,L.jsxs)("div",{className:"e-divider",children:[(0,L.jsx)(fo,{icon:Xo,label:"Bar Color"}),(0,L.jsx)(yo,{lockObject:this.props.lockObject,label:"",target:o,propertyName:"barColor"})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:qo,label:"Bar Background Color"}),(0,L.jsx)(yo,{lockObject:this.props.lockObject,label:"",target:o,propertyName:"barBackground"})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:ds,label:"Stroke Weight"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"",target:o,propertyName:"thickness",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),arrows:!0,min:0,digits:2})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:Ss,label:"Corner Radius"}),(0,L.jsx)(N,{lockObject:n,label:"",target:y(e,t),propertyName:"cornerRadius",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),arrows:!0,min:0,digits:2})]})]})}}class ks extends t.Component{constructor(e){super(e)}render(){const{ellipses:e,onPropertyChangedObservable:t,lockObject:n}=this.props,o=y(e,t);return(0,L.jsxs)("div",{className:"pane",children:[(0,L.jsx)(ls,{lockObject:n,controls:e,onPropertyChangedObservable:t,onFontsParsedObservable:this.props.onFontsParsedObservable,globalState:this.props.globalState}),(0,L.jsx)("hr",{}),(0,L.jsx)(h,{label:"ELLIPSE",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:ds,label:"Stroke Weight"}),(0,L.jsx)(N,{lockObject:n,label:"",target:o,propertyName:"thickness",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),arrows:!0,min:0,digits:2})]}),(0,L.jsx)(Ns,{containers:e,onPropertyChangedObservable:t})]})}}class Ys extends t.Component{constructor(e){super(e)}render(){const e=this.props.checkboxes;return(0,L.jsxs)("div",{className:"pane",children:[(0,L.jsx)(ls,{lockObject:this.props.lockObject,controls:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable,onFontsParsedObservable:this.props.onFontsParsedObservable,globalState:this.props.globalState}),(0,L.jsx)("hr",{}),(0,L.jsx)(h,{label:"CHECKBOX",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:Qo,label:"Check Size Ratio"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:" ",target:y(e,this.props.onPropertyChangedObservable),propertyName:"checkSizeRatio",min:0,max:1,arrows:!0,step:"0.01",digits:2})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:Ms,label:"Is Checkbox Checked"}),(0,L.jsx)(qn,{label:"CHECKED",target:y(e,this.props.onPropertyChangedObservable),propertyName:"isChecked",onPropertyChangedObservable:this.props.onPropertyChangedObservable})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:ds,label:"Thickness"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,target:y(e,this.props.onPropertyChangedObservable),propertyName:"thickness",label:"",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),arrows:!0,min:0,digits:2})]})]})}}class Ps extends t.Component{constructor(e){super(e)}render(){const e=this.props.controls;return(0,L.jsx)("div",{className:"pane",children:(0,L.jsx)(ls,{lockObject:this.props.lockObject,controls:e,onPropertyChangedObservable:this.props.onPropertyChangedObservable,onFontsParsedObservable:this.props.onFontsParsedObservable,globalState:this.props.globalState})})}}class Bs extends t.Component{constructor(e){super(e)}updateGridPosition(){const e=this.props.control.parent;e&&this._changeCell(e,this.props.control,new o.Vector2(this._rowNumber,this._columnNumber))}getCellInfo(){const e=ns.GetCellInfo(this.props.control.parent,this.props.control);this._rowNumber=e.x,this._columnNumber=e.y}_changeCell(e,t,n){const o=e.children.indexOf(t);e.removeControl(t),ns.ReorderGrid(e,o,t,n)}render(){return this.getCellInfo(),(0,L.jsxs)("div",{className:"pane",children:[(0,L.jsx)("hr",{className:"ge"}),(0,L.jsx)(h,{tooltip:"",label:"GRID PARENTING",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"Row #",target:this,propertyName:"_rowNumber",isInteger:!0,min:0,onChange:()=>{this.updateGridPosition()}}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"Column #",target:this,propertyName:"_columnNumber",isInteger:!0,min:0,onChange:()=>{this.updateGridPosition()}})]})]})}}class Rs extends t.Component{constructor(e){super(e)}render(){const{displayGrids:e,lockObject:t,onPropertyChangedObservable:n}=this.props,o=y(e,n);return(0,L.jsxs)("div",{className:"pane",children:[(0,L.jsx)(ls,{lockObject:t,controls:e,onPropertyChangedObservable:n,onFontsParsedObservable:this.props.onFontsParsedObservable,globalState:this.props.globalState}),(0,L.jsx)("hr",{}),(0,L.jsx)(h,{label:"DISPLAY GRID",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:Qo,label:"Cell Size"}),(0,L.jsx)(N,{min:1,isInteger:!0,lockObject:t,label:"W",target:o,propertyName:"cellWidth",onPropertyChangedObservable:n,unit:(0,L.jsx)(ts,{locked:!0,unit:"PX"}),arrows:!0}),(0,L.jsx)(N,{min:1,isInteger:!0,lockObject:t,label:"H",target:o,propertyName:"cellHeight",onPropertyChangedObservable:n,unit:(0,L.jsx)(ts,{locked:!0,unit:"PX"}),arrows:!0})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMCAzMCI+PGRlZnM+PHN0eWxlPi5ie2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImIiIGQ9Ik03LjczLDkuOTVjMC0xLjIzLC45OS0yLjIyLDIuMjItMi4yMmgxMC4wOWMxLjIzLDAsMi4yMiwuOTksMi4yMiwyLjIydjEwLjA5YzAsMS4yMy0uOTksMi4yMi0yLjIyLDIuMjJIOS45NWMtMS4yMywwLTIuMjItLjk5LTIuMjItMi4yMlY5Ljk1Wm0yLjIyLTEuMDFjLS41NiwwLTEuMDEsLjQ1LTEuMDEsMS4wMXYxMC4wOWMwLC41NiwuNDUsMS4wMSwxLjAxLDEuMDFoMTAuMDljLjU2LDAsMS4wMS0uNDUsMS4wMS0xLjAxVjkuOTVjMC0uNTYtLjQ1LTEuMDEtMS4wMS0xLjAxSDkuOTVaIi8+PHBhdGggY2xhc3M9ImIiIGQ9Ik0xNS44NCwxMS45MnY2LjU0YzAsLjMtLjIzLC41My0uNTMsLjUzcy0uNTMtLjIzLS41My0uNTN2LTUuODhsLTEuMDcsLjQyYy0uMDksLjAzLS4yLC4wNy0uMjgsLjA3LS4yNiwwLS40Ny0uMjEtLjQ3LS40NywwLS4xNSwuMDctLjM1LC4zMy0uNDZsMS42NC0uNjZjLjA5LS4wMiwuMjItLjEsLjM3LS4xLC4zMSwwLC41MywuMjMsLjUzLC41NVoiLz48L3N2Zz4=",label:"Show Minor Lines"}),(0,L.jsx)(qn,{label:"SHOW MINOR LINES",onValueChanged:()=>this.forceUpdate(),target:o,propertyName:"_displayMinorLines"})]}),o._displayMinorLines&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:ds,label:"Minor Line Tickness"}),(0,L.jsx)(N,{min:1,isInteger:!0,lockObject:t,label:"",target:o,propertyName:"minorLineTickness",onPropertyChangedObservable:n,unit:(0,L.jsx)(ts,{locked:!0,unit:"PX"}),arrows:!0})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:Xo,label:"Minor Line Color"}),(0,L.jsx)(yo,{lockObject:t,label:"",target:o,propertyName:"minorLineColor",onPropertyChangedObservable:n})]})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMCAzMCI+PGRlZnM+PHN0eWxlPi5ie2ZpbGw6IzMzMzt9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImIiIGQ9Ik03LjczLDkuOTVjMC0xLjIzLC45OS0yLjIyLDIuMjItMi4yMmgxMC4wOWMxLjIzLDAsMi4yMiwuOTksMi4yMiwyLjIydjEwLjA5YzAsMS4yMy0uOTksMi4yMi0yLjIyLDIuMjJIOS45NWMtMS4yMywwLTIuMjItLjk5LTIuMjItMi4yMlY5Ljk1Wm0yLjIyLTEuMDFjLS41NiwwLTEuMDEsLjQ1LTEuMDEsMS4wMXYxMC4wOWMwLC41NiwuNDUsMS4wMSwxLjAxLDEuMDFoMTAuMDljLjU2LDAsMS4wMS0uNDUsMS4wMS0xLjAxVjkuOTVjMC0uNTYtLjQ1LTEuMDEtMS4wMS0xLjAxSDkuOTVaIi8+PHBhdGggY2xhc3M9ImIiIGQ9Ik0xNy42MywxOC40NGMwLC4zMS0uMjMsLjUxLS41MiwuNTFoLTMuOTNjLS4zMiwwLS41NS0uMjEtLjU1LS41NSwwLS4yMywuMDktLjQxLC4zMS0uNjRsMi4yNS0yLjM0Yy41OC0uNTksLjk0LTEuMiwuOTQtMS44NiwwLS43LS41MS0xLjE3LTEuMi0xLjE3LS42MywwLTEuMDIsLjM0LTEuMjksLjY5LS4xLC4xMi0uMjIsLjI0LS40NSwuMjQtLjI4LDAtLjUtLjE4LS41MS0uNDUsMC0uMTUsLjA1LS4zLC4xMy0uNDIsLjMzLS41NywxLjA4LTEuMTEsMi4xNi0xLjExLDEuNDMsMCwyLjI4LC45NSwyLjI4LDIuMTcsMCwuODYtLjQsMS42Mi0xLjIxLDIuNDZsLTEuODgsMS45NmgyLjk1Yy4yOSwwLC41MiwuMiwuNTIsLjUxWiIvPjwvc3ZnPg==",label:"Show Major Lines"}),(0,L.jsx)(qn,{label:"SHOW MAJOR LINES",onValueChanged:()=>this.forceUpdate(),target:o,propertyName:"_displayMajorLines"})]}),o._displayMajorLines&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:ds,label:"Major Line Tickness"}),(0,L.jsx)(N,{min:1,isInteger:!0,lockObject:t,label:"",target:o,propertyName:"majorLineTickness",onPropertyChangedObservable:n,unit:(0,L.jsx)(ts,{locked:!0,unit:"PX"}),arrows:!0})]}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(fo,{icon:Xo,label:"Major Line Color"}),(0,L.jsx)(yo,{lockObject:t,label:"",target:o,propertyName:"majorLineColor",onPropertyChangedObservable:n})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48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0uNjEtLjYxLS42MXMtLjYxLC4yNy0uNjEsLjYxdjExLjc5WiIvPjwvc3ZnPg==",label:"Major Line Frequency"}),(0,L.jsx)(N,{min:1,isInteger:!0,lockObject:t,label:"",target:o,propertyName:"majorLineFrequency",onPropertyChangedObservable:n,arrows:!0})]})]})]})}}class Us extends t.Component{constructor(e){super(e)}render(){const{rectangles:e,lockObject:t,onPropertyChangedObservable:n,onAddComponent:o}=this.props,s=y(e,n);return(0,L.jsxs)("div",{className:"pane",children:[(0,L.jsx)(ls,{lockObject:t,controls:e,onPropertyChangedObservable:n,onFontsParsedObservable:this.props.onFontsParsedObservable,globalState:this.props.globalState}),(0,L.jsx)("hr",{}),(0,L.jsx)(h,{label:"BUTTON",value:" ",color:"grey"}),(0,L.jsxs)("div",{className:"ge-divider",children:[(0,L.jsx)(v,{tooltip:"Add TextBlock",icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMTguMjMsMTQuNTdhNC40OCw0LjQ4LDAsMSwxLTQuNDcsNC40OEE0LjQ4LDQuNDgsMCwwLDEsMTguMjMsMTQuNTdabTAsMS42M2gtLjA3YS40LjQsMCwwLDAtLjMzLjMydjIuMTFIMTUuNzFhLjQxLjQxLDAsMCwwLS4zMi4zMnYuMTVhLjQyLjQyLDAsMCwwLC4zMi4zM2gyLjExdjIuMTFhLjQuNCwwLDAsMCwuMzMuMzNoLjE0YS40LjQsMCwwLDAsLjMzLS4zM1YxOS40NWgyLjExYS40Mi40MiwwLDAsMCwuMzItLjMzVjE5YS40MS40MSwwLDAsMC0uMzItLjMySDE4LjY0VjE2LjUzYS40LjQsMCwwLDAtLjMzLS4zMlptLTUuNDcsMi44NWE1LjQ0LDUuNDQsMCwwLDEsLjgyLTIuODhWNy43aDMuODV2MWEuNjEuNjEsMCwwLDAs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DRBMS4yOCwxLjI4LDAsMCwxLDksMTlsNC44LTQuNjlhLjYyLjYyLDAsMCwxLC43OS4wNmwxLjA3LDEuMDVhNS4zNiw1LjM2LDAsMCwxLDEuMTMtLjYxbC0xLjM0LTEuMzEtLjExLS4xYTEuODMsMS44MywwLDAsMC0yLjQ2LjFMOC4xLDE4LjEzQTEuMjgsMS4yOCwwLDAsMSw4LDE3LjY1VjguMjhBMS40MywxLjQzLDAsMCwxLDkuNDQsNi44NWg5LjM3YTEuNDMsMS40MywwLDAsMSwxLjQzLDEuNDN2Ni4zNmE1LjI3LDUuMjcsMCwwLDEsMS4yMi41MlY4LjI4YTIuNjUsMi42NSwwLDAsMC0yLjY1LTIuNjVIOS40NEEyLjY1LDIuNjUsMCwwLDAsNi43OSw4LjI4djkuMzdBMi42NSwyLjY1LDAsMCwwLDkuNDQsMjAuM2gzLjg1QzEzLjI4LDIwLjE3LDEzLjI2LDIwLDEzLjI2LDE5LjlaIiBzdHlsZT0iZmlsbDojMzMzIi8+PC9zdmc+",shortcut:"",isActive:!1,onClick:()=>{o("ButtonImage")}})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:ds,label:"Stroke Weight"}),(0,L.jsx)(N,{lockObject:this.props.lockObject,label:"",target:s,propertyName:"thickness",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),min:0,digits:2})]}),(0,L.jsxs)("div",{className:"ge-divider double",children:[(0,L.jsx)(fo,{icon:Ss,label:"Corner Radius"}),(0,L.jsx)(N,{lockObject:t,label:"",target:s,propertyName:"cornerRadius",unit:(0,L.jsx)(ts,{unit:"PX",locked:!0}),arrows:!0,min:0,digits:2})]}),(0,L.jsx)(Ns,{containers:e,onPropertyChangedObservable:n})]})}}class Gs{static CreateControlFromString(e){let t;switch(e){case"Slider":return t=new a.Slider("Slider"),t.isPointerBlocker=!0,t.width="120px",t.height="30px",t;case"Checkbox":return t=new a.Checkbox("Checkbox"),t.width="20px",t.height="20px",t.color="#cccccc",t;case"ColorPicker":return t=new a.ColorPicker("ColorPicker"),t.isPointerBlocker=!0,t.width="10%",t.height="10%",t;case"Ellipse":return t=new a.Ellipse("Ellipse"),t.color="#000000",t.background="#cccccc",t.isPointerBlocker=!0,t.thickness=1,t;case"Rectangle":return t=new a.Rectangle("Rectangle"),t.color="#000000",t.background="#cccccc",t.isPointerBlocker=!0,t.thickness=1,t;case"Line":return t=new a.Line("Line"),t.x1=0,t.y1=1024,t.y2=512,t.x2=512,t.lineWidth=2,t.isPointerBlocker=!0,t.isHitTestVisible=!0,t.color="#000000",t;case"TextBlock":return t=new a.TextBlock("Textblock"),t.text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam sed.",t.color="#000000",t.fontSize=20,t.resizeToFit=!0,t.isPointerBlocker=!0,t;case"ImageButton":return t=a.Button.CreateImageButton("Button","Click Me",Gs.ImageControlDefaultUrl),t.background="#333333",t.color="#ffffff",t.isPointerBlocker=!0,t.width="120px",t.height="40px",t;case"VirtualKeyboard":return t=a.VirtualKeyboard.CreateDefaultLayout("VirtualKeyboard"),t.addKeysRow(["1","2","3","←"]),t;case"Image":return t=new a.Image("Image",Gs.ImageControlDefaultUrl),t.width="512px",t.height="512px",t.autoScale=!0,t.color="transparent",t.isPointerBlocker=!0,t;case"ButtonImage":return t=new a.Image("Image",Gs.ImageControlDefaultUrl),t.width="100%",t.height="100%",t.color="transparent",t.isPointerBlocker=!0,t;case"InputText":return t=new a.InputText("InputText"),t.maxWidth=.6,t.text="Input Text",t.background="#333333",t.color="#ffffff",t.isPointerBlocker=!0,t.width="160px",t.height="40px",t;case"InputPassword":return t=new a.InputPassword("InputPassword"),t.maxWidth=.6,t.text="Password",t.background="#333333",t.color="#ffffff",t.isPointerBlocker=!0,t.width="160px",t.height="40px",t;case"Grid":return t=new a.Grid("Grid"),t.addColumnDefinition(1,!1),t.addRowDefinition(1,!1),t.isPointerBlocker=!0,t;case"DisplayGrid":return t=new a.DisplayGrid("DisplayGrid"),t;case"StackPanel":return t=new a.StackPanel("StackPanel"),t.width="100%",t.height="100%",t;case"ScrollViewer":return t=new a.ScrollViewer("ScrollViewer"),t.width=.4,t.height=.4,t.background="#CCCCCC",t;case"ImageBasedSlider":return t=new a.ImageBasedSlider("ImageBasedSlider"),t.isPointerBlocker=!0,t.width="120px",t.height="30px",t.isThumbClamped=!0,t.displayThumb=!0,t.backgroundImage=new a.Image("Image","https://playground.babylonjs.com/textures/gui/backgroundImage.png"),t.valueBarImage=new a.Image("Image","https://playground.babylonjs.com/textures/gui/valueImage.png"),t.thumbImage=new a.Image("Image","https://playground.babylonjs.com/textures/gui/thumb.png"),t;case"RadioButton":return t=new a.RadioButton("RadioButton"),t.isPointerBlocker=!0,t.width="20px",t.height="20px",t.color="#CCCCCC",t.background="#333333",t;case"Button":return t=a.Button.CreateSimpleButton("Button","Click Me"),t.background="#333333",t.color="#ffffff",t.isPointerBlocker=!0,t.width="120px",t.height="40px",t;default:throw"Error: control type not recognized"}}}Gs.ImageControlDefaultUrl="https://assets.babylonjs.com/textures/Checker_albedo.png";var Zs=s(788),_s={};_s.styleTagTransform=ho(),_s.setAttributes=po(),_s.insert=uo().bind(null,"head"),_s.domAPI=lo(),_s.insertStyleElement=Lo(),ro()(Zs.A,_s),Zs.A&&Zs.A.locals&&Zs.A.locals;const Ws=[{className:"Rectangle",icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMTAuMywxNi4zNmEzLjY0LDMuNjQsMCwwLDEsMy42NC0zLjY0SDI2LjA2YTMuNjQsMy42NCwwLDAsMSwzLjY0LDMuNjR2Ny4yOGEzLjY0LDMuNjQsMCwwLDEtMy42NCwzLjY0SDEzLjk0YTMuNjQsMy42NCwwLDAsMS0zLjY0LTMuNjRabTMuNjQtMi40MmEyLjQyLDIuNDIsMC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zdHlsZT0iZmlsbDojZmZmIi8+PC9zdmc+"},{className:"Grid",icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMTIuNzQsMTUuMzZhMi42MiwyLjYyLDAsMCwxLDIuNjItMi42Mmg5LjI4YTIuNjIsMi42MiwwLDAsMSwyLjYyLDIuNjJ2OS4yOGEyLjYyLDIuNjIsMCwwLDEtMi42MiwyLjYySDE1LjM2YTIuNjIsMi42MiwwLDAsMS0yLjYyLTIuNjJaTTE1LjM2LDE0QTEuNDEsMS40MSwwLDAsMCwxNCwxNS4zNnYxLjgyaDMuMjNWMTRaTTE0LDE4LjM5djMuMjJoMy4yM1YxOC4zOVptNC40NCwwdjMuMjJoMy4yMlYxOC4zOVptNC40MywwdjMuMjJoMy4yM1YxOC4zOVptLTEuMjEsNC40M0gxOC4zOXYzLjIzaDMuMjJabTEuMjEsMy4yM2gxLjgyYTEuNDEsMS40MSwwLDAsMCwxLjQxLTEuNDFWMjIuODJIMjIuODJabTAtOC44N2gzLjIzVjE1LjM2QTEuNDEsMS40MSwwLDAsMCwyNC42NCwxNEgyMi44MlpNMjEuNjEsMTRIMTguMzl2My4yM2gzLjIyWk0xNCwyMi44MnYxLjgyYTEuNDEsMS40MSwwLDAsMCwxLjQxLDEuNDFoMS44MlYyMi44MloiIHN0eWxlPSJmaWxsOiNmZmYiLz48L3N2Zz4="},{className:"ScrollViewer",icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMjIuMjUsMTMuMThWMjYuOTFIMjFWMTMuMThabTEuMTYsMy4zNHY0LjE5aDEuMjJWMTYuNTJabS42MS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EtMS4yMSwwdi0xSDIwLjYxVjI1LjI3aDEuMjFhLjYxLjYxLDAsMCwxLC42MS42MS42MS42MSwwLDAsMS0uNjEuNjFIMTguMThhLjYxLjYxLDAsMCwxLS42MS0uNjEuNjEuNjEsMCwwLDEsLjYxLS42MWgxLjIxVjE0LjczSDE1LjU0djFhLjYxLjYxLDAsMSwxLTEuMjEsMFoiIHN0eWxlPSJmaWxsOiNmZmYiLz48L3N2Zz4="},{className:"InputText",icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMjIuNDMsMTcuMTdIMjAuNjF2NS42NkgyMWEuNjEuNjEsMCwwLDEsLjYxLjYxLjYxLjYxLDAsMCwxLS42MS42MUgxOWEuNjEuNjEsMCwwLDEtLjYxLS42MS42MS42MSwwLDAsMSwuNjEtLjYxaC40VjE3LjE3SDE3LjU3di42YS42MS42MSwwLDEsMS0xLjIxLDBWMTYuNTZBLjYuNiwwLDAsMSwxNywxNkgyM2EuNi42LDAsMCwxLC42LjYxdjEuMjFhLjYxLjYxLDAsMSwxLTEuMjEsMFoiIHN0eWxlPSJmaWxsOiNmZmYiLz48cGF0aCBkPSJNMTQuOTQsMTMuNTJhMywzLDAsMCwwLTMsM3Y2Ljg4YTMsMywwLDAsMCwzLDNIMjUuMDZhMywzLDAsMCwwLDMtM1YxNi41NmEzLDMsMCwwLDAtMy0zWm0tMS44MiwzYTEuODEsMS44MSwwLDAsMSwxLjgyLTEuODJIMjUuMDZhMS44MSwxLjgxLDAsMCwxLDEuODIsMS44MnY2Ljg4YTEuODEsMS44MSwwLDAsMS0xLjgyLDEuODJIMTQuOTRhMS44MSwxLjgxLDAsMCwxLTEuODItMS44MloiIHN0eWxlPSJmaWxsOiNmZmYiLz48L3N2Zz4="},{className:"InputPassword",icon:"data:image/svg+xml;base64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EsMjEuODMsMTQuNzFabTAsMS4yMmEuNjEuNjEsMCwwLDAtLjYxLjYyLjYxLjYxLDAsMCwwLDEuMjIsMEEuNjEuNjEsMCwwLDAsMjEuODMsMTUuOTNaIi8+PC9zdmc+"},{className:"DisplayGrid",icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMTcuMzksMjAuOGExLjgxLDEuODEsMCwwLDEsMS44MSwxLjgxdjIuODFhMS44MSwxLjgxLDAsMCwxLTEuODEsMS44MUgxNC41OGExLjgxLDEuODEsMCwwLDEtMS44MS0xLjgxVjIyLjYxYTEuODEsMS44MSwwLDAsMSwxLjgxLTEuODFabTgsMGExLjgxLDEuODEsMCwwLDEsMS44MSwxLjgxdjIuODFhMS44MSwxLjgxLDAsMCwxLTEuODEsMS44MUgyMi42MWExLjgxLDEuODEsMCwwLDEtMS44MS0xLjgxVjIyLjYxYTEuODEsMS44MSwwLDAsMSwxLjgxLTEuODFabS04LDEuMjFIMTQuNThhLjYuNiwwLDAsMC0uNi42djIuODFhLjYuNiwwLDAsMCwuNi42aDIuODFhLjYuNiwwLDAsMCwuNi0uNlYyMi42MUEuNi42LDAsMCwwLDE3LjM5LDIyWm04LDBIMjIuNjFhLjYuNiwwLDAsMC0uNi42djIuODFhLjYuNiwwLDAsMCwuNi42aDIuODFhLjYuNiwwLDAsMCwuNi0uNlYyMi42MUEuNi42LDAsMCwwLDI1LjQyLDIyWm0tOC05LjI0YTEuODEsMS44MSwwLDAsMSwxLjgxLDEuODF2Mi44MWExLjgxLDEuODEsMCwwLDEtMS44MSwxLjgxSDE0LjU4YTEuODEsMS44MSwwLDAsMS0xLjgxLTEuODFWMTQuNThhMS44MSwxLjgxLDAsMCwxLDEuODEtMS44MVptOCwwYTEuODEsMS44MSwwLDAsMSwxLjgxLDEuOD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LDAsMCwxLDIxLjY2LDE2Ljc0Wm0wLDcuMzVhMSwxLDAsMCwxLC43Mi0xLjI1LDEsMSwwLDAsMSwuNTMsMkExLDEsMCwwLDEsMjEuNjMsMjQuMDlaTTE4Ljc4LDE2YTEsMSwwLDEsMSwxLjI1LjcyQTEsMSwwLDAsMSwxOC43OCwxNloiIHN0eWxlPSJmaWxsOiNmZmYiLz48L3N2Zz4="}];class Hs extends t.Component{constructor(e){super(e),this.saveLocally=()=>{try{const e=JSON.stringify(this.props.globalState.guiTexture.serializeContent());C.DownloadAsFile(this.props.globalState.hostDocument,e,"guiTexture.json")}catch(e){this.props.globalState.hostWindow.alert("Unable to save your GUI"),o.Tools.Error("Unable to save your GUI")}},this.saveSelectedControlLocally=()=>{try{const e={controls:[]};for(const t of this.props.globalState.selectedControls){const n={};t.serialize(n),e.controls.push(n)}const t=JSON.stringify(e);C.DownloadAsFile(this.props.globalState.hostDocument,t,"guiControl.json")}catch(e){this.props.globalState.hostWindow.alert("Unable to save your selected Control"),o.Tools.Error("Unable to save your selected Control")}},this.saveToSnippetServerHelper=(e,t)=>new Promise(((n,s)=>{const i=new XMLHttpRequest;i.onreadystatechange=()=>{if(4==i.readyState)if(200==i.status){const e=JSON.parse(i.responseText),o=t.snippetId;t.snippetId=e.id,e.version&&"0"!=e.version&&(t.snippetId+="#"+e.version);const s=window;s.Playground&&o&&s.Playground.onRequestCodeChangeObservable.notifyObservers({regex:new RegExp(o,"g"),replace:t.snippetId}),n(t.snippetId)}else s("Unable to save your GUI")};const r=(new TextEncoder).encode(e);let l="";for(let e=0;e<r.length;e++)l+=String.fromCharCode(r[e]);const c={gui:e,encodedGui:l!==e?(0,o.EncodeArrayBufferToBase64)(r):void 0};i.open("POST",a.AdvancedDynamicTexture.SnippetUrl+(t.snippetId?"/"+t.snippetId:""),!0),i.setRequestHeader("Content-Type","application/json");const u={payload:JSON.stringify(c),name:"",description:"",tags:""};i.send(JSON.stringify(u))})),this.saveToSnippetServer=async()=>{const e=this.props.globalState.guiTexture,t=JSON.stringify(e.serializeContent());(this.props.globalState.customSave?.action||this.saveToSnippetServerHelper)(t,e).then((t=>{e.snippetId=t;const n=`GUI saved with ID: ${e.snippetId}`;this.props.globalState.hostWindow.navigator.clipboard?this.props.globalState.hostWindow.navigator.clipboard.writeText(e.snippetId).then((()=>{this.props.globalState.hostWindow.alert(`${n}. The ID was copied to your clipboard.`)})).catch((()=>{this.props.globalState.hostWindow.alert(n)})):this.props.globalState.hostWindow.alert(n),this.props.globalState.onBuiltObservable.notifyObservers()})).catch((e=>{this.props.globalState.hostWindow.alert(e)})),this.forceUpdate()},this._lockObject=new r,this.props.globalState.lockObject=this._lockObject,this.props.globalState.onSaveObservable.add((()=>{this.save(this.saveLocally)})),this.props.globalState.onSaveSelectedControl.add((()=>{this.save(this.saveSelectedControlLocally)})),this.props.globalState.onSnippetSaveObservable.add((()=>{this.save(this.saveToSnippetServer)})),this.props.globalState.onSnippetLoadObservable.add((()=>{this.loadFromSnippet()})),this.props.globalState.onPropertyGridUpdateRequiredObservable.add((()=>{this.forceUpdate()})),this.props.globalState.onLoadObservable.add((e=>this.load(e))),this.props.globalState.onControlLoadObservable.add((e=>this.loadControl(e)))}componentDidMount(){this.props.globalState.onSelectionChangedObservable.add((()=>{this.forceUpdate()})),this.props.globalState.onResizeObservable.add((()=>{this.forceUpdate()})),this._onBuiltObserver=this.props.globalState.onBuiltObservable.add((()=>{this.forceUpdate()})),this.props.globalState.onPropertyChangedObservable.add((()=>this.forceUpdate()))}componentWillUnmount(){window.clearInterval(this._timerIntervalId),this.props.globalState.onBuiltObservable.remove(this._onBuiltObserver)}load(e){o.Tools.ReadFile(e,(e=>{const t=new TextDecoder("utf-8");this.props.globalState.workbench.loadFromJson(JSON.parse(t.decode(e))),this.props.globalState.setSelection([])}),void 0,!0)}loadControl(e){o.Tools.ReadFile(e,(e=>{const t=new TextDecoder("utf-8");this.props.globalState.workbench.loadControlFromJson(JSON.parse(t.decode(e)))}),void 0,!0)}save(e){this.props.globalState.workbench.removeEditorTransformation();const t=this.props.globalState.guiTexture.rootContainer.getDescendants();for(const e of t)this.props.globalState.workbench.removeEditorBehavior(e);const n=this.props.globalState.workbench.guiSize;this.props.globalState.guiTexture.scaleTo(n.width,n.height),e();for(const e of t)this.props.globalState.workbench.addEditorBehavior(e)}loadFromSnippet(){const e=this.props.globalState.hostWindow.prompt("Please enter the snippet ID to use");e&&this.props.globalState.workbench.loadFromSnippet(e)}renderNode(e){const t=e[0];return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{id:"header",children:[(0,L.jsx)("img",{id:"logo",src:this.renderControlIcon(e)}),(0,L.jsx)("div",{id:"title",children:(0,L.jsx)(I,{noUnderline:!0,lockObject:this._lockObject,target:y(e,this.props.globalState.onPropertyChangedObservable),propertyName:"name",onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable})})]}),this.renderProperties(e),"Grid"===t?.parent?.typeName&&(0,L.jsx)(Bs,{control:t,onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable,lockObject:this._lockObject})]})}getControlsCommonClassName(e){if(0===e.length)return"";const t=e[0].getClassName();for(const n of e)if(n.getClassName()!==t)return"";return t}renderProperties(e){if(0===e.length)return;switch(this.getControlsCommonClassName(e)){case"TextBlock":{const t=e;return(0,L.jsx)(gs,{textBlocks:t,lockObject:this._lockObject,onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable,onFontsParsedObservable:this.props.globalState.onFontsParsedObservable,globalState:this.props.globalState})}case"InputText":{const t=e;return(0,L.jsx)(js,{inputTexts:t,lockObject:this._lockObject,onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable,onFontsParsedObservable:this.props.globalState.onFontsParsedObservable,globalState:this.props.globalState})}case"ColorPicker":{const t=e;return(0,L.jsx)(ms,{colorPickers:t,lockObject:this._lockObject,onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable,onFontsParsedObservable:this.props.globalState.onFontsParsedObservable,globalState:this.props.globalState})}case"Image":{const t=e;return(0,L.jsx)(fs,{images:t,lockObject:this._lockObject,onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable,onFontsParsedObservable:this.props.globalState.onFontsParsedObservable,globalState:this.props.globalState})}case"Slider":{const t=e;return(0,L.jsx)(As,{sliders:t,lockObject:this._lockObject,onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable,onFontsParsedObservable:this.props.globalState.onFontsParsedObservable,globalState:this.props.globalState})}case"ImageBasedSlider":{const t=e;return(0,L.jsx)(xs,{imageBasedSliders:t,lockObject:this._lockObject,onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable,onFontsParsedObservable:this.props.globalState.onFontsParsedObservable,globalState:this.props.globalState})}case"Rectangle":return(0,L.jsx)(Ds,{rectangles:e,lockObject:this._lockObject,onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable,onFontsParsedObservable:this.props.globalState.onFontsParsedObservable});case"StackPanel":{const t=e;return(0,L.jsx)(Is,{stackPanels:t,lockObject:this._lockObject,onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable,onFontsParsedObservable:this.props.globalState.onFontsParsedObservable,globalState:this.props.globalState})}case"Grid":{const t=e;return(0,L.jsx)(zs,{grids:t,lockObject:this._lockObject,onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable,onFontsParsedObservable:this.props.globalState.onFontsParsedObservable,globalState:this.props.globalState})}case"ScrollViewer":{const t=e;return(0,L.jsx)(Os,{scrollViewers:t,lockObject:this._lockObject,onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable,onFontsParsedObservable:this.props.globalState.onFontsParsedObservable,globalState:this.props.globalState})}case"Ellipse":{const t=e;return(0,L.jsx)(ks,{ellipses:t,lockObject:this._lockObject,onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable,onFontsParsedObservable:this.props.globalState.onFontsParsedObservable,globalState:this.props.globalState})}case"Checkbox":{const t=e;return(0,L.jsx)(Ys,{checkboxes:t,lockObject:this._lockObject,onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable,onFontsParsedObservable:this.props.globalState.onFontsParsedObservable,globalState:this.props.globalState})}case"RadioButton":{const t=e;return(0,L.jsx)(Ls,{radioButtons:t,lockObject:this._lockObject,onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable,onFontsParsedObservable:this.props.globalState.onFontsParsedObservable,globalState:this.props.globalState})}case"Line":{const t=e;return(0,L.jsx)(ps,{lines:t,lockObject:this._lockObject,onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable,onFontsParsedObservable:this.props.globalState.onFontsParsedObservable,globalState:this.props.globalState})}case"DisplayGrid":{const t=e;return(0,L.jsx)(Rs,{displayGrids:t,lockObject:this._lockObject,onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable,onFontsParsedObservable:this.props.globalState.onFontsParsedObservable,globalState:this.props.globalState})}case"Button":{const t=e;return(0,L.jsx)(Us,{rectangles:t,lockObject:this._lockObject,onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable,onAddComponent:e=>{for(const n of t){const t=Gs.CreateControlFromString(e);this.props.globalState.workbench.addEditorBehavior(t),n.addControl(t),this.props.globalState.select(t)}},onFontsParsedObservable:this.props.globalState.onFontsParsedObservable,globalState:this.props.globalState},"buttonMenu")}}const t=e;return(0,L.jsx)(Ps,{controls:t,lockObject:this._lockObject,onPropertyChangedObservable:this.props.globalState.onPropertyChangedObservable,onFontsParsedObservable:this.props.globalState.onFontsParsedObservable,globalState:this.props.globalState})}renderControlIcon(e){const t=e[0].getClassName();for(const n of e)if(n.getClassName()!==t)return es;const n=Ws.find((e=>e.className===t));return n?n.icon:es}render(){if(null==this.props.globalState.guiTexture)return null;const e=this.props.globalState.selectedControls.length>0?this.props.globalState.selectedControls:[this.props.globalState.workbench.trueRootContainer];return(0,L.jsx)("div",{id:"ge-propertyTab",children:this.renderNode(e)})}}class Qs extends t.Component{render(){return n.createPortal(this.props.children,this.props.globalState.hostElement)}}var Fs=s(548),Vs={};Vs.styleTagTransform=ho(),Vs.setAttributes=po(),Vs.insert=uo().bind(null,"head"),Vs.domAPI=lo(),Vs.insertStyleElement=Lo(),ro()(Fs.A,Vs),Fs.A&&Fs.A.locals&&Fs.A.locals;class Js extends t.Component{constructor(e){super(e),this.state={logs:[]}}componentDidMount(){this.props.globalState.onLogRequiredObservable.add((e=>{const t=this.state.logs.map((e=>e));t.push(e),this.setState({logs:t})}))}componentDidUpdate(){const e=n.findDOMNode(this.refs["log-console"]);e&&(e.scrollTop=e.scrollHeight)}render(){const e=new Date,t=e.getHours(),n=e.getMinutes(),o=e.getSeconds();return(0,L.jsx)("div",{id:"log-console",ref:"log-console",children:this.state.logs.map(((e,s)=>(0,L.jsx)("div",{className:"log"+(e.isError?" error":""),children:t+":"+n+":"+o+": "+e.message},s)))})}}var Xs=s(124),qs={};qs.styleTagTransform=ho(),qs.setAttributes=po(),qs.insert=uo().bind(null,"head"),qs.domAPI=lo(),qs.insertStyleElement=Lo(),ro()(Xs.A,qs);const Ks=Xs.A&&Xs.A.locals?Xs.A.locals:void 0,$s=e=>{const[n,o]=(0,t.useState)(e.message),[s,i]=(0,t.useState)(e.isError);return(0,t.useEffect)((()=>{o(e.message),i(e.isError)}),[e]),n?(0,L.jsx)("div",{className:Ks["dialog-container"],children:(0,L.jsxs)("div",{className:Ks.dialog,children:[(0,L.jsx)("div",{className:Ks["dialog-message"],children:n}),(0,L.jsx)("div",{className:Ks["dialog-buttons"],children:(0,L.jsx)("div",{className:Do({"dialog-button-ok":!0,error:s},Ks),onClick:()=>{o(""),e.onClose&&e.onClose()},children:"OK"})})]})}):null};class ei extends t.Component{constructor(e){super(e),this.state={value:""}}onClick(){this.props.onClick&&!this.props.renaming&&this.props.onClick()}onBlur(){this.props.setRenaming(!1)}render(){const e=this.props.renaming?this.state.value:this.props.label||"No Name";return(0,L.jsx)("div",{className:"title",onClick:()=>this.onClick(),children:this.props.renaming?(0,L.jsx)("input",{type:"text",onBlur:()=>this.onBlur(),autoFocus:!0,value:e,onChange:e=>{this.props.onChange(e.target.value),this.setState({value:e.target.value})},onKeyDown:e=>{"Enter"===e.key&&this.onBlur()},className:"titleText"}):(0,L.jsx)("div",{className:"titleText",onDoubleClick:()=>{this.props.setRenaming(!0),this.setState({value:e})},children:e})})}}class ti extends t.Component{constructor(e){super(e),this.state={popupVisible:!1},this._extensionRef=t.createRef()}showPopup(){this.setState({popupVisible:!0})}componentDidMount(){this._popup&&this._popup.focus()}componentDidUpdate(){this._popup&&this._popup.focus()}render(){if(!this.props.extensibilityGroups)return null;const e=[];for(const t of this.props.extensibilityGroups)t.predicate(this.props.target)&&e.push(...t.entries);return 0===e.length?null:(0,L.jsxs)("div",{ref:this._extensionRef,className:"extensions",onClick:()=>this.showPopup(),children:[(0,L.jsx)("div",{title:"Additional options",className:"icon",children:(0,L.jsx)(Vn,{icon:to})}),(0,L.jsx)("div",{ref:e=>{this._popup=e},tabIndex:-1,className:this.state.popupVisible?"popup show":"popup",onBlur:()=>this.setState({popupVisible:!1}),children:e.map((e=>(0,L.jsx)("div",{className:"popupMenu",onClick:()=>e.action(this.props.target),children:e.label},e.label)))})]})}}class ni extends t.Component{constructor(e){super(e);const t=this.props.control;this.state={isActive:t.isHighlighted,isVisible:t.isVisible,isRenaming:!1},this._onIsVisibleChangedObserver=t.onIsVisibleChangedObservable.add((e=>{this.setState({isVisible:e})}))}componentWillUnmount(){this._onIsVisibleChangedObserver&&this.props.control.onIsVisibleChangedObservable.remove(this._onIsVisibleChangedObserver)}highlight(){const e=this.props.control;e.isHighlighted=!e.isHighlighted,this.setState({isActive:e.isHighlighted})}switchVisibility(){const e=!this.state.isVisible;this.setState({isVisible:e}),this.props.control.isVisible=e}onRename(e){this.props.control.name=e,this.props.globalState.onPropertyGridUpdateRequiredObservable.notifyObservers()}render(){const e=this.props.control;let t="";"Grid"===e.parent?.typeName&&(t=e.parent.getChildCellInfo(this.props.control));const n=this.props.globalState.draggedControl===e,o=Ws.find((t=>t.className===e.getClassName()));return(0,L.jsxs)("div",{className:"controlTools",children:[o&&(0,L.jsx)("div",{className:"controlType icon",children:(0,L.jsx)("img",{src:o.icon,alt:o.className})}),(0,L.jsx)(ei,{label:e.name,bracket:t,onClick:()=>this.props.onClick(),onChange:e=>this.onRename(e),setRenaming:e=>{this.setState({isRenaming:e}),this.props.onRenamingStateChanged(e)},renaming:this.state.isRenaming}),!n&&this.props.isDragOver&&this.props.dragOverLocation==d.CENTER&&e instanceof a.Container&&(0,L.jsx)(L.Fragment,{children:(0,L.jsx)("div",{className:"makeChild icon",onClick:()=>this.highlight(),title:"Make Child",children:(0,L.jsx)("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMTguNjcsMTQuNzdsLS4wNywwYS42MS42MSwwLDAsMC0uNzksMEwxNS42MSwxN1YxMS40OEEuNi42LDAsMCwwLDE1LDExaC0uMDhhLjYuNiwwLDAsMC0uNTMuNlYxN2wtMi4yLTIuMjEtLjA3LS4wNmEuNjEuNjEsMCwwLDAtLjc5LjkybDMuMjQsMy4yNC4wNy4wNmEuNjIuNjIsMCwwLDAsLjc5LS4wNmwzLjI0LTMuMjQsMC0uMDdBLjYxLjYxLDAsMCwwLDE4LjY3LDE0Ljc3WiIgc3R5bGU9ImZpbGw6IzIxMjEyMSIvPjxwYXRoIGQ9Ik0xMC4zNSw3LjcyYTIuNjIsMi42MiwwLDAsMC0yLjYzLDIuNjN2OS4zYTIuNjIsMi42MiwwLDAsMCwyLjYzLDIuNjNoOS4zYTIuNjIsMi42MiwwLDAsMCwyLjYzLTIuNjN2LTkuM2EyLjYyLDIuNjIsMCwwLDAtMi42My0yLjYzWk04LjkzLDEwLjM1YTEuNDMsMS40MywwLDAsMSwxLjQyLTEuNDJoOS4zYTEuNDMsMS40MywwLDAsMSwxLjQyLDEuNDJ2OS4zYTEuNDMsMS40MywwLDAsMS0xLjQyLDEuNDJoLTkuM2ExLjQzLDEuNDMsMCwwLDEtMS40Mi0xLjQyWiIgc3R5bGU9ImZpbGw6IzIxMjEyMSIvPjwvc3ZnPg=="})})}),!this.state.isRenaming&&this.props.isHovered&&null===this.props.globalState.draggedControl&&this.props.dragOverLocation==d.NONE&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{className:"addComponent icon",onClick:()=>this.highlight(),title:"Add component (Not Implemented)",children:(0,L.jsx)("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMTUsMTFhLjYxLjYxLDAsMCwxLC42MS42MXYyLjgzaDIuODNhLjYxLjYxLDAsMCwxLDAsMS4yMkgxNS42MXYyLjgzYS42MS42MSwwLDAsMS0xLjIyLDBWMTUuNjFIMTEuNTZhLjYxLjYxLDAsMSwxLDAtMS4yMmgyLjgzVjExLjU2QS42MS42MSwwLDAsMSwxNSwxMVoiIHN0eWxlPSJmaWxsOiMzMzMiLz48cGF0aCBkPSJNNy43MSwxMC4zNGEyLjYzLDIuNjMsMCwwLDEsMi42My0yLjYzaDkuMzJhMi42MywyLjYzLDAsMCwxLDIuNjMsMi42M3Y5LjMyYTIuNjMsMi42MywwLDAsMS0yLjYzLDIuNjNIMTAuMzRhMi42MywyLjYzLDAsMCwxLTIuNjMtMi42M1ptMi42My0xLjQxYTEuNDEsMS40MSwwLDAsMC0xLjQxLDEuNDF2OS4zMmExLjQxLDEuNDEsMCwwLDAsMS40MSwxLjQxaDkuMzJhMS40MSwxLjQxLDAsMCwwLDEuNDEtMS40MVYxMC4zNGExLjQxLDEuNDEsMCwwLDAtMS40MS0xLjQxWiIgc3R5bGU9ImZpbGw6IzMzMyIvPjwvc3ZnPg=="})}),(0,L.jsx)("div",{className:"visibility icon",onClick:()=>this.switchVisibility(),title:"Set isVisible",children:(0,L.jsx)("img",{src:this.state.isVisible?Ko:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMTUsMTMuMTlhMy4yMywzLjIzLDAsMSwxLTMuMjIsMy4yMkEzLjIyLDMuMjIsMCwwLDEsMTUsMTMuMTlabTAsMS4yMWEyLDIsMCwxLDAsMiwyQTIsMiwwLDAsMCwxNSwxNC40Wm0wLTRhOC4wNiw4LjA2LDAsMCwxLDcuODIsNi4xLjYxLjYxLDAsMCwxLTEuMTguMjksNi44NCw2Ljg0LDAsMCwwLTEzLjI4LDAsLjYxLjYxLDAsMCwxLTEuMTgtLjNBOC4wNyw4LjA3LDAsMCwxLDE1LDEwLjM2WiIgc3R5bGU9ImZpbGw6Izg4OCIvPjwvc3ZnPg=="})})]}),(0,L.jsx)(ti,{target:e,extensibilityGroups:this.props.extensibilityGroups})]})}}const oi="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDE1IDMwIj48cGF0aCBkPSJNNy4xLDE2LjYzLDUuMSwxNGEuNS41LDAsMCwxLC40LS44aDRhLjUuNSwwLDAsMSwuNC44bC0yLDIuNjZBLjUuNSwwLDAsMSw3LjEsMTYuNjNaIiBzdHlsZT0iZmlsbDojOGU4ZThlIi8+PC9zdmc+",si="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDE1IDMwIj48cGF0aCBkPSJNOS4xMywxNS40bC0yLjY2LDJhLjUuNSwwLDAsMS0uOC0uNFYxM2EuNS41LDAsMCwxLC44LS40bDIuNjYsMkEuNS41LDAsMCwxLDkuMTMsMTUuNFoiIHN0eWxlPSJmaWxsOiM4ZThlOGUiLz48L3N2Zz4=";class ii extends t.Component{constructor(e){super(e),this._secondDragEnter=!1,this.state={expand:!0,dragOver:!1,dragOverLocation:d.NONE,isHovered:!1,isSelected:this.props.selectedEntities.includes(this.props.entity),blockDrag:!1},this._onSelectionChangedObservable=e.globalState.onSelectionChangedObservable.add((()=>{this.setState({isSelected:this.props.globalState.selectedControls.includes(this.props.entity)})})),this._onDraggingEndObservable=e.globalState.onDraggingEndObservable.add((()=>{this.setState({dragOverLocation:d.NONE})})),this._onDraggingStartObservable=e.globalState.onDraggingStartObservable.add((()=>{this.forceUpdate()}))}switchExpandedState(){this.props.entity.reservedDataStore.setExpandedState(!this.props.entity.reservedDataStore.isExpanded),this.setState({expand:!this.state.expand})}shouldComponentUpdate(e,t){return e.selectedEntities.includes(e.entity)?(t.isSelected=!0,!0):(t.isSelected=!1,ns.LookForItems(e.entity,e.selectedEntities),!0)}scrollIntoView(){const e=n.findDOMNode(this);e&&e.scrollIntoView(!1)}componentWillUnmount(){this.props.globalState.onSelectionChangedObservable.remove(this._onSelectionChangedObservable),this.props.globalState.onDraggingEndObservable.remove(this._onDraggingEndObservable),this.props.globalState.onDraggingStartObservable.remove(this._onDraggingStartObservable)}onSelect(){const e=this.props.entity;this.props.globalState.select(e),this.props.globalState.selectionLock=!0}renderChildren(e,t=!0){const n=this.props.entity;if(!n.getChildren&&!n.children||!e)return null;const o=ns.SortAndFilter(n,n.getChildren?n.getChildren():n.children);return"StackPanel"!==n.typeName&&"VirtualKeyboard"!==n.typeName||o.reverse(),o.map(((e,n)=>"Art-Board-Background"==e.name?null:(0,L.jsx)(ii,{globalState:this.props.globalState,mustExpand:this.props.mustExpand,extensibilityGroups:this.props.extensibilityGroups,selectedEntities:this.props.selectedEntities,offset:this.props.offset+(t?2:0),entity:e,filter:this.props.filter},n)))}render(){if(this.props.entity===this.props.globalState.workbench.trueRootContainer||this.props.entity===this.props.globalState.workbench.visibleRegionContainer||this.props.entity===this.props.globalState.workbench.panAndZoomContainer)return this.renderChildren(!0,!1);const e={paddingLeft:10*(this.props.offset+.5)-20+"px"},t={marginLeft:10*(this.props.offset+.5)-20+"px"};let n=this.props.entity;n.reservedDataStore||(n.reservedDataStore={isExpanded:!0,setExpandedState:e=>n.reservedDataStore.isExpanded=e});const o=n.reservedDataStore.isExpanded||ns.LookForItems(this.props.entity,this.props.selectedEntities);n.reservedDataStore.isExpanded=o;const s=o?(0,L.jsx)("img",{src:oi,className:"icon"}):(0,L.jsx)("img",{src:si,className:"icon"});let i="MultiMaterial"===n.getClassName()?[]:ns.SortAndFilter(n,n.getChildren?n.getChildren():n.children),r=i.length>0;if(this.props.filter){const e=this.props.filter.toLowerCase();if(!n.name||-1===n.name.toLowerCase().indexOf(e)){if(!r)return null;if(n.getDescendants&&0===n.getDescendants(!1,(t=>t.name&&-1!==t.name.toLowerCase().indexOf(e))).length)return null}}let l="itemContainer";l+=this.state.isSelected&&null===this.props.globalState.draggedControl?" selected":"",l+=this.state.isHovered&&null===this.props.globalState.draggedControl?" hover":"",l+=this.state.dragOver&&this.state.dragOverLocation==d.CENTER&&n instanceof a.Container?" parent":"",l+=this.props.globalState.draggedControl===this.props.entity?" dragged":"",l+=this.state.dragOver&&this.state.dragOverLocation==d.ABOVE&&n.parent?" seAbove":"",l+=this.state.dragOver&&this.state.dragOverLocation==d.BELOW&&n.parent?" seBelow":"";const c="itemContainer seAbove"===l||"itemContainer seBelow"===l?t:e;return(0,L.jsxs)("div",{children:[(0,L.jsxs)("div",{className:l,style:c,onPointerUp:()=>{this.onSelect()},onPointerEnter:()=>this.setState({isHovered:!0}),onPointerLeave:()=>this.setState({isHovered:!1}),onDragStart:()=>{this.props.globalState.draggedControl=this.props.entity,this.props.globalState.onDraggingStartObservable.notifyObservers()},onDragEnd:()=>{this.props.globalState.onDraggingEndObservable.notifyObservers()},draggable:n.parent&&!this.state.blockDrag,onDrop:e=>{this.drop(),e.preventDefault()},onDragEnter:e=>{e.preventDefault(),this.dragOver(e)},onDragOver:e=>this.updateDragOverLocation(e),onDragLeave:()=>{this._secondDragEnter?this._secondDragEnter=!1:this.setState({dragOver:!1})},children:[r&&(0,L.jsx)("div",{className:"arrow icon",onClick:e=>{if(this.switchExpandedState(),e.shiftKey)for(;r;)this.renderChildren(!0),n=n.children[0],i="MultiMaterial"===n.getClassName()?[]:ns.SortAndFilter(n,n.getChildren?n.getChildren():n.children),r=i.length>0,n.reservedDataStore.isExpanded=!0},children:s}),(0,L.jsx)(ni,{globalState:this.props.globalState,extensibilityGroups:this.props.extensibilityGroups,control:n,onClick:()=>{},isHovered:this.state.isHovered,isDragOver:this.state.dragOver,dragOverLocation:this.state.dragOverLocation,onRenamingStateChanged:e=>{this.setState({blockDrag:e})}})]}),this.renderChildren(o)]})}dragOver(e){this.updateDragOverLocation(e),this.state.dragOver?this._secondDragEnter=!0:this.setState({dragOver:!0})}updateDragOverLocation(e){const t=e.target.getBoundingClientRect(),n=e.clientY-t.top;this.props.entity instanceof a.Container?n<6.4?this.setState({dragOverLocation:d.ABOVE}):n>25.6?this.setState({dragOverLocation:d.BELOW}):this.setState({dragOverLocation:d.CENTER}):n<16?this.setState({dragOverLocation:d.ABOVE}):this.setState({dragOverLocation:d.BELOW})}drop(){this.props.globalState.onDropObservable.notifyObservers();const e=this.props.entity;this.props.globalState.draggedControl!=e&&(this.props.globalState.draggedControlDirection=this.state.dragOverLocation,this.props.globalState.onParentingChangeObservable.notifyObservers(this.props.entity)),this.props.globalState.draggedControl=null,this.setState({dragOverLocation:d.NONE,dragOver:!1}),this._secondDragEnter=!1}}var ri=s(312);class ai extends t.Component{constructor(e){super(e)}expandAll(){this.props.onExpandAll(!this.props.isExpanded)}render(){const e=this.props.isExpanded?(0,L.jsx)("img",{src:oi,className:"icon"}):(0,L.jsx)("img",{src:si,className:"icon"});return(0,L.jsxs)("div",{className:"expandableHeader",children:[(0,L.jsxs)("div",{className:"text",children:[(0,L.jsx)("div",{className:"arrow icon",onClick:()=>this.props.onClick(),children:e}),(0,L.jsx)("div",{className:"text-value",children:this.props.label})]}),(0,L.jsx)("div",{className:"expandAll icon",onClick:()=>this.expandAll(),title:this.props.isExpanded?"Collapse all":"Expand all",children:e})]})}}class li extends t.Component{constructor(e){super(e)}render(){return(0,L.jsx)("div",{className:"expandableHeader",children:(0,L.jsxs)("div",{className:"text",children:[(0,L.jsx)("div",{className:"arrow icon",children:(0,L.jsx)(Vn,{icon:$n})}),(0,L.jsx)("div",{className:"text-value",children:this.props.label})]})})}}class ci extends t.Component{constructor(e){super(e),this.state={isExpanded:!0,mustExpand:!0}}switchExpandedState(){this.setState({isExpanded:!this.state.isExpanded,mustExpand:!1})}shouldComponentUpdate(e,t){if(!t.isExpanded&&this.state.isExpanded)return!0;const n=e.items;if(n&&n.length)for(const o of n)if(ns.LookForItems(o,e.selectedEntities))return t.isExpanded=!0,!0;return!0}expandAll(e){this.setState({isExpanded:e,mustExpand:e})}renderContextMenu(){return this.props.contextMenuItems?(0,L.jsx)(ri.tz,{id:"contextmenu#"+ci._ContextMenuUniqueIdGenerator++,className:"context-menu",children:this.props.contextMenuItems.map((e=>(0,L.jsx)(ri.Dr,{onClick:()=>e.action(),children:e.label},e.label)))}):(ci._ContextMenuUniqueIdGenerator++,null)}render(){let e=this.props.items;const t={paddingLeft:10*(this.props.offset+.5)+"px"};if(!e){if(!this.props.forceSubitems)return(0,L.jsx)("div",{className:"groupContainer",style:t,children:(0,L.jsx)("div",{children:this.props.label})});e=[]}if(!e.length)return(0,L.jsx)("div",{className:"groupContainer",style:t,children:(0,L.jsxs)(ri.Rc,{id:"contextmenu#"+ci._ContextMenuUniqueIdGenerator,children:[this.renderContextMenu(),(0,L.jsx)(li,{label:this.props.label})]})});if(!this.state.isExpanded)return(0,L.jsx)("div",{className:"groupContainer",style:t,children:(0,L.jsxs)(ri.Rc,{id:"contextmenu#"+ci._ContextMenuUniqueIdGenerator,children:[this.renderContextMenu(),(0,L.jsx)(ai,{isExpanded:!1,label:this.props.label,onClick:()=>this.switchExpandedState(),onExpandAll:e=>this.expandAll(e)})]})});const n=ns.SortAndFilter(null,e)[0].getChildren();return(0,L.jsx)("div",{children:n.map((e=>(0,L.jsx)(ii,{extensibilityGroups:this.props.extensibilityGroups,offset:this.props.offset+1,selectedEntities:this.props.selectedEntities,entity:e,globalState:this.props.globalState,filter:this.props.filter},void 0!==e.uniqueId&&null!==e.uniqueId?e.uniqueId:e.name)))})}}ci._ContextMenuUniqueIdGenerator=0;var ui=s(660),Ai={};Ai.styleTagTransform=ho(),Ai.setAttributes=po(),Ai.insert=uo().bind(null,"head"),Ai.domAPI=lo(),Ai.insertStyleElement=Lo(),ro()(ui.A,Ai),ui.A&&ui.A.locals&&ui.A.locals,t.Component;class di extends t.Component{constructor(e){super(e),this.state={filter:null,selectedEntity:null,scene:this.props.scene?this.props.scene:null},this._onNewSceneObserver=this.props.globalState.onNewSceneObservable.add((e=>{this.setState({scene:e})})),this._onPropertyChangedObservable=this.props.globalState.onPropertyChangedObservable.add((e=>{"name"!==e.property&&"_columnNumber"!==e.property&&"_rowNumber"!==e.property||this.forceUpdate()})),this._onUpdateRequiredObserver=this.props.globalState.onUpdateRequiredObservable.add((()=>{this.forceUpdate()}))}componentDidMount(){this._onSelectionChangeObserver=this.props.globalState.onSelectionChangedObservable.add((e=>{this.state.selectedEntity!==e&&this.setState({selectedEntity:e})})),this.props.globalState.onSelectionChangedObservable.add((()=>{this.forceUpdate()})),this._onParrentingChangeObserver=this.props.globalState.onParentingChangeObservable.add((()=>{this.forceUpdate()}))}componentWillUnmount(){this._onSelectionChangeObserver&&this.props.globalState.onSelectionChangedObservable.remove(this._onSelectionChangeObserver),this._onNewSceneObserver&&this.props.globalState.onNewSceneObservable.remove(this._onNewSceneObserver),this._onParrentingChangeObserver&&this.props.globalState.onParentingChangeObservable.remove(this._onParrentingChangeObserver),this._onPropertyChangedObservable&&this.props.globalState.onPropertyChangedObservable.remove(this._onPropertyChangedObservable),this._onUpdateRequiredObserver&&this.props.globalState.onUpdateRequiredObservable.remove(this._onUpdateRequiredObserver)}filterContent(e){this.setState({filter:e})}findSiblings(e,t,n,o,s){if(!t)return!1;const i=ns.SortAndFilter(e,t);if(!t||0===i.length)return!1;for(const e of i){if(e===n){if(s.found=!0,!o)return s.previousOne&&this.props.globalState.select(s.previousOne),!0}else{if(s.found)return this.props.globalState.select(e),!0;s.previousOne=e}if(e.getChildren&&e.reservedDataStore&&e.reservedDataStore.isExpanded&&this.findSiblings(e,e.getChildren(),n,o,s))return!0}return!1}processKeys(e){if("input"===e.target.localName)return;const t=this.state.scene;let n=!1,s=!1;switch(e.key){case"ArrowUp":n=!0;break;case"ArrowDown":s=!0,n=!0;break;case"Enter":case"ArrowRight":return this.props.globalState.selectedControls.forEach((e=>{const t=e.reservedDataStore;t&&t.setExpandedState&&t.setExpandedState(!0)})),e.preventDefault(),void this.forceUpdate();case"ArrowLeft":return this.props.globalState.selectedControls.forEach((e=>{const t=e.reservedDataStore;o.Logger.Log(t),t&&t.setExpandedState&&t.setExpandedState(!1)})),e.preventDefault(),void this.forceUpdate();case"Delete":case"Backspace":this.props.globalState.deleteSelectedNodes(),this.forceUpdate()}if(n&&(e.preventDefault(),t)){const e=this.props.globalState.selectedControls[this.props.globalState.selectedControls.length-1],n={};this.findSiblings(null,t.rootNodes,e,s,n)||this.findSiblings(null,t.materials,e,s,n)||this.findSiblings(null,t.textures,e,s,n)}}renderContent(){if(!this.state.scene)return null;const e=[this.props.globalState.guiTexture];return(0,L.jsx)("div",{id:"tree",onDrop:()=>{this.props.globalState.onDropObservable.notifyObservers(),this.props.globalState.onParentingChangeObservable.notifyObservers(null)},onDragOver:e=>{e.preventDefault()},onClick:()=>{this.props.globalState.selectionLock?this.props.globalState.selectionLock=!1:this.props.globalState.setSelection([])},onContextMenu:e=>e.preventDefault(),children:e&&e.length>0&&(0,L.jsx)(ci,{globalState:this.props.globalState,extensibilityGroups:this.props.extensibilityGroups,selectedEntities:this.props.globalState.selectedControls,items:e,label:"GUI",offset:1,filter:this.state.filter})})}onClose(){this.props.onClose&&this.props.onClose()}onPopup(){this.props.onPopup&&this.props.onPopup()}render(){return(0,L.jsxs)("div",{id:"ge-sceneExplorer",tabIndex:0,onKeyDown:e=>this.processKeys(e),children:[this.props.children,this.renderContent()]})}}class pi extends t.Component{constructor(e){super(e),this._id=pi._IDGenerator++,this._uploadInputRef=t.createRef()}onChange(e){const t=e.target.files;t&&t.length&&this.props.onClick(t[0]),e.target.value=""}render(){return(0,L.jsxs)("div",{className:"buttonLine",children:[this.props.icon&&(0,L.jsx)("img",{src:this.props.icon,title:this.props.iconLabel,alt:this.props.iconLabel,className:"icon"}),(0,L.jsx)("label",{htmlFor:"file-upload"+this._id,className:"file-upload",children:this.props.label}),(0,L.jsx)("input",{ref:this._uploadInputRef,id:"file-upload"+this._id,type:"file",accept:this.props.accept,onChange:e=>this.onChange(e)})]})}}pi._IDGenerator=0;class Mi extends t.Component{constructor(e){super(e),this.state={isExpanded:!1,activeState:""}}render(){return(0,L.jsxs)(L.Fragment,{children:[this.state.isExpanded&&(0,L.jsx)("div",{className:"command-dropdown-blocker",onClick:()=>{this.setState({isExpanded:!1})}}),(0,L.jsxs)("div",{className:"command-dropdown-root",children:[(0,L.jsxs)("div",{className:"command-dropdown"+(this.state.isExpanded?" activated":""),title:this.props.tooltip,onClick:()=>{this.setState({isExpanded:!1});const e=!this.state.isExpanded,t=document.getElementById("embed-host");t&&(t.style.zIndex=e?"0":"10"),this.setState({isExpanded:e})},children:[this.props.icon&&(0,L.jsx)("div",{className:"command-dropdown-icon",children:(0,L.jsx)("img",{src:this.props.icon})}),!this.props.icon&&(0,L.jsx)("div",{className:"command-dropdown-active"})]}),this.state.isExpanded&&(0,L.jsx)("div",{className:"command-dropdown-content sub1"+(this.props.toRight?" toRight":""),children:this.props.items.map((e=>e.fileButton?(0,L.jsx)(pi,{label:e.loadControlButton?"Load control":"Load",onClick:t=>this.props.globalState[e.loadControlButton?"onControlLoadObservable":"onLoadObservable"].notifyObservers(t),accept:".json"},e.label):(0,L.jsxs)("div",{className:"command-dropdown-label"+(e.isActive?" active":""),onClick:()=>{e.onClick?e.subItems||(e.onClick(),this.setState({isExpanded:!1,activeState:e.label})):this.forceUpdate()},title:e.label,children:[!e.icon&&(0,L.jsx)("div",{className:"command-dropdown-label-text",children:(e.isActive?"> ":"")+e.label}),e.icon&&(0,L.jsx)("div",{className:"command-dropdown-icon",children:(0,L.jsx)("img",{src:e.icon})}),e.onCheck&&(0,L.jsx)("input",{type:"checkBox",className:"command-dropdown-label-check",onChange:t=>{this.forceUpdate(),e.onCheck(t.target.checked)},checked:!1}),e.subItems&&(0,L.jsx)("div",{className:"command-dropdown-arrow",children:">"}),e.subItems&&(0,L.jsx)("div",{className:"sub-items ",children:e.subItems.map((t=>(0,L.jsx)("div",{className:"sub-item",onClick:()=>{e.onClick(),this.setState({isExpanded:!1})},children:(0,L.jsx)("div",{className:"sub-item-label",children:t})},t)))})]},e.label)))})]})]})}}var Li=s(463),Ci={};Ci.styleTagTransform=ho(),Ci.setAttributes=po(),Ci.insert=uo().bind(null,"head"),Ci.domAPI=lo(),Ci.insertStyleElement=Lo(),ro()(Li.A,Ci),Li.A&&Li.A.locals&&Li.A.locals;const hi=[{width:1920,height:1080},{width:1366,height:768},{width:1280,height:800},{width:3840,height:2160},{width:750,height:1334},{width:1125,height:2436},{width:1170,height:2532},{width:1284,height:2778},{width:1080,height:2220},{width:1080,height:2340},{width:1024,height:1024},{width:2048,height:2048}],gi=[{label:"Web (1920)",value:0},{label:"Web (1366)",value:1},{label:"Web (1280)",value:2},{label:"Web (3840)",value:3},{label:"iPhone 8 (750)",value:4},{label:"iPhone X, 11 (1125)",value:5},{label:"iPhone 12 (1170)",value:6},{label:"iPhone Pro Max (1284)",value:7},{label:"Google Pixel 4 (1080)",value:8},{label:"Google Pixel 5 (1080)",value:9},{label:"Square (1024)",value:10},{label:"Square (2048)",value:11}];class wi extends t.Component{constructor(e){super(e),this._sizeOption=0,this._stopUpdating=!1,this._lockObject=new r,e.globalState.onToolChangeObservable.add((()=>{this.forceUpdate()})),e.globalState.onOutlineChangedObservable.add((()=>{this.forceUpdate()})),e.globalState.onResizeObservable.add((()=>{this.forceUpdate()})),e.globalState.onSelectionChangedObservable.add((()=>{this.forceUpdate()})),e.globalState.onWindowResizeObservable.add((()=>{this.forceUpdate()}))}render(){const e=!this.props.globalState.workbench||this.props.globalState.workbench.pasteDisabled,t=this.props.globalState.workbench?{...this.props.globalState.workbench.guiSize}:{width:0,height:0},n=0===this.props.globalState.selectedControls.length?"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJpY29ucyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiM3Nzc3Nzc7fTwvc3R5bGU+PC9kZWZzPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTE0Ljc2LDE0LjA2djEwLjI3YzAsMS40NiwxLjE4LDIuNjQsMi42NCwyLjY0aDcuMDFjLS4yNSwuNzEtLjkzLDEuMjItMS43MywxLjIyaC01LjI4Yy0yLjEzLDAtMy44Ni0xLjczLTMuODYtMy44NlYxNS43OGMwLS44LC41MS0xLjQ4LDEuMjItMS43M1ptOS45Ni0yLjE0YzEuMDEsMCwxLjgzLC44MiwxLjgzLDEuODN2MTAuNTdjMCwxLjAxLS44MiwxLjgzLTEuODMsMS44M2gtNy4zMmMtMS4wMSwwLTEuODMtLjgyLTEuODMtMS44M1YxMy43NWMwLTEuMDEsLjgyLTEuODMsMS44My0xLjgzaDcuMzJabTAsMS4yMmgtNy4zMmMtLjM0LDAtLjYxLC4yNy0uNjEsLjYxdjEwLjU3YzAsLjM0LC4yNywuNjEsLjYxLC42MWg3LjMyYy4zNCwwLC42MS0uMjcsLjYxLS42MVYxMy43NWMwLS4zNC0uMjctLjYxLS42MS0uNjFaIi8+PC9zdmc+":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJpY29ucyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTE0Ljc2LDE0LjA2djEwLjI3YzAsMS40NiwxLjE4LDIuNjQsMi42NCwyLjY0aDcuMDFjLS4yNSwuNzEtLjkzLDEuMjItMS43MywxLjIyaC01LjI4Yy0yLjEzLDAtMy44Ni0xLjczLTMuODYtMy44NlYxNS43OGMwLS44LC41MS0xLjQ4LDEuMjItMS43M1ptOS45Ni0yLjE0YzEuMDEsMCwxLjgzLC44MiwxLjgzLDEuODN2MTAuNTdjMCwxLjAxLS44MiwxLjgzLTEuODMsMS44M2gtNy4zMmMtMS4wMSwwLTEuODMtLjgyLTEuODMtMS44M1YxMy43NWMwLTEuMDEsLjgyLTEuODMsMS44My0xLjgzaDcuMzJabTAsMS4yMmgtNy4zMmMtLjM0LDAtLjYxLC4yNy0uNjEsLjYxdjEwLjU3YzAsLjM0LC4yNywuNjEsLjYxLC42MWg3LjMyYy4zNCwwLC42MS0uMjcsLjYxLS42MVYxMy43NWMwLS4zNC0uMjctLjYxLS42MS0uNjFaIi8+PC9zdmc+",s=0===this.props.globalState.selectedControls.length?"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJpY29ucyIgeG1sbnM9Imh0dH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ny44NGMwLC45Ny0uNzUsMS43Ni0xLjcsMS44MmgtNS40Yy0uOTcsMC0xLjc2LS43NS0xLjgyLTEuN3YtNy44NGMwLS45NywuNzUtMS43NiwxLjctMS44Mmg1LjRabTAsMS4yMWgtNS4yOGMtLjMxLDAtLjU2LC4yMy0uNiwuNTN2Ny44YzAsLjMxLC4yMiwuNTYsLjUyLC42aDUuMzZjLjMxLDAsLjU2LS4yMiwuNi0uNTJ2LTcuOGMwLS4zMS0uMjItLjU2LS41Mi0uNmgtLjA4Wm0tNC44Ny00Ljg4aC0yLjg1Yy0uMzMsMC0uNjEsLjI3LS42MSwuNjFzLjI3LC42MSwuNjEsLjYxaDIuODVjLjMzLDAsLjYxLS4yNywuNjEtLjYxcy0uMjctLjYxLS42MS0uNjFaIi8+PC9zdmc+",r=this.props.globalState.fromPG?o.DataStorage.ReadBoolean("responsiveUI",!0):o.DataStorage.ReadBoolean("Responsive",!0);return this._sizeOption=hi.findIndex((e=>e.width==t.width&&e.height==t.height)),this._sizeOption<0&&(this.props.globalState.onResponsiveChangeObservable.notifyObservers(!1),o.DataStorage.WriteBoolean("Responsive",!1)),(0,L.jsxs)("div",{className:"ge-commands",children:[(0,L.jsxs)("div",{className:"commands-left",children:[(0,L.jsxs)("div",{className:"divider",children:[(0,L.jsx)("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cG9seWdvbiBwb2ludHM9IjI5LjM5IDE0LjU4IDI2LjQ1IDEyLjg4IDIzLjYzIDE0LjUxIDI2LjU3IDE2LjIxIDI5LjM5IDE0LjU4IiBzdHlsZT0iZmlsbDojZTA2ODRiIi8+PHBvbHlnb24gcG9pbnRzPSIxMy40MyAxNi4yMSAyMi44MyAxMC43OSAyMCA5LjE1IDEwLjYxIDE0LjU4IDEzLjQzIDE2LjIxIiBzdHl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alState,toRight:!0,icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMTIuNDYsMTUuMzFIMjcuNjJhLjYyLjYyLDAsMCwwLC41My0uNjEuNjEuNjEsMCwwLDAtLjYxLS42MUgxMi4zOGEuNjEuNjEsMCwwLDAsLjA4LDEuMjFaIiBzdHlsZT0iZmlsbDojZmZmIi8+PHBhdGggZD0iTTI3LjU0LDE5LjM5SDEyLjM4YS42MS42MSwwLDAsMCwuMDgsMS4yMUgyNy42MmEuNjIuNjIsMCwwLDAsLjUzLS42MUEuNjEuNjEsMCwwLDAsMjcuNTQsMTkuMzlaIiBzdHlsZT0iZmlsbDojZmZmIi8+PHBhdGggZD0iTTI3LjU0LDI0LjY5SDEyLjM4YS42Mi42MiwwLDAsMC0uNTMuNjEuNjEuNjEsMCwwLDAsLjYxLjYxSDI3LjYyYS42MS42MSwwLDAsMC0uMDgtMS4yMVoiIHN0eWxlPSJmaWxsOiNmZmYiLz48L3N2Zz4=",tooltip:"Options",items:[{label:"Save",onClick:()=>{this.props.globalState.onSaveObservable.notifyObservers()}},{label:"Load",fileButton:!0},{label:"Save to snippet",onClick:()=>{this.props.globalState.onSnippetSaveObservable.notifyObservers()}},{label:"Load from snippet",onClick:()=>{this.props.globalState.onSnippetLoadObservable.notifyObservers()}},{label:"Save selected control",onClick:()=>{this.props.globalState.onSaveSelectedControl.notifyObservers()}},{label:"Load control",fileButton:!0,loadControlButton:!0},{label:"Help",onClick:()=>{window.open("https://doc.babylonjs.com/toolsAndResources/tools/guiEditor","_blank")}},{label:"Give feedback",onClick:()=>{window.open("https://forum.babylonjs.com/t/introducing-the-gui-editor-beta/28943","_blank")}}]}),(0,L.jsx)(v,{tooltip:"Select",icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMjYuMDksMjAuNjUsMTUuMzcsMTIuMzFhMS4xOSwxLjE5LDAsMCwwLTEuOTIuOTR2MTMuNWExLjE5LDEuMTksMCwwLDAsMi4xMi43NGwzLjMzLTQuMjFhMS4zLDEuMywwLDAsMSwxLS41aDUuNDRBMS4xOSwxLjE5LDAsMCwwLDI2LjA5LDIwLjY1Wm0tNi4xNy45NGEyLjUxLDIuNTEsMCwwLDAtMiwuOTVsLTMuMzIsNC4yMVYxMy4yNWwxMC43Miw4LjM0WiIgc3R5bGU9ImZpbGw6I2ZmZiIvPjwvc3ZnPg==",shortcut:"S",isActive:this.props.globalState.tool===p.SELECT,onClick:()=>{this.props.globalState.tool=p.SELECT}}),(0,L.jsx)(v,{tooltip:"Pan",icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMTkuMzksMTMuNTF2NS4wN2EuNjEuNjEsMCwwLDAsLjYxLjYxLjYxLjYxLDAsMCwwLC42MS0uNjFWMTQuNTFhLjM5LjM5LDAsMCwxLC40LS4zOS40My40MywwLDAsMSwuNDEuNDF2Ni4wOGEuNjEuNjEsMCwwLDAsMSwuNDJoMGwwLDAsLjA4LS4wN2MuMDgtLjA3LjE5LS4xNi4zMy0uMjZBMi42NiwyLjY2LDAsMCwxLDI0LDIwLjJhMS44NiwxLjg2LDAsMCwxLDEuMTMuMTEuNjguNjgsMCwwLDEsLjM2LjQzbC0xLjM1LDFMMjQsMjEuOGwtMS43NiwxLjc2YTEwLDEwLDAsMCwwLTEuODcsMi41OSwxLjM1LDEuMzUsMCwwLDEtMS4yLjc0SDE3YTEuMjEsMS4yMSwwLDAsMS0xLjA3LS41OCw5LDksMCwwLDEtMS4zOS00LjA4VjE2YS40MS40MSwwLDEsMSwuODEsMHYyLjgzYS42MS42MSwwLDAsMCwuNjEuNjEuNjEuNjEsMCwwLDAsLjYxLS42MVYxNC41M2EuNC40LDAsMCwxLC40LS40MS40MS40MSwwLDAsMSwuNDEuNDF2NGEuNjEuNjEsMCwxLDAsMS4yMSwwVjEzLjUxYS40MS40MSwwLDAsMSwuODEsMFpNMjAuNTIsMTNBMS42MywxLjYzLDAsMCwwLDE5LDExLjg5LDEuNiwxLjYsMCwwLDAsMTcuNDYsMTNhMS42MywxLjYzLDAsMCwwLS41LS4wNywxLjYxLDEuNjEsMCwwLDAtMS42MSwxLjQ3LDEuODQsMS44NCwwLDAsMC0uNDEtLjA1QTEuNjIsMS42MiwwLDAsMCwxMy4zMSwxNnY2LjI4YTEwLjIsMTAuMiwwLDAsMCwxLjU2LDQuN0EyLjQ0LDIuNDQsMCwwLDAsMTcsMjguMTFIMTkuMmEyLjU4LDIuNTgsMCwwLDAsMi4yOS0xLjQxLDguNzksOC43OSwwLDAsMSwxLjYzLTIuMjhsMS43NC0xLjczLDEuNTgtMS4xOWEuNjEuNjEsMCwwLDAsLjI1LS40OSwxLjksMS45LDAsMCwwLTEuMDYtMS43OEEzLDMsMCwwLDAsMjMuNzQsMTlhMy42NCwzLjY0LDAsMCwwLTEuMTEuNFYxNC41M0ExLjYzLDEuNjMsMCwwLDAsMjEsMTIuOTEsMS41MSwxLjUxLDAsMCwwLDIwLjUyLDEzWiIgc3R5bGU9ImZpbGw6I2ZmZiIvPjwvc3ZnPg==",shortcut:"P",isActive:this.props.globalState.tool===p.PAN,onClick:()=>{this.props.globalState.tool=p.PAN}}),(0,L.jsx)(v,{tooltip:"Zoom",shortcut:"Z",icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMjcuMSwyNi4yNGwtNC00YTUuODYsNS44NiwwLDEsMC0uODYuODZsNCw0LC4wNy4wNmEuNjIuNjIsMCwwLDAsLjc5LS4wNkEuNi42LDAsMCwwLDI3LjEsMjYuMjRabS04LjUxLTNhNC42NSw0LjY1LDAsMSwxLDQuNjQtNC42NEE0LjY1LDQuNjUsMCwwLDEsMTguNTksMjMuMjNaIiBzdHlsZT0iZmlsbDojZmZmIi8+PC9zdmc+",isActive:this.props.globalState.tool===p.ZOOM,onClick:()=>{this.props.globalState.tool=p.ZOOM}})]}),(0,L.jsxs)("div",{className:"divider",children:[(0,L.jsx)(v,{tooltip:"Copy Selected",shortcut:"Ctrl + C",icon:n,isActive:!1,copyDeleteDisabled:0===this.props.globalState.selectedControls.length,onClick:()=>{this.props.globalState.onCopyObservable.notifyObservers((e=>this.props.globalState.hostWindow.navigator.clipboard.writeText(e))),this.forceUpdate()}}),(0,L.jsx)(v,{tooltip:"Paste",shortcut:"Ctrl + V",icon:i,isActive:!1,pasteDisabled:e,onClick:async()=>{this.props.globalState.onPasteObservable.notifyObservers(await this.props.globalState.hostWindow.navigator.clipboard.readText())}}),(0,L.jsx)(v,{tooltip:"Delete",shortcut:"Delete",icon:s,isActive:!1,copyDeleteDisabled:0===this.props.globalState.selectedControls.length,onClick:()=>{this.props.globalState.selectedControls.forEach((e=>{e!=this.props.globalState.guiTexture.getChildren()[0]&&(this.props.globalState.guiTexture.removeControl(e),this.props.globalState.liveGuiTexture?.removeControl(e),e.dispose())})),this.props.globalState.setSelection([])}})]}),(0,L.jsxs)("div",{className:"divider",children:[(0,L.jsx)(v,{tooltip:"Fit to Window",shortcut:"F",icon:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMjUuMDUsMTMuNTRhMywzLDAsMCwxLDMsM3Y2Ljg2YTMsMywwLDAsMS0zLDNIMTVhMywzLDAsMCwxLTMtM1YxNi41N2EzLDMsMCwwLDEsMy0zWm0wLDEuMjFIMTVhMS44MiwxLjgyLDAsMCwwLTEuODIsMS44MnY2Ljg2QTEuODIsMS44MiwwLDAsMCwxNSwyNS4yNWgxMC4xYTEuODIsMS44MiwwLDAsMCwxLjgyLTEuODJWMTYuNTdBMS44MiwxLjgyLDAsMCwwLDI1LjA1LDE0Ljc1Wm0wLDYuMDZhLjYxLjYxLDAsMCwxLC42MS42djFBMS42MiwxLjYyLDAsMCwxLDI0LDI0SDIzYS42MS42MSwwLDEsMSwwLTEuMjFoMWEuNC40LDAsMCwwLC40LS40MXYtMUEuNi42LDAsMCwxLDI1LjA1LDIwLjgxWm0tMTAuMSwwYS42LjYsMCwwLDEsLjYxLjZ2MWEuNC40LDAsMCwwLC40LjQxaDFBLjYxLjYxLDAsMSwxLDE3LDI0SDE2YTEuNjIsMS42MiwwLDAsMS0xLjYyLTEuNjJ2LTFBLjYxLjYxLDAsMCwxLDE1LDIwLjgxWk0xNiwxNmgxYS42MS42MSwwLDAsMSwuNjEuNjEuNjEuNjEsMCwwLDEtLjUzLjZIMTZhLjQyLjQyLDAsMCwwLS40LjMzdjEuMDlhLjYxLjYxLDAsMCwxLTEuMjEuMDhWMTcuNThBMS42MywxLjYzLDAsMCwxLDE1Ljg0LDE2Wk0yNCwxNmExLjYyLDEuNjIsMCwwLDEsMS42MiwxLjYydjFhLjYxLjYxLDAsMCwxLS42MS42LjYuNiwwLDAsMS0uNjEtLjZ2LTFhLjQuNCwwLDAsMC0uNC0uNDFIMjNBLjYxLjYxLDAsMSwxLDIzLDE2WiIgc3R5bGU9ImZpbGw6I2ZmZiIvPjwvc3ZnPg==",isActive:!1,onClick:()=>{this.props.globalState.onFitControlsToWindowObservable.notifyObservers()}}),(0,L.jsx)(v,{tooltip:"Toggle Guides",shortcut:"G",icon:"data:image/svg+xml;base64,PHN2Zy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LDEsMTYsMjYuNjJaIiBzdHlsZT0iZmlsbDojZmZmIi8+PHBhdGggZD0iTTI0LjYxLDI3LjIyYS42LjYsMCwwLDEsMC0xLjJIMjVhMSwxLDAsMCwwLDEtMXYtLjQxYS42LjYsMCwwLDEsMS4yLDBWMjVhMi4yMSwyLjIxLDAsMCwxLTIuMiwyLjJaIiBzdHlsZT0iZmlsbDojZmZmIi8+PC9zdmc+",isActive:this.props.globalState.outlines,onClick:()=>this.props.globalState.outlines=!this.props.globalState.outlines})]}),(0,L.jsx)("div",{className:"divider padded",children:(0,L.jsx)(yo,{lockObject:this._lockObject,label:"Artboard:",target:this.props.globalState,propertyName:"backgroundColor",disableAlpha:!0})}),(0,L.jsxs)("div",{className:"divider padded",children:[(0,L.jsx)(qn,{label:"Responsive:",iconLabel:"Responsive GUIs will resize the UI layout and reflow controls to accommodate different device screen sizes",isSelected:()=>o.DataStorage.ReadBoolean("Responsive",!0),onSelect:e=>{this.props.globalState.onResponsiveChangeObservable.notifyObservers(e),o.DataStorage.WriteBoolean("Responsive",e),o.DataStorage.WriteBoolean("responsiveUI",e),this._sizeOption=gi.length,e&&(this._sizeOption=0,this.props.globalState.workbench.guiSize=hi[this._sizeOption],o.DataStorage.WriteNumber("width",this.props.globalState.workbench.guiSize.width),o.DataStorage.WriteNumber("height",this.props.globalState.workbench.guiSize.height)),this.forceUpdate()},large:!0}),r&&(0,L.jsx)(hs,{label:"",iconLabel:"Size",options:gi,target:this,propertyName:"_sizeOption",noDirectUpdate:!0,onSelect:e=>{if(this._sizeOption=e,this._sizeOption!==gi.length){const e=hi[this._sizeOption];this.props.globalState.workbench.guiSize=e,o.DataStorage.WriteNumber("width",this.props.globalState.workbench.guiSize.width),o.DataStorage.WriteNumber("height",this.props.globalState.workbench.guiSize.height)}this.forceUpdate()}}),!r&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(N,{lockObject:this._lockObject,label:"W",target:t,propertyName:"width",min:1,max:16384,onChange:e=>{this._stopUpdating||(this.props.globalState.workbench.guiSize={width:e,height:t.height},o.DataStorage.WriteNumber("width",this.props.globalState.workbench.guiSize.width))},onDragStart:()=>{this._stopUpdating=!0},onDragStop:e=>{this._stopUpdating=!1,this.props.globalState.workbench.guiSize={width:e,height:t.height},o.DataStorage.WriteNumber("width",this.props.globalState.workbench.guiSize.width)},arrows:!0,isInteger:!0}),(0,L.jsx)(N,{lockObject:this._lockObject,label:"H",target:t,propertyName:"height",min:1,max:16384,onChange:e=>{this._stopUpdating||(this.props.globalState.workbench.guiSize={width:t.width,height:e},o.DataStorage.WriteNumber("height",this.props.globalState.workbench.guiSize.width))},onDragStart:()=>{this._stopUpdating=!0},onDragStop:e=>{this._stopUpdating=!1,this.props.globalState.workbench.guiSize={width:t.width,height:e},o.DataStorage.WriteNumber("height",this.props.globalState.workbench.guiSize.width)},arrows:!0,isInteger:!0})]})]})]}),(0,L.jsx)("div",{className:"commands-right"})]})}}var ji;!function(e){e[e.Top=-1]="Top",e[e.Left=-1]="Left",e[e.Center=0]="Center",e[e.Right=1]="Right",e[e.Bottom=1]="Bottom"}(ji||(ji={}));const mi='url("data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNSAyNSIgIHdpZHRoPSIyNSIgaGVpZ2h0PSIyNSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjxwb2x5Z29uIHBvaW50cz0iNy41MSAxMS4wNCA2LjIyIDYuMjIgMTEuMDQgNy41MSA5LjYzIDguOTIgMTYuMDggMTUuMzcgMTcuNDggMTMuOTYgMTguNzcgMTguNzcgMTMuOTYgMTcuNDggMTUuMzcgMTYuMDggOC45MiA5LjYzIDcuNTEgMTEuMDQiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik02LjIyLDYuMj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dmc+","data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNSAyNSIgd2lkdGg9IjI1IiBoZWlnaHQ9IjI1Ij48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9PC9zdHlsZT48L2RlZnM+PHBhdGggZD0iTTE1Ljc0LDYuNjdoLS45M2E4LjE1LDguMTUsMCwwLDAtOC4xNCw4LjE0di45M2gtMmwyLjQ5LDQuMzEsMi41LTQuMzFoLTJ2LS45M2E3LjE0LDcuMTQsMCwwLDEsNy4xNC03LjE0aC45M3YybDQuMzEtMi41TDE1Ljc0LDQuNjhaIi8+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTUuNzQsNC42OGw0LjMxLDIuNDktNC4zMSwyLjV2LTJoLS45M2E3LjE0LDcuMTQsMCwwLDAtNy4xNCw3LjE0di45M2gybC0yLjUsNC4zMUw0LjY4LDE1Ljc0aDJ2LS45M2E4LjE1LDguMTUsMCwwLDEsOC4xNC04LjE0aC45M3YtMk0xNC43NCwzVjUuNjdhOS4xNiw5LjE2LDAsMCwwLTkuMDcsOS4wN0gzbC44NiwxLjUsMi41LDQuMzEuODYsMS41TDgsMjAuNTVsMi40OS00LjMxLjg3LTEuNUg4LjY3YTYuMTUsNi4xNSwwLDAsMSw2LjA3LTYuMDdWMTEuNGwxLjUtLjg3TDIwLjU1LDhsMS41LS44Ny0xLjUtLjg2LTQuMzEtMi41TDE0Ljc0LDNaIi8+PC9zdmc+"].map((e=>`url("${e}") 12 12, pointer`));function Si(e){const{scalePoint:t,clickable:n,onDrag:o,onRotate:s,onUp:i,overrideCursor:r,canRotate:a,allowClickOnPivot:l}=e,c={left:`${t.position.x}px`,top:`${t.position.y}px`,transform:"translate(-50%, -50%) rotate("+t.rotation+"deg)",pointerEvents:n?"auto":"none"};if(t.isPivot)return(0,L.jsx)("img",{className:"pivot-point",src:"data:image/svg+xml;base64,PHN2ZyBpZD0iaWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDMwIDMwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9PC9zdHlsZT48L2RlZnM+PGNpcmNsZSBjbGFzcz0iY2xzLTEiIGN4PSIxNSIgY3k9IjE1IiByPSI4Ljk4Ii8+PHBhdGggZD0iTTE1LDYuOUE4LjEsOC4xLDAsMSwwLDIzLjEsMTUsOC4xLDguMSwwLDAsMCwxNSw2LjlabTYuODYsNy40OUgxNS42M1Y4LjE0QTYuODksNi44OSwwLDAsMSwyMS44NiwxNC4zOVpNMTQuNDEsOC4xNHY2LjI1SDguMTRBNi44OSw2Ljg5LDAsMCwxLDE0LjQxLDguMTRaTTguMTQsMTUuNjFoNi4yN3Y2LjI1QTYuODksNi44OSwwLDAsMSw4LjE0LDE1LjYxWm03LjQ5LDYuMjVWMTUuNjFoNi4yM0E2Ljg5LDYuODksMCwwLDEsMTUuNjMsMjEuODZaIi8+PC9zdmc+",style:c,onDragStart:e=>e.preventDefault(),onPointerDown:e=>{l&&o(e,t)},onPointerUp:()=>{l&&i()}});const u=((t.defaultRotation+t.rotation)%360+360)%360;const A=Math.round(u/45)%8,d=r||xi[A],p={top:5+7*t.verticalPosition,left:5+7*t.horizontalPosition,cursor:Ni[A]},M={top:5-5*t.verticalPosition,left:5-5*t.horizontalPosition,cursor:d};return(0,L.jsxs)("div",{style:c,className:"scale-point-container",children:[a&&(0,L.jsx)("div",{className:"rotate-click-area",onPointerDown:e=>{s(e,t)},style:p}),(0,L.jsx)("div",{className:"scale-click-area",draggable:!0,onDragStart:e=>e.preventDefault(),onPointerDown:e=>{1&e.buttons&&o(e,t)},onPointerUp:i,style:M}),(0,L.jsx)("div",{className:"scale-point",draggable:!0,onDragStart:e=>e.preventDefault(),onPointerDown:e=>{1&e.buttons&&o(e,t)},onPointerUp:i,style:{cursor:d}})]})}const Di=e=>Math.round(100*e)/100,Ii=[[0,2],[0,6],[2,8],[6,8]],vi=[315,0,45,270,0,90,225,180,135];class Ei extends t.Component{constructor(e){super(e),this._onUp=e=>{e&&1&e.buttons||this.setState({scalePointDragging:-1,isRotating:!1})},this._onMove=()=>{const e=this.props.globalState.workbench._scene;if(-1!==this.state.scalePointDragging){const t=this.props.control,n=u.MousePointerToRTTSpace(t,e.pointerX,e.pointerY),o=u.RttToLocalNodeSpace(t,n.x,n.y,void 0,this._storedValues);this._dragLocalBounds(o,this.props.globalState.shiftKeyPressed),this._updateNodeFromLocalBounds(),this.props.globalState.onPropertyGridUpdateRequiredObservable.notifyObservers()}if(this.state.isRotating){const t=Math.atan2(e.pointerY-this._rotation.pivot.y,e.pointerX-this._rotation.pivot.x);for(const e of this.props.globalState.selectedControls)e.rotation+=t-this._rotation.initialAngleToPivot;this._rotation.initialAngleToPivot=t,this.props.globalState.onPropertyGridUpdateRequiredObservable.notifyObservers()}},this._beginDraggingScalePoint=e=>{this.setState({scalePointDragging:e});const t=this.props.control;this._localBounds=u.ComputeLocalBounds(t),this._storedValues=new l(t.leftInPixels,t.topInPixels,t.leftInPixels+t.widthInPixels,t.topInPixels+t.heightInPixels);for(const e of this.props.globalState.selectedControls)e.metadata.localBounds=u.ComputeLocalBounds(e),e.metadata.storedValues=new l(e.leftInPixels,e.topInPixels,e.leftInPixels+e.widthInPixels,e.topInPixels+e.heightInPixels)},this._beginRotate=()=>{const e=this.props.globalState.workbench._scene,t=this.props.control,n=new o.Vector2(t.transformCenterX,t.transformCenterY),s=u.NodeToRTTSpace(t,n.x,n.y,void 0),i=u.RttToCanvasSpace(s.x,s.y),r=new o.Vector2(i.x,i.y),a=Math.atan2(e.pointerY-r.y,e.pointerX-r.x);this._rotation={pivot:r,initialAngleToPivot:a},this.setState({isRotating:!0})};const t=[];for(let e=ji.Top;e<=ji.Bottom;e++)for(let n=ji.Left;n<=ji.Right;n++){const s=n===ji.Center&&e===ji.Center;t.push({position:new o.Vector2,horizontalPosition:n,verticalPosition:e,rotation:0,isPivot:s,defaultRotation:vi[t.length]})}this._localBounds=new l(0,0,0,0),this.state={canvasBounds:new l(0,0,0,0),scalePoints:t,scalePointDragging:-1,isRotating:!1},this._gizmoUpdateObserver=this.props.globalState.onGizmoUpdateRequireObservable.add((()=>{this.updateGizmo()})),this._pointerUpObserver=this.props.globalState.onPointerUpObservable.add((e=>this._onUp(e))),this._pointerMoveObserver=this.props.globalState.onPointerMoveObservable.add((()=>this._onMove()))}componentDidMount(){this.updateGizmo()}componentWillUnmount(){this.props.globalState.onGizmoUpdateRequireObservable.remove(this._gizmoUpdateObserver),this.props.globalState.onPointerUpObservable.remove(this._pointerUpObserver),this.props.globalState.onPointerMoveObservable.remove(this._pointerMoveObserver)}updateGizmo(){const e=this.props.control,t=new l(Number.MAX_VALUE,Number.MAX_VALUE,0,0),n=u.ComputeLocalBounds(e),s={left:0,right:0,top:0,bottom:0};let i=e.parent;for(;null!=i;)s.left+=i.paddingLeftInPixels,s.right+=i.paddingRightInPixels,s.top+=i.paddingTopInPixels,s.bottom+=i.paddingBottomInPixels,i=i.parent;const r=.5*(s.left-s.right);n.left+=r,n.right+=r;const a=.5*(s.top-s.bottom);n.top+=a,n.bottom+=a;const c=this.state.scalePoints.map((s=>{const i=new o.Vector2;switch(s.horizontalPosition){case ji.Left:i.x=n.left;break;case ji.Center:i.x=n.center.x;break;case ji.Right:i.x=n.right}switch(s.verticalPosition){case ji.Top:i.y=n.top;break;case ji.Center:i.y=n.center.y;break;case ji.Bottom:i.y=n.bottom}if(s.isPivot){const t=e.transformCenterX-.5,n=e.transformCenterY-.5;i.x=e.widthInPixels*t,i.y=e.heightInPixels*n}const r=u.NodeToRTTSpace(e,i.x,i.y,void 0),a=u.RttToCanvasSpace(r.x,r.y);return a.x<t.left&&(t.left=a.x),a.x>t.right&&(t.right=a.x),a.y<t.top&&(t.top=a.y),a.y>t.bottom&&(t.bottom=a.y),s.position.x=a.x,s.position.y=a.y,s.rotation=u.GetRotation(e)*(180/Math.PI),s}));this.setState({canvasBounds:t,scalePoints:[...c]})}_rotate(e,t,n,o,s){return{x:(e-n)*Math.cos(s)-(t-o)*Math.sin(s)+n,y:(e-n)*Math.sin(s)+(t-o)*Math.cos(s)+o}}_dragLocalBounds(e,t=!1){const n=this.state.scalePoints[this.state.scalePointDragging],o=this._localBounds.clone(),s=a.MathTools.Round(this._localBounds.width/this._localBounds.height);if(n.horizontalPosition===ji.Left&&(o.left=Math.min(this._localBounds.right-1,e.x)),n.verticalPosition===ji.Top&&(o.top=Math.min(this._localBounds.bottom-1,e.y)),n.horizontalPosition===ji.Right&&(o.right=Math.max(this._localBounds.left+1,e.x)),n.verticalPosition===ji.Bottom&&(o.bottom=Math.max(this._localBounds.top+1,e.y)),t){const e=o.width-this._localBounds.width,t=o.height-this._localBounds.height,i=n.horizontalPosition===ji.Center||n.verticalPosition===ji.Center,r=Math.abs(e)>Math.abs(t);if(i?r:!r){const t=e/s;n.verticalPosition===ji.Top?o.top=this._localBounds.top-t:n.verticalPosition===ji.Bottom?o.bottom=this._localBounds.bottom+t:(o.top=this._localBounds.top-t/2,o.bottom=this._localBounds.bottom+t/2)}else{const e=t*s;n.horizontalPosition===ji.Left?o.left=this._localBounds.left-e:n.horizontalPosition===ji.Right?o.right=this._localBounds.right+e:(o.left=this._localBounds.left-e/2,o.right=this._localBounds.right+e/2)}}const i=["left","top","right","bottom"];for(const e of this.props.globalState.selectedControls){const t=e.metadata.localBounds,n=t.clone(),s=2*(((this.props.control.rotation-e.rotation)%(r=2*Math.PI)+r)%r/Math.PI);i.forEach(((e,t)=>{const r=Math.round(t+s)%4,a=t<2==r<2?1:-1;n[i[r]]+=(o[e]-this._localBounds[e])*a})),n.left=Math.min(t.right-1,n.left),n.top=Math.min(t.bottom-1,n.top),n.right=Math.max(t.left+1,n.right),n.bottom=Math.max(t.top+1,n.bottom),e.metadata.localBounds=n}var r;this._localBounds=o}_updateNodeFromLocalBounds(){const e=this.state.scalePoints[this.state.scalePointDragging],t=e.horizontalPosition===ji.Left&&e.verticalPosition!==ji.Center,n=e.verticalPosition===ji.Top&&e.horizontalPosition!==ji.Center;for(const e of this.props.globalState.selectedControls){const o=e.metadata.localBounds.right-e.metadata.localBounds.left,s=e.metadata.localBounds.bottom-e.metadata.localBounds.top,i=u.GetRotation(e,!0),r=u.GetScale(e,!0),l=e.metadata.localBounds.center,c=l.clone();c.multiplyInPlace(r);const A=Math.cos(i),d=Math.sin(i),p=Math.cos(i+Math.PI),M=Math.sin(i+Math.PI),L=.5*(e.metadata.storedValues.width-o),C=.5*(e.metadata.storedValues.height-s);switch(e.horizontalAlignment){case a.Control.HORIZONTAL_ALIGNMENT_LEFT:c.x+=(t?L:-l.x)*A,c.y+=(t?-L:l.x)*d;break;case a.Control.HORIZONTAL_ALIGNMENT_RIGHT:c.x+=(t?-L:l.x)*A,c.y+=(t?L:-l.x)*d}switch(e.verticalAlignment){case a.Control.VERTICAL_ALIGNMENT_TOP:c.y+=(n?-C:l.y)*p,c.x+=(n?-C:l.y)*M;break;case a.Control.VERTICAL_ALIGNMENT_BOTTOM:c.y+=(n?C:-l.y)*p,c.x+=(n?C:-l.y)*M}const h=this._rotate(c.x,c.y,0,0,i),g=["left","top","width","height"];for(const t of g){let n=0;switch(t){case"left":n=Di(e.metadata.storedValues.left+h.x);break;case"top":n=Di(e.metadata.storedValues.top+h.y);break;case"width":n=Di(o);break;case"height":n=Di(s)}const i=e[`_${t}`].unit;e[`${t}InPixels`]=n,i===a.ValueAndUnit.UNITMODE_PERCENTAGE&&u.ConvertToPercentage(e,[t])}"Image"===e.typeName?e.autoScale=!1:"TextBlock"===e.typeName&&(e.resizeToFit=!1)}}render(){return(0,L.jsxs)("div",{className:"gizmo",children:[Ii.map(((e,t)=>{const n=this.state.scalePoints[e[0]],o=this.state.scalePoints[e[1]].position.subtract(n.position),s=Math.atan2(o.y,o.x),i=o.length();return(0,L.jsx)("div",{className:"bounding-box-line",style:{left:`${n.position.x+o.x/2}px`,top:`${n.position.y+o.y/2}px`,width:`${i}px`,transform:`translate(-50%, -50%) rotate(${s}rad)`}},t)})),this.state.scalePoints.map(((e,t)=>(0,L.jsx)(Si,{clickable:-1===this.state.scalePointDragging&&!e.isPivot&&!this.state.isRotating,scalePoint:e,onDrag:()=>this._beginDraggingScalePoint(t),onRotate:()=>this._beginRotate(),onUp:()=>this._onUp(),canRotate:!0},t)))]})}}function Ti(e,t,n,o,s,i,r){const a=Math.min(e,n),l=Math.min(t,o),c=a+(Math.max(e,n)-a)*s,u=l+(Math.max(t,o)-l)*i;r.x=c,r.y=u}const zi=[new o.Vector2,new o.Vector2,new o.Vector2];function Oi(e){const{control:n,globalState:s}=e,i=t.useRef(!1),r=t.useRef(!1),l=t.useRef(!1),c=t.useRef(),A=t.useRef(new o.Vector2),d=t.useRef(new o.Vector2),[p,M]=t.useState([{position:new o.Vector2,horizontalPosition:ji.Left,verticalPosition:ji.Top,rotation:0,isPivot:!1,defaultRotation:0,id:0},{position:new o.Vector2,horizontalPosition:ji.Center,verticalPosition:ji.Center,rotation:0,isPivot:!0,defaultRotation:0,id:1},{position:new o.Vector2,horizontalPosition:ji.Right,verticalPosition:ji.Bottom,rotation:0,isPivot:!1,defaultRotation:0,id:2}]);t.useEffect((()=>{const e=s.onGizmoUpdateRequireObservable.add((()=>{C()}));return()=>{s.onGizmoUpdateRequireObservable.remove(e)}}),[]);const C=()=>{const e=n,t=e._cachedParentMeasure.left+e._x1.getValue(e._host),o=e._cachedParentMeasure.top+e._y1.getValue(e._host),s=e._cachedParentMeasure.left+e._effectiveX2,i=e._cachedParentMeasure.top+e._effectiveY2,r=zi[0].set(t,o),a=zi[1].set(s,i),l=zi[2];Ti(t,o,s,i,e.transformCenterX,e.transformCenterY,l);const c=e._transformMatrix;c.transformCoordinates(r.x,r.y,r),c.transformCoordinates(a.x,a.y,a),c.transformCoordinates(l.x,l.y,l),d.current=l;const u=[r,l,a];M(p.map(((t,n)=>({...t,position:u[n],rotation:e.rotation}))))},h=(e,t,n)=>a.MathTools.Round(e.getValue(t)+n),g=(e,t)=>{const o=u.MousePointerToRTTSpace(n,e.x,e.y),s=u.RttToLocalNodeSpace(n,o.x,o.y),i=u.MousePointerToRTTSpace(n,A.current.x,A.current.y),r=u.RttToLocalNodeSpace(n,i.x,i.y),a=zi[0];s.subtractToRef(r,a);const l=zi[1];a.rotateToRef(n.rotation,l),t.x=l.x,t.y=l.y},w=()=>{const e=s.workbench._scene,t=new o.Vector2(e.pointerX,e.pointerY);r.current&&i.current?(e=>{const t=zi[0];g(e,t),n.x1=h(n._x1,n._host,t.x),n.y1=h(n._y1,n._host,t.y),n.x2=h(n._x2,n._host,t.x),n.y2=h(n._y2,n._host,t.y),s.onPropertyGridUpdateRequiredObservable.notifyObservers()})(t):r.current?(e=>{const t=zi[0];g(e,t);const o=c.current;0===o?(n.x1=h(n._x1,n._host,t.x),n.y1=h(n._y1,n._host,t.y)):2===o&&(n.x2=h(n._x2,n._host,t.x),n.y2=h(n._y2,n._host,t.y)),s.onPropertyGridUpdateRequiredObservable.notifyObservers()})(t):l.current&&(e=>{const t=e.subtract(d.current);t.normalize();const i=A.current.subtract(d.current);i.normalize();const r=o.Vector2.Dot(t,i),l=Math.acos(r),c=-Math.sign(t.x*i.y-t.y*i.x);isNaN(l)||(n.rotation+=c*l,n.rotation=a.MathTools.Round(n.rotation),s.onPropertyGridUpdateRequiredObservable.notifyObservers())})(t),A.current=t},j=()=>{r.current=!1,l.current=!1};t.useEffect((()=>{const t=e.globalState.onPointerMoveObservable.add(w),n=e.globalState.onPointerUpObservable.add(j);return()=>{e.globalState.onPointerMoveObservable.remove(t),e.globalState.onPointerUpObservable.remove(n)}}),[]);const m=(e,t)=>{if(e&&t){const e=s.workbench._scene;if(A.current=new o.Vector2(e.pointerX,e.pointerY),i.current=t.isPivot,!t.isPivot&&n.rotation){const e=n,t=e._x1.getValue(e._host),o=e._y1.getValue(e._host),i=e._x2.getValue(e._host),r=e._y2.getValue(e._host),l=zi[0].set(t,o),c=zi[1].set(i,r),u=zi[2];Ti(t,o,i,r,e.transformCenterX,e.transformCenterY,u);const A=a.Matrix2D.Identity(),d=a.Matrix2D.Identity();a.Matrix2D.TranslationToRef(-u.x,-u.y,d),A.multiplyToRef(d,A),a.Matrix2D.RotationToRef(n.rotation,d),A.multiplyToRef(d,A),a.Matrix2D.TranslationToRef(u.x,u.y,d),A.multiplyToRef(d,A),A.transformCoordinates(l.x,l.y,l),A.transformCoordinates(c.x,c.y,c),n.rotation=0,n.x1=a.MathTools.Round(l.x),n.y1=a.MathTools.Round(l.y),n.x2=a.MathTools.Round(c.x),n.y2=a.MathTools.Round(c.y),s.onPropertyGridUpdateRequiredObservable.notifyObservers()}r.current=!0,l.current=!1,c.current=t.id}},b=e=>{if(e){l.current=!0,r.current=!1;const e=s.workbench._scene;A.current=new o.Vector2(e.pointerX,e.pointerY)}};return(0,L.jsx)("div",{className:"gizmo",children:p.map(((e,t)=>(0,L.jsx)(Si,{scalePoint:e,allowClickOnPivot:!0,clickable:!0,onDrag:m,onRotate:b,onUp:j,canRotate:!0},t)))})}class ki extends t.Component{componentWillMount(){this.observer=this.props.globalState.onSelectionChangedObservable.add((()=>this.forceUpdate()))}componentWillUnmount(){this.props.globalState.onSelectionChangedObservable.remove(this.observer)}render(){const e=this.props.globalState.selectedControls;return(0,L.jsx)(L.Fragment,{children:e.map((e=>"Line"===e.getClassName()?(0,L.jsx)(Oi,{globalState:this.props.globalState,control:e},e.uniqueId):(0,L.jsx)(Ei,{globalState:this.props.globalState,control:e},e.uniqueId)))})}}class Yi extends t.Component{constructor(e){super(e),this.state={bounds:new l(0,0,0,0)},this.props.globalState.onArtBoardUpdateRequiredObservable.add((()=>this.update()))}update(){const e=this.props.globalState.workbench.visibleRegionContainer;if(!e)return;const t=u.ComputeLocalBounds(e),n=u.NodeToRTTSpace(e,t.left,t.top,void 0),o=u.RttToCanvasSpace(n.x,n.y),s=u.NodeToRTTSpace(e,t.right,t.bottom,void 0),i=u.RttToCanvasSpace(s.x,s.y);this.setState({bounds:new l(o.x,o.y,i.x,i.y)})}render(){const e={top:`${this.state.bounds.top}px`,left:`${this.state.bounds.left}px`,width:`${this.state.bounds.width}px`,height:`${this.state.bounds.height}px`};return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{className:"artboard-stroke",style:e}),(0,L.jsx)("div",{className:"artboard-background",style:e})]})}}var Pi=s(569),Bi={};Bi.styleTagTransform=ho(),Bi.setAttributes=po(),Bi.insert=uo().bind(null,"head"),Bi.domAPI=lo(),Bi.insertStyleElement=Lo(),ro()(Pi.A,Bi),Pi.A&&Pi.A.locals&&Pi.A.locals;var Ri=s(664),Ui={};Ui.styleTagTransform=ho(),Ui.setAttributes=po(),Ui.insert=uo().bind(null,"head"),Ui.domAPI=lo(),Ui.insertStyleElement=Lo(),ro()(Ri.A,Ui),Ri.A&&Ri.A.locals&&Ri.A.locals;class Gi extends t.Component{componentDidMount(){-1!==navigator.userAgent.indexOf("Mobile")&&((this.props.globalState.hostDocument||document).querySelector(".blocker").style.visibility="visible"),document.addEventListener("keydown",this.addToolControls),document.addEventListener("keyup",this.removePressToolControls)}componentWillUnmount(){document.removeEventListener("keydown",this.addToolControls),document.removeEventListener("keyup",this.removePressToolControls),this._onErrorMessageObserver&&this.props.globalState.onErrorMessageDialogRequiredObservable.remove(this._onErrorMessageObserver)}constructor(e){super(e),this._leftWidth=o.DataStorage.ReadNumber("LeftWidth",200),this._rightWidth=o.DataStorage.ReadNumber("RightWidth",300),this.addToolControls=e=>{if(!(e.target&&e.target instanceof HTMLInputElement&&"text"===e.target.type))switch(e.key){case"s":case"S":this.props.globalState.tool=p.SELECT;break;case"p":case"P":case" ":this.props.globalState.tool=p.PAN;break;case"z":case"Z":this.props.globalState.tool=p.ZOOM;break;case"g":case"G":this.props.globalState.outlines=!this.props.globalState.outlines;break;case"f":case"F":this.props.globalState.onFitControlsToWindowObservable.notifyObservers()}},this.removePressToolControls=e=>{" "===e.key&&this.props.globalState.restorePreviousTool()},this.handlePopUp=()=>{this.setState({showPreviewPopUp:!0}),this.props.globalState.hostWindow.addEventListener("beforeunload",this.handleClosingPopUp)},this.handleClosingPopUp=()=>{this._popUpWindow.close()},this.createPopupWindow=(e,t,n=500,o=500)=>{const s={width:n,height:o,top:(this.props.globalState.hostWindow.innerHeight-n)/2+window.screenY,left:(this.props.globalState.hostWindow.innerWidth-o)/2+window.screenX},i=Object.keys(s).map((e=>e+"="+s[e])).join(","),r=this.props.globalState.hostWindow.open("",e,i);if(!r)return null;const a=r.document;a.title=e,a.body.style.width="100%",a.body.style.height="100%",a.body.style.margin="0",a.body.style.padding="0";const l=a.createElement("div");return l.style.width="100%",l.style.height="100%",l.style.margin="0",l.style.padding="0",l.style.display="grid",l.style.gridTemplateRows="40px auto",l.id="gui-editor-workbench-root",l.className="right-panel",r.document.body.appendChild(l),this.copyStyles(this.props.globalState.hostWindow.document,a),this[t]=r,this._popUpWindow=r,r},this.copyStyles=(e,t)=>{const n=[];for(let s=0;s<e.styleSheets.length;s++){const i=e.styleSheets[s];try{if(i.href){const o=e.createElement("link");o.rel="stylesheet",o.href=i.href,t.head.appendChild(o),n.push(o)}else if(i.cssRules){const o=e.createElement("style");for(const t of i.cssRules)o.appendChild(e.createTextNode(t.cssText));t.head.appendChild(o),n.push(o)}}catch(e){o.Logger.Log(e)}}},this._rootRef=t.createRef(),this.state={showPreviewPopUp:!1,toolbarExpand:!0,message:""},this.props.globalState.onBackgroundColorChangeObservable.add((()=>this.forceUpdate())),this.props.globalState.onDropObservable.add((()=>{null!=this._draggedItem&&(this.props.globalState.draggedControl=this.onCreate(this._draggedItem)),this._draggedItem=null})),this._onErrorMessageObserver=this.props.globalState.onErrorMessageDialogRequiredObservable.add((e=>{this.setState({message:e})}))}showWaitScreen(){this.props.globalState.hostDocument.querySelector(".wait-screen")?.classList.remove("hidden")}hideWaitScreen(){this.props.globalState.hostDocument.querySelector(".wait-screen")?.classList.add("hidden")}onPointerDown(e){0===e.button&&(this._moveInProgress=!0,e.currentTarget.setPointerCapture(e.pointerId))}onPointerUp(e){0===e.button&&(this._moveInProgress=!1,e.currentTarget.releasePointerCapture(e.pointerId))}resizeColumns(e,t=!0){if(!this._moveInProgress)return;const n=e.currentTarget.ownerDocument.getElementById("gui-editor-workbench-root"),s=this.props.globalState.hostWindow.innerWidth;t?(this._leftWidth=Math.max(150,Math.min(s-this._rightWidth,e.clientX-this._rootRef.current.clientLeft)),o.DataStorage.WriteNumber("LeftWidth",this._leftWidth)):(this._rightWidth=Math.max(250,Math.min(s-this._leftWidth,this._rootRef.current.clientLeft+this._rootRef.current.clientWidth-e.clientX)),o.DataStorage.WriteNumber("RightWidth",this._rightWidth)),n.style.gridTemplateColumns=this.buildColumnLayout(),this.props.globalState.onWindowResizeObservable.notifyObservers()}buildColumnLayout(){return`${this._leftWidth}px 1fr ${this._rightWidth}px`}switchExpandedState(){this.setState({toolbarExpand:!this.state.toolbarExpand}),this.state.toolbarExpand?this._leftWidth=this._leftWidth+50:this._leftWidth=this._leftWidth-50}render(){const e=this.state.toolbarExpand?"left-panel":"left-panel expand";return(0,L.jsxs)(Qs,{globalState:this.props.globalState,children:[(0,L.jsx)("div",{id:"ge-header",children:(0,L.jsx)("div",{className:"command-bar",children:(0,L.jsx)(wi,{globalState:this.props.globalState})})}),(0,L.jsxs)("div",{id:"gui-editor-workbench-root",style:{gridTemplateColumns:this.buildColumnLayout()},onMouseDown:e=>{e.target.nodeName},ref:this._rootRef,onPointerUp:e=>this.onPointerUp(e),children:[(0,L.jsxs)("div",{className:e,children:[(0,L.jsx)(di,{globalState:this.props.globalState,noExpand:!0}),this.createToolbar(),(0,L.jsx)("div",{id:"leftGrab",onPointerDown:e=>this.onPointerDown(e),onPointerMove:e=>this.resizeColumns(e)})]}),(0,L.jsx)(di,{globalState:this.props.globalState,noExpand:!0}),this.createToolbar(),(0,L.jsxs)("div",{className:"diagram-container",onDrop:e=>{e.preventDefault(),this.props.globalState.onDropObservable.notifyObservers(),this.props.globalState.onParentingChangeObservable.notifyObservers(null)},onDragOver:e=>{e.preventDefault()},style:{backgroundColor:this.props.globalState.backgroundColor.toHexString()},children:[(0,L.jsx)(Yi,{globalState:this.props.globalState}),(0,L.jsx)(rs,{ref:"workbenchCanvas",globalState:this.props.globalState}),(0,L.jsx)(ki,{globalState:this.props.globalState})]}),(0,L.jsxs)("div",{className:"right-panel",children:[(0,L.jsx)("div",{id:"rightGrab",onPointerDown:e=>this.onPointerDown(e),onPointerMove:e=>this.resizeColumns(e,!1)}),(0,L.jsx)(Hs,{globalState:this.props.globalState})]}),(0,L.jsx)(Js,{globalState:this.props.globalState})]}),(0,L.jsx)($s,{message:this.state.message,isError:!0}),(0,L.jsx)("div",{className:"blocker",children:"GUI Editor runs only on desktop"}),(0,L.jsx)("div",{className:"wait-screen hidden",children:"Processing...please wait"})]})}onCreate(e){const t=Gs.CreateControlFromString(e),n=this.props.globalState.workbench.appendBlock(t);return this.props.globalState.setSelection([n]),this.props.globalState.onPointerUpObservable.notifyObservers(null),this.forceUpdate(),n}createBlackLine(){const e=this.state.toolbarExpand?(0,L.jsx)("img",{src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZGVmcz48c3R5bGU+LmJ7ZmlsbDojZmZmO308L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iYiIgZD0iTTcuNjYsMTEuMzlsMy40LTMuMzktMy40LTMuMzljLS4xMy0uMTMtLjEzLS4zNCwwLS40NywuMTMtLjEzLC4zNC0uMTMsLjQ3LDBsMy42MSwzLjZjLjE0LC4xNCwuMTQsLjM3LDAsLjUxbC0zLjYxLDMuNm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:(0,L.jsx)("div",{className:"arrow",onClick:()=>this.switchExpandedState(),children:e})})}createToolbarHelper(e){return e.map((e=>(0,L.jsx)("div",{className:"toolbar-label",onDragStart:()=>{this._draggedItem=e.className},onClick:()=>{this.onCreate(e.className)},title:e.className,children:e.icon&&(0,L.jsx)("div",{className:"toolbar-icon",draggable:!0,children:(0,L.jsx)("img",{src:e.icon,alt:e.className,width:"40px",height:"40px"})})},e.className)))}createToolbar(){return this.state.toolbarExpand?(0,L.jsx)(L.Fragment,{children:(0,L.jsxs)("div",{className:"toolbarGrab",children:[this.createBlackLine(),(0,L.jsx)("div",{className:"toolbar-content-sub1",children:this.createToolbarHelper(Ws)})]})}):(0,L.jsx)(L.Fragment,{children:(0,L.jsxs)("div",{className:"toolbarGrab expanded",children:[this.createBlackLine(),(0,L.jsxs)("div",{className:"toolbar-content-sub1",children:[this.createToolbarHelper(Ws.slice(0,Math.ceil(Ws.length/2))),this.createToolbarHelper(Ws.slice(Math.ceil(Ws.length/2)))]})]})})}}class Zi{static async Show(e,o){let s=e.hostElement;if(this._CurrentState&&s){if(e.currentSnippetToken)try{this._CurrentState.workbench.loadFromSnippet(e.currentSnippetToken)}catch(e){}return}if(!s){const e=as["gui-editor"];e&&e.close(),s=as.CreatePopup("BABYLON.JS GUI EDITOR","gui-editor",1200,800)}const i=new M;e.liveGuiTexture&&(i.liveGuiTexture=e.liveGuiTexture),i.hostElement=s,i.hostDocument=s.ownerDocument,i.customSave=e.customSave,i.customLoad=e.customLoad,i.hostWindow=s.ownerDocument.defaultView,i.registerEventListeners();const r=t.createElement(Gi,{globalState:i});if(n.render(r,s),!i.guiTexture&&(i.workbench.createGUICanvas(o),e.currentSnippetToken))try{await i.workbench.loadFromSnippet(e.currentSnippetToken)}catch(e){}e.customLoadObservable&&e.customLoadObservable.add((()=>{i.onResetRequiredObservable.notifyObservers(),i.onBuiltObservable.notifyObservers()})),this._CurrentState=i,as["gui-editor"]&&(window.onbeforeunload=()=>{const e=as["gui-editor"];e&&e.close()}),i.hostWindow.addEventListener("beforeunload",(()=>{i.onPopupClosedObservable.notifyObservers(),i.dispose()}))}}const _i=void 0!==s.g?s.g:"undefined"!=typeof window?window:void 0;void 0!==_i&&(_i.BABYLON=_i.BABYLON||{},_i.BABYLON.GuiEditor=Zi,_i.BABYLON.GUIEditor=Zi,_i.GUIEDITOR={GUIEditor:Zi});const Wi=e})(),i.default})()));
3
3
  //# sourceMappingURL=babylon.guiEditor.js.map