(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[8883,3016,1075],{90896:e=>{e.exports={wrapper:"wrapper-oPZWoMdB",focused:"focused-oPZWoMdB",readonly:"readonly-oPZWoMdB",disabled:"disabled-oPZWoMdB","size-small":"size-small-oPZWoMdB","size-medium":"size-medium-oPZWoMdB","size-large":"size-large-oPZWoMdB","font-size-small":"font-size-small-oPZWoMdB","font-size-medium":"font-size-medium-oPZWoMdB","font-size-large":"font-size-large-oPZWoMdB","border-none":"border-none-oPZWoMdB",shadow:"shadow-oPZWoMdB","border-thin":"border-thin-oPZWoMdB","border-thick":"border-thick-oPZWoMdB","intent-default":"intent-default-oPZWoMdB","intent-success":"intent-success-oPZWoMdB","intent-warning":"intent-warning-oPZWoMdB","intent-danger":"intent-danger-oPZWoMdB","intent-primary":"intent-primary-oPZWoMdB","corner-top-left":"corner-top-left-oPZWoMdB","corner-top-right":"corner-top-right-oPZWoMdB","corner-bottom-right":"corner-bottom-right-oPZWoMdB","corner-bottom-left":"corner-bottom-left-oPZWoMdB",childrenContainer:"childrenContainer-oPZWoMdB"}},58858:e=>{e.exports={defaultSelect:"defaultSelect-6eXd0Ihx"}},78781:e=>{e.exports={itemWrap:"itemWrap-YXml6gvK",item:"item-YXml6gvK",icon:"icon-YXml6gvK",selected:"selected-YXml6gvK",label:"label-YXml6gvK"}},5717:e=>{e.exports={lineEndSelect:"lineEndSelect-RMwVB5BV",right:"right-RMwVB5BV"}},73084:e=>{e.exports={lineStyleSelect:"lineStyleSelect-2BDVWQbf",multipleStyles:"multipleStyles-2BDVWQbf"}},218:e=>{e.exports={lineWidthSelect:"lineWidthSelect-TYbMx0kd",bar:"bar-TYbMx0kd",isActive:"isActive-TYbMx0kd",item:"item-TYbMx0kd"}},56994:e=>{e.exports={container:"container-Wq7zjnRZ",active:"active-Wq7zjnRZ",disabled:"disabled-Wq7zjnRZ",icon:"icon-Wq7zjnRZ"}},21818:e=>{e.exports={wrap:"wrap-CLB8ZlH6",disabled:"disabled-CLB8ZlH6"}},52465:e=>{e.exports={dropdown:"dropdown-KoV1659s",dropdownMenu:"dropdownMenu-KoV1659s",firstColorPicker:"firstColorPicker-KoV1659s"}},31650:e=>{e.exports={row:"row-kB7roDMw",wrap:"wrap-kB7roDMw",breakpointNormal:"breakpointNormal-kB7roDMw",breakpointMedium:"breakpointMedium-kB7roDMw",breakpointSmall:"breakpointSmall-kB7roDMw"}},51285:e=>{e.exports={coordinates:"coordinates-V0LzFOLU",input:"input-V0LzFOLU"}},9688:e=>{e.exports={wrapper:"wrapper-IjSbS0mB",checkbox:"checkbox-IjSbS0mB",colorSelect:"colorSelect-IjSbS0mB"}},29148:e=>{e.exports={withoutPadding:"withoutPadding-VwIbEpbX"}},67474:e=>{e.exports={input:"input-SCyh9tQM",control:"control-SCyh9tQM",item:"item-SCyh9tQM",cell:"cell-SCyh9tQM",fragmentCell:"fragmentCell-SCyh9tQM",withTitle:"withTitle-SCyh9tQM",title:"title-SCyh9tQM"}},55368:e=>{e.exports={line:"line-er8glV8W",control:"control-er8glV8W",valueInput:"valueInput-er8glV8W",valueUnit:"valueUnit-er8glV8W",input:"input-er8glV8W"}},80346:e=>{e.exports={unit:"unit-yU23iRoD",input:"input-yU23iRoD",normal:"normal-yU23iRoD",big:"big-yU23iRoD",dropdown:"dropdown-yU23iRoD",dropdownMenu:"dropdownMenu-yU23iRoD"}},89477:e=>{e.exports={dropdown:"dropdown-TevhCNe0",normal:"normal-TevhCNe0",big:"big-TevhCNe0",dropdownMenu:"dropdownMenu-TevhCNe0"}},94245:e=>{
e.exports={range:"range-DTExo36Q",valueInput:"valueInput-DTExo36Q",rangeSlider:"rangeSlider-DTExo36Q",rangeSlider_mixed:"rangeSlider_mixed-DTExo36Q",input:"input-DTExo36Q"}},45449:e=>{e.exports={colorPicker:"colorPicker-zLqwzQsC",fontStyleButton:"fontStyleButton-zLqwzQsC",dropdown:"dropdown-zLqwzQsC",dropdownMenu:"dropdownMenu-zLqwzQsC"}},35048:e=>{e.exports={twoColors:"twoColors-0m0hhV3v",colorPicker:"colorPicker-0m0hhV3v"}},33126:e=>{e.exports={dropdown:"dropdown-8h1M1df3",menu:"menu-8h1M1df3"}},17683:e=>{e.exports={dialog:"dialog-Nh5Cqdeo",rounded:"rounded-Nh5Cqdeo",shadowed:"shadowed-Nh5Cqdeo",fullscreen:"fullscreen-Nh5Cqdeo",darker:"darker-Nh5Cqdeo",backdrop:"backdrop-Nh5Cqdeo"}},12114:e=>{e.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","tooltip-offset":"20px",dialog:"dialog-hxnnZcZ6",dragging:"dragging-hxnnZcZ6",dialogAnimatedAppearance:"dialogAnimatedAppearance-hxnnZcZ6",dialogAnimation:"dialogAnimation-hxnnZcZ6",dialogTooltip:"dialogTooltip-hxnnZcZ6"}},66998:e=>{e.exports={wrap:"wrap-3HaHQVJm",positionBottom:"positionBottom-3HaHQVJm",backdrop:"backdrop-3HaHQVJm",drawer:"drawer-3HaHQVJm",positionLeft:"positionLeft-3HaHQVJm"}},99339:e=>{e.exports={wrapper:"wrapper-3LlhL6R6",emoji:"emoji-3LlhL6R6"}},83341:e=>{e.exports={list:"list-mYbRQuGD"}},70358:e=>{e.exports={wrapper:"wrapper-KYBibz0a"}},39897:e=>{e.exports={wrapper:"wrapper-EVXZqxr4",emojiItem:"emojiItem-EVXZqxr4"}},40681:e=>{e.exports={wrapper:"wrapper-wFgLbqCx",isActive:"isActive-wFgLbqCx"}},88436:e=>{e.exports={wrapper:"wrapper-z9lPbT43"}},16859:e=>{e.exports={wrapper:"wrapper-s7880WH7"}},95076:e=>{e.exports={desktopSize:"desktopSize-iVjStStf",drawer:"drawer-iVjStStf",menuBox:"menuBox-iVjStStf"}},16059:e=>{e.exports={menuWrap:"menuWrap-8MKeZifP",isMeasuring:"isMeasuring-8MKeZifP",scrollWrap:"scrollWrap-8MKeZifP",momentumBased:"momentumBased-8MKeZifP",menuBox:"menuBox-8MKeZifP",isHidden:"isHidden-8MKeZifP"}},65830:e=>{e.exports={range:"range-w7rMmNtQ",disabled:"disabled-w7rMmNtQ",rangeSlider:"rangeSlider-w7rMmNtQ",rangeSliderMiddleWrap:"rangeSliderMiddleWrap-w7rMmNtQ",rangeSliderMiddle:"rangeSliderMiddle-w7rMmNtQ",dragged:"dragged-w7rMmNtQ",pointer:"pointer-w7rMmNtQ",rangePointerWrap:"rangePointerWrap-w7rMmNtQ"}},73432:e=>{e.exports={button:"button-SD4Dbbwd",disabled:"disabled-SD4Dbbwd",active:"active-SD4Dbbwd",hidden:"hidden-SD4Dbbwd"}},9745:(e,t,n)=>{"use strict";n.d(t,{Icon:()=>i});var o=n(59496);const i=o.forwardRef((e,t)=>{const{icon:n="",...i}=e;return o.createElement("span",{...i,ref:t,dangerouslySetInnerHTML:{__html:n}})})},40233:(e,t,n)=>{"use strict";n.d(t,{VerticalAttachEdge:()=>o,HorizontalAttachEdge:()=>i,VerticalDropDirection:()=>r,HorizontalDropDirection:()=>a,getPopupPositioner:()=>c});var o,i,r,a,s=n(88537);!function(e){e[e.Top=0]="Top",e[e.Bottom=1]="Bottom"}(o||(o={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(i||(i={})),function(e){e[e.FromTopToBottom=0]="FromTopToBottom",e[e.FromBottomToTop=1]="FromBottomToTop"}(r||(r={})),function(e){e[e.FromLeftToRight=0]="FromLeftToRight",
e[e.FromRightToLeft=1]="FromRightToLeft"}(a||(a={}));const l={verticalAttachEdge:o.Bottom,horizontalAttachEdge:i.Left,verticalDropDirection:r.FromTopToBottom,horizontalDropDirection:a.FromLeftToRight,verticalMargin:0,horizontalMargin:0,matchButtonAndListboxWidths:!1};function c(e,t){return(n,c)=>{const d=(0,s.ensureNotNull)(e).getBoundingClientRect(),{verticalAttachEdge:u=l.verticalAttachEdge,verticalDropDirection:p=l.verticalDropDirection,horizontalAttachEdge:h=l.horizontalAttachEdge,horizontalDropDirection:m=l.horizontalDropDirection,horizontalMargin:f=l.horizontalMargin,verticalMargin:g=l.verticalMargin,matchButtonAndListboxWidths:v=l.matchButtonAndListboxWidths}=t,y=u===o.Top?-1*g:g,b=h===i.Right?d.right:d.left,w=u===o.Top?d.top:d.bottom,_={x:b-(m===a.FromRightToLeft?n:0)+f,y:w-(p===r.FromBottomToTop?c:0)+y};return v&&(_.overrideWidth=d.width),_}}},32449:(e,t,n)=>{"use strict";function o(e,t,n){const o=new Map,i=void 0!==t?t[0]:e=>e,r=void 0!==t?void 0!==t[1]?t[1]:t[0]:e=>e,a={value:()=>i(e.value()),setValue:t=>{e.setValue(r(t))},subscribe:(t,n)=>{const i=e=>{n(a)};o.set(n,i),e.subscribe(t,i)},unsubscribe:(t,n)=>{const i=o.get(n);i&&(e.unsubscribe(t,i),o.delete(n))},unsubscribeAll:t=>{e.unsubscribeAll(t),o.clear()},destroy:()=>{null==n||n()}};return a}function i(e){const t=o(e);return t.destroy=()=>{e.destroy()},t}function r(e,t,n,i,r,a){const s=o(t,i,a),l=void 0!==i?void 0!==i[1]?i[1]:i[0]:e=>e;return s.setValue=null!=r?r:o=>e.setProperty(t,l(o),n),s}n.d(t,{makeProxyDefinitionProperty:()=>o,makeProxyDefinitionPropertyDestroyable:()=>i,convertToDefinitionProperty:()=>r})},50366:(e,t,n)=>{"use strict";function o(e,t){return{propType:"checkable",properties:e,...t}}function i(e,t,n){return{propType:"checkableSet",properties:e,childrenDefinitions:n,...t}}function r(e,t){return{propType:"color",properties:e,noAlpha:!1,...t}}n.d(t,{convertFromReadonlyWVToDefinitionProperty:()=>O,convertFromWVToDefinitionProperty:()=>H,convertToDefinitionProperty:()=>I.convertToDefinitionProperty,createCheckablePropertyDefinition:()=>o,createCheckableSetPropertyDefinition:()=>i,createColorPropertyDefinition:()=>r,createCoordinatesPropertyDefinition:()=>P,createEmojiPropertyDefinition:()=>k,createLeveledLinePropertyDefinition:()=>m,createLinePropertyDefinition:()=>u,createNumberPropertyDefinition:()=>f,createOptionsPropertyDefinition:()=>g,createPropertyDefinitionsGeneralGroup:()=>L,createPropertyDefinitionsLeveledLinesGroup:()=>A,createRangePropertyDefinition:()=>T,createSessionPropertyDefinition:()=>z,createStudyInputsPropertyDefinition:()=>B,createSymbolPropertyDefinition:()=>V,createTextPropertyDefinition:()=>D,createTransparencyPropertyDefinition:()=>N,createTwoColorsPropertyDefinition:()=>M,createTwoOptionsPropertyDefinition:()=>v,destroyDefinitions:()=>J,getColorDefinitionProperty:()=>X,getLockPriceScaleDefinitionProperty:()=>Z,getPriceScaleSelectionStrategyDefinitionProperty:()=>j,getScaleRatioDefinitionProperty:()=>U,getSymbolDefinitionProperty:()=>G,isPropertyDefinitionsGroup:()=>$});var a=n(49612),s=n(43891)
;const l=[s.LINESTYLE_SOLID,s.LINESTYLE_DOTTED,s.LINESTYLE_DASHED],c=[1,2,3,4],d=[a.LineEnd.Normal,a.LineEnd.Arrow];function u(e,t){const n={propType:"line",properties:e,...t};return void 0!==n.properties.style&&(n.styleValues=l),void 0!==n.properties.width&&(n.widthValues=c),void 0===n.properties.leftEnd&&void 0===n.properties.rightEnd||void 0!==n.endsValues||(n.endsValues=d),void 0!==n.properties.value&&void 0===n.valueType&&(n.valueType=1),n}const p=[s.LINESTYLE_SOLID,s.LINESTYLE_DOTTED,s.LINESTYLE_DASHED],h=[1,2,3,4];function m(e,t){const n={propType:"leveledLine",properties:e,...t};return void 0!==n.properties.style&&(n.styleValues=p),void 0!==n.properties.width&&(n.widthValues=h),n}function f(e,t){return{propType:"number",properties:e,type:1,...t}}function g(e,t){return{propType:"options",properties:e,...t}}function v(e,t){return{propType:"twoOptions",properties:e,...t}}var y=n(28353);const b=[{id:"bottom",value:"bottom",title:(0,y.t)("Top")},{id:"middle",value:"middle",title:(0,y.t)("Middle")},{id:"top",value:"top",title:(0,y.t)("Bottom")}],w=[{id:"left",value:"left",title:(0,y.t)("Left")},{id:"center",value:"center",title:(0,y.t)("Center")},{id:"right",value:"right",title:(0,y.t)("Right")}],_=[{id:"horizontal",value:"horizontal",title:(0,y.t)("Horizontal")},{id:"vertical",value:"vertical",title:(0,y.t)("Vertical")}],E=[10,11,12,14,16,20,24,28,32,40].map(e=>({title:String(e),value:e})),C=[1,2,3,4],S=(0,y.t)("Text alignment"),x=(0,y.t)("Text orientation");function D(e,t){const n={propType:"text",properties:e,...t,isEditable:t.isEditable||!1};return void 0!==n.properties.size&&void 0===n.sizeItems&&(n.sizeItems=E),void 0!==n.properties.alignmentVertical&&void 0===n.alignmentVerticalItems&&(n.alignmentVerticalItems=b),void 0!==n.properties.alignmentHorizontal&&void 0===n.alignmentHorizontalItems&&(n.alignmentHorizontalItems=w),(n.alignmentVerticalItems||n.alignmentHorizontalItems)&&void 0===n.alignmentTitle&&(n.alignmentTitle=S),void 0!==n.properties.orientation&&(void 0===n.orientationItems&&(n.orientationItems=_),void 0===n.orientationTitle&&(n.orientationTitle=x)),void 0!==n.properties.borderWidth&&void 0===n.borderWidthItems&&(n.borderWidthItems=C),n}function M(e,t){return{propType:"twoColors",properties:e,noAlpha1:!1,noAlpha2:!1,...t}}function P(e,t){return{propType:"coordinates",properties:e,...t}}function T(e,t){return{propType:"range",properties:e,...t}}function N(e,t){return{propType:"transparency",properties:e,...t}}function V(e,t){return{propType:"symbol",properties:e,...t}}function z(e,t){return{propType:"session",properties:e,...t}}function k(e,t){return{propType:"emoji",properties:e,...t}}function B(e,t){return{propType:"studyInputs",properties:e,...t}}var R=n(52714),W=n.n(R);function L(e,t,n,o){return{id:t,title:n,visible:o,groupType:"general",definitions:new(W())(e)}}function A(e,t,n){return{id:t,title:n,groupType:"leveledLines",definitions:new(W())(e)}}var I=n(32449);function F(e,t){const n=new Map,o=void 0!==t?t[0]:e=>e,i=void 0!==t?void 0!==t[1]?t[1]:t[0]:e=>e,r={value:()=>o(e.value()),
setValue:t=>{var n;null===(n=e.setValue)||void 0===n||n.call(e,i(t))},subscribe:(t,o)=>{const i=()=>{o(r)};let a=n.get(t);void 0===a?(a=new Map,a.set(o,i),n.set(t,a)):a.set(o,i),e.subscribe(i)},unsubscribe:(t,o)=>{const i=n.get(t);if(void 0!==i){const t=i.get(o);void 0!==t&&(e.unsubscribe(t),i.delete(o))}},unsubscribeAll:t=>{const o=n.get(t);void 0!==o&&(o.forEach((t,n)=>{e.unsubscribe(t)}),o.clear())}};return r}function H(e,t,n,o){const i=F(t,o),r=void 0!==o?void 0!==o[1]?o[1]:o[0]:e=>e;return i.setValue=o=>e.setWatchedValue(t,r(o),n),i}function O(e,t){return function(e,t,n){const o=new Map;return F({subscribe:(n,i)=>{const r=e=>n(t(e));o.set(n,r),e.subscribe(r,i)},unsubscribe:t=>{if(t){const n=o.get(t);n&&(e.unsubscribe(n),o.delete(t))}else o.clear(),e.unsubscribe()},value:()=>t(e.value())},n)}(e,e=>e,t)}function j(e,t){const n=(0,I.makeProxyDefinitionProperty)(t);return n.setValue=t=>e.setPriceScaleSelectionStrategy(t),n}function Z(e,t,n,o){const i=(0,I.makeProxyDefinitionProperty)(t);return i.setValue=t=>{const i={lockScale:t};e.setPriceScaleMode(i,n,o)},i}function U(e,t,n,o){const i=(0,I.makeProxyDefinitionProperty)(t,o);return i.setValue=o=>{e.setScaleRatioProperty(t,o,n)},i}var Y=n(24377),q=n(68906),Q=n(81465);function K(e,t){if((0,q.isHexColor)(e)){const n=(0,Y.parseRgb)(e);return(0,Y.rgbaToString)((0,Y.rgba)(n,(100-t)/100))}return e}function X(e,t,n,o,i){let r;if(null!==n){const e=(0,Q.combineProperty)(K,t,n);r=(0,I.makeProxyDefinitionPropertyDestroyable)(e)}else r=(0,I.makeProxyDefinitionProperty)(t,[()=>K(t.value(),0),e=>e]);return r.setValue=n=>{i&&e.beginUndoMacro(o),e.setProperty(t,n,o),i&&e.endUndoMacro()},r}function G(e,t,n,o,i,r){const a=[(s=n,l=t,e=>{const t=s(l);if(e===l.value()&&null!==t){const e=t.ticker||t.full_name;if(e)return e}return e}),e=>e];var s,l;const c=(0,I.convertToDefinitionProperty)(e,t,i,a);r&&(c.setValue=r);const d=new Map;c.subscribe=(e,n)=>{const o=e=>{n(c)};d.set(n,o),t.subscribe(e,o)},c.unsubscribe=(e,n)=>{const o=d.get(n);o&&(t.unsubscribe(e,o),d.delete(n))};const u={};return o.subscribe(u,()=>{d.forEach((e,t)=>{t(c)})}),c.destroy=()=>{o.unsubscribeAll(u),d.clear()},c}function $(e){return e.hasOwnProperty("groupType")}function J(e){e.forEach(e=>{if(e.hasOwnProperty("propType")){Object.keys(e.properties).forEach(t=>{const n=e.properties[t];void 0!==n&&void 0!==n.destroy&&n.destroy()})}else J(e.definitions.value())})}},99054:(e,t,n)=>{"use strict";n.d(t,{setFixedBodyState:()=>c});const o=(()=>{let e;return()=>{var t;if(void 0===e){const n=document.createElement("div"),o=n.style;o.visibility="hidden",o.width="100px",o.msOverflowStyle="scrollbar",document.body.appendChild(n);const i=n.offsetWidth;n.style.overflow="scroll";const r=document.createElement("div");r.style.width="100%",n.appendChild(r);const a=r.offsetWidth;null===(t=n.parentNode)||void 0===t||t.removeChild(n),e=i-a}return e}})();function i(e,t,n){null!==e&&e.style.setProperty(t,n)}function r(e,t){return getComputedStyle(e,null).getPropertyValue(t)}function a(e,t){return parseInt(r(e,t))}let s=0,l=!1;function c(e){
const{body:t}=document,n=t.querySelector(".widgetbar-wrap");if(e&&1==++s){const e=r(t,"overflow"),s=a(t,"padding-right");"hidden"!==e.toLowerCase()&&t.scrollHeight>t.offsetHeight&&(i(n,"right",o()+"px"),t.style.paddingRight=s+o()+"px",l=!0),t.classList.add("i-no-scroll")}else if(!e&&s>0&&0==--s&&(t.classList.remove("i-no-scroll"),l)){i(n,"right","0px");let e=0;0,t.scrollHeight<=t.clientHeight&&(e-=o()),t.style.paddingRight=(e<0?0:e)+"px",l=!1}}},66045:(e,t,n)=>{"use strict";n.d(t,{FontSizeSelect:()=>c});var o=n(59496),i=n(97754),r=n.n(i),a=n(45685),s=n(90186),l=n(58858);function c(e){const{id:t,fontSize:n,fontSizes:i=[],className:c,disabled:d,fontSizeChange:u}=e;return o.createElement(a.Select,{id:t,disabled:d,className:r()(c,l.defaultSelect),menuClassName:l.defaultSelect,items:(p=i,p.map(e=>({value:e.value,content:e.title}))),value:n,onChange:u,...(0,s.filterDataProps)(e)});var p}},94697:(e,t,n)=>{"use strict";n.d(t,{IconDropdown:()=>c,DisplayItem:()=>d,DropItem:()=>u});var o=n(59496),i=n(97754),r=n.n(i),a=n(45685),s=n(9745),l=n(78781);function c(e){const{menuItemClassName:t,...n}=e;return o.createElement(a.Select,{...n,menuItemClassName:r()(t,l.itemWrap)})}function d(e){return o.createElement("div",{className:r()(l.item,l.selected,e.className)},o.createElement(s.Icon,{className:l.icon,icon:e.icon}))}function u(e){return o.createElement("div",{className:l.item},o.createElement(s.Icon,{className:r()(l.icon,e.iconClassName),icon:e.icon}),o.createElement("div",{className:l.label},e.label))}},53598:(e,t,n)=>{"use strict";n.d(t,{LineStyleSelect:()=>f});var o=n(28353),i=n(59496),r=n(97754),a=n.n(r),s=n(43891),l=n(94697),c=n(20618),d=n(19726),u=n(56326),p=n(50303),h=n(73084);const m=[{type:s.LINESTYLE_SOLID,icon:c,label:(0,o.t)("Line")},{type:s.LINESTYLE_DASHED,icon:d,label:(0,o.t)("Dashed line")},{type:s.LINESTYLE_DOTTED,icon:u,label:(0,o.t)("Dotted line")}];class f extends i.PureComponent{render(){const{id:e,lineStyle:t,className:n,lineStyleChange:o,disabled:r,additionalItems:s,allowedLineStyles:c}=this.props;let d=function(e){let t=[...m];return void 0!==e&&(t=t.filter(t=>e.includes(t.type))),t.map(e=>({value:e.type,selectedContent:i.createElement(l.DisplayItem,{icon:e.icon}),content:i.createElement(l.DropItem,{icon:e.icon,label:e.label})}))}(c);return s&&(d=[{readonly:!0,content:s},...d]),i.createElement(l.IconDropdown,{id:e,disabled:r,className:a()(h.lineStyleSelect,n),hideArrowButton:!0,items:d,value:t,onChange:o,"data-name":"line-style-select",addPlaceholderToItems:!1,placeholder:i.createElement(l.DisplayItem,{icon:p,className:h.multipleStyles})})}}},50890:(e,t,n)=>{"use strict";n.d(t,{LineWidthSelect:()=>d});var o=n(59496),i=n(97754),r=n(45685),a=n(218);const s=[1,2,3,4];function l(e){const{id:t,value:n,items:l=s,disabled:c,onChange:d}=e;return o.createElement(r.Select,{id:t,disabled:c,hideArrowButton:!0,className:a.lineWidthSelect,items:(u=l,u.map(e=>({value:e,selectedContent:p(e,!0),content:p(e)}))),value:n,onChange:d,"data-name":"line-width-select"});var u;function p(e,t){const r={borderTopWidth:e}
;return o.createElement("div",{className:a.item},o.createElement("div",{className:i(a.bar,{[a.isActive]:e===n&&!t}),style:r}," "))}}var c=n(45560);function d(e){const{property:t}=e,[n,i]=(0,c.useDefinitionProperty)({property:t});return o.createElement(l,{...e,value:n,onChange:i})}},66849:(e,t,n)=>{"use strict";n.d(t,{ControlCustomWidthContext:()=>i,ControlCustomHeightContext:()=>r});var o=n(59496);const i=o.createContext({}),r=o.createContext({})},90545:(e,t,n)=>{"use strict";n.d(t,{Section:()=>tn});var o=n(59496),i=n(50366),r=n(48897),a=n(45560),s=n(31356);function l(e){const{definition:{id:t,properties:{checked:n,disabled:i,visible:r},title:l},offset:c}=e,[d]=(0,a.useDefinitionProperty)({property:i,defaultValue:!1}),[u]=(0,a.useDefinitionProperty)({property:r,defaultValue:!0});return u?o.createElement(s.CommonSection,{id:t,offset:c,checked:n,title:l,disabled:e.disabled||d}):null}var c=n(97754),d=n.n(c),u=n(22064),p=n(53598);function h(e){const{property:t}=e,[n,i]=(0,a.useDefinitionProperty)({property:t});return o.createElement(p.LineStyleSelect,{...e,lineStyle:n,lineStyleChange:i})}var m=n(50890),f=n(60521),g=n(88537);function v(e){return"mixed"===e}function y(e,t,n){const[i,r]=(0,o.useState)(e),a=(0,o.useRef)(i);return(0,o.useEffect)(()=>{r(e)},[e,n]),[i,function(e){a.current=e,r(e)},function(){t(a.current)},function(){a.current=e,r(e)}]}var b=n(68335),w=n(92399),_=n(64514),E=n(95505),C=n(49483);function S(e){const{property:t,...n}=e,[i,r]=(0,o.useState)(performance.now()),[s,l]=(0,a.useDefinitionProperty)({property:t,handler:()=>r(performance.now())}),c=y(s,l,i);return o.createElement(x,{...n,valueHash:i,sharedBuffer:c})}function x(e){const{sharedBuffer:t,min:n,max:i,step:r,...a}=e,[s,l,c,d]=t,u=(0,o.useRef)(null),p=(0,o.useRef)(null),h={flushed:!1};return o.createElement(M,{...a,ref:p,onValueChange:function(e,t){l(e),"step"!==t||h.flushed||(c(),h.flushed=!0)},onKeyDown:function(e){if(e.defaultPrevented||h.flushed)return;switch((0,b.hashFromEvent)(e.nativeEvent)){case 27:d(),h.flushed=!0;break;case 13:e.preventDefault();const t=(0,g.ensureNotNull)(p.current).getClampedValue();null!==t&&(l(t),c(),h.flushed=!0)}},onBlur:function(e){const t=(0,g.ensureNotNull)(u.current);if(!t.contains(document.activeElement)&&!t.contains(e.relatedTarget)){const e=(0,g.ensureNotNull)(p.current).getClampedValue();null===e||h.flushed||(l(e),c(),h.flushed=!0)}},value:s,roundByStep:!1,containerReference:function(e){u.current=e},inputMode:C.CheckMobile.iOS()?void 0:"numeric",min:n,max:i,step:r,stretch:!1})}const D={mode:"float",min:-Number.MAX_VALUE,max:Number.MAX_VALUE,step:1,precision:0,inheritPrecisionFromStep:!0};class M extends o.PureComponent{constructor(e){super(e),this._selection=null,this._restoreSelection=!1,this._input=null,this._handleSelectionChange=()=>{this._restoreSelection||document.activeElement!==(0,g.ensureNotNull)(this._input)||this._saveSelection((0,g.ensureNotNull)(this._input))},this._handleInputReference=e=>{this._input=e,this.props.inputReference&&this.props.inputReference(e)},this._onFocus=e=>{
this._saveSelection((0,g.ensureNotNull)(this._input)),this.setState({focused:!0}),this.props.onFocus&&this.props.onFocus(e)},this._onBlur=e=>{this._selection=null,this.setState({displayValue:N(this.props,this.props.value,V(this.props)),focused:!1}),this.props.onBlur&&this.props.onBlur(e)},this._onValueChange=e=>{const t=e.currentTarget,n=t.value,o=function(e,t,n){switch(n){case"integer":return P.test(t)?t:e;case"float":return t=t.replace(/,/g,"."),T.test(t)?t:e}}(this.state.displayValue,n,this.props.mode),i=k(o),r=this._checkValueBoundaries(i);var a,s;this.setState({displayValue:o}),o!==n&&(a=this.state.displayValue,s=(s=o).replace(/,/g,"."),(a=a.replace(/,/g,".")).includes(".")||!s.includes("."))?(this._restoreSelection=!0,this.forceUpdate()):this._saveSelection(t),r.value&&N(this.props,i)===o&&this.props.onValueChange(i,"input")},this._onValueByStepChange=e=>{const{roundByStep:t=!0,step:n=1}=this.props,o=k(this.state.displayValue);let i;if(isNaN(o)){const{defaultValue:e}=this.props;if(void 0===e)return;i=e}else{const r=new f.Big(o),a=new f.Big(n),s=r.mod(a);let l=r.plus(e*n);!s.eq(0)&&t&&(l=l.plus((e>0?0:1)*n).minus(s)),i=l.toNumber()}this._checkValueBoundaries(i).value&&(this.setState({displayValue:N(this.props,i,V(this.props))}),this.props.onValueChange(i,"step"))},this.state={value:B(this.props.value),displayValue:N(this.props,this.props.value,V(this.props)),focused:!1,valueHash:this.props.valueHash}}componentDidMount(){document.addEventListener("selectionchange",this._handleSelectionChange)}componentWillUnmount(){document.removeEventListener("selectionchange",this._handleSelectionChange)}componentDidUpdate(){const e=(0,g.ensureNotNull)(this._input),t=this._selection;if(null!==t&&this._restoreSelection&&document.activeElement===e){const{start:n,end:o,direction:i}=t;e.setSelectionRange(n,o,i)}this._restoreSelection=!1}render(){return o.createElement(w.NumberInputView,{type:"text",inputMode:this.props.inputMode,name:this.props.name,fontSizeStyle:"medium",value:this.state.displayValue,className:this.props.className,placeholder:this.props.placeholder,disabled:this.props.disabled,stretch:this.props.stretch,onValueChange:this._onValueChange,onValueByStepChange:this._onValueByStepChange,containerReference:this.props.containerReference,inputReference:this._handleInputReference,onClick:this.props.onClick,onFocus:this._onFocus,onBlur:this._onBlur,onKeyDown:this.props.onKeyDown,autoSelectOnFocus:!0,"data-name":this.props["data-name"]})}getClampedValue(){const{min:e,max:t}=this.props,n=k(this.state.displayValue);return isNaN(n)?null:(0,_.clamp)(n,e,t)}static getDerivedStateFromProps(e,t){const{valueHash:n}=e,o=B(e.value);if(t.value!==o||t.valueHash!==n){return{value:o,valueHash:n,displayValue:N(e,o,t.focused&&t.valueHash===n?void 0:V(e))}}return null}_saveSelection(e){const{selectionStart:t,selectionEnd:n,selectionDirection:o}=e;null!==t&&null!==n&&null!==o&&(this._selection={start:t,end:n,direction:o})}_checkValueBoundaries(e){const{min:t,max:n}=this.props;return{value:function(e,t,n){const o=e>=t,i=e<=n;return{passMin:o,
passMax:i,pass:o&&i,clamped:(0,_.clamp)(e,t,n)}}(e,t,n).pass}}}M.defaultProps=D;const P=/^-?[0-9]*$/,T=/^(-?([0-9]+\.?[0-9]*)|(-?[0-9]*))$/;function N(e,t,n){return v(t=B(t))?"—":(null!==t&&void 0!==n&&(n=Math.max(z(t),n)),function(e,t){if(null===e)return"";return new E.NumericFormatter(t).format(e)}(t,n))}function V(e){let t=0;return e.inheritPrecisionFromStep&&e.step<=1&&(t=z(e.step)),Math.max(e.precision,t)||void 0}function z(e){const t=Math.trunc(e).toString();return(0,_.clamp)(E.NumericFormatter.formatNoE(e).length-t.length-1,0,15)}function k(e,t){return new E.NumericFormatter(t).parse(e)}function B(e){return"number"==typeof e&&Number.isFinite(e)||v(e)?e:null}var R=n(24377),W=n(58593),L=n(68906);function A(e){const{color:t,thickness:n,thicknessItems:i,noAlpha:r}=e,[s,l]=(0,a.useDefinitionProperty)({property:t}),[c,d]=(0,a.useDefinitionProperty)(n?{property:n}:{defaultValue:void 0});return o.createElement(W.ColorSelect,{...e,color:function(){if(!s)return null;if("mixed"===s)return"mixed";return(0,R.rgbToHexString)((0,R.parseRgb)(s))}(),onColorChange:function(e){const t=s&&"mixed"!==s?(0,L.alphaToTransparency)((0,R.parseRgba)(s)[3]):0;l((0,L.generateColor)(String(e),t,!0))},thickness:c,thicknessItems:i,onThicknessChange:d,opacity:r?void 0:s&&"mixed"!==s?(0,R.parseRgba)(s)[3]:void 0,onOpacityChange:r?void 0:function(e){l((0,L.generateColor)(s,(0,L.alphaToTransparency)(e),!0))}})}var I=n(28353),F=n(49612),H=n(94697),O=n(90186),j=n(23848),Z=n(56775),U=n(5717);const Y=[{type:F.LineEnd.Normal,icon:j,label:(0,I.t)("Normal")},{type:F.LineEnd.Arrow,icon:Z,label:(0,I.t)("Arrow")}];class q extends o.PureComponent{constructor(e){super(e),this._items=[],this._items=Y.map(t=>({value:t.type,selectedContent:o.createElement(H.DisplayItem,{icon:t.icon}),content:o.createElement(H.DropItem,{icon:t.icon,iconClassName:d()(e.isRight&&U.right),label:t.label})}))}render(){const{id:e,lineEnd:t,className:n,lineEndChange:i,isRight:r,disabled:a}=this.props;return o.createElement(H.IconDropdown,{id:e,disabled:a,className:d()(U.lineEndSelect,r&&U.right,n),items:this._items,value:t,onChange:i,hideArrowButton:!0,...(0,O.filterDataProps)(this.props)})}}function Q(e){const{property:t}=e,[n,i]=(0,a.useDefinitionProperty)({property:t});return o.createElement(q,{...e,lineEnd:n,lineEndChange:i})}var K=n(78260),X=n(31650);function G(e){const{children:t,className:n,breakPoint:i="Normal"}=e;return o.createElement(K.CellWrap,{className:c(X.wrap,n,X["breakpoint"+i])},o.Children.map(t,e=>o.isValidElement(e)?o.createElement("span",{key:null===e.key?void 0:e.key,className:X.row},e):e))}const $={1:"float",0:"integer"};var J=n(77975),ee=n(55368);function te(e){const{definition:{id:t,properties:{checked:n,disabled:i,visible:r,leftEnd:l,rightEnd:d,value:p,extendLeft:f,extendRight:g},title:v,valueMin:y,valueMax:b,valueStep:w,valueUnit:_,extendLeftTitle:E,extendRightTitle:C},offset:x}=e,[D]=(0,a.useDefinitionProperty)({property:n,defaultValue:!0}),[M]=(0,a.useDefinitionProperty)({property:i,defaultValue:!1}),[P]=(0,a.useDefinitionProperty)({property:r,
defaultValue:!0}),T=(0,J.useWatchedValueReadonly)({watchedValue:y,defaultValue:void 0}),N=(0,J.useWatchedValueReadonly)({watchedValue:b,defaultValue:void 0}),V=(0,J.useWatchedValueReadonly)({watchedValue:w,defaultValue:void 0}),z=(0,J.useWatchedValueReadonly)({watchedValue:_,defaultValue:void 0}),k=e.disabled||!D;return P?o.createElement(o.Fragment,null,o.createElement(s.CommonSection,{id:t,offset:x,checked:n,title:v,disabled:e.disabled||M},o.createElement(G,{className:ee.line,breakPoint:"Small"},o.createElement(o.Fragment,null,function(){const{definition:{properties:{color:n,width:i},widthValues:r}}=e;if(n)return o.createElement("span",{className:ee.control},o.createElement(A,{color:n,thickness:i,disabled:k,thicknessItems:r}));return i&&o.createElement("span",{className:ee.control},o.createElement(m.LineWidthSelect,{id:(0,u.createDomId)(t,"line-width-select"),items:r,property:i,disabled:k}))}(),function(){const{definition:{properties:{style:n}}}=e;return n&&o.createElement("span",{className:ee.control},o.createElement(h,{id:(0,u.createDomId)(t,"line-style-select"),property:n,disabled:k}))}()),(l||d||p)&&o.createElement(o.Fragment,null,o.createElement(o.Fragment,null,l&&o.createElement(Q,{id:(0,u.createDomId)(t,"left-end-select"),"data-name":"left-end-select",className:ee.control,property:l,disabled:k}),d&&o.createElement(Q,{id:(0,u.createDomId)(t,"right-end-select"),"data-name":"right-end-select",className:ee.control,property:d,disabled:k,isRight:!0})),function(){const{definition:{valueType:t}}=e;return p&&o.createElement("span",{className:c(ee.valueInput,ee.control)},o.createElement(S,{className:ee.input,property:p,min:T,max:N,step:V,disabled:k,mode:void 0!==t?$[t]:void 0,name:"line-value-input"}),o.createElement("span",{className:ee.valueUnit},z))}()))),f&&o.createElement(s.CommonSection,{id:t+"ExtendLeft",offset:x,checked:f,title:E,disabled:e.disabled||M}),g&&o.createElement(s.CommonSection,{id:t+"ExtendRight",offset:x,checked:g,title:C,disabled:e.disabled||M})):null}var ne=n(49642),oe=n(45685),ie=n(36947);function re(e){const{property:t,options:n,...i}=e,[r,s]=(0,a.useDefinitionProperty)({property:t}),l=(0,ie.useForceUpdate)();return(0,o.useEffect)(()=>{const e=()=>l();return Array.isArray(n)||n.subscribe(e),()=>{Array.isArray(n)||n.unsubscribe(e)}},[]),o.createElement(oe.Select,{...i,onChange:s,value:r,items:(Array.isArray(n)?n:n.value()).map(e=>e.readonly?{content:e.title,readonly:e.readonly}:{content:e.title,value:e.value,disabled:e.disabled,id:e.id})})}var ae=n(52465);const se=[{title:(0,I.t)("Solid"),value:ne.ColorType.Solid},{title:(0,I.t)("Gradient"),value:ne.ColorType.Gradient}];function le(e){const{id:t,disabled:n,noAlpha:i,properties:r}=e,{color:s,gradientColor1:l,gradientColor2:c,type:d}=r,[p]=(0,a.useDefinitionProperty)({property:d,defaultValue:ne.ColorType.Solid});return o.createElement(G,null,o.createElement(re,{id:(0,u.createDomId)(t,"background-type-options-dropdown"),"data-name":"background-type-options-dropdown",className:ae.dropdown,menuClassName:ae.dropdownMenu,disabled:n,property:d,
options:se}),p===ne.ColorType.Solid?o.createElement(A,{color:s,disabled:n,noAlpha:i}):o.createElement(o.Fragment,null,o.createElement(A,{className:ae.firstColorPicker,color:l,disabled:n,noAlpha:i}),o.createElement(A,{color:c,disabled:n,noAlpha:i})))}function ce(e){const{definition:{id:t,properties:n,title:i,noAlpha:r},offset:l}=e,{color:c,checked:d,disabled:u,visible:p}=n,[h]=(0,a.useDefinitionProperty)({property:d,defaultValue:!0}),[m]=(0,a.useDefinitionProperty)({property:u,defaultValue:!1}),[f]=(0,a.useDefinitionProperty)({property:p,defaultValue:!0}),g=e.disabled||!h;return f?o.createElement(s.CommonSection,{id:t,offset:l,checked:d,title:i,disabled:e.disabled||m},o.createElement(K.CellWrap,null,n.hasOwnProperty("type")?o.createElement(le,{id:t,properties:n,disabled:g,noAlpha:r}):o.createElement(A,{color:c,disabled:g,noAlpha:r}))):null}var de=n(54368),ue=n(45112),pe=n(21818);function he(e){const{value:t,disabled:n,onChange:i,className:r}=e;return o.createElement("div",{className:c(pe.wrap,r,{[pe.disabled]:n})},o.createElement(de.Opacity,{hideInput:!0,color:ue.colorsPalette["color-tv-blue-500"],opacity:1-t/100,onChange:function(e){n||i(100-100*e)}}))}function me(e){const{property:t,...n}=e,[i,r]=(0,a.useDefinitionProperty)({property:t});return o.createElement(he,{...n,value:i,onChange:r})}function fe(e){const{definition:{id:t,properties:{transparency:n,checked:i,disabled:r,visible:l},title:c},offset:d}=e,[u]=(0,a.useDefinitionProperty)({property:i,defaultValue:!0}),[p]=(0,a.useDefinitionProperty)({property:r,defaultValue:!1}),[h]=(0,a.useDefinitionProperty)({property:l,defaultValue:!0}),m=e.disabled||!u;return h?o.createElement(s.CommonSection,{id:t,offset:d,checked:i,title:c,disabled:e.disabled||p},o.createElement(K.CellWrap,null,o.createElement(me,{property:n,disabled:m}))):null}var ge=n(35048);function ve(e){const{definition:{id:t,properties:{color1:n,color2:i,checked:r,disabled:l,visible:c},title:d,noAlpha1:u,noAlpha2:p},offset:h}=e,[m]=(0,a.useDefinitionProperty)({property:r,defaultValue:!0}),[f]=(0,a.useDefinitionProperty)({property:l,defaultValue:!1}),[g]=(0,a.useDefinitionProperty)({property:c,defaultValue:!0}),v=e.disabled||!m||f;return g?o.createElement(s.CommonSection,{id:t,offset:h,checked:r,title:d,disabled:e.disabled||f},o.createElement(K.CellWrap,{className:ge.twoColors},y(n,u),y(i,p))):null;function y(e,t){return o.createElement("span",{className:ge.colorPicker},o.createElement(A,{color:e,disabled:v,noAlpha:t}))}}var ye=n(66849),be=n(80346);function we(e){const{definition:{id:t,properties:{checked:n,value:i,unitOptionsValue:r,disabled:l,visible:d},min:p,max:h,step:m,title:f,unit:v,unitOptions:y,type:b},offset:w}=e,[_]=(0,a.useDefinitionProperty)({property:n,defaultValue:!0}),[E]=(0,a.useDefinitionProperty)({property:l,defaultValue:!1}),[C]=(0,a.useDefinitionProperty)({property:d,defaultValue:!0}),x=(0,J.useWatchedValueReadonly)({watchedValue:p,defaultValue:void 0}),D=(0,J.useWatchedValueReadonly)({watchedValue:h,defaultValue:void 0}),M=(0,J.useWatchedValueReadonly)({watchedValue:m,
defaultValue:void 0}),P=(0,J.useWatchedValueReadonly)({watchedValue:v,defaultValue:void 0}),T=(0,o.useContext)(ye.ControlCustomWidthContext),N=e.disabled||!_;return C?o.createElement(s.CommonSection,{id:t,offset:w,checked:n,title:f,disabled:e.disabled||E},o.createElement(K.CellWrap,null,o.createElement(G,null,o.createElement(S,{className:c(be.input,T[t]&&be[T[t]]),property:i,min:x,max:D,step:M,disabled:N,mode:$[b],name:"number-input","data-name":t}),r&&o.createElement(re,{id:(0,u.createDomId)(t,"unit-options-dropdown"),"data-name":"unit-options-dropdown",className:be.dropdown,menuClassName:be.dropdownMenu,disabled:N,property:r,options:(0,g.ensureDefined)(y)})),o.createElement("span",{className:be.unit},P))):null}function _e(e){const{definition:{id:t,properties:{checked:n,disabled:i,visible:r},childrenDefinitions:l,title:c},offset:d}=e,[u]=(0,a.useDefinitionProperty)({property:n,defaultValue:!0}),[p]=(0,a.useDefinitionProperty)({property:i,defaultValue:!1}),[h]=(0,a.useDefinitionProperty)({property:r,defaultValue:!0}),m=e.disabled||!u;return h?o.createElement(o.Fragment,null,o.createElement(s.CommonSection,{id:t,offset:d,checked:n,title:c,disabled:e.disabled||p}),l.map(e=>o.createElement(tn,{key:e.id,disabled:m,definition:e,offset:!0}))):null}var Ee=n(66045);function Ce(e){const{property:t}=e,[n,i]=(0,a.useDefinitionProperty)({property:t});return o.createElement(Ee.FontSizeSelect,{...e,fontSize:n,fontSizeChange:i,"data-name":"font-size-select"})}var Se=n(9745),xe=n(56994);function De(e){const{className:t,checked:n,icon:i,disabled:r,onClick:a}=e;return o.createElement("div",{className:d()(t,xe.container,n&&!r&&xe.active,r&&xe.disabled),onClick:r?void 0:a,"data-role":"button",...(0,O.filterDataProps)(e)},o.createElement(Se.Icon,{className:xe.icon,icon:i}))}function Me(e){const{icon:t,className:n,property:i,disabled:r}=e,[s,l]=(0,a.useDefinitionProperty)({property:i});return o.createElement(De,{className:n,icon:t,checked:s,onClick:function(){l(!s)},disabled:r,...(0,O.filterDataProps)(e)})}var Pe=n(67029),Te=n(35868),Ne=n(2568);function Ve(e){const{property:t,...n}=e,[i,r]=(0,a.useDefinitionProperty)({property:t}),s=(0,o.useCallback)(e=>r(e.target.value),[r]);return o.createElement(Ne.Textarea,{...n,value:i,onChange:s})}var ze=n(86508),ke=n(27603),Be=n(45449);const Re=e=>({content:e.title,title:e.title,value:e.value,id:e.id}),We=e=>({content:e.title,title:e.title,value:e.value,id:e.id});function Le(e){const{definition:{id:t,properties:{color:n,size:i,checked:r,disabled:l,bold:c,italic:d,text:p,alignmentHorizontal:h,alignmentVertical:m,orientation:f,backgroundVisible:g,backgroundColor:v,borderVisible:y,borderColor:b,borderWidth:w,wrap:_},title:E,sizeItems:C,alignmentTitle:S,alignmentHorizontalItems:x,alignmentVerticalItems:D,orientationTitle:M,orientationItems:P,backgroundTitle:T,borderTitle:N,borderWidthItems:V,wrapTitle:z},offset:k}=e,B=(0,o.useContext)(ye.ControlCustomHeightContext),[R]=(0,a.useDefinitionProperty)({property:r,defaultValue:!0}),[W]=(0,a.useDefinitionProperty)({property:l,defaultValue:!1}),[L,I]=(0,
a.useDefinitionProperty)({property:m,defaultValue:void 0}),[F,H]=(0,a.useDefinitionProperty)({property:f,defaultValue:"horizontal"}),[O,j]=(0,a.useDefinitionProperty)({property:h,defaultValue:void 0}),[Z]=(0,a.useDefinitionProperty)({property:g,defaultValue:!1}),[U]=(0,a.useDefinitionProperty)({property:y,defaultValue:!1}),Y=e.disabled||!R;return o.createElement(o.Fragment,null,function(){if(E)return o.createElement(s.CommonSection,{id:t,offset:k,checked:r,title:E,disabled:e.disabled||W},o.createElement(G,{breakPoint:"Small"},X(),$()));return o.createElement(Te.PropertyTable.Row,null,o.createElement(Te.PropertyTable.Cell,{placement:"first",colSpan:2,offset:k,"data-section-name":t},X(),$()))}(),p&&o.createElement(Te.PropertyTable.Row,null,o.createElement(Te.PropertyTable.Cell,{placement:"first",colSpan:2,offset:k,"data-section-name":t},o.createElement(Ve,{className:Pe.InputClasses.FontSizeMedium,rows:(q=B[t],"big"===q?9:5),stretch:!0,property:p,disabled:Y,onFocus:function(e){e.target.select()},name:"text-input"}))),(h||m)&&o.createElement(Te.PropertyTable.Row,null,o.createElement(Te.PropertyTable.Cell,{placement:"first",verticalAlign:"adaptive",offset:k,"data-section-name":t},o.createElement(K.CellWrap,null,S)),o.createElement(Te.PropertyTable.Cell,{placement:"last",verticalAlign:"adaptive","data-section-name":t},o.createElement(G,{breakPoint:"Small"},void 0!==L&&void 0!==D&&o.createElement(oe.Select,{id:(0,u.createDomId)(t,"alignment-vertical-select"),"data-name":"alignment-vertical-select",className:Be.dropdown,menuClassName:Be.dropdownMenu,disabled:Y,value:L,items:D.map(Re),onChange:I}),void 0!==O&&void 0!==x&&o.createElement(oe.Select,{id:(0,u.createDomId)(t,"alignment-horizontal-select"),"data-name":"alignment-horizontal-select",className:Be.dropdown,menuClassName:Be.dropdownMenu,disabled:Y,value:O,items:x.map(Re),onChange:j})))),void 0!==f&&void 0!==P&&o.createElement(Te.PropertyTable.Row,null,o.createElement(Te.PropertyTable.Cell,{placement:"first",verticalAlign:"adaptive",offset:k,"data-section-name":t},o.createElement(K.CellWrap,null,M)),o.createElement(Te.PropertyTable.Cell,{placement:"last",verticalAlign:"adaptive","data-section-name":t},o.createElement(G,{breakPoint:"Small"},o.createElement(oe.Select,{id:(0,u.createDomId)(t,"orientation-select"),"data-name":"orientation-select",className:Be.dropdown,menuClassName:Be.dropdownMenu,disabled:Y,value:F,items:P.map(We),onChange:H})))),J(T,g,v,!!g&&!Z),J(N,y,b,!!y&&!U,w,V),_&&o.createElement(s.CommonSection,{id:t+"Wrap",offset:k,checked:_,title:z,disabled:e.disabled||W}));var q;function Q(e,t,n){return e?o.createElement(Me,{className:Be.fontStyleButton,icon:t,property:e,disabled:Y,"data-name":n}):null}function X(){return o.createElement(o.Fragment,null,n&&o.createElement("div",{className:Be.colorPicker},o.createElement(A,{color:n,disabled:Y})),i&&C&&o.createElement(Ce,{id:(0,u.createDomId)(t,"font-size-select"),property:i,fontSizes:C,disabled:Y}))}function $(){return o.createElement(o.Fragment,null,Q(c,ze,"toggle-bold"),Q(d,ke,"toggle-italic"))}
function J(e,n,i,r,a,l){return i||n?o.createElement(s.CommonSection,{id:t+"ColorSelect",offset:k,checked:n,title:e,disabled:Y},i&&o.createElement(A,{color:i,thickness:a,thicknessItems:l,disabled:Y||r})):null}}var Ae=n(51285);function Ie(e){const{definition:{properties:{x:t,y:n,disabled:i},id:r,minX:a,maxX:s,stepX:l,minY:c,maxY:d,stepY:u,title:p,typeX:h,typeY:m},offset:f}=e,g=i&&i.value()||e.disabled,v=(0,J.useWatchedValueReadonly)({watchedValue:a,defaultValue:void 0}),y=(0,J.useWatchedValueReadonly)({watchedValue:s,defaultValue:void 0}),b=(0,J.useWatchedValueReadonly)({watchedValue:l,defaultValue:void 0}),w=(0,J.useWatchedValueReadonly)({watchedValue:c,defaultValue:void 0}),_=(0,J.useWatchedValueReadonly)({watchedValue:d,defaultValue:void 0}),E=(0,J.useWatchedValueReadonly)({watchedValue:u,defaultValue:void 0});return o.createElement(Te.PropertyTable.Row,null,o.createElement(Te.PropertyTable.Cell,{verticalAlign:"adaptive",placement:"first",offset:f,"data-section-name":r},o.createElement("span",{className:Ae.coordinates},p)),(t||n)&&o.createElement(Te.PropertyTable.Cell,{placement:"last",offset:f,"data-section-name":r},o.createElement(G,{breakPoint:"Medium"},n&&o.createElement(S,{className:Ae.input,property:n,min:w,max:_,step:E,disabled:g,name:"y-input",mode:void 0!==m?$[m]:"integer"}),t&&o.createElement(S,{className:Ae.input,property:t,min:v,max:y,step:b,disabled:g,name:"x-input",mode:void 0!==h?$[h]:"integer"}))))}var Fe=n(89477);function He(e){const{definition:{id:t,properties:{checked:n,option:i,disabled:r,visible:l},title:c,options:p},offset:h}=e,[m]=(0,a.useDefinitionProperty)({property:n,defaultValue:!0}),[f]=(0,a.useDefinitionProperty)({property:r,defaultValue:!1}),[g]=(0,a.useDefinitionProperty)({property:l,defaultValue:!0}),v=(0,o.useContext)(ye.ControlCustomWidthContext),y=e.disabled||!m;return g?o.createElement(s.CommonSection,{id:t,offset:h,checked:n,title:c,disabled:e.disabled||f},o.createElement(K.CellWrap,null,o.createElement(re,{id:(0,u.createDomId)(t,"options-dropdown"),"data-name":"options-dropdown",className:d()(Fe.dropdown,v[t]&&Fe[v[t]]),menuClassName:d()(Fe.dropdownMenu,v[t]&&Fe[v[t]]),disabled:y||f,property:i,options:p}))):null}var Oe=n(71953);var je=n(62820),Ze=n(65830);class Ue extends o.PureComponent{constructor(e){super(e),this._container=null,this._pointer=null,this._rafPosition=null,this._rafDragStop=null,this._refContainer=e=>{this._container=e},this._refPointer=e=>{this._pointer=e},this._handlePosition=e=>{null!==this._rafPosition||this.props.disabled||(this._rafPosition=requestAnimationFrame(()=>{const{from:t,to:n,min:o,max:i}=this.props,r=this._getNewPosition(e),a=1===this._detectPointerMode(e),s=a?(0,_.clamp)(r,o,n):t,l=a?n:(0,_.clamp)(r,t,i);s<=l&&this._handleChange(s,l),this._rafPosition=null}))},this._handleDragStop=()=>{null!==this._rafDragStop||this.props.disabled||(this._rafDragStop=requestAnimationFrame(()=>{this.setState({pointerDragMode:0}),this._rafDragStop=null,this.props.onCommit()}))},this._onSliderClick=e=>{C.CheckMobile.any()||(this._handlePosition(e.nativeEvent),
this._dragSubscribe())},this._mouseUp=e=>{this._dragUnsubscribe(),this._handlePosition(e),this._handleDragStop()},this._mouseMove=e=>{this._handlePosition(e)},this._onTouchStart=e=>{this._handlePosition(e.nativeEvent.touches[0])},this._handleTouch=e=>{this._handlePosition(e.nativeEvent.touches[0])},this._handleTouchEnd=()=>{this._handleDragStop()},this.state={pointerDragMode:0}}componentWillUnmount(){null!==this._rafPosition&&(cancelAnimationFrame(this._rafPosition),this._rafPosition=null),null!==this._rafDragStop&&(cancelAnimationFrame(this._rafDragStop),this._rafDragStop=null),this._dragUnsubscribe()}render(){const{className:e,disabled:t,from:n,to:i,min:r,max:a}=this.props,{pointerDragMode:s}=this.state,l=0!==s,d=a-r,u=0===d?r:(n-r)/d,p=0===d?a:(i-r)/d,h=(0,je.isRtl)()?"right":"left";return o.createElement("div",{className:c(e,Ze.range,t&&Ze.disabled)},o.createElement("div",{className:Ze.rangeSlider,ref:this._refContainer,onMouseDown:this._onSliderClick,onTouchStart:this._onTouchStart,onTouchMove:this._handleTouch,onTouchEnd:this._handleTouchEnd},o.createElement("div",{className:Ze.rangeSliderMiddleWrap},o.createElement("div",{className:c(Ze.rangeSliderMiddle,l&&Ze.dragged),style:{[h]:100*u+"%",width:100*(p-u)+"%"}})),o.createElement("div",{className:Ze.rangePointerWrap},o.createElement("div",{className:c(Ze.pointer,l&&Ze.dragged),style:{[h]:100*u+"%"},ref:this._refPointer})),o.createElement("div",{className:Ze.rangePointerWrap},o.createElement("div",{className:c(Ze.pointer,l&&Ze.dragged),style:{[h]:100*p+"%"}}))))}_dragSubscribe(){const e=(0,g.ensureNotNull)(this._container).ownerDocument;e&&(e.addEventListener("mouseup",this._mouseUp),e.addEventListener("mousemove",this._mouseMove))}_dragUnsubscribe(){const e=(0,g.ensureNotNull)(this._container).ownerDocument;e&&(e.removeEventListener("mousemove",this._mouseMove),e.removeEventListener("mouseup",this._mouseUp))}_getNewPosition(e){const{min:t,max:n}=this.props,o=n-t,i=(0,g.ensureNotNull)(this._container),r=(0,g.ensureNotNull)(this._pointer),a=i.getBoundingClientRect(),s=r.offsetWidth;let l=e.clientX-s/2-a.left;return(0,je.isRtl)()&&(l=a.width-l-s),(0,_.clamp)(l/(a.width-s),0,1)*o+t}_detectPointerMode(e){const{from:t,to:n}=this.props,{pointerDragMode:o}=this.state;if(0!==o)return o;const i=this._getNewPosition(e),r=Math.abs(t-i),a=Math.abs(n-i),s=r===a?i<t?1:2:r<a?1:2;return this.setState({pointerDragMode:s}),s}_handleChange(e,t){const{from:n,to:o,onChange:i}=this.props;e===n&&t===o||i(e,t)}}var Ye=n(90692),qe=n(94245);function Qe(e){const{definition:{id:t,properties:{checked:n,disabled:i,from:r,to:l},title:c,max:u,min:p},offset:h,disabled:m}=e,[f]=(0,a.useDefinitionProperty)({property:n,defaultValue:!0}),[g]=(0,a.useDefinitionProperty)({property:i,defaultValue:!1}),b=(0,J.useWatchedValueReadonly)({watchedValue:p,defaultValue:void 0}),w=(0,J.useWatchedValueReadonly)({watchedValue:u,defaultValue:void 0}),[_,E]=(0,a.useDefinitionProperty)({property:r}),[C,S]=(0,a.useDefinitionProperty)({property:l}),D=v(_)||v(C),M=y(D?"mixed":_,(function(e){if(E(e),v(z)){
const e=w||100;k(e),S(e)}})),[P,T,N]=M,V=y(D?"mixed":C,(function(e){if(S(e),v(P)){const e=b||0;T(e),E(e)}})),[z,k,B]=V,R=v(P)||v(z),W=m||v(f)||!f,L={flushed:!1};return o.createElement(s.CommonSection,{id:t,offset:h,checked:n,title:c,disabled:m||g},o.createElement(K.CellWrap,{className:qe.range},function(){if(!b||!w)return null;return o.createElement(Ye.MatchMedia,{rule:"screen and (max-width: 460px)"},e=>o.createElement(G,{breakPoint:"Medium"},o.createElement(o.Fragment,null,o.createElement("span",{className:qe.valueInput},o.createElement(x,{className:qe.input,sharedBuffer:M,min:b,max:v(z)?w:z,step:1,disabled:W,name:"from-input",mode:"integer",defaultValue:b}),e?o.createElement("span",{className:qe.rangeSlider},"—"):o.createElement(Ue,{className:d()(qe.rangeSlider,R&&qe.rangeSlider_mixed),from:R?b:P,to:R?w:z,min:b,max:w,onChange:A,onCommit:I,disabled:W}))),o.createElement(o.Fragment,null,o.createElement("span",{className:qe.valueInput},o.createElement(x,{className:qe.input,sharedBuffer:V,min:v(P)?b:P,max:w,step:1,disabled:W,name:"to-input",mode:"integer",defaultValue:w})))))}()));function A(e,t){T(Math.round(e)),k(Math.round(t))}function I(){L.flushed||(N(),B(),L.flushed=!0)}}var Ke=n(86067),Xe=n(53424),Ge=n(67474);function $e(e){const{definitions:t,name:n,offset:i}=e;return o.createElement(Te.PropertyTable.Row,null,o.createElement(Te.PropertyTable.Cell,{className:d()(Ge.cell,Ge.fragmentCell),offset:i,placement:"first",verticalAlign:"adaptive",colSpan:2,"data-section-name":n,checkableTitle:!0},t.map(e=>o.createElement("div",{className:Ge.item,key:e.id,"data-section-name":e.id},o.createElement(et,{definition:e})))))}function Je(e){const{definition:t,offset:n}=e;return o.createElement(Te.PropertyTable.Row,null,o.createElement(Te.PropertyTable.Cell,{className:Ge.cell,offset:n,placement:"first",verticalAlign:"adaptive",colSpan:2,checkableTitle:!0},o.createElement(et,{definition:t})))}function et(e){const{definition:{id:t,properties:{disabled:n,checked:i,color:r,level:s,width:l,style:c},title:p,widthValues:m,styleValues:f}}=e,[g]=(0,a.useDefinitionProperty)({property:i,defaultValue:!0}),[v]=(0,a.useDefinitionProperty)({property:n,defaultValue:!1}),y=v||!g;return o.createElement(o.Fragment,null,o.createElement(Xe.CheckableTitle,{name:"is-enabled-"+t,className:d()(p&&Ge.withTitle),title:p&&o.createElement("span",{className:Ge.title},p),property:i,disabled:v}),s&&o.createElement(S,{className:d()(Ge.input,Ge.control),property:s,disabled:y}),r&&o.createElement(A,{className:Ge.control,disabled:y,color:r,thickness:l,thicknessItems:m}),c&&o.createElement(h,{id:(0,u.createDomId)(t,"leveled-line-style-select"),className:Ge.control,property:c,disabled:y,allowedLineStyles:f}))}var tt=n(33126);function nt(e){const{definition:{id:t,properties:{option1:n,option2:i,checked:r,disabled:l},title:c,optionsItems1:d,optionsItems2:p},offset:h}=e,[m]=(0,a.useDefinitionProperty)({property:r,defaultValue:!0}),[f]=(0,a.useDefinitionProperty)({property:l,defaultValue:!1}),g=e.disabled||!m;return o.createElement(s.CommonSection,{id:t,offset:h,
checked:r,title:c,disabled:e.disabled||f},o.createElement(G,{className:tt.twoOptions},o.createElement(re,{id:(0,u.createDomId)(t,"two-options-dropdown-1"),"data-name":"two-options-dropdown-1",className:tt.dropdown,menuClassName:tt.menu,property:n,disabled:g,options:d}),o.createElement(re,{id:(0,u.createDomId)(t,"two-options-dropdown-2"),"data-name":"two-options-dropdown-2",className:tt.dropdown,menuClassName:tt.menu,property:i,disabled:g,options:p})))}var ot=n(27423),it=n(29148);function rt(e){const{source:t,inputs:n,model:i,inputsTabProperty:r}=e.definition;return o.createElement(ot.InputsTabContent,{className:it.withoutPadding,property:r,model:i,study:t,inputs:n})}var at=n(15294),st=n(56840),lt=n(59255);var ct=n(40681);function dt(e){const{tab:t,icon:n,isActive:i,onTabClick:r}=e;return o.createElement("div",{className:d()(ct.wrapper,i&&ct.isActive),onClick:function(){r(t)}},o.createElement(Se.Icon,{icon:n}))}var ut=n(88436);function pt(e){const{activeTab:t,emojis:n,onTabClick:i}=e;return o.createElement("div",{className:ut.wrapper},n.map(({title:e,icon:n})=>o.createElement(dt,{key:e,tab:e,icon:n,isActive:t===e,onTabClick:i})))}var ht=n(83199),mt=n(16859);function ft(e){const{title:t}=e;return o.createElement("div",{className:mt.wrapper},t)}var gt=n(72077),vt=n(99339);const yt=34;function bt(e){const{className:t,emoji:n,size:i=yt,onClick:r}=e,a=(0,gt.getTwemojiUrl)(n,"png");return o.createElement("div",{className:d()(vt.wrapper,t),style:{width:i,height:i},onClick:function(){r(n)}},o.createElement("img",{className:vt.emoji,src:a,decoding:"async",width:"24",height:"24",alt:"",draggable:!1,onContextMenu:function(e){e.preventDefault()}}))}var wt=n(39897);const _t=o.memo(e=>{const{emojis:t,itemSize:n,onEmojiClick:i}=e;return o.createElement("div",{className:wt.wrapper},t.map(e=>o.createElement(bt,{key:e,className:wt.emojiItem,emoji:e,size:n,onClick:i})))});var Et=n(78036),Ct=n(83341);const St=o.createContext(null);function xt(e){const{listRef:t,emojiGroups:n,emojiSize:i,onSelect:r,onContentRendered:a}=e;(0,o.useEffect)(()=>{var e;return null===(e=t.current)||void 0===e?void 0:e.resetAfterIndex(0,!0)},[n]);const s=(0,o.useCallback)(e=>"title"===n[e].type?30:38,[n]),l=(0,o.useCallback)(({visibleStartIndex:e})=>{const{relatedTitle:t}=n[e];a(t)},[n,a]);return o.createElement(St.Provider,{value:(0,o.useMemo)(()=>({size:i,onSelect:r}),[i,r])},o.createElement(ht.VariableSizeList,{className:Ct.list,ref:t,width:"100%",height:Math.min(330,window.innerHeight-60),itemData:n,itemCount:n.length,children:Dt,onItemsRendered:l,itemSize:s}))}const Dt=o.memo(e=>{const{style:t,index:n,data:i}=e,r=i[n],{size:a,onSelect:s}=(0,Et.useEnsuredContext)(St);return"title"===r.type?o.createElement("div",{style:t},o.createElement(ft,{title:r.relatedTitle})):o.createElement("div",{style:t},o.createElement(_t,{emojis:r.content,itemSize:a,onEmojiClick:s}))});var Mt=n(70358);function Pt(e){var t;const{className:n,emojis:i,onSelect:r}=e,a=(0,o.useRef)(null),[s,l]=(0,o.useState)(0),c=(0,o.useMemo)(()=>function(e,t){if(0===t)return[];const n=[]
;return e.forEach(({title:e,emojis:o})=>{n.push({type:"title",relatedTitle:e,content:[e]});let i=[];for(const r of o)i.length<t?i.push(r):(n.push({type:"emojiRow",relatedTitle:e,content:i}),i=[r]);i.length&&n.push({type:"emojiRow",relatedTitle:e,content:i})}),n}(i,s),[i,s]),u=function(e,t=[]){const n=(0,o.useRef)(null),i=(0,o.useRef)(null),r=(0,o.useRef)(e);r.current=e;const a=(0,o.useCallback)(e=>{n.current=e,null!==i.current&&(i.current.disconnect(),null!==e&&i.current.observe(e))},[n,i]);return(0,o.useEffect)(()=>(i.current=new lt.default((e,t)=>{r.current(e,t)}),n.current&&a(n.current),()=>{var e;null===(e=i.current)||void 0===e||e.disconnect()}),[n,...t]),a}((function(e){const[t]=e,{width:n}=t.contentRect,o=Math.floor((n-12)/38);l(o)})),[p,h]=(0,o.useState)((null===(t=c[0])||void 0===t?void 0:t.relatedTitle)||"");return o.createElement("div",{className:d()(Mt.wrapper,n)},o.createElement(pt,{emojis:i,activeTab:p,onTabClick:function(e){!function(e){var t;null===(t=a.current)||void 0===t||t.scrollToItem(e,"start"),requestAnimationFrame(()=>{var t;return null===(t=a.current)||void 0===t?void 0:t.scrollToItem(e,"start")})}(function(e){return c.findIndex(({relatedTitle:t,type:n})=>"title"===n&&t===e)}(e))}}),o.createElement("div",{ref:u},o.createElement(xt,{listRef:a,emojiGroups:c,emojiSize:38,onSelect:r,onContentRendered:h})))}var Tt=n(80781),Nt=n(67978),Vt=n(36311),zt=n(31006),kt=n(75614),Bt=n(1033),Rt=n(42925),Wt=n(40526),Lt=n(72843);const At=[{title:(0,I.t)("recently used",{context:"emoji_group"}),emojis:[],icon:Tt},{title:(0,I.t)("smiles & people",{context:"emoji_group"}),
emojis:["😀","😃","😄","😁","😆","😅","😂","🤣","☺️","😊","😇","🙂","🙃","😉","😌","😍","🥰","😘","😗","😙","😚","😋","😛","😝","😜","🤪","🤨","🧐","🤓","😎","🤩","🥳","😏","😒","😞","😔","😟","😕","🙁","☹️","😣","😖","😫","😩","🥺","😢","😭","😤","😠","😡","🤬","🤯","😳","🥵","🥶","😱","😨","😰","😥","😓","🤗","🤔","🤭","🤫","🤥","😶","😐","😑","😬","🙄","😯","😦","😧","😮","😲","🥱","😴","🤤","😪","😵","🤐","🥴","🤢","🤮","🤧","😷","🤒","🤕","🤑","🤠","😈","👿","👹","👺","🤡","💩","👻","💀","☠️","👽","👾","🤖","🎃","😺","😸","😹","😻","😼","😽","🙀","😿","😾","👋","🤚","🖐","✋","🖖","👌","🤏","✌️","🤞","🤟","🤘","🤙","👈","👉","👆","🖕","👇","☝️","👍","👎","✊","👊","🤛","🤜","👏","🙌","👐","🤲","🤝","🙏","✍️","💅","🤳","💪","🦾","🦵","🦿","🦶","👂","🦻","👃","🧠","🦷","🦴","👀","👁","👅","👄","💋","🩸","👶","🧒","👦","👧","🧑","👱","👨","🧔","👨‍🦰","👨‍🦱","👨‍🦳","👨‍🦲","👩","👩‍🦰","🧑‍🦰","👩‍🦱","🧑‍🦱","👩‍🦳","🧑‍🦳","👩‍🦲","🧑‍🦲","👱‍♀️","👱‍♂️","🧓","👴","👵","🙍","🙍‍♂️","🙍‍♀️","🙎","🙎‍♂️","🙎‍♀️","🙅","🙅‍♂️","🙅‍♀️","🙆","🙆‍♂️","🙆‍♀️","💁","💁‍♂️","💁‍♀️","🙋","🙋‍♂️","🙋‍♀️","🧏","🧏‍♂️","🧏‍♀️","🙇","🙇‍♂️","🙇‍♀️","🤦","🤦‍♂️","🤦‍♀️","🤷","🤷‍♂️","🤷‍♀️","🧑‍⚕️","👨‍⚕️","👩‍⚕️","🧑‍🎓","👨‍🎓","👩‍🎓","🧑‍🏫","👨‍🏫","👩‍🏫","🧑‍⚖️","👨‍⚖️","👩‍⚖️","🧑‍🌾","👨‍🌾","👩‍🌾","🧑‍🍳","👨‍🍳","👩‍🍳","🧑‍🔧","👨‍🔧","👩‍🔧","🧑‍🏭","👨‍🏭","👩‍🏭","🧑‍💼","👨‍💼","👩‍💼","🧑‍🔬","👨‍🔬","👩‍🔬","🧑‍💻","👨‍💻","👩‍💻","🧑‍🎤","👨‍🎤","👩‍🎤","🧑‍🎨","👨‍🎨","👩‍🎨","🧑‍✈️","👨‍✈️","👩‍✈️","🧑‍🚀","👨‍🚀","👩‍🚀","🧑‍🚒","👨‍🚒","👩‍🚒","👮","👮‍♂️","👮‍♀️","🕵","🕵️‍♂️","🕵️‍♀️","💂","💂‍♂️","💂‍♀️","👷","👷‍♂️","👷‍♀️","🤴","👸","👳","👳‍♂️","👳‍♀️","👲","🧕","🤵","👰","🤰","🤱","👼","🎅","🤶","🦸","🦸‍♂️","🦸‍♀️","🦹","🦹‍♂️","🦹‍♀️","🧙","🧙‍♂️","🧙‍♀️","🧚","🧚‍♂️","🧚‍♀️","🧛","🧛‍♂️","🧛‍♀️","🧜","🧜‍♂️","🧜‍♀️","🧝","🧝‍♂️","🧝‍♀️","🧞","🧞‍♂️","🧞‍♀️","🧟","🧟‍♂️","🧟‍♀️","💆","💆‍♂️","💆‍♀️","💇","💇‍♂️","💇‍♀️","🚶","🚶‍♂️","🚶‍♀️","🧍","🧍‍♂️","🧍‍♀️","🧎","🧎‍♂️","🧎‍♀️","🧑‍🦯","👨‍🦯","👩‍🦯","🧑‍🦼","👨‍🦼","👩‍🦼","🧑‍🦽","👨‍🦽","👩‍🦽","🏃","🏃‍♂️","🏃‍♀️","💃","🕺","🕴","👯","👯‍♂️","👯‍♀️","🧖","🧖‍♂️","🧖‍♀️","🧑‍🤝‍🧑","👭","👫","👬","💏","👨‍❤️‍💋‍👨","👩‍❤️‍💋‍👩","💑","👨‍❤️‍👨","👩‍❤️‍👩","👪","👨‍👩‍👦","👨‍👩‍👧","👨‍👩‍👧‍👦","👨‍👩‍👦‍👦","👨‍👩‍👧‍👧","👨‍👨‍👦","👨‍👨‍👧","👨‍👨‍👧‍👦","👨‍👨‍👦‍👦","👨‍👨‍👧‍👧","👩‍👩‍👦","👩‍👩‍👧","👩‍👩‍👧‍👦","👩‍👩‍👦‍👦","👩‍👩‍👧‍👧","👨‍👦","👨‍👦‍👦","👨‍👧","👨‍👧‍👦","👨‍👧‍👧","👩‍👦","👩‍👦‍👦","👩‍👧","👩‍👧‍👦","👩‍👧‍👧","🗣","👤","👥","👣"],icon:Nt},{title:(0,I.t)("animals & nature",{context:"emoji_group"}),
emojis:["🐶","🐱","🐭","🐹","🐰","🦊","🐻","🐼","🐨","🐯","🦁","🐮","🐷","🐽","🐸","🐵","🙈","🙉","🙊","🐒","🐔","🐧","🐦","🐤","🐣","🐥","🦆","🦅","🦉","🦇","🐺","🐗","🐴","🦄","🐝","🐛","🦋","🐌","🐞","🐜","🦟","🦗","🕷","🕸","🦂","🐢","🐍","🦎","🦖","🦕","🐙","🦑","🦐","🦞","🦀","🐡","🐠","🐟","🐬","🐳","🐋","🦈","🐊","🐅","🐆","🦓","🦍","🦧","🐘","🦛","🦏","🐪","🐫","🦒","🦘","🐃","🐂","🐄","🐎","🐖","🐏","🐑","🦙","🐐","🦌","🐕","🐩","🦮","🐕‍🦺","🐈","🐓","🦃","🦚","🦜","🦢","🦩","🕊","🐇","🦝","🦨","🦡","🦦","🦥","🐁","🐀","🐿","🦔","🐾","🐉","🐲","🌵","🎄","🌲","🌳","🌴","🌱","🌿","☘️","🍀","🎍","🎋","🍃","🍂","🍁","🍄","🐚","🌾","💐","🌷","🌹","🥀","🌺","🌸","🌼","🌻","🌞","🌝","🌛","🌜","🌚","🌕","🌖","🌗","🌘","🌑","🌒","🌓","🌔","🌙","🌎","🌍","🌏","🪐","💫","⭐️","🌟","✨","⚡️","☄️","💥","🔥","🌪","🌈","☀️","🌤","⛅️","🌥","☁️","🌦","🌧","⛈","🌩","🌨","❄️","☃️","⛄️","🌬","💨","💧","💦","☔️","🌊","🌫"],icon:Vt},{title:(0,I.t)("food & drink",{context:"emoji_group"}),emojis:["🍏","🍎","🍐","🍊","🍋","🍌","🍉","🍇","🍓","🍈","🍒","🍑","🥭","🍍","🥥","🥝","🍅","🍆","🥑","🥦","🥬","🥒","🌶","🌽","🥕","🧄","🧅","🥔","🍠","🥐","🥯","🍞","🥖","🥨","🧀","🥚","🍳","🧈","🥞","🧇","🥓","🥩","🍗","🍖","🌭","🍔","🍟","🍕","🥪","🥙","🧆","🌮","🌯","🥗","🥘","🥫","🍝","🍜","🍲","🍛","🍣","🍱","🥟","🦪","🍤","🍙","🍚","🍘","🍥","🥠","🥮","🍢","🍡","🍧","🍨","🍦","🥧","🧁","🍰","🎂","🍮","🍭","🍬","🍫","🍿","🍩","🍪","🌰","🥜","🍯","🥛","🍼","☕️","🍵","🧃","🥤","🍶","🍺","🍻","🥂","🍷","🥃","🍸","🍹","🧉","🍾","🧊","🥄","🍴","🍽","🥣","🥡","🥢","🧂"],icon:zt},{title:(0,I.t)("activity",{context:"emoji_group"}),emojis:["⚽️","🏀","🏈","⚾️","🥎","🎾","🏐","🏉","🥏","🎱","🪀","🏓","🏸","🏒","🏑","🥍","🏏","🥅","⛳️","🪁","🏹","🎣","🤿","🥊","🥋","🎽","🛹","🛷","⛸","🥌","🎿","⛷","🏂","🪂","🏋️","🏋️‍♂️","🏋️‍♀️","🤼","🤼‍♂️","🤼‍♀️","🤸‍♀️","🤸","🤸‍♂️","⛹️","⛹️‍♂️","⛹️‍♀️","🤺","🤾","🤾‍♂️","🤾‍♀️","🏌️","🏌️‍♂️","🏌️‍♀️","🏇","🧘","🧘‍♂️","🧘‍♀️","🏄","🏄‍♂️","🏄‍♀️","🏊","🏊‍♂️","🏊‍♀️","🤽","🤽‍♂️","🤽‍♀️","🚣","🚣‍♂️","🚣‍♀️","🧗","🧗‍♂️","🧗‍♀️","🚵","🚵‍♂️","🚵‍♀️","🚴","🚴‍♂️","🚴‍♀️","🏆","🥇","🥈","🥉","🏅","🎖","🏵","🎗","🎫","🎟","🎪","🤹","🤹‍♂️","🤹‍♀️","🎭","🎨","🎬","🎤","🎧","🎼","🎹","🥁","🎷","🎺","🎸","🪕","🎻","🎲","🎯","🎳","🎮","🎰","🧩"],icon:kt},{title:(0,I.t)("travel & places",{context:"emoji_group"}),emojis:["🚗","🚕","🚙","🚌","🚎","🏎","🚓","🚑","🚒","🚐","🚚","🚛","🚜","🦯","🦽","🦼","🛴","🚲","🛵","🏍","🛺","🚨","🚔","🚍","🚘","🚖","🚡","🚠","🚟","🚃","🚋","🚞","🚝","🚄","🚅","🚈","🚂","🚆","🚇","🚊","🚉","✈️","🛫","🛬","🛩","💺","🛰","🚀","🛸","🚁","🛶","⛵️","🚤","🛥","🛳","⛴","🚢","⚓️","⛽️","🚧","🚦","🚥","🚏","🗺","🗿","🗽","🗼","🏰","🏯","🏟","🎡","🎢","🎠","⛲️","⛱","🏖","🏝","🏜","🌋","⛰","🏔","🗻","🏕","⛺️","🏠","🏡","🏘","🏚","🏗","🏭","🏢","🏬","🏣","🏤","🏥","🏦","🏨","🏪","🏫","🏩","💒","🏛","⛪️","🕌","🕍","🛕","🕋","⛩","🛤","🛣","🗾","🎑","🏞","🌅","🌄","🌠","🎇","🎆","🌇","🌆","🏙","🌃","🌌","🌉","🌁"],icon:Bt},{title:(0,I.t)("objects",{context:"emoji_group"}),
emojis:["⌚️","📱","📲","💻","⌨️","🖥","🖨","🖱","🖲","🕹","🗜","💽","💾","💿","📀","📼","📷","📸","📹","🎥","📽","🎞","📞","☎️","📟","📠","📺","📻","🎙","🎚","🎛","🧭","⏱","⏲","⏰","🕰","⌛️","⏳","📡","🔋","🔌","💡","🔦","🕯","🪔","🧯","🛢","💸","💵","💴","💶","💷","💰","💳","💎","⚖️","🧰","🔧","🔨","⚒","🛠","⛏","🔩","⚙️","🧱","⛓","🧲","🔫","💣","🧨","🪓","🔪","🗡","⚔️","🛡","🚬","⚰️","⚱️","🏺","🔮","📿","🧿","💈","⚗️","🔭","🔬","🕳","🩹","🩺","💊","💉","🧬","🦠","🧫","🧪","🌡","🧹","🧺","🧻","🚽","🚰","🚿","🛁","🛀","🧼","🪒","🧽","🧴","🛎","🔑","🗝","🚪","🪑","🛋","🛏","🛌","🧸","🖼","🛍","🛒","🎁","🎈","🎏","🎀","🎊","🎉","🎎","🏮","🎐","🧧","✉️","📩","📨","📧","💌","📥","📤","📦","🏷","📪","📫","📬","📭","📮","📯","📜","📃","📄","📑","🧾","📊","📈","📉","🗒","🗓","📆","📅","🗑","📇","🗃","🗳","🗄","📋","📁","📂","🗂","🗞","📰","📓","📔","📒","📕","📗","📘","📙","📚","📖","🔖","🧷","🔗","📎","🖇","📐","📏","🧮","📌","📍","✂️","🖊","🖋","✒️","🖌","🖍","📝","✏️","🔍","🔎","🔏","🔐","🔒","🔓","🧳","🌂","☂️","🧵","🧶","👓","🕶","🥽","🥼","🦺","👔","👕","👖","🧣","🧤","🧥","🧦","👗","👘","🥻","🩱","🩲","🩳","👙","👚","👛","👜","👝","🎒","👞","👟","🥾","🥿","👠","👡","🩰","👢","👑","👒","🎩","🎓","🧢","⛑","💄","💍","💼"],icon:Rt},{title:(0,I.t)("symbols",{context:"emoji_group"}),emojis:["❤️","🧡","💛","💚","💙","💜","🖤","🤍","🤎","💔","❣️","💕","💞","💓","💗","💖","💘","💝","💟","☮️","✝️","☪️","🕉","☸️","✡️","🔯","🕎","☯️","☦️","🛐","⛎","♈️","♉️","♊️","♋️","♌️","♍️","♎️","♏️","♐️","♑️","♒️","♓️","🆔","⚛️","🉑","☢️","☣️","📴","📳","🈶","🈚️","🈸","🈺","🈷️","✴️","🆚","💮","🉐","㊙️","㊗️","🈴","🈵","🈹","🈲","🅰️","🅱️","🆎","🆑","🅾️","🆘","❌","⭕️","🛑","⛔️","📛","🚫","💯","💢","♨️","🚷","🚯","🚳","🚱","🔞","📵","🚭","❗️","❕","❓","❔","‼️","⁉️","🔅","🔆","〽️","⚠️","🚸","🔱","⚜️","🔰","♻️","✅","🈯️","💹","❇️","✳️","❎","🌐","💠","Ⓜ️","🌀","💤","🏧","🚾","♿️","🅿️","🈳","🈂️","🛂","🛃","🛄","🛅","🚹","🚺","🚼","🚻","🚮","🎦","📶","🈁","🔣","ℹ️","🔤","🔡","🔠","🆖","🆗","🆙","🆒","🆕","🆓","0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣","🔟","🔢","#️⃣","*️⃣","⏏️","▶️","⏸","⏯","⏹","⏺","⏭","⏮","⏩","⏪","⏫","⏬","◀️","🔼","🔽","➡️","⬅️","⬆️","⬇️","↗️","↘️","↙️","↖️","↕️","↔️","↪️","↩️","⤴️","⤵️","🔀","🔁","🔂","🔄","🔃","🎵","🎶","➕","➖","➗","✖️","♾","💲","💱","™️","©️","®️","〰️","➰","➿","🔚","🔙","🔛","🔝","🔜","✔️","☑️","🔘","🔴","🟠","🟡","🟢","🔵","🟣","⚫️","⚪️","🟤","🔺","🔻","🔸","🔹","🔶","🔷","🔳","🔲","▪️","▫️","◾️","◽️","◼️","◻️","🟥","🟧","🟨","🟩","🟦","🟪","⬛️","⬜️","🟫","🔈","🔇","🔉","🔊","🔔","🔕","📣","📢","👁‍🗨","💬","💭","🗯","♠️","♣️","♥️","♦️","🃏","🎴","🀄️","🕐","🕑","🕒","🕓","🕔","🕕","🕖","🕗","🕘","🕙","🕚","🕛","🕜","🕝","🕞","🕟","🕠","🕡","🕢","🕣","🕤","🕥","🕦","🕧"],icon:Wt},{title:(0,I.t)("flags",{context:"emoji_group"}),
emojis:["🏳️","🏴","🏁","🚩","🏳️‍🌈","🏴‍☠️","🇦🇫","🇦🇽","🇦🇱","🇩🇿","🇦🇸","🇦🇩","🇦🇴","🇦🇮","🇦🇶","🇦🇬","🇦🇷","🇦🇲","🇦🇼","🇦🇺","🇦🇹","🇦🇿","🇧🇸","🇧🇭","🇧🇩","🇧🇧","🇧🇾","🇧🇪","🇧🇿","🇧🇯","🇧🇲","🇧🇹","🇧🇴","🇧🇦","🇧🇼","🇧🇷","🇮🇴","🇻🇬","🇧🇳","🇧🇬","🇧🇫","🇧🇮","🇰🇭","🇨🇲","🇨🇦","🇮🇨","🇨🇻","🇧🇶","🇰🇾","🇨🇫","🇹🇩","🇨🇱","🇨🇳","🇨🇽","🇨🇨","🇨🇴","🇰🇲","🇨🇬","🇨🇩","🇨🇰","🇨🇷","🇨🇮","🇭🇷","🇨🇺","🇨🇼","🇨🇾","🇨🇿","🇩🇰","🇩🇯","🇩🇲","🇩🇴","🇪🇨","🇪🇬","🇸🇻","🇬🇶","🇪🇷","🇪🇪","🇪🇹","🇪🇺","🇫🇰","🇫🇴","🇫🇯","🇫🇮","🇫🇷","🇬🇫","🇵🇫","🇹🇫","🇬🇦","🇬🇲","🇬🇪","🇩🇪","🇬🇭","🇬🇮","🇬🇷","🇬🇱","🇬🇩","🇬🇵","🇬🇺","🇬🇹","🇬🇬","🇬🇳","🇬🇼","🇬🇾","🇭🇹","🇭🇳","🇭🇰","🇭🇺","🇮🇸","🇮🇳","🇮🇩","🇮🇷","🇮🇶","🇮🇪","🇮🇲","🇮🇱","🇮🇹","🇯🇲","🇯🇵","🎌","🇯🇪","🇯🇴","🇰🇿","🇰🇪","🇰🇮","🇽🇰","🇰🇼","🇰🇬","🇱🇦","🇱🇻","🇱🇧","🇱🇸","🇱🇷","🇱🇾","🇱🇮","🇱🇹","🇱🇺","🇲🇴","🇲🇰","🇲🇬","🇲🇼","🇲🇾","🇲🇻","🇲🇱","🇲🇹","🇲🇭","🇲🇶","🇲🇷","🇲🇺","🇾🇹","🇲🇽","🇫🇲","🇲🇩","🇲🇨","🇲🇳","🇲🇪","🇲🇸","🇲🇦","🇲🇿","🇲🇲","🇳🇦","🇳🇷","🇳🇵","🇳🇱","🇳🇨","🇳🇿","🇳🇮","🇳🇪","🇳🇬","🇳🇺","🇳🇫","🇰🇵","🇲🇵","🇳🇴","🇴🇲","🇵🇰","🇵🇼","🇵🇸","🇵🇦","🇵🇬","🇵🇾","🇵🇪","🇵🇭","🇵🇳","🇵🇱","🇵🇹","🇵🇷","🇶🇦","🇷🇪","🇷🇴","🇷🇺","🇷🇼","🇼🇸","🇸🇲","🇸🇦","🇸🇳","🇷🇸","🇸🇨","🇸🇱","🇸🇬","🇸🇽","🇸🇰","🇸🇮","🇬🇸","🇸🇧","🇸🇴","🇿🇦","🇰🇷","🇸🇸","🇪🇸","🇱🇰","🇧🇱","🇸🇭","🇰🇳","🇱🇨","🇵🇲","🇻🇨","🇸🇩","🇸🇷","🇸🇿","🇸🇪","🇨🇭","🇸🇾","🇹🇼","🇹🇯","🇹🇿","🇹🇭","🇹🇱","🇹🇬","🇹🇰","🇹🇴","🇹🇹","🇹🇳","🇹🇷","🇹🇲","🇹🇨","🇹🇻","🇻🇮","🇺🇬","🇺🇦","🇦🇪","🇬🇧","🏴󠁧󠁢󠁥󠁮󠁧󠁿","🏴󠁧󠁢󠁳󠁣󠁴󠁿","🏴󠁧󠁢󠁷󠁬󠁳󠁿","🇺🇳","🇺🇸","🇺🇾","🇺🇿","🇻🇺","🇻🇦","🇻🇪","🇻🇳","🇼🇫","🇪🇭","🇾🇪","🇿🇲","🇿🇼"],icon:Lt}];var It=n(50628),Ft=n(37558),Ht=n(41590),Ot=n(27317),jt=n(40173);var Zt=n(40233),Ut=n(24437),Yt=n(90896);function qt(e){const{children:t,highlight:n,disabled:i,reference:r}=e,a=n?"primary":"default";return o.createElement("div",{ref:r,className:d()(Yt.wrapper,Yt["intent-"+a],Yt["border-thin"],Yt["size-medium"],n&&Yt.highlight,n&&Yt.focused,i&&Yt.disabled),"data-role":"button"},o.createElement("div",{className:d()(Yt.childrenContainer,i&&Yt.disabled)},t),n&&o.createElement("span",{className:Yt.shadow}))}var Qt=n(95076);const Kt=()=>null,Xt=(0,jt.mergeThemes)(Ot.DEFAULT_MENU_THEME,{menuBox:Qt.menuBox});function Gt(e){const{value:t,disabled:n,onSelect:i}=e,r=(0,o.useRef)(null),{current:a}=(0,o.useRef)(st.getJSON("RecentlyUsedEmojis",[t])),[s,l]=(0,o.useState)(a),[c,d]=(0,o.useState)(!1),u=(0,o.useCallback)(()=>d(!1),[]);var p;p=u,(0,o.useEffect)(()=>(document.addEventListener("scroll",p),()=>{document.removeEventListener("scroll",p)}),[p]);const h=(0,o.useCallback)(e=>{const t=Array.from(new Set([e,...s])).slice(0,18);st.setJSON("RecentlyUsedEmojis",t),l(t),i(e),u()},[s,i]),m=(f=s,(0,o.useMemo)(()=>(At[0].emojis=f,[...At]),[f]));var f;return o.createElement(o.Fragment,null,o.createElement(qt,{reference:r,
highlight:c,disabled:n},o.createElement(bt,{emoji:t,onClick:function(){n||d(!0)}})),o.createElement(Ye.MatchMedia,{rule:Ut.DialogBreakpoints.TabletSmall},e=>c&&o.createElement(Ft.DrawerManager,null,e?o.createElement(Ht.Drawer,{className:Qt.drawer,position:"Bottom",onClose:u},o.createElement(Pt,{emojis:m,onSelect:h})):o.createElement(It.PopupMenu,{theme:Xt,isOpened:!0,position:(0,Zt.getPopupPositioner)(r.current,{horizontalDropDirection:Zt.HorizontalDropDirection.FromLeftToRight,horizontalAttachEdge:Zt.HorizontalAttachEdge.Left}),onClickOutside:u,onClose:Kt},o.createElement(Pt,{className:Qt.desktopSize,emojis:m,onSelect:h})))))}var $t=n(9688);function Jt(e){const{definition:{title:t,properties:n}}=e,{checked:i,emoji:r,backgroundColor:s}=n,[l,c]=(0,a.useDefinitionProperty)({property:i,defaultValue:!1}),[d,u]=(0,a.useDefinitionProperty)({property:r,defaultValue:"🙂"}),[p,h]=(0,a.useDefinitionProperty)({property:s,defaultValue:ue.colorsPalette["color-tv-blue-a600"]});return o.createElement("div",{className:$t.wrapper},o.createElement(at.Checkbox,{className:$t.checkbox,label:t,checked:l,onChange:function(){c(!l)}}),o.createElement(Gt,{value:d,disabled:!l,onSelect:u}),o.createElement(W.ColorSelect,{className:$t.colorSelect,disabled:!l,color:p,onColorChange:h}))}function en(e){const{definition:{id:t,properties:{disabled:n,visible:i},childrenDefinitions:r,title:l},offset:c}=e,[d]=(0,a.useDefinitionProperty)({property:n,defaultValue:!1}),[u]=(0,a.useDefinitionProperty)({property:i,defaultValue:!0}),p=e.disabled;return u?o.createElement(o.Fragment,null,l&&o.createElement(s.CommonSection,{id:t,offset:c,title:l,disabled:e.disabled||d}),r.map(e=>o.createElement(tn,{key:e.id,disabled:p,definition:e,offset:Boolean(l)}))):null}function tn(e){const{definition:t,offset:n,disabled:a}=e;if(function(e){(0,o.useEffect)(()=>{if(void 0===e)return;const t={...e.properties};return Object.entries(t).forEach(([n,o])=>{void 0!==o&&o.subscribe(t,()=>Oe.logger.logNormal(`Property "${n}" in definition "${e.id}" was updated to value "${o.value()}"`))}),()=>{Object.entries(t).forEach(([,e])=>{void 0!==e&&e.unsubscribeAll(t)})}},[e])}((0,i.isPropertyDefinitionsGroup)(t)?void 0:t),(0,i.isPropertyDefinitionsGroup)(t))return o.createElement(nn,{definition:t,offset:n,disabled:a});switch(t.propType){case"line":return o.createElement(te,{...e,definition:t});case"checkable":return o.createElement(l,{...e,definition:t});case"color":return o.createElement(ce,{...e,definition:t});case"transparency":return o.createElement(fe,{...e,definition:t});case"twoColors":return o.createElement(ve,{...e,definition:t});case"number":return o.createElement(we,{...e,definition:t});case"symbol":return o.createElement(r.SymbolInputsButton,{...e,definition:t});case"text":return o.createElement(Le,{...e,definition:t});case"checkableSet":return o.createElement(_e,{...e,definition:t});case"set":return o.createElement(en,{...e,definition:t});case"options":return o.createElement(He,{...e,definition:t});case"range":return o.createElement(Qe,{...e,definition:t});case"coordinates":
return o.createElement(Ie,{...e,definition:t});case"twoOptions":return o.createElement(nt,{...e,definition:t});case"leveledLine":return o.createElement(Je,{...e,definition:t});case"emoji":return o.createElement(Jt,{...e,definition:t});case"image":return null;case"studyInputs":return o.createElement(rt,{...e,definition:t});default:return null}}function nn(e){const{definition:t}=e,n=(0,J.useWatchedValueReadonly)({watchedValue:t.definitions});return(0,J.useWatchedValueReadonly)({watchedValue:t.visible,defaultValue:!0})?o.createElement(o.Fragment,null,t.title&&o.createElement(Ke.GroupTitleSection,{title:t.title,name:t.id}),n&&(r=n,r.reduce((e,t)=>{if((0,i.isPropertyDefinitionsGroup)(t)||"leveledLine"!==t.propType)e.push(t);else{const n=e[e.length-1];Array.isArray(n)?n.push(t):e.push([t])}return e},[])).map(n=>Array.isArray(n)?o.createElement($e,{key:n[0].id,name:t.id,definitions:n}):o.createElement(tn,{key:n.id,...e,definition:n})),"general"===t.groupType&&o.createElement(Te.PropertyTable.GroupSeparator,{size:1})):null;var r}},95711:(e,t,n)=>{"use strict";n.d(t,{PopupContext:()=>o});const o=n(59496).createContext(null)},63016:(e,t,n)=>{"use strict";n.d(t,{PopupDialog:()=>D});var o=n(59496),i=n(97754),r=n(88537),a=n(50655),s=n(88216),l=n(90186),c=n(17683);class d extends o.PureComponent{constructor(){super(...arguments),this._manager=new s.OverlapManager,this._handleSlot=e=>{this._manager.setContainer(e)}}render(){const{rounded:e=!0,shadowed:t=!0,fullscreen:n=!1,darker:r=!1,className:s,backdrop:d}=this.props,u=i(s,c.dialog,e&&c.rounded,t&&c.shadowed,n&&c.fullscreen,r&&c.darker),p=(0,l.filterDataProps)(this.props),h=this.props.style?{...this._createStyles(),...this.props.style}:this._createStyles();return o.createElement(o.Fragment,null,o.createElement(a.SlotContext.Provider,{value:this._manager},d&&o.createElement("div",{onClick:this.props.onClickBackdrop,className:c.backdrop}),o.createElement("div",{...p,className:u,style:h,ref:this.props.reference,onFocus:this.props.onFocus,onMouseDown:this.props.onMouseDown,onMouseUp:this.props.onMouseUp,onClick:this.props.onClick,onKeyDown:this.props.onKeyDown,tabIndex:-1},this.props.children)),o.createElement(a.Slot,{reference:this._handleSlot}))}_createStyles(){const{bottom:e,left:t,width:n,right:o,top:i,zIndex:r,height:a}=this.props;return{bottom:e,left:t,right:o,top:i,zIndex:r,maxWidth:n,height:a}}}var u=n(86431),p=n(76594),h=n(64514);function m(e,t,n,o){return e+t>o&&(e=o-t),e<n&&(e=n),e}function f(e){return{x:(0,h.clamp)(e.x,20,document.documentElement.clientWidth-20),y:(0,h.clamp)(e.y,20,window.innerHeight-20)}}function g(e){return{x:e.clientX,y:e.clientY}}function v(e){return{x:e.touches[0].clientX,y:e.touches[0].clientY}}class y{constructor(e,t,n={boundByScreen:!0}){this._drag=null,this._canBeTouchClick=!1,this._frame=null,this._onMouseDragStart=e=>{if(0!==e.button||this._isTargetNoDraggable(e))return;e.preventDefault(),document.addEventListener("mousemove",this._onMouseDragMove),document.addEventListener("mouseup",this._onMouseDragEnd);const t=f(g(e));this._dragStart(t)},
this._onTouchDragStart=e=>{if(this._isTargetNoDraggable(e))return;this._canBeTouchClick=!0,e.preventDefault(),this._header.addEventListener("touchmove",this._onTouchDragMove,{passive:!1});const t=f(v(e));this._dragStart(t)},this._onMouseDragEnd=e=>{e.target instanceof Node&&this._header.contains(e.target)&&e.preventDefault(),document.removeEventListener("mousemove",this._onMouseDragMove),document.removeEventListener("mouseup",this._onMouseDragEnd),this._onDragStop()},this._onTouchDragEnd=e=>{this._header.removeEventListener("touchmove",this._onTouchDragMove),this._onDragStop(),this._canBeTouchClick&&(this._canBeTouchClick=!1,function(e){if(e instanceof SVGElement){const t=document.createEvent("SVGEvents");t.initEvent("click",!0,!0),e.dispatchEvent(t)}e instanceof HTMLElement&&e.click()}(e.target))},this._onMouseDragMove=e=>{const t=f(g(e));this._dragMove(t)},this._onTouchDragMove=e=>{this._canBeTouchClick=!1,e.preventDefault();const t=f(v(e));this._dragMove(t)},this._onDragStop=()=>{this._drag=null,this._header.classList.remove("dragging")},this._dialog=e,this._header=t,this._options=n,this._header.addEventListener("mousedown",this._onMouseDragStart),this._header.addEventListener("touchstart",this._onTouchDragStart),this._header.addEventListener("touchend",this._onTouchDragEnd)}destroy(){null!==this._frame&&cancelAnimationFrame(this._frame),this._header.removeEventListener("mousedown",this._onMouseDragStart),document.removeEventListener("mouseup",this._onMouseDragEnd),this._header.removeEventListener("touchstart",this._onTouchDragStart),this._header.removeEventListener("touchend",this._onTouchDragEnd),document.removeEventListener("mouseleave",this._onMouseDragEnd)}updateOptions(e){this._options=e}_dragStart(e){const t=this._dialog.getBoundingClientRect();this._drag={startX:e.x,startY:e.y,finishX:e.x,finishY:e.y,dialogX:t.left,dialogY:t.top};const n=Math.round(t.left),o=Math.round(t.top);this._dialog.style.transform=`translate(${n}px, ${o}px)`,this._header.classList.add("dragging"),this._options.onDragStart&&this._options.onDragStart()}_dragMove(e){if(this._drag){if(this._drag.finishX=e.x,this._drag.finishY=e.y,null!==this._frame)return;this._frame=requestAnimationFrame(()=>{if(this._drag){const t=e.x-this._drag.startX,n=e.y-this._drag.startY;this._moveDialog(this._drag.dialogX+t,this._drag.dialogY+n)}this._frame=null})}}_moveDialog(e,t){const n=this._dialog.getBoundingClientRect(),{boundByScreen:o}=this._options,i=m(e,n.width,o?0:-1/0,o?window.innerWidth:1/0),r=m(t,n.height,o?0:-1/0,o?window.innerHeight:1/0);this._dialog.style.transform=`translate(${Math.round(i)}px, ${Math.round(r)}px)`}_isTargetNoDraggable(e){return e.target instanceof Element&&null!==e.target.closest("[data-disable-drag]")}}const b={vertical:0};class w{constructor(e,t){this._frame=null,this._isFullscreen=!1,this._handleResize=()=>{null===this._frame&&(this._frame=requestAnimationFrame(()=>{this.recalculateBounds(),this._frame=null}))},this._dialog=e,this._guard=t.guard||b,this._calculateDialogPosition=t.calculateDialogPosition,
this._initialHeight=e.style.height,window.addEventListener("resize",this._handleResize)}updateOptions(e){this._guard=e.guard||b,this._calculateDialogPosition=e.calculateDialogPosition}setFullscreen(e){this._isFullscreen!==e&&(this._isFullscreen=e,this.recalculateBounds())}centerAndFit(){const{x:e,y:t}=this.getDialogsTopLeftCoordinates(),n=this._calcAvailableHeight(),o=this._calcDialogHeight();if(n===o)if(this._calculateDialogPosition){const{left:e,top:t}=this._calculateDialogPosition(this._dialog,document.documentElement,this._guard);this._dialog.style.transform=`translate(${Math.round(e)}px, ${Math.round(t)}px)`}else this._dialog.style.height=o+"px";this._dialog.style.top="0px",this._dialog.style.left="0px",this._dialog.style.transform=`translate(${e}px, ${t}px)`}getDialogsTopLeftCoordinates(){const{clientHeight:e,clientWidth:t}=document.documentElement,n=this._calcDialogHeight(),o=t/2-this._dialog.clientWidth/2,i=e/2-n/2;return{x:Math.round(o),y:Math.round(i)}}recalculateBounds(){const{clientHeight:e,clientWidth:t}=document.documentElement;if(this._isFullscreen)this._dialog.style.top="0px",this._dialog.style.left="0px",this._dialog.style.width="100%",this._dialog.style.height="100%",this._dialog.style.transform="none";else{const{vertical:n}=this._guard;if(this._calculateDialogPosition){const o=this._calculateDialogPosition(this._dialog,{clientWidth:t,clientHeight:e},{vertical:n}),{left:i,top:r}=o;this._dialog.style.transform=`translate(${Math.round(i)}px, ${Math.round(r)}px)`}else{this._dialog.style.width="",this._dialog.style.height="";const o=this._dialog.getBoundingClientRect(),i=e-2*n,r=m(o.left,o.width,0,t),a=m(o.top,o.height,n,e);this._dialog.style.top="0px",this._dialog.style.left="0px",this._dialog.style.transform=`translate(${Math.round(r)}px, ${Math.round(a)}px)`,this._dialog.style.height=i<o.height?i+"px":this._initialHeight}}}destroy(){window.removeEventListener("resize",this._handleResize),null!==this._frame&&(cancelAnimationFrame(this._frame),this._frame=null)}_calcDialogHeight(){const e=this._calcAvailableHeight();return e<this._dialog.clientHeight?e:this._dialog.clientHeight}_calcAvailableHeight(){return document.documentElement.clientHeight-2*this._guard.vertical}}var _=n(65718),E=n(95711),C=n(99054),S=n(12114);S["tooltip-offset"];class x extends o.PureComponent{constructor(e){super(e),this._dialog=null,this._handleDialogRef=e=>{const{reference:t}=this.props;this._dialog=e,"function"==typeof t&&t(e)},this._handleFocus=e=>{this._moveToTop()},this._handleMouseDown=e=>{this._moveToTop()},this._handleTouchStart=e=>{this._moveToTop()},this.state={canFitTooltip:!1}}render(){return o.createElement(E.PopupContext.Provider,{value:this},o.createElement(p.OutsideEvent,{mouseDown:!0,touchStart:!0,handler:this.props.onClickOutside},e=>o.createElement("div",{ref:e,"data-outside-boundary-for":this.props.name,onFocus:this._handleFocus,onMouseDown:this._handleMouseDown,onTouchStart:this._handleTouchStart,"data-dialog-name":this.props["data-dialog-name"]},o.createElement(d,{style:this._applyAnimationCSSVariables(),
...this.props,reference:this._handleDialogRef,className:i(S.dialog,this.props.className)},!1,this.props.children))))}componentDidMount(){const{draggable:e,boundByScreen:t,onDragStart:n}=this.props,o=(0,r.ensureNotNull)(this._dialog);if(e){const e=o.querySelector("[data-dragg-area]");e&&e instanceof HTMLElement&&(this._drag=new y(o,e,{boundByScreen:Boolean(t),onDragStart:n}))}this.props.autofocus&&!o.contains(document.activeElement)&&o.focus(),(this._isFullScreen()||this.props.fixedBody)&&(0,C.setFixedBodyState)(!0);const{guard:i,calculateDialogPosition:a}=this.props;this._resize=new w(o,{guard:i,calculateDialogPosition:a}),this.props.isAnimationEnabled&&this.props.growPoint&&this._applyAppearanceAnimation(this.props.growPoint),this.props.centeredOnMount&&this._resize.centerAndFit(),this._resize.setFullscreen(this._isFullScreen()),this.props.shouldForceFocus&&o.focus()}componentDidUpdate(){if(this._resize){const{guard:e,calculateDialogPosition:t}=this.props;this._resize.updateOptions({guard:e,calculateDialogPosition:t}),this._resize.setFullscreen(this._isFullScreen())}this._drag&&this._drag.updateOptions({boundByScreen:Boolean(this.props.boundByScreen),onDragStart:this.props.onDragStart})}componentWillUnmount(){this._drag&&this._drag.destroy(),this._resize&&this._resize.destroy(),(this._isFullScreen()||this.props.fixedBody)&&(0,C.setFixedBodyState)(!1)}focus(){this._dialog&&this._dialog.focus()}centerAndFit(){this._resize&&this._resize.centerAndFit()}recalculateBounds(){this._resize&&this._resize.recalculateBounds()}_moveToTop(){null!==this.context&&this.context.moveToTop()}_applyAnimationCSSVariables(){return{"--animationTranslateStartX":null,"--animationTranslateStartY":null,"--animationTranslateEndX":null,"--animationTranslateEndY":null}}_applyAppearanceAnimation(e){if(this._resize&&this._dialog){const{x:t,y:n}=e,{x:o,y:i}=this._resize.getDialogsTopLeftCoordinates();this._dialog.style.setProperty("--animationTranslateStartX",t+"px"),this._dialog.style.setProperty("--animationTranslateStartY",n+"px"),this._dialog.style.setProperty("--animationTranslateEndX",o+"px"),this._dialog.style.setProperty("--animationTranslateEndY",i+"px"),this._dialog.classList.add(S.dialogAnimatedAppearance)}}_handleTooltipFit(){0}_isFullScreen(){return Boolean(this.props.fullscreen)}}x.contextType=_.PortalContext,x.defaultProps={boundByScreen:!0,draggable:!0,centeredOnMount:!0};const D=(0,u.makeOverlapable)(x)},95276:(e,t,n)=>{"use strict";n.d(t,{ControlDisclosure:()=>c});var o=n(59496),i=n(66092),r=n(26597),a=n(46059),s=n(68721),l=n(66230);const c=o.forwardRef((e,t)=>{const{id:n,tabIndex:c,disabled:d,highlight:u,intent:p,children:h,onClick:m,onFocus:f,onBlur:g,listboxAria:v,...y}=e,b=(0,o.useRef)({"aria-labelledby":n}),{listboxId:w,isOpened:_,isFocused:E,buttonTabIndex:C,listboxTabIndex:S,highlight:x,intent:D,onOpen:M,close:P,toggle:T,buttonFocusBindings:N,onButtonClick:V,buttonRef:z,listboxRef:k,buttonAria:B}=(0,s.useControlDisclosure)({id:n,disabled:d,buttonTabIndex:c,intent:p,highlight:u,onFocus:f,onBlur:g,onClick:m}),R=(0,
r.useKeyboardToggle)(T),W=(0,r.useKeyboardClose)(_,P),L=(0,r.useKeyboardActionHandler)([27],P,(0,o.useCallback)(()=>_,[_])),A=(0,r.useKeyboardEventHandler)(R,W),I=(0,r.useKeyboardEventHandler)(L);return o.createElement(a.ControlDisclosureView,{...y,...N,...B,id:n,role:"button",tabIndex:C,disabled:d,isOpened:_,isFocused:E,ref:(0,i.useMergedRefs)([z,t]),highlight:x,intent:D,onClose:P,onOpen:M,onClick:V,onKeyDown:A,listboxId:w,listboxTabIndex:S,listboxReference:k,listboxAria:null!=v?v:b.current,onListboxKeyDown:I},h,o.createElement("span",{className:l.invisibleFocusHandler,tabIndex:0,"aria-hidden":!0,onFocus:P}))});c.displayName="ControlDisclosure"},37558:(e,t,n)=>{"use strict";n.d(t,{DrawerManager:()=>i,DrawerContext:()=>r});var o=n(59496);class i extends o.PureComponent{constructor(e){super(e),this._addDrawer=()=>{const e=this.state.currentDrawer+1;return this.setState({currentDrawer:e}),e},this._removeDrawer=()=>{const e=this.state.currentDrawer-1;return this.setState({currentDrawer:e}),e},this.state={currentDrawer:0}}render(){return o.createElement(r.Provider,{value:{addDrawer:this._addDrawer,removeDrawer:this._removeDrawer,currentDrawer:this.state.currentDrawer}},this.props.children)}}const r=o.createContext(null)},41590:(e,t,n)=>{"use strict";n.d(t,{Drawer:()=>h});var o=n(59496),i=n(88537),r=n(97754),a=n(59142),s=n(99054),l=n(65718),c=n(37558),d=n(49483),u=n(29197),p=n(66998);function h(e){const{position:t="Bottom",onClose:n,children:h,className:m,theme:f=p}=e,g=(0,i.ensureNotNull)((0,o.useContext)(c.DrawerContext)),[v,y]=(0,o.useState)(0),b=(0,o.useRef)(null),w=(0,o.useContext)(u.CloseDelegateContext);return(0,o.useEffect)(()=>{const e=(0,i.ensureNotNull)(b.current);return e.focus({preventScroll:!0}),w.subscribe(g,n),0===g.currentDrawer&&(0,s.setFixedBodyState)(!0),d.CheckMobile.iOS()&&(0,a.disableBodyScroll)(e),y(g.addDrawer()),()=>{w.unsubscribe(g,n);const t=g.removeDrawer();d.CheckMobile.iOS()&&(0,a.enableBodyScroll)(e),0===t&&(0,s.setFixedBodyState)(!1)}},[]),o.createElement(l.Portal,null,o.createElement("div",{className:r(p.wrap,p["position"+t])},v===g.currentDrawer&&o.createElement("div",{className:p.backdrop,onClick:n}),o.createElement("div",{className:r(p.drawer,f.drawer,p["position"+t],m),ref:b,tabIndex:-1,"data-name":e["data-name"]},h)))}},58095:(e,t,n)=>{"use strict";n.d(t,{useOutsideEvent:()=>r});var o=n(59496),i=n(39640);function r(e){const{click:t,mouseDown:n,touchEnd:r,touchStart:a,handler:s,reference:l,ownerDocument:c=document}=e,d=(0,o.useRef)(null),u=(0,o.useRef)(new CustomEvent("timestamp").timeStamp);return(0,o.useLayoutEffect)(()=>{const e={click:t,mouseDown:n,touchEnd:r,touchStart:a},o=l?l.current:d.current;return(0,i.addOutsideEventListener)(u.current,o,s,c,e)},[t,n,r,a,s]),l||d}},90692:(e,t,n)=>{"use strict";n.d(t,{MatchMedia:()=>i});var o=n(59496);class i extends o.PureComponent{constructor(e){super(e),this._handleChange=()=>{this.forceUpdate()},this.state={query:window.matchMedia(this.props.rule)}}componentDidMount(){this._subscribe(this.state.query)}componentDidUpdate(e,t){
this.state.query!==t.query&&(this._unsubscribe(t.query),this._subscribe(this.state.query))}componentWillUnmount(){this._unsubscribe(this.state.query)}render(){return this.props.children(this.state.query.matches)}static getDerivedStateFromProps(e,t){return e.rule!==t.query.media?{query:window.matchMedia(e.rule)}:null}_subscribe(e){e.addListener(this._handleChange)}_unsubscribe(e){e.removeListener(this._handleChange)}}},64706:(e,t,n)=>{"use strict";n.d(t,{MenuContext:()=>o});const o=n(59496).createContext(null)},27317:(e,t,n)=>{"use strict";n.d(t,{DEFAULT_MENU_THEME:()=>g,Menu:()=>v});var o=n(59496),i=n(97754),r=n.n(i),a=n(88537),s=n(64514),l=n(54475),c=n(50655),d=n(59064),u=n(88216),p=n(25760),h=n(14758),m=n(64706),f=n(16059);const g=f;class v extends o.PureComponent{constructor(e){super(e),this._containerRef=null,this._scrollWrapRef=null,this._raf=null,this._scrollRaf=null,this._scrollTimeout=void 0,this._manager=new u.OverlapManager,this._hotkeys=null,this._scroll=0,this._handleContainerRef=e=>{this._containerRef=e,this.props.reference&&("function"==typeof this.props.reference&&this.props.reference(e),"object"==typeof this.props.reference&&(this.props.reference.current=e))},this._handleScrollWrapRef=e=>{this._scrollWrapRef=e,"function"==typeof this.props.scrollWrapReference&&this.props.scrollWrapReference(e),"object"==typeof this.props.scrollWrapReference&&(this.props.scrollWrapReference.current=e)},this._handleMeasure=({callback:e,forceRecalcPosition:t}={})=>{var n,o,i,r;if(this.state.isMeasureValid&&!t)return;const{position:l}=this.props,c=(0,a.ensureNotNull)(this._containerRef);let d=c.getBoundingClientRect();const u=document.documentElement.clientHeight,p=document.documentElement.clientWidth,h=null!==(n=this.props.closeOnScrollOutsideOffset)&&void 0!==n?n:0;let m=u-0-h;const f=d.height>m;if(f){(0,a.ensureNotNull)(this._scrollWrapRef).style.overflowY="scroll",d=c.getBoundingClientRect()}const{width:g,height:v}=d,y="function"==typeof l?l(g,v,u):l,b=p-(null!==(o=y.overrideWidth)&&void 0!==o?o:g)-0,w=(0,s.clamp)(y.x,0,Math.max(0,b)),_=0+h,E=u-(null!==(i=y.overrideHeight)&&void 0!==i?i:v)-0;let C=(0,s.clamp)(y.y,_,Math.max(_,E));if(y.forbidCorrectYCoord&&C<y.y&&(m-=y.y-C,C=y.y),t&&void 0!==this.props.closeOnScrollOutsideOffset&&y.y<=this.props.closeOnScrollOutsideOffset)return void this._handleGlobalClose(!0);const S=null!==(r=y.overrideHeight)&&void 0!==r?r:f?m:void 0;this.setState({appearingMenuHeight:t?this.state.appearingMenuHeight:S,appearingMenuWidth:t?this.state.appearingMenuWidth:y.overrideWidth,appearingPosition:{x:w,y:C},isMeasureValid:!0},()=>{this._restoreScrollPosition(),e&&e()})},this._restoreScrollPosition=()=>{const e=document.activeElement,t=(0,a.ensureNotNull)(this._containerRef);if(null!==e&&t.contains(e))try{e.scrollIntoView()}catch(e){}else(0,a.ensureNotNull)(this._scrollWrapRef).scrollTop=this._scroll},this._resizeForced=()=>{this.setState({appearingMenuHeight:void 0,appearingMenuWidth:void 0,appearingPosition:void 0,isMeasureValid:void 0})},this._resize=()=>{
null===this._raf&&(this._raf=requestAnimationFrame(()=>{this.setState({appearingMenuHeight:void 0,appearingMenuWidth:void 0,appearingPosition:void 0,isMeasureValid:void 0}),this._raf=null}))},this._handleGlobalClose=e=>{this.props.onClose(e)},this._handleSlot=e=>{this._manager.setContainer(e)},this._handleScroll=()=>{this._scroll=(0,a.ensureNotNull)(this._scrollWrapRef).scrollTop},this._handleScrollOutsideEnd=()=>{clearTimeout(this._scrollTimeout),this._scrollTimeout=setTimeout(()=>{this._handleMeasure({forceRecalcPosition:!0})},80)},this._handleScrollOutside=e=>{e.target!==this._scrollWrapRef&&(this._handleScrollOutsideEnd(),null===this._scrollRaf&&(this._scrollRaf=requestAnimationFrame(()=>{this._handleMeasure({forceRecalcPosition:!0}),this._scrollRaf=null})))},this.state={}}componentDidMount(){this._handleMeasure({callback:this.props.onOpen});const{customCloseDelegate:e=d.globalCloseDelegate}=this.props;e.subscribe(this,this._handleGlobalClose),window.addEventListener("resize",this._resize);const t=null!==this.context;this._hotkeys||t||(this._hotkeys=p.createGroup({desc:"Popup menu"}),this._hotkeys.add({desc:"Close",hotkey:27,handler:()=>this._handleGlobalClose()})),this.props.repositionOnScroll&&window.addEventListener("scroll",this._handleScrollOutside,{capture:!0})}componentDidUpdate(){this._handleMeasure()}componentWillUnmount(){const{customCloseDelegate:e=d.globalCloseDelegate}=this.props;e.unsubscribe(this,this._handleGlobalClose),window.removeEventListener("resize",this._resize),window.removeEventListener("scroll",this._handleScrollOutside,{capture:!0}),this._hotkeys&&(this._hotkeys.destroy(),this._hotkeys=null),null!==this._raf&&(cancelAnimationFrame(this._raf),this._raf=null),null!==this._scrollRaf&&(cancelAnimationFrame(this._scrollRaf),this._scrollRaf=null),this._scrollTimeout&&clearTimeout(this._scrollTimeout)}render(){const{id:e,role:t,"aria-labelledby":n,"aria-activedescendant":i,children:a,minWidth:s,theme:d=f,className:u,maxHeight:p,onMouseOver:g,onMouseOut:v,onKeyDown:b,onFocus:w,onBlur:_}=this.props,{appearingMenuHeight:E,appearingMenuWidth:C,appearingPosition:S,isMeasureValid:x}=this.state;return o.createElement(m.MenuContext.Provider,{value:this},o.createElement(h.SubmenuHandler,null,o.createElement(c.SlotContext.Provider,{value:this._manager},o.createElement("div",{id:e,role:t,"aria-labelledby":n,"aria-activedescendant":i,className:r()(u,d.menuWrap,!x&&d.isMeasuring),style:{height:E,left:S&&S.x,minWidth:s,position:"fixed",top:S&&S.y,width:C},"data-name":this.props["data-name"],ref:this._handleContainerRef,onScrollCapture:this.props.onScroll,onContextMenu:l.preventDefaultForContextMenu,tabIndex:this.props.tabIndex,onMouseOver:g,onMouseOut:v,onKeyDown:b,onFocus:w,onBlur:_},o.createElement("div",{className:r()(d.scrollWrap,!this.props.noMomentumBasedScroll&&d.momentumBased),style:{overflowY:void 0!==E?"scroll":"auto",maxHeight:p},onScrollCapture:this._handleScroll,ref:this._handleScrollWrapRef},o.createElement(y,{className:d.menuBox},a)))),o.createElement(c.Slot,{reference:this._handleSlot})))}
update(e){e?this._resizeForced():this._resize()}}function y(e){const t=(0,a.ensureNotNull)((0,o.useContext)(h.SubmenuContext)),n=o.useRef(null);return o.createElement("div",{ref:n,className:e.className,onMouseOver:function(e){if(!(null!==t.current&&e.target instanceof Node&&(o=e.target,null===(i=n.current)||void 0===i?void 0:i.contains(o))))return;var o,i;t.isSubmenuNode(e.target)||t.setCurrent(null)},"data-name":"menu-inner"},e.children)}v.contextType=h.SubmenuContext},76594:(e,t,n)=>{"use strict";n.d(t,{OutsideEvent:()=>i});var o=n(58095);function i(e){const{children:t,...n}=e;return t((0,o.useOutsideEvent)(n))}},88216:(e,t,n)=>{"use strict";n.d(t,{OverlapManager:()=>r,getRootOverlapManager:()=>s});var o=n(88537);class i{constructor(){this._storage=[]}add(e){this._storage.push(e)}remove(e){this._storage=this._storage.filter(t=>e!==t)}has(e){return this._storage.includes(e)}getItems(){return this._storage}}class r{constructor(e=document){this._storage=new i,this._windows=new Map,this._index=0,this._document=e,this._container=e.createDocumentFragment()}setContainer(e){const t=this._container,n=null===e?this._document.createDocumentFragment():e;!function(e,t){Array.from(e.childNodes).forEach(e=>{e.nodeType===Node.ELEMENT_NODE&&t.appendChild(e)})}(t,n),this._container=n}registerWindow(e){this._storage.has(e)||this._storage.add(e)}ensureWindow(e,t={position:"fixed",direction:"normal"}){const n=this._windows.get(e);if(void 0!==n)return n;this.registerWindow(e);const o=this._document.createElement("div");if(o.style.position=t.position,o.style.zIndex=this._index.toString(),o.dataset.id=e,void 0!==t.index){const e=this._container.childNodes.length;if(t.index>=e)this._container.appendChild(o);else if(t.index<=0)this._container.insertBefore(o,this._container.firstChild);else{const e=this._container.childNodes[t.index];this._container.insertBefore(o,e)}}else"reverse"===t.direction?this._container.insertBefore(o,this._container.firstChild):this._container.appendChild(o);return this._windows.set(e,o),++this._index,o}unregisterWindow(e){this._storage.remove(e);const t=this._windows.get(e);void 0!==t&&(null!==t.parentElement&&t.parentElement.removeChild(t),this._windows.delete(e))}getZindex(e){const t=this.ensureWindow(e);return parseInt(t.style.zIndex||"0")}moveToTop(e){if(this.getZindex(e)!==this._index){this.ensureWindow(e).style.zIndex=(++this._index).toString()}}removeWindow(e){this.unregisterWindow(e)}}const a=new WeakMap;function s(e=document){const t=e.getElementById("overlap-manager-root");if(null!==t)return(0,o.ensureDefined)(a.get(t));{const t=new r(e),n=function(e){const t=e.createElement("div");return t.style.position="absolute",t.style.zIndex=150..toString(),t.style.top="0px",t.style.left="0px",t.id="overlap-manager-root",t}(e);return a.set(n,t),t.setContainer(n),e.body.appendChild(n),t}}},86431:(e,t,n)=>{"use strict";n.d(t,{makeOverlapable:()=>r});var o=n(59496),i=n(65718);function r(e){return class extends o.PureComponent{render(){const{isOpened:t,root:n}=this.props;if(!t)return null;const r=o.createElement(e,{
...this.props,zIndex:150});return"parent"===n?r:o.createElement(i.Portal,null,r)}}}},29197:(e,t,n)=>{"use strict";n.d(t,{CloseDelegateContext:()=>r});var o=n(59496),i=n(59064);const r=o.createContext(i.globalCloseDelegate)},65718:(e,t,n)=>{"use strict";n.d(t,{Portal:()=>l,PortalContext:()=>c});var o=n(59496),i=n(87995),r=n(9423),a=n(88216),s=n(50655);class l extends o.PureComponent{constructor(){super(...arguments),this._uuid=(0,r.guid)()}componentWillUnmount(){this._manager().removeWindow(this._uuid)}render(){const e=this._manager().ensureWindow(this._uuid,this.props.layerOptions);return e.style.top=this.props.top||"",e.style.bottom=this.props.bottom||"",e.style.left=this.props.left||"",e.style.right=this.props.right||"",e.style.pointerEvents=this.props.pointerEvents||"",i.createPortal(o.createElement(c.Provider,{value:this},this.props.children),e)}moveToTop(){this._manager().moveToTop(this._uuid)}_manager(){return null===this.context?(0,a.getRootOverlapManager)():this.context}}l.contextType=s.SlotContext;const c=o.createContext(null)},96040:(e,t,n)=>{"use strict";n.d(t,{RemoveButton:()=>d});var o=n(28353),i=n(59496),r=n(97754),a=n(9745),s=n(73366),l=n(73432);const c={remove:(0,o.t)("Remove")};function d(e){const{className:t,isActive:n,onClick:o,onMouseDown:d,title:u,hidden:p,"data-name":h="remove-button",...m}=e;return i.createElement(a.Icon,{...m,"data-name":h,className:r(l.button,"apply-common-tooltip",n&&l.active,p&&l.hidden,t),icon:s,onClick:o,onMouseDown:d,title:u||c.remove})}},50655:(e,t,n)=>{"use strict";n.d(t,{Slot:()=>i,SlotContext:()=>r});var o=n(59496);class i extends o.Component{shouldComponentUpdate(){return!1}render(){return o.createElement("div",{style:{position:"fixed",zIndex:150,left:0,top:0},ref:this.props.reference})}}const r=o.createContext(null)},14758:(e,t,n)=>{"use strict";n.d(t,{SubmenuContext:()=>i,SubmenuHandler:()=>r});var o=n(59496);const i=o.createContext(null);function r(e){const[t,n]=(0,o.useState)(null),r=(0,o.useRef)(null),a=(0,o.useRef)(new Map);return(0,o.useEffect)(()=>()=>{null!==r.current&&clearTimeout(r.current)},[]),o.createElement(i.Provider,{value:{current:t,setCurrent:function(e){null!==r.current&&(clearTimeout(r.current),r.current=null);null===t?n(e):r.current=setTimeout(()=>{r.current=null,n(e)},100)},registerSubmenu:function(e,t){return a.current.set(e,t),()=>{a.current.delete(e)}},isSubmenuNode:function(e){return Array.from(a.current.values()).some(t=>t(e))}}},e.children)}},40173:(e,t,n)=>{"use strict";function o(e,t,n={}){const o=Object.assign({},t);for(const i of Object.keys(t)){const r=n[i]||i;r in e&&(o[i]=[e[r],t[i]].join(" "))}return o}function i(e,t,n={}){return Object.assign({},e,o(e,t,n))}n.d(t,{weakComposeClasses:()=>o,mergeThemes:()=>i})},31328:e=>{
e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path fill="currentColor" fillRule="evenodd" clipRule="evenodd" d="M7.5 13a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zM5 14.5a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0zm9.5-1.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zM12 14.5a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0zm9.5-1.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zM19 14.5a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0z"/></svg>'},73366:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18"><path fill="currentColor" d="M9.707 9l4.647-4.646-.707-.708L9 8.293 4.354 3.646l-.708.708L8.293 9l-4.647 4.646.708.708L9 9.707l4.646 4.647.708-.707L9.707 9z"/></svg>'},19726:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path fill="currentColor" d="M4 13h5v1H4v-1zM12 13h5v1h-5v-1zM20 13h5v1h-5v-1z"/></svg>'},56326:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="currentColor"><circle cx="9" cy="14" r="1"/><circle cx="4" cy="14" r="1"/><circle cx="14" cy="14" r="1"/><circle cx="19" cy="14" r="1"/><circle cx="24" cy="14" r="1"/></svg>'},50303:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M5.5 7a.5.5 0 0 0 0 1h17a.5.5 0 0 0 0-1h-17Zm0 6a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1h-3Zm7 0a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1h-3Zm6.5.5c0-.28.22-.5.5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5ZM7 20a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm4 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm3 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm5-1a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm3 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"/></svg>'},20618:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path stroke="currentColor" d="M4 13.5h20"/></svg>'},56775:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M4.5 13.5H24m-19.5 0L8 17m-3.5-3.5L8 10"/></svg>'},23848:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M8.5 13.5a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm0 0H24"/></svg>'},86508:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M14 21h-3a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h3c2 0 4 1 4 3 0 1 0 2-1.5 3 1.5.5 2.5 2 2.5 4 0 2.75-2.638 4-5 4zM12 9l.004 3c.39.026.82 0 1.25 0C14.908 12 16 11.743 16 10.5c0-1.1-.996-1.5-2.5-1.5-.397 0-.927-.033-1.5 0zm0 5v5h1.5c1.5 0 3.5-.5 3.5-2.5S15 14 13.5 14c-.5 0-.895-.02-1.5 0z"/></svg>'},27603:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M12.143 20l1.714-12H12V7h5v1h-2.143l-1.714 12H15v1h-5v-1h2.143z"/></svg>'},75614:e=>{
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M13.98 6.02L14.5 6c2.18 0 4.16.8 5.66 2.14l-5.66 5.65-2.31-2.3a8.43 8.43 0 0 0 1.55-3.64 14.01 14.01 0 0 0 .24-1.83zm-1.01.12a8.45 8.45 0 0 0-4.13 2l2.64 2.63a7.59 7.59 0 0 0 1.28-3.12c.12-.59.18-1.12.2-1.51zm-4.83 2.7a8.45 8.45 0 0 0-2 4.13c.39-.03.92-.1 1.51-.21a7.59 7.59 0 0 0 3.12-1.28L8.14 8.84zm-2.12 5.14a8.48 8.48 0 0 0 2.12 6.18l5.65-5.66-2.3-2.31a8.43 8.43 0 0 1-3.64 1.55 14.03 14.03 0 0 1-1.83.24zm2.82 6.88a8.46 8.46 0 0 0 5.13 2.12v-.07A8.95 8.95 0 0 1 16.3 17l-1.8-1.8-5.66 5.65zM14.97 23c2-.1 3.8-.9 5.19-2.13L17 17.72a7.94 7.94 0 0 0-2.04 5.27zm5.9-2.83a8.46 8.46 0 0 0 2.11-5.13h-.02a10.62 10.62 0 0 0-5.2 2l3.1 3.13zm2.12-6.13c-.1-2-.9-3.8-2.13-5.19l-5.65 5.66 1.83 1.83a11.6 11.6 0 0 1 5.95-2.3zM14.5 5A9.46 9.46 0 0 0 5 14.5c0 5.28 4.22 9.5 9.5 9.5s9.5-4.22 9.5-9.5S19.78 5 14.5 5z"/></svg>'},36311:e=>{
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M4.54 3.2l.78-.59 5.49 4.5 1.43 1.07a5.28 5.28 0 0 1 2.19-2.3 9.19 9.19 0 0 1 1.88-.85h.04l.01-.01.14.48.42-.28v.01l.01.02a3.14 3.14 0 0 1 .16.26l.37.72c.2.45.4 1.02.5 1.64a2.13 2.13 0 0 1 1.89.46l.18.16.03.02.18.16c.22.16.42.27.81.25a5.9 5.9 0 0 0 2.2-.86l.66-.36.09.75a5.98 5.98 0 0 1-1.7 5.1 6.87 6.87 0 0 1-1.7 1.23 19.97 19.97 0 0 1 .48 2.48c.25 1.73.42 4.08.06 6.5A1.46 1.46 0 0 1 19.68 25h-7.71a1.5 1.5 0 0 1-1.4-2.06l1-2.47c-.18.02-.37.03-.58.03a3 3 0 0 1-1.53-.4 6.84 6.84 0 0 1-1.6.64c-1.08.27-2.55.29-3.72-.89a4.06 4.06 0 0 1-.96-3 5.1 5.1 0 0 1 2-3.74 98.5 98.5 0 0 0 2.7-2.24L4.55 3.2zM16.5 5.5l-.14-.48.35-.1.2.3-.41.28zm-7.87 6.06a57.48 57.48 0 0 1-2.19 1.82l.49.26c.65.37 1.48.9 1.97 1.56a5.78 5.78 0 0 1 1.14 4.07l.06.03c.19.1.49.2.9.2.68 0 .95-.11 1.03-.16v-.03l.97.19h-.5.5v.03a.75.75 0 0 1-.01.1.74.74 0 0 1-.09.21l-1.39 3.47a.5.5 0 0 0 .47.69h7.71c.24 0 .43-.17.47-.38a22 22 0 0 0-.06-6.22 24.4 24.4 0 0 0-.56-2.71 11.35 11.35 0 0 0-.94-1.52 7.1 7.1 0 0 0-2.31-2.22l-.62-.31.49-.5A3.03 3.03 0 0 0 17 8.6a1.2 1.2 0 0 0 .01-.1c0-.65-.22-1.33-.46-1.86-.1-.21-.18-.4-.26-.54a8.07 8.07 0 0 0-1.34.64c-.9.54-1.74 1.32-1.95 2.36v.03l-.02.03L12.5 9l.47.16v.02a2.97 2.97 0 0 1-.1.26 5.9 5.9 0 0 1-.31.62c-.27.46-.7 1.07-1.34 1.39-.63.31-1.38.3-1.9.23a5.83 5.83 0 0 1-.7-.12zm3.26-2.39L10.2 7.9l-.02-.01L6.3 4.7l2.57 5.88h.01c.14.04.34.08.57.11.47.06.97.05 1.34-.14.36-.18.68-.57.91-.99.08-.14.15-.27.2-.39zm8.32 4.68a5.47 5.47 0 0 0 1.37-1.02 4.88 4.88 0 0 0 1.46-3.53c-.8.39-1.41.58-1.92.61-.7.05-1.14-.18-1.49-.45a5.6 5.6 0 0 1-.22-.19l-.03-.03-.17-.13a1.4 1.4 0 0 0-.33-.22c-.18-.07-.44-.12-.93 0l-.1.4c-.1.3-.28.69-.58 1.09.87.59 1.6 1.46 2.14 2.2a14.92 14.92 0 0 1 .8 1.27zM9.05 19.19v-.09a4.78 4.78 0 0 0-.96-3.3 5.56 5.56 0 0 0-1.65-1.29c-.3-.17-.6-.3-.8-.4l-.05-.03a4.05 4.05 0 0 0-1.4 2.82 3.1 3.1 0 0 0 .66 2.25c.83.82 1.86.84 2.78.62a5.71 5.71 0 0 0 1.42-.58zm4.26-5.87c-.3.24-.74.54-1.18.66-.37.1-.81.1-1.12.08a6.95 6.95 0 0 1-.54-.06h-.05l.08-.5.08-.5.03.01a5.02 5.02 0 0 0 1.26 0c.24-.06.54-.25.83-.47a6.1 6.1 0 0 0 .42-.37l.02-.02.36.35.35.36h-.01l-.03.04a6.09 6.09 0 0 1-.5.42zM6 17h1v-1H6v1z"/></svg>'},72843:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="none"><path stroke="currentColor" d="M7.5 24v-5.5m0 0s2.7-1.1 4.5-1c2.1.12 2.9 1.88 5 2 1.8.1 4.5-1 4.5-1v-6m-14 6v-6m0 0v-6s2.7-1.1 4.5-1c2.1.12 2.9 1.88 5 2 1.8.1 4.5-1 4.5-1v6m-14 0s2.7-1.1 4.5-1c2.1.12 2.9 1.88 5 2 1.8.1 4.5-1 4.5-1"/></svg>'},31006:e=>{
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M12.5 8h1.36l-.85-3.38.98-.24.9 3.62h7.64a1.34 1.34 0 0 1 .2.02c.13.02.31.07.5.16.18.09.38.24.53.46.15.24.24.52.24.86 0 .34-.09.62-.24.86a1.38 1.38 0 0 1-.79.56L22 24.54l-.03.46H6.5c-1 0-1.64-.68-1.99-1.23a4.4 4.4 0 0 1-.38-.78l-.01-.04c-.1-.03-.22-.07-.34-.13a1.36 1.36 0 0 1-.54-.46A1.51 1.51 0 0 1 3 21.5c0-.34.09-.62.24-.86.15-.22.35-.37.54-.46.1-.05.2-.09.28-.11a6.6 6.6 0 0 1 .96-2.34C5.92 16.35 7.56 15 10.5 15c.72 0 1.36.08 1.93.22l-.4-4.3a1.38 1.38 0 0 1-.8-.57A1.51 1.51 0 0 1 11 9.5c0-.34.09-.62.24-.86.15-.22.35-.37.54-.46a1.73 1.73 0 0 1 .7-.18h.02v.5V8zm.96 7.57a5.73 5.73 0 0 1 2.52 2.16 6.86 6.86 0 0 1 .95 2.34 1.38 1.38 0 0 1 .82.58c.16.23.25.51.25.85 0 .34-.09.62-.24.86-.15.22-.35.37-.54.46-.12.06-.24.1-.34.13l-.01.04a4.4 4.4 0 0 1-.54 1.01h4.7l.93-13h-8.91l.41 4.57zM14.5 9h8a.73.73 0 0 1 .28.07c.06.04.11.08.15.13.03.05.07.14.07.3 0 .16-.04.25-.07.3a.38.38 0 0 1-.15.13.73.73 0 0 1-.27.07H12.5a.73.73 0 0 1-.28-.07.38.38 0 0 1-.15-.13.52.52 0 0 1-.07-.3c0-.16.04-.25.07-.3.04-.05.09-.1.15-.13A.73.73 0 0 1 12.5 9h2.01zm1.4 11a5.8 5.8 0 0 0-.76-1.73C14.41 17.15 13.06 16 10.5 16c-2.56 0-3.91 1.15-4.64 2.27A5.86 5.86 0 0 0 5.1 20h10.78zM4.5 21a.72.72 0 0 0-.28.07.38.38 0 0 0-.15.13.52.52 0 0 0-.07.3c0 .16.04.25.07.3.04.05.09.1.15.13a.73.73 0 0 0 .27.07H16.5a.72.72 0 0 0 .28-.07.38.38 0 0 0 .15-.13.52.52 0 0 0 .07-.3.52.52 0 0 0-.07-.3.38.38 0 0 0-.15-.13.73.73 0 0 0-.27-.07H4.5zm.73 2l.13.23c.28.45.65.77 1.14.77h8c.5 0 .86-.32 1.14-.77.05-.07.1-.15.13-.23H5.23zM11 17v1h-1v-1h1zm-3 1h1v1H8v-1zm4 1v-1h1v1h-1z"/></svg>'},42925:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M9.5 21H9h.5zm8 0H17h.5zm-6-10H11v1h.5v-1zm4 1h.5v-1h-.5v1zm2 7.5h.5-.5zm.29-1.59A7.97 7.97 0 0 0 21 11.5h-1a6.97 6.97 0 0 1-2.79 5.59l.58.82zM21 11.5A7.5 7.5 0 0 0 13.5 4v1a6.5 6.5 0 0 1 6.5 6.5h1zM13.5 4A7.5 7.5 0 0 0 6 11.5h1A6.5 6.5 0 0 1 13.5 5V4zM6 11.5a7.98 7.98 0 0 0 3.21 6.41l.57-.82A6.98 6.98 0 0 1 7 11.5H6zM9 21a1 1 0 0 0 1 1v-1H9zm8 1a1 1 0 0 0 1-1h-1v1zm-6-.5V23h1v-1.5h-1zm0 1.5a1 1 0 0 0 1 1v-1h-1zm1 1h3v-1h-3v1zm3 0a1 1 0 0 0 1-1h-1v1zm1-1v-1.5h-1V23h1zm-3-11.5v6h1v-6h-1zM9.5 20h8v-1h-8v1zM9 17.5v2h1v-2H9zm0 2V21h1v-1.5H9zm9 1.5v-1.5h-1V21h1zm0-1.5v-2h-1v2h1zM9.5 18h4v-1h-4v1zm4 0h4v-1h-4v1zm-2-6h2v-1h-2v1zm2 0h2v-1h-2v1zM10 22h1.5v-1H10v1zm1.5 0h4v-1h-4v1zm4 0H17v-1h-1.5v1z"/></svg>'},80781:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M6 14.5C6 9.78 9.78 6 14.5 6c4.72 0 8.5 3.78 8.5 8.5 0 4.72-3.78 8.5-8.5 8.5A8.46 8.46 0 0 1 6 14.5zM14.5 5A9.46 9.46 0 0 0 5 14.5c0 5.28 4.22 9.5 9.5 9.5s9.5-4.22 9.5-9.5S19.78 5 14.5 5zM14 16V9h1v6h4v1h-5z"/></svg>'},67978:e=>{
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M6 14.5C6 9.78 9.78 6 14.5 6c4.72 0 8.5 3.78 8.5 8.5 0 4.72-3.78 8.5-8.5 8.5A8.46 8.46 0 0 1 6 14.5zM14.5 5A9.46 9.46 0 0 0 5 14.5c0 5.28 4.22 9.5 9.5 9.5s9.5-4.22 9.5-9.5S19.78 5 14.5 5zM12 12a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm4 1a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-6 4l-.43.26v.01l.03.03a3.55 3.55 0 0 0 .3.4 5.7 5.7 0 0 0 9.22 0 5.42 5.42 0 0 0 .28-.4l.02-.03v-.01L19 17l-.43-.26v.02a2.45 2.45 0 0 1-.24.32c-.17.21-.43.5-.78.79a4.71 4.71 0 0 1-6.88-.8 4.32 4.32 0 0 1-.23-.31l-.01-.02L10 17z"/></svg>'},40526:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M5.6 15.43A6.19 6.19 0 0 1 14 6.36a6.19 6.19 0 0 1 8.4 9.08l-.03.02-7.3 7.31a1.5 1.5 0 0 1-2.13 0l-7.3-7.3-.03-.03m.71-.7v-.01a5.19 5.19 0 0 1 7.33-7.34v.01c.2.2.51.19.7 0a5.19 5.19 0 0 1 7.34 7.33l-.03.02-7.3 7.31a.5.5 0 0 1-.71 0l-7.3-7.3-.03-.02z"/></svg>'},1033:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M22.87 6.44c.09-.78-.53-1.4-1.3-1.31-1.43.15-3.43.48-5.42 1.2a11.8 11.8 0 0 0-5.23 3.44L9.86 11.9l6.24 6.24 2.13-1.06a11.8 11.8 0 0 0 3.44-5.23c.72-1.99 1.05-4 1.2-5.41zm-4.93 11.9l-1.72.86-.04.02h-.04l-2.2.67v.01a19.68 19.68 0 0 0-.13 3.33c.01.14.08.22.17.26.08.04.2.05.32-.03a18.83 18.83 0 0 0 2.79-2.26 8.18 8.18 0 0 0 .44-1.1c.16-.51.33-1.12.41-1.76zm-.44 3.16l.35.35-.01.02-.05.05a16.85 16.85 0 0 1-.83.76c-.54.47-1.3 1.08-2.1 1.61a1.3 1.3 0 0 1-2.05-.98 16.46 16.46 0 0 1 .09-3.08l-.16.05a1.5 1.5 0 0 1-1.53-.36l-3.13-3.13c-.4-.4-.54-1-.36-1.53l.05-.16-.36.04c-.7.06-1.62.11-2.54.06a1.3 1.3 0 0 1-1.13-.8c-.18-.42-.13-.94.17-1.35a87.55 87.55 0 0 1 2.15-2.8l.04-.04v-.02l.4.31-.22-.45.03-.01a5.93 5.93 0 0 1 .34-.16c.23-.1.55-.22.94-.35A9.77 9.77 0 0 1 10.26 9a12.9 12.9 0 0 1 5.55-3.61c2.09-.76 4.18-1.1 5.65-1.26 1.41-.15 2.56 1 2.4 2.41a24.04 24.04 0 0 1-1.25 5.65A12.9 12.9 0 0 1 19 17.74a9.77 9.77 0 0 1-.88 3.61 9.18 9.18 0 0 1-.16.34v.03h-.01l-.45-.22zm0 0l.45.22-.04.08-.06.05-.35-.35zm-11-11l-.4-.31.08-.09.1-.05.22.45zm3.16-.44a9.61 9.61 0 0 0-2.84.84l-.13.16a109.83 109.83 0 0 0-1.97 2.58.4.4 0 0 0-.06.38c.04.1.12.17.27.18a16.05 16.05 0 0 0 3.18-.15l.66-2.2.01-.03.02-.04.86-1.72zm5.4 8.45l-5.57-5.56-.51 1.7-.31.92a.5.5 0 0 0 .12.51l3.13 3.13a.5.5 0 0 0 .5.12l.92-.3h.02l1.7-.52zm-10.91.64l2-2 .7.7-2 2-.7-.7zm0 4l4-4 .7.7-4 4-.7-.7zm4 0l2-2 .7.7-2 2-.7-.7zM16 10.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0zM17.5 8a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5z"/></svg>'}}]);