文件操作 - main.min.js
返回文件管理
返回主菜单
删除本文件
文件: /storage/v12552/stanleysteamer/public_html/wp-content/themes/bricks/assets/js/main.min.js
编辑文件内容
!function(){var e,t,n,i,r,o={3:function(e){"use strict";e.exports={__proto__:null,"align-items":"flex-start | flex-end | center | baseline | stretch","align-content":"flex-start | flex-end | center | space-between | space-around | stretch","align-self":"auto | flex-start | flex-end | center | baseline | stretch",all:"initial | inherit | unset","-webkit-align-items":"flex-start | flex-end | center | baseline | stretch","-webkit-align-content":"flex-start | flex-end | center | space-between | space-around | stretch","-webkit-align-self":"auto | flex-start | flex-end | center | baseline | stretch","alignment-adjust":"auto | baseline | before-edge | text-before-edge | middle | central | after-edge | text-after-edge | ideographic | alphabetic | hanging | mathematical | <percentage> | <length>","alignment-baseline":"auto | baseline | use-script | before-edge | text-before-edge | after-edge | text-after-edge | central | middle | ideographic | alphabetic | hanging | mathematical",animation:1,"animation-delay":"<time>#","animation-direction":"<single-animation-direction>#","animation-duration":"<time>#","animation-fill-mode":"[ none | forwards | backwards | both ]#","animation-iteration-count":"[ <number> | infinite ]#","animation-name":"[ none | <single-animation-name> ]#","animation-play-state":"[ running | paused ]#","animation-timing-function":1,"-moz-animation-delay":"<time>#","-moz-animation-direction":"[ normal | alternate ]#","-moz-animation-duration":"<time>#","-moz-animation-iteration-count":"[ <number> | infinite ]#","-moz-animation-name":"[ none | <single-animation-name> ]#","-moz-animation-play-state":"[ running | paused ]#","-ms-animation-delay":"<time>#","-ms-animation-direction":"[ normal | alternate ]#","-ms-animation-duration":"<time>#","-ms-animation-iteration-count":"[ <number> | infinite ]#","-ms-animation-name":"[ none | <single-animation-name> ]#","-ms-animation-play-state":"[ running | paused ]#","-webkit-animation-delay":"<time>#","-webkit-animation-direction":"[ normal | alternate ]#","-webkit-animation-duration":"<time>#","-webkit-animation-fill-mode":"[ none | forwards | backwards | both ]#","-webkit-animation-iteration-count":"[ <number> | infinite ]#","-webkit-animation-name":"[ none | <single-animation-name> ]#","-webkit-animation-play-state":"[ running | paused ]#","-o-animation-delay":"<time>#","-o-animation-direction":"[ normal | alternate ]#","-o-animation-duration":"<time>#","-o-animation-iteration-count":"[ <number> | infinite ]#","-o-animation-name":"[ none | <single-animation-name> ]#","-o-animation-play-state":"[ running | paused ]#",appearance:"none | auto","-moz-appearance":"none | button | button-arrow-down | button-arrow-next | button-arrow-previous | button-arrow-up | button-bevel | button-focus | caret | checkbox | checkbox-container | checkbox-label | checkmenuitem | dualbutton | groupbox | listbox | listitem | menuarrow | menubar | menucheckbox | menuimage | menuitem | menuitemtext | menulist | menulist-button | menulist-text | menulist-textfield | menupopup | menuradio | menuseparator | meterbar | meterchunk | progressbar | progressbar-vertical | progresschunk | progresschunk-vertical | radio | radio-container | radio-label | radiomenuitem | range | range-thumb | resizer | resizerpanel | scale-horizontal | scalethumbend | scalethumb-horizontal | scalethumbstart | scalethumbtick | scalethumb-vertical | scale-vertical | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical | searchfield | separator | sheet | spinner | spinner-downbutton | spinner-textfield | spinner-upbutton | splitter | statusbar | statusbarpanel | tab | tabpanel | tabpanels | tab-scroll-arrow-back | tab-scroll-arrow-forward | textfield | textfield-multiline | toolbar | toolbarbutton | toolbarbutton-dropdown | toolbargripper | toolbox | tooltip | treeheader | treeheadercell | treeheadersortarrow | treeitem | treeline | treetwisty | treetwistyopen | treeview | -moz-mac-unified-toolbar | -moz-win-borderless-glass | -moz-win-browsertabbar-toolbox | -moz-win-communicationstext | -moz-win-communications-toolbox | -moz-win-exclude-glass | -moz-win-glass | -moz-win-mediatext | -moz-win-media-toolbox | -moz-window-button-box | -moz-window-button-box-maximized | -moz-window-button-close | -moz-window-button-maximize | -moz-window-button-minimize | -moz-window-button-restore | -moz-window-frame-bottom | -moz-window-frame-left | -moz-window-frame-right | -moz-window-titlebar | -moz-window-titlebar-maximized","-ms-appearance":"none | icon | window | desktop | workspace | document | tooltip | dialog | button | push-button | hyperlink | radio | radio-button | checkbox | menu-item | tab | menu | menubar | pull-down-menu | pop-up-menu | list-menu | radio-group | checkbox-group | outline-tree | range | field | combo-box | signature | password | normal","-webkit-appearance":"none | button | button-bevel | caps-lock-indicator | caret | checkbox | default-button | listbox\t| listitem | media-fullscreen-button | media-mute-button | media-play-button | media-seek-back-button\t| media-seek-forward-button\t| media-slider | media-sliderthumb | menulist\t| menulist-button\t| menulist-text\t| menulist-textfield | push-button\t| radio\t| searchfield\t| searchfield-cancel-button\t| searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb-horizontal | sliderthumb-vertical\t| square-button\t| textarea\t| textfield\t| scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbargripper-horizontal | scrollbargripper-vertical | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical","-o-appearance":"none | window | desktop | workspace | document | tooltip | dialog | button | push-button | hyperlink | radio | radio-button | checkbox | menu-item | tab | menu | menubar | pull-down-menu | pop-up-menu | list-menu | radio-group | checkbox-group | outline-tree | range | field | combo-box | signature | password | normal",azimuth:"<azimuth>","backface-visibility":"visible | hidden",background:1,"background-attachment":"<attachment>#","background-clip":"<box>#","background-color":"<color>","background-image":"<bg-image>#","background-origin":"<box>#","background-position":"<bg-position>","background-repeat":"<repeat-style>#","background-size":"<bg-size>#","baseline-shift":"baseline | sub | super | <percentage> | <length>",behavior:1,binding:1,bleed:"<length>","bookmark-label":"<content> | <attr> | <string>","bookmark-level":"none | <integer>","bookmark-state":"open | closed","bookmark-target":"none | <uri> | <attr>",border:"<border-width> || <border-style> || <color>","border-bottom":"<border-width> || <border-style> || <color>","border-bottom-color":"<color>","border-bottom-left-radius":"<x-one-radius>","border-bottom-right-radius":"<x-one-radius>","border-bottom-style":"<border-style>","border-bottom-width":"<border-width>","border-collapse":"collapse | separate","border-color":"<color>{1,4}","border-image":1,"border-image-outset":"[ <length> | <number> ]{1,4}","border-image-repeat":"[ stretch | repeat | round ]{1,2}","border-image-slice":"<border-image-slice>","border-image-source":"<image> | none","border-image-width":"[ <length> | <percentage> | <number> | auto ]{1,4}","border-left":"<border-width> || <border-style> || <color>","border-left-color":"<color>","border-left-style":"<border-style>","border-left-width":"<border-width>","border-radius":"<border-radius>","border-right":"<border-width> || <border-style> || <color>","border-right-color":"<color>","border-right-style":"<border-style>","border-right-width":"<border-width>","border-spacing":"<length>{1,2}","border-style":"<border-style>{1,4}","border-top":"<border-width> || <border-style> || <color>","border-top-color":"<color>","border-top-left-radius":"<x-one-radius>","border-top-right-radius":"<x-one-radius>","border-top-style":"<border-style>","border-top-width":"<border-width>","border-width":"<border-width>{1,4}",bottom:"<margin-width>","-moz-box-align":"start | end | center | baseline | stretch","-moz-box-decoration-break":"slice | clone","-moz-box-direction":"normal | reverse","-moz-box-flex":"<number>","-moz-box-flex-group":"<integer>","-moz-box-lines":"single | multiple","-moz-box-ordinal-group":"<integer>","-moz-box-orient":"horizontal | vertical | inline-axis | block-axis","-moz-box-pack":"start | end | center | justify","-o-box-decoration-break":"slice | clone","-webkit-box-align":"start | end | center | baseline | stretch","-webkit-box-decoration-break":"slice | clone","-webkit-box-direction":"normal | reverse","-webkit-box-flex":"<number>","-webkit-box-flex-group":"<integer>","-webkit-box-lines":"single | multiple","-webkit-box-ordinal-group":"<integer>","-webkit-box-orient":"horizontal | vertical | inline-axis | block-axis","-webkit-box-pack":"start | end | center | justify","box-decoration-break":"slice | clone","box-shadow":"<box-shadow>","box-sizing":"content-box | border-box","break-after":"auto | always | avoid | left | right | page | column | avoid-page | avoid-column","break-before":"auto | always | avoid | left | right | page | column | avoid-page | avoid-column","break-inside":"auto | avoid | avoid-page | avoid-column","caption-side":"top | bottom",clear:"none | right | left | both",clip:"<shape> | auto","-webkit-clip-path":"<clip-source> | <clip-path> | none","clip-path":"<clip-source> | <clip-path> | none","clip-rule":"nonzero | evenodd",color:"<color>","color-interpolation":"auto | sRGB | linearRGB","color-interpolation-filters":"auto | sRGB | linearRGB","color-profile":1,"color-rendering":"auto | optimizeSpeed | optimizeQuality","column-count":"<integer> | auto","column-fill":"auto | balance","column-gap":"<length> | normal","column-rule":"<border-width> || <border-style> || <color>","column-rule-color":"<color>","column-rule-style":"<border-style>","column-rule-width":"<border-width>","column-span":"none | all","column-width":"<length> | auto",columns:1,content:1,"counter-increment":1,"counter-reset":1,crop:"<shape> | auto",cue:"cue-after | cue-before","cue-after":1,"cue-before":1,cursor:1,direction:"ltr | rtl",display:"inline | block | list-item | inline-block | table | inline-table | table-row-group | table-header-group | table-footer-group | table-row | table-column-group | table-column | table-cell | table-caption | grid | inline-grid | run-in | ruby | ruby-base | ruby-text | ruby-base-container | ruby-text-container | contents | none | -moz-box | -moz-inline-block | -moz-inline-box | -moz-inline-grid | -moz-inline-stack | -moz-inline-table | -moz-grid | -moz-grid-group | -moz-grid-line | -moz-groupbox | -moz-deck | -moz-popup | -moz-stack | -moz-marker | -webkit-box | -webkit-inline-box | -ms-flexbox | -ms-inline-flexbox | flex | -webkit-flex | inline-flex | -webkit-inline-flex","dominant-baseline":"auto | use-script | no-change | reset-size | ideographic | alphabetic | hanging | mathematical | central | middle | text-after-edge | text-before-edge","drop-initial-after-adjust":"central | middle | after-edge | text-after-edge | ideographic | alphabetic | mathematical | <percentage> | <length>","drop-initial-after-align":"baseline | use-script | before-edge | text-before-edge | after-edge | text-after-edge | central | middle | ideographic | alphabetic | hanging | mathematical","drop-initial-before-adjust":"before-edge | text-before-edge | central | middle | hanging | mathematical | <percentage> | <length>","drop-initial-before-align":"caps-height | baseline | use-script | before-edge | text-before-edge | after-edge | text-after-edge | central | middle | ideographic | alphabetic | hanging | mathematical","drop-initial-size":"auto | line | <length> | <percentage>","drop-initial-value":"<integer>",elevation:"<angle> | below | level | above | higher | lower","empty-cells":"show | hide","enable-background":1,fill:"<paint>","fill-opacity":"<opacity-value>","fill-rule":"nonzero | evenodd",filter:"<filter-function-list> | none",fit:"fill | hidden | meet | slice","fit-position":1,flex:"<flex>","flex-basis":"<width>","flex-direction":"row | row-reverse | column | column-reverse","flex-flow":"<flex-direction> || <flex-wrap>","flex-grow":"<number>","flex-shrink":"<number>","flex-wrap":"nowrap | wrap | wrap-reverse","-webkit-flex":"<flex>","-webkit-flex-basis":"<width>","-webkit-flex-direction":"row | row-reverse | column | column-reverse","-webkit-flex-flow":"<flex-direction> || <flex-wrap>","-webkit-flex-grow":"<number>","-webkit-flex-shrink":"<number>","-webkit-flex-wrap":"nowrap | wrap | wrap-reverse","-ms-flex":"<flex>","-ms-flex-align":"start | end | center | stretch | baseline","-ms-flex-direction":"row | row-reverse | column | column-reverse","-ms-flex-order":"<number>","-ms-flex-pack":"start | end | center | justify","-ms-flex-wrap":"nowrap | wrap | wrap-reverse",float:"left | right | none","float-offset":1,"flood-color":1,"flood-opacity":"<opacity-value>",font:"<font-shorthand> | caption | icon | menu | message-box | small-caption | status-bar","font-family":"<font-family>","font-feature-settings":"<feature-tag-value> | normal","font-kerning":"auto | normal | none","font-size":"<font-size>","font-size-adjust":"<number> | none","font-stretch":"<font-stretch>","font-style":"<font-style>","font-variant":"<font-variant> | normal | none","font-variant-alternates":"<font-variant-alternates> | normal","font-variant-caps":"<font-variant-caps> | normal","font-variant-east-asian":"<font-variant-east-asian> | normal","font-variant-ligatures":"<font-variant-ligatures> | normal | none","font-variant-numeric":"<font-variant-numeric> | normal","font-variant-position":"normal | sub | super","font-weight":"<font-weight>","glyph-orientation-horizontal":"<glyph-angle>","glyph-orientation-vertical":"auto | <glyph-angle>",grid:1,"grid-area":1,"grid-auto-columns":1,"grid-auto-flow":1,"grid-auto-position":1,"grid-auto-rows":1,"grid-cell-stacking":"columns | rows | layer","grid-column":1,"grid-columns":1,"grid-column-align":"start | end | center | stretch","grid-column-sizing":1,"grid-column-start":1,"grid-column-end":1,"grid-column-span":"<integer>","grid-flow":"none | rows | columns","grid-layer":"<integer>","grid-row":1,"grid-rows":1,"grid-row-align":"start | end | center | stretch","grid-row-start":1,"grid-row-end":1,"grid-row-span":"<integer>","grid-row-sizing":1,"grid-template":1,"grid-template-areas":1,"grid-template-columns":1,"grid-template-rows":1,"hanging-punctuation":1,height:"<margin-width> | <content-sizing>","hyphenate-after":"<integer> | auto","hyphenate-before":"<integer> | auto","hyphenate-character":"<string> | auto","hyphenate-lines":"no-limit | <integer>","hyphenate-resource":1,hyphens:"none | manual | auto",icon:1,"image-orientation":"angle | auto","image-rendering":"auto | optimizeSpeed | optimizeQuality","image-resolution":1,"ime-mode":"auto | normal | active | inactive | disabled","inline-box-align":"last | <integer>","justify-content":"flex-start | flex-end | center | space-between | space-around","-webkit-justify-content":"flex-start | flex-end | center | space-between | space-around",kerning:"auto | <length>",left:"<margin-width>","letter-spacing":"<length> | normal","line-height":"<line-height>","line-break":"auto | loose | normal | strict","line-stacking":1,"line-stacking-ruby":"exclude-ruby | include-ruby","line-stacking-shift":"consider-shifts | disregard-shifts","line-stacking-strategy":"inline-line-height | block-line-height | max-height | grid-height","list-style":1,"list-style-image":"<uri> | none","list-style-position":"inside | outside","list-style-type":"disc | circle | square | decimal | decimal-leading-zero | lower-roman | upper-roman | lower-greek | lower-latin | upper-latin | armenian | georgian | lower-alpha | upper-alpha | none",margin:"<margin-width>{1,4}","margin-bottom":"<margin-width>","margin-left":"<margin-width>","margin-right":"<margin-width>","margin-top":"<margin-width>",mark:1,"mark-after":1,"mark-before":1,marker:1,"marker-end":1,"marker-mid":1,"marker-start":1,marks:1,"marquee-direction":1,"marquee-play-count":1,"marquee-speed":1,"marquee-style":1,mask:1,"max-height":"<length> | <percentage> | <content-sizing> | none","max-width":"<length> | <percentage> | <content-sizing> | none","min-height":"<length> | <percentage> | <content-sizing> | contain-floats | -moz-contain-floats | -webkit-contain-floats","min-width":"<length> | <percentage> | <content-sizing> | contain-floats | -moz-contain-floats | -webkit-contain-floats","move-to":1,"nav-down":1,"nav-index":1,"nav-left":1,"nav-right":1,"nav-up":1,"object-fit":"fill | contain | cover | none | scale-down","object-position":"<position>",opacity:"<opacity-value>",order:"<integer>","-webkit-order":"<integer>",orphans:"<integer>",outline:1,"outline-color":"<color> | invert","outline-offset":1,"outline-style":"<border-style>","outline-width":"<border-width>",overflow:"visible | hidden | scroll | auto","overflow-style":1,"overflow-wrap":"normal | break-word","overflow-x":1,"overflow-y":1,padding:"<padding-width>{1,4}","padding-bottom":"<padding-width>","padding-left":"<padding-width>","padding-right":"<padding-width>","padding-top":"<padding-width>",page:1,"page-break-after":"auto | always | avoid | left | right","page-break-before":"auto | always | avoid | left | right","page-break-inside":"auto | avoid","page-policy":1,pause:1,"pause-after":1,"pause-before":1,perspective:1,"perspective-origin":1,phonemes:1,pitch:1,"pitch-range":1,"play-during":1,"pointer-events":"auto | none | visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all",position:"static | relative | absolute | fixed","presentation-level":1,"punctuation-trim":1,quotes:1,"rendering-intent":1,resize:1,rest:1,"rest-after":1,"rest-before":1,richness:1,right:"<margin-width>",rotation:1,"rotation-point":1,"ruby-align":1,"ruby-overhang":1,"ruby-position":1,"ruby-span":1,"shape-rendering":"auto | optimizeSpeed | crispEdges | geometricPrecision",size:1,speak:"normal | none | spell-out","speak-header":"once | always","speak-numeral":"digits | continuous","speak-punctuation":"code | none","speech-rate":1,src:1,"stop-color":1,"stop-opacity":"<opacity-value>",stress:1,"string-set":1,stroke:"<paint>","stroke-dasharray":"none | <dasharray>","stroke-dashoffset":"<percentage> | <length>","stroke-linecap":"butt | round | square","stroke-linejoin":"miter | round | bevel","stroke-miterlimit":"<miterlimit>","stroke-opacity":"<opacity-value>","stroke-width":"<percentage> | <length>","table-layout":"auto | fixed","tab-size":"<integer> | <length>",target:1,"target-name":1,"target-new":1,"target-position":1,"text-align":"left | right | center | justify | match-parent | start | end","text-align-last":1,"text-anchor":"start | middle | end","text-decoration":"<text-decoration-line> || <text-decoration-style> || <text-decoration-color>","text-decoration-color":"<text-decoration-color>","text-decoration-line":"<text-decoration-line>","text-decoration-style":"<text-decoration-style>","text-emphasis":1,"text-height":1,"text-indent":"<length> | <percentage>","text-justify":"auto | none | inter-word | inter-ideograph | inter-cluster | distribute | kashida","text-outline":1,"text-overflow":1,"text-rendering":"auto | optimizeSpeed | optimizeLegibility | geometricPrecision","text-shadow":1,"text-transform":"capitalize | uppercase | lowercase | none","text-wrap":"normal | none | avoid",top:"<margin-width>","-ms-touch-action":"auto | none | pan-x | pan-y | pan-left | pan-right | pan-up | pan-down | manipulation","touch-action":"auto | none | pan-x | pan-y | pan-left | pan-right | pan-up | pan-down | manipulation",transform:1,"transform-origin":1,"transform-style":1,transition:1,"transition-delay":1,"transition-duration":1,"transition-property":1,"transition-timing-function":1,"unicode-bidi":"normal | embed | isolate | bidi-override | isolate-override | plaintext","user-modify":"read-only | read-write | write-only","user-select":"none | text | toggle | element | elements | all","vertical-align":"auto | use-script | baseline | sub | super | top | text-top | central | middle | bottom | text-bottom | <percentage> | <length>",visibility:"visible | hidden | collapse","voice-balance":1,"voice-duration":1,"voice-family":1,"voice-pitch":1,"voice-pitch-range":1,"voice-rate":1,"voice-stress":1,"voice-volume":1,volume:1,"white-space":"normal | pre | nowrap | pre-wrap | pre-line | -pre-wrap | -o-pre-wrap | -moz-pre-wrap | -hp-pre-wrap","white-space-collapse":1,widows:"<integer>",width:"<length> | <percentage> | <content-sizing> | auto","will-change":"<will-change>","word-break":"normal | keep-all | break-all","word-spacing":"<length> | normal","word-wrap":"normal | break-word","writing-mode":"horizontal-tb | vertical-rl | vertical-lr | lr-tb | rl-tb | tb-rl | bt-rl | tb-lr | bt-lr | lr-bt | rl-bt | lr | rl | tb","z-index":"<integer> | auto",zoom:"<number> | <percentage> | normal"}},251:function(e,t){ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ t.read=function(e,t,n,i,r){var o,a,s=8*r-i-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?r-1:0,p=n?-1:1,h=e[t+d];for(d+=p,o=h&(1<<-u)-1,h>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=p,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=i;u>0;a=256*a+e[t+d],d+=p,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,i),o-=c}return(h?-1:1)*a*Math.pow(2,o-i)},t.write=function(e,t,n,i,r,o){var a,s,l,c=8*o-r-1,u=(1<<c)-1,d=u>>1,p=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,h=i?0:o-1,f=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?p/l:p*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,r),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,r),a=0));r>=8;e[n+h]=255&s,h+=f,s/=256,r-=8);for(a=a<<r|s,c+=r;c>0;e[n+h]=255&a,h+=f,a/=256,c-=8);e[n+h-f]|=128*m}},281:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14" class="bricks-svg"><g id="laptop--device-laptop-electronics-computer-notebook"><path id="Vector" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M3.08 1.61h7.834a.98.98 0 0 1 .98.98v5.39H2.1V2.59c0-.588.392-.98.98-.98" stroke-width="1"/><path id="Vector 3945" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M.696 11.257 2.1 7.98h9.8l1.404 3.277a.813.813 0 0 1-.747 1.133H1.443a.813.813 0 0 1-.747-1.133" stroke-width="1"/></g></svg>'},322:function(){},392:function(e){"use strict";var t=e.exports=[{name:"CDO"},{name:"CDC"},{name:"S",whitespace:!0},{name:"COMMENT",comment:!0,hide:!0,channel:"comment"},{name:"INCLUDES",text:"~="},{name:"DASHMATCH",text:"|="},{name:"PREFIXMATCH",text:"^="},{name:"SUFFIXMATCH",text:"$="},{name:"SUBSTRINGMATCH",text:"*="},{name:"STRING"},{name:"IDENT"},{name:"HASH"},{name:"IMPORT_SYM",text:"@import"},{name:"PAGE_SYM",text:"@page"},{name:"MEDIA_SYM",text:"@media"},{name:"FONT_FACE_SYM",text:"@font-face"},{name:"CHARSET_SYM",text:"@charset"},{name:"NAMESPACE_SYM",text:"@namespace"},{name:"SUPPORTS_SYM",text:"@supports"},{name:"VIEWPORT_SYM",text:["@viewport","@-ms-viewport","@-o-viewport"]},{name:"DOCUMENT_SYM",text:["@document","@-moz-document"]},{name:"UNKNOWN_SYM"},{name:"KEYFRAMES_SYM",text:["@keyframes","@-webkit-keyframes","@-moz-keyframes","@-o-keyframes"]},{name:"IMPORTANT_SYM"},{name:"LENGTH"},{name:"ANGLE"},{name:"TIME"},{name:"FREQ"},{name:"DIMENSION"},{name:"PERCENTAGE"},{name:"NUMBER"},{name:"URI"},{name:"FUNCTION"},{name:"UNICODE_RANGE"},{name:"INVALID"},{name:"PLUS",text:"+"},{name:"GREATER",text:">"},{name:"COMMA",text:","},{name:"TILDE",text:"~"},{name:"NOT"},{name:"TOPLEFTCORNER_SYM",text:"@top-left-corner"},{name:"TOPLEFT_SYM",text:"@top-left"},{name:"TOPCENTER_SYM",text:"@top-center"},{name:"TOPRIGHT_SYM",text:"@top-right"},{name:"TOPRIGHTCORNER_SYM",text:"@top-right-corner"},{name:"BOTTOMLEFTCORNER_SYM",text:"@bottom-left-corner"},{name:"BOTTOMLEFT_SYM",text:"@bottom-left"},{name:"BOTTOMCENTER_SYM",text:"@bottom-center"},{name:"BOTTOMRIGHT_SYM",text:"@bottom-right"},{name:"BOTTOMRIGHTCORNER_SYM",text:"@bottom-right-corner"},{name:"LEFTTOP_SYM",text:"@left-top"},{name:"LEFTMIDDLE_SYM",text:"@left-middle"},{name:"LEFTBOTTOM_SYM",text:"@left-bottom"},{name:"RIGHTTOP_SYM",text:"@right-top"},{name:"RIGHTMIDDLE_SYM",text:"@right-middle"},{name:"RIGHTBOTTOM_SYM",text:"@right-bottom"},{name:"RESOLUTION",state:"media"},{name:"IE_FUNCTION"},{name:"CHAR"},{name:"PIPE",text:"|"},{name:"SLASH",text:"/"},{name:"MINUS",text:"-"},{name:"STAR",text:"*"},{name:"LBRACE",endChar:"}",text:"{"},{name:"RBRACE",text:"}"},{name:"LBRACKET",endChar:"]",text:"["},{name:"RBRACKET",text:"]"},{name:"EQUALS",text:"="},{name:"COLON",text:":"},{name:"SEMICOLON",text:";"},{name:"LPAREN",endChar:")",text:"("},{name:"RPAREN",text:")"},{name:"DOT",text:"."}];!function(){var e=[],n=Object.create(null);t.UNKNOWN=-1,t.unshift({name:"EOF"});for(var i=0,r=t.length;i<r;i++)if(e.push(t[i].name),t[t[i].name]=i,t[i].text)if(t[i].text instanceof Array)for(var o=0;o<t[i].text.length;o++)n[t[i].text[o]]=i;else n[t[i].text]=i;t.name=function(t){return e[t]},t.type=function(e){return n[e]||-1}}()},1093:function(e){"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),i="[object Arguments]"===n;return i||(i="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),i}},1189:function(e,t,n){"use strict";var i=Array.prototype.slice,r=n(1093),o=Object.keys,a=o?function(e){return o(e)}:n(28875),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return r(e)?s(i.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},1386:function(){},1603:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14" class="bricks-svg"><g id="horizontal-toggle-button--toggle-adjustment-adjust-button-off-on-horizontal-settings-controls"><path id="Vector 3958" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M10.5 6h-7a2.5 2.5 0 0 1 0-5h7a2.5 2.5 0 0 1 0 5" stroke-width="1"/><path id="Vector 3959" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M10.5 13h-7a2.5 2.5 0 0 1 0-5h7a2.5 2.5 0 0 1 0 5" stroke-width="1"/><path id="Ellipse 1803" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M10 3.5a.5.5 0 1 0 1 0 .5.5 0 1 0-1 0" stroke-width="1"/><path id="Ellipse 1804" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M3 10.5a.5.5 0 1 0 1 0 .5.5 0 1 0-1 0" stroke-width="1"/></g></svg>'},1779:function(e,t,n){var i=n(48287).hp,r=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var t,n,r;try{t=Map}catch(e){t=function(){}}try{n=Set}catch(e){n=function(){}}try{r=Promise}catch(e){r=function(){}}function o(a,l,c,u,d){"object"==typeof l&&(c=l.depth,u=l.prototype,d=l.includeNonEnumerable,l=l.circular);var p=[],h=[],f=void 0!==i;return void 0===l&&(l=!0),void 0===c&&(c=1/0),function a(c,m){if(null===c)return null;if(0===m)return c;var g,v;if("object"!=typeof c)return c;if(e(c,t))g=new t;else if(e(c,n))g=new n;else if(e(c,r))g=new r(function(e,t){c.then(function(t){e(a(t,m-1))},function(e){t(a(e,m-1))})});else if(o.__isArray(c))g=[];else if(o.__isRegExp(c))g=new RegExp(c.source,s(c)),c.lastIndex&&(g.lastIndex=c.lastIndex);else if(o.__isDate(c))g=new Date(c.getTime());else{if(f&&i.isBuffer(c))return g=i.allocUnsafe?i.allocUnsafe(c.length):new i(c.length),c.copy(g),g;e(c,Error)?g=Object.create(c):void 0===u?(v=Object.getPrototypeOf(c),g=Object.create(v)):(g=Object.create(u),v=u)}if(l){var y=p.indexOf(c);if(-1!=y)return h[y];p.push(c),h.push(g)}for(var b in e(c,t)&&c.forEach(function(e,t){var n=a(t,m-1),i=a(e,m-1);g.set(n,i)}),e(c,n)&&c.forEach(function(e){var t=a(e,m-1);g.add(t)}),c){var k;v&&(k=Object.getOwnPropertyDescriptor(v,b)),k&&null==k.set||(g[b]=a(c[b],m-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(c);for(b=0;b<w.length;b++){var _=w[b];(!(x=Object.getOwnPropertyDescriptor(c,_))||x.enumerable||d)&&(g[_]=a(c[_],m-1),x.enumerable||Object.defineProperty(g,_,{enumerable:!1}))}}if(d){var C=Object.getOwnPropertyNames(c);for(b=0;b<C.length;b++){var x,S=C[b];(x=Object.getOwnPropertyDescriptor(c,S))&&x.enumerable||(g[S]=a(c[S],m-1),Object.defineProperty(g,S,{enumerable:!1}))}}return g}(a,c)}function a(e){return Object.prototype.toString.call(e)}function s(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return o.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},o.__objToStr=a,o.__isDate=function(e){return"object"==typeof e&&"[object Date]"===a(e)},o.__isArray=function(e){return"object"==typeof e&&"[object Array]"===a(e)},o.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===a(e)},o.__getRegExpFlags=s,o}();e.exports&&(e.exports=r)},2212:function(){},2509:function(){},2651:function(){},2747:function(e){"use strict";e.exports={stdout:!1,stderr:!1}},3218:function(){},3338:function(){},3607:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="bricks-svg"><path fill="currentColor" d="M8.016-.031 0 3v10.063l8 3 8-3V3Zm6.18 3.351-2.434.914L5.59 1.891 8.016.973ZM8 5.645 1.805 3.32l2.457-.925 6.164 2.34ZM.941 4.004l6.59 2.469v8.406L.941 12.41ZM8.47 14.879V6.473l6.59-2.47v8.407Zm0 0"/></svg>'},3695:function(){},3835:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"id-class-ad-disabled",description:"The id and class attributes cannot use the ad keyword, it will be blocked by adblock software.",init(e,t){e.addListener("tagstart",e=>{const n=e.attrs;let i,r;const o=e.col+e.tagName.length+1;for(let a=0,s=n.length;a<s;a++)i=n[a],r=i.name,/^(id|class)$/i.test(r)&&/(^|[-_])ad([-_]|$)/i.test(i.value)&&t.warn(`The value of attribute ${r} cannot use the ad keyword.`,e.line,o+i.index,this,i.raw)})}}},3838:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="bricks-svg"><rect x="0" y="0" width="24" height="1.5" fill="#23282D"/><rect x="0" y="22.5" width="24" height="1.5" fill="#23282D"/><text x="12" y="14.5" font-size="22" font-weight="bold" fill="#23282D" font-family="Arial, sans-serif" text-anchor="middle" dominant-baseline="middle">A</text></svg>'},4058:function(e){"use strict";e.exports={stringReplaceAll:(e,t,n)=>{let i=e.indexOf(t);if(-1===i)return e;const r=t.length;let o=0,a="";do{a+=e.substr(o,i-o)+t+n,o=i+r,i=e.indexOf(t,o)}while(-1!==i);return a+=e.substr(o),a},stringEncaseCRLFWithFirstIndex:(e,t,n,i)=>{let r=0,o="";do{const a="\r"===e[i-1];o+=e.substr(r,(a?i-1:i)-r)+t+(a?"\r\n":"\n")+n,r=i+1,i=e.indexOf("\n",r)}while(-1!==i);return o+=e.substr(r),o}}},4227:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="bricks-svg">tab-<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M21 16.5a2.25 2.25 0 0 1 .843-1.756 3.76 3.76 0 0 0 1.407-2.935 3 3 0 0 0-1.285-2.462 2.25 2.25 0 0 1 .227-3.833A2 2 0 0 0 23.25 3.75a3 3 0 0 0-3-3 2 2 0 0 0-1.764 1.058 2.25 2.25 0 0 1-3.742.349A3.76 3.76 0 0 0 11.809.75a3 3 0 0 0-2.462 1.285 2.25 2.25 0 0 1-3.833-.227A2 2 0 0 0 3.75.75a3 3 0 0 0-3 3 2 2 0 0 0 1.058 1.764 2.25 2.25 0 0 1 .349 3.742A3.76 3.76 0 0 0 .75 12.191a3 3 0 0 0 1.285 2.462 2.25 2.25 0 0 1-.227 3.833A2 2 0 0 0 .75 20.25a3 3 0 0 0 3 3 2 2 0 0 0 1.764-1.058 2.25 2.25 0 0 1 3.742-.349 3.76 3.76 0 0 0 2.935 1.407 3 3 0 0 0 2.462-1.285 2.25 2.25 0 0 1 3.833.227 2 2 0 0 0 1.764 1.058 3 3 0 0 0 3-3 2 2 0 0 0-1.058-1.764A2.25 2.25 0 0 1 21 16.5" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M6.75 6.75h10.5v10.5H6.75z" stroke-width="2"/></svg>'},4619:function(){},4692:function(){},4998:function(e,t,n){"use strict";var i=n(76798),r=n.n(i)()(function(e){return e[1]});r.push([e.id,'.CodeMirror-lint-markers{width:16px}.CodeMirror-lint-tooltip{background-color:#ffd;border:1px solid #000;border-radius:4px 4px 4px 4px;color:#000;font-family:monospace;font-size:10pt;max-width:600px;opacity:0;overflow:hidden;padding:2px 5px;position:fixed;transition:opacity .4s;-moz-transition:opacity .4s;-webkit-transition:opacity .4s;-o-transition:opacity .4s;-ms-transition:opacity .4s;white-space:pre;white-space:pre-wrap;z-index:100}.CodeMirror-lint-mark{background-position:0 100%;background-repeat:repeat-x}.CodeMirror-lint-mark-warning{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII=")}.CodeMirror-lint-mark-error{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg==")}.CodeMirror-lint-marker{background-position:50%;background-repeat:no-repeat;cursor:pointer;display:inline-block;height:16px;position:relative;vertical-align:middle;width:16px}.CodeMirror-lint-message{background-position:0 0;background-repeat:no-repeat;padding-left:18px}.CodeMirror-lint-marker-warning,.CodeMirror-lint-message-warning{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII=")}.CodeMirror-lint-marker-error,.CodeMirror-lint-message-error{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII=")}.CodeMirror-lint-marker-multiple{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC");background-position:100% 100%;background-repeat:no-repeat;height:100%;width:100%}.CodeMirror-lint-line-error{background-color:rgba(183,76,81,.08)}.CodeMirror-lint-line-warning{background-color:rgba(255,211,0,.1)}',""]),t.A=r},5145:function(){},5248:function(e,t,n){"use strict";e.exports={css:n(23008),util:n(56809)}},5569:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M11.941 17.32v-6.127a.875.875 0 0 0-.875-.876h-.875" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M11.504 7.729a.438.438 0 1 1 0-.875" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M11.504 7.729a.438.438 0 1 0 0-.875" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M12 23.228c6.201 0 11.228-5.027 11.228-11.228S18.201.772 12 .772.772 5.799.772 12 5.799 23.228 12 23.228" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M10.19 17.32h3.62" stroke-width="2"/></svg>'},5621:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="-1 -1 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M.688 7.563h9.625" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M7.104.688v2.979" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M3.896.688v2.979" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M9.625.688h-8.25a.697.697 0 0 0-.687.687V8.25a4.78 4.78 0 0 0 2.75 4.317V16.5a2.063 2.063 0 0 0 4.124 0v-3.932a4.78 4.78 0 0 0 2.75-4.318V1.375a.697.697 0 0 0-.687-.687" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M12.375 7.773a17 17 0 0 1 2.75-.21c3.42 0 6.188.916 6.188 2.062s-2.75 2.063-6.188 2.063c-.92.004-1.84-.066-2.75-.211" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M9.625 20.167a11.2 11.2 0 0 0 5.5 1.118c3.42 0 6.188-.917 6.188-2.063V9.625" stroke-width="2"/></svg>'},5888:function(){},6188:function(e){"use strict";e.exports=Math.max},6230:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"input-requires-label",description:"All [ input ] tags must have a corresponding [ label ] tag. ",init(e,t){const n=[],i=[];e.addListener("tagstart",t=>{const r=t.tagName.toLowerCase(),o=e.getMapAttrs(t.attrs),a=t.col+r.length+1;"input"===r&&"hidden"!==o.type&&i.push({event:t,col:a,id:o.id}),"label"===r&&"for"in o&&""!==o.for&&n.push({event:t,col:a,forValue:o.for})}),e.addListener("end",()=>{i.forEach(e=>{(function(e){let t=!1;return n.forEach(n=>{e.id&&e.id===n.forValue&&(t=!0)}),t})(e)||t.warn("No matching [ label ] tag found.",e.event.line,e.col,this,e.event.raw)})})}}},6414:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M21.75 23.25H2.25a1.5 1.5 0 0 1-1.5-1.5V7.243a3 3 0 0 1 .879-2.121l3.492-3.493A3 3 0 0 1 7.243.75H21.75a1.5 1.5 0 0 1 1.5 1.5v19.5a1.5 1.5 0 0 1-1.5 1.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M9.75 12.75a3 3 0 1 0 6 0 3 3 0 1 0-6 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M12.75 20.25h6.75" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M8.25.75v3a1.5 1.5 0 0 0 1.5 1.5h7.5a1.5 1.5 0 0 0 1.5-1.5v-3" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},6509:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M0 0h128v8H0zm28 16h32v96H28zm40 0h38v96H68z"/></svg>'},6549:function(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},6646:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="bricks-svg"><path d="M3.75 5.261h9s3 0 3 3v7.5s0 3-3 3h-9s-3 0-3-3v-7.5s0-3 3-3" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m18.75 15.011 3.415 1.707a.75.75 0 0 0 1.085-.671V7.974a.75.75 0 0 0-1.085-.67L18.75 9.011" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},7176:function(e,t,n){"use strict";var i,r=n(73126),o=n(75795);try{i=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!i&&o&&o(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?r([a.get]):"function"==typeof l&&function(e){return l(null==e?e:s(e))}},7218:function(e){"use strict";function t(){this._stack=[]}Object.defineProperty(t.prototype,"length",{get:function(){return this._stack.length}}),t.prototype.push=function(){this._stack.push(null)},t.prototype.pop=function(){this._stack.pop()},t.prototype.set=function(e){this._stack[this.length-1]=e},t.prototype.infer=function(){var e,t=this._stack[this.length-1],n="";return t&&"class"!==t.type||(t=this._stack[this.length-2]),t?"(string)"!==(e=t.type)&&"(number)"!==e&&"(identifier)"!==e&&"default"!==e?"(expression)":(t.accessorType&&(n=t.accessorType+" "),n+t.value):"(empty)"},e.exports=t},7258:function(){},7788:function(){},8063:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="-1 -1 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M20.037 8.123a4.355 4.355 0 0 0-6.16-6.16l-9.239 9.24a5.23 5.23 0 0 0-1.478 2.956l-.367 2.587-1.85 1.848a.87.87 0 0 0 0 1.232l1.231 1.232a.87.87 0 0 0 1.232 0l1.848-1.848 2.587-.367a5.23 5.23 0 0 0 2.956-1.479z" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m8.95 1.963 11.087 11.088" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M6.486 15.514 12.03 9.97" stroke-width="2"/></svg>'},8072:function(e){"use strict";function t(e){this._i=0,this._parts=e.parts,this._marks=[],this.value=e}e.exports=t,t.prototype.count=function(){return this._parts.length},t.prototype.isFirst=function(){return 0===this._i},t.prototype.hasNext=function(){return this._i<this._parts.length},t.prototype.mark=function(){this._marks.push(this._i)},t.prototype.peek=function(e){return this.hasNext()?this._parts[this._i+(e||0)]:null},t.prototype.next=function(){return this.hasNext()?this._parts[this._i++]:null},t.prototype.previous=function(){return this._i>0?this._parts[--this._i]:null},t.prototype.restore=function(){this._marks.length&&(this._i=this._marks.pop())},t.prototype.drop=function(){this._marks.pop()}},8086:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M16 16h96v20H16zm0 38h96v20H16zm0 38h96v20H16z"/></svg>'},8156:function(e){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},8280:function(){},8488:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M120 0h8v128h-8zM16 28h96v32H16zm0 40h96v32H16z"/></svg>'},8493:function(e){e.exports='<svg viewBox="-1 -1 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M12.375 20.167a8.938 8.938 0 1 0-8.937-8.938v.688" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m.688 9.164 2.75 2.75 2.75-2.75" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},8507:function(e,t,n){const i=n(15659);function r(e){const t=function(){const e={},t=Object.keys(i);for(let n=t.length,i=0;i<n;i++)e[t[i]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;){const e=n.pop(),r=Object.keys(i[e]);for(let i=r.length,o=0;o<i;o++){const i=r[o],a=t[i];-1===a.distance&&(a.distance=t[e].distance+1,a.parent=e,n.unshift(i))}}return t}function o(e,t){return function(n){return t(e(n))}}function a(e,t){const n=[t[e].parent,e];let r=i[t[e].parent][e],a=t[e].parent;for(;t[a].parent;)n.unshift(t[a].parent),r=o(i[t[a].parent][a],r),a=t[a].parent;return r.conversion=n,r}e.exports=function(e){const t=r(e),n={},i=Object.keys(t);for(let e=i.length,r=0;r<e;r++){const e=i[r];null!==t[e].parent&&(n[e]=a(e,t))}return n}},8520:function(e,t,n){"use strict";var i=n(78041),r=n(37007),o={};e.exports=function(e,t,n,a){var s,l=[];function c(e){s={"(bindings)":Object.create(null),"(usages)":Object.create(null),"(labels)":Object.create(null),"(parent)":s,"(type)":e,"(params)":"functionparams"===e||"catchparams"===e?[]:null},l.push(s)}c("global"),s["(predefined)"]=t;var u=s,d=Object.create(null),p=Object.create(null),h=[],f=[],m=new r.EventEmitter;function g(e,t){m.emit("warning",{code:e,token:t,data:i.slice(arguments,2)})}function v(e,t){m.emit("warning",{code:e,token:t,data:i.slice(arguments,2)})}function y(e){s["(usages)"][e]||(s["(usages)"][e]={"(modified)":[],"(reassigned)":[],"(tokens)":[]})}var b=function(t){return void 0===t&&(t=e.option.unused),!0===t&&(t="last-param"),t},k=function(e,t,n,i){var r=t.line,o=t.from,a=t.raw_text||e,s={vars:["var"],"last-param":["var","param"],strict:["var","param","last-param"]};(i=b(i))&&s[i]&&-1!==s[i].indexOf(n)&&g("W098",{line:r,from:o},a),(i||"var"===n)&&h.push({name:e,line:r,character:o})};function w(e){for(var t=l.length-1;t>=0;--t){var n=l[t]["(bindings)"];if(n[e])return n}}function _(t,n){if("outer"===e.option.shadow)for(var i="global"===u["(type)"],r="functionparams"===s["(type)"],o=!i,a=0;a<l.length;a++){var c=l[a];r||l[a+1]!==u||(o=!1),o&&c["(bindings)"][t]&&g("W123",n,t),c["(labels)"][t]&&g("W123",n,t)}}function C(t,n,i){var r;e.option.latedef&&(r="function"===t||"generator function"===t||"async function"===t,(!0===e.option.latedef&&r||!r)&&g("W003",i,n))}var x={on:function(e,t){e.split(" ").forEach(function(e){m.on(e,t)})},isPredefined:function(e){return!this.has(e)&&i.has(l[0]["(predefined)"],e)},stack:function(e){var t=s;c(e),e||"functionparams"!==t["(type)"]||(s["(isFuncBody)"]=!0,u=s)},unstack:function(){var t,n,r,c=l.length>1?l[l.length-2]:null,h=s===u,f="functionparams"===s["(type)"],m="functionouter"===s["(type)"],y=s["(usages)"],w=s["(bindings)"],_=Object.keys(y);for(y.__proto__&&-1===_.indexOf("__proto__")&&_.push("__proto__"),t=0;t<_.length;t++){var C=_[t],x=y[C],S=w[C];if(S){var E=S["(type)"];if(r="const"===E||"import"===E,S["(useOutsideOfScope)"]&&!e.option.funcscope){var A=x["(tokens)"];for(n=0;n<A.length;n++)S["(function)"]===A[n]["(function)"]&&v("W038",A[n],C)}if(s["(bindings)"][C]["(unused)"]=!1,r&&x["(modified)"])for(n=0;n<x["(modified)"].length;n++)v("E013",x["(modified)"][n],C);if(("function"===E||"generator function"===E||"async function"===E||"class"===E)&&x["(reassigned)"])for(n=0;n<x["(reassigned)"].length;n++)x["(reassigned)"][n].ignoreW021||g("W021",x["(reassigned)"][n],C,E)}else if(c){var D=this.bindingtype(C);if(r="const"===D||null===D&&!1===l[0]["(predefined)"][C],m&&!r&&(e.funct["(outerMutables)"]||(e.funct["(outerMutables)"]=[]),e.funct["(outerMutables)"].push(C)),c["(usages)"][C]){var T=c["(usages)"][C];T["(modified)"]=T["(modified)"].concat(x["(modified)"]),T["(tokens)"]=T["(tokens)"].concat(x["(tokens)"]),T["(reassigned)"]=T["(reassigned)"].concat(x["(reassigned)"])}else c["(usages)"][C]=x,h&&(c["(usages)"][C]["(onlyUsedSubFunction)"]=!0)}else if("boolean"==typeof s["(predefined)"][C]){if(delete a[C],d[C]=o,!1===s["(predefined)"][C]&&x["(reassigned)"])for(n=0;n<x["(reassigned)"].length;n++)x["(reassigned)"][n].ignoreW020||g("W020",x["(reassigned)"][n])}else for(n=0;n<x["(tokens)"].length;n++){var I=x["(tokens)"][n];I.forgiveUndef||(e.option.undef&&!I.ignoreUndef&&g("W117",I,C),p[C]?p[C].line.push(I.line):p[C]={name:C,line:[I.line]})}}if(c||Object.keys(a).forEach(function(e){k(e,a[e],"var")}),c&&!h&&!f&&!m){var O=Object.keys(w);for(t=0;t<O.length;t++){var P=O[t],F=w[P];if(!F["(blockscoped)"]&&"exception"!==F["(type)"]){var $=c["(bindings)"][P];$?$["(unused)"]&=F["(unused)"]:(F["(useOutsideOfScope)"]="global"!==u["(type)"]&&!this.funct.has(P,{excludeCurrent:!0}),c["(bindings)"][P]=F),delete w[P]}}}!function(){if("functionparams"===s["(type)"])for(var t,n=s["(params)"],i=n.pop();i;){var r=s["(bindings)"][i];if(t=b(e.funct["(unusedOption)"]),"undefined"===i)return;if(r["(unused)"])k(i,r["(token)"],"param",e.funct["(unusedOption)"]);else if("last-param"===t)return;i=n.pop()}else{var o=s["(bindings)"];for(var a in o)"exception"!==o[a]["(type)"]&&o[a]["(unused)"]&&k(a,o[a]["(token)"],"var")}}(),l.pop(),h&&(u=l[i.findLastIndex(l,function(e){return e["(isFuncBody)"]||"global"===e["(type)"]})]),s=c},addParam:function(t,n,r){if("exception"===(r=r||"param")){var o=this.funct.bindingtype(t);o&&"exception"!==o&&(e.option.node||g("W002",e.tokens.next,t)),!e.isStrict()||"arguments"!==t&&"eval"!==t||g("E008",n)}(i.has(s["(bindings)"],t)?s["(bindings)"][t].duplicated=!0:(_(t,n),s["(bindings)"][t]={"(type)":r,"(token)":n,"(unused)":!0},s["(params)"].push(t)),i.has(s["(usages)"],t))&&(s["(usages)"][t]["(onlyUsedSubFunction)"]?C(r,t,n):g("W003",n,t))},validateParams:function(t){var n=e.isStrict(),i=u["(parent)"],r=e.funct["(hasSimpleParams)"],o=e.funct["(method)"];i["(params)"]&&i["(params)"].forEach(function(a){var s=i["(bindings)"][a];s.duplicated&&(n||t||o||!r?g("E011",s["(token)"],a):!0!==e.option.shadow&&g("W004",s["(token)"],a)),!n||"arguments"!==a&&"eval"!==a||g("E008",s["(token)"])})},getUsedOrDefinedGlobals:function(){var e=Object.keys(d);return d.__proto__===o&&-1===e.indexOf("__proto__")&&e.push("__proto__"),e},getImpliedGlobals:function(){var e=i.values(p);return p.__proto__&&(e.some(function(e){return"__proto__"===e.name})||e.push(p.__proto__)),e},getUnuseds:function(){return h},has:function(e){return Boolean(w(e))},bindingtype:function(e){var t=w(e);return t?t[e]["(type)"]:null},addExported:function(e){var t=l[0]["(bindings)"];if(i.has(a,e))delete a[e];else if(i.has(t,e))t[e]["(unused)"]=!1;else{for(var r=1;r<l.length;r++){var o=l[r];if(o["(type)"])break;if(i.has(o["(bindings)"],e)&&!o["(bindings)"][e]["(blockscoped)"])return void(o["(bindings)"][e]["(unused)"]=!1)}n[e]=!0}},setExported:function(e,t){t&&(f.indexOf(t.value)>-1&&v("E069",t,t.value),f.push(t.value)),e&&this.block.use(e.value,e)},initialize:function(e){s["(bindings)"][e]&&(s["(bindings)"][e]["(initialized)"]=!0)},addbinding:function(t,r){var a=r.type,c=r.token,p="let"===a||"const"===a||"class"===a||"import"===a||"generator function"===a||"async function"===a||"async generator function"===a,h="function"===a||"generator function"===a||"async function"===a||"import"===a,f="global"===(p?s:u)["(type)"]&&i.has(n,t);if(_(t,c),!e.isStrict()||"arguments"!==t&&"eval"!==t||g("E008",c),p){var m=s["(bindings)"][t];if(m||s!==u||"global"===s["(type)"]||(m=!!u["(parent)"]["(bindings)"][t]),!m&&s["(usages)"][t])s["(usages)"][t]["(onlyUsedSubFunction)"]||h?C(a,t,c):h||g("E056",c,t,a);!m||h&&"global"===s["(type)"]&&"import"!==a?"outer"===e.option.shadow&&x.funct.has(t)&&g("W004",c,t):g("E011",c,t),x.block.add(t,a,c,!f,r.initialized)}else{var v=x.funct.has(t);!v&&function(e){for(var t=l.length-1;t>=0;t--){var n=l[t];if(n["(usages)"][e])return n["(usages)"][e];if(n===u)break}return!1}(t)&&C(a,t,c),x.funct.has(t,{onlyBlockscoped:!0})?g("E011",c,t):!0!==e.option.shadow&&v&&"__proto__"!==t&&"global"!==u["(type)"]&&g("W004",c,t),x.funct.add(t,a,c,!f),"global"!==u["(type)"]||e.impliedClosure()||(d[t]=o)}},funct:{bindingtype:function(e,t){for(var n=t&&t.onlyBlockscoped,i=t&&t.excludeParams,r=l.length-(t&&t.excludeCurrent?2:1);r>=0;r--){var o=l[r];if(o["(bindings)"][e]&&(!n||o["(bindings)"][e]["(blockscoped)"]))return o["(bindings)"][e]["(type)"];var a=i?l[r-1]:o;if(a&&"functionparams"===a["(type)"])return null}return null},hasLabel:function(e){for(var t=l.length-1;t>=0;t--){var n=l[t];if(n["(labels)"][e])return!0;if("functionparams"===n["(type)"])return!1}return!1},has:function(e,t){return Boolean(this.bindingtype(e,t))},add:function(e,t,n,i){s["(bindings)"][e]={"(type)":t,"(token)":n,"(blockscoped)":!1,"(function)":u,"(unused)":i}}},block:{isGlobal:function(){return"global"===s["(type)"]},use:function(t,n){var i=u["(parent)"];i&&i["(bindings)"][t]&&"param"===i["(bindings)"][t]["(type)"]&&(x.funct.has(t,{excludeParams:!0,onlyBlockscoped:!0})||(i["(bindings)"][t]["(unused)"]=!1)),n&&(e.ignored.W117||!1===e.option.undef)&&(n.ignoreUndef=!0),y(t),s["(usages)"][t]["(onlyUsedSubFunction)"]=!1,n&&(n["(function)"]=u,s["(usages)"][t]["(tokens)"].push(n));var r=s["(bindings)"][t];r&&r["(blockscoped)"]&&!r["(initialized)"]&&v("E056",n,t,r["(type)"])},reassign:function(t,n){n.ignoreW020=e.ignored.W020,n.ignoreW021=e.ignored.W021,this.modify(t,n),s["(usages)"][t]["(reassigned)"].push(n)},modify:function(e,t){y(e),s["(usages)"][e]["(onlyUsedSubFunction)"]=!1,s["(usages)"][e]["(modified)"].push(t)},add:function(e,t,n,i,r){s["(bindings)"][e]={"(type)":t,"(token)":n,"(initialized)":!!r,"(blockscoped)":!0,"(unused)":i}},addLabel:function(t,n){var i=n.token;x.funct.hasLabel(t)?g("E011",i,t):"outer"===e.option.shadow&&(x.funct.has(t)?g("W004",i,t):_(t,i)),s["(labels)"][t]=i}}};return x}},8690:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M11.4 1.316 5.524 9.322a9.16 9.16 0 0 0-1.774 5.419h0a8.25 8.25 0 0 0 8.25 8.25h0a8.25 8.25 0 0 0 8.25-8.25h0a9.16 9.16 0 0 0-1.774-5.419l-5.871-8.006a.75.75 0 0 0-1.205 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M18.363 19.991H12.75" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M20.216 15.491H12.75" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M19.447 10.991H12.75" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M16.4 6.491h-3.65" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},8706:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"tag-self-close",description:"Empty tags must be self closed.",init(e,t){const n=e.makeMap("area,base,basefont,bgsound,br,col,frame,hr,img,input,isindex,link,meta,param,embed,track,command,source,keygen,wbr");e.addListener("tagstart",e=>{const i=e.tagName.toLowerCase();void 0!==n[i]&&(e.close||t.warn(`The empty tag : [ ${i} ] must be self closed.`,e.line,e.col,this,e.raw))})}}},8721:function(){},9010:function(){},9072:function(e,t,n){"use strict";var i=n(78041);t.errors={},t.warnings={},t.info={},i.each({E001:"Bad {a}option: '{b}'.",E002:"Bad option value.",E003:"Expected a JSON value.",E004:"Input is neither a string nor an array of strings.",E005:"Input is empty.",E006:"Unexpected early end of program.",E007:'Missing "use strict" statement.',E008:"Strict violation.",E009:"Option 'validthis' can't be used in a global scope.",E010:"'with' is not allowed in strict mode.",E011:"'{a}' has already been declared.",E012:"Missing initializer for constant '{a}'.",E013:"Attempting to override '{a}' which is a constant.",E014:"A regular expression literal can be confused with '/='.",E015:"Unclosed regular expression.",E016:"Invalid regular expression.",E017:"Unclosed comment.",E018:"Unbegun comment.",E019:"Unmatched '{a}'.",E020:"Expected '{a}' to match '{b}' from line {c} and instead saw '{d}'.",E021:"Expected '{a}' and instead saw '{b}'.",E022:"Line breaking error '{a}'.",E023:"Missing '{a}'.",E024:"Unexpected '{a}'.",E025:"Missing ':' on a case clause.",E026:"Missing '}' to match '{' from line {a}.",E027:"Missing ']' to match '[' from line {a}.",E028:"Illegal comma.",E029:"Unclosed string.",E030:"Expected an identifier and instead saw '{a}'.",E031:"Bad assignment.",E032:"Expected a small integer or 'false' and instead saw '{a}'.",E033:"Expected an operator and instead saw '{a}'.",E034:"get/set are ES5 features.",E035:"Missing property name.",E036:"Expected to see a statement and instead saw a block.",E037:null,E038:null,E039:"Function declarations are not invocable. Wrap the whole function invocation in parens.",E040:"Each value should have its own case label.",E041:"Unrecoverable syntax error.",E042:"Stopping.",E043:"Too many errors.",E044:null,E045:"Invalid for each loop.",E046:"Yield expressions may only occur within generator functions.",E047:null,E048:"{a} declaration not directly within block.",E049:"A {a} cannot be named '{b}'.",E050:"Mozilla requires the yield expression to be parenthesized here.",E051:null,E052:"Unclosed template literal.",E053:"{a} declarations are only allowed at the top level of module scope.",E054:"Class properties must be methods. Expected '(' but instead saw '{a}'.",E055:"The '{a}' option cannot be set after any executable code.",E056:"'{a}' was used before it was declared, which is illegal for '{b}' variables.",E057:"Invalid meta property: '{a}.{b}'.",E058:"Missing semicolon.",E059:"Incompatible values for the '{a}' and '{b}' linting options.",E060:"Non-callable values cannot be used as the second operand to instanceof.",E061:"Invalid position for 'yield' expression (consider wrapping in parenthesis).",E062:"Rest parameter does not a support default value.",E063:"Super property may only be used within method bodies.",E064:"Super call may only be used within class method bodies.",E065:"Functions defined outside of strict mode with non-simple parameter lists may not enable strict mode.",E066:"Asynchronous iteration is only available with for-of loops.",E067:"Malformed numeric literal: '{a}'.",E068:"Decimals with leading zeros are not allowed in strict mode.",E069:"Duplicate exported binding: '{a}'.",E070:"import.meta may only be used in module code."},function(e,n){t.errors[n]={code:n,desc:e}}),i.each({W001:"'hasOwnProperty' is a really bad name.",W002:"Value of '{a}' may be overwritten in IE 8 and earlier.",W003:"'{a}' was used before it was defined.",W004:"'{a}' is already defined.",W005:"A dot following a number can be confused with a decimal point.",W006:"Confusing minuses.",W007:"Confusing plusses.",W008:"A leading decimal point can be confused with a dot: '{a}'.",W009:"The array literal notation [] is preferable.",W010:"The object literal notation {} is preferable.",W011:null,W012:null,W013:null,W014:"Misleading line break before '{a}'; readers may interpret this as an expression boundary.",W015:null,W016:"Unexpected use of '{a}'.",W017:"Bad operand.",W018:"Confusing use of '{a}'.",W019:"Use the isNaN function to compare with NaN.",W020:"Read only.",W021:"Reassignment of '{a}', which is a {b}. Use 'var' or 'let' to declare bindings that may change.",W022:"Do not assign to the exception parameter.",W023:null,W024:"Expected an identifier and instead saw '{a}' (a reserved word).",W025:"Missing name in function declaration.",W026:"Inner functions should be listed at the top of the outer function.",W027:"Unreachable '{a}' after '{b}'.",W028:"Label '{a}' on {b} statement.",W030:"Expected an assignment or function call and instead saw an expression.",W031:"Do not use 'new' for side effects.",W032:"Unnecessary semicolon.",W033:"Missing semicolon.",W034:'Unnecessary directive "{a}".',W035:"Empty block.",W036:"Unexpected /*member '{a}'.",W037:"'{a}' is a statement label.",W038:"'{a}' used out of scope.",W039:null,W040:"If a strict mode function is executed using function invocation, its 'this' value will be undefined.",W041:null,W042:"Avoid EOL escaping.",W043:"Bad escaping of EOL. Use option multistr if needed.",W044:"Bad or unnecessary escaping.",W045:"Value described by numeric literal cannot be accurately represented with a number value: '{a}'.",W046:"Don't use extra leading zeros '{a}'.",W047:"A trailing decimal point can be confused with a dot: '{a}'.",W048:"Unexpected control character in regular expression.",W049:"Unexpected escaped character '{a}' in regular expression.",W050:"JavaScript URL.",W051:"Variables should not be deleted.",W052:"Unexpected '{a}'.",W053:"Do not use {a} as a constructor.",W054:"The Function constructor is a form of eval.",W055:"A constructor name should start with an uppercase letter.",W056:"Bad constructor.",W057:"Weird construction. Is 'new' necessary?",W058:"Missing '()' invoking a constructor.",W059:"Avoid arguments.{a}.",W060:"document.write can be a form of eval.",W061:"eval can be harmful.",W062:"Wrap an immediate function invocation in parens to assist the reader in understanding that the expression is the result of a function, and not the function itself.",W063:"Math is not a function.",W064:"Missing 'new' prefix when invoking a constructor.",W065:"Missing radix parameter.",W066:"Implied eval. Consider passing a function instead of a string.",W067:"Unorthodox function invocation.",W068:"Wrapping non-IIFE function literals in parens is unnecessary.",W069:"['{a}'] is better written in dot notation.",W070:"Extra comma. (it breaks older versions of IE)",W071:"This function has too many statements. ({a})",W072:"This function has too many parameters. ({a})",W073:"Blocks are nested too deeply. ({a})",W074:"This function's cyclomatic complexity is too high. ({a})",W075:"Duplicate {a} '{b}'.",W076:"Unexpected parameter '{a}' in get {b} function.",W077:"Expected a single parameter in set {a} function.",W078:"Setter is defined without getter.",W079:"Redefinition of '{a}'.",W080:"It's not necessary to initialize '{a}' to 'undefined'.",W081:null,W082:"Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function.",W083:"Functions declared within loops referencing an outer scoped variable may lead to confusing semantics. ({a})",W084:"Expected a conditional expression and instead saw an assignment.",W085:"Don't use 'with'.",W086:"Expected a 'break' statement before '{a}'.",W087:"Forgotten 'debugger' statement?",W088:"Creating global 'for' variable. Should be 'for (var {a} ...'.",W089:"The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype.",W090:"'{a}' is not a statement label.",W091:null,W093:"Did you mean to return a conditional instead of an assignment?",W094:"Unexpected comma.",W095:"Expected a string and instead saw {a}.",W096:"The '{a}' key may produce unexpected results.",W097:'Use the function form of "use strict".',W098:"'{a}' is defined but never used.",W099:null,W100:null,W101:"Line is too long.",W102:null,W103:"The '{a}' property is deprecated.",W104:"'{a}' is available in ES{b} (use 'esversion: {b}') or Mozilla JS extensions (use moz).",W105:null,W106:"Identifier '{a}' is not in camel case.",W107:"Script URL.",W108:"Strings must use doublequote.",W109:"Strings must use singlequote.",W110:"Mixed double and single quotes.",W112:"Unclosed string.",W113:"Control character in string: {a}.",W114:"Avoid {a}.",W115:"Octal literals are not allowed in strict mode.",W116:"Expected '{a}' and instead saw '{b}'.",W117:"'{a}' is not defined.",W118:"'{a}' is only available in Mozilla JavaScript extensions (use moz option).",W119:"'{a}' is only available in ES{b} (use 'esversion: {b}').",W120:"You might be leaking a variable ({a}) here.",W121:"Extending prototype of native object: '{a}'.",W122:"Invalid typeof value '{a}'",W123:"'{a}' is already defined in outer scope.",W124:"A generator function should contain at least one yield expression.",W125:"This line contains non-breaking spaces: http://jshint.com/docs/options/#nonbsp",W126:"Unnecessary grouping operator.",W127:"Unexpected use of a comma operator.",W128:"Empty array elements require elision=true.",W129:"'{a}' is defined in a future version of JavaScript. Use a different variable name to avoid migration issues.",W130:"Invalid element after rest element.",W131:"Invalid parameter after rest parameter.",W132:"`var` declarations are forbidden. Use `let` or `const` instead.",W133:"Invalid for-{a} loop left-hand-side: {b}.",W134:"The '{a}' option is only available when linting ECMAScript {b} code.",W135:"{a} may not be supported by non-browser environments.",W136:"'{a}' must be in function scope.",W137:"Empty destructuring: this is unnecessary and can be removed.",W138:"Regular parameters should not come after default parameters.",W139:"Function expressions should not be used as the second operand to instanceof.",W140:"Missing comma.",W141:"Empty {a}: this is unnecessary and can be removed.",W142:"Empty {a}: consider replacing with `import '{b}';`.",W143:"Assignment to properties of a mapped arguments object may cause unexpected changes to formal parameters.",W144:"'{a}' is a non-standard language feature. Enable it using the '{b}' unstable option.",W145:"Superfluous 'case' clause.",W146:"Unnecessary `await` expression.",W147:"Regular expressions should include the 'u' flag.",W148:"Unnecessary RegExp 's' flag."},function(e,n){t.warnings[n]={code:n,desc:e}}),i.each({I001:"Comma warnings can be turned off with 'laxcomma'.",I002:null,I003:"ES5 option is now set per default"},function(e,n){t.info[n]={code:n,desc:e}})},9299:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M16.5 15.749h1.875A3.963 3.963 0 0 0 22.5 12h0a3.96 3.96 0 0 0-4.125-3.75H16.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M7.5 15.749H5.625A3.963 3.963 0 0 1 1.5 12h0a3.963 3.963 0 0 1 4.125-3.75H7.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M12 5.249v-4.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m9 5.249-1.5-1.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m15 5.249 1.5-1.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M12 18.749v4.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m9 18.749-1.5 1.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m15 18.749 1.5 1.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},9406:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="bricks-svg"><g><path d="m9 23.25-2.76-3.11a1.55 1.55 0 1 1 2.32-2.07l1.94 2.18v-9a1.5 1.5 0 0 1 3 0V18H15a4.49 4.49 0 0 1 4.5 4.5v.75" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M17.25 13.57a7.5 7.5 0 1 0-10.5 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></svg>'},9957:function(e,t,n){"use strict";var i=Function.prototype.call,r=Object.prototype.hasOwnProperty,o=n(66743);e.exports=o.call(i,r)},10004:function(){},10013:function(){},10076:function(e){"use strict";e.exports=Function.prototype.call},10202:function(e,t,n){!function(e){function t(e){e.state.placeholder&&(e.state.placeholder.parentNode.removeChild(e.state.placeholder),e.state.placeholder=null)}function n(e){t(e);var n=e.state.placeholder=document.createElement("pre");n.style.cssText="height: 0; overflow: visible",n.style.direction=e.getOption("direction"),n.className="CodeMirror-placeholder CodeMirror-line-like";var i=e.getOption("placeholder");"string"==typeof i&&(i=document.createTextNode(i)),n.appendChild(i),e.display.lineSpace.insertBefore(n,e.display.lineSpace.firstChild)}function i(e){setTimeout(function(){var i=!1;if(1==e.lineCount()){var r=e.getInputField();i="TEXTAREA"==r.nodeName?!e.getLine(0).length:!/[^\u200b]/.test(r.querySelector(".CodeMirror-line").textContent)}i?n(e):t(e)},20)}function r(e){a(e)&&n(e)}function o(e){var i=e.getWrapperElement(),r=a(e);i.className=i.className.replace(" CodeMirror-empty","")+(r?" CodeMirror-empty":""),r?n(e):t(e)}function a(e){return 1===e.lineCount()&&""===e.getLine(0)}e.defineOption("placeholder","",function(n,a,s){var l=s&&s!=e.Init;if(a&&!l)n.on("blur",r),n.on("change",o),n.on("swapDoc",o),e.on(n.getInputField(),"compositionupdate",n.state.placeholderCompose=function(){i(n)}),o(n);else if(!a&&l){n.off("blur",r),n.off("change",o),n.off("swapDoc",o),e.off(n.getInputField(),"compositionupdate",n.state.placeholderCompose),t(n);var c=n.getWrapperElement();c.className=c.className.replace(" CodeMirror-empty","")}a&&!n.hasFocus()&&r(n)})}(n(15237))},10299:function(){},10531:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"id-unique",description:"The value of id attributes must be unique.",init(e,t){const n={};e.addListener("tagstart",e=>{const i=e.attrs;let r,o;const a=e.col+e.tagName.length+1;for(let s=0,l=i.length;s<l;s++)if(r=i[s],"id"===r.name.toLowerCase()){o=r.value,o&&(void 0===n[o]?n[o]=1:n[o]++,n[o]>1&&t.error(`The id value [ ${o} ] must be unique.`,e.line,a+r.index,this,r.raw));break}})}}},10555:function(){},10734:function(e,t,n){const i=n(15659),r=n(8507),o={};Object.keys(i).forEach(e=>{o[e]={},Object.defineProperty(o[e],"channels",{value:i[e].channels}),Object.defineProperty(o[e],"labels",{value:i[e].labels});const t=r(e);Object.keys(t).forEach(n=>{const i=t[n];o[e][n]=function(e){const t=function(...t){const n=t[0];if(null==n)return n;n.length>1&&(t=n);const i=e(t);if("object"==typeof i)for(let e=i.length,t=0;t<e;t++)i[t]=Math.round(i[t]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}(i),o[e][n].raw=function(e){const t=function(...t){const n=t[0];return null==n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(i)})}),e.exports=o},11002:function(e){"use strict";e.exports=Function.prototype.apply},11102:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M.75 11.998h22.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m4.5 8.248-3.75 3.75 3.75 3.75" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m19.5 8.248 3.75 3.75-3.75 3.75" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},11310:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M0 120h128v8H0zM0 0h128v8H0zm16 12h96v32H16zm0 72h96v32H16z"/></svg>'},11314:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={id:"html-lang-require",description:"The lang attribute of an <html> element must be present and should be valid.",init(e,t){e.addListener("tagstart",n=>{const i=n.tagName.toLowerCase(),r=e.getMapAttrs(n.attrs),o=n.col+i.length+1,a=new RegExp("((?<grandfathered>(en-GB-oed|i-ami|i-bnn|i-default|i-enochian|i-hak|i-klingon|i-lux|i-mingo|i-navajo|i-pwn|i-tao|i-tay|i-tsu|sgn-BE-FR|sgn-BE-NL|sgn-CH-DE)|(art-lojban|cel-gaulish|no-bok|no-nyn|zh-guoyu|zh-hakka|zh-min|zh-min-nan|zh-xiang))|((?<language>([A-Za-z]{2,3}(-(?<extlang>[A-Za-z]{3}(-[A-Za-z]{3}){0,2}))?)|[A-Za-z]{4}|[A-Za-z]{5,8})(-(?<script>[A-Za-z]{4}))?(-(?<region>[A-Za-z]{2}|[0-9]{3}))?(-(?<variant>[A-Za-z0-9]{5,8}|[0-9][A-Za-z0-9]{3}))*(-(?<extension>[0-9A-WY-Za-wy-z](-[A-Za-z0-9]{2,8})+))*(-(?<privateUse>x(-[A-Za-z0-9]{1,8})+))?)|(?<privateUse2>x(-[A-Za-z0-9]{1,8})+))","g");"html"===i&&("lang"in r?r.lang?a.test(r.lang)||t.warn("The lang attribute value of <html> element must be a valid BCP47.",n.line,o,this,n.raw):t.warn("The lang attribute of <html> element must have a value.",n.line,o,this,n.raw):t.warn("An lang attribute must be present on <html> elements.",n.line,o,this,n.raw))})}}},11514:function(e,t,n){"use strict";var i=n(38403);e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},i=0;i<t.length;++i)n[t[i]]=t[i];var r=Object.assign({},n),o="";for(var a in r)o+=a;return e!==o}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1}()?i:Object.assign:i}},11664:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M19.174 1H4.826A3.826 3.826 0 0 0 1 4.826v14.348A3.826 3.826 0 0 0 4.826 23h14.348A3.826 3.826 0 0 0 23 19.174V4.826A3.826 3.826 0 0 0 19.174 1" stroke-width="2"/></svg>'},11945:function(e,t,n){"use strict";var i=n(76798),r=n.n(i)()(function(e){return e[1]});r.push([e.id,':root{--vc-picker-bg:#f8f8f8;--vc-body-bg:#fff;--vc-input-bg:#fff;--vc-input-text:#333;--vc-input-label:#969696;--vc-input-border:#dadada;--vc-chrome-toggle-btn-highlighted:#eee;--vc-ps-bg:#dcdcdc;--vc-ps-title-bg-gradient-start:#f0f0f0;--vc-ps-title-bg-gradient-end:#d4d4d4;--vc-ps-title-border:#b1b1b1;--vc-ps-title-color:#4d4d4d;--vc-ps-slider-border:#b3b3b3;--vc-ps-slider-border-bottom:#f0f0f0;--vs-ps-picker-border-dark:#555;--vs-ps-picker-border-white:#fff;--vc-ps-btn-gradient-start:#fff;--vc-ps-btn-gradient-end:#e6e6e6;--vc-ps-btn-border:#878787;--vc-ps-btn-shadow:#eaeaea;--vc-ps-btn-color:#000;--vc-ps-preview-border:#000;--vc-ps-label:#000;--vc-ps-input-border:#888;--vc-ps-input-shadow-dark:rgba(0,0,0,.1);--vc-ps-input-shadow-light:#ececec;--vc-sketch-input-label:#222;--vc-sketch-presets-border:#eee;--vc-twitter-input-bg:#fff;--vc-twitter-input-border:#f0f0f0;--vc-twitter-input-color:#666;--vc-twitter-hash-bg:#f0f0f0;--vc-twitter-hash-color:#98a1a4}:root.dark{--vc-body-bg:#424242;--vc-picker-bg:#d0d0d0;--vc-input-bg:#2c2c2c;--vc-input-text:#d0d0d0;--vc-input-label:#bbb;--vc-input-border:#555;--vc-chrome-toggle-btn-highlighted:#5c5c5c;--vc-sketch-input-label:#bbb;--vc-sketch-presets-border:#5a5a5a;--vc-twitter-input-border:#383838;--vc-twitter-input-color:#bbb;--vc-twitter-hash-bg:#383838;--vc-twitter-hash-color:#a0acaf;--vc-twitter-input-bg:#555;--vc-ps-bg:#424242;--vc-ps-title-bg-gradient-start:#4e4e4e;--vc-ps-title-bg-gradient-end:#3a3a3a;--vc-ps-title-border:#5a5a5a;--vc-ps-title-color:#bbb;--vc-ps-slider-border:#5c5c5c;--vc-ps-slider-border-bottom:#4a4a4a;--vs-ps-picker-border-dark:#b8b8b8;--vs-ps-picker-border-white:#bbb;--vc-ps-btn-gradient-start:#505050;--vc-ps-btn-gradient-end:#3a3a3a;--vc-ps-btn-border:#6a6a6a;--vc-ps-btn-shadow:#2a2a2a;--vc-ps-btn-color:#bbb;--vc-ps-preview-border:#3a3a3a;--vc-ps-label:#bbb;--vc-ps-input-border:#666;--vc-ps-input-shadow-dark:rgba(0,0,0,.45);--vc-ps-input-shadow-light:#2d2d2d}.bg[data-v-4d048d6e]{cursor:crosshair;inset:0;position:absolute;touch-action:none}.white[data-v-4d048d6e]{background:linear-gradient(90deg,#fff,#fff0)}.black[data-v-4d048d6e]{background:linear-gradient(0deg,#000,#0000)}.picker-wrap[data-v-4d048d6e]{cursor:pointer;outline:none;position:absolute}.picker[data-v-4d048d6e]{border-radius:50%;box-shadow:0 0 0 1.6px var(--vc-picker-bg),inset 0 0 1px 1px #0000004d,0 0 1px 2px #0006;cursor:move;height:4px;transform:translate(-2px,-2px);width:4px}.vc-base-slider[data-v-972b0fad]{height:100%;position:relative;touch-action:none;width:100%}.background[data-v-972b0fad],.slider[data-v-972b0fad]{inset:0;position:absolute}.background[data-v-972b0fad]{overflow:hidden}.slider[data-v-972b0fad]{cursor:pointer;z-index:2}.picker-wrap[data-v-972b0fad]{outline:none;position:absolute;z-index:2}.picker[data-v-972b0fad]{background:var(--vc-picker-bg);border-radius:1px;box-shadow:0 0 2px #0009;cursor:pointer;height:8px;margin-top:1px;transform:translate(-2px);width:4px}.vc-hue-slider[data-v-5367c985]{cursor:crosshair;touch-action:none}.gradient[data-v-5367c985]{background:var(--2f44f39d);border-radius:2px;height:100%;width:100%}.vc-checkerboard[data-v-37d61ccd]{background-size:contain;inset:0;position:absolute}.vc-alpha-slider[data-v-07dd346b] .vc-checkerboard{border-radius:2px}.gradient[data-v-07dd346b]{inset:0;position:absolute}.vc-editable-input[data-v-9c267b2b]{position:relative}.vc-input-input[data-v-9c267b2b]{border:0;outline:none;padding:0;width:100%}.vc-input-label[data-v-9c267b2b]{text-transform:capitalize}.vc-chrome-picker[data-v-dfdde7e0]{border-radius:2px;box-shadow:0 0 2px #0000004d,0 4px 8px #0000004d;box-sizing:initial;font-family:Menlo,Consolas,Courier New,monospace;width:225px}.controls[data-v-dfdde7e0]{display:flex}.color-wrap[data-v-dfdde7e0]{position:relative;width:36px}.active-color[data-v-dfdde7e0]{border-radius:15px;height:30px;overflow:hidden;position:relative;width:30px;z-index:1}.color-wrap[data-v-dfdde7e0] .vc-checkerboard{background-size:auto;border-radius:15px;height:30px;width:30px}.sliders[data-v-dfdde7e0]{flex:1}.fieldsWrap[data-v-dfdde7e0]{display:flex;padding-top:16px}.fields[data-v-dfdde7e0]{display:flex;flex:1;margin-left:-6px}.field[data-v-dfdde7e0]{padding-left:6px;width:100%}.toggle-btn[data-v-dfdde7e0]{position:relative;text-align:right;width:32px}.toggle-icon[data-v-dfdde7e0]{color:var(--vc-input-text);cursor:pointer;margin-right:-4px;margin-top:12px;position:relative;z-index:2}.toggle-icon_highlighted[data-v-dfdde7e0]{background:var(--vc-chrome-toggle-btn-highlighted);border-radius:4px;height:28px;left:12px;position:absolute;top:10px;width:24px}.hue-wrap[data-v-dfdde7e0]{margin-bottom:8px}.alpha-wrap[data-v-dfdde7e0],.hue-wrap[data-v-dfdde7e0]{height:10px;position:relative}.alpha-wrap[data-v-dfdde7e0] .gradient,.hue-wrap[data-v-dfdde7e0] .container{border-radius:2px}.alpha-wrap[data-v-dfdde7e0] .picker,.hue-wrap[data-v-dfdde7e0] .picker{border-radius:6px;box-shadow:0 1px 4px #0000005e;height:12px;transform:translate(-6px,-2px);width:12px}.body[data-v-dfdde7e0]{background-color:var(--vc-body-bg);padding:16px 16px 12px}.saturation[data-v-dfdde7e0]{border-radius:2px 2px 0 0;overflow:hidden;padding-bottom:55%;position:relative;width:100%}.saturation[data-v-dfdde7e0] .picker{height:12px;transform:translate(-6px,-6px);width:12px}.fields[data-v-dfdde7e0] .vc-input-input{background-color:var(--vc-input-bg);border:none;border-radius:2px;box-shadow:inset 0 0 0 1px var(--vc-input-border);color:var(--vc-input-text);font-size:11px;height:21px;text-align:center;width:100%}.fields[data-v-dfdde7e0] .vc-input-label{color:var(--vc-input-label);display:block;font-size:11px;line-height:11px;margin-top:12px;text-align:center;text-transform:uppercase}.alpha-disabled[data-v-dfdde7e0] .active-color{height:18px;width:18px}.alpha-disabled[data-v-dfdde7e0] .color-wrap{width:30px}.alpha-disabled[data-v-dfdde7e0] .hue-wrap{margin-bottom:4px;margin-top:4px}.vc-compact-picker[data-v-91d11fa7]{background-color:var(--vc-body-bg);border-radius:2px;box-shadow:0 2px 10px #0000001f,0 2px 5px #00000029;box-sizing:border-box;padding-left:5px;padding-top:5px;width:245px}.colors[data-v-91d11fa7]{margin:0;overflow:hidden;padding:0}.color-item[data-v-91d11fa7]{cursor:pointer;float:left;height:15px;list-style:none;margin-bottom:5px;margin-right:5px;position:relative;width:15px}.color-item_white[data-v-91d11fa7]{box-shadow:inset 0 0 0 1px #ddd}.color-item_white .dot[data-v-91d11fa7]{background:#000}.dot[data-v-91d11fa7]{background:#fff;border-radius:50%;inset:5px;opacity:1;position:absolute}.vc-grayscale-picker[data-v-631223a5]{background-color:var(--vc-body-bg);border-radius:2px;box-shadow:0 2px 10px #0000001f,0 2px 5px #00000029;box-sizing:border-box;padding-left:5px;padding-top:5px;width:245px}.colors[data-v-631223a5]{margin:0;overflow:hidden;padding:0}.color-item[data-v-631223a5]{cursor:pointer;float:left;height:15px;list-style:none;margin-bottom:5px;margin-right:5px;position:relative;width:15px}.color-item_white[data-v-631223a5]{box-shadow:inset 0 0 0 1px #ddd}.color-item_white .dot[data-v-631223a5]{background:#000}.dot[data-v-631223a5]{background:#fff;border-radius:50%;inset:5px;opacity:1;position:absolute}.vc-material-picker[data-v-8f86229c]{background-color:var(--vc-body-bg);border-radius:2px;box-shadow:0 2px 10px #0000001f,0 2px 5px #00000029;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica Neue,Arial,sans-serif;height:98px;padding:16px;position:relative;width:98px}.vc-material-picker[data-v-8f86229c] .vc-input-input{background-color:var(--vc-body-bg);color:var(--vc-input-text);font-size:15px;height:30px;margin-top:12px;width:100%}.vc-material-picker[data-v-8f86229c] .vc-input-label{color:var(--vc-input-label);font-size:11px;left:0;position:absolute;top:0}.hex[data-v-8f86229c]{border-bottom-style:solid;border-bottom-width:2px}.rgb[data-v-8f86229c]{display:flex;margin-right:-10px;padding-top:11px}.color[data-v-8f86229c]{flex:1;padding-right:10px}.vc-photoshop-picker[data-v-b69df0e5]{background:var(--vc-ps-bg);border-radius:4px;box-shadow:0 0 0 1px #00000040,0 8px 16px #00000026;box-sizing:initial;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica Neue,Arial,sans-serif;width:513px}.fields_disabled[data-v-b69df0e5]{width:390px}.title[data-v-b69df0e5]{background-image:linear-gradient(-180deg,var(--vc-ps-title-bg-gradient-start) 0,var(--vc-ps-title-bg-gradient-end) 100%);border-bottom:1px solid var(--vc-ps-title-border);border-radius:4px 4px 0 0;box-shadow:inset 0 1px #fff3,inset 0 -1px #00000005;color:var(--vc-ps-title-color);font-size:13px;height:23px;line-height:24px;text-align:center}.body[data-v-b69df0e5]{display:flex;padding:15px}.saturation[data-v-b69df0e5]{border-bottom:2px solid var(--vc-ps-slider-border);border:2px solid var(--vc-ps-slider-border);border-bottom-color:var(--vc-ps-slider-border-bottom);height:256px;overflow:hidden;position:relative;width:256px}.saturation[data-v-b69df0e5] .picker{height:12px;transform:translate(-6px,-6px);width:12px}.hue[data-v-b69df0e5]{border-bottom:2px solid var(--vc-ps-slider-border);border:2px solid var(--vc-ps-slider-border);border-bottom-color:var(--vc-ps-slider-border-bottom);height:256px;margin-left:10px;width:19px}.hue-picker[data-v-b69df0e5]{position:relative}.hue-picker-left[data-v-b69df0e5],.hue-picker-right[data-v-b69df0e5]{border-color:transparent transparent transparent var(--vs-ps-picker-border-dark);border-style:solid;border-width:5px 0 5px 8px;cursor:pointer;height:0;position:absolute;width:0}.hue-picker-left[data-v-b69df0e5]:after,.hue-picker-right[data-v-b69df0e5]:after{border-color:transparent transparent transparent var(--vs-ps-picker-border-white);border-style:solid;border-width:4px 0 4px 6px;content:"";height:0;left:1px;position:absolute;top:1px;transform:translate(-8px,-5px);width:0}.hue-picker-left[data-v-b69df0e5]{transform:translate(-10px,-4px)}.hue-picker-right[data-v-b69df0e5]{transform:translate(21px,-4px) rotate(180deg)}.controls[data-v-b69df0e5]{display:flex;margin-left:10px;width:180px}.controls_fields_disabled[data-v-b69df0e5]{width:auto}.actions[data-v-b69df0e5]{flex:1;margin-left:20px}.action-btn[data-v-b69df0e5]{background-image:linear-gradient(-180deg,var(--vc-ps-btn-gradient-start) 0,var(--vc-ps-btn-gradient-end) 100%);border:1px solid var(--vc-ps-btn-border);border-radius:2px;box-shadow:0 1px 0 0 var(--vc-ps-btn-shadow);color:var(--vc-ps-btn-color);cursor:pointer;font-size:14px;height:20px;line-height:20px;margin-bottom:10px;text-align:center}.preview[data-v-b69df0e5]{width:60px}.preview-swatches[data-v-b69df0e5]{border-bottom:1px solid var(--vc-ps-slider-border);border:1px solid var(--vc-ps-slider-border);border-bottom-color:var(--vc-ps-slider-border-bottom);margin-bottom:2px;margin-top:1px}.preview-color[data-v-b69df0e5]{box-shadow:inset 1px 0 var(--vc-ps-preview-border),inset -1px 0 var(--vc-ps-preview-border),inset 0 1px var(--vc-ps-preview-border);height:34px}.preview-label[data-v-b69df0e5]{color:var(--vc-ps-label);font-size:14px;text-align:center}.fields[data-v-b69df0e5]{padding-bottom:9px;padding-top:5px;position:relative;width:80px}.fields[data-v-b69df0e5] .vc-input-input{background-color:var(--vc-input-bg);border:1px solid var(--vc-ps-input-border);box-shadow:inset 0 1px 1px var(--vc-ps-input-shadow-dark),0 1px 0 0 var(--vc-ps-input-shadow-light);color:var(--vc-ps-label);font-size:13px;height:18px;margin-bottom:5px;margin-left:40%;margin-right:10px;padding-left:3px;width:40%}.fields[data-v-b69df0e5] .vc-input-desc,.fields[data-v-b69df0e5] .vc-input-label{color:var(--vc-ps-label);font-size:13px;height:18px;line-height:22px;position:absolute;text-transform:uppercase;top:0}.fields[data-v-b69df0e5] .vc-input-label{left:0;width:34px}.fields[data-v-b69df0e5] .vc-input-desc{right:0;width:0}.fields-divider[data-v-b69df0e5]{height:5px}.hex[data-v-b69df0e5] .vc-input-input{border:1px solid var(--vc-ps-input-border);box-shadow:inset 0 1px 1px var(--vc-ps-input-shadow-dark),0 1px 0 0 var(--vc-ps-input-shadow-light);font-size:13px;height:18px;margin-bottom:6px;margin-left:20%;padding-left:3px;width:80%}.hex[data-v-b69df0e5] .vc-input-label{font-size:13px;height:18px;left:0;line-height:22px;position:absolute;text-transform:uppercase;top:0;width:14px}.vc-sketch-picker[data-v-fdb7d989]{background:var(--vc-body-bg);border-radius:4px;box-shadow:0 0 0 1px #00000026,0 8px 16px #00000026;box-sizing:initial;font-family:Menlo,Consolas,Courier New,monospace;padding:10px 10px 0;position:relative;width:200px}.saturation[data-v-fdb7d989]{overflow:hidden;padding-bottom:75%;position:relative;width:100%}.controls[data-v-fdb7d989]{display:flex}.sliders[data-v-fdb7d989]{flex:1;padding:4px 0}.alpha[data-v-fdb7d989] .gradient,.hue[data-v-fdb7d989] .container{border-radius:2px}.hue[data-v-fdb7d989]{height:10px;position:relative}.alpha[data-v-fdb7d989]{height:10px}.alpha[data-v-fdb7d989],.color[data-v-fdb7d989]{margin-top:4px;overflow:hidden;position:relative}.color[data-v-fdb7d989]{border-radius:2px;height:24px;margin-left:4px;width:24px}.active-color[data-v-fdb7d989]{box-shadow:inset 0 0 0 1px #00000026,inset 0 0 4px #00000040;inset:0;position:absolute;z-index:2}.color[data-v-fdb7d989] .vc-checkerboard{background-size:auto}.field[data-v-fdb7d989]{display:flex;padding-top:4px}.field[data-v-fdb7d989] .vc-input-input{background-color:var(--vc-input-bg);border:none;box-shadow:inset 0 0 0 1px var(--vc-input-border);color:var(--vc-input-text);font-size:10px;padding:4px 0 3px 10%;width:90%}.field[data-v-fdb7d989] .vc-input-label{color:var(--vc-sketch-input-label);display:block;font-size:11px;padding-bottom:4px;padding-top:3px;text-align:center}.field_single[data-v-fdb7d989]{flex:1;padding-left:6px}.field_double[data-v-fdb7d989]{flex:2}.presets[data-v-fdb7d989]{border-top:1px solid var(--vc-sketch-presets-border);margin-left:-10px;margin-right:-10px;padding-left:10px;padding-top:10px}.preset-color[data-v-fdb7d989]{cursor:pointer;display:inline-block;height:16px;margin:0 10px 10px 0;overflow:hidden;position:relative;vertical-align:top;width:16px}.preset-color[data-v-fdb7d989],.preset-color[data-v-fdb7d989] .vc-checkerboard{border-radius:3px;box-shadow:inset 0 0 0 1px #00000026}.alpha-disabled .color[data-v-fdb7d989]{height:10px}.vc-slider-picker[data-v-675d6988]{position:relative;width:410px}.hue[data-v-675d6988]{height:12px;position:relative}.alpha[data-v-675d6988] .picker,.hue[data-v-675d6988] .picker{border-radius:6px;box-shadow:0 1px 4px #0000005e;height:14px;transform:translate(-7px,-2px);width:14px}.alpha[data-v-675d6988]{height:12px;margin-top:20px;position:relative}.swatches[data-v-675d6988]{display:flex;margin-top:20px}.swatch[data-v-675d6988]{flex:1;margin-right:1px;width:20%}.swatch[data-v-675d6988]:first-child{margin-right:1px}.swatch:first-child .picker[data-v-675d6988]{border-radius:2px 0 0 2px}.swatch[data-v-675d6988]:last-child{margin-right:0}.swatch:last-child .picker[data-v-675d6988]{border-radius:0 2px 2px 0}.picker[data-v-675d6988]{cursor:pointer;height:12px}.swatch:nth-child(n) .picker_active[data-v-675d6988]{border-radius:3.6px/2px;transform:scaleY(1.8)}.picker_white[data-v-675d6988]{box-shadow:inset 0 0 0 1px #ddd}.picker_active.picker_white[data-v-675d6988]{box-shadow:inset 0 0 0 .6px #ddd}.vc-swatches-picker[data-v-3427cb2a]{background-color:var(--vc-body-bg);box-shadow:0 2px 10px #0000001f,0 2px 5px #00000029;height:240px;overflow-y:scroll;width:320px}.box[data-v-3427cb2a]{overflow:hidden;padding:16px 0 6px 16px}.colorGroup[data-v-3427cb2a]{float:left;margin-right:10px;padding-bottom:10px;width:40px}.color[data-v-3427cb2a]{-ms-border-radius:2px 2px 0 0;-moz-border-radius:2px 2px 0 0;-o-border-radius:2px 2px 0 0;-webkit-border-radius:2px 2px 0 0;border-radius:2px 2px 0 0;box-sizing:border-box;cursor:pointer;height:24px;margin-bottom:1px;overflow:hidden;width:40px}.color_white[data-v-3427cb2a]{border:1px solid #ddd}.picker[data-v-3427cb2a]{fill:#fff;display:block;margin-left:8px}.color_white .picker[data-v-3427cb2a]{fill:#333}.vc-twitter-picker[data-v-e74ac697]{background:var(--vc-body-bg);border:0 solid rgba(0,0,0,.25);border-radius:4px;box-shadow:0 1px 4px #00000040;position:relative}.triangle[data-v-e74ac697]{border-color:transparent transparent var(--vc-body-bg) transparent;border-style:solid;border-width:0 9px 10px;height:0;position:absolute;width:0}.triangle_shadow[data-v-e74ac697]{border-color:transparent transparent rgba(0,0,0,.1);border-style:solid;border-width:0 9px 10px;height:0;position:absolute;width:0}.body[data-v-e74ac697]{padding:15px 9px 9px 15px}.vc-twitter-picker[data-v-e74ac697] .vc-editable-input{position:relative}.vc-twitter-picker[data-v-e74ac697] .vc-input-input{background-color:var(--vc-twitter-input-bg);border:0;border-radius:0 4px 4px 0;box-shadow:inset 0 0 0 1px var(--vc-twitter-input-border);box-sizing:content-box;color:var(--vc-twitter-input-color);float:left;font-size:14px;height:28px;outline:none;padding:1px 1px 1px 8px;width:100px}.vc-twitter-picker[data-v-e74ac697] .vc-editable-input span{display:none}.hash[data-v-e74ac697]{align-items:center;background:var(--vc-twitter-hash-bg);border-radius:4px 0 0 4px;color:var(--vc-twitter-hash-color);display:flex;float:left;height:30px;justify-content:center;width:30px}.swatch[data-v-e74ac697]{border-radius:4px;cursor:pointer;float:left;height:30px;margin:0 6px 6px 0;outline:none;position:relative;width:30px}.clear[data-v-e74ac697]{clear:both}.tri_hide .triangle[data-v-e74ac697],.tri_hide .triangle_shadow[data-v-e74ac697]{display:none}.tri_top_left .triangle[data-v-e74ac697]{left:12px;top:-10px}.tri_top_left .triangle_shadow[data-v-e74ac697]{left:12px;top:-11px}.tri_top_right .triangle[data-v-e74ac697]{right:12px;top:-10px}.tri_top_right .triangle_shadow[data-v-e74ac697]{right:12px;top:-11px}.vc-hue-wrap[data-v-b3ac1ab2]{height:8px}.vc-hue-wrap[data-v-b3ac1ab2] .slider{border-radius:4px}.vc-hue-wrap[data-v-b3ac1ab2] .picker{background-color:var(--46ac36b6);border:2px solid #fff;border-radius:50%;box-shadow:none;height:20px;margin:0;transform:translate(-12px) translateY(-8px);width:20px}.vc-hsl-sliders[data-v-2e071f54]{font-family:Menlo,Consolas,Courier New,monospace;position:relative;width:100%}.slider-wrap[data-v-2e071f54]{display:flex;gap:12px;height:24px;margin-bottom:10px}.slider-wrap[data-v-2e071f54]:last-of-type{margin-bottom:0}.label[data-v-2e071f54]{color:var(--vc-input-text);display:block;font-size:12px;height:24px;line-height:24px;text-align:center;text-transform:uppercase}.vc-hsl-sliders[data-v-2e071f54] .vc-base-slider{height:14px;margin-top:5px}.vc-hsl-sliders[data-v-2e071f54] .background{border:1px solid var(--vc-input-border);border-radius:4px}.gradient[data-v-2e071f54]{height:100%;width:100%}.vc-hsl-sliders[data-v-2e071f54] .picker{border:2px solid #fff;border-radius:50%;box-shadow:none;height:20px;margin:0;transform:translate(-12px) translateY(-5px);width:20px}.h-slider[data-v-2e071f54] .picker{background-color:var(--41b5b6d0)}.l-slider[data-v-2e071f54] .picker,.s-slider[data-v-2e071f54] .picker{background-color:var(--05fbe691)}.vc-hsl-sliders[data-v-2e071f54] .vc-editable-input{border-bottom:1px solid var(--vc-input-border)}.vc-hsl-sliders[data-v-2e071f54] .vc-input-input{background:none;color:var(--vc-input-text);font-size:12px;text-align:center;width:50px}.vc-hsv-sliders[data-v-d6cfe1d9]{font-family:Menlo,Consolas,Courier New,monospace;position:relative;width:100%}.slider-wrap[data-v-d6cfe1d9]{display:flex;gap:12px;height:24px;margin-bottom:10px}.slider-wrap[data-v-d6cfe1d9]:last-of-type{margin-bottom:0}.label[data-v-d6cfe1d9]{color:var(--vc-input-text);display:block;font-size:12px;height:24px;line-height:24px;text-align:center;text-transform:uppercase}.vc-hsv-sliders[data-v-d6cfe1d9] .vc-base-slider{height:14px;margin-top:5px}.vc-hsv-sliders[data-v-d6cfe1d9] .background{border:1px solid var(--vc-input-border);border-radius:4px}.gradient[data-v-d6cfe1d9]{height:100%;width:100%}.vc-hsv-sliders[data-v-d6cfe1d9] .picker{border:2px solid #fff;border-radius:50%;box-shadow:none;height:20px;margin:0;transform:translate(-12px) translateY(-5px);width:20px}.h-slider[data-v-d6cfe1d9] .picker{background-color:var(--f666f450)}.b-slider[data-v-d6cfe1d9] .picker,.s-slider[data-v-d6cfe1d9] .picker{background-color:var(--46b90cce)}.vc-hsv-sliders[data-v-d6cfe1d9] .vc-editable-input{border-bottom:1px solid var(--vc-input-border)}.vc-hsv-sliders[data-v-d6cfe1d9] .vc-input-input{background:none;color:var(--vc-input-text);font-size:12px;text-align:center;width:50px}.vc-rgb-sliders[data-v-98b3b212]{font-family:Menlo,Consolas,Courier New,monospace;position:relative;width:100%}.slider-wrap[data-v-98b3b212]{display:flex;gap:12px;height:24px;margin-bottom:10px}.slider-wrap[data-v-98b3b212]:last-of-type{margin-bottom:0}.label[data-v-98b3b212]{color:var(--vc-input-text);display:block;font-size:12px;height:24px;line-height:24px;text-align:center;text-transform:uppercase}.vc-rgb-sliders[data-v-98b3b212] .vc-base-slider{height:14px;margin-top:5px}.vc-rgb-sliders[data-v-98b3b212] .background{border:1px solid var(--vc-input-border);border-radius:4px}.gradient[data-v-98b3b212]{height:100%;width:100%}.vc-rgb-sliders[data-v-98b3b212] .picker{border:2px solid #fff;border-radius:50%;box-shadow:none;height:20px;margin:0;transform:translate(-12px) translateY(-5px);width:20px}.slider-wrap[data-v-98b3b212]:not(.a-slider) .picker{background-color:var(--5f730604)}.vc-rgb-sliders[data-v-98b3b212] .vc-editable-input{border-bottom:1px solid var(--vc-input-border)}.vc-rgb-sliders[data-v-98b3b212] .vc-input-input{background:none;color:var(--vc-input-text);font-size:12px;text-align:center;width:50px}',""]),t.A=r},12042:function(){},12089:function(e,t,n){!function(e){"use strict";function t(e,t){if(!window.JSHINT)return window.console&&window.console.error("Error: window.JSHINT not defined, CodeMirror JavaScript linting cannot run."),[];t.indent||(t.indent=1),JSHINT(e,t,t.globals);var i=JSHINT.data().errors,r=[];return i&&n(i,r),r}function n(t,n){for(var i=0;i<t.length;i++){var r=t[i];if(r){if(r.line<=0){window.console&&window.console.warn("Cannot display JSHint error (invalid line "+r.line+")",r);continue}var o=r.character-1,a=o+1;if(r.evidence){var s=r.evidence.substring(o).search(/.\b/);s>-1&&(a+=s)}var l={message:r.reason,severity:r.code&&r.code.startsWith("W")?"warning":"error",from:e.Pos(r.line-1,o),to:e.Pos(r.line-1,a)};n.push(l)}}}e.registerHelper("lint","javascript",t)}(n(15237))},12103:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M17.625 23.25h-13.5a1.5 1.5 0 0 1-1.5-1.5V5.625" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M21.375 18.159A1.8 1.8 0 0 1 19.625 20H7.375a1.8 1.8 0 0 1-1.75-1.841V2.591A1.8 1.8 0 0 1 7.375.75h8.9a1.7 1.7 0 0 1 1.238.539l3.349 3.524a1.9 1.9 0 0 1 .513 1.3Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},12520:function(e,t,n){!function(e){"use strict";var t={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function n(e,t,n){var i=e.current(),r=i.search(t);return r>-1?e.backUp(i.length-r):i.match(/<\/?$/)&&(e.backUp(i.length),e.match(t,!1)||e.match(i)),n}var i={};function r(e){var t=i[e];return t||(i[e]=new RegExp("\\s+"+e+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*"))}function o(e,t){var n=e.match(r(t));return n?/^\s*(.*?)\s*$/.exec(n[2])[1]:""}function a(e,t){return new RegExp((t?"^":"")+"</\\s*"+e+"\\s*>","i")}function s(e,t){for(var n in e)for(var i=t[n]||(t[n]=[]),r=e[n],o=r.length-1;o>=0;o--)i.unshift(r[o])}function l(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(!i[0]||i[1].test(o(t,i[0])))return i[2]}}e.defineMode("htmlmixed",function(i,r){var o=e.getMode(i,{name:"xml",htmlMode:!0,multilineTagIndentFactor:r.multilineTagIndentFactor,multilineTagIndentPastTag:r.multilineTagIndentPastTag,allowMissingTagName:r.allowMissingTagName}),c={},u=r&&r.tags,d=r&&r.scriptTypes;if(s(t,c),u&&s(u,c),d)for(var p=d.length-1;p>=0;p--)c.script.unshift(["type",d[p].matches,d[p].mode]);function h(t,r){var s,u=o.token(t,r.htmlState),d=/\btag\b/.test(u);if(d&&!/[<>\s\/]/.test(t.current())&&(s=r.htmlState.tagName&&r.htmlState.tagName.toLowerCase())&&c.hasOwnProperty(s))r.inTag=s+" ";else if(r.inTag&&d&&/>$/.test(t.current())){var p=/^([\S]+) (.*)/.exec(r.inTag);r.inTag=null;var f=">"==t.current()&&l(c[p[1]],p[2]),m=e.getMode(i,f),g=a(p[1],!0),v=a(p[1],!1);r.token=function(e,t){return e.match(g,!1)?(t.token=h,t.localState=t.localMode=null,null):n(e,v,t.localMode.token(e,t.localState))},r.localMode=m,r.localState=e.startState(m,o.indent(r.htmlState,"",""))}else r.inTag&&(r.inTag+=t.current(),t.eol()&&(r.inTag+=" "));return u}return{startState:function(){return{token:h,inTag:null,localMode:null,localState:null,htmlState:e.startState(o)}},copyState:function(t){var n;return t.localState&&(n=e.copyState(t.localMode,t.localState)),{token:t.token,inTag:t.inTag,localMode:t.localMode,localState:n,htmlState:e.copyState(o,t.htmlState)}},token:function(e,t){return t.token(e,t)},indent:function(t,n,i){return!t.localMode||/^\s*<\//.test(n)?o.indent(t.htmlState,n,i):t.localMode.indent?t.localMode.indent(t.localState,n,i):e.Pass},innerMode:function(e){return{state:e.localState||e.htmlState,mode:e.localMode||o}}}},"xml","javascript","css"),e.defineMIME("text/html","htmlmixed")}(n(15237),n(40576),n(16792),n(68656))},12819:function(e){e.exports='<svg viewBox="-1 -1 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M4.047 7.94a10.972 10.972 0 0 1 17.266 9.018 6.875 6.875 0 0 0-6.875-6.875 6.8 6.8 0 0 0-5.475 2.776l2.926 2.926a.688.688 0 0 1-.487 1.173h-9.34a1.375 1.375 0 0 1-1.374-1.375V6.241a.688.688 0 0 1 1.173-.487Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},12991:function(e){"use strict";const t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,r=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,o=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function a(e){const t="u"===e[0],n="{"===e[1];return t&&!n&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):t&&n?String.fromCodePoint(parseInt(e.slice(2,-1),16)):o.get(e)||e}function s(e,t){const n=[],o=t.trim().split(/\s*,\s*/g);let s;for(const t of o){const o=Number(t);if(Number.isNaN(o)){if(!(s=t.match(i)))throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);n.push(s[2].replace(r,(e,t,n)=>t?a(t):n))}else n.push(o)}return n}function l(e){n.lastIndex=0;const t=[];let i;for(;null!==(i=n.exec(e));){const e=i[1];if(i[2]){const n=s(e,i[2]);t.push([e].concat(n))}else t.push([e])}return t}function c(e,t){const n={};for(const e of t)for(const t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let i=e;for(const[e,t]of Object.entries(n))if(Array.isArray(t)){if(!(e in i))throw new Error(`Unknown Chalk style: ${e}`);i=t.length>0?i[e](...t):i[e]}return i}e.exports=(e,n)=>{const i=[],r=[];let o=[];if(n.replace(t,(t,n,s,u,d,p)=>{if(n)o.push(a(n));else if(u){const t=o.join("");o=[],r.push(0===i.length?t:c(e,i)(t)),i.push({inverse:s,styles:l(u)})}else if(d){if(0===i.length)throw new Error("Found extraneous } in Chalk template literal");r.push(c(e,i)(o.join(""))),o=[],i.pop()}else o.push(p)}),r.push(o.join("")),i.length>0){const e=`Chalk template literal is missing ${i.length} closing bracket${1===i.length?"":"s"} (\`}\`)`;throw new Error(e)}return r.join("")}},13144:function(e,t,n){"use strict";var i=n(66743),r=n(11002),o=n(10076),a=n(47119);e.exports=a||i.call(o,r)},13573:function(e,t,n){"use strict";e.exports=y;var i=n(21124),r=n(44418),o=n(37388),a=n(96688),s=n(54100),l=n(61378),c=n(14432),u=n(44162),d=n(51607),p=n(22347),h=n(70482),f=n(75220),m=n(27645),g=n(392),v=n(29709);function y(e){i.call(this),this.options=e||{},this._tokenStream=null}y.DEFAULT_TYPE=0,y.COMBINATOR_TYPE=1,y.MEDIA_FEATURE_TYPE=2,y.MEDIA_QUERY_TYPE=3,y.PROPERTY_NAME_TYPE=4,y.PROPERTY_VALUE_TYPE=5,y.PROPERTY_VALUE_PART_TYPE=6,y.SELECTOR_TYPE=7,y.SELECTOR_PART_TYPE=8,y.SELECTOR_SUB_PART_TYPE=9,y.prototype=function(){var e,t=new i,n={__proto__:null,constructor:y,DEFAULT_TYPE:0,COMBINATOR_TYPE:1,MEDIA_FEATURE_TYPE:2,MEDIA_QUERY_TYPE:3,PROPERTY_NAME_TYPE:4,PROPERTY_VALUE_TYPE:5,PROPERTY_VALUE_PART_TYPE:6,SELECTOR_TYPE:7,SELECTOR_PART_TYPE:8,SELECTOR_SUB_PART_TYPE:9,_stylesheet:function(){var e,t,n,i=this._tokenStream;for(this.fire("startstylesheet"),this._charset(),this._skipCruft();i.peek()===g.IMPORT_SYM;)this._import(),this._skipCruft();for(;i.peek()===g.NAMESPACE_SYM;)this._namespace(),this._skipCruft();for(n=i.peek();n>g.EOF;){try{switch(n){case g.MEDIA_SYM:this._media(),this._skipCruft();break;case g.PAGE_SYM:this._page(),this._skipCruft();break;case g.FONT_FACE_SYM:this._font_face(),this._skipCruft();break;case g.KEYFRAMES_SYM:this._keyframes(),this._skipCruft();break;case g.VIEWPORT_SYM:this._viewport(),this._skipCruft();break;case g.DOCUMENT_SYM:this._document(),this._skipCruft();break;case g.SUPPORTS_SYM:this._supports(),this._skipCruft();break;case g.UNKNOWN_SYM:if(i.get(),this.options.strict)throw new r("Unknown @ rule.",i.LT(0).startLine,i.LT(0).startCol);for(this.fire({type:"error",error:null,message:"Unknown @ rule: "+i.LT(0).value+".",line:i.LT(0).startLine,col:i.LT(0).startCol}),e=0;i.advance([g.LBRACE,g.RBRACE])===g.LBRACE;)e++;for(;e;)i.advance([g.RBRACE]),e--;break;case g.S:this._readWhitespace();break;default:if(!this._ruleset())switch(n){case g.CHARSET_SYM:throw t=i.LT(1),this._charset(!1),new r("@charset not allowed here.",t.startLine,t.startCol);case g.IMPORT_SYM:throw t=i.LT(1),this._import(!1),new r("@import not allowed here.",t.startLine,t.startCol);case g.NAMESPACE_SYM:throw t=i.LT(1),this._namespace(!1),new r("@namespace not allowed here.",t.startLine,t.startCol);default:i.get(),this._unexpectedToken(i.token())}}}catch(e){if(!(e instanceof r)||this.options.strict)throw e;this.fire({type:"error",error:e,message:e.message,line:e.line,col:e.col})}n=i.peek()}n!==g.EOF&&this._unexpectedToken(i.token()),this.fire("endstylesheet")},_charset:function(e){var t,n,i,r=this._tokenStream;r.match(g.CHARSET_SYM)&&(n=r.token().startLine,i=r.token().startCol,this._readWhitespace(),r.mustMatch(g.STRING),t=r.token().value,this._readWhitespace(),r.mustMatch(g.SEMICOLON),!1!==e&&this.fire({type:"charset",charset:t,line:n,col:i}))},_import:function(e){var t,n,i,r=this._tokenStream;r.mustMatch(g.IMPORT_SYM),n=r.token(),this._readWhitespace(),r.mustMatch([g.STRING,g.URI]),t=r.token().value.replace(/^(?:url\()?["']?([^"']+?)["']?\)?$/,"$1"),this._readWhitespace(),i=this._media_query_list(),r.mustMatch(g.SEMICOLON),this._readWhitespace(),!1!==e&&this.fire({type:"import",uri:t,media:i,line:n.startLine,col:n.startCol})},_namespace:function(e){var t,n,i,r,o=this._tokenStream;o.mustMatch(g.NAMESPACE_SYM),t=o.token().startLine,n=o.token().startCol,this._readWhitespace(),o.match(g.IDENT)&&(i=o.token().value,this._readWhitespace()),o.mustMatch([g.STRING,g.URI]),r=o.token().value.replace(/(?:url\()?["']([^"']+)["']\)?/,"$1"),this._readWhitespace(),o.mustMatch(g.SEMICOLON),this._readWhitespace(),!1!==e&&this.fire({type:"namespace",prefix:i,uri:r,line:t,col:n})},_supports:function(e){var t,n,i=this._tokenStream;if(i.match(g.SUPPORTS_SYM)){for(t=i.token().startLine,n=i.token().startCol,this._readWhitespace(),this._supports_condition(),this._readWhitespace(),i.mustMatch(g.LBRACE),this._readWhitespace(),!1!==e&&this.fire({type:"startsupports",line:t,col:n});this._ruleset(););i.mustMatch(g.RBRACE),this._readWhitespace(),this.fire({type:"endsupports",line:t,col:n})}},_supports_condition:function(){var e,t=this._tokenStream;if(t.match(g.IDENT))"not"===(e=t.token().value.toLowerCase())?(t.mustMatch(g.S),this._supports_condition_in_parens()):t.unget();else for(this._supports_condition_in_parens(),this._readWhitespace();t.peek()===g.IDENT;)"and"!==(e=t.LT(1).value.toLowerCase())&&"or"!==e||(t.mustMatch(g.IDENT),this._readWhitespace(),this._supports_condition_in_parens(),this._readWhitespace())},_supports_condition_in_parens:function(){var e=this._tokenStream;e.match(g.LPAREN)?(this._readWhitespace(),e.match(g.IDENT)?"not"===e.token().value.toLowerCase()?(this._readWhitespace(),this._supports_condition(),this._readWhitespace(),e.mustMatch(g.RPAREN)):(e.unget(),this._supports_declaration_condition(!1)):(this._supports_condition(),this._readWhitespace(),e.mustMatch(g.RPAREN))):this._supports_declaration_condition()},_supports_declaration_condition:function(e){var t=this._tokenStream;!1!==e&&t.mustMatch(g.LPAREN),this._readWhitespace(),this._declaration(),t.mustMatch(g.RPAREN)},_media:function(){var e,t,n,i=this._tokenStream;for(i.mustMatch(g.MEDIA_SYM),e=i.token().startLine,t=i.token().startCol,this._readWhitespace(),n=this._media_query_list(),i.mustMatch(g.LBRACE),this._readWhitespace(),this.fire({type:"startmedia",media:n,line:e,col:t});;)if(i.peek()===g.PAGE_SYM)this._page();else if(i.peek()===g.FONT_FACE_SYM)this._font_face();else if(i.peek()===g.VIEWPORT_SYM)this._viewport();else if(i.peek()===g.DOCUMENT_SYM)this._document();else if(i.peek()===g.SUPPORTS_SYM)this._supports();else if(i.peek()===g.MEDIA_SYM)this._media();else if(!this._ruleset())break;i.mustMatch(g.RBRACE),this._readWhitespace(),this.fire({type:"endmedia",media:n,line:e,col:t})},_media_query_list:function(){var e=this._tokenStream,t=[];for(this._readWhitespace(),e.peek()!==g.IDENT&&e.peek()!==g.LPAREN||t.push(this._media_query());e.match(g.COMMA);)this._readWhitespace(),t.push(this._media_query());return t},_media_query:function(){var e=this._tokenStream,t=null,n=null,i=null,r=[];if(e.match(g.IDENT)&&("only"!==(n=e.token().value.toLowerCase())&&"not"!==n?(e.unget(),n=null):i=e.token()),this._readWhitespace(),e.peek()===g.IDENT?(t=this._media_type(),null===i&&(i=e.token())):e.peek()===g.LPAREN&&(null===i&&(i=e.LT(1)),r.push(this._media_expression())),null===t&&0===r.length)return null;for(this._readWhitespace();e.match(g.IDENT);)"and"!==e.token().value.toLowerCase()&&this._unexpectedToken(e.token()),this._readWhitespace(),r.push(this._media_expression());return new l(n,t,r,i.startLine,i.startCol)},_media_type:function(){return this._media_feature()},_media_expression:function(){var e,t,n=this._tokenStream,i=null;return n.mustMatch(g.LPAREN),e=this._media_feature(),this._readWhitespace(),n.match(g.COLON)&&(this._readWhitespace(),t=n.LT(1),i=this._expression()),n.mustMatch(g.RPAREN),this._readWhitespace(),new s(e,i?new o(i,t.startLine,t.startCol):null)},_media_feature:function(){var e=this._tokenStream;return this._readWhitespace(),e.mustMatch(g.IDENT),o.fromToken(e.token())},_page:function(){var e,t,n=this._tokenStream,i=null,r=null;n.mustMatch(g.PAGE_SYM),e=n.token().startLine,t=n.token().startCol,this._readWhitespace(),n.match(g.IDENT)&&"auto"===(i=n.token().value).toLowerCase()&&this._unexpectedToken(n.token()),n.peek()===g.COLON&&(r=this._pseudo_page()),this._readWhitespace(),this.fire({type:"startpage",id:i,pseudo:r,line:e,col:t}),this._readDeclarations(!0,!0),this.fire({type:"endpage",id:i,pseudo:r,line:e,col:t})},_margin:function(){var e,t,n=this._tokenStream,i=this._margin_sym();return!!i&&(e=n.token().startLine,t=n.token().startCol,this.fire({type:"startpagemargin",margin:i,line:e,col:t}),this._readDeclarations(!0),this.fire({type:"endpagemargin",margin:i,line:e,col:t}),!0)},_margin_sym:function(){var e=this._tokenStream;return e.match([g.TOPLEFTCORNER_SYM,g.TOPLEFT_SYM,g.TOPCENTER_SYM,g.TOPRIGHT_SYM,g.TOPRIGHTCORNER_SYM,g.BOTTOMLEFTCORNER_SYM,g.BOTTOMLEFT_SYM,g.BOTTOMCENTER_SYM,g.BOTTOMRIGHT_SYM,g.BOTTOMRIGHTCORNER_SYM,g.LEFTTOP_SYM,g.LEFTMIDDLE_SYM,g.LEFTBOTTOM_SYM,g.RIGHTTOP_SYM,g.RIGHTMIDDLE_SYM,g.RIGHTBOTTOM_SYM])?o.fromToken(e.token()):null},_pseudo_page:function(){var e=this._tokenStream;return e.mustMatch(g.COLON),e.mustMatch(g.IDENT),e.token().value},_font_face:function(){var e,t,n=this._tokenStream;n.mustMatch(g.FONT_FACE_SYM),e=n.token().startLine,t=n.token().startCol,this._readWhitespace(),this.fire({type:"startfontface",line:e,col:t}),this._readDeclarations(!0),this.fire({type:"endfontface",line:e,col:t})},_viewport:function(){var e,t,n=this._tokenStream;n.mustMatch(g.VIEWPORT_SYM),e=n.token().startLine,t=n.token().startCol,this._readWhitespace(),this.fire({type:"startviewport",line:e,col:t}),this._readDeclarations(!0),this.fire({type:"endviewport",line:e,col:t})},_document:function(){var e,t=this._tokenStream,n=[],i="";for(t.mustMatch(g.DOCUMENT_SYM),e=t.token(),/^@\-([^\-]+)\-/.test(e.value)&&(i=RegExp.$1),this._readWhitespace(),n.push(this._document_function());t.match(g.COMMA);)this._readWhitespace(),n.push(this._document_function());t.mustMatch(g.LBRACE),this._readWhitespace(),this.fire({type:"startdocument",functions:n,prefix:i,line:e.startLine,col:e.startCol});for(var r=!0;r;)switch(t.peek()){case g.PAGE_SYM:this._page();break;case g.FONT_FACE_SYM:this._font_face();break;case g.VIEWPORT_SYM:this._viewport();break;case g.MEDIA_SYM:this._media();break;case g.KEYFRAMES_SYM:this._keyframes();break;case g.DOCUMENT_SYM:this._document();break;default:r=Boolean(this._ruleset())}t.mustMatch(g.RBRACE),e=t.token(),this._readWhitespace(),this.fire({type:"enddocument",functions:n,prefix:i,line:e.startLine,col:e.startCol})},_document_function:function(){var e,t=this._tokenStream;return t.match(g.URI)?(e=t.token().value,this._readWhitespace()):e=this._function(),e},_operator:function(e){var t=this._tokenStream,n=null;return(t.match([g.SLASH,g.COMMA])||e&&t.match([g.PLUS,g.STAR,g.MINUS]))&&(n=t.token(),this._readWhitespace()),n?d.fromToken(n):null},_combinator:function(){var e,t=this._tokenStream,n=null;return t.match([g.PLUS,g.GREATER,g.TILDE])&&(e=t.token(),n=new a(e.value,e.startLine,e.startCol),this._readWhitespace()),n},_unary_operator:function(){var e=this._tokenStream;return e.match([g.MINUS,g.PLUS])?e.token().value:null},_property:function(){var e,t,n,i,r=this._tokenStream,o=null,a=null;return r.peek()===g.STAR&&this.options.starHack&&(r.get(),a=(t=r.token()).value,n=t.startLine,i=t.startCol),r.match(g.IDENT)&&("_"===(e=(t=r.token()).value).charAt(0)&&this.options.underscoreHack&&(a="_",e=e.substring(1)),o=new c(e,a,n||t.startLine,i||t.startCol),this._readWhitespace()),o},_ruleset:function(){var e,t=this._tokenStream;try{e=this._selectors_group()}catch(e){if(!(e instanceof r)||this.options.strict)throw e;if(this.fire({type:"error",error:e,message:e.message,line:e.line,col:e.col}),t.advance([g.RBRACE])!==g.RBRACE)throw e;return!0}return e&&(this.fire({type:"startrule",selectors:e,line:e[0].line,col:e[0].col}),this._readDeclarations(!0),this.fire({type:"endrule",selectors:e,line:e[0].line,col:e[0].col})),e},_selectors_group:function(){var e,t=this._tokenStream,n=[];if(null!==(e=this._selector()))for(n.push(e);t.match(g.COMMA);)this._readWhitespace(),null!==(e=this._selector())?n.push(e):this._unexpectedToken(t.LT(1));return n.length?n:null},_selector:function(){var e=this._tokenStream,t=[],n=null,i=null,r=null;if(null===(n=this._simple_selector_sequence()))return null;for(t.push(n);;)if(null!==(i=this._combinator()))t.push(i),null===(n=this._simple_selector_sequence())?this._unexpectedToken(e.LT(1)):t.push(n);else{if(!this._readWhitespace())break;r=new a(e.token().value,e.token().startLine,e.token().startCol),i=this._combinator(),null===(n=this._simple_selector_sequence())?null!==i&&this._unexpectedToken(e.LT(1)):(null!==i?t.push(i):t.push(r),t.push(n))}return new p(t,t[0].line,t[0].col)},_simple_selector_sequence:function(){var e,t,n=this._tokenStream,i=null,r=[],o="",a=[function(){return n.match(g.HASH)?new f(n.token().value,"id",n.token().startLine,n.token().startCol):null},this._class,this._attrib,this._pseudo,this._negation],s=0,l=a.length,c=null;for(e=n.LT(1).startLine,t=n.LT(1).startCol,(i=this._type_selector())||(i=this._universal()),null!==i&&(o+=i);n.peek()!==g.S;){for(;s<l&&null===c;)c=a[s++].call(this);if(null===c){if(""===o)return null;break}s=0,r.push(c),o+=c.toString(),c=null}return""!==o?new h(i,r,o,e,t):null},_type_selector:function(){var e=this._tokenStream,t=this._namespace_prefix(),n=this._element_name();return n?(t&&(n.text=t+n.text,n.col-=t.length),n):(t&&(e.unget(),t.length>1&&e.unget()),null)},_class:function(){var e,t=this._tokenStream;return t.match(g.DOT)?(t.mustMatch(g.IDENT),e=t.token(),new f("."+e.value,"class",e.startLine,e.startCol-1)):null},_element_name:function(){var e,t=this._tokenStream;return t.match(g.IDENT)?(e=t.token(),new f(e.value,"elementName",e.startLine,e.startCol)):null},_namespace_prefix:function(){var e=this._tokenStream,t="";return e.LA(1)!==g.PIPE&&e.LA(2)!==g.PIPE||(e.match([g.IDENT,g.STAR])&&(t+=e.token().value),e.mustMatch(g.PIPE),t+="|"),t.length?t:null},_universal:function(){var e,t=this._tokenStream,n="";return(e=this._namespace_prefix())&&(n+=e),t.match(g.STAR)&&(n+="*"),n.length?n:null},_attrib:function(){var e,t,n=this._tokenStream,i=null;return n.match(g.LBRACKET)?(i=(t=n.token()).value,i+=this._readWhitespace(),(e=this._namespace_prefix())&&(i+=e),n.mustMatch(g.IDENT),i+=n.token().value,i+=this._readWhitespace(),n.match([g.PREFIXMATCH,g.SUFFIXMATCH,g.SUBSTRINGMATCH,g.EQUALS,g.INCLUDES,g.DASHMATCH])&&(i+=n.token().value,i+=this._readWhitespace(),n.mustMatch([g.IDENT,g.STRING]),i+=n.token().value,i+=this._readWhitespace()),n.mustMatch(g.RBRACKET),new f(i+"]","attribute",t.startLine,t.startCol)):null},_pseudo:function(){var e,t,n=this._tokenStream,i=null,o=":";if(n.match(g.COLON)){if(n.match(g.COLON)&&(o+=":"),n.match(g.IDENT)?(i=n.token().value,e=n.token().startLine,t=n.token().startCol-o.length):n.peek()===g.FUNCTION&&(e=n.LT(1).startLine,t=n.LT(1).startCol-o.length,i=this._functional_pseudo()),!i){var a=n.LT(1).startLine,s=n.LT(0).startCol;throw new r("Expected a `FUNCTION` or `IDENT` after colon at line "+a+", col "+s+".",a,s)}i=new f(o+i,"pseudo",e,t)}return i},_functional_pseudo:function(){var e=this._tokenStream,t=null;return e.match(g.FUNCTION)&&(t=e.token().value,t+=this._readWhitespace(),t+=this._expression(),e.mustMatch(g.RPAREN),t+=")"),t},_expression:function(){for(var e=this._tokenStream,t="";e.match([g.PLUS,g.MINUS,g.DIMENSION,g.NUMBER,g.STRING,g.IDENT,g.LENGTH,g.FREQ,g.ANGLE,g.TIME,g.RESOLUTION,g.SLASH]);)t+=e.token().value,t+=this._readWhitespace();return t.length?t:null},_negation:function(){var e,t,n,i=this._tokenStream,r="",o=null;return i.match(g.NOT)&&(r=i.token().value,e=i.token().startLine,t=i.token().startCol,r+=this._readWhitespace(),r+=n=this._negation_arg(),r+=this._readWhitespace(),i.match(g.RPAREN),r+=i.token().value,(o=new f(r,"not",e,t)).args.push(n)),o},_negation_arg:function(){var e,t,n=this._tokenStream,i=[this._type_selector,this._universal,function(){return n.match(g.HASH)?new f(n.token().value,"id",n.token().startLine,n.token().startCol):null},this._class,this._attrib,this._pseudo],r=null,o=0,a=i.length;for(e=n.LT(1).startLine,t=n.LT(1).startCol;o<a&&null===r;)r=i[o].call(this),o++;return null===r&&this._unexpectedToken(n.LT(1)),"elementName"===r.type?new h(r,[],r.toString(),e,t):new h(null,[r],r.toString(),e,t)},_declaration:function(){var e=this._tokenStream,t=null,n=null,i=null,r=null,o="";if(null!==(t=this._property())){e.mustMatch(g.COLON),this._readWhitespace(),(n=this._expr())&&0!==n.length||this._unexpectedToken(e.LT(1)),i=this._prio(),o=t.toString(),(this.options.starHack&&"*"===t.hack||this.options.underscoreHack&&"_"===t.hack)&&(o=t.text);try{this._validateProperty(o,n)}catch(e){r=e}return this.fire({type:"property",property:t,value:n,important:i,line:t.line,col:t.col,invalid:r}),!0}return!1},_prio:function(){var e=this._tokenStream.match(g.IMPORTANT_SYM);return this._readWhitespace(),e},_expr:function(e){var t=[],n=null,i=null;if(null!==(n=this._term(e)))for(t.push(n);;){if((i=this._operator(e))&&t.push(i),null===(n=this._term(e)))break;t.push(n)}return t.length>0?new u(t,t[0].line,t[0].col):null},_term:function(e){var t,n,i,r,o=this._tokenStream,a=null,s=null,l=null;return null!==(t=this._unary_operator())&&(i=o.token().startLine,r=o.token().startCol),o.peek()===g.IE_FUNCTION&&this.options.ieFilters?(a=this._ie_function(),null===t&&(i=o.token().startLine,r=o.token().startCol)):e&&o.match([g.LPAREN,g.LBRACE,g.LBRACKET])?(s=(n=o.token()).endChar,a=n.value+this._expr(e).text,null===t&&(i=o.token().startLine,r=o.token().startCol),o.mustMatch(g.type(s)),a+=s,this._readWhitespace()):o.match([g.NUMBER,g.PERCENTAGE,g.LENGTH,g.ANGLE,g.TIME,g.FREQ,g.STRING,g.IDENT,g.URI,g.UNICODE_RANGE])?(a=o.token().value,null===t&&(i=o.token().startLine,r=o.token().startCol,l=d.fromToken(o.token())),this._readWhitespace()):null===(n=this._hexcolor())?(null===t&&(i=o.LT(1).startLine,r=o.LT(1).startCol),null===a&&(a=o.LA(3)===g.EQUALS&&this.options.ieFilters?this._ie_function():this._function())):(a=n.value,null===t&&(i=n.startLine,r=n.startCol)),null!==l?l:null!==a?new d(null!==t?t+a:a,i,r):null},_function:function(){var e,t=this._tokenStream,n=null;if(t.match(g.FUNCTION)){if(n=t.token().value,this._readWhitespace(),n+=this._expr(!0),this.options.ieFilters&&t.peek()===g.EQUALS)do{for(this._readWhitespace()&&(n+=t.token().value),t.LA(0)===g.COMMA&&(n+=t.token().value),t.match(g.IDENT),n+=t.token().value,t.match(g.EQUALS),n+=t.token().value,e=t.peek();e!==g.COMMA&&e!==g.S&&e!==g.RPAREN;)t.get(),n+=t.token().value,e=t.peek()}while(t.match([g.COMMA,g.S]));t.match(g.RPAREN),n+=")",this._readWhitespace()}return n},_ie_function:function(){var e,t=this._tokenStream,n=null;if(t.match([g.IE_FUNCTION,g.FUNCTION])){n=t.token().value;do{for(this._readWhitespace()&&(n+=t.token().value),t.LA(0)===g.COMMA&&(n+=t.token().value),t.match(g.IDENT),n+=t.token().value,t.match(g.EQUALS),n+=t.token().value,e=t.peek();e!==g.COMMA&&e!==g.S&&e!==g.RPAREN;)t.get(),n+=t.token().value,e=t.peek()}while(t.match([g.COMMA,g.S]));t.match(g.RPAREN),n+=")",this._readWhitespace()}return n},_hexcolor:function(){var e,t=this._tokenStream,n=null;if(t.match(g.HASH)){if(e=(n=t.token()).value,!/#[a-f0-9]{3,6}/i.test(e))throw new r("Expected a hex color but found '"+e+"' at line "+n.startLine+", col "+n.startCol+".",n.startLine,n.startCol);this._readWhitespace()}return n},_keyframes:function(){var e,t,n,i=this._tokenStream,r="";for(i.mustMatch(g.KEYFRAMES_SYM),e=i.token(),/^@\-([^\-]+)\-/.test(e.value)&&(r=RegExp.$1),this._readWhitespace(),n=this._keyframe_name(),this._readWhitespace(),i.mustMatch(g.LBRACE),this.fire({type:"startkeyframes",name:n,prefix:r,line:e.startLine,col:e.startCol}),this._readWhitespace(),t=i.peek();t===g.IDENT||t===g.PERCENTAGE;)this._keyframe_rule(),this._readWhitespace(),t=i.peek();this.fire({type:"endkeyframes",name:n,prefix:r,line:e.startLine,col:e.startCol}),this._readWhitespace(),i.mustMatch(g.RBRACE),this._readWhitespace()},_keyframe_name:function(){var e=this._tokenStream;return e.mustMatch([g.IDENT,g.STRING]),o.fromToken(e.token())},_keyframe_rule:function(){var e=this._key_list();this.fire({type:"startkeyframerule",keys:e,line:e[0].line,col:e[0].col}),this._readDeclarations(!0),this.fire({type:"endkeyframerule",keys:e,line:e[0].line,col:e[0].col})},_key_list:function(){var e=this._tokenStream,t=[];for(t.push(this._key()),this._readWhitespace();e.match(g.COMMA);)this._readWhitespace(),t.push(this._key()),this._readWhitespace();return t},_key:function(){var e,t=this._tokenStream;if(t.match(g.PERCENTAGE))return o.fromToken(t.token());if(t.match(g.IDENT)){if(e=t.token(),/from|to/i.test(e.value))return o.fromToken(e);t.unget()}this._unexpectedToken(t.LT(1))},_skipCruft:function(){for(;this._tokenStream.match([g.S,g.CDO,g.CDC]););},_readDeclarations:function(e,t){var n,i=this._tokenStream;this._readWhitespace(),e&&i.mustMatch(g.LBRACE),this._readWhitespace();try{for(;;){if(i.match(g.SEMICOLON)||t&&this._margin());else{if(!this._declaration())break;if(!i.match(g.SEMICOLON))break}this._readWhitespace()}i.mustMatch(g.RBRACE),this._readWhitespace()}catch(e){if(!(e instanceof r)||this.options.strict)throw e;if(this.fire({type:"error",error:e,message:e.message,line:e.line,col:e.col}),(n=i.advance([g.SEMICOLON,g.RBRACE]))===g.SEMICOLON)this._readDeclarations(!1,t);else if(n!==g.RBRACE)throw e}},_readWhitespace:function(){for(var e=this._tokenStream,t="";e.match(g.S);)t+=e.token().value;return t},_unexpectedToken:function(e){throw new r("Unexpected token '"+e.value+"' at line "+e.startLine+", col "+e.startCol+".",e.startLine,e.startCol)},_verifyEnd:function(){this._tokenStream.LA(1)!==g.EOF&&this._unexpectedToken(this._tokenStream.LT(1))},_validateProperty:function(e,t){v.validate(e,t)},parse:function(e){this._tokenStream=new m(e,g),this._stylesheet()},parseStyleSheet:function(e){return this.parse(e)},parseMediaQuery:function(e){this._tokenStream=new m(e,g);var t=this._media_query();return this._verifyEnd(),t},parsePropertyValue:function(e){this._tokenStream=new m(e,g),this._readWhitespace();var t=this._expr();return this._readWhitespace(),this._verifyEnd(),t},parseRule:function(e){this._tokenStream=new m(e,g),this._readWhitespace();var t=this._ruleset();return this._readWhitespace(),this._verifyEnd(),t},parseSelector:function(e){this._tokenStream=new m(e,g),this._readWhitespace();var t=this._selector();return this._readWhitespace(),this._verifyEnd(),t},parseStyleAttribute:function(e){e+="}",this._tokenStream=new m(e,g),this._readDeclarations()}};for(e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);return t}()},13984:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="-1 -1 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="m12.237 19.57 9.075-8.707-9.074-8.709v4.95H9.854c-5.041 0-9.166 4.125-9.166 9.167v3.025c0 .275.275.55.55.55h.091c.184 0 .367-.184.459-.367.183-2.658 2.383-4.675 5.041-4.675h5.409z" stroke-width="2"/></svg>'},14302:function(){},14432:function(e,t,n){"use strict";e.exports=o;var i=n(37388),r=n(13573);function o(e,t,n,o){i.call(this,e,n,o,r.PROPERTY_NAME_TYPE),this.hack=t}o.prototype=new i,o.prototype.constructor=o,o.prototype.toString=function(){return(this.hack?this.hack:"")+this.text}},14737:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14" class="bricks-svg"><g id="recycle-bin-2--remove-delete-empty-bin-trash-garbage"><path id="Vector" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M1 3.5h12" stroke-width="1"/><path id="Vector_2" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M2.5 3.5h9v9a1 1 0 0 1-1 1h-7a1 1 0 0 1-1-1z" stroke-width="1"/><path id="Vector_3" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M4.5 3.5V3a2.5 2.5 0 1 1 5 0v.5" stroke-width="1"/><path id="Vector_4" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M5.5 6.501v4.002" stroke-width="1"/><path id="Vector_5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M8.5 6.501v4.002" stroke-width="1"/></g></svg>'},14941:function(){},15158:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="-1 -1 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m17.993 17.622-6.316 3.446a1.38 1.38 0 0 1-1.317 0l-6.316-3.446a1.38 1.38 0 0 1-.698-.98L.973 2.401a1.375 1.375 0 0 1 1.356-1.6h17.38a1.375 1.375 0 0 1 1.355 1.6l-2.373 14.24a1.37 1.37 0 0 1-.698.98" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M15.83 4.927H6.207l.687 4.125h8.25l-.687 5.5-3.438 2.063-3.437-2.063" stroke-width="2"/></svg>'},15237:function(e){e.exports=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),i=/MSIE \d/.test(e),r=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=i||r||o,s=a&&(i?document.documentMode||6:+(o||r)[1]),l=!o&&/WebKit\//.test(e),c=l&&/Qt\/\d+\.\d+/.test(e),u=!o&&/Chrome\/(\d+)/.exec(e),d=u&&+u[1],p=/Opera\//.test(e),h=/Apple Computer/.test(navigator.vendor),f=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),m=/PhantomJS/.test(e),g=h&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),v=/Android/.test(e),y=g||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=g||/Mac/.test(t),k=/\bCrOS\b/.test(e),w=/win/i.test(t),_=p&&e.match(/Version\/(\d*\.\d*)/);_&&(_=Number(_[1])),_&&_>=15&&(p=!1,l=!0);var C=b&&(c||p&&(null==_||_<12.11)),x=n||a&&s>=9;function S(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var E,A=function(e,t){var n=e.className,i=S(t).exec(n);if(i){var r=n.slice(i.index+i[0].length);e.className=n.slice(0,i.index)+(r?i[1]+r:"")}};function D(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function T(e,t){return D(e).appendChild(t)}function I(e,t,n,i){var r=document.createElement(e);if(n&&(r.className=n),i&&(r.style.cssText=i),"string"==typeof t)r.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)r.appendChild(t[o]);return r}function O(e,t,n,i){var r=I(e,t,n,i);return r.setAttribute("role","presentation"),r}function P(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function F(e){var t;try{t=e.activeElement}catch(n){t=e.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function $(e,t){var n=e.className;S(t).test(n)||(e.className+=(n?" ":"")+t)}function M(e,t){for(var n=e.split(" "),i=0;i<n.length;i++)n[i]&&!S(n[i]).test(t)&&(t+=" "+n[i]);return t}E=document.createRange?function(e,t,n,i){var r=document.createRange();return r.setEnd(i||e,n),r.setStart(e,t),r}:function(e,t,n){var i=document.body.createTextRange();try{i.moveToElementText(e.parentNode)}catch(e){return i}return i.collapse(!0),i.moveEnd("character",n),i.moveStart("character",t),i};var L=function(e){e.select()};function N(e){return e.display.wrapper.ownerDocument}function j(e){return N(e).defaultView}function B(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function R(e,t,n){for(var i in t||(t={}),e)!e.hasOwnProperty(i)||!1===n&&t.hasOwnProperty(i)||(t[i]=e[i]);return t}function V(e,t,n,i,r){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=i||0,a=r||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}g?L=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(L=function(e){try{e.select()}catch(e){}});var q=function(){this.id=null,this.f=null,this.time=0,this.handler=B(this.onTimeout,this)};function H(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}q.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},q.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var z=50,U={toString:function(){return"CodeMirror.Pass"}},W={scroll:!1},G={origin:"*mouse"},K={origin:"+move"};function Q(e,t,n){for(var i=0,r=0;;){var o=e.indexOf("\t",i);-1==o&&(o=e.length);var a=o-i;if(o==e.length||r+a>=t)return i+Math.min(a,t-r);if(r+=o-i,i=o+1,(r+=n-r%n)>=t)return i}}var Y=[""];function J(e){for(;Y.length<=e;)Y.push(X(Y)+" ");return Y[e]}function X(e){return e[e.length-1]}function Z(e,t){for(var n=[],i=0;i<e.length;i++)n[i]=t(e[i],i);return n}function ee(e,t,n){for(var i=0,r=n(t);i<e.length&&n(e[i])<=r;)i++;e.splice(i,0,t)}function te(){}function ne(e,t){var n;return Object.create?n=Object.create(e):(te.prototype=e,n=new te),t&&R(t,n),n}var ie=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function re(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||ie.test(e))}function oe(e,t){return t?!!(t.source.indexOf("\\w")>-1&&re(e))||t.test(e):re(e)}function ae(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var se=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function le(e){return e.charCodeAt(0)>=768&&se.test(e)}function ce(e,t,n){for(;(n<0?t>0:t<e.length)&&le(e.charAt(t));)t+=n;return t}function ue(e,t,n){for(var i=t>n?-1:1;;){if(t==n)return t;var r=(t+n)/2,o=i<0?Math.ceil(r):Math.floor(r);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+i}}function de(e,t,n,i){if(!e)return i(t,n,"ltr",0);for(var r=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(i(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),r=!0)}r||i(t,n,"ltr")}var pe=null;function he(e,t,n){var i;pe=null;for(var r=0;r<e.length;++r){var o=e[r];if(o.from<t&&o.to>t)return r;o.to==t&&(o.from!=o.to&&"before"==n?i=r:pe=r),o.from==t&&(o.from!=o.to&&"before"!=n?i=r:pe=r)}return null!=i?i:pe}var fe=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var i=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,r=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,s=/[1n]/;function l(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var c="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!i.test(e))return!1;for(var u=e.length,d=[],p=0;p<u;++p)d.push(n(e.charCodeAt(p)));for(var h=0,f=c;h<u;++h){var m=d[h];"m"==m?d[h]=f:f=m}for(var g=0,v=c;g<u;++g){var y=d[g];"1"==y&&"r"==v?d[g]="n":o.test(y)&&(v=y,"r"==y&&(d[g]="R"))}for(var b=1,k=d[0];b<u-1;++b){var w=d[b];"+"==w&&"1"==k&&"1"==d[b+1]?d[b]="1":","!=w||k!=d[b+1]||"1"!=k&&"n"!=k||(d[b]=k),k=w}for(var _=0;_<u;++_){var C=d[_];if(","==C)d[_]="N";else if("%"==C){var x=void 0;for(x=_+1;x<u&&"%"==d[x];++x);for(var S=_&&"!"==d[_-1]||x<u&&"1"==d[x]?"1":"N",E=_;E<x;++E)d[E]=S;_=x-1}}for(var A=0,D=c;A<u;++A){var T=d[A];"L"==D&&"1"==T?d[A]="L":o.test(T)&&(D=T)}for(var I=0;I<u;++I)if(r.test(d[I])){var O=void 0;for(O=I+1;O<u&&r.test(d[O]);++O);for(var P="L"==(I?d[I-1]:c),F=P==("L"==(O<u?d[O]:c))?P?"L":"R":c,$=I;$<O;++$)d[$]=F;I=O-1}for(var M,L=[],N=0;N<u;)if(a.test(d[N])){var j=N;for(++N;N<u&&a.test(d[N]);++N);L.push(new l(0,j,N))}else{var B=N,R=L.length,V="rtl"==t?1:0;for(++N;N<u&&"L"!=d[N];++N);for(var q=B;q<N;)if(s.test(d[q])){B<q&&(L.splice(R,0,new l(1,B,q)),R+=V);var H=q;for(++q;q<N&&s.test(d[q]);++q);L.splice(R,0,new l(2,H,q)),R+=V,B=q}else++q;B<N&&L.splice(R,0,new l(1,B,N))}return"ltr"==t&&(1==L[0].level&&(M=e.match(/^\s+/))&&(L[0].from=M[0].length,L.unshift(new l(0,0,M[0].length))),1==X(L).level&&(M=e.match(/\s+$/))&&(X(L).to-=M[0].length,L.push(new l(0,u-M[0].length,u)))),"rtl"==t?L.reverse():L}}();function me(e,t){var n=e.order;return null==n&&(n=e.order=fe(e.text,t)),n}var ge=[],ve=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var i=e._handlers||(e._handlers={});i[t]=(i[t]||ge).concat(n)}};function ye(e,t){return e._handlers&&e._handlers[t]||ge}function be(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var i=e._handlers,r=i&&i[t];if(r){var o=H(r,n);o>-1&&(i[t]=r.slice(0,o).concat(r.slice(o+1)))}}}function ke(e,t){var n=ye(e,t);if(n.length)for(var i=Array.prototype.slice.call(arguments,2),r=0;r<n.length;++r)n[r].apply(null,i)}function we(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),ke(e,n||t.type,e,t),Ae(t)||t.codemirrorIgnore}function _e(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),i=0;i<t.length;++i)-1==H(n,t[i])&&n.push(t[i])}function Ce(e,t){return ye(e,t).length>0}function xe(e){e.prototype.on=function(e,t){ve(this,e,t)},e.prototype.off=function(e,t){be(this,e,t)}}function Se(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ee(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ae(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function De(e){Se(e),Ee(e)}function Te(e){return e.target||e.srcElement}function Ie(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}var Oe,Pe,Fe=function(){if(a&&s<9)return!1;var e=I("div");return"draggable"in e||"dragDrop"in e}();function $e(e){if(null==Oe){var t=I("span","");T(e,I("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Oe=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Oe?I("span",""):I("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Me(e){if(null!=Pe)return Pe;var t=T(e,document.createTextNode("AخA")),n=E(t,0,1).getBoundingClientRect(),i=E(t,1,2).getBoundingClientRect();return D(e),!(!n||n.left==n.right)&&(Pe=i.right-n.right<3)}var Le,Ne=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],i=e.length;t<=i;){var r=e.indexOf("\n",t);-1==r&&(r=e.length);var o=e.slice(t,"\r"==e.charAt(r-1)?r-1:r),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=r+1)}return n}:function(e){return e.split(/\r\n?|\n/)},je=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Be="oncopy"in(Le=I("div"))||(Le.setAttribute("oncopy","return;"),"function"==typeof Le.oncopy),Re=null;function Ve(e){if(null!=Re)return Re;var t=T(e,I("span","x")),n=t.getBoundingClientRect(),i=E(t,0,1).getBoundingClientRect();return Re=Math.abs(n.left-i.left)>1}var qe={},He={};function ze(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),qe[e]=t}function Ue(e,t){He[e]=t}function We(e){if("string"==typeof e&&He.hasOwnProperty(e))e=He[e];else if(e&&"string"==typeof e.name&&He.hasOwnProperty(e.name)){var t=He[e.name];"string"==typeof t&&(t={name:t}),(e=ne(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return We("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return We("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ge(e,t){t=We(t);var n=qe[t.name];if(!n)return Ge(e,"text/plain");var i=n(e,t);if(Ke.hasOwnProperty(t.name)){var r=Ke[t.name];for(var o in r)r.hasOwnProperty(o)&&(i.hasOwnProperty(o)&&(i["_"+o]=i[o]),i[o]=r[o])}if(i.name=t.name,t.helperType&&(i.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)i[a]=t.modeProps[a];return i}var Ke={};function Qe(e,t){R(t,Ke.hasOwnProperty(e)?Ke[e]:Ke[e]={})}function Ye(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var i in t){var r=t[i];r instanceof Array&&(r=r.concat([])),n[i]=r}return n}function Je(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Xe(e,t,n){return!e.startState||e.startState(t,n)}var Ze=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function et(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var i=0;;++i){var r=n.children[i],o=r.chunkSize();if(t<o){n=r;break}t-=o}return n.lines[t]}function tt(e,t,n){var i=[],r=t.line;return e.iter(t.line,n.line+1,function(e){var o=e.text;r==n.line&&(o=o.slice(0,n.ch)),r==t.line&&(o=o.slice(t.ch)),i.push(o),++r}),i}function nt(e,t,n){var i=[];return e.iter(t,n,function(e){i.push(e.text)}),i}function it(e,t){var n=t-e.height;if(n)for(var i=e;i;i=i.parent)i.height+=n}function rt(e){if(null==e.parent)return null;for(var t=e.parent,n=H(t.lines,e),i=t.parent;i;t=i,i=i.parent)for(var r=0;i.children[r]!=t;++r)n+=i.children[r].chunkSize();return n+t.first}function ot(e,t){var n=e.first;e:do{for(var i=0;i<e.children.length;++i){var r=e.children[i],o=r.height;if(t<o){e=r;continue e}t-=o,n+=r.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a].height;if(t<s)break;t-=s}return n+a}function at(e,t){return t>=e.first&&t<e.first+e.size}function st(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function lt(e,t,n){if(void 0===n&&(n=null),!(this instanceof lt))return new lt(e,t,n);this.line=e,this.ch=t,this.sticky=n}function ct(e,t){return e.line-t.line||e.ch-t.ch}function ut(e,t){return e.sticky==t.sticky&&0==ct(e,t)}function dt(e){return lt(e.line,e.ch)}function pt(e,t){return ct(e,t)<0?t:e}function ht(e,t){return ct(e,t)<0?e:t}function ft(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function mt(e,t){if(t.line<e.first)return lt(e.first,0);var n=e.first+e.size-1;return t.line>n?lt(n,et(e,n).text.length):gt(t,et(e,t.line).text.length)}function gt(e,t){var n=e.ch;return null==n||n>t?lt(e.line,t):n<0?lt(e.line,0):e}function vt(e,t){for(var n=[],i=0;i<t.length;i++)n[i]=mt(e,t[i]);return n}Ze.prototype.eol=function(){return this.pos>=this.string.length},Ze.prototype.sol=function(){return this.pos==this.lineStart},Ze.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ze.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ze.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},Ze.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Ze.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ze.prototype.skipToEnd=function(){this.pos=this.string.length},Ze.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ze.prototype.backUp=function(e){this.pos-=e},Ze.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=V(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},Ze.prototype.indentation=function(){return V(this.string,null,this.tabSize)-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},Ze.prototype.match=function(e,t,n){if("string"!=typeof e){var i=this.string.slice(this.pos).match(e);return i&&i.index>0?null:(i&&!1!==t&&(this.pos+=i[0].length),i)}var r=function(e){return n?e.toLowerCase():e};if(r(this.string.substr(this.pos,e.length))==r(e))return!1!==t&&(this.pos+=e.length),!0},Ze.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ze.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ze.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ze.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var yt=function(e,t){this.state=e,this.lookAhead=t},bt=function(e,t,n,i){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=i||0,this.baseTokens=null,this.baseTokenPos=1};function kt(e,t,n,i){var r=[e.state.modeGen],o={};Tt(e,t.text,e.doc.mode,n,function(e,t){return r.push(e,t)},o,i);for(var a=n.state,s=function(i){n.baseTokens=r;var s=e.state.overlays[i],l=1,c=0;n.state=!0,Tt(e,t.text,s.mode,n,function(e,t){for(var n=l;c<e;){var i=r[l];i>e&&r.splice(l,1,e,r[l+1],i),l+=2,c=Math.min(e,i)}if(t)if(s.opaque)r.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;n<l;n+=2){var o=r[n+1];r[n+1]=(o?o+" ":"")+"overlay "+t}},o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},l=0;l<e.state.overlays.length;++l)s(l);return{styles:r,classes:o.bgClass||o.textClass?o:null}}function wt(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var i=_t(e,rt(t)),r=t.text.length>e.options.maxHighlightLength&&Ye(e.doc.mode,i.state),o=kt(e,t,i);r&&(i.state=r),t.stateAfter=i.save(!r),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function _t(e,t,n){var i=e.doc,r=e.display;if(!i.mode.startState)return new bt(i,!0,t);var o=It(e,t,n),a=o>i.first&&et(i,o-1).stateAfter,s=a?bt.fromSaved(i,a,o):new bt(i,Xe(i.mode),o);return i.iter(o,t,function(n){Ct(e,n.text,s);var i=s.line;n.stateAfter=i==t-1||i%5==0||i>=r.viewFrom&&i<r.viewTo?s.save():null,s.nextLine()}),n&&(i.modeFrontier=s.line),s}function Ct(e,t,n,i){var r=e.doc.mode,o=new Ze(t,e.options.tabSize,n);for(o.start=o.pos=i||0,""==t&&xt(r,n.state);!o.eol();)St(r,o,n.state),o.start=o.pos}function xt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Je(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function St(e,t,n,i){for(var r=0;r<10;r++){i&&(i[0]=Je(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}bt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},bt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},bt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},bt.fromSaved=function(e,t,n){return t instanceof yt?new bt(e,Ye(e.mode,t.state),n,t.lookAhead):new bt(e,Ye(e.mode,t),n)},bt.prototype.save=function(e){var t=!1!==e?Ye(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new yt(t,this.maxLookAhead):t};var Et=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function At(e,t,n,i){var r,o,a=e.doc,s=a.mode,l=et(a,(t=mt(a,t)).line),c=_t(e,t.line,n),u=new Ze(l.text,e.options.tabSize,c);for(i&&(o=[]);(i||u.pos<t.ch)&&!u.eol();)u.start=u.pos,r=St(s,u,c.state),i&&o.push(new Et(u,r,Ye(a.mode,c.state)));return i?o:new Et(u,r,c.state)}function Dt(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var i=n[1]?"bgClass":"textClass";null==t[i]?t[i]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[i])||(t[i]+=" "+n[2])}return e}function Tt(e,t,n,i,r,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var l,c=0,u=null,d=new Ze(t,e.options.tabSize,i),p=e.options.addModeClass&&[null];for(""==t&&Dt(xt(n,i.state),o);!d.eol();){if(d.pos>e.options.maxHighlightLength?(s=!1,a&&Ct(e,t,i,d.pos),d.pos=t.length,l=null):l=Dt(St(n,d,i.state,p),o),p){var h=p[0].name;h&&(l="m-"+(l?h+" "+l:h))}if(!s||u!=l){for(;c<d.start;)r(c=Math.min(d.start,c+5e3),u);u=l}d.start=d.pos}for(;c<d.pos;){var f=Math.min(d.pos,c+5e3);r(f,u),c=f}}function It(e,t,n){for(var i,r,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var l=et(o,s-1),c=l.stateAfter;if(c&&(!n||s+(c instanceof yt?c.lookAhead:0)<=o.modeFrontier))return s;var u=V(l.text,null,e.options.tabSize);(null==r||i>u)&&(r=s-1,i=u)}return r}function Ot(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,i=t-1;i>n;i--){var r=et(e,i).stateAfter;if(r&&(!(r instanceof yt)||i+r.lookAhead<t)){n=i+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}var Pt=!1,Ft=!1;function $t(){Pt=!0}function Mt(){Ft=!0}function Lt(e,t,n){this.marker=e,this.from=t,this.to=n}function Nt(e,t){if(e)for(var n=0;n<e.length;++n){var i=e[n];if(i.marker==t)return i}}function jt(e,t){for(var n,i=0;i<e.length;++i)e[i]!=t&&(n||(n=[])).push(e[i]);return n}function Bt(e,t,n){var i=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));i&&e.markedSpans&&i.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],i&&i.add(e.markedSpans)),t.marker.attachLine(e)}function Rt(e,t,n){var i;if(e)for(var r=0;r<e.length;++r){var o=e[r],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(i||(i=[])).push(new Lt(a,o.from,s?null:o.to))}}return i}function Vt(e,t,n){var i;if(e)for(var r=0;r<e.length;++r){var o=e[r],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(i||(i=[])).push(new Lt(a,s?null:o.from-t,null==o.to?null:o.to-t))}}return i}function qt(e,t){if(t.full)return null;var n=at(e,t.from.line)&&et(e,t.from.line).markedSpans,i=at(e,t.to.line)&&et(e,t.to.line).markedSpans;if(!n&&!i)return null;var r=t.from.ch,o=t.to.ch,a=0==ct(t.from,t.to),s=Rt(n,r,a),l=Vt(i,o,a),c=1==t.text.length,u=X(t.text).length+(c?r:0);if(s)for(var d=0;d<s.length;++d){var p=s[d];if(null==p.to){var h=Nt(l,p.marker);h?c&&(p.to=null==h.to?null:h.to+u):p.to=r}}if(l)for(var f=0;f<l.length;++f){var m=l[f];null!=m.to&&(m.to+=u),null==m.from?Nt(s,m.marker)||(m.from=u,c&&(s||(s=[])).push(m)):(m.from+=u,c&&(s||(s=[])).push(m))}s&&(s=Ht(s)),l&&l!=s&&(l=Ht(l));var g=[s];if(!c){var v,y=t.text.length-2;if(y>0&&s)for(var b=0;b<s.length;++b)null==s[b].to&&(v||(v=[])).push(new Lt(s[b].marker,null,null));for(var k=0;k<y;++k)g.push(v);g.push(l)}return g}function Ht(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function zt(e,t,n){var i=null;if(e.iter(t.line,n.line+1,function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||i&&-1!=H(i,n)||(i||(i=[])).push(n)}}),!i)return null;for(var r=[{from:t,to:n}],o=0;o<i.length;++o)for(var a=i[o],s=a.find(0),l=0;l<r.length;++l){var c=r[l];if(!(ct(c.to,s.from)<0||ct(c.from,s.to)>0)){var u=[l,1],d=ct(c.from,s.from),p=ct(c.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&u.push({from:c.from,to:s.from}),(p>0||!a.inclusiveRight&&!p)&&u.push({from:s.to,to:c.to}),r.splice.apply(r,u),l+=u.length-3}}return r}function Ut(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Wt(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Gt(e){return e.inclusiveLeft?-1:0}function Kt(e){return e.inclusiveRight?1:0}function Qt(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var i=e.find(),r=t.find(),o=ct(i.from,r.from)||Gt(e)-Gt(t);if(o)return-o;var a=ct(i.to,r.to)||Kt(e)-Kt(t);return a||t.id-e.id}function Yt(e,t){var n,i=Ft&&e.markedSpans;if(i)for(var r=void 0,o=0;o<i.length;++o)(r=i[o]).marker.collapsed&&null==(t?r.from:r.to)&&(!n||Qt(n,r.marker)<0)&&(n=r.marker);return n}function Jt(e){return Yt(e,!0)}function Xt(e){return Yt(e,!1)}function Zt(e,t){var n,i=Ft&&e.markedSpans;if(i)for(var r=0;r<i.length;++r){var o=i[r];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||Qt(n,o.marker)<0)&&(n=o.marker)}return n}function en(e,t,n,i,r){var o=et(e,t),a=Ft&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var c=l.marker.find(0),u=ct(c.from,n)||Gt(l.marker)-Gt(r),d=ct(c.to,i)||Kt(l.marker)-Kt(r);if(!(u>=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(l.marker.inclusiveRight&&r.inclusiveLeft?ct(c.to,n)>=0:ct(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&r.inclusiveLeft?ct(c.from,i)<=0:ct(c.from,i)<0)))return!0}}}function tn(e){for(var t;t=Jt(e);)e=t.find(-1,!0).line;return e}function nn(e){for(var t;t=Xt(e);)e=t.find(1,!0).line;return e}function rn(e){for(var t,n;t=Xt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function on(e,t){var n=et(e,t),i=tn(n);return n==i?t:rt(i)}function an(e,t){if(t>e.lastLine())return t;var n,i=et(e,t);if(!sn(e,i))return t;for(;n=Xt(i);)i=n.find(1,!0).line;return rt(i)+1}function sn(e,t){var n=Ft&&t.markedSpans;if(n)for(var i=void 0,r=0;r<n.length;++r)if((i=n[r]).marker.collapsed){if(null==i.from)return!0;if(!i.marker.widgetNode&&0==i.from&&i.marker.inclusiveLeft&&ln(e,t,i))return!0}}function ln(e,t,n){if(null==n.to){var i=n.marker.find(1,!0);return ln(e,i.line,Nt(i.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var r=void 0,o=0;o<t.markedSpans.length;++o)if((r=t.markedSpans[o]).marker.collapsed&&!r.marker.widgetNode&&r.from==n.to&&(null==r.to||r.to!=n.from)&&(r.marker.inclusiveLeft||n.marker.inclusiveRight)&&ln(e,t,r))return!0}function cn(e){for(var t=0,n=(e=tn(e)).parent,i=0;i<n.lines.length;++i){var r=n.lines[i];if(r==e)break;t+=r.height}for(var o=n.parent;o;o=(n=o).parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;t+=s.height}return t}function un(e){if(0==e.height)return 0;for(var t,n=e.text.length,i=e;t=Jt(i);){var r=t.find(0,!0);i=r.from.line,n+=r.from.ch-r.to.ch}for(i=e;t=Xt(i);){var o=t.find(0,!0);n-=i.text.length-o.from.ch,n+=(i=o.to.line).text.length-o.to.ch}return n}function dn(e){var t=e.display,n=e.doc;t.maxLine=et(n,n.first),t.maxLineLength=un(t.maxLine),t.maxLineChanged=!0,n.iter(function(e){var n=un(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}var pn=function(e,t,n){this.text=e,Wt(this,t),this.height=n?n(this):1};function hn(e,t,n,i){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Ut(e),Wt(e,n);var r=i?i(e):1;r!=e.height&&it(e,r)}function fn(e){e.parent=null,Ut(e)}pn.prototype.lineNo=function(){return rt(this)},xe(pn);var mn={},gn={};function vn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?gn:mn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function yn(e,t){var n=O("span",null,null,l?"padding-right: .1px":null),i={pre:O("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var r=0;r<=(t.rest?t.rest.length:0);r++){var o=r?t.rest[r-1]:t.line,a=void 0;i.pos=0,i.addToken=kn,Me(e.display.measure)&&(a=me(o,e.doc.direction))&&(i.addToken=_n(i.addToken,a)),i.map=[],xn(o,i,wt(e,o,t!=e.display.externalMeasured&&rt(o))),o.styleClasses&&(o.styleClasses.bgClass&&(i.bgClass=M(o.styleClasses.bgClass,i.bgClass||"")),o.styleClasses.textClass&&(i.textClass=M(o.styleClasses.textClass,i.textClass||""))),0==i.map.length&&i.map.push(0,0,i.content.appendChild($e(e.display.measure))),0==r?(t.measure.map=i.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(i.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var s=i.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(i.content.className="cm-tab-wrap-hack")}return ke(e,"renderLine",e,t.line,i.pre),i.pre.className&&(i.textClass=M(i.pre.className,i.textClass||"")),i}function bn(e){var t=I("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function kn(e,t,n,i,r,o,l){if(t){var c,u=e.splitSpaces?wn(t,e.trailingSpace):t,d=e.cm.state.specialChars,p=!1;if(d.test(t)){c=document.createDocumentFragment();for(var h=0;;){d.lastIndex=h;var f=d.exec(t),m=f?f.index-h:t.length-h;if(m){var g=document.createTextNode(u.slice(h,h+m));a&&s<9?c.appendChild(I("span",[g])):c.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!f)break;h+=m+1;var v=void 0;if("\t"==f[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(v=c.appendChild(I("span",J(b),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=b}else"\r"==f[0]||"\n"==f[0]?((v=c.appendChild(I("span","\r"==f[0]?"␍":"","cm-invalidchar"))).setAttribute("cm-text",f[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(f[0])).setAttribute("cm-text",f[0]),a&&s<9?c.appendChild(I("span",[v])):c.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,c=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,c),a&&s<9&&(p=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||i||r||p||o||l){var k=n||"";i&&(k+=i),r&&(k+=r);var w=I("span",[c],k,o);if(l)for(var _ in l)l.hasOwnProperty(_)&&"style"!=_&&"class"!=_&&w.setAttribute(_,l[_]);return e.content.appendChild(w)}e.content.appendChild(c)}}function wn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,i="",r=0;r<e.length;r++){var o=e.charAt(r);" "!=o||!n||r!=e.length-1&&32!=e.charCodeAt(r+1)||(o=" "),i+=o,n=" "==o}return i}function _n(e,t){return function(n,i,r,o,a,s,l){r=r?r+" cm-force-border":"cm-force-border";for(var c=n.pos,u=c+i.length;;){for(var d=void 0,p=0;p<t.length&&!((d=t[p]).to>c&&d.from<=c);p++);if(d.to>=u)return e(n,i,r,o,a,s,l);e(n,i.slice(0,d.to-c),r,o,null,s,l),o=null,i=i.slice(d.to-c),c=d.to}}}function Cn(e,t,n,i){var r=!i&&n.widgetNode;r&&e.map.push(e.pos,e.pos+t,r),!i&&e.cm.display.input.needsContentAttribute&&(r||(r=e.content.appendChild(document.createElement("span"))),r.setAttribute("cm-marker",n.id)),r&&(e.cm.display.input.setUneditable(r),e.content.appendChild(r)),e.pos+=t,e.trailingSpace=!1}function xn(e,t,n){var i=e.markedSpans,r=e.text,o=0;if(i)for(var a,s,l,c,u,d,p,h=r.length,f=0,m=1,g="",v=0;;){if(v==f){l=c=u=s="",p=null,d=null,v=1/0;for(var y=[],b=void 0,k=0;k<i.length;++k){var w=i[k],_=w.marker;if("bookmark"==_.type&&w.from==f&&_.widgetNode)y.push(_);else if(w.from<=f&&(null==w.to||w.to>f||_.collapsed&&w.to==f&&w.from==f)){if(null!=w.to&&w.to!=f&&v>w.to&&(v=w.to,c=""),_.className&&(l+=" "+_.className),_.css&&(s=(s?s+";":"")+_.css),_.startStyle&&w.from==f&&(u+=" "+_.startStyle),_.endStyle&&w.to==v&&(b||(b=[])).push(_.endStyle,w.to),_.title&&((p||(p={})).title=_.title),_.attributes)for(var C in _.attributes)(p||(p={}))[C]=_.attributes[C];_.collapsed&&(!d||Qt(d.marker,_)<0)&&(d=w)}else w.from>f&&v>w.from&&(v=w.from)}if(b)for(var x=0;x<b.length;x+=2)b[x+1]==v&&(c+=" "+b[x]);if(!d||d.from==f)for(var S=0;S<y.length;++S)Cn(t,0,y[S]);if(d&&(d.from||0)==f){if(Cn(t,(null==d.to?h+1:d.to)-f,d.marker,null==d.from),null==d.to)return;d.to==f&&(d=!1)}}if(f>=h)break;for(var E=Math.min(h,v);;){if(g){var A=f+g.length;if(!d){var D=A>E?g.slice(0,E-f):g;t.addToken(t,D,a?a+l:l,u,f+D.length==v?c:"",s,p)}if(A>=E){g=g.slice(E-f),f=E;break}f=A,u=""}g=r.slice(o,o=n[m++]),a=vn(n[m++],t.cm.options)}}else for(var T=1;T<n.length;T+=2)t.addToken(t,r.slice(o,o=n[T]),vn(n[T+1],t.cm.options))}function Sn(e,t,n){this.line=t,this.rest=rn(t),this.size=this.rest?rt(X(this.rest))-n+1:1,this.node=this.text=null,this.hidden=sn(e,t)}function En(e,t,n){for(var i,r=[],o=t;o<n;o=i){var a=new Sn(e.doc,et(e.doc,o),o);i=o+a.size,r.push(a)}return r}var An=null;function Dn(e){An?An.ops.push(e):e.ownsGroup=An={ops:[e],delayedCallbacks:[]}}function Tn(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var i=0;i<e.ops.length;i++){var r=e.ops[i];if(r.cursorActivityHandlers)for(;r.cursorActivityCalled<r.cursorActivityHandlers.length;)r.cursorActivityHandlers[r.cursorActivityCalled++].call(null,r.cm)}}while(n<t.length)}function In(e,t){var n=e.ownsGroup;if(n)try{Tn(n)}finally{An=null,t(n)}}var On=null;function Pn(e,t){var n=ye(e,t);if(n.length){var i,r=Array.prototype.slice.call(arguments,2);An?i=An.delayedCallbacks:On?i=On:(i=On=[],setTimeout(Fn,0));for(var o=function(e){i.push(function(){return n[e].apply(null,r)})},a=0;a<n.length;++a)o(a)}}function Fn(){var e=On;On=null;for(var t=0;t<e.length;++t)e[t]()}function $n(e,t,n,i){for(var r=0;r<t.changes.length;r++){var o=t.changes[r];"text"==o?jn(e,t):"gutter"==o?Rn(e,t,n,i):"class"==o?Bn(e,t):"widget"==o&&Vn(e,t,i)}t.changes=null}function Mn(e){return e.node==e.text&&(e.node=I("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&s<8&&(e.node.style.zIndex=2)),e.node}function Ln(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var i=Mn(t);t.background=i.insertBefore(I("div",null,n),i.firstChild),e.display.input.setUneditable(t.background)}}function Nn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):yn(e,t)}function jn(e,t){var n=t.text.className,i=Nn(e,t);t.text==t.node&&(t.node=i.pre),t.text.parentNode.replaceChild(i.pre,t.text),t.text=i.pre,i.bgClass!=t.bgClass||i.textClass!=t.textClass?(t.bgClass=i.bgClass,t.textClass=i.textClass,Bn(e,t)):n&&(t.text.className=n)}function Bn(e,t){Ln(e,t),t.line.wrapClass?Mn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function Rn(e,t,n,i){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var r=Mn(t);t.gutterBackground=I("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px; width: "+i.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),r.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=Mn(t),s=t.gutter=I("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px");if(s.setAttribute("aria-hidden","true"),e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(I("div",st(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+i.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<e.display.gutterSpecs.length;++l){var c=e.display.gutterSpecs[l].className,u=o.hasOwnProperty(c)&&o[c];u&&s.appendChild(I("div",[u],"CodeMirror-gutter-elt","left: "+i.gutterLeft[c]+"px; width: "+i.gutterWidth[c]+"px"))}}}function Vn(e,t,n){t.alignable&&(t.alignable=null);for(var i=S("CodeMirror-linewidget"),r=t.node.firstChild,o=void 0;r;r=o)o=r.nextSibling,i.test(r.className)&&t.node.removeChild(r);Hn(e,t,n)}function qn(e,t,n,i){var r=Nn(e,t);return t.text=t.node=r.pre,r.bgClass&&(t.bgClass=r.bgClass),r.textClass&&(t.textClass=r.textClass),Bn(e,t),Rn(e,t,n,i),Hn(e,t,i),t.node}function Hn(e,t,n){if(zn(e,t.line,t,n,!0),t.rest)for(var i=0;i<t.rest.length;i++)zn(e,t.rest[i],t,n,!1)}function zn(e,t,n,i,r){if(t.widgets)for(var o=Mn(n),a=0,s=t.widgets;a<s.length;++a){var l=s[a],c=I("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),Un(l,c,n,i),e.display.input.setUneditable(c),r&&l.above?o.insertBefore(c,n.gutter||n.text):o.appendChild(c),Pn(l,"redraw")}}function Un(e,t,n,i){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var r=i.wrapperWidth;t.style.left=i.fixedPos+"px",e.coverGutter||(r-=i.gutterTotalWidth,t.style.paddingLeft=i.gutterTotalWidth+"px"),t.style.width=r+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-i.gutterTotalWidth+"px"))}function Wn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!P(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),T(t.display.measure,I("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function Gn(e,t){for(var n=Te(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function Kn(e){return e.lineSpace.offsetTop}function Qn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Yn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=T(e.measure,I("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,i={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(i.left)||isNaN(i.right)||(e.cachedPaddingH=i),i}function Jn(e){return z-e.display.nativeBarWidth}function Xn(e){return e.display.scroller.clientWidth-Jn(e)-e.display.barWidth}function Zn(e){return e.display.scroller.clientHeight-Jn(e)-e.display.barHeight}function ei(e,t,n){var i=e.options.lineWrapping,r=i&&Xn(e);if(!t.measure.heights||i&&t.measure.width!=r){var o=t.measure.heights=[];if(i){t.measure.width=r;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],c=a[s+1];Math.abs(l.bottom-c.bottom)>2&&o.push((l.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}function ti(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var i=0;i<e.rest.length;i++)if(e.rest[i]==t)return{map:e.measure.maps[i],cache:e.measure.caches[i]};for(var r=0;r<e.rest.length;r++)if(rt(e.rest[r])>n)return{map:e.measure.maps[r],cache:e.measure.caches[r],before:!0}}}function ni(e,t){var n=rt(t=tn(t)),i=e.display.externalMeasured=new Sn(e.doc,t,n);i.lineN=n;var r=i.built=yn(e,i);return i.text=r.pre,T(e.display.lineMeasure,r.pre),i}function ii(e,t,n,i){return ai(e,oi(e,t),n,i)}function ri(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Bi(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function oi(e,t){var n=rt(t),i=ri(e,n);i&&!i.text?i=null:i&&i.changes&&($n(e,i,n,$i(e)),e.curOp.forceUpdate=!0),i||(i=ni(e,t));var r=ti(i,t,n);return{line:t,view:i,rect:null,map:r.map,cache:r.cache,before:r.before,hasHeights:!1}}function ai(e,t,n,i,r){t.before&&(n=-1);var o,a=n+(i||"");return t.cache.hasOwnProperty(a)?o=t.cache[a]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(ei(e,t.view,t.rect),t.hasHeights=!0),(o=di(e,t,n,i)).bogus||(t.cache[a]=o)),{left:o.left,right:o.right,top:r?o.rtop:o.top,bottom:r?o.rbottom:o.bottom}}var si,li={left:0,right:0,top:0,bottom:0};function ci(e,t,n){for(var i,r,o,a,s,l,c=0;c<e.length;c+=3)if(s=e[c],l=e[c+1],t<s?(r=0,o=1,a="left"):t<l?o=1+(r=t-s):(c==e.length-3||t==l&&e[c+3]>t)&&(r=(o=l-s)-1,t>=l&&(a="right")),null!=r){if(i=e[c+2],s==l&&n==(i.insertLeft?"left":"right")&&(a=n),"left"==n&&0==r)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)i=e[2+(c-=3)],a="left";if("right"==n&&r==l-s)for(;c<e.length-3&&e[c+3]==e[c+4]&&!e[c+5].insertLeft;)i=e[(c+=3)+2],a="right";break}return{node:i,start:r,end:o,collapse:a,coverStart:s,coverEnd:l}}function ui(e,t){var n=li;if("left"==t)for(var i=0;i<e.length&&(n=e[i]).left==n.right;i++);else for(var r=e.length-1;r>=0&&(n=e[r]).left==n.right;r--);return n}function di(e,t,n,i){var r,o=ci(t.map,n,i),l=o.node,c=o.start,u=o.end,d=o.collapse;if(3==l.nodeType){for(var p=0;p<4;p++){for(;c&&le(t.line.text.charAt(o.coverStart+c));)--c;for(;o.coverStart+u<o.coverEnd&&le(t.line.text.charAt(o.coverStart+u));)++u;if((r=a&&s<9&&0==c&&u==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():ui(E(l,c,u).getClientRects(),i)).left||r.right||0==c)break;u=c,c-=1,d="right"}a&&s<11&&(r=pi(e.display.measure,r))}else{var h;c>0&&(d=i="right"),r=e.options.lineWrapping&&(h=l.getClientRects()).length>1?h["right"==i?h.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!c&&(!r||!r.left&&!r.right)){var f=l.parentNode.getClientRects()[0];r=f?{left:f.left,right:f.left+Fi(e.display),top:f.top,bottom:f.bottom}:li}for(var m=r.top-t.rect.top,g=r.bottom-t.rect.top,v=(m+g)/2,y=t.view.measure.heights,b=0;b<y.length-1&&!(v<y[b]);b++);var k=b?y[b-1]:0,w=y[b],_={left:("right"==d?r.right:r.left)-t.rect.left,right:("left"==d?r.left:r.right)-t.rect.left,top:k,bottom:w};return r.left||r.right||(_.bogus=!0),e.options.singleCursorHeightPerLine||(_.rtop=m,_.rbottom=g),_}function pi(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!Ve(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,i=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*i,bottom:t.bottom*i}}function hi(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function fi(e){e.display.externalMeasure=null,D(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)hi(e.display.view[t])}function mi(e){fi(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function gi(e){return u&&v?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function vi(e){return u&&v?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function yi(e){var t=tn(e).widgets,n=0;if(t)for(var i=0;i<t.length;++i)t[i].above&&(n+=Wn(t[i]));return n}function bi(e,t,n,i,r){if(!r){var o=yi(t);n.top+=o,n.bottom+=o}if("line"==i)return n;i||(i="local");var a=cn(t);if("local"==i?a+=Kn(e.display):a-=e.display.viewOffset,"page"==i||"window"==i){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==i?0:vi(N(e)));var l=s.left+("window"==i?0:gi(N(e)));n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function ki(e,t,n){if("div"==n)return t;var i=t.left,r=t.top;if("page"==n)i-=gi(N(e)),r-=vi(N(e));else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();i+=o.left,r+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:i-a.left,top:r-a.top}}function wi(e,t,n,i,r){return i||(i=et(e.doc,t.line)),bi(e,i,ii(e,i,t.ch,r),n)}function _i(e,t,n,i,r,o){function a(t,a){var s=ai(e,r,t,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,bi(e,i,s,n)}i=i||et(e.doc,t.line),r||(r=oi(e,i));var s=me(i,e.doc.direction),l=t.ch,c=t.sticky;if(l>=i.text.length?(l=i.text.length,c="before"):l<=0&&(l=0,c="after"),!s)return a("before"==c?l-1:l,"before"==c);function u(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var d=he(s,l,c),p=pe,h=u(l,d,"before"==c);return null!=p&&(h.other=u(l,p,"before"!=c)),h}function Ci(e,t){var n=0;t=mt(e.doc,t),e.options.lineWrapping||(n=Fi(e.display)*t.ch);var i=et(e.doc,t.line),r=cn(i)+Kn(e.display);return{left:n,right:n,top:r,bottom:r+i.height}}function xi(e,t,n,i,r){var o=lt(e,t,n);return o.xRel=r,i&&(o.outside=i),o}function Si(e,t,n){var i=e.doc;if((n+=e.display.viewOffset)<0)return xi(i.first,0,null,-1,-1);var r=ot(i,n),o=i.first+i.size-1;if(r>o)return xi(i.first+i.size-1,et(i,o).text.length,null,1,1);t<0&&(t=0);for(var a=et(i,r);;){var s=Ti(e,a,r,t,n),l=Zt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var c=l.find(1);if(c.line==r)return c;a=et(i,r=c.line)}}function Ei(e,t,n,i){i-=yi(t);var r=t.text.length,o=ue(function(t){return ai(e,n,t-1).bottom<=i},r,0);return{begin:o,end:r=ue(function(t){return ai(e,n,t).top>i},o,r)}}function Ai(e,t,n,i){return n||(n=oi(e,t)),Ei(e,t,n,bi(e,t,ai(e,n,i),"line").top)}function Di(e,t,n,i){return!(e.bottom<=n)&&(e.top>n||(i?e.left:e.right)>t)}function Ti(e,t,n,i,r){r-=cn(t);var o=oi(e,t),a=yi(t),s=0,l=t.text.length,c=!0,u=me(t,e.doc.direction);if(u){var d=(e.options.lineWrapping?Oi:Ii)(e,t,n,o,u,i,r);s=(c=1!=d.level)?d.from:d.to-1,l=c?d.to:d.from-1}var p,h,f=null,m=null,g=ue(function(t){var n=ai(e,o,t);return n.top+=a,n.bottom+=a,!!Di(n,i,r,!1)&&(n.top<=r&&n.left<=i&&(f=t,m=n),!0)},s,l),v=!1;if(m){var y=i-m.left<m.right-i,b=y==c;g=f+(b?0:1),h=b?"after":"before",p=y?m.left:m.right}else{c||g!=l&&g!=s||g++,h=0==g?"after":g==t.text.length?"before":ai(e,o,g-(c?1:0)).bottom+a<=r==c?"after":"before";var k=_i(e,lt(n,g,h),"line",t,o);p=k.left,v=r<k.top?-1:r>=k.bottom?1:0}return xi(n,g=ce(t.text,g,1),h,v,i-p)}function Ii(e,t,n,i,r,o,a){var s=ue(function(s){var l=r[s],c=1!=l.level;return Di(_i(e,lt(n,c?l.to:l.from,c?"before":"after"),"line",t,i),o,a,!0)},0,r.length-1),l=r[s];if(s>0){var c=1!=l.level,u=_i(e,lt(n,c?l.from:l.to,c?"after":"before"),"line",t,i);Di(u,o,a,!0)&&u.top>a&&(l=r[s-1])}return l}function Oi(e,t,n,i,r,o,a){var s=Ei(e,t,i,a),l=s.begin,c=s.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,d=null,p=0;p<r.length;p++){var h=r[p];if(!(h.from>=c||h.to<=l)){var f=ai(e,i,1!=h.level?Math.min(c,h.to)-1:Math.max(l,h.from)).right,m=f<o?o-f+1e9:f-o;(!u||d>m)&&(u=h,d=m)}}return u||(u=r[r.length-1]),u.from<l&&(u={from:l,to:u.to,level:u.level}),u.to>c&&(u={from:u.from,to:c,level:u.level}),u}function Pi(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==si){si=I("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)si.appendChild(document.createTextNode("x")),si.appendChild(I("br"));si.appendChild(document.createTextNode("x"))}T(e.measure,si);var n=si.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),D(e.measure),n||1}function Fi(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=I("span","xxxxxxxxxx"),n=I("pre",[t],"CodeMirror-line-like");T(e.measure,n);var i=t.getBoundingClientRect(),r=(i.right-i.left)/10;return r>2&&(e.cachedCharWidth=r),r||10}function $i(e){for(var t=e.display,n={},i={},r=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+r,i[s]=o.clientWidth}return{fixedPos:Mi(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:i,wrapperWidth:t.wrapper.clientWidth}}function Mi(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Li(e){var t=Pi(e.display),n=e.options.lineWrapping,i=n&&Math.max(5,e.display.scroller.clientWidth/Fi(e.display)-3);return function(r){if(sn(e.doc,r))return 0;var o=0;if(r.widgets)for(var a=0;a<r.widgets.length;a++)r.widgets[a].height&&(o+=r.widgets[a].height);return n?o+(Math.ceil(r.text.length/i)||1)*t:o+t}}function Ni(e){var t=e.doc,n=Li(e);t.iter(function(e){var t=n(e);t!=e.height&&it(e,t)})}function ji(e,t,n,i){var r=e.display;if(!n&&"true"==Te(t).getAttribute("cm-not-content"))return null;var o,a,s=r.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,a=t.clientY-s.top}catch(e){return null}var l,c=Si(e,o,a);if(i&&c.xRel>0&&(l=et(e.doc,c.line).text).length==c.ch){var u=V(l,l.length,e.options.tabSize)-l.length;c=lt(c.line,Math.max(0,Math.round((o-Yn(e.display).left)/Fi(e.display))-u))}return c}function Bi(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,i=0;i<n.length;i++)if((t-=n[i].size)<0)return i}function Ri(e,t,n,i){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),i||(i=0);var r=e.display;if(i&&n<r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>t)&&(r.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=r.viewTo)Ft&&on(e.doc,t)<r.viewTo&&qi(e);else if(n<=r.viewFrom)Ft&&an(e.doc,n+i)>r.viewFrom?qi(e):(r.viewFrom+=i,r.viewTo+=i);else if(t<=r.viewFrom&&n>=r.viewTo)qi(e);else if(t<=r.viewFrom){var o=Hi(e,n,n+i,1);o?(r.view=r.view.slice(o.index),r.viewFrom=o.lineN,r.viewTo+=i):qi(e)}else if(n>=r.viewTo){var a=Hi(e,t,t,-1);a?(r.view=r.view.slice(0,a.index),r.viewTo=a.lineN):qi(e)}else{var s=Hi(e,t,t,-1),l=Hi(e,n,n+i,1);s&&l?(r.view=r.view.slice(0,s.index).concat(En(e,s.lineN,l.lineN)).concat(r.view.slice(l.index)),r.viewTo+=i):qi(e)}var c=r.externalMeasured;c&&(n<c.lineN?c.lineN+=i:t<c.lineN+c.size&&(r.externalMeasured=null))}function Vi(e,t,n){e.curOp.viewChanged=!0;var i=e.display,r=e.display.externalMeasured;if(r&&t>=r.lineN&&t<r.lineN+r.size&&(i.externalMeasured=null),!(t<i.viewFrom||t>=i.viewTo)){var o=i.view[Bi(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==H(a,n)&&a.push(n)}}}function qi(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Hi(e,t,n,i){var r,o=Bi(e,t),a=e.display.view;if(!Ft||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l<o;l++)s+=a[l].size;if(s!=t){if(i>0){if(o==a.length-1)return null;r=s+a[o].size-t,o++}else r=s-t;t+=r,n+=r}for(;on(e.doc,n)!=n;){if(o==(i<0?0:a.length-1))return null;n+=i*a[o-(i<0?1:0)].size,o+=i}return{index:o,lineN:n}}function zi(e,t,n){var i=e.display;0==i.view.length||t>=i.viewTo||n<=i.viewFrom?(i.view=En(e,t,n),i.viewFrom=t):(i.viewFrom>t?i.view=En(e,t,i.viewFrom).concat(i.view):i.viewFrom<t&&(i.view=i.view.slice(Bi(e,t))),i.viewFrom=t,i.viewTo<n?i.view=i.view.concat(En(e,i.viewTo,n)):i.viewTo>n&&(i.view=i.view.slice(0,Bi(e,n)))),i.viewTo=n}function Ui(e){for(var t=e.display.view,n=0,i=0;i<t.length;i++){var r=t[i];r.hidden||r.node&&!r.changes||++n}return n}function Wi(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Gi(e,t){void 0===t&&(t=!0);var n=e.doc,i={},r=i.cursors=document.createDocumentFragment(),o=i.selection=document.createDocumentFragment(),a=e.options.$customCursor;a&&(t=!0);for(var s=0;s<n.sel.ranges.length;s++)if(t||s!=n.sel.primIndex){var l=n.sel.ranges[s];if(!(l.from().line>=e.display.viewTo||l.to().line<e.display.viewFrom)){var c=l.empty();if(a){var u=a(e,l);u&&Ki(e,u,r)}else(c||e.options.showCursorWhenSelecting)&&Ki(e,l.head,r);c||Yi(e,l,o)}}return i}function Ki(e,t,n){var i=_i(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),r=n.appendChild(I("div"," ","CodeMirror-cursor"));if(r.style.left=i.left+"px",r.style.top=i.top+"px",r.style.height=Math.max(0,i.bottom-i.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var o=wi(e,t,"div",null,null),a=o.right-o.left;r.style.width=(a>0?a:e.defaultCharWidth())+"px"}if(i.other){var s=n.appendChild(I("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=i.other.left+"px",s.style.top=i.other.top+"px",s.style.height=.85*(i.other.bottom-i.other.top)+"px"}}function Qi(e,t){return e.top-t.top||e.left-t.left}function Yi(e,t,n){var i=e.display,r=e.doc,o=document.createDocumentFragment(),a=Yn(e.display),s=a.left,l=Math.max(i.sizerWidth,Xn(e)-i.sizer.offsetLeft)-a.right,c="ltr"==r.direction;function u(e,t,n,i){t<0&&(t=0),t=Math.round(t),i=Math.round(i),o.appendChild(I("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?l-e:n)+"px;\n height: "+(i-t)+"px"))}function d(t,n,i){var o,a,d=et(r,t),p=d.text.length;function h(n,i){return wi(e,lt(t,n),"div",d,i)}function f(t,n,i){var r=Ai(e,d,null,t),o="ltr"==n==("after"==i)?"left":"right";return h("after"==i?r.begin:r.end-(/\s/.test(d.text.charAt(r.end-1))?2:1),o)[o]}var m=me(d,r.direction);return de(m,n||0,null==i?p:i,function(e,t,r,d){var g="ltr"==r,v=h(e,g?"left":"right"),y=h(t-1,g?"right":"left"),b=null==n&&0==e,k=null==i&&t==p,w=0==d,_=!m||d==m.length-1;if(y.top-v.top<=3){var C=(c?k:b)&&_,x=(c?b:k)&&w?s:(g?v:y).left,S=C?l:(g?y:v).right;u(x,v.top,S-x,v.bottom)}else{var E,A,D,T;g?(E=c&&b&&w?s:v.left,A=c?l:f(e,r,"before"),D=c?s:f(t,r,"after"),T=c&&k&&_?l:y.right):(E=c?f(e,r,"before"):s,A=!c&&b&&w?l:v.right,D=!c&&k&&_?s:y.left,T=c?f(t,r,"after"):l),u(E,v.top,A-E,v.bottom),v.bottom<y.top&&u(s,v.bottom,null,y.top),u(D,y.top,T-D,y.bottom)}(!o||Qi(v,o)<0)&&(o=v),Qi(y,o)<0&&(o=y),(!a||Qi(v,a)<0)&&(a=v),Qi(y,a)<0&&(a=y)}),{start:o,end:a}}var p=t.from(),h=t.to();if(p.line==h.line)d(p.line,p.ch,h.ch);else{var f=et(r,p.line),m=et(r,h.line),g=tn(f)==tn(m),v=d(p.line,p.ch,g?f.text.length+1:null).end,y=d(h.line,g?0:null,h.ch).start;g&&(v.top<y.top-2?(u(v.right,v.top,null,v.bottom),u(s,y.top,y.left,y.bottom)):u(v.right,v.top,y.left-v.right,v.bottom)),v.bottom<y.top&&u(s,v.bottom,null,y.top)}n.appendChild(o)}function Ji(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||tr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Xi(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||er(e))}function Zi(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&tr(e))},100)}function er(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ke(e,"focus",e,t),e.state.focused=!0,$(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Ji(e))}function tr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ke(e,"blur",e,t),e.state.focused=!1,A(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function nr(e){for(var t=e.display,n=t.lineDiv.offsetTop,i=Math.max(0,t.scroller.getBoundingClientRect().top),r=t.lineDiv.getBoundingClientRect().top,o=0,l=0;l<t.view.length;l++){var c=t.view[l],u=e.options.lineWrapping,d=void 0,p=0;if(!c.hidden){if(r+=c.line.height,a&&s<8){var h=c.node.offsetTop+c.node.offsetHeight;d=h-n,n=h}else{var f=c.node.getBoundingClientRect();d=f.bottom-f.top,!u&&c.text.firstChild&&(p=c.text.firstChild.getBoundingClientRect().right-f.left-1)}var m=c.line.height-d;if((m>.005||m<-.005)&&(r<i&&(o-=m),it(c.line,d),ir(c.line),c.rest))for(var g=0;g<c.rest.length;g++)ir(c.rest[g]);if(p>e.display.sizerWidth){var v=Math.ceil(p/Fi(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=c.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function ir(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],i=n.node.parentNode;i&&(n.height=i.offsetHeight)}}function rr(e,t,n){var i=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;i=Math.floor(i-Kn(e));var r=n&&null!=n.bottom?n.bottom:i+e.wrapper.clientHeight,o=ot(t,i),a=ot(t,r);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<o?(o=s,a=ot(t,cn(et(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=a&&(o=ot(t,cn(et(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function or(e,t){if(!we(e,"scrollCursorIntoView")){var n=e.display,i=n.sizer.getBoundingClientRect(),r=null,o=n.wrapper.ownerDocument;if(t.top+i.top<0?r=!0:t.bottom+i.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(r=!1),null!=r&&!m){var a=I("div","",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Kn(e.display))+"px;\n height: "+(t.bottom-t.top+Jn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(r),e.display.lineSpace.removeChild(a)}}}function ar(e,t,n,i){var r;null==i&&(i=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?lt(t.line,t.ch+1,"before"):t,t=t.ch?lt(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,s=_i(e,t),l=n&&n!=t?_i(e,n):s,c=lr(e,r={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-i,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+i}),u=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=c.scrollTop&&(mr(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(vr(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return r}function sr(e,t){var n=lr(e,t);null!=n.scrollTop&&mr(e,n.scrollTop),null!=n.scrollLeft&&vr(e,n.scrollLeft)}function lr(e,t){var n=e.display,i=Pi(e.display);t.top<0&&(t.top=0);var r=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Zn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Qn(n),l=t.top<i,c=t.bottom>s-i;if(t.top<r)a.scrollTop=l?0:t.top;else if(t.bottom>r+o){var u=Math.min(t.top,(c?s:t.bottom)-o);u!=r&&(a.scrollTop=u)}var d=e.options.fixedGutter?0:n.gutters.offsetWidth,p=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-d,h=Xn(e)-n.gutters.offsetWidth,f=t.right-t.left>h;return f&&(t.right=t.left+h),t.left<10?a.scrollLeft=0:t.left<p?a.scrollLeft=Math.max(0,t.left+d-(f?0:10)):t.right>h+p-3&&(a.scrollLeft=t.right+(f?0:10)-h),a}function cr(e,t){null!=t&&(hr(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function ur(e){hr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function dr(e,t,n){null==t&&null==n||hr(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function pr(e,t){hr(e),e.curOp.scrollToPos=t}function hr(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,fr(e,Ci(e,t.from),Ci(e,t.to),t.margin))}function fr(e,t,n,i){var r=lr(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-i,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+i});dr(e,r.scrollLeft,r.scrollTop)}function mr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||Wr(e,{top:t}),gr(e,t,!0),n&&Wr(e),jr(e,100))}function gr(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function vr(e,t,n,i){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!i||(e.doc.scrollLeft=t,Yr(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function yr(e){var t=e.display,n=t.gutters.offsetWidth,i=Math.round(e.doc.height+Qn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:i,scrollHeight:i+Jn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var br=function(e,t,n){this.cm=n;var i=this.vert=I("div",[I("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),r=this.horiz=I("div",[I("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");i.tabIndex=r.tabIndex=-1,e(i),e(r),ve(i,"scroll",function(){i.clientHeight&&t(i.scrollTop,"vertical")}),ve(r,"scroll",function(){r.clientWidth&&t(r.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};br.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,i=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?i+"px":"0";var r=e.viewHeight-(t?i:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+r)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?i+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?i:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==i&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?i:0,bottom:t?i:0}},br.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},br.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},br.prototype.zeroWidthHack=function(){var e=b&&!f?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new q,this.disableVert=new q},br.prototype.enableZeroWidthBar=function(e,t,n){function i(){var r=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(r.right-1,(r.top+r.bottom)/2):document.elementFromPoint((r.right+r.left)/2,r.bottom-1))!=e?e.style.visibility="hidden":t.set(1e3,i)}e.style.visibility="",t.set(1e3,i)},br.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var kr=function(){};function wr(e,t){t||(t=yr(e));var n=e.display.barWidth,i=e.display.barHeight;_r(e,t);for(var r=0;r<4&&n!=e.display.barWidth||i!=e.display.barHeight;r++)n!=e.display.barWidth&&e.options.lineWrapping&&nr(e),_r(e,yr(e)),n=e.display.barWidth,i=e.display.barHeight}function _r(e,t){var n=e.display,i=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=i.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=i.bottom)+"px",n.heightForcer.style.borderBottom=i.bottom+"px solid transparent",i.right&&i.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=i.bottom+"px",n.scrollbarFiller.style.width=i.right+"px"):n.scrollbarFiller.style.display="",i.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=i.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}kr.prototype.update=function(){return{bottom:0,right:0}},kr.prototype.setScrollLeft=function(){},kr.prototype.setScrollTop=function(){},kr.prototype.clear=function(){};var Cr={native:br,null:kr};function xr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&A(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Cr[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ve(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){"horizontal"==n?vr(e,t):mr(e,t)},e),e.display.scrollbars.addClass&&$(e.display.wrapper,e.display.scrollbars.addClass)}var Sr=0;function Er(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Sr,markArrays:null},Dn(e.curOp)}function Ar(e){var t=e.curOp;t&&In(t,function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;Dr(e)})}function Dr(e){for(var t=e.ops,n=0;n<t.length;n++)Tr(t[n]);for(var i=0;i<t.length;i++)Ir(t[i]);for(var r=0;r<t.length;r++)Or(t[r]);for(var o=0;o<t.length;o++)Pr(t[o]);for(var a=0;a<t.length;a++)Fr(t[a])}function Tr(e){var t=e.cm,n=t.display;Vr(t),e.updateMaxLine&&dn(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Rr(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Ir(e){e.updatedDisplay=e.mustUpdate&&zr(e.cm,e.update)}function Or(e){var t=e.cm,n=t.display;e.updatedDisplay&&nr(t),e.barMeasure=yr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=ii(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Jn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Xn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Pr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&vr(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==F(N(t));e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&wr(t,e.barMeasure),e.updatedDisplay&&Qr(t,e.barMeasure),e.selectionChanged&&Ji(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&Xi(e.cm)}function Fr(e){var t=e.cm,n=t.display,i=t.doc;e.updatedDisplay&&Ur(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&gr(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&vr(t,e.scrollLeft,!0,!0),e.scrollToPos&&or(t,ar(t,mt(i,e.scrollToPos.from),mt(i,e.scrollToPos.to),e.scrollToPos.margin));var r=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(r)for(var a=0;a<r.length;++a)r[a].lines.length||ke(r[a],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&ke(o[s],"unhide");n.wrapper.offsetHeight&&(i.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&ke(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function $r(e,t){if(e.curOp)return t();Er(e);try{return t()}finally{Ar(e)}}function Mr(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Er(e);try{return t.apply(e,arguments)}finally{Ar(e)}}}function Lr(e){return function(){if(this.curOp)return e.apply(this,arguments);Er(this);try{return e.apply(this,arguments)}finally{Ar(this)}}}function Nr(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Er(t);try{return e.apply(this,arguments)}finally{Ar(t)}}}function jr(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,B(Br,e))}function Br(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,i=_t(e,t.highlightFrontier),r=[];t.iter(i.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(i.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?Ye(t.mode,i.state):null,l=kt(e,o,i,!0);s&&(i.state=s),o.styles=l.styles;var c=o.styleClasses,u=l.classes;u?o.styleClasses=u:c&&(o.styleClasses=null);for(var d=!a||a.length!=o.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),p=0;!d&&p<a.length;++p)d=a[p]!=o.styles[p];d&&r.push(i.line),o.stateAfter=i.save(),i.nextLine()}else o.text.length<=e.options.maxHighlightLength&&Ct(e,o.text,i),o.stateAfter=i.line%5==0?i.save():null,i.nextLine();if(+new Date>n)return jr(e,e.options.workDelay),!0}),t.highlightFrontier=i.line,t.modeFrontier=Math.max(t.modeFrontier,i.line),r.length&&$r(e,function(){for(var t=0;t<r.length;t++)Vi(e,r[t],"text")})}}var Rr=function(e,t,n){var i=e.display;this.viewport=t,this.visible=rr(i,e.doc,t),this.editorIsHidden=!i.wrapper.offsetWidth,this.wrapperHeight=i.wrapper.clientHeight,this.wrapperWidth=i.wrapper.clientWidth,this.oldDisplayWidth=Xn(e),this.force=n,this.dims=$i(e),this.events=[]};function Vr(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Jn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Jn(e)+"px",t.scrollbarsClipped=!0)}function qr(e){if(e.hasFocus())return null;var t=F(N(e));if(!t||!P(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var i=j(e).getSelection();i.anchorNode&&i.extend&&P(e.display.lineDiv,i.anchorNode)&&(n.anchorNode=i.anchorNode,n.anchorOffset=i.anchorOffset,n.focusNode=i.focusNode,n.focusOffset=i.focusOffset)}return n}function Hr(e){if(e&&e.activeElt&&e.activeElt!=F(e.activeElt.ownerDocument)&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&P(document.body,e.anchorNode)&&P(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,n=t.defaultView.getSelection(),i=t.createRange();i.setEnd(e.anchorNode,e.anchorOffset),i.collapse(!1),n.removeAllRanges(),n.addRange(i),n.extend(e.focusNode,e.focusOffset)}}function zr(e,t){var n=e.display,i=e.doc;if(t.editorIsHidden)return qi(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Ui(e))return!1;Jr(e)&&(qi(e),t.dims=$i(e));var r=i.first+i.size,o=Math.max(t.visible.from-e.options.viewportMargin,i.first),a=Math.min(r,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(i.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(r,n.viewTo)),Ft&&(o=on(e.doc,o),a=an(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;zi(e,o,a),n.viewOffset=cn(et(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=Ui(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=qr(e);return l>4&&(n.lineDiv.style.display="none"),Gr(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Hr(c),D(n.cursorDiv),D(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,jr(e,400)),n.updateLineNumbers=null,!0}function Ur(e,t){for(var n=t.viewport,i=!0;;i=!1){if(i&&e.options.lineWrapping&&t.oldDisplayWidth!=Xn(e))i&&(t.visible=rr(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Qn(e.display)-Zn(e),n.top)}),t.visible=rr(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!zr(e,t))break;nr(e);var r=yr(e);Wi(e),wr(e,r),Qr(e,r),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Wr(e,t){var n=new Rr(e,t);if(zr(e,n)){nr(e),Ur(e,n);var i=yr(e);Wi(e),wr(e,i),Qr(e,i),n.finish()}}function Gr(e,t,n){var i=e.display,r=e.options.lineNumbers,o=i.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return l&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var c=i.view,u=i.viewFrom,d=0;d<c.length;d++){var p=c[d];if(p.hidden);else if(p.node&&p.node.parentNode==o){for(;a!=p.node;)a=s(a);var h=r&&null!=t&&t<=u&&p.lineNumber;p.changes&&(H(p.changes,"gutter")>-1&&(h=!1),$n(e,p,u,n)),h&&(D(p.lineNumber),p.lineNumber.appendChild(document.createTextNode(st(e.options,u)))),a=p.node.nextSibling}else{var f=qn(e,p,u,n);o.insertBefore(f,a)}u+=p.size}for(;a;)a=s(a)}function Kr(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",Pn(e,"gutterChanged",e)}function Qr(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Jn(e)+"px"}function Yr(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var i=Mi(t)-t.scroller.scrollLeft+e.doc.scrollLeft,r=t.gutters.offsetWidth,o=i+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=i+r+"px")}}function Jr(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=st(e.options,t.first+t.size-1),i=e.display;if(n.length!=i.lineNumChars){var r=i.measure.appendChild(I("div",[I("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=r.firstChild.offsetWidth,a=r.offsetWidth-o;return i.lineGutter.style.width="",i.lineNumInnerWidth=Math.max(o,i.lineGutter.offsetWidth-a)+1,i.lineNumWidth=i.lineNumInnerWidth+a,i.lineNumChars=i.lineNumInnerWidth?n.length:-1,i.lineGutter.style.width=i.lineNumWidth+"px",Kr(e.display),!0}return!1}function Xr(e,t){for(var n=[],i=!1,r=0;r<e.length;r++){var o=e[r],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;i=!0}n.push({className:o,style:a})}return t&&!i&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function Zr(e){var t=e.gutters,n=e.gutterSpecs;D(t),e.lineGutter=null;for(var i=0;i<n.length;++i){var r=n[i],o=r.className,a=r.style,s=t.appendChild(I("div",null,"CodeMirror-gutter "+o));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==o&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",Kr(e)}function eo(e){Zr(e.display),Ri(e),Yr(e)}function to(e,t,i,r){var o=this;this.input=i,o.scrollbarFiller=I("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=I("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=O("div",null,"CodeMirror-code"),o.selectionDiv=I("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=I("div",null,"CodeMirror-cursors"),o.measure=I("div",null,"CodeMirror-measure"),o.lineMeasure=I("div",null,"CodeMirror-measure"),o.lineSpace=O("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var c=O("div",[o.lineSpace],"CodeMirror-lines");o.mover=I("div",[c],null,"position: relative"),o.sizer=I("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=I("div",null,null,"position: absolute; height: "+z+"px; width: 1px;"),o.gutters=I("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=I("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=I("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),u&&d>=105&&(o.wrapper.style.clipPath="inset(0px)"),o.wrapper.setAttribute("translate","no"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||n&&y||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=Xr(r.gutters,r.lineNumbers),Zr(o),i.init(o)}Rr.prototype.signal=function(e,t){Ce(e,t)&&this.events.push(arguments)},Rr.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ke.apply(null,this.events[e])};var no=0,io=null;function ro(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function oo(e){var t=ro(e);return t.x*=io,t.y*=io,t}function ao(e,t){u&&102==d&&(null==e.display.chromeScrollHack?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var i=ro(t),r=i.x,o=i.y,a=io;0===t.deltaMode&&(r=t.deltaX,o=t.deltaY,a=1);var s=e.display,c=s.scroller,h=c.scrollWidth>c.clientWidth,f=c.scrollHeight>c.clientHeight;if(r&&h||o&&f){if(o&&b&&l)e:for(var m=t.target,g=s.view;m!=c;m=m.parentNode)for(var v=0;v<g.length;v++)if(g[v].node==m){e.display.currentWheelTarget=m;break e}if(r&&!n&&!p&&null!=a)return o&&f&&mr(e,Math.max(0,c.scrollTop+o*a)),vr(e,Math.max(0,c.scrollLeft+r*a)),(!o||o&&f)&&Se(t),void(s.wheelStartX=null);if(o&&null!=a){var y=o*a,k=e.doc.scrollTop,w=k+s.wrapper.clientHeight;y<0?k=Math.max(0,k+y-50):w=Math.min(e.doc.height,w+y+50),Wr(e,{top:k,bottom:w})}no<20&&0!==t.deltaMode&&(null==s.wheelStartX?(s.wheelStartX=c.scrollLeft,s.wheelStartY=c.scrollTop,s.wheelDX=r,s.wheelDY=o,setTimeout(function(){if(null!=s.wheelStartX){var e=c.scrollLeft-s.wheelStartX,t=c.scrollTop-s.wheelStartY,n=t&&s.wheelDY&&t/s.wheelDY||e&&s.wheelDX&&e/s.wheelDX;s.wheelStartX=s.wheelStartY=null,n&&(io=(io*no+n)/(no+1),++no)}},200)):(s.wheelDX+=r,s.wheelDY+=o))}}a?io=-.53:n?io=15:u?io=-.7:h&&(io=-1/3);var so=function(e,t){this.ranges=e,this.primIndex=t};so.prototype.primary=function(){return this.ranges[this.primIndex]},so.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],i=e.ranges[t];if(!ut(n.anchor,i.anchor)||!ut(n.head,i.head))return!1}return!0},so.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new lo(dt(this.ranges[t].anchor),dt(this.ranges[t].head));return new so(e,this.primIndex)},so.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},so.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var i=this.ranges[n];if(ct(t,i.from())>=0&&ct(e,i.to())<=0)return n}return-1};var lo=function(e,t){this.anchor=e,this.head=t};function co(e,t,n){var i=e&&e.options.selectionsMayTouch,r=t[n];t.sort(function(e,t){return ct(e.from(),t.from())}),n=H(t,r);for(var o=1;o<t.length;o++){var a=t[o],s=t[o-1],l=ct(s.to(),a.from());if(i&&!a.empty()?l>0:l>=0){var c=ht(s.from(),a.from()),u=pt(s.to(),a.to()),d=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new lo(d?u:c,d?c:u))}}return new so(t,n)}function uo(e,t){return new so([new lo(e,t||e)],0)}function po(e){return e.text?lt(e.from.line+e.text.length-1,X(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function ho(e,t){if(ct(e,t.from)<0)return e;if(ct(e,t.to)<=0)return po(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,i=e.ch;return e.line==t.to.line&&(i+=po(t).ch-t.to.ch),lt(n,i)}function fo(e,t){for(var n=[],i=0;i<e.sel.ranges.length;i++){var r=e.sel.ranges[i];n.push(new lo(ho(r.anchor,t),ho(r.head,t)))}return co(e.cm,n,e.sel.primIndex)}function mo(e,t,n){return e.line==t.line?lt(n.line,e.ch-t.ch+n.ch):lt(n.line+(e.line-t.line),e.ch)}function go(e,t,n){for(var i=[],r=lt(e.first,0),o=r,a=0;a<t.length;a++){var s=t[a],l=mo(s.from,r,o),c=mo(po(s),r,o);if(r=s.to,o=c,"around"==n){var u=e.sel.ranges[a],d=ct(u.head,u.anchor)<0;i[a]=new lo(d?c:l,d?l:c)}else i[a]=new lo(l,l)}return new so(i,e.sel.primIndex)}function vo(e){e.doc.mode=Ge(e.options,e.doc.modeOption),yo(e)}function yo(e){e.doc.iter(function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,jr(e,100),e.state.modeGen++,e.curOp&&Ri(e)}function bo(e,t){return 0==t.from.ch&&0==t.to.ch&&""==X(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function ko(e,t,n,i){function r(e){return n?n[e]:null}function o(e,n,r){hn(e,n,r,i),Pn(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new pn(c[o],r(o),i));return n}var s=t.from,l=t.to,c=t.text,u=et(e,s.line),d=et(e,l.line),p=X(c),h=r(c.length-1),f=l.line-s.line;if(t.full)e.insert(0,a(0,c.length)),e.remove(c.length,e.size-c.length);else if(bo(e,t)){var m=a(0,c.length-1);o(d,d.text,h),f&&e.remove(s.line,f),m.length&&e.insert(s.line,m)}else if(u==d)if(1==c.length)o(u,u.text.slice(0,s.ch)+p+u.text.slice(l.ch),h);else{var g=a(1,c.length-1);g.push(new pn(p+u.text.slice(l.ch),h,i)),o(u,u.text.slice(0,s.ch)+c[0],r(0)),e.insert(s.line+1,g)}else if(1==c.length)o(u,u.text.slice(0,s.ch)+c[0]+d.text.slice(l.ch),r(0)),e.remove(s.line+1,f);else{o(u,u.text.slice(0,s.ch)+c[0],r(0)),o(d,p+d.text.slice(l.ch),h);var v=a(1,c.length-1);f>1&&e.remove(s.line+1,f-1),e.insert(s.line+1,v)}Pn(e,"change",e,t)}function wo(e,t,n){function i(e,r,o){if(e.linked)for(var a=0;a<e.linked.length;++a){var s=e.linked[a];if(s.doc!=r){var l=o&&s.sharedHist;n&&!l||(t(s.doc,l),i(s.doc,e,l))}}}i(e,null,!0)}function _o(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Ni(e),vo(e),Co(e),e.options.direction=t.direction,e.options.lineWrapping||dn(e),e.options.mode=t.modeOption,Ri(e)}function Co(e){("rtl"==e.doc.direction?$:A)(e.display.lineDiv,"CodeMirror-rtl")}function xo(e){$r(e,function(){Co(e),Ri(e)})}function So(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function Eo(e,t){var n={from:dt(t.from),to:po(t),text:tt(e,t.from,t.to)};return Fo(e,n,t.from.line,t.to.line+1),wo(e,function(e){return Fo(e,n,t.from.line,t.to.line+1)},!0),n}function Ao(e){for(;e.length&&X(e).ranges;)e.pop()}function Do(e,t){return t?(Ao(e.done),X(e.done)):e.done.length&&!X(e.done).ranges?X(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),X(e.done)):void 0}function To(e,t,n,i){var r=e.history;r.undone.length=0;var o,a,s=+new Date;if((r.lastOp==i||r.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&r.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=Do(r,r.lastOp==i)))a=X(o.changes),0==ct(t.from,t.to)&&0==ct(t.from,a.to)?a.to=po(t):o.changes.push(Eo(e,t));else{var l=X(r.done);for(l&&l.ranges||Po(e.sel,r.done),o={changes:[Eo(e,t)],generation:r.generation},r.done.push(o);r.done.length>r.undoDepth;)r.done.shift(),r.done[0].ranges||r.done.shift()}r.done.push(n),r.generation=++r.maxGeneration,r.lastModTime=r.lastSelTime=s,r.lastOp=r.lastSelOp=i,r.lastOrigin=r.lastSelOrigin=t.origin,a||ke(e,"historyAdded")}function Io(e,t,n,i){var r=t.charAt(0);return"*"==r||"+"==r&&n.ranges.length==i.ranges.length&&n.somethingSelected()==i.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Oo(e,t,n,i){var r=e.history,o=i&&i.origin;n==r.lastSelOp||o&&r.lastSelOrigin==o&&(r.lastModTime==r.lastSelTime&&r.lastOrigin==o||Io(e,o,X(r.done),t))?r.done[r.done.length-1]=t:Po(t,r.done),r.lastSelTime=+new Date,r.lastSelOrigin=o,r.lastSelOp=n,i&&!1!==i.clearRedo&&Ao(r.undone)}function Po(e,t){var n=X(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Fo(e,t,n,i){var r=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,i),function(n){n.markedSpans&&((r||(r=t["spans_"+e.id]={}))[o]=n.markedSpans),++o})}function $o(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Mo(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var i=[],r=0;r<t.text.length;++r)i.push($o(n[r]));return i}function Lo(e,t){var n=Mo(e,t),i=qt(e,t);if(!n)return i;if(!i)return n;for(var r=0;r<n.length;++r){var o=n[r],a=i[r];if(o&&a)e:for(var s=0;s<a.length;++s){for(var l=a[s],c=0;c<o.length;++c)if(o[c].marker==l.marker)continue e;o.push(l)}else a&&(n[r]=a)}return n}function No(e,t,n){for(var i=[],r=0;r<e.length;++r){var o=e[r];if(o.ranges)i.push(n?so.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];i.push({changes:s});for(var l=0;l<a.length;++l){var c=a[l],u=void 0;if(s.push({from:c.from,to:c.to,text:c.text}),t)for(var d in c)(u=d.match(/^spans_(\d+)$/))&&H(t,Number(u[1]))>-1&&(X(s)[d]=c[d],delete c[d])}}}return i}function jo(e,t,n,i){if(i){var r=e.anchor;if(n){var o=ct(t,r)<0;o!=ct(n,r)<0?(r=t,t=n):o!=ct(t,n)<0&&(t=n)}return new lo(r,t)}return new lo(n||t,t)}function Bo(e,t,n,i,r){null==r&&(r=e.cm&&(e.cm.display.shift||e.extend)),Uo(e,new so([jo(e.sel.primary(),t,n,r)],0),i)}function Ro(e,t,n){for(var i=[],r=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)i[o]=jo(e.sel.ranges[o],t[o],null,r);Uo(e,co(e.cm,i,e.sel.primIndex),n)}function Vo(e,t,n,i){var r=e.sel.ranges.slice(0);r[t]=n,Uo(e,co(e.cm,r,e.sel.primIndex),i)}function qo(e,t,n,i){Uo(e,uo(t,n),i)}function Ho(e,t,n){var i={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new lo(mt(e,t[n].anchor),mt(e,t[n].head))},origin:n&&n.origin};return ke(e,"beforeSelectionChange",e,i),e.cm&&ke(e.cm,"beforeSelectionChange",e.cm,i),i.ranges!=t.ranges?co(e.cm,i.ranges,i.ranges.length-1):t}function zo(e,t,n){var i=e.history.done,r=X(i);r&&r.ranges?(i[i.length-1]=t,Wo(e,t,n)):Uo(e,t,n)}function Uo(e,t,n){Wo(e,t,n),Oo(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function Wo(e,t,n){(Ce(e,"beforeSelectionChange")||e.cm&&Ce(e.cm,"beforeSelectionChange"))&&(t=Ho(e,t,n));var i=n&&n.bias||(ct(t.primary().head,e.sel.primary().head)<0?-1:1);Go(e,Qo(e,t,i,!0)),n&&!1===n.scroll||!e.cm||"nocursor"==e.cm.getOption("readOnly")||ur(e.cm)}function Go(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,_e(e.cm)),Pn(e,"cursorActivity",e))}function Ko(e){Go(e,Qo(e,e.sel,null,!1))}function Qo(e,t,n,i){for(var r,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],l=Jo(e,a.anchor,s&&s.anchor,n,i),c=a.head==a.anchor?l:Jo(e,a.head,s&&s.head,n,i);(r||l!=a.anchor||c!=a.head)&&(r||(r=t.ranges.slice(0,o)),r[o]=new lo(l,c))}return r?co(e.cm,r,t.primIndex):t}function Yo(e,t,n,i,r){var o=et(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],l=s.marker,c="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,u="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(c?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(u?s.to>=t.ch:s.to>t.ch))){if(r&&(ke(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var d=l.find(i<0?1:-1),p=void 0;if((i<0?u:c)&&(d=Xo(e,d,-i,d&&d.line==t.line?o:null)),d&&d.line==t.line&&(p=ct(d,n))&&(i<0?p<0:p>0))return Yo(e,d,t,i,r)}var h=l.find(i<0?-1:1);return(i<0?c:u)&&(h=Xo(e,h,i,h.line==t.line?o:null)),h?Yo(e,h,t,i,r):null}}return t}function Jo(e,t,n,i,r){var o=i||1,a=Yo(e,t,n,o,r)||!r&&Yo(e,t,n,o,!0)||Yo(e,t,n,-o,r)||!r&&Yo(e,t,n,-o,!0);return a||(e.cantEdit=!0,lt(e.first,0))}function Xo(e,t,n,i){return n<0&&0==t.ch?t.line>e.first?mt(e,lt(t.line-1)):null:n>0&&t.ch==(i||et(e,t.line)).text.length?t.line<e.first+e.size-1?lt(t.line+1,0):null:new lt(t.line,t.ch+n)}function Zo(e){e.setSelection(lt(e.firstLine(),0),lt(e.lastLine()),W)}function ea(e,t,n){var i={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return i.canceled=!0}};return n&&(i.update=function(t,n,r,o){t&&(i.from=mt(e,t)),n&&(i.to=mt(e,n)),r&&(i.text=r),void 0!==o&&(i.origin=o)}),ke(e,"beforeChange",e,i),e.cm&&ke(e.cm,"beforeChange",e.cm,i),i.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:i.from,to:i.to,text:i.text,origin:i.origin}}function ta(e,t,n){if(e.cm){if(!e.cm.curOp)return Mr(e.cm,ta)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(Ce(e,"beforeChange")||e.cm&&Ce(e.cm,"beforeChange"))||(t=ea(e,t,!0))){var i=Pt&&!n&&zt(e,t.from,t.to);if(i)for(var r=i.length-1;r>=0;--r)na(e,{from:i[r].from,to:i[r].to,text:r?[""]:t.text,origin:t.origin});else na(e,t)}}function na(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ct(t.from,t.to)){var n=fo(e,t);To(e,t,n,e.cm?e.cm.curOp.id:NaN),oa(e,t,n,qt(e,t));var i=[];wo(e,function(e,n){n||-1!=H(i,e.history)||(ua(e.history,t),i.push(e.history)),oa(e,t,null,qt(e,t))})}}function ia(e,t,n){var i=e.cm&&e.cm.state.suppressEdits;if(!i||n){for(var r,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,c=0;c<s.length&&(r=s[c],n?!r.ranges||r.equals(e.sel):r.ranges);c++);if(c!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(r=s.pop()).ranges){if(i)return void s.push(r);break}if(Po(r,l),n&&!r.equals(e.sel))return void Uo(e,r,{clearRedo:!1});a=r}var u=[];Po(a,l),l.push({changes:u,generation:o.generation}),o.generation=r.generation||++o.maxGeneration;for(var d=Ce(e,"beforeChange")||e.cm&&Ce(e.cm,"beforeChange"),p=function(n){var i=r.changes[n];if(i.origin=t,d&&!ea(e,i,!1))return s.length=0,{};u.push(Eo(e,i));var o=n?fo(e,i):X(s);oa(e,i,o,Lo(e,i)),!n&&e.cm&&e.cm.scrollIntoView({from:i.from,to:po(i)});var a=[];wo(e,function(e,t){t||-1!=H(a,e.history)||(ua(e.history,i),a.push(e.history)),oa(e,i,null,Lo(e,i))})},h=r.changes.length-1;h>=0;--h){var f=p(h);if(f)return f.v}}}}function ra(e,t){if(0!=t&&(e.first+=t,e.sel=new so(Z(e.sel.ranges,function(e){return new lo(lt(e.anchor.line+t,e.anchor.ch),lt(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){Ri(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,i=n.viewFrom;i<n.viewTo;i++)Vi(e.cm,i,"gutter")}}function oa(e,t,n,i){if(e.cm&&!e.cm.curOp)return Mr(e.cm,oa)(e,t,n,i);if(t.to.line<e.first)ra(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var r=t.text.length-1-(e.first-t.from.line);ra(e,r),t={from:lt(e.first,0),to:lt(t.to.line+r,t.to.ch),text:[X(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:lt(o,et(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=tt(e,t.from,t.to),n||(n=fo(e,t)),e.cm?aa(e.cm,t,i):ko(e,t,i),Wo(e,n,W),e.cantEdit&&Jo(e,lt(e.firstLine(),0))&&(e.cantEdit=!1)}}function aa(e,t,n){var i=e.doc,r=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=rt(tn(et(i,o.line))),i.iter(l,a.line+1,function(e){if(e==r.maxLine)return s=!0,!0})),i.sel.contains(t.from,t.to)>-1&&_e(e),ko(i,t,n,Li(e)),e.options.lineWrapping||(i.iter(l,o.line+t.text.length,function(e){var t=un(e);t>r.maxLineLength&&(r.maxLine=e,r.maxLineLength=t,r.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0)),Ot(i,o.line),jr(e,400);var c=t.text.length-(a.line-o.line)-1;t.full?Ri(e):o.line!=a.line||1!=t.text.length||bo(e.doc,t)?Ri(e,o.line,a.line+1,c):Vi(e,o.line,"text");var u=Ce(e,"changes"),d=Ce(e,"change");if(d||u){var p={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&Pn(e,"change",e,p),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(p)}e.display.selForContextMenu=null}function sa(e,t,n,i,r){var o;i||(i=n),ct(i,n)<0&&(n=(o=[i,n])[0],i=o[1]),"string"==typeof t&&(t=e.splitLines(t)),ta(e,{from:n,to:i,text:t,origin:r})}function la(e,t,n,i){n<e.line?e.line+=i:t<e.line&&(e.line=t,e.ch=0)}function ca(e,t,n,i){for(var r=0;r<e.length;++r){var o=e[r],a=!0;if(o.ranges){o.copied||((o=e[r]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)la(o.ranges[s].anchor,t,n,i),la(o.ranges[s].head,t,n,i)}else{for(var l=0;l<o.changes.length;++l){var c=o.changes[l];if(n<c.from.line)c.from=lt(c.from.line+i,c.from.ch),c.to=lt(c.to.line+i,c.to.ch);else if(t<=c.to.line){a=!1;break}}a||(e.splice(0,r+1),r=0)}}}function ua(e,t){var n=t.from.line,i=t.to.line,r=t.text.length-(i-n)-1;ca(e.done,n,i,r),ca(e.undone,n,i,r)}function da(e,t,n,i){var r=t,o=t;return"number"==typeof t?o=et(e,ft(e,t)):r=rt(t),null==r?null:(i(o,r)&&e.cm&&Vi(e.cm,r,n),o)}function pa(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function ha(e){this.children=e;for(var t=0,n=0,i=0;i<e.length;++i){var r=e[i];t+=r.chunkSize(),n+=r.height,r.parent=this}this.size=t,this.height=n,this.parent=null}lo.prototype.from=function(){return ht(this.anchor,this.head)},lo.prototype.to=function(){return pt(this.anchor,this.head)},lo.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},pa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,i=e+t;n<i;++n){var r=this.lines[n];this.height-=r.height,fn(r),Pn(r,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var i=0;i<t.length;++i)t[i].parent=this},iterN:function(e,t,n){for(var i=e+t;e<i;++e)if(n(this.lines[e]))return!0}},ha.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var i=this.children[n],r=i.chunkSize();if(e<r){var o=Math.min(t,r-e),a=i.height;if(i.removeInner(e,o),this.height-=a-i.height,r==o&&(this.children.splice(n--,1),i.parent=null),0==(t-=o))break;e=0}else e-=r}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof pa))){var s=[];this.collapse(s),this.children=[new pa(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var i=0;i<this.children.length;++i){var r=this.children[i],o=r.chunkSize();if(e<=o){if(r.insertInner(e,t,n),r.lines&&r.lines.length>50){for(var a=r.lines.length%25+25,s=a;s<r.lines.length;){var l=new pa(r.lines.slice(s,s+=25));r.height-=l.height,this.children.splice(++i,0,l),l.parent=this}r.lines=r.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new ha(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=H(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var i=new ha(e.children);i.parent=e,e.children=[i,t],e=i}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var i=0;i<this.children.length;++i){var r=this.children[i],o=r.chunkSize();if(e<o){var a=Math.min(t,o-e);if(r.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var fa=function(e,t,n){if(n)for(var i in n)n.hasOwnProperty(i)&&(this[i]=n[i]);this.doc=e,this.node=t};function ma(e,t,n){cn(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&cr(e,n)}function ga(e,t,n,i){var r=new fa(e,n,i),o=e.cm;return o&&r.noHScroll&&(o.display.alignWidgets=!0),da(e,t,"widget",function(t){var n=t.widgets||(t.widgets=[]);if(null==r.insertAt?n.push(r):n.splice(Math.min(n.length,Math.max(0,r.insertAt)),0,r),r.line=t,o&&!sn(e,t)){var i=cn(t)<e.scrollTop;it(t,t.height+Wn(r)),i&&cr(o,r.height),o.curOp.forceUpdate=!0}return!0}),o&&Pn(o,"lineWidgetAdded",o,r,"number"==typeof t?t:rt(t)),r}fa.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,i=rt(n);if(null!=i&&t){for(var r=0;r<t.length;++r)t[r]==this&&t.splice(r--,1);t.length||(n.widgets=null);var o=Wn(this);it(n,Math.max(0,n.height-o)),e&&($r(e,function(){ma(e,n,-o),Vi(e,i,"widget")}),Pn(e,"lineWidgetCleared",e,this,i))}},fa.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,i=this.line;this.height=null;var r=Wn(this)-t;r&&(sn(this.doc,i)||it(i,i.height+r),n&&$r(n,function(){n.curOp.forceUpdate=!0,ma(n,i,r),Pn(n,"lineWidgetChanged",n,e,rt(i))}))},xe(fa);var va=0,ya=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++va};function ba(e,t,n,i,r){if(i&&i.shared)return wa(e,t,n,i,r);if(e.cm&&!e.cm.curOp)return Mr(e.cm,ba)(e,t,n,i,r);var o=new ya(e,r),a=ct(t,n);if(i&&R(i,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=O("span",[o.replacedWith],"CodeMirror-widget"),i.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),i.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(en(e,t.line,t,n,o)||t.line!=n.line&&en(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Mt()}o.addToHistory&&To(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,c=e.cm;if(e.iter(l,n.line+1,function(i){c&&o.collapsed&&!c.options.lineWrapping&&tn(i)==c.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&it(i,0),Bt(i,new Lt(o,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l}),o.collapsed&&e.iter(t.line,n.line+1,function(t){sn(e,t)&&it(t,0)}),o.clearOnEnter&&ve(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&($t(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++va,o.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),o.collapsed)Ri(c,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var u=t.line;u<=n.line;u++)Vi(c,u,"text");o.atomic&&Ko(c.doc),Pn(c,"markerAdded",c,o)}return o}ya.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Er(e),Ce(this,"clear")){var n=this.find();n&&Pn(this,"clear",n.from,n.to)}for(var i=null,r=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=Nt(a.markedSpans,this);e&&!this.collapsed?Vi(e,rt(a),"text"):e&&(null!=s.to&&(r=rt(a)),null!=s.from&&(i=rt(a))),a.markedSpans=jt(a.markedSpans,s),null==s.from&&this.collapsed&&!sn(this.doc,a)&&e&&it(a,Pi(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var c=tn(this.lines[l]),u=un(c);u>e.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=i&&e&&this.collapsed&&Ri(e,i,r+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Ko(e.doc)),e&&Pn(e,"markerCleared",e,this,i,r),t&&Ar(e),this.parent&&this.parent.clear()}},ya.prototype.find=function(e,t){var n,i;null==e&&"bookmark"==this.type&&(e=1);for(var r=0;r<this.lines.length;++r){var o=this.lines[r],a=Nt(o.markedSpans,this);if(null!=a.from&&(n=lt(t?o:rt(o),a.from),-1==e))return n;if(null!=a.to&&(i=lt(t?o:rt(o),a.to),1==e))return i}return n&&{from:n,to:i}},ya.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,i=this.doc.cm;t&&i&&$r(i,function(){var r=t.line,o=rt(t.line),a=ri(i,o);if(a&&(hi(a),i.curOp.selectionChanged=i.curOp.forceUpdate=!0),i.curOp.updateMaxLine=!0,!sn(n.doc,r)&&null!=n.height){var s=n.height;n.height=null;var l=Wn(n)-s;l&&it(r,r.height+l)}Pn(i,"markerChanged",i,e)})},ya.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=H(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},ya.prototype.detachLine=function(e){if(this.lines.splice(H(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},xe(ya);var ka=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function wa(e,t,n,i,r){(i=R(i)).shared=!1;var o=[ba(e,t,n,i,r)],a=o[0],s=i.widgetNode;return wo(e,function(e){s&&(i.widgetNode=s.cloneNode(!0)),o.push(ba(e,mt(e,t),mt(e,n),i,r));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;a=X(o)}),new ka(o,a)}function _a(e){return e.findMarks(lt(e.first,0),e.clipPos(lt(e.lastLine())),function(e){return e.parent})}function Ca(e,t){for(var n=0;n<t.length;n++){var i=t[n],r=i.find(),o=e.clipPos(r.from),a=e.clipPos(r.to);if(ct(o,a)){var s=ba(e,o,a,i.primary,i.primary.type);i.markers.push(s),s.parent=i}}}function xa(e){for(var t=function(t){var n=e[t],i=[n.primary.doc];wo(n.primary.doc,function(e){return i.push(e)});for(var r=0;r<n.markers.length;r++){var o=n.markers[r];-1==H(i,o.doc)&&(o.parent=null,n.markers.splice(r--,1))}},n=0;n<e.length;n++)t(n)}ka.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Pn(this,"clear")}},ka.prototype.find=function(e,t){return this.primary.find(e,t)},xe(ka);var Sa=0,Ea=function(e,t,n,i,r){if(!(this instanceof Ea))return new Ea(e,t,n,i,r);null==n&&(n=0),ha.call(this,[new pa([new pn("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=lt(n,0);this.sel=uo(o),this.history=new So(null),this.id=++Sa,this.modeOption=t,this.lineSep=i,this.direction="rtl"==r?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),ko(this,{from:o,to:o,text:e}),Uo(this,uo(o),W)};Ea.prototype=ne(ha.prototype,{constructor:Ea,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,i=0;i<t.length;++i)n+=t[i].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=nt(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:Nr(function(e){var t=lt(this.first,0),n=this.first+this.size-1;ta(this,{from:t,to:lt(n,et(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&dr(this.cm,0,0),Uo(this,uo(t),W)}),replaceRange:function(e,t,n,i){sa(this,e,t=mt(this,t),n=n?mt(this,n):t,i)},getRange:function(e,t,n){var i=tt(this,mt(this,e),mt(this,t));return!1===n?i:""===n?i.join(""):i.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(at(this,e))return et(this,e)},getLineNumber:function(e){return rt(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=et(this,e)),tn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return mt(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Nr(function(e,t,n){qo(this,mt(this,"number"==typeof e?lt(e,t||0):e),null,n)}),setSelection:Nr(function(e,t,n){qo(this,mt(this,e),mt(this,t||e),n)}),extendSelection:Nr(function(e,t,n){Bo(this,mt(this,e),t&&mt(this,t),n)}),extendSelections:Nr(function(e,t){Ro(this,vt(this,e),t)}),extendSelectionsBy:Nr(function(e,t){Ro(this,vt(this,Z(this.sel.ranges,e)),t)}),setSelections:Nr(function(e,t,n){if(e.length){for(var i=[],r=0;r<e.length;r++)i[r]=new lo(mt(this,e[r].anchor),mt(this,e[r].head||e[r].anchor));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Uo(this,co(this.cm,i,t),n)}}),addSelection:Nr(function(e,t,n){var i=this.sel.ranges.slice(0);i.push(new lo(mt(this,e),mt(this,t||e))),Uo(this,co(this.cm,i,i.length-1),n)}),getSelection:function(e){for(var t,n=this.sel.ranges,i=0;i<n.length;i++){var r=tt(this,n[i].from(),n[i].to());t=t?t.concat(r):r}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,i=0;i<n.length;i++){var r=tt(this,n[i].from(),n[i].to());!1!==e&&(r=r.join(e||this.lineSeparator())),t[i]=r}return t},replaceSelection:function(e,t,n){for(var i=[],r=0;r<this.sel.ranges.length;r++)i[r]=e;this.replaceSelections(i,t,n||"+input")},replaceSelections:Nr(function(e,t,n){for(var i=[],r=this.sel,o=0;o<r.ranges.length;o++){var a=r.ranges[o];i[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var s=t&&"end"!=t&&go(this,i,t),l=i.length-1;l>=0;l--)ta(this,i[l]);s?zo(this,s):this.cm&&ur(this.cm)}),undo:Nr(function(){ia(this,"undo")}),redo:Nr(function(){ia(this,"redo")}),undoSelection:Nr(function(){ia(this,"undo",!0)}),redoSelection:Nr(function(){ia(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,i=0;i<e.done.length;i++)e.done[i].ranges||++t;for(var r=0;r<e.undone.length;r++)e.undone[r].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new So(this.history),wo(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:No(this.history.done),undone:No(this.history.undone)}},setHistory:function(e){var t=this.history=new So(this.history);t.done=No(e.done.slice(0),null,!0),t.undone=No(e.undone.slice(0),null,!0)},setGutterMarker:Nr(function(e,t,n){return da(this,e,"gutter",function(e){var i=e.gutterMarkers||(e.gutterMarkers={});return i[t]=n,!n&&ae(i)&&(e.gutterMarkers=null),!0})}),clearGutter:Nr(function(e){var t=this;this.iter(function(n){n.gutterMarkers&&n.gutterMarkers[e]&&da(t,n,"gutter",function(){return n.gutterMarkers[e]=null,ae(n.gutterMarkers)&&(n.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if("number"==typeof e){if(!at(this,e))return null;if(t=e,!(e=et(this,e)))return null}else if(null==(t=rt(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Nr(function(e,t,n){return da(this,e,"gutter"==t?"gutter":"class",function(e){var i="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[i]){if(S(n).test(e[i]))return!1;e[i]+=" "+n}else e[i]=n;return!0})}),removeLineClass:Nr(function(e,t,n){return da(this,e,"gutter"==t?"gutter":"class",function(e){var i="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",r=e[i];if(!r)return!1;if(null==n)e[i]=null;else{var o=r.match(S(n));if(!o)return!1;var a=o.index+o[0].length;e[i]=r.slice(0,o.index)+(o.index&&a!=r.length?" ":"")+r.slice(a)||null}return!0})}),addLineWidget:Nr(function(e,t,n){return ga(this,e,t,n)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return ba(this,mt(this,e),mt(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return ba(this,e=mt(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=et(this,(e=mt(this,e)).line).markedSpans;if(n)for(var i=0;i<n.length;++i){var r=n[i];(null==r.from||r.from<=e.ch)&&(null==r.to||r.to>=e.ch)&&t.push(r.marker.parent||r.marker)}return t},findMarks:function(e,t,n){e=mt(this,e),t=mt(this,t);var i=[],r=e.line;return this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];null!=l.to&&r==e.line&&e.ch>=l.to||null==l.from&&r!=e.line||null!=l.from&&r==t.line&&l.from>=t.ch||n&&!n(l.marker)||i.push(l.marker.parent||l.marker)}++r}),i},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var i=0;i<n.length;++i)null!=n[i].from&&e.push(n[i].marker)}),e},posFromIndex:function(e){var t,n=this.first,i=this.lineSeparator().length;return this.iter(function(r){var o=r.text.length+i;if(o>e)return t=e,!0;e-=o,++n}),mt(this,lt(n,t))},indexFromPos:function(e){var t=(e=mt(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,function(e){t+=e.text.length+n}),t},copy:function(e){var t=new Ea(nt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var i=new Ea(nt(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(i.history=this.history),(this.linked||(this.linked=[])).push({doc:i,sharedHist:e.sharedHist}),i.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Ca(i,_a(this)),i},unlinkDoc:function(e){if(e instanceof Rs&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),xa(_a(this));break}if(e.history==this.history){var n=[e.id];wo(e,function(e){return n.push(e.id)},!0),e.history=new So(null),e.history.done=No(this.history.done,n),e.history.undone=No(this.history.undone,n)}},iterLinkedDocs:function(e){wo(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Ne(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Nr(function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(e){return e.order=null}),this.cm&&xo(this.cm))})}),Ea.prototype.eachLine=Ea.prototype.iter;var Aa=0;function Da(e){var t=this;if(Oa(t),!we(t,e)&&!Gn(t.display,e)){Se(e),a&&(Aa=+new Date);var n=ji(t,e,!0),i=e.dataTransfer.files;if(n&&!t.isReadOnly())if(i&&i.length&&window.FileReader&&window.File)for(var r=i.length,o=Array(r),s=0,l=function(){++s==r&&Mr(t,function(){var e={from:n=mt(t.doc,n),to:n,text:t.doc.splitLines(o.filter(function(e){return null!=e}).join(t.doc.lineSeparator())),origin:"paste"};ta(t.doc,e),zo(t.doc,uo(mt(t.doc,n),mt(t.doc,po(e))))})()},c=function(e,n){if(t.options.allowDropFileTypes&&-1==H(t.options.allowDropFileTypes,e.type))l();else{var i=new FileReader;i.onerror=function(){return l()},i.onload=function(){var e=i.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(o[n]=e),l()},i.readAsText(e)}},u=0;u<i.length;u++)c(i[u],u);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var d=e.dataTransfer.getData("Text");if(d){var p;if(t.state.draggingText&&!t.state.draggingText.copy&&(p=t.listSelections()),Wo(t.doc,uo(n,n)),p)for(var h=0;h<p.length;++h)sa(t.doc,"",p[h].anchor,p[h].head,"drag");t.replaceSelection(d,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Ta(e,t){if(a&&(!e.state.draggingText||+new Date-Aa<100))De(t);else if(!we(e,t)&&!Gn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!h)){var n=I("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",p&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),p&&n.parentNode.removeChild(n)}}function Ia(e,t){var n=ji(e,t);if(n){var i=document.createDocumentFragment();Ki(e,n,i),e.display.dragCursor||(e.display.dragCursor=I("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),T(e.display.dragCursor,i)}}function Oa(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Pa(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],i=0;i<t.length;i++){var r=t[i].CodeMirror;r&&n.push(r)}n.length&&n[0].operation(function(){for(var t=0;t<n.length;t++)e(n[t])})}}var Fa=!1;function $a(){Fa||(Ma(),Fa=!0)}function Ma(){var e;ve(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,Pa(La)},100))}),ve(window,"blur",function(){return Pa(tr)})}function La(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Na={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},ja=0;ja<10;ja++)Na[ja+48]=Na[ja+96]=String(ja);for(var Ba=65;Ba<=90;Ba++)Na[Ba]=String.fromCharCode(Ba);for(var Ra=1;Ra<=12;Ra++)Na[Ra+111]=Na[Ra+63235]="F"+Ra;var Va={};function qa(e){var t,n,i,r,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))r=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);i=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),r&&(e="Cmd-"+e),i&&(e="Shift-"+e),e}function Ha(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==i){delete e[n];continue}for(var r=Z(n.split(" "),qa),o=0;o<r.length;o++){var a=void 0,s=void 0;o==r.length-1?(s=r.join(" "),a=i):(s=r.slice(0,o+1).join(" "),a="...");var l=t[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var c in t)e[c]=t[c];return e}function za(e,t,n,i){var r=(t=Ka(t)).call?t.call(e,i):t[e];if(!1===r)return"nothing";if("..."===r)return"multi";if(null!=r&&n(r))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return za(e,t.fallthrough,n,i);for(var o=0;o<t.fallthrough.length;o++){var a=za(e,t.fallthrough[o],n,i);if(a)return a}}}function Ua(e){var t="string"==typeof e?e:Na[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Wa(e,t,n){var i=e;return t.altKey&&"Alt"!=i&&(e="Alt-"+e),(C?t.metaKey:t.ctrlKey)&&"Ctrl"!=i&&(e="Ctrl-"+e),(C?t.ctrlKey:t.metaKey)&&"Mod"!=i&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=i&&(e="Shift-"+e),e}function Ga(e,t){if(p&&34==e.keyCode&&e.char)return!1;var n=Na[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Wa(n,e,t))}function Ka(e){return"string"==typeof e?Va[e]:e}function Qa(e,t){for(var n=e.doc.sel.ranges,i=[],r=0;r<n.length;r++){for(var o=t(n[r]);i.length&&ct(o.from,X(i).to)<=0;){var a=i.pop();if(ct(a.from,o.from)<0){o.from=a.from;break}}i.push(o)}$r(e,function(){for(var t=i.length-1;t>=0;t--)sa(e.doc,"",i[t].from,i[t].to,"+delete");ur(e)})}function Ya(e,t,n){var i=ce(e.text,t+n,n);return i<0||i>e.text.length?null:i}function Ja(e,t,n){var i=Ya(e,t.ch,n);return null==i?null:new lt(t.line,i,n<0?"after":"before")}function Xa(e,t,n,i,r){if(e){"rtl"==t.doc.direction&&(r=-r);var o=me(n,t.doc.direction);if(o){var a,s=r<0?X(o):o[0],l=r<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var c=oi(t,n);a=r<0?n.text.length-1:0;var u=ai(t,c,a).top;a=ue(function(e){return ai(t,c,e).top==u},r<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Ya(n,a,1))}else a=r<0?s.to:s.from;return new lt(i,a,l)}}return new lt(i,r<0?n.text.length:0,r<0?"before":"after")}function Za(e,t,n,i){var r=me(t,e.doc.direction);if(!r)return Ja(t,n,i);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=he(r,n.ch,n.sticky),a=r[o];if("ltr"==e.doc.direction&&a.level%2==0&&(i>0?a.to>n.ch:a.from<n.ch))return Ja(t,n,i);var s,l=function(e,n){return Ya(t,e instanceof lt?e.ch:e,n)},c=function(n){return e.options.lineWrapping?(s=s||oi(e,t),Ai(e,t,s,n)):{begin:0,end:t.text.length}},u=c("before"==n.sticky?l(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var d=1==a.level==i<0,p=l(n,d?1:-1);if(null!=p&&(d?p<=a.to&&p<=u.end:p>=a.from&&p>=u.begin)){var h=d?"before":"after";return new lt(n.line,p,h)}}var f=function(e,t,i){for(var o=function(e,t){return t?new lt(n.line,l(e,1),"before"):new lt(n.line,e,"after")};e>=0&&e<r.length;e+=t){var a=r[e],s=t>0==(1!=a.level),c=s?i.begin:l(i.end,-1);if(a.from<=c&&c<a.to)return o(c,s);if(c=s?a.from:l(a.to,-1),i.begin<=c&&c<i.end)return o(c,s)}},m=f(o+i,i,u);if(m)return m;var g=i>0?u.end:l(u.begin,-1);return null==g||i>0&&g==t.text.length||!(m=f(i>0?0:r.length-1,i,c(g)))?null:m}Va.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Va.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Va.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Va.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Va.default=b?Va.macDefault:Va.pcDefault;var es={selectAll:Zo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),W)},killLine:function(e){return Qa(e,function(t){if(t.empty()){var n=et(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:lt(t.head.line+1,0)}:{from:t.head,to:lt(t.head.line,n)}}return{from:t.from(),to:t.to()}})},deleteLine:function(e){return Qa(e,function(t){return{from:lt(t.from().line,0),to:mt(e.doc,lt(t.to().line+1,0))}})},delLineLeft:function(e){return Qa(e,function(e){return{from:lt(e.from().line,0),to:e.from()}})},delWrappedLineLeft:function(e){return Qa(e,function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}})},delWrappedLineRight:function(e){return Qa(e,function(t){var n=e.charCoords(t.head,"div").top+5,i=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:i}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(lt(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(lt(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return ts(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return is(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return ns(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")},K)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")},K)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5,i=e.coordsChar({left:0,top:n},"div");return i.ch<e.getLine(i.line).search(/\S/)?is(e,t.head):i},K)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),i=e.options.tabSize,r=0;r<n.length;r++){var o=n[r].from(),a=V(e.getLine(o.line),o.ch,i);t.push(J(i-a%i))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return $r(e,function(){for(var t=e.listSelections(),n=[],i=0;i<t.length;i++)if(t[i].empty()){var r=t[i].head,o=et(e.doc,r.line).text;if(o)if(r.ch==o.length&&(r=new lt(r.line,r.ch-1)),r.ch>0)r=new lt(r.line,r.ch+1),e.replaceRange(o.charAt(r.ch-1)+o.charAt(r.ch-2),lt(r.line,r.ch-2),r,"+transpose");else if(r.line>e.doc.first){var a=et(e.doc,r.line-1).text;a&&(r=new lt(r.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),lt(r.line-1,a.length-1),r,"+transpose"))}n.push(new lo(r,r))}e.setSelections(n)})},newlineAndIndent:function(e){return $r(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var i=0;i<t.length;i++)e.indentLine(t[i].from().line,null,!0);ur(e)})},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function ts(e,t){var n=et(e.doc,t),i=tn(n);return i!=n&&(t=rt(i)),Xa(!0,e,i,t,1)}function ns(e,t){var n=et(e.doc,t),i=nn(n);return i!=n&&(t=rt(i)),Xa(!0,e,n,t,-1)}function is(e,t){var n=ts(e,t.line),i=et(e.doc,n.line),r=me(i,e.doc.direction);if(!r||0==r[0].level){var o=Math.max(n.ch,i.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return lt(n.line,a?0:o,n.sticky)}return n}function rs(e,t,n){if("string"==typeof t&&!(t=es[t]))return!1;e.display.input.ensurePolled();var i=e.display.shift,r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),r=t(e)!=U}finally{e.display.shift=i,e.state.suppressEdits=!1}return r}function os(e,t,n){for(var i=0;i<e.state.keyMaps.length;i++){var r=za(t,e.state.keyMaps[i],n,e);if(r)return r}return e.options.extraKeys&&za(t,e.options.extraKeys,n,e)||za(t,e.options.keyMap,n,e)}var as=new q;function ss(e,t,n,i){var r=e.state.keySeq;if(r){if(Ua(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:as.set(50,function(){e.state.keySeq==r&&(e.state.keySeq=null,e.display.input.reset())}),ls(e,r+" "+t,n,i))return!0}return ls(e,t,n,i)}function ls(e,t,n,i){var r=os(e,t,i);return"multi"==r&&(e.state.keySeq=t),"handled"==r&&Pn(e,"keyHandled",e,t,n),"handled"!=r&&"multi"!=r||(Se(n),Ji(e)),!!r}function cs(e,t){var n=Ga(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?ss(e,"Shift-"+n,t,function(t){return rs(e,t,!0)})||ss(e,n,t,function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return rs(e,t)}):ss(e,n,t,function(t){return rs(e,t)}))}function us(e,t,n){return ss(e,"'"+n+"'",t,function(t){return rs(e,t,!0)})}var ds=null;function ps(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=F(N(t)),we(t,e)))){a&&s<11&&27==e.keyCode&&(e.returnValue=!1);var i=e.keyCode;t.display.shift=16==i||e.shiftKey;var r=cs(t,e);p&&(ds=r?i:null,r||88!=i||Be||!(b?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),n&&!b&&!r&&46==i&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=i||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||hs(t)}}function hs(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(A(t,"CodeMirror-crosshair"),be(document,"keyup",n),be(document,"mouseover",n))}$(t,"CodeMirror-crosshair"),ve(document,"keyup",n),ve(document,"mouseover",n)}function fs(e){16==e.keyCode&&(this.doc.sel.shift=!1),we(this,e)}function ms(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||Gn(t.display,e)||we(t,e)||e.ctrlKey&&!e.altKey||b&&e.metaKey)){var n=e.keyCode,i=e.charCode;if(p&&n==ds)return ds=null,void Se(e);if(!p||e.which&&!(e.which<10)||!cs(t,e)){var r=String.fromCharCode(null==i?n:i);"\b"!=r&&(us(t,e,r)||t.display.input.onKeyPress(e))}}}var gs,vs,ys=400,bs=function(e,t,n){this.time=e,this.pos=t,this.button=n};function ks(e,t){var n=+new Date;return vs&&vs.compare(n,e,t)?(gs=vs=null,"triple"):gs&&gs.compare(n,e,t)?(vs=new bs(n,e,t),gs=null,"double"):(gs=new bs(n,e,t),vs=null,"single")}function ws(e){var t=this,n=t.display;if(!(we(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,Gn(n,e))l||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));else if(!Is(t,e)){var i=ji(t,e),r=Ie(e),o=i?ks(i,r):"single";j(t).focus(),1==r&&t.state.selectingText&&t.state.selectingText(e),i&&_s(t,r,i,o,e)||(1==r?i?xs(t,i,o,e):Te(e)==n.scroller&&Se(e):2==r?(i&&Bo(t.doc,i),setTimeout(function(){return n.input.focus()},20)):3==r&&(x?t.display.input.onContextMenu(e):Zi(t)))}}function _s(e,t,n,i,r){var o="Click";return"double"==i?o="Double"+o:"triple"==i&&(o="Triple"+o),ss(e,Wa(o=(1==t?"Left":2==t?"Middle":"Right")+o,r),r,function(t){if("string"==typeof t&&(t=es[t]),!t)return!1;var i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),i=t(e,n)!=U}finally{e.state.suppressEdits=!1}return i})}function Cs(e,t,n){var i=e.getOption("configureMouse"),r=i?i(e,t,n):{};if(null==r.unit){var o=k?n.shiftKey&&n.metaKey:n.altKey;r.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==r.extend||e.doc.extend)&&(r.extend=e.doc.extend||n.shiftKey),null==r.addNew&&(r.addNew=b?n.metaKey:n.ctrlKey),null==r.moveOnDrag&&(r.moveOnDrag=!(b?n.altKey:n.ctrlKey)),r}function xs(e,t,n,i){a?setTimeout(B(Xi,e),0):e.curOp.focus=F(N(e));var r,o=Cs(e,n,i),s=e.doc.sel;e.options.dragDrop&&Fe&&!e.isReadOnly()&&"single"==n&&(r=s.contains(t))>-1&&(ct((r=s.ranges[r]).from(),t)<0||t.xRel>0)&&(ct(r.to(),t)>0||t.xRel<0)?Ss(e,i,t,o):As(e,i,t,o)}function Ss(e,t,n,i){var r=e.display,o=!1,c=Mr(e,function(t){l&&(r.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Zi(e)),be(r.wrapper.ownerDocument,"mouseup",c),be(r.wrapper.ownerDocument,"mousemove",u),be(r.scroller,"dragstart",d),be(r.scroller,"drop",c),o||(Se(t),i.addNew||Bo(e.doc,n,null,null,i.extend),l&&!h||a&&9==s?setTimeout(function(){r.wrapper.ownerDocument.body.focus({preventScroll:!0}),r.input.focus()},20):r.input.focus())}),u=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},d=function(){return o=!0};l&&(r.scroller.draggable=!0),e.state.draggingText=c,c.copy=!i.moveOnDrag,ve(r.wrapper.ownerDocument,"mouseup",c),ve(r.wrapper.ownerDocument,"mousemove",u),ve(r.scroller,"dragstart",d),ve(r.scroller,"drop",c),e.state.delayingBlurEvent=!0,setTimeout(function(){return r.input.focus()},20),r.scroller.dragDrop&&r.scroller.dragDrop()}function Es(e,t,n){if("char"==n)return new lo(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new lo(lt(t.line,0),mt(e.doc,lt(t.line+1,0)));var i=n(e,t);return new lo(i.from,i.to)}function As(e,t,n,i){a&&Zi(e);var r=e.display,o=e.doc;Se(t);var s,l,c=o.sel,u=c.ranges;if(i.addNew&&!i.extend?(l=o.sel.contains(n),s=l>-1?u[l]:new lo(n,n)):(s=o.sel.primary(),l=o.sel.primIndex),"rectangle"==i.unit)i.addNew||(s=new lo(n,n)),n=ji(e,t,!0,!0),l=-1;else{var d=Es(e,n,i.unit);s=i.extend?jo(s,d.anchor,d.head,i.extend):d}i.addNew?-1==l?(l=u.length,Uo(o,co(e,u.concat([s]),l),{scroll:!1,origin:"*mouse"})):u.length>1&&u[l].empty()&&"char"==i.unit&&!i.extend?(Uo(o,co(e,u.slice(0,l).concat(u.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),c=o.sel):Vo(o,l,s,G):(l=0,Uo(o,new so([s],0),G),c=o.sel);var p=n;function h(t){if(0!=ct(p,t))if(p=t,"rectangle"==i.unit){for(var r=[],a=e.options.tabSize,u=V(et(o,n.line).text,n.ch,a),d=V(et(o,t.line).text,t.ch,a),h=Math.min(u,d),f=Math.max(u,d),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var v=et(o,m).text,y=Q(v,h,a);h==f?r.push(new lo(lt(m,y),lt(m,y))):v.length>y&&r.push(new lo(lt(m,y),lt(m,Q(v,f,a))))}r.length||r.push(new lo(n,n)),Uo(o,co(e,c.ranges.slice(0,l).concat(r),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,k=s,w=Es(e,t,i.unit),_=k.anchor;ct(w.anchor,_)>0?(b=w.head,_=ht(k.from(),w.anchor)):(b=w.anchor,_=pt(k.to(),w.head));var C=c.ranges.slice(0);C[l]=Ds(e,new lo(mt(o,_),b)),Uo(o,co(e,C,l),G)}}var f=r.wrapper.getBoundingClientRect(),m=0;function g(t){var n=++m,a=ji(e,t,!0,"rectangle"==i.unit);if(a)if(0!=ct(a,p)){e.curOp.focus=F(N(e)),h(a);var s=rr(r,o);(a.line>=s.to||a.line<s.from)&&setTimeout(Mr(e,function(){m==n&&g(t)}),150)}else{var l=t.clientY<f.top?-20:t.clientY>f.bottom?20:0;l&&setTimeout(Mr(e,function(){m==n&&(r.scroller.scrollTop+=l,g(t))}),50)}}function v(t){e.state.selectingText=!1,m=1/0,t&&(Se(t),r.input.focus()),be(r.wrapper.ownerDocument,"mousemove",y),be(r.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var y=Mr(e,function(e){0!==e.buttons&&Ie(e)?g(e):v(e)}),b=Mr(e,v);e.state.selectingText=b,ve(r.wrapper.ownerDocument,"mousemove",y),ve(r.wrapper.ownerDocument,"mouseup",b)}function Ds(e,t){var n=t.anchor,i=t.head,r=et(e.doc,n.line);if(0==ct(n,i)&&n.sticky==i.sticky)return t;var o=me(r);if(!o)return t;var a=he(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,c=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==c||c==o.length)return t;if(i.line!=n.line)l=(i.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=he(o,i.ch,i.sticky),d=u-a||(i.ch-n.ch)*(1==s.level?-1:1);l=u==c-1||u==c?d<0:d>0}var p=o[c+(l?-1:0)],h=l==(1==p.level),f=h?p.from:p.to,m=h?"after":"before";return n.ch==f&&n.sticky==m?t:new lo(new lt(n.line,f,m),i)}function Ts(e,t,n,i){var r,o;if(t.touches)r=t.touches[0].clientX,o=t.touches[0].clientY;else try{r=t.clientX,o=t.clientY}catch(e){return!1}if(r>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;i&&Se(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!Ce(e,n))return Ae(t);o-=s.top-a.viewOffset;for(var l=0;l<e.display.gutterSpecs.length;++l){var c=a.gutters.childNodes[l];if(c&&c.getBoundingClientRect().right>=r)return ke(e,n,e,ot(e.doc,o),e.display.gutterSpecs[l].className,t),Ae(t)}}function Is(e,t){return Ts(e,t,"gutterClick",!0)}function Os(e,t){Gn(e.display,t)||Ps(e,t)||we(e,t,"contextmenu")||x||e.display.input.onContextMenu(t)}function Ps(e,t){return!!Ce(e,"gutterContextMenu")&&Ts(e,t,"gutterContextMenu",!1)}function Fs(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),mi(e)}bs.prototype.compare=function(e,t,n){return this.time+ys>e&&0==ct(t,this.pos)&&n==this.button};var $s={toString:function(){return"CodeMirror.Init"}},Ms={},Ls={};function Ns(e){var t=e.optionHandlers;function n(n,i,r,o){e.defaults[n]=i,r&&(t[n]=o?function(e,t,n){n!=$s&&r(e,t,n)}:r)}e.defineOption=n,e.Init=$s,n("value","",function(e,t){return e.setValue(t)},!0),n("mode",null,function(e,t){e.doc.modeOption=t,vo(e)},!0),n("indentUnit",2,vo,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(e){yo(e),mi(e),Ri(e)},!0),n("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],i=e.doc.first;e.doc.iter(function(e){for(var r=0;;){var o=e.text.indexOf(t,r);if(-1==o)break;r=o+t.length,n.push(lt(i,o))}i++});for(var r=n.length-1;r>=0;r--)sa(e.doc,t,n[r],lt(n[r].line,n[r].ch+t.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=$s&&e.refresh()}),n("specialCharPlaceholder",bn,function(e){return e.refresh()},!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),n("autocorrect",!1,function(e,t){return e.getInputField().autocorrect=t},!0),n("autocapitalize",!1,function(e,t){return e.getInputField().autocapitalize=t},!0),n("rtlMoveVisually",!w),n("wholeLineUpdateBefore",!0),n("theme","default",function(e){Fs(e),eo(e)},!0),n("keyMap","default",function(e,t,n){var i=Ka(t),r=n!=$s&&Ka(n);r&&r.detach&&r.detach(e,i),i.attach&&i.attach(e,r||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Bs,!0),n("gutters",[],function(e,t){e.display.gutterSpecs=Xr(t,e.options.lineNumbers),eo(e)},!0),n("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?Mi(e.display)+"px":"0",e.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(e){return wr(e)},!0),n("scrollbarStyle","native",function(e){xr(e),wr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),n("lineNumbers",!1,function(e,t){e.display.gutterSpecs=Xr(e.options.gutters,t),eo(e)},!0),n("firstLineNumber",1,eo,!0),n("lineNumberFormatter",function(e){return e},eo,!0),n("showCursorWhenSelecting",!1,Wi,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(e,t){"nocursor"==t&&(tr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),n("screenReaderLabel",null,function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)}),n("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),n("dragDrop",!0,js),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Wi,!0),n("singleCursorHeightPerLine",!0,Wi,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,yo,!0),n("addModeClass",!1,yo,!0),n("pollInterval",100),n("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),n("historyEventDelay",1250),n("viewportMargin",10,function(e){return e.refresh()},!0),n("maxHighlightLength",1e4,yo,!0),n("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),n("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),n("autofocus",null),n("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0),n("phrases",null)}function js(e,t,n){if(!t!=!(n&&n!=$s)){var i=e.display.dragFunctions,r=t?ve:be;r(e.display.scroller,"dragstart",i.start),r(e.display.scroller,"dragenter",i.enter),r(e.display.scroller,"dragover",i.over),r(e.display.scroller,"dragleave",i.leave),r(e.display.scroller,"drop",i.drop)}}function Bs(e){e.options.lineWrapping?($(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(A(e.display.wrapper,"CodeMirror-wrap"),dn(e)),Ni(e),Ri(e),mi(e),setTimeout(function(){return wr(e)},100)}function Rs(e,t){var n=this;if(!(this instanceof Rs))return new Rs(e,t);this.options=t=t?R(t):{},R(Ms,t,!1);var i=t.value;"string"==typeof i?i=new Ea(i,t.mode,null,t.lineSeparator,t.direction):t.mode&&(i.modeOption=t.mode),this.doc=i;var r=new Rs.inputStyles[t.inputStyle](this),o=this.display=new to(e,i,r,t);for(var c in o.wrapper.CodeMirror=this,Fs(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),xr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new q,keySeq:null,specialChars:null},t.autofocus&&!y&&o.input.focus(),a&&s<11&&setTimeout(function(){return n.display.input.reset(!0)},20),Vs(this),$a(),Er(this),this.curOp.forceUpdate=!0,_o(this,i),t.autofocus&&!y||this.hasFocus()?setTimeout(function(){n.hasFocus()&&!n.state.focused&&er(n)},20):tr(this),Ls)Ls.hasOwnProperty(c)&&Ls[c](this,t[c],$s);Jr(this),t.finishInit&&t.finishInit(this);for(var u=0;u<qs.length;++u)qs[u](this);Ar(this),l&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function Vs(e){var t=e.display;ve(t.scroller,"mousedown",Mr(e,ws)),ve(t.scroller,"dblclick",a&&s<11?Mr(e,function(t){if(!we(e,t)){var n=ji(e,t);if(n&&!Is(e,t)&&!Gn(e.display,t)){Se(t);var i=e.findWordAt(n);Bo(e.doc,i.anchor,i.head)}}}):function(t){return we(e,t)||Se(t)}),ve(t.scroller,"contextmenu",function(t){return Os(e,t)}),ve(t.input.getField(),"contextmenu",function(n){t.scroller.contains(n.target)||Os(e,n)});var n,i={end:0};function r(){t.activeTouch&&(n=setTimeout(function(){return t.activeTouch=null},1e3),(i=t.activeTouch).end=+new Date)}function o(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function l(e,t){if(null==t.left)return!0;var n=t.left-e.left,i=t.top-e.top;return n*n+i*i>400}ve(t.scroller,"touchstart",function(r){if(!we(e,r)&&!o(r)&&!Is(e,r)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-i.end<=300?i:null},1==r.touches.length&&(t.activeTouch.left=r.touches[0].pageX,t.activeTouch.top=r.touches[0].pageY)}}),ve(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),ve(t.scroller,"touchend",function(n){var i=t.activeTouch;if(i&&!Gn(t,n)&&null!=i.left&&!i.moved&&new Date-i.start<300){var o,a=e.coordsChar(t.activeTouch,"page");o=!i.prev||l(i,i.prev)?new lo(a,a):!i.prev.prev||l(i,i.prev.prev)?e.findWordAt(a):new lo(lt(a.line,0),mt(e.doc,lt(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),Se(n)}r()}),ve(t.scroller,"touchcancel",r),ve(t.scroller,"scroll",function(){t.scroller.clientHeight&&(mr(e,t.scroller.scrollTop),vr(e,t.scroller.scrollLeft,!0),ke(e,"scroll",e))}),ve(t.scroller,"mousewheel",function(t){return ao(e,t)}),ve(t.scroller,"DOMMouseScroll",function(t){return ao(e,t)}),ve(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(t){we(e,t)||De(t)},over:function(t){we(e,t)||(Ia(e,t),De(t))},start:function(t){return Ta(e,t)},drop:Mr(e,Da),leave:function(t){we(e,t)||Oa(e)}};var c=t.input.getField();ve(c,"keyup",function(t){return fs.call(e,t)}),ve(c,"keydown",Mr(e,ps)),ve(c,"keypress",Mr(e,ms)),ve(c,"focus",function(t){return er(e,t)}),ve(c,"blur",function(t){return tr(e,t)})}Rs.defaults=Ms,Rs.optionHandlers=Ls;var qs=[];function Hs(e,t,n,i){var r,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?r=_t(e,t).state:n="prev");var a=e.options.tabSize,s=et(o,t),l=V(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c,u=s.text.match(/^\s*/)[0];if(i||/\S/.test(s.text)){if("smart"==n&&((c=o.mode.indent(r,s.text.slice(u.length),s.text))==U||c>150)){if(!i)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>o.first?V(et(o,t-1).text,null,a):0:"add"==n?c=l+e.options.indentUnit:"subtract"==n?c=l-e.options.indentUnit:"number"==typeof n&&(c=l+n),c=Math.max(0,c);var d="",p=0;if(e.options.indentWithTabs)for(var h=Math.floor(c/a);h;--h)p+=a,d+="\t";if(p<c&&(d+=J(c-p)),d!=u)return sa(o,d,lt(t,0),lt(t,u.length),"+input"),s.stateAfter=null,!0;for(var f=0;f<o.sel.ranges.length;f++){var m=o.sel.ranges[f];if(m.head.line==t&&m.head.ch<u.length){var g=lt(t,u.length);Vo(o,f,new lo(g,g));break}}}Rs.defineInitHook=function(e){return qs.push(e)};var zs=null;function Us(e){zs=e}function Ws(e,t,n,i,r){var o=e.doc;e.display.shift=!1,i||(i=o.sel);var a=+new Date-200,s="paste"==r||e.state.pasteIncoming>a,l=Ne(t),c=null;if(s&&i.ranges.length>1)if(zs&&zs.text.join("\n")==t){if(i.ranges.length%zs.text.length==0){c=[];for(var u=0;u<zs.text.length;u++)c.push(o.splitLines(zs.text[u]))}}else l.length==i.ranges.length&&e.options.pasteLinesPerSelection&&(c=Z(l,function(e){return[e]}));for(var d=e.curOp.updateInput,p=i.ranges.length-1;p>=0;p--){var h=i.ranges[p],f=h.from(),m=h.to();h.empty()&&(n&&n>0?f=lt(f.line,f.ch-n):e.state.overwrite&&!s?m=lt(m.line,Math.min(et(o,m.line).text.length,m.ch+X(l).length)):s&&zs&&zs.lineWise&&zs.text.join("\n")==l.join("\n")&&(f=m=lt(f.line,0)));var g={from:f,to:m,text:c?c[p%c.length]:l,origin:r||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};ta(e.doc,g),Pn(e,"inputRead",e,g)}t&&!s&&Ks(e,t),ur(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Gs(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||$r(t,function(){return Ws(t,n,0,null,"paste")}),!0}function Ks(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,i=n.ranges.length-1;i>=0;i--){var r=n.ranges[i];if(!(r.head.ch>100||i&&n.ranges[i-1].head.line==r.head.line)){var o=e.getModeAt(r.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){a=Hs(e,r.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(et(e.doc,r.head.line).text.slice(0,r.head.ch))&&(a=Hs(e,r.head.line,"smart"));a&&Pn(e,"electricInput",e,r.head.line)}}}function Qs(e){for(var t=[],n=[],i=0;i<e.doc.sel.ranges.length;i++){var r=e.doc.sel.ranges[i].head.line,o={anchor:lt(r,0),head:lt(r+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function Ys(e,t,n,i){e.setAttribute("autocorrect",n?"":"off"),e.setAttribute("autocapitalize",i?"":"off"),e.setAttribute("spellcheck",!!t)}function Js(){var e=I("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=I("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?e.style.width="1000px":e.setAttribute("wrap","off"),g&&(e.style.border="1px solid black"),Ys(e),t}function Xs(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){j(this).focus(),this.display.input.focus()},setOption:function(e,n){var i=this.options,r=i[e];i[e]==n&&"mode"!=e||(i[e]=n,t.hasOwnProperty(e)&&Mr(this,t[e])(this,n,r),ke(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Ka(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:Lr(function(t,n){var i=t.token?t:e.getMode(this.options,t);if(i.startState)throw new Error("Overlays may not be stateful.");ee(this.state.overlays,{mode:i,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},function(e){return e.priority}),this.state.modeGen++,Ri(this)}),removeOverlay:Lr(function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var i=t[n].modeSpec;if(i==e||"string"==typeof e&&i.name==e)return t.splice(n,1),this.state.modeGen++,void Ri(this)}}),indentLine:Lr(function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),at(this.doc,e)&&Hs(this,e,t,n)}),indentSelection:Lr(function(e){for(var t=this.doc.sel.ranges,n=-1,i=0;i<t.length;i++){var r=t[i];if(r.empty())r.head.line>n&&(Hs(this,r.head.line,e,!0),n=r.head.line,i==this.doc.sel.primIndex&&ur(this));else{var o=r.from(),a=r.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l<n;++l)Hs(this,l,e);var c=this.doc.sel.ranges;0==o.ch&&t.length==c.length&&c[i].from().ch>0&&Vo(this.doc,i,new lo(o,c[i].to()),W)}}}),getTokenAt:function(e,t){return At(this,e,t)},getLineTokens:function(e,t){return At(this,lt(e),t,!0)},getTokenTypeAt:function(e){e=mt(this.doc,e);var t,n=wt(this,et(this.doc,e.line)),i=0,r=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=i+r>>1;if((a?n[2*a-1]:0)>=o)r=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}i=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var i=[];if(!n.hasOwnProperty(t))return i;var r=n[t],o=this.getModeAt(e);if("string"==typeof o[t])r[o[t]]&&i.push(r[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var s=r[o[t][a]];s&&i.push(s)}else o.helperType&&r[o.helperType]?i.push(r[o.helperType]):r[o.name]&&i.push(r[o.name]);for(var l=0;l<r._global.length;l++){var c=r._global[l];c.pred(o,this)&&-1==H(i,c.val)&&i.push(c.val)}return i},getStateAfter:function(e,t){var n=this.doc;return _t(this,(e=ft(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return _i(this,null==e?n.head:"object"==typeof e?mt(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return wi(this,mt(this.doc,e),t||"page")},coordsChar:function(e,t){return Si(this,(e=ki(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=ki(this,{top:e,left:0},t||"page").top,ot(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var i,r=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,r=!0),i=et(this.doc,e)}else i=e;return bi(this,i,{top:0,left:0},t||"page",n||r).top+(r?this.doc.height-cn(i):0)},defaultTextHeight:function(){return Pi(this.display)},defaultCharWidth:function(){return Fi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,i,r){var o=this.display,a=(e=_i(this,mt(this.doc,e))).bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==i)a=e.top;else if("above"==i||"near"==i){var l=Math.max(o.wrapper.clientHeight,this.doc.height),c=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==i||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(a=e.bottom),s+t.offsetWidth>c&&(s=c-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==r?(s=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==r?s=0:"middle"==r&&(s=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&sr(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:Lr(ps),triggerOnKeyPress:Lr(ms),triggerOnKeyUp:fs,triggerOnMouseDown:Lr(ws),execCommand:function(e){if(es.hasOwnProperty(e))return es[e].call(null,this)},triggerElectric:Lr(function(e){Ks(this,e)}),findPosH:function(e,t,n,i){var r=1;t<0&&(r=-1,t=-t);for(var o=mt(this.doc,e),a=0;a<t&&!(o=Zs(this.doc,o,r,n,i)).hitSide;++a);return o},moveH:Lr(function(e,t){var n=this;this.extendSelectionsBy(function(i){return n.display.shift||n.doc.extend||i.empty()?Zs(n.doc,i.head,e,t,n.options.rtlMoveVisually):e<0?i.from():i.to()},K)}),deleteH:Lr(function(e,t){var n=this.doc.sel,i=this.doc;n.somethingSelected()?i.replaceSelection("",null,"+delete"):Qa(this,function(n){var r=Zs(i,n.head,e,t,!1);return e<0?{from:r,to:n.head}:{from:n.head,to:r}})}),findPosV:function(e,t,n,i){var r=1,o=i;t<0&&(r=-1,t=-t);for(var a=mt(this.doc,e),s=0;s<t;++s){var l=_i(this,a,"div");if(null==o?o=l.left:l.left=o,(a=el(this,l,r,n)).hitSide)break}return a},moveV:Lr(function(e,t){var n=this,i=this.doc,r=[],o=!this.display.shift&&!i.extend&&i.sel.somethingSelected();if(i.extendSelectionsBy(function(a){if(o)return e<0?a.from():a.to();var s=_i(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),r.push(s.left);var l=el(n,s,e,t);return"page"==t&&a==i.sel.primary()&&cr(n,wi(n,l,"div").top-s.top),l},K),r.length)for(var a=0;a<i.sel.ranges.length;a++)i.sel.ranges[a].goalColumn=r[a]}),findWordAt:function(e){var t=et(this.doc,e.line).text,n=e.ch,i=e.ch;if(t){var r=this.getHelper(e,"wordChars");"before"!=e.sticky&&i!=t.length||!n?++i:--n;for(var o=t.charAt(n),a=oe(o,r)?function(e){return oe(e,r)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!oe(e)};n>0&&a(t.charAt(n-1));)--n;for(;i<t.length&&a(t.charAt(i));)++i}return new lo(lt(e.line,n),lt(e.line,i))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?$(this.display.cursorDiv,"CodeMirror-overwrite"):A(this.display.cursorDiv,"CodeMirror-overwrite"),ke(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==F(N(this))},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Lr(function(e,t){dr(this,e,t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Jn(this)-this.display.barHeight,width:e.scrollWidth-Jn(this)-this.display.barWidth,clientHeight:Zn(this),clientWidth:Xn(this)}},scrollIntoView:Lr(function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:lt(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?pr(this,e):fr(this,e.from,e.to,e.margin)}),setSize:Lr(function(e,t){var n=this,i=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=i(e)),null!=t&&(this.display.wrapper.style.height=i(t)),this.options.lineWrapping&&fi(this);var r=this.display.viewFrom;this.doc.iter(r,this.display.viewTo,function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){Vi(n,r,"widget");break}++r}),this.curOp.forceUpdate=!0,ke(this,"refresh",this)}),operation:function(e){return $r(this,e)},startOperation:function(){return Er(this)},endOperation:function(){return Ar(this)},refresh:Lr(function(){var e=this.display.cachedTextHeight;Ri(this),this.curOp.forceUpdate=!0,mi(this),dr(this,this.doc.scrollLeft,this.doc.scrollTop),Kr(this.display),(null==e||Math.abs(e-Pi(this.display))>.5||this.options.lineWrapping)&&Ni(this),ke(this,"refresh",this)}),swapDoc:Lr(function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),_o(this,e),mi(this),this.display.input.reset(),dr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Pn(this,"swapDoc",this,t),t}),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},xe(e),e.registerHelper=function(t,i,r){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][i]=r},e.registerGlobalHelper=function(t,i,r,o){e.registerHelper(t,i,o),n[t]._global.push({pred:r,val:o})}}function Zs(e,t,n,i,r){var o=t,a=n,s=et(e,t.line),l=r&&"rtl"==e.direction?-n:n;function c(){var n=t.line+l;return!(n<e.first||n>=e.first+e.size)&&(t=new lt(n,t.ch,t.sticky),s=et(e,n))}function u(o){var a;if("codepoint"==i){var u=s.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(u))a=null;else{var d=n>0?u>=55296&&u<56320:u>=56320&&u<57343;a=new lt(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(d?2:1))),-n)}}else a=r?Za(e.cm,s,t,n):Ja(s,t,n);if(null==a){if(o||!c())return!1;t=Xa(r,e.cm,s,t.line,l)}else t=a;return!0}if("char"==i||"codepoint"==i)u();else if("column"==i)u(!0);else if("word"==i||"group"==i)for(var d=null,p="group"==i,h=e.cm&&e.cm.getHelper(t,"wordChars"),f=!0;!(n<0)||u(!f);f=!1){var m=s.text.charAt(t.ch)||"\n",g=oe(m,h)?"w":p&&"\n"==m?"n":!p||/\s/.test(m)?null:"p";if(!p||f||g||(g="s"),d&&d!=g){n<0&&(n=1,u(),t.sticky="after");break}if(g&&(d=g),n>0&&!u(!f))break}var v=Jo(e,t,o,a,!0);return ut(o,v)&&(v.hitSide=!0),v}function el(e,t,n,i){var r,o,a=e.doc,s=t.left;if("page"==i){var l=Math.min(e.display.wrapper.clientHeight,j(e).innerHeight||a(e).documentElement.clientHeight),c=Math.max(l-.5*Pi(e.display),3);r=(n>0?t.bottom:t.top)+n*c}else"line"==i&&(r=n>0?t.bottom+3:t.top-3);for(;(o=Si(e,s,r)).outside;){if(n<0?r<=0:r>=a.height){o.hitSide=!0;break}r+=5*n}return o}var tl=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new q,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function nl(e,t){var n=ri(e,t.line);if(!n||n.hidden)return null;var i=et(e.doc,t.line),r=ti(n,i,t.line),o=me(i,e.doc.direction),a="left";o&&(a=he(o,t.ch)%2?"right":"left");var s=ci(r.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function il(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function rl(e,t){return t&&(e.bad=!0),e}function ol(e,t,n,i,r){var o="",a=!1,s=e.doc.lineSeparator(),l=!1;function c(e){return function(t){return t.id==e}}function u(){a&&(o+=s,l&&(o+=s),a=l=!1)}function d(e){e&&(u(),o+=e)}function p(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void d(n);var o,h=t.getAttribute("cm-marker");if(h){var f=e.findMarks(lt(i,0),lt(r+1,0),c(+h));return void(f.length&&(o=f[0].find(0))&&d(tt(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var m=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;m&&u();for(var g=0;g<t.childNodes.length;g++)p(t.childNodes[g]);/^(pre|p)$/i.test(t.nodeName)&&(l=!0),m&&(a=!0)}else 3==t.nodeType&&d(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;p(t),t!=n;)t=t.nextSibling,l=!1;return o}function al(e,t,n){var i;if(t==e.display.lineDiv){if(!(i=e.display.lineDiv.childNodes[n]))return rl(e.clipPos(lt(e.display.viewTo-1)),!0);t=null,n=0}else for(i=t;;i=i.parentNode){if(!i||i==e.display.lineDiv)return null;if(i.parentNode&&i.parentNode==e.display.lineDiv)break}for(var r=0;r<e.display.view.length;r++){var o=e.display.view[r];if(o.node==i)return sl(o,t,n)}}function sl(e,t,n){var i=e.text.firstChild,r=!1;if(!t||!P(i,t))return rl(lt(rt(e.line),0),!0);if(t==i&&(r=!0,t=i.childNodes[n],n=0,!t)){var o=e.rest?X(e.rest):e.line;return rl(lt(rt(o),o.text.length),r)}var a=3==t.nodeType?t:null,s=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));s.parentNode!=i;)s=s.parentNode;var l=e.measure,c=l.maps;function u(t,n,i){for(var r=-1;r<(c?c.length:0);r++)for(var o=r<0?l.map:c[r],a=0;a<o.length;a+=3){var s=o[a+2];if(s==t||s==n){var u=rt(r<0?e.line:e.rest[r]),d=o[a]+i;return(i<0||s!=t)&&(d=o[a+(i?1:0)]),lt(u,d)}}}var d=u(a,s,n);if(d)return rl(d,r);for(var p=s.nextSibling,h=a?a.nodeValue.length-n:0;p;p=p.nextSibling){if(d=u(p,p.firstChild,0))return rl(lt(d.line,d.ch-h),r);h+=p.textContent.length}for(var f=s.previousSibling,m=n;f;f=f.previousSibling){if(d=u(f,f.firstChild,-1))return rl(lt(d.line,d.ch+m),r);m+=f.textContent.length}}tl.prototype.init=function(e){var t=this,n=this,i=n.cm,r=n.div=e.lineDiv;function o(e){for(var t=e.target;t;t=t.parentNode){if(t==r)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function a(e){if(o(e)&&!we(i,e)){if(i.somethingSelected())Us({lineWise:!1,text:i.getSelections()}),"cut"==e.type&&i.replaceSelection("",null,"cut");else{if(!i.options.lineWiseCopyCut)return;var t=Qs(i);Us({lineWise:!0,text:t.text}),"cut"==e.type&&i.operation(function(){i.setSelections(t.ranges,0,W),i.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var a=zs.text.join("\n");if(e.clipboardData.setData("Text",a),e.clipboardData.getData("Text")==a)return void e.preventDefault()}var s=Js(),l=s.firstChild;i.display.lineSpace.insertBefore(s,i.display.lineSpace.firstChild),l.value=zs.text.join("\n");var c=F(r.ownerDocument);L(l),setTimeout(function(){i.display.lineSpace.removeChild(s),c.focus(),c==r&&n.showPrimarySelection()},50)}}r.contentEditable=!0,Ys(r,i.options.spellcheck,i.options.autocorrect,i.options.autocapitalize),ve(r,"paste",function(e){!o(e)||we(i,e)||Gs(e,i)||s<=11&&setTimeout(Mr(i,function(){return t.updateFromDOM()}),20)}),ve(r,"compositionstart",function(e){t.composing={data:e.data,done:!1}}),ve(r,"compositionupdate",function(e){t.composing||(t.composing={data:e.data,done:!1})}),ve(r,"compositionend",function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),ve(r,"touchstart",function(){return n.forceCompositionEnd()}),ve(r,"input",function(){t.composing||t.readFromDOMSoon()}),ve(r,"copy",a),ve(r,"cut",a)},tl.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},tl.prototype.prepareSelection=function(){var e=Gi(this.cm,!1);return e.focus=F(this.div.ownerDocument)==this.div,e},tl.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},tl.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},tl.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,i=t.doc.sel.primary(),r=i.from(),o=i.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var a=al(t,e.anchorNode,e.anchorOffset),s=al(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=ct(ht(a,s),r)||0!=ct(pt(a,s),o)){var l=t.display.view,c=r.line>=t.display.viewFrom&&nl(t,r)||{node:l[0].measure.map[2],offset:0},u=o.line<t.display.viewTo&&nl(t,o);if(!u){var d=l[l.length-1].measure,p=d.maps?d.maps[d.maps.length-1]:d.map;u={node:p[p.length-1],offset:p[p.length-2]-p[p.length-3]}}if(c&&u){var h,f=e.rangeCount&&e.getRangeAt(0);try{h=E(c.node,c.offset,u.offset,u.node)}catch(e){}h&&(!n&&t.state.focused?(e.collapse(c.node,c.offset),h.collapsed||(e.removeAllRanges(),e.addRange(h))):(e.removeAllRanges(),e.addRange(h)),f&&null==e.anchorNode?e.addRange(f):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},tl.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},tl.prototype.showMultipleSelections=function(e){T(this.cm.display.cursorDiv,e.cursors),T(this.cm.display.selectionDiv,e.selection)},tl.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},tl.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return P(this.div,t)},tl.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&F(this.div.ownerDocument)==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},tl.prototype.blur=function(){this.div.blur()},tl.prototype.getField=function(){return this.div},tl.prototype.supportsTouch=function(){return!0},tl.prototype.receivedFocus=function(){var e=this,t=this;function n(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,n))}this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):$r(this.cm,function(){return t.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,n)},tl.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},tl.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(v&&u&&this.cm.display.gutterSpecs.length&&il(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=al(t,e.anchorNode,e.anchorOffset),i=al(t,e.focusNode,e.focusOffset);n&&i&&$r(t,function(){Uo(t.doc,uo(n,i),W),(n.bad||i.bad)&&(t.curOp.selectionChanged=!0)})}}},tl.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,i=this.cm,r=i.display,o=i.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>i.firstLine()&&(a=lt(a.line-1,et(i.doc,a.line-1).length)),s.ch==et(i.doc,s.line).text.length&&s.line<i.lastLine()&&(s=lt(s.line+1,0)),a.line<r.viewFrom||s.line>r.viewTo-1)return!1;a.line==r.viewFrom||0==(e=Bi(i,a.line))?(t=rt(r.view[0].line),n=r.view[0].node):(t=rt(r.view[e].line),n=r.view[e-1].node.nextSibling);var l,c,u=Bi(i,s.line);if(u==r.view.length-1?(l=r.viewTo-1,c=r.lineDiv.lastChild):(l=rt(r.view[u+1].line)-1,c=r.view[u+1].node.previousSibling),!n)return!1;for(var d=i.doc.splitLines(ol(i,n,c,t,l)),p=tt(i.doc,lt(t,0),lt(l,et(i.doc,l).text.length));d.length>1&&p.length>1;)if(X(d)==X(p))d.pop(),p.pop(),l--;else{if(d[0]!=p[0])break;d.shift(),p.shift(),t++}for(var h=0,f=0,m=d[0],g=p[0],v=Math.min(m.length,g.length);h<v&&m.charCodeAt(h)==g.charCodeAt(h);)++h;for(var y=X(d),b=X(p),k=Math.min(y.length-(1==d.length?h:0),b.length-(1==p.length?h:0));f<k&&y.charCodeAt(y.length-f-1)==b.charCodeAt(b.length-f-1);)++f;if(1==d.length&&1==p.length&&t==a.line)for(;h&&h>a.ch&&y.charCodeAt(y.length-f-1)==b.charCodeAt(b.length-f-1);)h--,f++;d[d.length-1]=y.slice(0,y.length-f).replace(/^\u200b+/,""),d[0]=d[0].slice(h).replace(/\u200b+$/,"");var w=lt(t,h),_=lt(l,p.length?X(p).length-f:0);return d.length>1||d[0]||ct(w,_)?(sa(i.doc,d,w,_,"+input"),!0):void 0},tl.prototype.ensurePolled=function(){this.forceCompositionEnd()},tl.prototype.reset=function(){this.forceCompositionEnd()},tl.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},tl.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},tl.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||$r(this.cm,function(){return Ri(e.cm)})},tl.prototype.setUneditable=function(e){e.contentEditable="false"},tl.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Mr(this.cm,Ws)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},tl.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},tl.prototype.onContextMenu=function(){},tl.prototype.resetPosition=function(){},tl.prototype.needsContentAttribute=!0;var ll=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new q,this.hasSelection=!1,this.composing=null,this.resetting=!1};function cl(e,t){if((t=t?R(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=F(e.ownerDocument);t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function i(){e.value=s.getValue()}var r;if(e.form&&(ve(e.form,"submit",i),!t.leaveSubmitMethodAlone)){var o=e.form;r=o.submit;try{var a=o.submit=function(){i(),o.submit=r,o.submit(),o.submit=a}}catch(e){}}t.finishInit=function(n){n.save=i,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,i(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(be(e.form,"submit",i),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=r))}},e.style.display="none";var s=Rs(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return s}function ul(e){e.off=be,e.on=ve,e.wheelEventPixels=oo,e.Doc=Ea,e.splitLines=Ne,e.countColumn=V,e.findColumn=Q,e.isWordChar=re,e.Pass=U,e.signal=ke,e.Line=pn,e.changeEnd=po,e.scrollbarModel=Cr,e.Pos=lt,e.cmpPos=ct,e.modes=qe,e.mimeModes=He,e.resolveMode=We,e.getMode=Ge,e.modeExtensions=Ke,e.extendMode=Qe,e.copyState=Ye,e.startState=Xe,e.innerMode=Je,e.commands=es,e.keyMap=Va,e.keyName=Ga,e.isModifierKey=Ua,e.lookupKey=za,e.normalizeKeyMap=Ha,e.StringStream=Ze,e.SharedTextMarker=ka,e.TextMarker=ya,e.LineWidget=fa,e.e_preventDefault=Se,e.e_stopPropagation=Ee,e.e_stop=De,e.addClass=$,e.contains=P,e.rmClass=A,e.keyNames=Na}ll.prototype.init=function(e){var t=this,n=this,i=this.cm;this.createField(e);var r=this.textarea;function o(e){if(!we(i,e)){if(i.somethingSelected())Us({lineWise:!1,text:i.getSelections()});else{if(!i.options.lineWiseCopyCut)return;var t=Qs(i);Us({lineWise:!0,text:t.text}),"cut"==e.type?i.setSelections(t.ranges,null,W):(n.prevInput="",r.value=t.text.join("\n"),L(r))}"cut"==e.type&&(i.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(r.style.width="0px"),ve(r,"input",function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),ve(r,"paste",function(e){we(i,e)||Gs(e,i)||(i.state.pasteIncoming=+new Date,n.fastPoll())}),ve(r,"cut",o),ve(r,"copy",o),ve(e.scroller,"paste",function(t){if(!Gn(e,t)&&!we(i,t)){if(!r.dispatchEvent)return i.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,r.dispatchEvent(o)}}),ve(e.lineSpace,"selectstart",function(t){Gn(e,t)||Se(t)}),ve(r,"compositionstart",function(){var e=i.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:i.markText(e,i.getCursor("to"),{className:"CodeMirror-composing"})}}),ve(r,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},ll.prototype.createField=function(e){this.wrapper=Js(),this.textarea=this.wrapper.firstChild},ll.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},ll.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,i=Gi(e);if(e.options.moveInputWithCursor){var r=_i(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();i.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,r.top+a.top-o.top)),i.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,r.left+a.left-o.left))}return i},ll.prototype.showSelection=function(e){var t=this.cm.display;T(t.cursorDiv,e.cursors),T(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},ll.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&L(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null));this.resetting=!1}},ll.prototype.getField=function(){return this.textarea},ll.prototype.supportsTouch=function(){return!1},ll.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||F(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch(e){}},ll.prototype.blur=function(){this.textarea.blur()},ll.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ll.prototype.receivedFocus=function(){this.slowPoll()},ll.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},ll.prototype.fastPoll=function(){var e=!1,t=this;function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,t.polling.set(20,n)},ll.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,i=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||je(n)&&!i&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var r=n.value;if(r==i&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===r||b&&/[\uf700-\uf7ff]/.test(r))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=r.charCodeAt(0);if(8203!=o||i||(i=""),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,c=Math.min(i.length,r.length);l<c&&i.charCodeAt(l)==r.charCodeAt(l);)++l;return $r(t,function(){Ws(t,r.slice(l),i.length-l,null,e.composing?"*compose":null),r.length>1e3||r.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=r,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ll.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ll.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},ll.prototype.onContextMenu=function(e){var t=this,n=t.cm,i=n.display,r=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=ji(n,e),c=i.scroller.scrollTop;if(o&&!p){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&Mr(n,Uo)(n.doc,uo(o),W);var u,d=r.style.cssText,h=t.wrapper.style.cssText,f=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",r.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-f.top-5)+"px; left: "+(e.clientX-f.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(u=r.ownerDocument.defaultView.scrollY),i.input.focus(),l&&r.ownerDocument.defaultView.scrollTo(null,u),i.input.reset(),n.somethingSelected()||(r.value=t.prevInput=" "),t.contextMenuPending=v,i.selForContextMenu=n.doc.sel,clearTimeout(i.detectingSelectAll),a&&s>=9&&g(),x){De(e);var m=function(){be(window,"mouseup",m),setTimeout(v,20)};ve(window,"mouseup",m)}else setTimeout(v,50)}function g(){if(null!=r.selectionStart){var e=n.somethingSelected(),o=""+(e?r.value:"");r.value="⇚",r.value=o,t.prevInput=e?"":"",r.selectionStart=1,r.selectionEnd=o.length,i.selForContextMenu=n.doc.sel}}function v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=h,r.style.cssText=d,a&&s<9&&i.scrollbars.setScrollTop(i.scroller.scrollTop=c),null!=r.selectionStart)){(!a||a&&s<9)&&g();var e=0,o=function(){i.selForContextMenu==n.doc.sel&&0==r.selectionStart&&r.selectionEnd>0&&""==t.prevInput?Mr(n,Zo)(n):e++<10?i.detectingSelectAll=setTimeout(o,500):(i.selForContextMenu=null,i.input.reset())};i.detectingSelectAll=setTimeout(o,200)}}},ll.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},ll.prototype.setUneditable=function(){},ll.prototype.needsContentAttribute=!1,Ns(Rs),Xs(Rs);var dl="iter insert remove copy getEditor constructor".split(" ");for(var pl in Ea.prototype)Ea.prototype.hasOwnProperty(pl)&&H(dl,pl)<0&&(Rs.prototype[pl]=function(e){return function(){return e.apply(this.doc,arguments)}}(Ea.prototype[pl]));return xe(Ea),Rs.inputStyles={textarea:ll,contenteditable:tl},Rs.defineMode=function(e){Rs.defaults.mode||"null"==e||(Rs.defaults.mode=e),ze.apply(this,arguments)},Rs.defineMIME=Ue,Rs.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Rs.defineMIME("text/plain","null"),Rs.defineExtension=function(e,t){Rs.prototype[e]=t},Rs.defineDocExtension=function(e,t){Ea.prototype[e]=t},Rs.fromTextArea=cl,ul(Rs),Rs.version="5.65.9",Rs}()},15276:function(e){e.exports='<svg version="1.1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="bricks-svg"><g fill="currentColor"><path d="M4.5 5h-4a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-13a.5.5 0 0 0-.5-.5"/><path d="M23.5 5h-4a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-13a.5.5 0 0 0-.5-.5"/><path d="M17.5 1h-11a.5.5 0 0 0-.5.5v21a.5.5 0 0 0 .5.5h11a.5.5 0 0 0 .5-.5v-21a.5.5 0 0 0-.5-.5"/></g><path fill="none" d="M0 0h24v24H0Z"/></svg>'},15659:function(e,t,n){const i=n(8156),r={};for(const e of Object.keys(i))r[i[e]]=e;const o={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=o;for(const e of Object.keys(o)){if(!("channels"in o[e]))throw new Error("missing channels property: "+e);if(!("labels"in o[e]))throw new Error("missing channel labels property: "+e);if(o[e].labels.length!==o[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=o[e];delete o[e].channels,delete o[e].labels,Object.defineProperty(o[e],"channels",{value:t}),Object.defineProperty(o[e],"labels",{value:n})}function a(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}o.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,i=e[2]/255,r=Math.min(t,n,i),o=Math.max(t,n,i),a=o-r;let s,l;o===r?s=0:t===o?s=(n-i)/a:n===o?s=2+(i-t)/a:i===o&&(s=4+(t-n)/a),s=Math.min(60*s,360),s<0&&(s+=360);const c=(r+o)/2;return l=o===r?0:c<=.5?a/(o+r):a/(2-o-r),[s,100*l,100*c]},o.rgb.hsv=function(e){let t,n,i,r,o;const a=e[0]/255,s=e[1]/255,l=e[2]/255,c=Math.max(a,s,l),u=c-Math.min(a,s,l),d=function(e){return(c-e)/6/u+.5};return 0===u?(r=0,o=0):(o=u/c,t=d(a),n=d(s),i=d(l),a===c?r=i-n:s===c?r=1/3+t-i:l===c&&(r=2/3+n-t),r<0?r+=1:r>1&&(r-=1)),[360*r,100*o,100*c]},o.rgb.hwb=function(e){const t=e[0],n=e[1];let i=e[2];const r=o.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,i));return i=1-1/255*Math.max(t,Math.max(n,i)),[r,100*a,100*i]},o.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,i=e[2]/255,r=Math.min(1-t,1-n,1-i);return[100*((1-t-r)/(1-r)||0),100*((1-n-r)/(1-r)||0),100*((1-i-r)/(1-r)||0),100*r]},o.rgb.keyword=function(e){const t=r[e];if(t)return t;let n,o=1/0;for(const t of Object.keys(i)){const r=a(e,i[t]);r<o&&(o=r,n=t)}return n},o.keyword.rgb=function(e){return i[e]},o.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,i=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,i=i>.04045?((i+.055)/1.055)**2.4:i/12.92;return[100*(.4124*t+.3576*n+.1805*i),100*(.2126*t+.7152*n+.0722*i),100*(.0193*t+.1192*n+.9505*i)]},o.rgb.lab=function(e){const t=o.rgb.xyz(e);let n=t[0],i=t[1],r=t[2];n/=95.047,i/=100,r/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;return[116*i-16,500*(n-i),200*(i-r)]},o.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,i=e[2]/100;let r,o,a;if(0===n)return a=255*i,[a,a,a];r=i<.5?i*(1+n):i+n-i*n;const s=2*i-r,l=[0,0,0];for(let e=0;e<3;e++)o=t+1/3*-(e-1),o<0&&o++,o>1&&o--,a=6*o<1?s+6*(r-s)*o:2*o<1?r:3*o<2?s+(r-s)*(2/3-o)*6:s,l[e]=255*a;return l},o.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,i=e[2]/100,r=n;const o=Math.max(i,.01);i*=2,n*=i<=1?i:2-i,r*=o<=1?o:2-o;return[t,100*(0===i?2*r/(o+r):2*n/(i+n)),100*((i+n)/2)]},o.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let i=e[2]/100;const r=Math.floor(t)%6,o=t-Math.floor(t),a=255*i*(1-n),s=255*i*(1-n*o),l=255*i*(1-n*(1-o));switch(i*=255,r){case 0:return[i,l,a];case 1:return[s,i,a];case 2:return[a,i,l];case 3:return[a,s,i];case 4:return[l,a,i];case 5:return[i,a,s]}},o.hsv.hsl=function(e){const t=e[0],n=e[1]/100,i=e[2]/100,r=Math.max(i,.01);let o,a;a=(2-n)*i;const s=(2-n)*r;return o=n*r,o/=s<=1?s:2-s,o=o||0,a/=2,[t,100*o,100*a]},o.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,i=e[2]/100;const r=n+i;let o;r>1&&(n/=r,i/=r);const a=Math.floor(6*t),s=1-i;o=6*t-a,1&a&&(o=1-o);const l=n+o*(s-n);let c,u,d;switch(a){default:case 6:case 0:c=s,u=l,d=n;break;case 1:c=l,u=s,d=n;break;case 2:c=n,u=s,d=l;break;case 3:c=n,u=l,d=s;break;case 4:c=l,u=n,d=s;break;case 5:c=s,u=n,d=l}return[255*c,255*u,255*d]},o.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,i=e[2]/100,r=e[3]/100;return[255*(1-Math.min(1,t*(1-r)+r)),255*(1-Math.min(1,n*(1-r)+r)),255*(1-Math.min(1,i*(1-r)+r))]},o.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,i=e[2]/100;let r,o,a;return r=3.2406*t+-1.5372*n+-.4986*i,o=-.9689*t+1.8758*n+.0415*i,a=.0557*t+-.204*n+1.057*i,r=r>.0031308?1.055*r**(1/2.4)-.055:12.92*r,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,r=Math.min(Math.max(0,r),1),o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),[255*r,255*o,255*a]},o.xyz.lab=function(e){let t=e[0],n=e[1],i=e[2];t/=95.047,n/=100,i/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;return[116*n-16,500*(t-n),200*(n-i)]},o.lab.xyz=function(e){let t,n,i;n=(e[0]+16)/116,t=e[1]/500+n,i=n-e[2]/200;const r=n**3,o=t**3,a=i**3;return n=r>.008856?r:(n-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,i=a>.008856?a:(i-16/116)/7.787,t*=95.047,n*=100,i*=108.883,[t,n,i]},o.lab.lch=function(e){const t=e[0],n=e[1],i=e[2];let r;r=360*Math.atan2(i,n)/2/Math.PI,r<0&&(r+=360);return[t,Math.sqrt(n*n+i*i),r]},o.lch.lab=function(e){const t=e[0],n=e[1],i=e[2]/360*2*Math.PI;return[t,n*Math.cos(i),n*Math.sin(i)]},o.rgb.ansi16=function(e,t=null){const[n,i,r]=e;let a=null===t?o.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),0===a)return 30;let s=30+(Math.round(r/255)<<2|Math.round(i/255)<<1|Math.round(n/255));return 2===a&&(s+=60),s},o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])},o.rgb.ansi256=function(e){const t=e[0],n=e[1],i=e[2];if(t===n&&n===i)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)},o.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},o.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},o.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},o.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map(e=>e+e).join(""));const i=parseInt(n,16);return[i>>16&255,i>>8&255,255&i]},o.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,i=e[2]/255,r=Math.max(Math.max(t,n),i),o=Math.min(Math.min(t,n),i),a=r-o;let s,l;return s=a<1?o/(1-a):0,l=a<=0?0:r===t?(n-i)/a%6:r===n?2+(i-t)/a:4+(t-n)/a,l/=6,l%=1,[360*l,100*a,100*s]},o.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,i=n<.5?2*t*n:2*t*(1-n);let r=0;return i<1&&(r=(n-.5*i)/(1-i)),[e[0],100*i,100*r]},o.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,i=t*n;let r=0;return i<1&&(r=(n-i)/(1-i)),[e[0],100*i,100*r]},o.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,i=e[2]/100;if(0===n)return[255*i,255*i,255*i];const r=[0,0,0],o=t%1*6,a=o%1,s=1-a;let l=0;switch(Math.floor(o)){case 0:r[0]=1,r[1]=a,r[2]=0;break;case 1:r[0]=s,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=a;break;case 3:r[0]=0,r[1]=s,r[2]=1;break;case 4:r[0]=a,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=s}return l=(1-n)*i,[255*(n*r[0]+l),255*(n*r[1]+l),255*(n*r[2]+l)]},o.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let i=0;return n>0&&(i=t/n),[e[0],100*i,100*n]},o.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],100*i,100*n]},o.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},o.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,i=n-t;let r=0;return i<1&&(r=(n-i)/(1-i)),[e[0],100*i,100*r]},o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},o.gray.hsl=function(e){return[0,0,e[0]]},o.gray.hsv=o.gray.hsl,o.gray.hwb=function(e){return[0,100,e[0]]},o.gray.cmyk=function(e){return[0,0,0,e[0]]},o.gray.lab=function(e){return[e[0],0,0]},o.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},o.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},15767:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14" class="bricks-svg"><g id="phone-landscape--android-phone-mobile-device-smartphone-iphone-landscape"><path id="Vector" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M13.5 10.5v-7a1 1 0 0 0-1-1h-11a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1" stroke-width="1"/><path id="Vector_2" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M3 6.5v1" stroke-width="1"/></g></svg>'},15768:function(){},16239:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" class="bricks-svg"><path d="M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3" stroke-width="2"/></svg>'},16428:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="m23.25.748-9 9" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M9.75 20.998v-6.75H3" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M14.25 2.998v6.75H21" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m9.75 14.248-9 9" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},16753:function(e,t,n){!function(e){"use strict";var t=e.Pos;function n(e,t){return e.line-t.line||e.ch-t.ch}var i="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",r=new RegExp("<(/?)(["+i+"]["+i+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*)","g");function o(e,t,n,i){this.line=t,this.ch=n,this.cm=e,this.text=e.getLine(t),this.min=i?Math.max(i.from,e.firstLine()):e.firstLine(),this.max=i?Math.min(i.to-1,e.lastLine()):e.lastLine()}function a(e,n){var i=e.cm.getTokenTypeAt(t(e.line,n));return i&&/\btag\b/.test(i)}function s(e){if(!(e.line>=e.max))return e.ch=0,e.text=e.cm.getLine(++e.line),!0}function l(e){if(!(e.line<=e.min))return e.text=e.cm.getLine(--e.line),e.ch=e.text.length,!0}function c(e){for(;;){var t=e.text.indexOf(">",e.ch);if(-1==t){if(s(e))continue;return}if(a(e,t+1)){var n=e.text.lastIndexOf("/",t),i=n>-1&&!/\S/.test(e.text.slice(n+1,t));return e.ch=t+1,i?"selfClose":"regular"}e.ch=t+1}}function u(e){for(;;){var t=e.ch?e.text.lastIndexOf("<",e.ch-1):-1;if(-1==t){if(l(e))continue;return}if(a(e,t+1)){r.lastIndex=t,e.ch=t;var n=r.exec(e.text);if(n&&n.index==t)return n}else e.ch=t}}function d(e){for(;;){r.lastIndex=e.ch;var t=r.exec(e.text);if(!t){if(s(e))continue;return}if(a(e,t.index+1))return e.ch=t.index+t[0].length,t;e.ch=t.index+1}}function p(e){for(;;){var t=e.ch?e.text.lastIndexOf(">",e.ch-1):-1;if(-1==t){if(l(e))continue;return}if(a(e,t+1)){var n=e.text.lastIndexOf("/",t),i=n>-1&&!/\S/.test(e.text.slice(n+1,t));return e.ch=t+1,i?"selfClose":"regular"}e.ch=t}}function h(e,n){for(var i=[];;){var r,o=d(e),a=e.line,s=e.ch-(o?o[0].length:0);if(!o||!(r=c(e)))return;if("selfClose"!=r)if(o[1]){for(var l=i.length-1;l>=0;--l)if(i[l]==o[2]){i.length=l;break}if(l<0&&(!n||n==o[2]))return{tag:o[2],from:t(a,s),to:t(e.line,e.ch)}}else i.push(o[2])}}function f(e,n){for(var i=[];;){var r=p(e);if(!r)return;if("selfClose"!=r){var o=e.line,a=e.ch,s=u(e);if(!s)return;if(s[1])i.push(s[2]);else{for(var l=i.length-1;l>=0;--l)if(i[l]==s[2]){i.length=l;break}if(l<0&&(!n||n==s[2]))return{tag:s[2],from:t(e.line,e.ch),to:t(o,a)}}}else u(e)}}e.registerHelper("fold","xml",function(e,i){for(var r=new o(e,i.line,0);;){var a=d(r);if(!a||r.line!=i.line)return;var s=c(r);if(!s)return;if(!a[1]&&"selfClose"!=s){var l=t(r.line,r.ch),u=h(r,a[2]);return u&&n(u.from,l)>0?{from:l,to:u.from}:null}}}),e.findMatchingTag=function(e,i,r){var a=new o(e,i.line,i.ch,r);if(-1!=a.text.indexOf(">")||-1!=a.text.indexOf("<")){var s=c(a),l=s&&t(a.line,a.ch),d=s&&u(a);if(s&&d&&!(n(a,i)>0)){var p={from:t(a.line,a.ch),to:l,tag:d[2]};return"selfClose"==s?{open:p,close:null,at:"open"}:d[1]?{open:f(a,d[2]),close:p,at:"close"}:{open:p,close:h(a=new o(e,l.line,l.ch,r),d[2]),at:"open"}}}},e.findEnclosingTag=function(e,t,n,i){for(var r=new o(e,t.line,t.ch,n);;){var a=f(r,i);if(!a)break;var s=h(new o(e,t.line,t.ch,n),a.tag);if(s)return{open:a,close:s}}},e.scanForClosingTag=function(e,t,n,i){return h(new o(e,t.line,t.ch,i?{from:0,to:i}:null),n)}}(n(15237))},16758:function(e){e.exports='<svg version="1.1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="bricks-svg"><g fill="currentColor"><path d="M4.5 2h-4a.5.5 0 0 0-.5.5v19a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-19a.5.5 0 0 0-.5-.5"/><path d="M23.5 2h-4a.5.5 0 0 0-.5.5v19a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-19a.5.5 0 0 0-.5-.5"/><path d="M17.5 2h-11a.5.5 0 0 0-.5.5v19a.5.5 0 0 0 .5.5h11a.5.5 0 0 0 .5-.5v-19a.5.5 0 0 0-.5-.5"/></g><path fill="none" d="M0 0h24v24H0Z"/></svg>'},16792:function(e,t,n){!function(e){"use strict";e.defineMode("javascript",function(t,n){var i,r,o=t.indentUnit,a=n.statementIndent,s=n.jsonld,l=n.json||s,c=!1!==n.trackScope,u=n.typescript,d=n.wordCharacters||/[\w$\xa1-\uffff]/,p=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),i=e("keyword c"),r=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:r,break:r,continue:r,new:e("new"),delete:i,void:i,throw:i,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:i,export:e("export"),import:e("import"),extends:i,await:i}}(),h=/[+\-*&%=<>!?|~^@]/,f=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function m(e){for(var t,n=!1,i=!1;null!=(t=e.next());){if(!n){if("/"==t&&!i)return;"["==t?i=!0:i&&"]"==t&&(i=!1)}n=!n&&"\\"==t}}function g(e,t,n){return i=e,r=n,t}function v(e,t){var n=e.next();if('"'==n||"'"==n)return t.tokenize=y(n),t.tokenize(e,t);if("."==n&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return g("number","number");if("."==n&&e.match(".."))return g("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return g(n);if("="==n&&e.eat(">"))return g("=>","operator");if("0"==n&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return g("number","number");if(/\d/.test(n))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),g("number","number");if("/"==n)return e.eat("*")?(t.tokenize=b,b(e,t)):e.eat("/")?(e.skipToEnd(),g("comment","comment")):rt(e,t,1)?(m(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),g("regexp","string-2")):(e.eat("="),g("operator","operator",e.current()));if("`"==n)return t.tokenize=k,k(e,t);if("#"==n&&"!"==e.peek())return e.skipToEnd(),g("meta","meta");if("#"==n&&e.eatWhile(d))return g("variable","property");if("<"==n&&e.match("!--")||"-"==n&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),g("comment","comment");if(h.test(n))return">"==n&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=n&&"="!=n||e.eat("="):/[<>*+\-|&?]/.test(n)&&(e.eat(n),">"==n&&e.eat(n))),"?"==n&&e.eat(".")?g("."):g("operator","operator",e.current());if(d.test(n)){e.eatWhile(d);var i=e.current();if("."!=t.lastType){if(p.propertyIsEnumerable(i)){var r=p[i];return g(r.type,r.style,i)}if("async"==i&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return g("async","keyword",i)}return g("variable","variable",i)}}function y(e){return function(t,n){var i,r=!1;if(s&&"@"==t.peek()&&t.match(f))return n.tokenize=v,g("jsonld-keyword","meta");for(;null!=(i=t.next())&&(i!=e||r);)r=!r&&"\\"==i;return r||(n.tokenize=v),g("string","string")}}function b(e,t){for(var n,i=!1;n=e.next();){if("/"==n&&i){t.tokenize=v;break}i="*"==n}return g("comment","comment")}function k(e,t){for(var n,i=!1;null!=(n=e.next());){if(!i&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=v;break}i=!i&&"\\"==n}return g("quasi","string-2",e.current())}var w="([{}])";function _(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(u){var i=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));i&&(n=i.index)}for(var r=0,o=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),l=w.indexOf(s);if(l>=0&&l<3){if(!r){++a;break}if(0==--r){"("==s&&(o=!0);break}}else if(l>=3&&l<6)++r;else if(d.test(s))o=!0;else if(/["'\/`]/.test(s))for(;;--a){if(0==a)return;if(e.string.charAt(a-1)==s&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(o&&!r){++a;break}}o&&!r&&(t.fatArrowAt=a)}}var C={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function x(e,t,n,i,r,o){this.indented=e,this.column=t,this.type=n,this.prev=r,this.info=o,null!=i&&(this.align=i)}function S(e,t){if(!c)return!1;for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var i=e.context;i;i=i.prev)for(n=i.vars;n;n=n.next)if(n.name==t)return!0}function E(e,t,n,i,r){var o=e.cc;for(A.state=e,A.stream=r,A.marked=null,A.cc=o,A.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():l?U:H)(n,i)){for(;o.length&&o[o.length-1].lex;)o.pop()();return A.marked?A.marked:"variable"==n&&S(e,i)?"variable-2":t}}var A={state:null,column:null,marked:null,cc:null};function D(){for(var e=arguments.length-1;e>=0;e--)A.cc.push(arguments[e])}function T(){return D.apply(null,arguments),!0}function I(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function O(e){var t=A.state;if(A.marked="def",c){if(t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var i=P(e,t.context);if(null!=i)return void(t.context=i)}else if(!I(e,t.localVars))return void(t.localVars=new M(e,t.localVars));n.globalVars&&!I(e,t.globalVars)&&(t.globalVars=new M(e,t.globalVars))}}function P(e,t){if(t){if(t.block){var n=P(e,t.prev);return n?n==t.prev?t:new $(n,t.vars,!0):null}return I(e,t.vars)?t:new $(t.prev,new M(e,t.vars),!1)}return null}function F(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function $(e,t,n){this.prev=e,this.vars=t,this.block=n}function M(e,t){this.name=e,this.next=t}var L=new M("this",new M("arguments",null));function N(){A.state.context=new $(A.state.context,A.state.localVars,!1),A.state.localVars=L}function j(){A.state.context=new $(A.state.context,A.state.localVars,!0),A.state.localVars=null}function B(){A.state.localVars=A.state.context.vars,A.state.context=A.state.context.prev}function R(e,t){var n=function(){var n=A.state,i=n.indented;if("stat"==n.lexical.type)i=n.lexical.indented;else for(var r=n.lexical;r&&")"==r.type&&r.align;r=r.prev)i=r.indented;n.lexical=new x(i,A.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function V(){var e=A.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function q(e){function t(n){return n==e?T():";"==e||"}"==n||")"==n||"]"==n?D():T(t)}return t}function H(e,t){return"var"==e?T(R("vardef",t),De,q(";"),V):"keyword a"==e?T(R("form"),G,H,V):"keyword b"==e?T(R("form"),H,V):"keyword d"==e?A.stream.match(/^\s*$/,!1)?T():T(R("stat"),Q,q(";"),V):"debugger"==e?T(q(";")):"{"==e?T(R("}"),j,pe,V,B):";"==e?T():"if"==e?("else"==A.state.lexical.info&&A.state.cc[A.state.cc.length-1]==V&&A.state.cc.pop()(),T(R("form"),G,H,V,$e)):"function"==e?T(je):"for"==e?T(R("form"),j,Me,H,B,V):"class"==e||u&&"interface"==t?(A.marked="keyword",T(R("form","class"==e?e:t),He,V)):"variable"==e?u&&"declare"==t?(A.marked="keyword",T(H)):u&&("module"==t||"enum"==t||"type"==t)&&A.stream.match(/^\s*\w/,!1)?(A.marked="keyword","enum"==t?T(tt):"type"==t?T(Re,q("operator"),ve,q(";")):T(R("form"),Te,q("{"),R("}"),pe,V,V)):u&&"namespace"==t?(A.marked="keyword",T(R("form"),U,H,V)):u&&"abstract"==t?(A.marked="keyword",T(H)):T(R("stat"),oe):"switch"==e?T(R("form"),G,q("{"),R("}","switch"),j,pe,V,V,B):"case"==e?T(U,q(":")):"default"==e?T(q(":")):"catch"==e?T(R("form"),N,z,H,V,B):"export"==e?T(R("stat"),Ge,V):"import"==e?T(R("stat"),Qe,V):"async"==e?T(H):"@"==t?T(U,H):D(R("stat"),U,q(";"),V)}function z(e){if("("==e)return T(Ve,q(")"))}function U(e,t){return K(e,t,!1)}function W(e,t){return K(e,t,!0)}function G(e){return"("!=e?D():T(R(")"),Q,q(")"),V)}function K(e,t,n){if(A.state.fatArrowAt==A.stream.start){var i=n?te:ee;if("("==e)return T(N,R(")"),ue(Ve,")"),V,q("=>"),i,B);if("variable"==e)return D(N,Te,q("=>"),i,B)}var r=n?J:Y;return C.hasOwnProperty(e)?T(r):"function"==e?T(je,r):"class"==e||u&&"interface"==t?(A.marked="keyword",T(R("form"),qe,V)):"keyword c"==e||"async"==e?T(n?W:U):"("==e?T(R(")"),Q,q(")"),V,r):"operator"==e||"spread"==e?T(n?W:U):"["==e?T(R("]"),et,V,r):"{"==e?de(se,"}",null,r):"quasi"==e?D(X,r):"new"==e?T(ne(n)):T()}function Q(e){return e.match(/[;\}\)\],]/)?D():D(U)}function Y(e,t){return","==e?T(Q):J(e,t,!1)}function J(e,t,n){var i=0==n?Y:J,r=0==n?U:W;return"=>"==e?T(N,n?te:ee,B):"operator"==e?/\+\+|--/.test(t)||u&&"!"==t?T(i):u&&"<"==t&&A.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?T(R(">"),ue(ve,">"),V,i):"?"==t?T(U,q(":"),r):T(r):"quasi"==e?D(X,i):";"!=e?"("==e?de(W,")","call",i):"."==e?T(ae,i):"["==e?T(R("]"),Q,q("]"),V,i):u&&"as"==t?(A.marked="keyword",T(ve,i)):"regexp"==e?(A.state.lastType=A.marked="operator",A.stream.backUp(A.stream.pos-A.stream.start-1),T(r)):void 0:void 0}function X(e,t){return"quasi"!=e?D():"${"!=t.slice(t.length-2)?T(X):T(Q,Z)}function Z(e){if("}"==e)return A.marked="string-2",A.state.tokenize=k,T(X)}function ee(e){return _(A.stream,A.state),D("{"==e?H:U)}function te(e){return _(A.stream,A.state),D("{"==e?H:W)}function ne(e){return function(t){return"."==t?T(e?re:ie):"variable"==t&&u?T(Se,e?J:Y):D(e?W:U)}}function ie(e,t){if("target"==t)return A.marked="keyword",T(Y)}function re(e,t){if("target"==t)return A.marked="keyword",T(J)}function oe(e){return":"==e?T(V,H):D(Y,q(";"),V)}function ae(e){if("variable"==e)return A.marked="property",T()}function se(e,t){return"async"==e?(A.marked="property",T(se)):"variable"==e||"keyword"==A.style?(A.marked="property","get"==t||"set"==t?T(le):(u&&A.state.fatArrowAt==A.stream.start&&(n=A.stream.match(/^\s*:\s*/,!1))&&(A.state.fatArrowAt=A.stream.pos+n[0].length),T(ce))):"number"==e||"string"==e?(A.marked=s?"property":A.style+" property",T(ce)):"jsonld-keyword"==e?T(ce):u&&F(t)?(A.marked="keyword",T(se)):"["==e?T(U,he,q("]"),ce):"spread"==e?T(W,ce):"*"==t?(A.marked="keyword",T(se)):":"==e?D(ce):void 0;var n}function le(e){return"variable"!=e?D(ce):(A.marked="property",T(je))}function ce(e){return":"==e?T(W):"("==e?D(je):void 0}function ue(e,t,n){function i(r,o){if(n?n.indexOf(r)>-1:","==r){var a=A.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),T(function(n,i){return n==t||i==t?D():D(e)},i)}return r==t||o==t?T():n&&n.indexOf(";")>-1?D(e):T(q(t))}return function(n,r){return n==t||r==t?T():D(e,i)}}function de(e,t,n){for(var i=3;i<arguments.length;i++)A.cc.push(arguments[i]);return T(R(t,n),ue(e,t),V)}function pe(e){return"}"==e?T():D(H,pe)}function he(e,t){if(u){if(":"==e)return T(ve);if("?"==t)return T(he)}}function fe(e,t){if(u&&(":"==e||"in"==t))return T(ve)}function me(e){if(u&&":"==e)return A.stream.match(/^\s*\w+\s+is\b/,!1)?T(U,ge,ve):T(ve)}function ge(e,t){if("is"==t)return A.marked="keyword",T()}function ve(e,t){return"keyof"==t||"typeof"==t||"infer"==t||"readonly"==t?(A.marked="keyword",T("typeof"==t?W:ve)):"variable"==e||"void"==t?(A.marked="type",T(xe)):"|"==t||"&"==t?T(ve):"string"==e||"number"==e||"atom"==e?T(xe):"["==e?T(R("]"),ue(ve,"]",","),V,xe):"{"==e?T(R("}"),be,V,xe):"("==e?T(ue(Ce,")"),ye,xe):"<"==e?T(ue(ve,">"),ve):"quasi"==e?D(we,xe):void 0}function ye(e){if("=>"==e)return T(ve)}function be(e){return e.match(/[\}\)\]]/)?T():","==e||";"==e?T(be):D(ke,be)}function ke(e,t){return"variable"==e||"keyword"==A.style?(A.marked="property",T(ke)):"?"==t||"number"==e||"string"==e?T(ke):":"==e?T(ve):"["==e?T(q("variable"),fe,q("]"),ke):"("==e?D(Be,ke):e.match(/[;\}\)\],]/)?void 0:T()}function we(e,t){return"quasi"!=e?D():"${"!=t.slice(t.length-2)?T(we):T(ve,_e)}function _e(e){if("}"==e)return A.marked="string-2",A.state.tokenize=k,T(we)}function Ce(e,t){return"variable"==e&&A.stream.match(/^\s*[?:]/,!1)||"?"==t?T(Ce):":"==e?T(ve):"spread"==e?T(Ce):D(ve)}function xe(e,t){return"<"==t?T(R(">"),ue(ve,">"),V,xe):"|"==t||"."==e||"&"==t?T(ve):"["==e?T(ve,q("]"),xe):"extends"==t||"implements"==t?(A.marked="keyword",T(ve)):"?"==t?T(ve,q(":"),ve):void 0}function Se(e,t){if("<"==t)return T(R(">"),ue(ve,">"),V,xe)}function Ee(){return D(ve,Ae)}function Ae(e,t){if("="==t)return T(ve)}function De(e,t){return"enum"==t?(A.marked="keyword",T(tt)):D(Te,he,Pe,Fe)}function Te(e,t){return u&&F(t)?(A.marked="keyword",T(Te)):"variable"==e?(O(t),T()):"spread"==e?T(Te):"["==e?de(Oe,"]"):"{"==e?de(Ie,"}"):void 0}function Ie(e,t){return"variable"!=e||A.stream.match(/^\s*:/,!1)?("variable"==e&&(A.marked="property"),"spread"==e?T(Te):"}"==e?D():"["==e?T(U,q("]"),q(":"),Ie):T(q(":"),Te,Pe)):(O(t),T(Pe))}function Oe(){return D(Te,Pe)}function Pe(e,t){if("="==t)return T(W)}function Fe(e){if(","==e)return T(De)}function $e(e,t){if("keyword b"==e&&"else"==t)return T(R("form","else"),H,V)}function Me(e,t){return"await"==t?T(Me):"("==e?T(R(")"),Le,V):void 0}function Le(e){return"var"==e?T(De,Ne):"variable"==e?T(Ne):D(Ne)}function Ne(e,t){return")"==e?T():";"==e?T(Ne):"in"==t||"of"==t?(A.marked="keyword",T(U,Ne)):D(U,Ne)}function je(e,t){return"*"==t?(A.marked="keyword",T(je)):"variable"==e?(O(t),T(je)):"("==e?T(N,R(")"),ue(Ve,")"),V,me,H,B):u&&"<"==t?T(R(">"),ue(Ee,">"),V,je):void 0}function Be(e,t){return"*"==t?(A.marked="keyword",T(Be)):"variable"==e?(O(t),T(Be)):"("==e?T(N,R(")"),ue(Ve,")"),V,me,B):u&&"<"==t?T(R(">"),ue(Ee,">"),V,Be):void 0}function Re(e,t){return"keyword"==e||"variable"==e?(A.marked="type",T(Re)):"<"==t?T(R(">"),ue(Ee,">"),V):void 0}function Ve(e,t){return"@"==t&&T(U,Ve),"spread"==e?T(Ve):u&&F(t)?(A.marked="keyword",T(Ve)):u&&"this"==e?T(he,Pe):D(Te,he,Pe)}function qe(e,t){return"variable"==e?He(e,t):ze(e,t)}function He(e,t){if("variable"==e)return O(t),T(ze)}function ze(e,t){return"<"==t?T(R(">"),ue(Ee,">"),V,ze):"extends"==t||"implements"==t||u&&","==e?("implements"==t&&(A.marked="keyword"),T(u?ve:U,ze)):"{"==e?T(R("}"),Ue,V):void 0}function Ue(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||u&&F(t))&&A.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(A.marked="keyword",T(Ue)):"variable"==e||"keyword"==A.style?(A.marked="property",T(We,Ue)):"number"==e||"string"==e?T(We,Ue):"["==e?T(U,he,q("]"),We,Ue):"*"==t?(A.marked="keyword",T(Ue)):u&&"("==e?D(Be,Ue):";"==e||","==e?T(Ue):"}"==e?T():"@"==t?T(U,Ue):void 0}function We(e,t){if("!"==t)return T(We);if("?"==t)return T(We);if(":"==e)return T(ve,Pe);if("="==t)return T(W);var n=A.state.lexical.prev;return D(n&&"interface"==n.info?Be:je)}function Ge(e,t){return"*"==t?(A.marked="keyword",T(Ze,q(";"))):"default"==t?(A.marked="keyword",T(U,q(";"))):"{"==e?T(ue(Ke,"}"),Ze,q(";")):D(H)}function Ke(e,t){return"as"==t?(A.marked="keyword",T(q("variable"))):"variable"==e?D(W,Ke):void 0}function Qe(e){return"string"==e?T():"("==e?D(U):"."==e?D(Y):D(Ye,Je,Ze)}function Ye(e,t){return"{"==e?de(Ye,"}"):("variable"==e&&O(t),"*"==t&&(A.marked="keyword"),T(Xe))}function Je(e){if(","==e)return T(Ye,Je)}function Xe(e,t){if("as"==t)return A.marked="keyword",T(Ye)}function Ze(e,t){if("from"==t)return A.marked="keyword",T(U)}function et(e){return"]"==e?T():D(ue(W,"]"))}function tt(){return D(R("form"),Te,q("{"),R("}"),ue(nt,"}"),V,V)}function nt(){return D(Te,Pe)}function it(e,t){return"operator"==e.lastType||","==e.lastType||h.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function rt(e,t,n){return t.tokenize==v&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return N.lex=j.lex=!0,B.lex=!0,V.lex=!0,{startState:function(e){var t={tokenize:v,lastType:"sof",cc:[],lexical:new x((e||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new $(null,null,!1),indented:e||0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),_(e,t)),t.tokenize!=b&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==i?n:(t.lastType="operator"!=i||"++"!=r&&"--"!=r?i:"incdec",E(t,n,i,r,e))},indent:function(t,i){if(t.tokenize==b||t.tokenize==k)return e.Pass;if(t.tokenize!=v)return 0;var r,s=i&&i.charAt(0),l=t.lexical;if(!/^\s*else\b/.test(i))for(var c=t.cc.length-1;c>=0;--c){var u=t.cc[c];if(u==V)l=l.prev;else if(u!=$e&&u!=B)break}for(;("stat"==l.type||"form"==l.type)&&("}"==s||(r=t.cc[t.cc.length-1])&&(r==Y||r==J)&&!/^[,\.=+\-*:?[\(]/.test(i));)l=l.prev;a&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var d=l.type,p=s==d;return"vardef"==d?l.indented+("operator"==t.lastType||","==t.lastType?l.info.length+1:0):"form"==d&&"{"==s?l.indented:"form"==d?l.indented+o:"stat"==d?l.indented+(it(t,i)?a||o:0):"switch"!=l.info||p||0==n.doubleIndentSwitch?l.align?l.column+(p?0:1):l.indented+(p?0:o):l.indented+(/^(?:case|default)\b/.test(i)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:rt,skipExpression:function(t){E(t,"atom","atom","true",new e.StringStream("",2,null))}}}),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/manifest+json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(n(15237))},17556:function(){},17605:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M3.75 8.248h19.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M.75 17.248h19.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m12 .748-7.5 22.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m19.5.748-7.5 22.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},18024:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=["applet","acronym","bgsound","dir","frame","frameset","noframes","isindex","keygen","listing","menuitem","nextid","noembed","plaintext","rb","rtc","strike","xmp","basefont","big","blink","center","font","marquee","multicol","nobr","spacer","tt"];t.default={id:"tag-no-obsolete",description:"Disallows the use of obsolete HTML tags.",init(e,t,i){e.addListener("tagstart,tagend",e=>{const i=e.tagName.toLowerCase();n.includes(i)&&t.error(`The tag [ ${e.tagName} ] is obsolete in HTML5 and should not be used.`,e.line,e.col,this,e.raw)})}}},18275:function(e){e.exports='<svg version="1.1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="bricks-svg"><g fill="currentColor"><path d="M10.5 0H.5a.5.5 0 0 0-.5.5v10a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V.5a.5.5 0 0 0-.5-.5"/><path d="M23.5 0h-10a.5.5 0 0 0-.5.5v10a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V.5a.5.5 0 0 0-.5-.5"/><path d="M10.5 13H.5a.5.5 0 0 0-.5.5v10a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5v-10a.5.5 0 0 0-.5-.5"/><path d="M23.5 13h-10a.5.5 0 0 0-.5.5v10a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5v-10a.5.5 0 0 0-.5-.5"/></g><path fill="none" d="M0 0h24v24H0Z"/></svg>'},18382:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M3 22.497h18a1.5 1.5 0 0 0 1.5-1.5v-18a1.5 1.5 0 0 0-1.5-1.5H3a1.5 1.5 0 0 0-1.5 1.5v18a1.5 1.5 0 0 0 1.5 1.5" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M15.5 22.497v-21" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M8.5 22.497v-21" stroke-width="2"/></svg>'},18690:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"src-not-empty",description:"The src attribute of an img(script,link) must have a value.",init(e,t){e.addListener("tagstart",e=>{const n=e.tagName,i=e.attrs;let r;const o=e.col+n.length+1;for(let a=0,s=i.length;a<s;a++)r=i[a],(!0===/^(img|script|embed|bgsound|iframe)$/.test(n)&&"src"===r.name||"link"===n&&"href"===r.name||"object"===n&&"data"===r.name)&&""===r.value&&t.error(`The attribute [ ${r.name} ] of the tag [ ${n} ] must have a value.`,e.line,o+r.index,this,r.raw)})}}},19034:function(){},19050:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"attr-value-single-quotes",description:"Attribute values must be in single quotes.",init(e,t){e.addListener("tagstart",e=>{const n=e.attrs;let i;const r=e.col+e.tagName.length+1;for(let o=0,a=n.length;o<a;o++)i=n[o],(""!==i.value&&"'"!==i.quote||""===i.value&&'"'===i.quote)&&t.error(`The value of attribute [ ${i.name} ] must be in single quotes.`,e.line,r+i.index,this,i.raw)})}}},19241:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M.75 12a11.25 11.25 0 1 0 22.5 0 11.25 11.25 0 1 0-22.5 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/><path d="M15.665 18.75a.76.76 0 0 0 .744-.9 4.5 4.5 0 0 0-8.818 0 .76.76 0 0 0 .744.9Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/><path d="m6.75 6.75 3 3H6" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/><path d="m17.25 6.75-3 3H18" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1"/></svg>'},20334:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"script-disabled",description:"The <script> tag cannot be used.",init(e,t){e.addListener("tagstart",e=>{"script"===e.tagName.toLowerCase()&&t.error("The <script> tag cannot be used.",e.line,e.col,this,e.raw)})}}},20880:function(){},20966:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M16 86h96v26H16zm0-35h96v26H16zm0-35h96v26H16z"/></svg>'},21052:function(){},21124:function(e){"use strict";function t(){this._listeners=Object.create(null)}e.exports=t,t.prototype={constructor:t,addListener:function(e,t){this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t)},fire:function(e){if("string"==typeof e&&(e={type:e}),void 0!==e.target&&(e.target=this),void 0===e.type)throw new Error("Event object missing 'type' property.");if(this._listeners[e.type])for(var t=this._listeners[e.type].concat(),n=0,i=t.length;n<i;n++)t[n].call(this,e)},removeListener:function(e,t){if(this._listeners[e])for(var n=this._listeners[e],i=0,r=n.length;i<r;i++)if(n[i]===t){n.splice(i,1);break}}}},22347:function(e,t,n){"use strict";e.exports=a;var i=n(37388),r=n(13573),o=n(80604);function a(e,t,n){i.call(this,e.join(" "),t,n,r.SELECTOR_TYPE),this.parts=e,this.specificity=o.calculate(this)}a.prototype=new i,a.prototype.constructor=a},22521:function(){},22549:function(){},22819:function(e,t,n){!function(e){e.defineOption("autoCloseTags",!1,function(t,n,r){if(r!=e.Init&&r&&t.removeKeyMap("autoCloseTags"),n){var a={name:"autoCloseTags"};"object"==typeof n&&!1===n.whenClosing||(a["'/'"]=function(e){return o(e)}),"object"==typeof n&&!1===n.whenOpening||(a["'>'"]=function(e){return i(e)}),t.addKeyMap(a)}});var t=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],n=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function i(i){if(i.getOption("disableInput"))return e.Pass;for(var r=i.listSelections(),o=[],l=i.getOption("autoCloseTags"),c=0;c<r.length;c++){if(!r[c].empty())return e.Pass;var u=r[c].head,d=i.getTokenAt(u),p=e.innerMode(i.getMode(),d.state),h=p.state,f=p.mode.xmlCurrentTag&&p.mode.xmlCurrentTag(h),m=f&&f.name;if(!m)return e.Pass;var g="html"==p.mode.configuration,v="object"==typeof l&&l.dontCloseTags||g&&t,y="object"==typeof l&&l.indentTags||g&&n;d.end>u.ch&&(m=m.slice(0,m.length-d.end+u.ch));var b=m.toLowerCase();if(!m||"string"==d.type&&(d.end!=u.ch||!/[\"\']/.test(d.string.charAt(d.string.length-1))||1==d.string.length)||"tag"==d.type&&f.close||d.string.indexOf("/")==u.ch-d.start-1||v&&a(v,b)>-1||s(i,p.mode.xmlCurrentContext&&p.mode.xmlCurrentContext(h)||[],m,u,!0))return e.Pass;var k="object"==typeof l&&l.emptyTags;if(k&&a(k,m)>-1)o[c]={text:"/>",newPos:e.Pos(u.line,u.ch+2)};else{var w=y&&a(y,b)>-1;o[c]={indent:w,text:">"+(w?"\n\n":"")+"</"+m+">",newPos:w?e.Pos(u.line+1,0):e.Pos(u.line,u.ch+1)}}}var _="object"==typeof l&&l.dontIndentOnAutoClose;for(c=r.length-1;c>=0;c--){var C=o[c];i.replaceRange(C.text,r[c].head,r[c].anchor,"+insert");var x=i.listSelections().slice(0);x[c]={head:C.newPos,anchor:C.newPos},i.setSelections(x),!_&&C.indent&&(i.indentLine(C.newPos.line,null,!0),i.indentLine(C.newPos.line+1,null,!0))}}function r(t,n){for(var i=t.listSelections(),r=[],o=n?"/":"</",a=t.getOption("autoCloseTags"),l="object"==typeof a&&a.dontIndentOnSlash,c=0;c<i.length;c++){if(!i[c].empty())return e.Pass;var u=i[c].head,d=t.getTokenAt(u),p=e.innerMode(t.getMode(),d.state),h=p.state;if(n&&("string"==d.type||"<"!=d.string.charAt(0)||d.start!=u.ch-1))return e.Pass;var f,m="xml"!=p.mode.name&&"htmlmixed"==t.getMode().name;if(m&&"javascript"==p.mode.name)f=o+"script";else if(m&&"css"==p.mode.name)f=o+"style";else{var g=p.mode.xmlCurrentContext&&p.mode.xmlCurrentContext(h),v=g.length?g[g.length-1]:"";if(!g||g.length&&s(t,g,v,u))return e.Pass;f=o+v}">"!=t.getLine(u.line).charAt(d.end)&&(f+=">"),r[c]=f}if(t.replaceSelections(r),i=t.listSelections(),!l)for(c=0;c<i.length;c++)(c==i.length-1||i[c].head.line<i[c+1].head.line)&&t.indentLine(i[c].head.line)}function o(t){return t.getOption("disableInput")?e.Pass:r(t,!0)}function a(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,i=e.length;n<i;++n)if(e[n]==t)return n;return-1}function s(t,n,i,r,o){if(!e.scanForClosingTag)return!1;var a=Math.min(t.lastLine()+1,r.line+500),s=e.scanForClosingTag(t,r,null,a);if(!s||s.tag!=i)return!1;for(var l=o?1:0,c=n.length-1;c>=0&&n[c]==i;c--)++l;for(r=s.to,c=1;c<l;c++){var u=e.scanForClosingTag(t,r,null,a);if(!u||u.tag!=i)return!1;r=u.to}return!0}e.commands.closeTag=function(e){return r(e)}}(n(15237),n(16753))},23008:function(e,t,n){"use strict";e.exports={Colors:n(67202),Combinator:n(96688),Parser:n(13573),PropertyName:n(14432),PropertyValue:n(44162),PropertyValuePart:n(51607),Matcher:n(94298),MediaFeature:n(54100),MediaQuery:n(61378),Selector:n(22347),SelectorPart:n(70482),SelectorSubPart:n(75220),Specificity:n(80604),TokenStream:n(27645),Tokens:n(392),ValidationError:n(51675)}},23155:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="m9.364 18.5-.932.932a4.5 4.5 0 0 1-6.364-6.364l4.773-4.774a4.5 4.5 0 0 1 6.825 5.825" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m14.818 5.567.75-.75a4.5 4.5 0 0 1 6.364 6.364l-4.773 4.773a4.5 4.5 0 0 1-6.824-5.826" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},23238:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"form-method-require",description:'The method attribute of a <form> element must be present with a valid value: "get", "post", or "dialog".',init(e,t){e.addListener("tagstart",n=>{const i=n.tagName.toLowerCase();if("form"===i){const r=e.getMapAttrs(n.attrs),o=n.col+i.length+1;if(void 0===r.method)t.warn("The method attribute must be present on <form> elements.",n.line,o,this,n.raw);else{const e=r.method.toLowerCase();"get"!==e&&"post"!==e&&"dialog"!==e&&t.warn('The method attribute of <form> must have a valid value: "get", "post", or "dialog".',n.line,o,this,n.raw)}}})}}},23292:function(){},23448:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><g fill="none" fill-rule="evenodd"><path fill="#23282D" d="M0 68h24v-8H0z"/><path fill="#23282D" d="M104 60h24v8h-24zM28 16h32v96H28zm40 0h32v96H68z"/></g></svg>'},23531:function(e,t){"use strict";t.register=function(e){e.on("Identifier",function(t){e.getOption("proto")||"__proto__"===t.name&&e.warn("W103",{line:t.line,char:t.char,data:[t.name,"6"]})}),e.on("Identifier",function(t){e.getOption("iterator")||"__iterator__"===t.name&&e.warn("W103",{line:t.line,char:t.char,data:[t.name]})}),e.on("Identifier",function(t){e.getOption("camelcase")&&t.name.replace(/^_+|_+$/g,"").indexOf("_")>-1&&!t.name.match(/^[A-Z0-9_]*$/)&&e.warn("W106",{line:t.line,char:t.char,data:[t.name]})}),e.on("String",function(t){var n,i=e.getOption("quotmark");i&&("single"===i&&"'"!==t.quote&&(n="W109"),"double"===i&&'"'!==t.quote&&(n="W108"),!0===i&&(e.getCache("quotmark")||e.setCache("quotmark",t.quote),e.getCache("quotmark")!==t.quote&&(n="W110")),n&&e.warn(n,{line:t.line,char:t.char}))}),e.on("Number",function(t){"."===t.value.charAt(0)&&e.warn("W008",{line:t.line,char:t.char,data:[t.value]}),"."===t.value.substr(t.value.length-1)&&e.warn("W047",{line:t.line,char:t.char,data:[t.value]}),/^00+/.test(t.value)&&e.warn("W046",{line:t.line,char:t.char,data:[t.value]})}),e.on("String",function(t){e.getOption("scripturl")||/^(?:javascript|jscript|ecmascript|vbscript|livescript)\s*:/i.test(t.value)&&e.warn("W107",{line:t.line,char:t.char})})}},23653:function(e,t,n){!function(e){"use strict";var t,n,i=e.Pos;function r(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}function o(e,t){for(var n=r(e),i=n,o=0;o<t.length;o++)-1==i.indexOf(t.charAt(o))&&(i+=t.charAt(o));return n==i?e:new RegExp(e.source,i)}function a(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function s(e,t,n){t=o(t,"g");for(var r=n.line,a=n.ch,s=e.lastLine();r<=s;r++,a=0){t.lastIndex=a;var l=e.getLine(r),c=t.exec(l);if(c)return{from:i(r,c.index),to:i(r,c.index+c[0].length),match:c}}}function l(e,t,n){if(!a(t))return s(e,t,n);t=o(t,"gm");for(var r,l=1,c=n.line,u=e.lastLine();c<=u;){for(var d=0;d<l&&!(c>u);d++){var p=e.getLine(c++);r=null==r?p:r+"\n"+p}l*=2,t.lastIndex=n.ch;var h=t.exec(r);if(h){var f=r.slice(0,h.index).split("\n"),m=h[0].split("\n"),g=n.line+f.length-1,v=f[f.length-1].length;return{from:i(g,v),to:i(g+m.length-1,1==m.length?v+m[0].length:m[m.length-1].length),match:h}}}}function c(e,t,n){for(var i,r=0;r<=e.length;){t.lastIndex=r;var o=t.exec(e);if(!o)break;var a=o.index+o[0].length;if(a>e.length-n)break;(!i||a>i.index+i[0].length)&&(i=o),r=o.index+1}return i}function u(e,t,n){t=o(t,"g");for(var r=n.line,a=n.ch,s=e.firstLine();r>=s;r--,a=-1){var l=e.getLine(r),u=c(l,t,a<0?0:l.length-a);if(u)return{from:i(r,u.index),to:i(r,u.index+u[0].length),match:u}}}function d(e,t,n){if(!a(t))return u(e,t,n);t=o(t,"gm");for(var r,s=1,l=e.getLine(n.line).length-n.ch,d=n.line,p=e.firstLine();d>=p;){for(var h=0;h<s&&d>=p;h++){var f=e.getLine(d--);r=null==r?f:f+"\n"+r}s*=2;var m=c(r,t,l);if(m){var g=r.slice(0,m.index).split("\n"),v=m[0].split("\n"),y=d+g.length,b=g[g.length-1].length;return{from:i(y,b),to:i(y+v.length-1,1==v.length?b+v[0].length:v[v.length-1].length),match:m}}}}function p(e,t,n,i){if(e.length==t.length)return n;for(var r=0,o=n+Math.max(0,e.length-t.length);;){if(r==o)return r;var a=r+o>>1,s=i(e.slice(0,a)).length;if(s==n)return a;s>n?o=a:r=a+1}}function h(e,r,o,a){if(!r.length)return null;var s=a?t:n,l=s(r).split(/\r|\n\r?/);e:for(var c=o.line,u=o.ch,d=e.lastLine()+1-l.length;c<=d;c++,u=0){var h=e.getLine(c).slice(u),f=s(h);if(1==l.length){var m=f.indexOf(l[0]);if(-1==m)continue e;return o=p(h,f,m,s)+u,{from:i(c,p(h,f,m,s)+u),to:i(c,p(h,f,m+l[0].length,s)+u)}}var g=f.length-l[0].length;if(f.slice(g)==l[0]){for(var v=1;v<l.length-1;v++)if(s(e.getLine(c+v))!=l[v])continue e;var y=e.getLine(c+l.length-1),b=s(y),k=l[l.length-1];if(b.slice(0,k.length)==k)return{from:i(c,p(h,f,g,s)+u),to:i(c+l.length-1,p(y,b,k.length,s))}}}}function f(e,r,o,a){if(!r.length)return null;var s=a?t:n,l=s(r).split(/\r|\n\r?/);e:for(var c=o.line,u=o.ch,d=e.firstLine()-1+l.length;c>=d;c--,u=-1){var h=e.getLine(c);u>-1&&(h=h.slice(0,u));var f=s(h);if(1==l.length){var m=f.lastIndexOf(l[0]);if(-1==m)continue e;return{from:i(c,p(h,f,m,s)),to:i(c,p(h,f,m+l[0].length,s))}}var g=l[l.length-1];if(f.slice(0,g.length)==g){var v=1;for(o=c-l.length+1;v<l.length-1;v++)if(s(e.getLine(o+v))!=l[v])continue e;var y=e.getLine(c+1-l.length),b=s(y);if(b.slice(b.length-l[0].length)==l[0])return{from:i(c+1-l.length,p(y,b,y.length-l[0].length,s)),to:i(c,p(h,f,g.length,s))}}}}function m(e,t,n,r){var a;this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=e,n=n?e.clipPos(n):i(0,0),this.pos={from:n,to:n},"object"==typeof r?a=r.caseFold:(a=r,r=null),"string"==typeof t?(null==a&&(a=!1),this.matches=function(n,i){return(n?f:h)(e,t,i,a)}):(t=o(t,"gm"),r&&!1===r.multiline?this.matches=function(n,i){return(n?u:s)(e,t,i)}:this.matches=function(n,i){return(n?d:l)(e,t,i)})}String.prototype.normalize?(t=function(e){return e.normalize("NFD").toLowerCase()},n=function(e){return e.normalize("NFD")}):(t=function(e){return e.toLowerCase()},n=function(e){return e}),m.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){var n=this.doc.clipPos(t?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(n=i(n.line,n.ch),t?(n.ch--,n.ch<0&&(n.line--,n.ch=(this.doc.getLine(n.line)||"").length)):(n.ch++,n.ch>(this.doc.getLine(n.line)||"").length&&(n.ch=0,n.line++)),0!=e.cmpPos(n,this.doc.clipPos(n))))return this.atOccurrence=!1;var r=this.matches(t,n);if(this.afterEmptyMatch=r&&0==e.cmpPos(r.from,r.to),r)return this.pos=r,this.atOccurrence=!0,this.pos.match||!0;var o=i(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:o,to:o},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var r=e.splitLines(t);this.doc.replaceRange(r,this.pos.from,this.pos.to,n),this.pos.to=i(this.pos.from.line+r.length-1,r[r.length-1].length+(1==r.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",function(e,t,n){return new m(this.doc,e,t,n)}),e.defineDocExtension("getSearchCursor",function(e,t,n){return new m(this,e,t,n)}),e.defineExtension("selectMatches",function(t,n){for(var i=[],r=this.getSearchCursor(t,this.getCursor("from"),n);r.findNext()&&!(e.cmpPos(r.to(),this.getCursor("to"))>0);)i.push({anchor:r.from(),head:r.to()});i.length&&this.setSelections(i,0)})}(n(15237))},23834:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M.75 17.189 11.47 6.47a.75.75 0 0 1 1.06 0l10.72 10.719" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},24175:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"doctype-html5",description:'Invalid doctype. Use: "<!DOCTYPE html>"',init(e,t){const n=e=>{!1===e.long&&"doctype html"!==e.content.toLowerCase()&&t.warn('Invalid doctype. Use: "<!DOCTYPE html>"',e.line,e.col,this,e.raw)},i=()=>{e.removeListener("comment",n),e.removeListener("tagstart",i)};e.addListener("all",n),e.addListener("tagstart",i)}}},25011:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="-0.5 -0.5 24 24" class="bricks-svg"><path d="M2.156.718h18.688s1.437 0 1.437 1.437v18.688s0 1.437-1.437 1.437H2.156S.72 22.28.72 20.843V2.155S.719.718 2.156.718" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m7.188 15.812 8.625-8.625" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M15.813 15.812 7.188 7.187" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},25102:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M.75 12h22.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M12 .75v22.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},25545:function(){},25697:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"button-type-require",description:'The type attribute of a <button> element must be present with a valid value: "button", "submit", or "reset".',init(e,t){e.addListener("tagstart",n=>{const i=n.tagName.toLowerCase();if("button"===i){const r=e.getMapAttrs(n.attrs),o=n.col+i.length+1;if(void 0===r.type)t.warn("The type attribute must be present on <button> elements.",n.line,o,this,n.raw);else{const e=r.type.toLowerCase();"button"!==e&&"submit"!==e&&"reset"!==e&&t.warn('The type attribute of <button> must have a valid value: "button", "submit", or "reset".',n.line,o,this,n.raw)}}})}}},26100:function(e){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},26538:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M12 1.498v9.75" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M9 5.011a9 9 0 1 0 6 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},26874:function(e){var t="183,768,769,770,771,772,773,774,775,776,777,778,779,780,781,782,783,784,785,786,787,788,789,790,791,792,793,794,795,796,797,798,799,800,801,802,803,804,805,806,807,808,809,810,811,812,813,814,815,816,817,818,819,820,821,822,823,824,825,826,827,828,829,830,831,832,833,834,835,836,837,838,839,840,841,842,843,844,845,846,847,848,849,850,851,852,853,854,855,856,857,858,859,860,861,862,863,864,865,866,867,868,869,870,871,872,873,874,875,876,877,878,879,903,1155,1156,1157,1158,1159,1425,1426,1427,1428,1429,1430,1431,1432,1433,1434,1435,1436,1437,1438,1439,1440,1441,1442,1443,1444,1445,1446,1447,1448,1449,1450,1451,1452,1453,1454,1455,1456,1457,1458,1459,1460,1461,1462,1463,1464,1465,1466,1467,1468,1469,1471,1473,1474,1476,1477,1479,1552,1553,1554,1555,1556,1557,1558,1559,1560,1561,1562,1611,1612,1613,1614,1615,1616,1617,1618,1619,1620,1621,1622,1623,1624,1625,1626,1627,1628,1629,1630,1631,1632,1633,1634,1635,1636,1637,1638,1639,1640,1641,1648,1750,1751,1752,1753,1754,1755,1756,1759,1760,1761,1762,1763,1764,1767,1768,1770,1771,1772,1773,1776,1777,1778,1779,1780,1781,1782,1783,1784,1785,1809,1840,1841,1842,1843,1844,1845,1846,1847,1848,1849,1850,1851,1852,1853,1854,1855,1856,1857,1858,1859,1860,1861,1862,1863,1864,1865,1866,1958,1959,1960,1961,1962,1963,1964,1965,1966,1967,1968,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,2027,2028,2029,2030,2031,2032,2033,2034,2035,2045,2070,2071,2072,2073,2075,2076,2077,2078,2079,2080,2081,2082,2083,2085,2086,2087,2089,2090,2091,2092,2093,2137,2138,2139,2259,2260,2261,2262,2263,2264,2265,2266,2267,2268,2269,2270,2271,2272,2273,2275,2276,2277,2278,2279,2280,2281,2282,2283,2284,2285,2286,2287,2288,2289,2290,2291,2292,2293,2294,2295,2296,2297,2298,2299,2300,2301,2302,2303,2304,2305,2306,2307,2362,2363,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2385,2386,2387,2388,2389,2390,2391,2402,2403,2406,2407,2408,2409,2410,2411,2412,2413,2414,2415,2433,2434,2435,2492,2494,2495,2496,2497,2498,2499,2500,2503,2504,2507,2508,2509,2519,2530,2531,2534,2535,2536,2537,2538,2539,2540,2541,2542,2543,2558,2561,2562,2563,2620,2622,2623,2624,2625,2626,2631,2632,2635,2636,2637,2641,2662,2663,2664,2665,2666,2667,2668,2669,2670,2671,2672,2673,2677,2689,2690,2691,2748,2750,2751,2752,2753,2754,2755,2756,2757,2759,2760,2761,2763,2764,2765,2786,2787,2790,2791,2792,2793,2794,2795,2796,2797,2798,2799,2810,2811,2812,2813,2814,2815,2817,2818,2819,2876,2878,2879,2880,2881,2882,2883,2884,2887,2888,2891,2892,2893,2902,2903,2914,2915,2918,2919,2920,2921,2922,2923,2924,2925,2926,2927,2946,3006,3007,3008,3009,3010,3014,3015,3016,3018,3019,3020,3021,3031,3046,3047,3048,3049,3050,3051,3052,3053,3054,3055,3072,3073,3074,3075,3076,3134,3135,3136,3137,3138,3139,3140,3142,3143,3144,3146,3147,3148,3149,3157,3158,3170,3171,3174,3175,3176,3177,3178,3179,3180,3181,3182,3183,3201,3202,3203,3260,3262,3263,3264,3265,3266,3267,3268,3270,3271,3272,3274,3275,3276,3277,3285,3286,3298,3299,3302,3303,3304,3305,3306,3307,3308,3309,3310,3311,3328,3329,3330,3331,3387,3388,3390,3391,3392,3393,3394,3395,3396,3398,3399,3400,3402,3403,3404,3405,3415,3426,3427,3430,3431,3432,3433,3434,3435,3436,3437,3438,3439,3458,3459,3530,3535,3536,3537,3538,3539,3540,3542,3544,3545,3546,3547,3548,3549,3550,3551,3558,3559,3560,3561,3562,3563,3564,3565,3566,3567,3570,3571,3633,3636,3637,3638,3639,3640,3641,3642,3655,3656,3657,3658,3659,3660,3661,3662,3664,3665,3666,3667,3668,3669,3670,3671,3672,3673,3761,3764,3765,3766,3767,3768,3769,3771,3772,3784,3785,3786,3787,3788,3789,3792,3793,3794,3795,3796,3797,3798,3799,3800,3801,3864,3865,3872,3873,3874,3875,3876,3877,3878,3879,3880,3881,3893,3895,3897,3902,3903,3953,3954,3955,3956,3957,3958,3959,3960,3961,3962,3963,3964,3965,3966,3967,3968,3969,3970,3971,3972,3974,3975,3981,3982,3983,3984,3985,3986,3987,3988,3989,3990,3991,3993,3994,3995,3996,3997,3998,3999,4000,4001,4002,4003,4004,4005,4006,4007,4008,4009,4010,4011,4012,4013,4014,4015,4016,4017,4018,4019,4020,4021,4022,4023,4024,4025,4026,4027,4028,4038,4139,4140,4141,4142,4143,4144,4145,4146,4147,4148,4149,4150,4151,4152,4153,4154,4155,4156,4157,4158,4160,4161,4162,4163,4164,4165,4166,4167,4168,4169,4182,4183,4184,4185,4190,4191,4192,4194,4195,4196,4199,4200,4201,4202,4203,4204,4205,4209,4210,4211,4212,4226,4227,4228,4229,4230,4231,4232,4233,4234,4235,4236,4237,4239,4240,4241,4242,4243,4244,4245,4246,4247,4248,4249,4250,4251,4252,4253,4957,4958,4959,4969,4970,4971,4972,4973,4974,4975,4976,4977,5906,5907,5908,5938,5939,5940,5970,5971,6002,6003,6068,6069,6070,6071,6072,6073,6074,6075,6076,6077,6078,6079,6080,6081,6082,6083,6084,6085,6086,6087,6088,6089,6090,6091,6092,6093,6094,6095,6096,6097,6098,6099,6109,6112,6113,6114,6115,6116,6117,6118,6119,6120,6121,6155,6156,6157,6160,6161,6162,6163,6164,6165,6166,6167,6168,6169,6313,6432,6433,6434,6435,6436,6437,6438,6439,6440,6441,6442,6443,6448,6449,6450,6451,6452,6453,6454,6455,6456,6457,6458,6459,6470,6471,6472,6473,6474,6475,6476,6477,6478,6479,6608,6609,6610,6611,6612,6613,6614,6615,6616,6617,6618,6679,6680,6681,6682,6683,6741,6742,6743,6744,6745,6746,6747,6748,6749,6750,6752,6753,6754,6755,6756,6757,6758,6759,6760,6761,6762,6763,6764,6765,6766,6767,6768,6769,6770,6771,6772,6773,6774,6775,6776,6777,6778,6779,6780,6783,6784,6785,6786,6787,6788,6789,6790,6791,6792,6793,6800,6801,6802,6803,6804,6805,6806,6807,6808,6809,6832,6833,6834,6835,6836,6837,6838,6839,6840,6841,6842,6843,6844,6845,6912,6913,6914,6915,6916,6964,6965,6966,6967,6968,6969,6970,6971,6972,6973,6974,6975,6976,6977,6978,6979,6980,6992,6993,6994,6995,6996,6997,6998,6999,7000,7001,7019,7020,7021,7022,7023,7024,7025,7026,7027,7040,7041,7042,7073,7074,7075,7076,7077,7078,7079,7080,7081,7082,7083,7084,7085,7088,7089,7090,7091,7092,7093,7094,7095,7096,7097,7142,7143,7144,7145,7146,7147,7148,7149,7150,7151,7152,7153,7154,7155,7204,7205,7206,7207,7208,7209,7210,7211,7212,7213,7214,7215,7216,7217,7218,7219,7220,7221,7222,7223,7232,7233,7234,7235,7236,7237,7238,7239,7240,7241,7248,7249,7250,7251,7252,7253,7254,7255,7256,7257,7376,7377,7378,7380,7381,7382,7383,7384,7385,7386,7387,7388,7389,7390,7391,7392,7393,7394,7395,7396,7397,7398,7399,7400,7405,7410,7411,7412,7415,7416,7417,7616,7617,7618,7619,7620,7621,7622,7623,7624,7625,7626,7627,7628,7629,7630,7631,7632,7633,7634,7635,7636,7637,7638,7639,7640,7641,7642,7643,7644,7645,7646,7647,7648,7649,7650,7651,7652,7653,7654,7655,7656,7657,7658,7659,7660,7661,7662,7663,7664,7665,7666,7667,7668,7669,7670,7671,7672,7673,7675,7676,7677,7678,7679,8204,8205,8255,8256,8276,8400,8401,8402,8403,8404,8405,8406,8407,8408,8409,8410,8411,8412,8417,8421,8422,8423,8424,8425,8426,8427,8428,8429,8430,8431,8432,11503,11504,11505,11647,11744,11745,11746,11747,11748,11749,11750,11751,11752,11753,11754,11755,11756,11757,11758,11759,11760,11761,11762,11763,11764,11765,11766,11767,11768,11769,11770,11771,11772,11773,11774,11775,12330,12331,12332,12333,12334,12335,12441,12442,42528,42529,42530,42531,42532,42533,42534,42535,42536,42537,42607,42612,42613,42614,42615,42616,42617,42618,42619,42620,42621,42654,42655,42736,42737,43010,43014,43019,43043,43044,43045,43046,43047,43136,43137,43188,43189,43190,43191,43192,43193,43194,43195,43196,43197,43198,43199,43200,43201,43202,43203,43204,43205,43216,43217,43218,43219,43220,43221,43222,43223,43224,43225,43232,43233,43234,43235,43236,43237,43238,43239,43240,43241,43242,43243,43244,43245,43246,43247,43248,43249,43263,43264,43265,43266,43267,43268,43269,43270,43271,43272,43273,43302,43303,43304,43305,43306,43307,43308,43309,43335,43336,43337,43338,43339,43340,43341,43342,43343,43344,43345,43346,43347,43392,43393,43394,43395,43443,43444,43445,43446,43447,43448,43449,43450,43451,43452,43453,43454,43455,43456,43472,43473,43474,43475,43476,43477,43478,43479,43480,43481,43493,43504,43505,43506,43507,43508,43509,43510,43511,43512,43513,43561,43562,43563,43564,43565,43566,43567,43568,43569,43570,43571,43572,43573,43574,43587,43596,43597,43600,43601,43602,43603,43604,43605,43606,43607,43608,43609,43643,43644,43645,43696,43698,43699,43700,43703,43704,43710,43711,43713,43755,43756,43757,43758,43759,43765,43766,44003,44004,44005,44006,44007,44008,44009,44010,44012,44013,44016,44017,44018,44019,44020,44021,44022,44023,44024,44025,64286,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65056,65057,65058,65059,65060,65061,65062,65063,65064,65065,65066,65067,65068,65069,65070,65071,65075,65076,65101,65102,65103,65296,65297,65298,65299,65300,65301,65302,65303,65304,65305,65343".split(",").map(function(e){return parseInt(e,10)});e.exports=t},27007:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="-1 -1 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M9.625 19.938A8.937 8.937 0 1 1 18.563 11v.688" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m21.313 8.935-2.75 2.75-2.75-2.75" stroke-width="2"/></svg>'},27091:function(){},27586:function(){},27645:function(e,t,n){"use strict";e.exports=v;var i=n(40173),r=n(51607),o=n(392),a=/^[0-9a-fA-F]$/,s=/^[\u00A0-\uFFFF]$/,l=/\n|\r\n|\r|\f/,c=/\u0009|\u000a|\u000c|\u000d|\u0020/;function u(e){return null!==e&&a.test(e)}function d(e){return null!==e&&/\d/.test(e)}function p(e){return null!==e&&c.test(e)}function h(e){return null!==e&&l.test(e)}function f(e){return null!==e&&/[a-z_\u00A0-\uFFFF\\]/i.test(e)}function m(e){return null!==e&&(f(e)||/[0-9\-\\]/.test(e))}function g(e){return null!==e&&(f(e)||/\-\\/.test(e))}function v(e){i.call(this,e,o)}v.prototype=function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}(new i,{_getToken:function(){var e,t=this._reader,n=null,i=t.getLine(),r=t.getCol();for(e=t.read();e;){switch(e){case"/":n="*"===t.peek()?this.commentToken(e,i,r):this.charToken(e,i,r);break;case"|":case"~":case"^":case"$":case"*":n="="===t.peek()?this.comparisonToken(e,i,r):this.charToken(e,i,r);break;case'"':case"'":n=this.stringToken(e,i,r);break;case"#":n=m(t.peek())?this.hashToken(e,i,r):this.charToken(e,i,r);break;case".":n=d(t.peek())?this.numberToken(e,i,r):this.charToken(e,i,r);break;case"-":n="-"===t.peek()?this.htmlCommentEndToken(e,i,r):f(t.peek())?this.identOrFunctionToken(e,i,r):this.charToken(e,i,r);break;case"!":n=this.importantToken(e,i,r);break;case"@":n=this.atRuleToken(e,i,r);break;case":":n=this.notToken(e,i,r);break;case"<":n=this.htmlCommentStartToken(e,i,r);break;case"\\":n=/[^\r\n\f]/.test(t.peek())?this.identOrFunctionToken(this.readEscape(e,!0),i,r):this.charToken(e,i,r);break;case"U":case"u":if("+"===t.peek()){n=this.unicodeRangeToken(e,i,r);break}default:n=d(e)?this.numberToken(e,i,r):p(e)?this.whitespaceToken(e,i,r):g(e)?this.identOrFunctionToken(e,i,r):this.charToken(e,i,r)}break}return n||null!==e||(n=this.createToken(o.EOF,null,i,r)),n},createToken:function(e,t,n,i,r){var o=this._reader;return{value:t,type:e,channel:(r=r||{}).channel,endChar:r.endChar,hide:r.hide||!1,startLine:n,startCol:i,endLine:o.getLine(),endCol:o.getCol()}},atRuleToken:function(e,t,n){var i=e,r=this._reader,a=o.CHAR;return r.mark(),i=e+this.readName(),(a=o.type(i.toLowerCase()))!==o.CHAR&&a!==o.UNKNOWN||(i.length>1?a=o.UNKNOWN_SYM:(a=o.CHAR,i=e,r.reset())),this.createToken(a,i,t,n)},charToken:function(e,t,n){var i=o.type(e),r={};return-1===i?i=o.CHAR:r.endChar=o[i].endChar,this.createToken(i,e,t,n,r)},commentToken:function(e,t,n){var i=this.readComment(e);return this.createToken(o.COMMENT,i,t,n)},comparisonToken:function(e,t,n){var i=e+this._reader.read(),r=o.type(i)||o.CHAR;return this.createToken(r,i,t,n)},hashToken:function(e,t,n){var i=this.readName(e);return this.createToken(o.HASH,i,t,n)},htmlCommentStartToken:function(e,t,n){var i=this._reader,r=e;return i.mark(),"\x3c!--"===(r+=i.readCount(3))?this.createToken(o.CDO,r,t,n):(i.reset(),this.charToken(e,t,n))},htmlCommentEndToken:function(e,t,n){var i=this._reader,r=e;return i.mark(),"--\x3e"===(r+=i.readCount(2))?this.createToken(o.CDC,r,t,n):(i.reset(),this.charToken(e,t,n))},identOrFunctionToken:function(e,t,n){var i,r=this._reader,a=this.readName(e),s=o.IDENT;return"("===r.peek()?(a+=r.read(),["url(","url-prefix(","domain("].indexOf(a.toLowerCase())>-1?(r.mark(),null===(i=this.readURI(a))?(r.reset(),s=o.FUNCTION):(s=o.URI,a=i)):s=o.FUNCTION):":"===r.peek()&&"progid"===a.toLowerCase()&&(a+=r.readTo("("),s=o.IE_FUNCTION),this.createToken(s,a,t,n)},importantToken:function(e,t,n){var i,r,a=this._reader,s=e,l=o.CHAR;for(a.mark(),r=a.read();r;){if("/"===r){if("*"!==a.peek())break;if(""===(i=this.readComment(r)))break}else{if(!p(r)){if(/i/i.test(r)){i=a.readCount(8),/mportant/i.test(i)&&(s+=r+i,l=o.IMPORTANT_SYM);break}break}s+=r+this.readWhitespace()}r=a.read()}return l===o.CHAR?(a.reset(),this.charToken(e,t,n)):this.createToken(l,s,t,n)},notToken:function(e,t,n){var i=this._reader,r=e;return i.mark(),":not("===(r+=i.readCount(4)).toLowerCase()?this.createToken(o.NOT,r,t,n):(i.reset(),this.charToken(e,t,n))},numberToken:function(e,t,n){var i,r=this._reader,a=this.readNumber(e),s=o.NUMBER,l=r.peek();return g(l)?(a+=i=this.readName(r.read()),s=/^em$|^ex$|^px$|^gd$|^rem$|^vw$|^vh$|^vmax$|^vmin$|^ch$|^cm$|^mm$|^in$|^pt$|^pc$/i.test(i)?o.LENGTH:/^deg|^rad$|^grad$|^turn$/i.test(i)?o.ANGLE:/^ms$|^s$/i.test(i)?o.TIME:/^hz$|^khz$/i.test(i)?o.FREQ:/^dpi$|^dpcm$/i.test(i)?o.RESOLUTION:o.DIMENSION):"%"===l&&(a+=r.read(),s=o.PERCENTAGE),this.createToken(s,a,t,n)},stringToken:function(e,t,n){for(var i,r=e,a=e,s=this._reader,l=o.STRING,c=s.read();c;){if(a+=c,"\\"===c){if(null===(c=s.read()))break;if(/[^\r\n\f0-9a-f]/i.test(c))a+=c;else{for(i=0;u(c)&&i<6;i++)a+=c,c=s.read();if("\r"===c&&"\n"===s.peek()&&(a+=c,c=s.read()),!p(c))continue;a+=c}}else{if(c===r)break;if(h(s.peek())){l=o.INVALID;break}}c=s.read()}return null===c&&(l=o.INVALID),this.createToken(l,a,t,n)},unicodeRangeToken:function(e,t,n){var i,r=this._reader,a=e,s=o.CHAR;return"+"===r.peek()&&(r.mark(),a+=r.read(),2===(a+=this.readUnicodeRangePart(!0)).length?r.reset():(s=o.UNICODE_RANGE,-1===a.indexOf("?")&&"-"===r.peek()&&(r.mark(),i=r.read(),1===(i+=this.readUnicodeRangePart(!1)).length?r.reset():a+=i))),this.createToken(s,a,t,n)},whitespaceToken:function(e,t,n){var i=e+this.readWhitespace();return this.createToken(o.S,i,t,n)},readUnicodeRangePart:function(e){for(var t=this._reader,n="",i=t.peek();u(i)&&n.length<6;)t.read(),n+=i,i=t.peek();if(e)for(;"?"===i&&n.length<6;)t.read(),n+=i,i=t.peek();return n},readWhitespace:function(){for(var e=this._reader,t="",n=e.peek();p(n);)e.read(),t+=n,n=e.peek();return t},readNumber:function(e){for(var t=this._reader,n=e,i="."===e,r=t.peek();r;){if(d(r))n+=t.read();else{if("."!==r)break;if(i)break;i=!0,n+=t.read()}r=t.peek()}return n},readString:function(){var e=this.stringToken(this._reader.read(),0,0);return e.type===o.INVALID?null:e.value},readURI:function(e){for(var t=this._reader,n=e,i="",o=t.peek();o&&p(o);)t.read(),o=t.peek();for("'"===o||'"'===o?null!==(i=this.readString())&&(i=r.parseString(i)):i=this.readUnquotedURL(),o=t.peek();o&&p(o);)t.read(),o=t.peek();return null===i||")"!==o?n=null:n+=r.serializeString(i)+t.read(),n},readUnquotedURL:function(e){var t,n=this._reader,i=e||"";for(t=n.peek();t;t=n.peek())if(s.test(t)||/^[\-!#$%&*-\[\]-~]$/.test(t))i+=t,n.read();else{if("\\"!==t)break;if(!/^[^\r\n\f]$/.test(n.peek(2)))break;i+=this.readEscape(n.read(),!0)}return i},readName:function(e){var t,n=this._reader,i=e||"";for(t=n.peek();t;t=n.peek())if("\\"===t){if(!/^[^\r\n\f]$/.test(n.peek(2)))break;i+=this.readEscape(n.read(),!0)}else{if(!m(t))break;i+=n.read()}return i},readEscape:function(e,t){var n=this._reader,i=e||"",r=0,o=n.peek();if(u(o))do{i+=n.read(),o=n.peek()}while(o&&u(o)&&++r<6);if(1===i.length){if(!/^[^\r\n\f0-9a-f]$/.test(o))throw new Error("Bad escape sequence.");if(n.read(),t)return o}else"\r"===o?(n.read(),"\n"===n.peek()&&(o+=n.read())):/^[ \t\n\f]$/.test(o)?n.read():o="";if(t){var a=parseInt(i.slice(e.length),16);return String.fromCodePoint?String.fromCodePoint(a):String.fromCharCode(a)}return i+o},readComment:function(e){var t=this._reader,n=e||"",i=t.read();if("*"===i){for(;i;){if((n+=i).length>2&&"*"===i&&"/"===t.peek()){n+=t.read();break}i=t.read()}return n}return""}})},27732:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" class="bricks-svg"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2" stroke-width="2"/><path d="M8 7a4 4 0 1 0 8 0 4 4 0 1 0-8 0" stroke-width="2"/></svg>'},28263:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="bricks-svg"><path d="M.75 7.821h22.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M.75 16.179h22.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},28420:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14" class="bricks-svg"><g id="copy-2"><path id="Vector 3878" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M13 12V4.5a1 1 0 0 0-1-1H4.5a1 1 0 0 0-1 1V12a1 1 0 0 0 1 1H12a1 1 0 0 0 1-1" stroke-width="1"/><path id="Vector 3881" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M1 9.5V2a1 1 0 0 1 1-1h7.5" stroke-width="1"/><path id="Vector 3885" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M5.75 8.25h5" stroke-width="1"/><path id="Vector 3886" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M8.25 5.75v5" stroke-width="1"/></g></svg>'},28486:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M5.25 14.248v4.5H.75" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M18.75 9.748v-4.5h4.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M19.032 5.245A9.752 9.752 0 0 1 8.246 21" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M4.967 18.751A9.753 9.753 0 0 1 15.754 3" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},28527:function(e,t,n){!function(e){function t(t,n,i){var r,o=t.getWrapperElement();return(r=o.appendChild(document.createElement("div"))).className=i?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?r.innerHTML=n:r.appendChild(n),e.addClass(o,"dialog-opened"),r}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}e.defineExtension("openDialog",function(i,r,o){o||(o={}),n(this,null);var a=t(this,i,o.bottom),s=!1,l=this;function c(t){if("string"==typeof t)d.value=t;else{if(s)return;s=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),l.focus(),o.onClose&&o.onClose(a)}}var u,d=a.getElementsByTagName("input")[0];return d?(d.focus(),o.value&&(d.value=o.value,!1!==o.selectValueOnOpen&&d.select()),o.onInput&&e.on(d,"input",function(e){o.onInput(e,d.value,c)}),o.onKeyUp&&e.on(d,"keyup",function(e){o.onKeyUp(e,d.value,c)}),e.on(d,"keydown",function(t){o&&o.onKeyDown&&o.onKeyDown(t,d.value,c)||((27==t.keyCode||!1!==o.closeOnEnter&&13==t.keyCode)&&(d.blur(),e.e_stop(t),c()),13==t.keyCode&&r(d.value,t))}),!1!==o.closeOnBlur&&e.on(a,"focusout",function(e){null!==e.relatedTarget&&c()})):(u=a.getElementsByTagName("button")[0])&&(e.on(u,"click",function(){c(),l.focus()}),!1!==o.closeOnBlur&&e.on(u,"blur",c),u.focus()),c}),e.defineExtension("openConfirm",function(i,r,o){n(this,null);var a=t(this,i,o&&o.bottom),s=a.getElementsByTagName("button"),l=!1,c=this,u=1;function d(){l||(l=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),c.focus())}s[0].focus();for(var p=0;p<s.length;++p){var h=s[p];(function(t){e.on(h,"click",function(n){e.e_preventDefault(n),d(),t&&t(c)})})(r[p]),e.on(h,"blur",function(){--u,setTimeout(function(){u<=0&&d()},200)}),e.on(h,"focus",function(){++u})}}),e.defineExtension("openNotification",function(i,r){n(this,c);var o,a=t(this,i,r&&r.bottom),s=!1,l=r&&void 0!==r.duration?r.duration:5e3;function c(){s||(s=!0,clearTimeout(o),e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a))}return e.on(a,"click",function(t){e.e_preventDefault(t),c()}),l&&(o=setTimeout(c,l)),c})}(n(15237))},28685:function(){},28765:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><g fill="none" fill-rule="evenodd"><path fill="#212121" d="M58 44h12v52H58zM37 32h56v12H37z"/><path fill="#212121" d="M16 16h96v12H16z"/></g></svg>'},28875:function(e,t,n){"use strict";var i;if(!Object.keys){var r=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=n(1093),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),c=s.call(function(){},"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!p["$"+e]&&r.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();i=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===o.call(e),i=a(e),s=t&&"[object String]"===o.call(e),p=[];if(!t&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var f=c&&n;if(s&&e.length>0&&!r.call(e,0))for(var m=0;m<e.length;++m)p.push(String(m));if(i&&e.length>0)for(var g=0;g<e.length;++g)p.push(String(g));else for(var v in e)f&&"prototype"===v||!r.call(e,v)||p.push(String(v));if(l)for(var y=function(e){if("undefined"==typeof window||!h)return d(e);try{return d(e)}catch(e){return!1}}(e),b=0;b<u.length;++b)y&&"constructor"===u[b]||!r.call(e,u[b])||p.push(u[b]);return p}}e.exports=i},28894:function(){},28982:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M10.546 2.438a1.957 1.957 0 0 0 2.908 0L14.4 1.4a1.959 1.959 0 0 1 3.41 1.413l-.071 1.4a1.96 1.96 0 0 0 2.051 2.054l1.4-.071a1.959 1.959 0 0 1 1.41 3.41l-1.042.94a1.96 1.96 0 0 0 0 2.909l1.042.94a1.959 1.959 0 0 1-1.413 3.41l-1.4-.071a1.96 1.96 0 0 0-2.056 2.056l.071 1.4A1.959 1.959 0 0 1 14.4 22.6l-.941-1.041a1.96 1.96 0 0 0-2.908 0L9.606 22.6A1.959 1.959 0 0 1 6.2 21.192l.072-1.4a1.96 1.96 0 0 0-2.056-2.056l-1.4.071A1.958 1.958 0 0 1 1.4 14.4l1.041-.94a1.96 1.96 0 0 0 0-2.909L1.4 9.606A1.958 1.958 0 0 1 2.809 6.2l1.4.071a1.96 1.96 0 0 0 2.058-2.06L6.2 2.81A1.959 1.959 0 0 1 9.606 1.4Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M7.5 12.001a4.5 4.5 0 1 0 9 0 4.5 4.5 0 1 0-9 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},29009:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M20.25 9.75v-3a1.5 1.5 0 0 0-1.5-1.5H8.25v-1.5a1.5 1.5 0 0 0-1.5-1.5h-4.5a1.5 1.5 0 0 0-1.5 1.5v16.3a1.7 1.7 0 0 0 3.336.438l2.351-9.657A1.5 1.5 0 0 1 7.879 9.75H21.75a1.5 1.5 0 0 1 1.45 1.886l-2.2 9a1.5 1.5 0 0 1-1.45 1.114H2.447" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},29200:function(e){var t="170,181,186,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398,399,400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600,601,602,603,604,605,606,607,608,609,610,611,612,613,614,615,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630,631,632,633,634,635,636,637,638,639,640,641,642,643,644,645,646,647,648,649,650,651,652,653,654,655,656,657,658,659,660,661,662,663,664,665,666,667,668,669,670,671,672,673,674,675,676,677,678,679,680,681,682,683,684,685,686,687,688,689,690,691,692,693,694,695,696,697,698,699,700,701,702,703,704,705,710,711,712,713,714,715,716,717,718,719,720,721,736,737,738,739,740,748,750,880,881,882,883,884,886,887,890,891,892,893,895,902,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980,981,982,983,984,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000,1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,1015,1016,1017,1018,1019,1020,1021,1022,1023,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1120,1121,1122,1123,1124,1125,1126,1127,1128,1129,1130,1131,1132,1133,1134,1135,1136,1137,1138,1139,1140,1141,1142,1143,1144,1145,1146,1147,1148,1149,1150,1151,1152,1153,1162,1163,1164,1165,1166,1167,1168,1169,1170,1171,1172,1173,1174,1175,1176,1177,1178,1179,1180,1181,1182,1183,1184,1185,1186,1187,1188,1189,1190,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,1201,1202,1203,1204,1205,1206,1207,1208,1209,1210,1211,1212,1213,1214,1215,1216,1217,1218,1219,1220,1221,1222,1223,1224,1225,1226,1227,1228,1229,1230,1231,1232,1233,1234,1235,1236,1237,1238,1239,1240,1241,1242,1243,1244,1245,1246,1247,1248,1249,1250,1251,1252,1253,1254,1255,1256,1257,1258,1259,1260,1261,1262,1263,1264,1265,1266,1267,1268,1269,1270,1271,1272,1273,1274,1275,1276,1277,1278,1279,1280,1281,1282,1283,1284,1285,1286,1287,1288,1289,1290,1291,1292,1293,1294,1295,1296,1297,1298,1299,1300,1301,1302,1303,1304,1305,1306,1307,1308,1309,1310,1311,1312,1313,1314,1315,1316,1317,1318,1319,1320,1321,1322,1323,1324,1325,1326,1327,1329,1330,1331,1332,1333,1334,1335,1336,1337,1338,1339,1340,1341,1342,1343,1344,1345,1346,1347,1348,1349,1350,1351,1352,1353,1354,1355,1356,1357,1358,1359,1360,1361,1362,1363,1364,1365,1366,1369,1376,1377,1378,1379,1380,1381,1382,1383,1384,1385,1386,1387,1388,1389,1390,1391,1392,1393,1394,1395,1396,1397,1398,1399,1400,1401,1402,1403,1404,1405,1406,1407,1408,1409,1410,1411,1412,1413,1414,1415,1416,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1519,1520,1521,1522,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1646,1647,1649,1650,1651,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1716,1717,1718,1719,1720,1721,1722,1723,1724,1725,1726,1727,1728,1729,1730,1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1749,1765,1766,1774,1775,1786,1787,1788,1791,1808,1810,1811,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1822,1823,1824,1825,1826,1827,1828,1829,1830,1831,1832,1833,1834,1835,1836,1837,1838,1839,1869,1870,1871,1872,1873,1874,1875,1876,1877,1878,1879,1880,1881,1882,1883,1884,1885,1886,1887,1888,1889,1890,1891,1892,1893,1894,1895,1896,1897,1898,1899,1900,1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1969,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2036,2037,2042,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,2065,2066,2067,2068,2069,2074,2084,2088,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2130,2131,2132,2133,2134,2135,2136,2144,2145,2146,2147,2148,2149,2150,2151,2152,2153,2154,2208,2209,2210,2211,2212,2213,2214,2215,2216,2217,2218,2219,2220,2221,2222,2223,2224,2225,2226,2227,2228,2230,2231,2232,2233,2234,2235,2236,2237,2308,2309,2310,2311,2312,2313,2314,2315,2316,2317,2318,2319,2320,2321,2322,2323,2324,2325,2326,2327,2328,2329,2330,2331,2332,2333,2334,2335,2336,2337,2338,2339,2340,2341,2342,2343,2344,2345,2346,2347,2348,2349,2350,2351,2352,2353,2354,2355,2356,2357,2358,2359,2360,2361,2365,2384,2392,2393,2394,2395,2396,2397,2398,2399,2400,2401,2417,2418,2419,2420,2421,2422,2423,2424,2425,2426,2427,2428,2429,2430,2431,2432,2437,2438,2439,2440,2441,2442,2443,2444,2447,2448,2451,2452,2453,2454,2455,2456,2457,2458,2459,2460,2461,2462,2463,2464,2465,2466,2467,2468,2469,2470,2471,2472,2474,2475,2476,2477,2478,2479,2480,2482,2486,2487,2488,2489,2493,2510,2524,2525,2527,2528,2529,2544,2545,2556,2565,2566,2567,2568,2569,2570,2575,2576,2579,2580,2581,2582,2583,2584,2585,2586,2587,2588,2589,2590,2591,2592,2593,2594,2595,2596,2597,2598,2599,2600,2602,2603,2604,2605,2606,2607,2608,2610,2611,2613,2614,2616,2617,2649,2650,2651,2652,2654,2674,2675,2676,2693,2694,2695,2696,2697,2698,2699,2700,2701,2703,2704,2705,2707,2708,2709,2710,2711,2712,2713,2714,2715,2716,2717,2718,2719,2720,2721,2722,2723,2724,2725,2726,2727,2728,2730,2731,2732,2733,2734,2735,2736,2738,2739,2741,2742,2743,2744,2745,2749,2768,2784,2785,2809,2821,2822,2823,2824,2825,2826,2827,2828,2831,2832,2835,2836,2837,2838,2839,2840,2841,2842,2843,2844,2845,2846,2847,2848,2849,2850,2851,2852,2853,2854,2855,2856,2858,2859,2860,2861,2862,2863,2864,2866,2867,2869,2870,2871,2872,2873,2877,2908,2909,2911,2912,2913,2929,2947,2949,2950,2951,2952,2953,2954,2958,2959,2960,2962,2963,2964,2965,2969,2970,2972,2974,2975,2979,2980,2984,2985,2986,2990,2991,2992,2993,2994,2995,2996,2997,2998,2999,3000,3001,3024,3077,3078,3079,3080,3081,3082,3083,3084,3086,3087,3088,3090,3091,3092,3093,3094,3095,3096,3097,3098,3099,3100,3101,3102,3103,3104,3105,3106,3107,3108,3109,3110,3111,3112,3114,3115,3116,3117,3118,3119,3120,3121,3122,3123,3124,3125,3126,3127,3128,3129,3133,3160,3161,3162,3168,3169,3200,3205,3206,3207,3208,3209,3210,3211,3212,3214,3215,3216,3218,3219,3220,3221,3222,3223,3224,3225,3226,3227,3228,3229,3230,3231,3232,3233,3234,3235,3236,3237,3238,3239,3240,3242,3243,3244,3245,3246,3247,3248,3249,3250,3251,3253,3254,3255,3256,3257,3261,3294,3296,3297,3313,3314,3333,3334,3335,3336,3337,3338,3339,3340,3342,3343,3344,3346,3347,3348,3349,3350,3351,3352,3353,3354,3355,3356,3357,3358,3359,3360,3361,3362,3363,3364,3365,3366,3367,3368,3369,3370,3371,3372,3373,3374,3375,3376,3377,3378,3379,3380,3381,3382,3383,3384,3385,3386,3389,3406,3412,3413,3414,3423,3424,3425,3450,3451,3452,3453,3454,3455,3461,3462,3463,3464,3465,3466,3467,3468,3469,3470,3471,3472,3473,3474,3475,3476,3477,3478,3482,3483,3484,3485,3486,3487,3488,3489,3490,3491,3492,3493,3494,3495,3496,3497,3498,3499,3500,3501,3502,3503,3504,3505,3507,3508,3509,3510,3511,3512,3513,3514,3515,3517,3520,3521,3522,3523,3524,3525,3526,3585,3586,3587,3588,3589,3590,3591,3592,3593,3594,3595,3596,3597,3598,3599,3600,3601,3602,3603,3604,3605,3606,3607,3608,3609,3610,3611,3612,3613,3614,3615,3616,3617,3618,3619,3620,3621,3622,3623,3624,3625,3626,3627,3628,3629,3630,3631,3632,3634,3635,3648,3649,3650,3651,3652,3653,3654,3713,3714,3716,3719,3720,3722,3725,3732,3733,3734,3735,3737,3738,3739,3740,3741,3742,3743,3745,3746,3747,3749,3751,3754,3755,3757,3758,3759,3760,3762,3763,3773,3776,3777,3778,3779,3780,3782,3804,3805,3806,3807,3840,3904,3905,3906,3907,3908,3909,3910,3911,3913,3914,3915,3916,3917,3918,3919,3920,3921,3922,3923,3924,3925,3926,3927,3928,3929,3930,3931,3932,3933,3934,3935,3936,3937,3938,3939,3940,3941,3942,3943,3944,3945,3946,3947,3948,3976,3977,3978,3979,3980,4096,4097,4098,4099,4100,4101,4102,4103,4104,4105,4106,4107,4108,4109,4110,4111,4112,4113,4114,4115,4116,4117,4118,4119,4120,4121,4122,4123,4124,4125,4126,4127,4128,4129,4130,4131,4132,4133,4134,4135,4136,4137,4138,4159,4176,4177,4178,4179,4180,4181,4186,4187,4188,4189,4193,4197,4198,4206,4207,4208,4213,4214,4215,4216,4217,4218,4219,4220,4221,4222,4223,4224,4225,4238,4256,4257,4258,4259,4260,4261,4262,4263,4264,4265,4266,4267,4268,4269,4270,4271,4272,4273,4274,4275,4276,4277,4278,4279,4280,4281,4282,4283,4284,4285,4286,4287,4288,4289,4290,4291,4292,4293,4295,4301,4304,4305,4306,4307,4308,4309,4310,4311,4312,4313,4314,4315,4316,4317,4318,4319,4320,4321,4322,4323,4324,4325,4326,4327,4328,4329,4330,4331,4332,4333,4334,4335,4336,4337,4338,4339,4340,4341,4342,4343,4344,4345,4346,4348,4349,4350,4351,4352,4353,4354,4355,4356,4357,4358,4359,4360,4361,4362,4363,4364,4365,4366,4367,4368,4369,4370,4371,4372,4373,4374,4375,4376,4377,4378,4379,4380,4381,4382,4383,4384,4385,4386,4387,4388,4389,4390,4391,4392,4393,4394,4395,4396,4397,4398,4399,4400,4401,4402,4403,4404,4405,4406,4407,4408,4409,4410,4411,4412,4413,4414,4415,4416,4417,4418,4419,4420,4421,4422,4423,4424,4425,4426,4427,4428,4429,4430,4431,4432,4433,4434,4435,4436,4437,4438,4439,4440,4441,4442,4443,4444,4445,4446,4447,4448,4449,4450,4451,4452,4453,4454,4455,4456,4457,4458,4459,4460,4461,4462,4463,4464,4465,4466,4467,4468,4469,4470,4471,4472,4473,4474,4475,4476,4477,4478,4479,4480,4481,4482,4483,4484,4485,4486,4487,4488,4489,4490,4491,4492,4493,4494,4495,4496,4497,4498,4499,4500,4501,4502,4503,4504,4505,4506,4507,4508,4509,4510,4511,4512,4513,4514,4515,4516,4517,4518,4519,4520,4521,4522,4523,4524,4525,4526,4527,4528,4529,4530,4531,4532,4533,4534,4535,4536,4537,4538,4539,4540,4541,4542,4543,4544,4545,4546,4547,4548,4549,4550,4551,4552,4553,4554,4555,4556,4557,4558,4559,4560,4561,4562,4563,4564,4565,4566,4567,4568,4569,4570,4571,4572,4573,4574,4575,4576,4577,4578,4579,4580,4581,4582,4583,4584,4585,4586,4587,4588,4589,4590,4591,4592,4593,4594,4595,4596,4597,4598,4599,4600,4601,4602,4603,4604,4605,4606,4607,4608,4609,4610,4611,4612,4613,4614,4615,4616,4617,4618,4619,4620,4621,4622,4623,4624,4625,4626,4627,4628,4629,4630,4631,4632,4633,4634,4635,4636,4637,4638,4639,4640,4641,4642,4643,4644,4645,4646,4647,4648,4649,4650,4651,4652,4653,4654,4655,4656,4657,4658,4659,4660,4661,4662,4663,4664,4665,4666,4667,4668,4669,4670,4671,4672,4673,4674,4675,4676,4677,4678,4679,4680,4682,4683,4684,4685,4688,4689,4690,4691,4692,4693,4694,4696,4698,4699,4700,4701,4704,4705,4706,4707,4708,4709,4710,4711,4712,4713,4714,4715,4716,4717,4718,4719,4720,4721,4722,4723,4724,4725,4726,4727,4728,4729,4730,4731,4732,4733,4734,4735,4736,4737,4738,4739,4740,4741,4742,4743,4744,4746,4747,4748,4749,4752,4753,4754,4755,4756,4757,4758,4759,4760,4761,4762,4763,4764,4765,4766,4767,4768,4769,4770,4771,4772,4773,4774,4775,4776,4777,4778,4779,4780,4781,4782,4783,4784,4786,4787,4788,4789,4792,4793,4794,4795,4796,4797,4798,4800,4802,4803,4804,4805,4808,4809,4810,4811,4812,4813,4814,4815,4816,4817,4818,4819,4820,4821,4822,4824,4825,4826,4827,4828,4829,4830,4831,4832,4833,4834,4835,4836,4837,4838,4839,4840,4841,4842,4843,4844,4845,4846,4847,4848,4849,4850,4851,4852,4853,4854,4855,4856,4857,4858,4859,4860,4861,4862,4863,4864,4865,4866,4867,4868,4869,4870,4871,4872,4873,4874,4875,4876,4877,4878,4879,4880,4882,4883,4884,4885,4888,4889,4890,4891,4892,4893,4894,4895,4896,4897,4898,4899,4900,4901,4902,4903,4904,4905,4906,4907,4908,4909,4910,4911,4912,4913,4914,4915,4916,4917,4918,4919,4920,4921,4922,4923,4924,4925,4926,4927,4928,4929,4930,4931,4932,4933,4934,4935,4936,4937,4938,4939,4940,4941,4942,4943,4944,4945,4946,4947,4948,4949,4950,4951,4952,4953,4954,4992,4993,4994,4995,4996,4997,4998,4999,5000,5001,5002,5003,5004,5005,5006,5007,5024,5025,5026,5027,5028,5029,5030,5031,5032,5033,5034,5035,5036,5037,5038,5039,5040,5041,5042,5043,5044,5045,5046,5047,5048,5049,5050,5051,5052,5053,5054,5055,5056,5057,5058,5059,5060,5061,5062,5063,5064,5065,5066,5067,5068,5069,5070,5071,5072,5073,5074,5075,5076,5077,5078,5079,5080,5081,5082,5083,5084,5085,5086,5087,5088,5089,5090,5091,5092,5093,5094,5095,5096,5097,5098,5099,5100,5101,5102,5103,5104,5105,5106,5107,5108,5109,5112,5113,5114,5115,5116,5117,5121,5122,5123,5124,5125,5126,5127,5128,5129,5130,5131,5132,5133,5134,5135,5136,5137,5138,5139,5140,5141,5142,5143,5144,5145,5146,5147,5148,5149,5150,5151,5152,5153,5154,5155,5156,5157,5158,5159,5160,5161,5162,5163,5164,5165,5166,5167,5168,5169,5170,5171,5172,5173,5174,5175,5176,5177,5178,5179,5180,5181,5182,5183,5184,5185,5186,5187,5188,5189,5190,5191,5192,5193,5194,5195,5196,5197,5198,5199,5200,5201,5202,5203,5204,5205,5206,5207,5208,5209,5210,5211,5212,5213,5214,5215,5216,5217,5218,5219,5220,5221,5222,5223,5224,5225,5226,5227,5228,5229,5230,5231,5232,5233,5234,5235,5236,5237,5238,5239,5240,5241,5242,5243,5244,5245,5246,5247,5248,5249,5250,5251,5252,5253,5254,5255,5256,5257,5258,5259,5260,5261,5262,5263,5264,5265,5266,5267,5268,5269,5270,5271,5272,5273,5274,5275,5276,5277,5278,5279,5280,5281,5282,5283,5284,5285,5286,5287,5288,5289,5290,5291,5292,5293,5294,5295,5296,5297,5298,5299,5300,5301,5302,5303,5304,5305,5306,5307,5308,5309,5310,5311,5312,5313,5314,5315,5316,5317,5318,5319,5320,5321,5322,5323,5324,5325,5326,5327,5328,5329,5330,5331,5332,5333,5334,5335,5336,5337,5338,5339,5340,5341,5342,5343,5344,5345,5346,5347,5348,5349,5350,5351,5352,5353,5354,5355,5356,5357,5358,5359,5360,5361,5362,5363,5364,5365,5366,5367,5368,5369,5370,5371,5372,5373,5374,5375,5376,5377,5378,5379,5380,5381,5382,5383,5384,5385,5386,5387,5388,5389,5390,5391,5392,5393,5394,5395,5396,5397,5398,5399,5400,5401,5402,5403,5404,5405,5406,5407,5408,5409,5410,5411,5412,5413,5414,5415,5416,5417,5418,5419,5420,5421,5422,5423,5424,5425,5426,5427,5428,5429,5430,5431,5432,5433,5434,5435,5436,5437,5438,5439,5440,5441,5442,5443,5444,5445,5446,5447,5448,5449,5450,5451,5452,5453,5454,5455,5456,5457,5458,5459,5460,5461,5462,5463,5464,5465,5466,5467,5468,5469,5470,5471,5472,5473,5474,5475,5476,5477,5478,5479,5480,5481,5482,5483,5484,5485,5486,5487,5488,5489,5490,5491,5492,5493,5494,5495,5496,5497,5498,5499,5500,5501,5502,5503,5504,5505,5506,5507,5508,5509,5510,5511,5512,5513,5514,5515,5516,5517,5518,5519,5520,5521,5522,5523,5524,5525,5526,5527,5528,5529,5530,5531,5532,5533,5534,5535,5536,5537,5538,5539,5540,5541,5542,5543,5544,5545,5546,5547,5548,5549,5550,5551,5552,5553,5554,5555,5556,5557,5558,5559,5560,5561,5562,5563,5564,5565,5566,5567,5568,5569,5570,5571,5572,5573,5574,5575,5576,5577,5578,5579,5580,5581,5582,5583,5584,5585,5586,5587,5588,5589,5590,5591,5592,5593,5594,5595,5596,5597,5598,5599,5600,5601,5602,5603,5604,5605,5606,5607,5608,5609,5610,5611,5612,5613,5614,5615,5616,5617,5618,5619,5620,5621,5622,5623,5624,5625,5626,5627,5628,5629,5630,5631,5632,5633,5634,5635,5636,5637,5638,5639,5640,5641,5642,5643,5644,5645,5646,5647,5648,5649,5650,5651,5652,5653,5654,5655,5656,5657,5658,5659,5660,5661,5662,5663,5664,5665,5666,5667,5668,5669,5670,5671,5672,5673,5674,5675,5676,5677,5678,5679,5680,5681,5682,5683,5684,5685,5686,5687,5688,5689,5690,5691,5692,5693,5694,5695,5696,5697,5698,5699,5700,5701,5702,5703,5704,5705,5706,5707,5708,5709,5710,5711,5712,5713,5714,5715,5716,5717,5718,5719,5720,5721,5722,5723,5724,5725,5726,5727,5728,5729,5730,5731,5732,5733,5734,5735,5736,5737,5738,5739,5740,5743,5744,5745,5746,5747,5748,5749,5750,5751,5752,5753,5754,5755,5756,5757,5758,5759,5761,5762,5763,5764,5765,5766,5767,5768,5769,5770,5771,5772,5773,5774,5775,5776,5777,5778,5779,5780,5781,5782,5783,5784,5785,5786,5792,5793,5794,5795,5796,5797,5798,5799,5800,5801,5802,5803,5804,5805,5806,5807,5808,5809,5810,5811,5812,5813,5814,5815,5816,5817,5818,5819,5820,5821,5822,5823,5824,5825,5826,5827,5828,5829,5830,5831,5832,5833,5834,5835,5836,5837,5838,5839,5840,5841,5842,5843,5844,5845,5846,5847,5848,5849,5850,5851,5852,5853,5854,5855,5856,5857,5858,5859,5860,5861,5862,5863,5864,5865,5866,5870,5871,5872,5873,5874,5875,5876,5877,5878,5879,5880,5888,5889,5890,5891,5892,5893,5894,5895,5896,5897,5898,5899,5900,5902,5903,5904,5905,5920,5921,5922,5923,5924,5925,5926,5927,5928,5929,5930,5931,5932,5933,5934,5935,5936,5937,5952,5953,5954,5955,5956,5957,5958,5959,5960,5961,5962,5963,5964,5965,5966,5967,5968,5969,5984,5985,5986,5987,5988,5989,5990,5991,5992,5993,5994,5995,5996,5998,5999,6000,6016,6017,6018,6019,6020,6021,6022,6023,6024,6025,6026,6027,6028,6029,6030,6031,6032,6033,6034,6035,6036,6037,6038,6039,6040,6041,6042,6043,6044,6045,6046,6047,6048,6049,6050,6051,6052,6053,6054,6055,6056,6057,6058,6059,6060,6061,6062,6063,6064,6065,6066,6067,6103,6108,6176,6177,6178,6179,6180,6181,6182,6183,6184,6185,6186,6187,6188,6189,6190,6191,6192,6193,6194,6195,6196,6197,6198,6199,6200,6201,6202,6203,6204,6205,6206,6207,6208,6209,6210,6211,6212,6213,6214,6215,6216,6217,6218,6219,6220,6221,6222,6223,6224,6225,6226,6227,6228,6229,6230,6231,6232,6233,6234,6235,6236,6237,6238,6239,6240,6241,6242,6243,6244,6245,6246,6247,6248,6249,6250,6251,6252,6253,6254,6255,6256,6257,6258,6259,6260,6261,6262,6263,6264,6272,6273,6274,6275,6276,6277,6278,6279,6280,6281,6282,6283,6284,6285,6286,6287,6288,6289,6290,6291,6292,6293,6294,6295,6296,6297,6298,6299,6300,6301,6302,6303,6304,6305,6306,6307,6308,6309,6310,6311,6312,6314,6320,6321,6322,6323,6324,6325,6326,6327,6328,6329,6330,6331,6332,6333,6334,6335,6336,6337,6338,6339,6340,6341,6342,6343,6344,6345,6346,6347,6348,6349,6350,6351,6352,6353,6354,6355,6356,6357,6358,6359,6360,6361,6362,6363,6364,6365,6366,6367,6368,6369,6370,6371,6372,6373,6374,6375,6376,6377,6378,6379,6380,6381,6382,6383,6384,6385,6386,6387,6388,6389,6400,6401,6402,6403,6404,6405,6406,6407,6408,6409,6410,6411,6412,6413,6414,6415,6416,6417,6418,6419,6420,6421,6422,6423,6424,6425,6426,6427,6428,6429,6430,6480,6481,6482,6483,6484,6485,6486,6487,6488,6489,6490,6491,6492,6493,6494,6495,6496,6497,6498,6499,6500,6501,6502,6503,6504,6505,6506,6507,6508,6509,6512,6513,6514,6515,6516,6528,6529,6530,6531,6532,6533,6534,6535,6536,6537,6538,6539,6540,6541,6542,6543,6544,6545,6546,6547,6548,6549,6550,6551,6552,6553,6554,6555,6556,6557,6558,6559,6560,6561,6562,6563,6564,6565,6566,6567,6568,6569,6570,6571,6576,6577,6578,6579,6580,6581,6582,6583,6584,6585,6586,6587,6588,6589,6590,6591,6592,6593,6594,6595,6596,6597,6598,6599,6600,6601,6656,6657,6658,6659,6660,6661,6662,6663,6664,6665,6666,6667,6668,6669,6670,6671,6672,6673,6674,6675,6676,6677,6678,6688,6689,6690,6691,6692,6693,6694,6695,6696,6697,6698,6699,6700,6701,6702,6703,6704,6705,6706,6707,6708,6709,6710,6711,6712,6713,6714,6715,6716,6717,6718,6719,6720,6721,6722,6723,6724,6725,6726,6727,6728,6729,6730,6731,6732,6733,6734,6735,6736,6737,6738,6739,6740,6823,6917,6918,6919,6920,6921,6922,6923,6924,6925,6926,6927,6928,6929,6930,6931,6932,6933,6934,6935,6936,6937,6938,6939,6940,6941,6942,6943,6944,6945,6946,6947,6948,6949,6950,6951,6952,6953,6954,6955,6956,6957,6958,6959,6960,6961,6962,6963,6981,6982,6983,6984,6985,6986,6987,7043,7044,7045,7046,7047,7048,7049,7050,7051,7052,7053,7054,7055,7056,7057,7058,7059,7060,7061,7062,7063,7064,7065,7066,7067,7068,7069,7070,7071,7072,7086,7087,7098,7099,7100,7101,7102,7103,7104,7105,7106,7107,7108,7109,7110,7111,7112,7113,7114,7115,7116,7117,7118,7119,7120,7121,7122,7123,7124,7125,7126,7127,7128,7129,7130,7131,7132,7133,7134,7135,7136,7137,7138,7139,7140,7141,7168,7169,7170,7171,7172,7173,7174,7175,7176,7177,7178,7179,7180,7181,7182,7183,7184,7185,7186,7187,7188,7189,7190,7191,7192,7193,7194,7195,7196,7197,7198,7199,7200,7201,7202,7203,7245,7246,7247,7258,7259,7260,7261,7262,7263,7264,7265,7266,7267,7268,7269,7270,7271,7272,7273,7274,7275,7276,7277,7278,7279,7280,7281,7282,7283,7284,7285,7286,7287,7288,7289,7290,7291,7292,7293,7296,7297,7298,7299,7300,7301,7302,7303,7304,7312,7313,7314,7315,7316,7317,7318,7319,7320,7321,7322,7323,7324,7325,7326,7327,7328,7329,7330,7331,7332,7333,7334,7335,7336,7337,7338,7339,7340,7341,7342,7343,7344,7345,7346,7347,7348,7349,7350,7351,7352,7353,7354,7357,7358,7359,7401,7402,7403,7404,7406,7407,7408,7409,7413,7414,7424,7425,7426,7427,7428,7429,7430,7431,7432,7433,7434,7435,7436,7437,7438,7439,7440,7441,7442,7443,7444,7445,7446,7447,7448,7449,7450,7451,7452,7453,7454,7455,7456,7457,7458,7459,7460,7461,7462,7463,7464,7465,7466,7467,7468,7469,7470,7471,7472,7473,7474,7475,7476,7477,7478,7479,7480,7481,7482,7483,7484,7485,7486,7487,7488,7489,7490,7491,7492,7493,7494,7495,7496,7497,7498,7499,7500,7501,7502,7503,7504,7505,7506,7507,7508,7509,7510,7511,7512,7513,7514,7515,7516,7517,7518,7519,7520,7521,7522,7523,7524,7525,7526,7527,7528,7529,7530,7531,7532,7533,7534,7535,7536,7537,7538,7539,7540,7541,7542,7543,7544,7545,7546,7547,7548,7549,7550,7551,7552,7553,7554,7555,7556,7557,7558,7559,7560,7561,7562,7563,7564,7565,7566,7567,7568,7569,7570,7571,7572,7573,7574,7575,7576,7577,7578,7579,7580,7581,7582,7583,7584,7585,7586,7587,7588,7589,7590,7591,7592,7593,7594,7595,7596,7597,7598,7599,7600,7601,7602,7603,7604,7605,7606,7607,7608,7609,7610,7611,7612,7613,7614,7615,7680,7681,7682,7683,7684,7685,7686,7687,7688,7689,7690,7691,7692,7693,7694,7695,7696,7697,7698,7699,7700,7701,7702,7703,7704,7705,7706,7707,7708,7709,7710,7711,7712,7713,7714,7715,7716,7717,7718,7719,7720,7721,7722,7723,7724,7725,7726,7727,7728,7729,7730,7731,7732,7733,7734,7735,7736,7737,7738,7739,7740,7741,7742,7743,7744,7745,7746,7747,7748,7749,7750,7751,7752,7753,7754,7755,7756,7757,7758,7759,7760,7761,7762,7763,7764,7765,7766,7767,7768,7769,7770,7771,7772,7773,7774,7775,7776,7777,7778,7779,7780,7781,7782,7783,7784,7785,7786,7787,7788,7789,7790,7791,7792,7793,7794,7795,7796,7797,7798,7799,7800,7801,7802,7803,7804,7805,7806,7807,7808,7809,7810,7811,7812,7813,7814,7815,7816,7817,7818,7819,7820,7821,7822,7823,7824,7825,7826,7827,7828,7829,7830,7831,7832,7833,7834,7835,7836,7837,7838,7839,7840,7841,7842,7843,7844,7845,7846,7847,7848,7849,7850,7851,7852,7853,7854,7855,7856,7857,7858,7859,7860,7861,7862,7863,7864,7865,7866,7867,7868,7869,7870,7871,7872,7873,7874,7875,7876,7877,7878,7879,7880,7881,7882,7883,7884,7885,7886,7887,7888,7889,7890,7891,7892,7893,7894,7895,7896,7897,7898,7899,7900,7901,7902,7903,7904,7905,7906,7907,7908,7909,7910,7911,7912,7913,7914,7915,7916,7917,7918,7919,7920,7921,7922,7923,7924,7925,7926,7927,7928,7929,7930,7931,7932,7933,7934,7935,7936,7937,7938,7939,7940,7941,7942,7943,7944,7945,7946,7947,7948,7949,7950,7951,7952,7953,7954,7955,7956,7957,7960,7961,7962,7963,7964,7965,7968,7969,7970,7971,7972,7973,7974,7975,7976,7977,7978,7979,7980,7981,7982,7983,7984,7985,7986,7987,7988,7989,7990,7991,7992,7993,7994,7995,7996,7997,7998,7999,8000,8001,8002,8003,8004,8005,8008,8009,8010,8011,8012,8013,8016,8017,8018,8019,8020,8021,8022,8023,8025,8027,8029,8031,8032,8033,8034,8035,8036,8037,8038,8039,8040,8041,8042,8043,8044,8045,8046,8047,8048,8049,8050,8051,8052,8053,8054,8055,8056,8057,8058,8059,8060,8061,8064,8065,8066,8067,8068,8069,8070,8071,8072,8073,8074,8075,8076,8077,8078,8079,8080,8081,8082,8083,8084,8085,8086,8087,8088,8089,8090,8091,8092,8093,8094,8095,8096,8097,8098,8099,8100,8101,8102,8103,8104,8105,8106,8107,8108,8109,8110,8111,8112,8113,8114,8115,8116,8118,8119,8120,8121,8122,8123,8124,8126,8130,8131,8132,8134,8135,8136,8137,8138,8139,8140,8144,8145,8146,8147,8150,8151,8152,8153,8154,8155,8160,8161,8162,8163,8164,8165,8166,8167,8168,8169,8170,8171,8172,8178,8179,8180,8182,8183,8184,8185,8186,8187,8188,8305,8319,8336,8337,8338,8339,8340,8341,8342,8343,8344,8345,8346,8347,8348,8450,8455,8458,8459,8460,8461,8462,8463,8464,8465,8466,8467,8469,8472,8473,8474,8475,8476,8477,8484,8486,8488,8490,8491,8492,8493,8494,8495,8496,8497,8498,8499,8500,8501,8502,8503,8504,8505,8508,8509,8510,8511,8517,8518,8519,8520,8521,8526,8544,8545,8546,8547,8548,8549,8550,8551,8552,8553,8554,8555,8556,8557,8558,8559,8560,8561,8562,8563,8564,8565,8566,8567,8568,8569,8570,8571,8572,8573,8574,8575,8576,8577,8578,8579,8580,8581,8582,8583,8584,11264,11265,11266,11267,11268,11269,11270,11271,11272,11273,11274,11275,11276,11277,11278,11279,11280,11281,11282,11283,11284,11285,11286,11287,11288,11289,11290,11291,11292,11293,11294,11295,11296,11297,11298,11299,11300,11301,11302,11303,11304,11305,11306,11307,11308,11309,11310,11312,11313,11314,11315,11316,11317,11318,11319,11320,11321,11322,11323,11324,11325,11326,11327,11328,11329,11330,11331,11332,11333,11334,11335,11336,11337,11338,11339,11340,11341,11342,11343,11344,11345,11346,11347,11348,11349,11350,11351,11352,11353,11354,11355,11356,11357,11358,11360,11361,11362,11363,11364,11365,11366,11367,11368,11369,11370,11371,11372,11373,11374,11375,11376,11377,11378,11379,11380,11381,11382,11383,11384,11385,11386,11387,11388,11389,11390,11391,11392,11393,11394,11395,11396,11397,11398,11399,11400,11401,11402,11403,11404,11405,11406,11407,11408,11409,11410,11411,11412,11413,11414,11415,11416,11417,11418,11419,11420,11421,11422,11423,11424,11425,11426,11427,11428,11429,11430,11431,11432,11433,11434,11435,11436,11437,11438,11439,11440,11441,11442,11443,11444,11445,11446,11447,11448,11449,11450,11451,11452,11453,11454,11455,11456,11457,11458,11459,11460,11461,11462,11463,11464,11465,11466,11467,11468,11469,11470,11471,11472,11473,11474,11475,11476,11477,11478,11479,11480,11481,11482,11483,11484,11485,11486,11487,11488,11489,11490,11491,11492,11499,11500,11501,11502,11506,11507,11520,11521,11522,11523,11524,11525,11526,11527,11528,11529,11530,11531,11532,11533,11534,11535,11536,11537,11538,11539,11540,11541,11542,11543,11544,11545,11546,11547,11548,11549,11550,11551,11552,11553,11554,11555,11556,11557,11559,11565,11568,11569,11570,11571,11572,11573,11574,11575,11576,11577,11578,11579,11580,11581,11582,11583,11584,11585,11586,11587,11588,11589,11590,11591,11592,11593,11594,11595,11596,11597,11598,11599,11600,11601,11602,11603,11604,11605,11606,11607,11608,11609,11610,11611,11612,11613,11614,11615,11616,11617,11618,11619,11620,11621,11622,11623,11631,11648,11649,11650,11651,11652,11653,11654,11655,11656,11657,11658,11659,11660,11661,11662,11663,11664,11665,11666,11667,11668,11669,11670,11680,11681,11682,11683,11684,11685,11686,11688,11689,11690,11691,11692,11693,11694,11696,11697,11698,11699,11700,11701,11702,11704,11705,11706,11707,11708,11709,11710,11712,11713,11714,11715,11716,11717,11718,11720,11721,11722,11723,11724,11725,11726,11728,11729,11730,11731,11732,11733,11734,11736,11737,11738,11739,11740,11741,11742,12293,12294,12295,12321,12322,12323,12324,12325,12326,12327,12328,12329,12337,12338,12339,12340,12341,12344,12345,12346,12347,12348,12353,12354,12355,12356,12357,12358,12359,12360,12361,12362,12363,12364,12365,12366,12367,12368,12369,12370,12371,12372,12373,12374,12375,12376,12377,12378,12379,12380,12381,12382,12383,12384,12385,12386,12387,12388,12389,12390,12391,12392,12393,12394,12395,12396,12397,12398,12399,12400,12401,12402,12403,12404,12405,12406,12407,12408,12409,12410,12411,12412,12413,12414,12415,12416,12417,12418,12419,12420,12421,12422,12423,12424,12425,12426,12427,12428,12429,12430,12431,12432,12433,12434,12435,12436,12437,12438,12443,12444,12445,12446,12447,12449,12450,12451,12452,12453,12454,12455,12456,12457,12458,12459,12460,12461,12462,12463,12464,12465,12466,12467,12468,12469,12470,12471,12472,12473,12474,12475,12476,12477,12478,12479,12480,12481,12482,12483,12484,12485,12486,12487,12488,12489,12490,12491,12492,12493,12494,12495,12496,12497,12498,12499,12500,12501,12502,12503,12504,12505,12506,12507,12508,12509,12510,12511,12512,12513,12514,12515,12516,12517,12518,12519,12520,12521,12522,12523,12524,12525,12526,12527,12528,12529,12530,12531,12532,12533,12534,12535,12536,12537,12538,12540,12541,12542,12543,12549,12550,12551,12552,12553,12554,12555,12556,12557,12558,12559,12560,12561,12562,12563,12564,12565,12566,12567,12568,12569,12570,12571,12572,12573,12574,12575,12576,12577,12578,12579,12580,12581,12582,12583,12584,12585,12586,12587,12588,12589,12590,12591,12593,12594,12595,12596,12597,12598,12599,12600,12601,12602,12603,12604,12605,12606,12607,12608,12609,12610,12611,12612,12613,12614,12615,12616,12617,12618,12619,12620,12621,12622,12623,12624,12625,12626,12627,12628,12629,12630,12631,12632,12633,12634,12635,12636,12637,12638,12639,12640,12641,12642,12643,12644,12645,12646,12647,12648,12649,12650,12651,12652,12653,12654,12655,12656,12657,12658,12659,12660,12661,12662,12663,12664,12665,12666,12667,12668,12669,12670,12671,12672,12673,12674,12675,12676,12677,12678,12679,12680,12681,12682,12683,12684,12685,12686,12704,12705,12706,12707,12708,12709,12710,12711,12712,12713,12714,12715,12716,12717,12718,12719,12720,12721,12722,12723,12724,12725,12726,12727,12728,12729,12730,12784,12785,12786,12787,12788,12789,12790,12791,12792,12793,12794,12795,12796,12797,12798,12799,13312,13313,13314,13315,13316,13317,13318,13319,13320,13321,13322,13323,13324,13325,13326,13327,13328,13329,13330,13331,13332,13333,13334,13335,13336,13337,13338,13339,13340,13341,13342,13343,13344,13345,13346,13347,13348,13349,13350,13351,13352,13353,13354,13355,13356,13357,13358,13359,13360,13361,13362,13363,13364,13365,13366,13367,13368,13369,13370,13371,13372,13373,13374,13375,13376,13377,13378,13379,13380,13381,13382,13383,13384,13385,13386,13387,13388,13389,13390,13391,13392,13393,13394,13395,13396,13397,13398,13399,13400,13401,13402,13403,13404,13405,13406,13407,13408,13409,13410,13411,13412,13413,13414,13415,13416,13417,13418,13419,13420,13421,13422,13423,13424,13425,13426,13427,13428,13429,13430,13431,13432,13433,13434,13435,13436,13437,13438,13439,13440,13441,13442,13443,13444,13445,13446,13447,13448,13449,13450,13451,13452,13453,13454,13455,13456,13457,13458,13459,13460,13461,13462,13463,13464,13465,13466,13467,13468,13469,13470,13471,13472,13473,13474,13475,13476,13477,13478,13479,13480,13481,13482,13483,13484,13485,13486,13487,13488,13489,13490,13491,13492,13493,13494,13495,13496,13497,13498,13499,13500,13501,13502,13503,13504,13505,13506,13507,13508,13509,13510,13511,13512,13513,13514,13515,13516,13517,13518,13519,13520,13521,13522,13523,13524,13525,13526,13527,13528,13529,13530,13531,13532,13533,13534,13535,13536,13537,13538,13539,13540,13541,13542,13543,13544,13545,13546,13547,13548,13549,13550,13551,13552,13553,13554,13555,13556,13557,13558,13559,13560,13561,13562,13563,13564,13565,13566,13567,13568,13569,13570,13571,13572,13573,13574,13575,13576,13577,13578,13579,13580,13581,13582,13583,13584,13585,13586,13587,13588,13589,13590,13591,13592,13593,13594,13595,13596,13597,13598,13599,13600,13601,13602,13603,13604,13605,13606,13607,13608,13609,13610,13611,13612,13613,13614,13615,13616,13617,13618,13619,13620,13621,13622,13623,13624,13625,13626,13627,13628,13629,13630,13631,13632,13633,13634,13635,13636,13637,13638,13639,13640,13641,13642,13643,13644,13645,13646,13647,13648,13649,13650,13651,13652,13653,13654,13655,13656,13657,13658,13659,13660,13661,13662,13663,13664,13665,13666,13667,13668,13669,13670,13671,13672,13673,13674,13675,13676,13677,13678,13679,13680,13681,13682,13683,13684,13685,13686,13687,13688,13689,13690,13691,13692,13693,13694,13695,13696,13697,13698,13699,13700,13701,13702,13703,13704,13705,13706,13707,13708,13709,13710,13711,13712,13713,13714,13715,13716,13717,13718,13719,13720,13721,13722,13723,13724,13725,13726,13727,13728,13729,13730,13731,13732,13733,13734,13735,13736,13737,13738,13739,13740,13741,13742,13743,13744,13745,13746,13747,13748,13749,13750,13751,13752,13753,13754,13755,13756,13757,13758,13759,13760,13761,13762,13763,13764,13765,13766,13767,13768,13769,13770,13771,13772,13773,13774,13775,13776,13777,13778,13779,13780,13781,13782,13783,13784,13785,13786,13787,13788,13789,13790,13791,13792,13793,13794,13795,13796,13797,13798,13799,13800,13801,13802,13803,13804,13805,13806,13807,13808,13809,13810,13811,13812,13813,13814,13815,13816,13817,13818,13819,13820,13821,13822,13823,13824,13825,13826,13827,13828,13829,13830,13831,13832,13833,13834,13835,13836,13837,13838,13839,13840,13841,13842,13843,13844,13845,13846,13847,13848,13849,13850,13851,13852,13853,13854,13855,13856,13857,13858,13859,13860,13861,13862,13863,13864,13865,13866,13867,13868,13869,13870,13871,13872,13873,13874,13875,13876,13877,13878,13879,13880,13881,13882,13883,13884,13885,13886,13887,13888,13889,13890,13891,13892,13893,13894,13895,13896,13897,13898,13899,13900,13901,13902,13903,13904,13905,13906,13907,13908,13909,13910,13911,13912,13913,13914,13915,13916,13917,13918,13919,13920,13921,13922,13923,13924,13925,13926,13927,13928,13929,13930,13931,13932,13933,13934,13935,13936,13937,13938,13939,13940,13941,13942,13943,13944,13945,13946,13947,13948,13949,13950,13951,13952,13953,13954,13955,13956,13957,13958,13959,13960,13961,13962,13963,13964,13965,13966,13967,13968,13969,13970,13971,13972,13973,13974,13975,13976,13977,13978,13979,13980,13981,13982,13983,13984,13985,13986,13987,13988,13989,13990,13991,13992,13993,13994,13995,13996,13997,13998,13999,14000,14001,14002,14003,14004,14005,14006,14007,14008,14009,14010,14011,14012,14013,14014,14015,14016,14017,14018,14019,14020,14021,14022,14023,14024,14025,14026,14027,14028,14029,14030,14031,14032,14033,14034,14035,14036,14037,14038,14039,14040,14041,14042,14043,14044,14045,14046,14047,14048,14049,14050,14051,14052,14053,14054,14055,14056,14057,14058,14059,14060,14061,14062,14063,14064,14065,14066,14067,14068,14069,14070,14071,14072,14073,14074,14075,14076,14077,14078,14079,14080,14081,14082,14083,14084,14085,14086,14087,14088,14089,14090,14091,14092,14093,14094,14095,14096,14097,14098,14099,14100,14101,14102,14103,14104,14105,14106,14107,14108,14109,14110,14111,14112,14113,14114,14115,14116,14117,14118,14119,14120,14121,14122,14123,14124,14125,14126,14127,14128,14129,14130,14131,14132,14133,14134,14135,14136,14137,14138,14139,14140,14141,14142,14143,14144,14145,14146,14147,14148,14149,14150,14151,14152,14153,14154,14155,14156,14157,14158,14159,14160,14161,14162,14163,14164,14165,14166,14167,14168,14169,14170,14171,14172,14173,14174,14175,14176,14177,14178,14179,14180,14181,14182,14183,14184,14185,14186,14187,14188,14189,14190,14191,14192,14193,14194,14195,14196,14197,14198,14199,14200,14201,14202,14203,14204,14205,14206,14207,14208,14209,14210,14211,14212,14213,14214,14215,14216,14217,14218,14219,14220,14221,14222,14223,14224,14225,14226,14227,14228,14229,14230,14231,14232,14233,14234,14235,14236,14237,14238,14239,14240,14241,14242,14243,14244,14245,14246,14247,14248,14249,14250,14251,14252,14253,14254,14255,14256,14257,14258,14259,14260,14261,14262,14263,14264,14265,14266,14267,14268,14269,14270,14271,14272,14273,14274,14275,14276,14277,14278,14279,14280,14281,14282,14283,14284,14285,14286,14287,14288,14289,14290,14291,14292,14293,14294,14295,14296,14297,14298,14299,14300,14301,14302,14303,14304,14305,14306,14307,14308,14309,14310,14311,14312,14313,14314,14315,14316,14317,14318,14319,14320,14321,14322,14323,14324,14325,14326,14327,14328,14329,14330,14331,14332,14333,14334,14335,14336,14337,14338,14339,14340,14341,14342,14343,14344,14345,14346,14347,14348,14349,14350,14351,14352,14353,14354,14355,14356,14357,14358,14359,14360,14361,14362,14363,14364,14365,14366,14367,14368,14369,14370,14371,14372,14373,14374,14375,14376,14377,14378,14379,14380,14381,14382,14383,14384,14385,14386,14387,14388,14389,14390,14391,14392,14393,14394,14395,14396,14397,14398,14399,14400,14401,14402,14403,14404,14405,14406,14407,14408,14409,14410,14411,14412,14413,14414,14415,14416,14417,14418,14419,14420,14421,14422,14423,14424,14425,14426,14427,14428,14429,14430,14431,14432,14433,14434,14435,14436,14437,14438,14439,14440,14441,14442,14443,14444,14445,14446,14447,14448,14449,14450,14451,14452,14453,14454,14455,14456,14457,14458,14459,14460,14461,14462,14463,14464,14465,14466,14467,14468,14469,14470,14471,14472,14473,14474,14475,14476,14477,14478,14479,14480,14481,14482,14483,14484,14485,14486,14487,14488,14489,14490,14491,14492,14493,14494,14495,14496,14497,14498,14499,14500,14501,14502,14503,14504,14505,14506,14507,14508,14509,14510,14511,14512,14513,14514,14515,14516,14517,14518,14519,14520,14521,14522,14523,14524,14525,14526,14527,14528,14529,14530,14531,14532,14533,14534,14535,14536,14537,14538,14539,14540,14541,14542,14543,14544,14545,14546,14547,14548,14549,14550,14551,14552,14553,14554,14555,14556,14557,14558,14559,14560,14561,14562,14563,14564,14565,14566,14567,14568,14569,14570,14571,14572,14573,14574,14575,14576,14577,14578,14579,14580,14581,14582,14583,14584,14585,14586,14587,14588,14589,14590,14591,14592,14593,14594,14595,14596,14597,14598,14599,14600,14601,14602,14603,14604,14605,14606,14607,14608,14609,14610,14611,14612,14613,14614,14615,14616,14617,14618,14619,14620,14621,14622,14623,14624,14625,14626,14627,14628,14629,14630,14631,14632,14633,14634,14635,14636,14637,14638,14639,14640,14641,14642,14643,14644,14645,14646,14647,14648,14649,14650,14651,14652,14653,14654,14655,14656,14657,14658,14659,14660,14661,14662,14663,14664,14665,14666,14667,14668,14669,14670,14671,14672,14673,14674,14675,14676,14677,14678,14679,14680,14681,14682,14683,14684,14685,14686,14687,14688,14689,14690,14691,14692,14693,14694,14695,14696,14697,14698,14699,14700,14701,14702,14703,14704,14705,14706,14707,14708,14709,14710,14711,14712,14713,14714,14715,14716,14717,14718,14719,14720,14721,14722,14723,14724,14725,14726,14727,14728,14729,14730,14731,14732,14733,14734,14735,14736,14737,14738,14739,14740,14741,14742,14743,14744,14745,14746,14747,14748,14749,14750,14751,14752,14753,14754,14755,14756,14757,14758,14759,14760,14761,14762,14763,14764,14765,14766,14767,14768,14769,14770,14771,14772,14773,14774,14775,14776,14777,14778,14779,14780,14781,14782,14783,14784,14785,14786,14787,14788,14789,14790,14791,14792,14793,14794,14795,14796,14797,14798,14799,14800,14801,14802,14803,14804,14805,14806,14807,14808,14809,14810,14811,14812,14813,14814,14815,14816,14817,14818,14819,14820,14821,14822,14823,14824,14825,14826,14827,14828,14829,14830,14831,14832,14833,14834,14835,14836,14837,14838,14839,14840,14841,14842,14843,14844,14845,14846,14847,14848,14849,14850,14851,14852,14853,14854,14855,14856,14857,14858,14859,14860,14861,14862,14863,14864,14865,14866,14867,14868,14869,14870,14871,14872,14873,14874,14875,14876,14877,14878,14879,14880,14881,14882,14883,14884,14885,14886,14887,14888,14889,14890,14891,14892,14893,14894,14895,14896,14897,14898,14899,14900,14901,14902,14903,14904,14905,14906,14907,14908,14909,14910,14911,14912,14913,14914,14915,14916,14917,14918,14919,14920,14921,14922,14923,14924,14925,14926,14927,14928,14929,14930,14931,14932,14933,14934,14935,14936,14937,14938,14939,14940,14941,14942,14943,14944,14945,14946,14947,14948,14949,14950,14951,14952,14953,14954,14955,14956,14957,14958,14959,14960,14961,14962,14963,14964,14965,14966,14967,14968,14969,14970,14971,14972,14973,14974,14975,14976,14977,14978,14979,14980,14981,14982,14983,14984,14985,14986,14987,14988,14989,14990,14991,14992,14993,14994,14995,14996,14997,14998,14999,15000,15001,15002,15003,15004,15005,15006,15007,15008,15009,15010,15011,15012,15013,15014,15015,15016,15017,15018,15019,15020,15021,15022,15023,15024,15025,15026,15027,15028,15029,15030,15031,15032,15033,15034,15035,15036,15037,15038,15039,15040,15041,15042,15043,15044,15045,15046,15047,15048,15049,15050,15051,15052,15053,15054,15055,15056,15057,15058,15059,15060,15061,15062,15063,15064,15065,15066,15067,15068,15069,15070,15071,15072,15073,15074,15075,15076,15077,15078,15079,15080,15081,15082,15083,15084,15085,15086,15087,15088,15089,15090,15091,15092,15093,15094,15095,15096,15097,15098,15099,15100,15101,15102,15103,15104,15105,15106,15107,15108,15109,15110,15111,15112,15113,15114,15115,15116,15117,15118,15119,15120,15121,15122,15123,15124,15125,15126,15127,15128,15129,15130,15131,15132,15133,15134,15135,15136,15137,15138,15139,15140,15141,15142,15143,15144,15145,15146,15147,15148,15149,15150,15151,15152,15153,15154,15155,15156,15157,15158,15159,15160,15161,15162,15163,15164,15165,15166,15167,15168,15169,15170,15171,15172,15173,15174,15175,15176,15177,15178,15179,15180,15181,15182,15183,15184,15185,15186,15187,15188,15189,15190,15191,15192,15193,15194,15195,15196,15197,15198,15199,15200,15201,15202,15203,15204,15205,15206,15207,15208,15209,15210,15211,15212,15213,15214,15215,15216,15217,15218,15219,15220,15221,15222,15223,15224,15225,15226,15227,15228,15229,15230,15231,15232,15233,15234,15235,15236,15237,15238,15239,15240,15241,15242,15243,15244,15245,15246,15247,15248,15249,15250,15251,15252,15253,15254,15255,15256,15257,15258,15259,15260,15261,15262,15263,15264,15265,15266,15267,15268,15269,15270,15271,15272,15273,15274,15275,15276,15277,15278,15279,15280,15281,15282,15283,15284,15285,15286,15287,15288,15289,15290,15291,15292,15293,15294,15295,15296,15297,15298,15299,15300,15301,15302,15303,15304,15305,15306,15307,15308,15309,15310,15311,15312,15313,15314,15315,15316,15317,15318,15319,15320,15321,15322,15323,15324,15325,15326,15327,15328,15329,15330,15331,15332,15333,15334,15335,15336,15337,15338,15339,15340,15341,15342,15343,15344,15345,15346,15347,15348,15349,15350,15351,15352,15353,15354,15355,15356,15357,15358,15359,15360,15361,15362,15363,15364,15365,15366,15367,15368,15369,15370,15371,15372,15373,15374,15375,15376,15377,15378,15379,15380,15381,15382,15383,15384,15385,15386,15387,15388,15389,15390,15391,15392,15393,15394,15395,15396,15397,15398,15399,15400,15401,15402,15403,15404,15405,15406,15407,15408,15409,15410,15411,15412,15413,15414,15415,15416,15417,15418,15419,15420,15421,15422,15423,15424,15425,15426,15427,15428,15429,15430,15431,15432,15433,15434,15435,15436,15437,15438,15439,15440,15441,15442,15443,15444,15445,15446,15447,15448,15449,15450,15451,15452,15453,15454,15455,15456,15457,15458,15459,15460,15461,15462,15463,15464,15465,15466,15467,15468,15469,15470,15471,15472,15473,15474,15475,15476,15477,15478,15479,15480,15481,15482,15483,15484,15485,15486,15487,15488,15489,15490,15491,15492,15493,15494,15495,15496,15497,15498,15499,15500,15501,15502,15503,15504,15505,15506,15507,15508,15509,15510,15511,15512,15513,15514,15515,15516,15517,15518,15519,15520,15521,15522,15523,15524,15525,15526,15527,15528,15529,15530,15531,15532,15533,15534,15535,15536,15537,15538,15539,15540,15541,15542,15543,15544,15545,15546,15547,15548,15549,15550,15551,15552,15553,15554,15555,15556,15557,15558,15559,15560,15561,15562,15563,15564,15565,15566,15567,15568,15569,15570,15571,15572,15573,15574,15575,15576,15577,15578,15579,15580,15581,15582,15583,15584,15585,15586,15587,15588,15589,15590,15591,15592,15593,15594,15595,15596,15597,15598,15599,15600,15601,15602,15603,15604,15605,15606,15607,15608,15609,15610,15611,15612,15613,15614,15615,15616,15617,15618,15619,15620,15621,15622,15623,15624,15625,15626,15627,15628,15629,15630,15631,15632,15633,15634,15635,15636,15637,15638,15639,15640,15641,15642,15643,15644,15645,15646,15647,15648,15649,15650,15651,15652,15653,15654,15655,15656,15657,15658,15659,15660,15661,15662,15663,15664,15665,15666,15667,15668,15669,15670,15671,15672,15673,15674,15675,15676,15677,15678,15679,15680,15681,15682,15683,15684,15685,15686,15687,15688,15689,15690,15691,15692,15693,15694,15695,15696,15697,15698,15699,15700,15701,15702,15703,15704,15705,15706,15707,15708,15709,15710,15711,15712,15713,15714,15715,15716,15717,15718,15719,15720,15721,15722,15723,15724,15725,15726,15727,15728,15729,15730,15731,15732,15733,15734,15735,15736,15737,15738,15739,15740,15741,15742,15743,15744,15745,15746,15747,15748,15749,15750,15751,15752,15753,15754,15755,15756,15757,15758,15759,15760,15761,15762,15763,15764,15765,15766,15767,15768,15769,15770,15771,15772,15773,15774,15775,15776,15777,15778,15779,15780,15781,15782,15783,15784,15785,15786,15787,15788,15789,15790,15791,15792,15793,15794,15795,15796,15797,15798,15799,15800,15801,15802,15803,15804,15805,15806,15807,15808,15809,15810,15811,15812,15813,15814,15815,15816,15817,15818,15819,15820,15821,15822,15823,15824,15825,15826,15827,15828,15829,15830,15831,15832,15833,15834,15835,15836,15837,15838,15839,15840,15841,15842,15843,15844,15845,15846,15847,15848,15849,15850,15851,15852,15853,15854,15855,15856,15857,15858,15859,15860,15861,15862,15863,15864,15865,15866,15867,15868,15869,15870,15871,15872,15873,15874,15875,15876,15877,15878,15879,15880,15881,15882,15883,15884,15885,15886,15887,15888,15889,15890,15891,15892,15893,15894,15895,15896,15897,15898,15899,15900,15901,15902,15903,15904,15905,15906,15907,15908,15909,15910,15911,15912,15913,15914,15915,15916,15917,15918,15919,15920,15921,15922,15923,15924,15925,15926,15927,15928,15929,15930,15931,15932,15933,15934,15935,15936,15937,15938,15939,15940,15941,15942,15943,15944,15945,15946,15947,15948,15949,15950,15951,15952,15953,15954,15955,15956,15957,15958,15959,15960,15961,15962,15963,15964,15965,15966,15967,15968,15969,15970,15971,15972,15973,15974,15975,15976,15977,15978,15979,15980,15981,15982,15983,15984,15985,15986,15987,15988,15989,15990,15991,15992,15993,15994,15995,15996,15997,15998,15999,16000,16001,16002,16003,16004,16005,16006,16007,16008,16009,16010,16011,16012,16013,16014,16015,16016,16017,16018,16019,16020,16021,16022,16023,16024,16025,16026,16027,16028,16029,16030,16031,16032,16033,16034,16035,16036,16037,16038,16039,16040,16041,16042,16043,16044,16045,16046,16047,16048,16049,16050,16051,16052,16053,16054,16055,16056,16057,16058,16059,16060,16061,16062,16063,16064,16065,16066,16067,16068,16069,16070,16071,16072,16073,16074,16075,16076,16077,16078,16079,16080,16081,16082,16083,16084,16085,16086,16087,16088,16089,16090,16091,16092,16093,16094,16095,16096,16097,16098,16099,16100,16101,16102,16103,16104,16105,16106,16107,16108,16109,16110,16111,16112,16113,16114,16115,16116,16117,16118,16119,16120,16121,16122,16123,16124,16125,16126,16127,16128,16129,16130,16131,16132,16133,16134,16135,16136,16137,16138,16139,16140,16141,16142,16143,16144,16145,16146,16147,16148,16149,16150,16151,16152,16153,16154,16155,16156,16157,16158,16159,16160,16161,16162,16163,16164,16165,16166,16167,16168,16169,16170,16171,16172,16173,16174,16175,16176,16177,16178,16179,16180,16181,16182,16183,16184,16185,16186,16187,16188,16189,16190,16191,16192,16193,16194,16195,16196,16197,16198,16199,16200,16201,16202,16203,16204,16205,16206,16207,16208,16209,16210,16211,16212,16213,16214,16215,16216,16217,16218,16219,16220,16221,16222,16223,16224,16225,16226,16227,16228,16229,16230,16231,16232,16233,16234,16235,16236,16237,16238,16239,16240,16241,16242,16243,16244,16245,16246,16247,16248,16249,16250,16251,16252,16253,16254,16255,16256,16257,16258,16259,16260,16261,16262,16263,16264,16265,16266,16267,16268,16269,16270,16271,16272,16273,16274,16275,16276,16277,16278,16279,16280,16281,16282,16283,16284,16285,16286,16287,16288,16289,16290,16291,16292,16293,16294,16295,16296,16297,16298,16299,16300,16301,16302,16303,16304,16305,16306,16307,16308,16309,16310,16311,16312,16313,16314,16315,16316,16317,16318,16319,16320,16321,16322,16323,16324,16325,16326,16327,16328,16329,16330,16331,16332,16333,16334,16335,16336,16337,16338,16339,16340,16341,16342,16343,16344,16345,16346,16347,16348,16349,16350,16351,16352,16353,16354,16355,16356,16357,16358,16359,16360,16361,16362,16363,16364,16365,16366,16367,16368,16369,16370,16371,16372,16373,16374,16375,16376,16377,16378,16379,16380,16381,16382,16383,16384,16385,16386,16387,16388,16389,16390,16391,16392,16393,16394,16395,16396,16397,16398,16399,16400,16401,16402,16403,16404,16405,16406,16407,16408,16409,16410,16411,16412,16413,16414,16415,16416,16417,16418,16419,16420,16421,16422,16423,16424,16425,16426,16427,16428,16429,16430,16431,16432,16433,16434,16435,16436,16437,16438,16439,16440,16441,16442,16443,16444,16445,16446,16447,16448,16449,16450,16451,16452,16453,16454,16455,16456,16457,16458,16459,16460,16461,16462,16463,16464,16465,16466,16467,16468,16469,16470,16471,16472,16473,16474,16475,16476,16477,16478,16479,16480,16481,16482,16483,16484,16485,16486,16487,16488,16489,16490,16491,16492,16493,16494,16495,16496,16497,16498,16499,16500,16501,16502,16503,16504,16505,16506,16507,16508,16509,16510,16511,16512,16513,16514,16515,16516,16517,16518,16519,16520,16521,16522,16523,16524,16525,16526,16527,16528,16529,16530,16531,16532,16533,16534,16535,16536,16537,16538,16539,16540,16541,16542,16543,16544,16545,16546,16547,16548,16549,16550,16551,16552,16553,16554,16555,16556,16557,16558,16559,16560,16561,16562,16563,16564,16565,16566,16567,16568,16569,16570,16571,16572,16573,16574,16575,16576,16577,16578,16579,16580,16581,16582,16583,16584,16585,16586,16587,16588,16589,16590,16591,16592,16593,16594,16595,16596,16597,16598,16599,16600,16601,16602,16603,16604,16605,16606,16607,16608,16609,16610,16611,16612,16613,16614,16615,16616,16617,16618,16619,16620,16621,16622,16623,16624,16625,16626,16627,16628,16629,16630,16631,16632,16633,16634,16635,16636,16637,16638,16639,16640,16641,16642,16643,16644,16645,16646,16647,16648,16649,16650,16651,16652,16653,16654,16655,16656,16657,16658,16659,16660,16661,16662,16663,16664,16665,16666,16667,16668,16669,16670,16671,16672,16673,16674,16675,16676,16677,16678,16679,16680,16681,16682,16683,16684,16685,16686,16687,16688,16689,16690,16691,16692,16693,16694,16695,16696,16697,16698,16699,16700,16701,16702,16703,16704,16705,16706,16707,16708,16709,16710,16711,16712,16713,16714,16715,16716,16717,16718,16719,16720,16721,16722,16723,16724,16725,16726,16727,16728,16729,16730,16731,16732,16733,16734,16735,16736,16737,16738,16739,16740,16741,16742,16743,16744,16745,16746,16747,16748,16749,16750,16751,16752,16753,16754,16755,16756,16757,16758,16759,16760,16761,16762,16763,16764,16765,16766,16767,16768,16769,16770,16771,16772,16773,16774,16775,16776,16777,16778,16779,16780,16781,16782,16783,16784,16785,16786,16787,16788,16789,16790,16791,16792,16793,16794,16795,16796,16797,16798,16799,16800,16801,16802,16803,16804,16805,16806,16807,16808,16809,16810,16811,16812,16813,16814,16815,16816,16817,16818,16819,16820,16821,16822,16823,16824,16825,16826,16827,16828,16829,16830,16831,16832,16833,16834,16835,16836,16837,16838,16839,16840,16841,16842,16843,16844,16845,16846,16847,16848,16849,16850,16851,16852,16853,16854,16855,16856,16857,16858,16859,16860,16861,16862,16863,16864,16865,16866,16867,16868,16869,16870,16871,16872,16873,16874,16875,16876,16877,16878,16879,16880,16881,16882,16883,16884,16885,16886,16887,16888,16889,16890,16891,16892,16893,16894,16895,16896,16897,16898,16899,16900,16901,16902,16903,16904,16905,16906,16907,16908,16909,16910,16911,16912,16913,16914,16915,16916,16917,16918,16919,16920,16921,16922,16923,16924,16925,16926,16927,16928,16929,16930,16931,16932,16933,16934,16935,16936,16937,16938,16939,16940,16941,16942,16943,16944,16945,16946,16947,16948,16949,16950,16951,16952,16953,16954,16955,16956,16957,16958,16959,16960,16961,16962,16963,16964,16965,16966,16967,16968,16969,16970,16971,16972,16973,16974,16975,16976,16977,16978,16979,16980,16981,16982,16983,16984,16985,16986,16987,16988,16989,16990,16991,16992,16993,16994,16995,16996,16997,16998,16999,17000,17001,17002,17003,17004,17005,17006,17007,17008,17009,17010,17011,17012,17013,17014,17015,17016,17017,17018,17019,17020,17021,17022,17023,17024,17025,17026,17027,17028,17029,17030,17031,17032,17033,17034,17035,17036,17037,17038,17039,17040,17041,17042,17043,17044,17045,17046,17047,17048,17049,17050,17051,17052,17053,17054,17055,17056,17057,17058,17059,17060,17061,17062,17063,17064,17065,17066,17067,17068,17069,17070,17071,17072,17073,17074,17075,17076,17077,17078,17079,17080,17081,17082,17083,17084,17085,17086,17087,17088,17089,17090,17091,17092,17093,17094,17095,17096,17097,17098,17099,17100,17101,17102,17103,17104,17105,17106,17107,17108,17109,17110,17111,17112,17113,17114,17115,17116,17117,17118,17119,17120,17121,17122,17123,17124,17125,17126,17127,17128,17129,17130,17131,17132,17133,17134,17135,17136,17137,17138,17139,17140,17141,17142,17143,17144,17145,17146,17147,17148,17149,17150,17151,17152,17153,17154,17155,17156,17157,17158,17159,17160,17161,17162,17163,17164,17165,17166,17167,17168,17169,17170,17171,17172,17173,17174,17175,17176,17177,17178,17179,17180,17181,17182,17183,17184,17185,17186,17187,17188,17189,17190,17191,17192,17193,17194,17195,17196,17197,17198,17199,17200,17201,17202,17203,17204,17205,17206,17207,17208,17209,17210,17211,17212,17213,17214,17215,17216,17217,17218,17219,17220,17221,17222,17223,17224,17225,17226,17227,17228,17229,17230,17231,17232,17233,17234,17235,17236,17237,17238,17239,17240,17241,17242,17243,17244,17245,17246,17247,17248,17249,17250,17251,17252,17253,17254,17255,17256,17257,17258,17259,17260,17261,17262,17263,17264,17265,17266,17267,17268,17269,17270,17271,17272,17273,17274,17275,17276,17277,17278,17279,17280,17281,17282,17283,17284,17285,17286,17287,17288,17289,17290,17291,17292,17293,17294,17295,17296,17297,17298,17299,17300,17301,17302,17303,17304,17305,17306,17307,17308,17309,17310,17311,17312,17313,17314,17315,17316,17317,17318,17319,17320,17321,17322,17323,17324,17325,17326,17327,17328,17329,17330,17331,17332,17333,17334,17335,17336,17337,17338,17339,17340,17341,17342,17343,17344,17345,17346,17347,17348,17349,17350,17351,17352,17353,17354,17355,17356,17357,17358,17359,17360,17361,17362,17363,17364,17365,17366,17367,17368,17369,17370,17371,17372,17373,17374,17375,17376,17377,17378,17379,17380,17381,17382,17383,17384,17385,17386,17387,17388,17389,17390,17391,17392,17393,17394,17395,17396,17397,17398,17399,17400,17401,17402,17403,17404,17405,17406,17407,17408,17409,17410,17411,17412,17413,17414,17415,17416,17417,17418,17419,17420,17421,17422,17423,17424,17425,17426,17427,17428,17429,17430,17431,17432,17433,17434,17435,17436,17437,17438,17439,17440,17441,17442,17443,17444,17445,17446,17447,17448,17449,17450,17451,17452,17453,17454,17455,17456,17457,17458,17459,17460,17461,17462,17463,17464,17465,17466,17467,17468,17469,17470,17471,17472,17473,17474,17475,17476,17477,17478,17479,17480,17481,17482,17483,17484,17485,17486,17487,17488,17489,17490,17491,17492,17493,17494,17495,17496,17497,17498,17499,17500,17501,17502,17503,17504,17505,17506,17507,17508,17509,17510,17511,17512,17513,17514,17515,17516,17517,17518,17519,17520,17521,17522,17523,17524,17525,17526,17527,17528,17529,17530,17531,17532,17533,17534,17535,17536,17537,17538,17539,17540,17541,17542,17543,17544,17545,17546,17547,17548,17549,17550,17551,17552,17553,17554,17555,17556,17557,17558,17559,17560,17561,17562,17563,17564,17565,17566,17567,17568,17569,17570,17571,17572,17573,17574,17575,17576,17577,17578,17579,17580,17581,17582,17583,17584,17585,17586,17587,17588,17589,17590,17591,17592,17593,17594,17595,17596,17597,17598,17599,17600,17601,17602,17603,17604,17605,17606,17607,17608,17609,17610,17611,17612,17613,17614,17615,17616,17617,17618,17619,17620,17621,17622,17623,17624,17625,17626,17627,17628,17629,17630,17631,17632,17633,17634,17635,17636,17637,17638,17639,17640,17641,17642,17643,17644,17645,17646,17647,17648,17649,17650,17651,17652,17653,17654,17655,17656,17657,17658,17659,17660,17661,17662,17663,17664,17665,17666,17667,17668,17669,17670,17671,17672,17673,17674,17675,17676,17677,17678,17679,17680,17681,17682,17683,17684,17685,17686,17687,17688,17689,17690,17691,17692,17693,17694,17695,17696,17697,17698,17699,17700,17701,17702,17703,17704,17705,17706,17707,17708,17709,17710,17711,17712,17713,17714,17715,17716,17717,17718,17719,17720,17721,17722,17723,17724,17725,17726,17727,17728,17729,17730,17731,17732,17733,17734,17735,17736,17737,17738,17739,17740,17741,17742,17743,17744,17745,17746,17747,17748,17749,17750,17751,17752,17753,17754,17755,17756,17757,17758,17759,17760,17761,17762,17763,17764,17765,17766,17767,17768,17769,17770,17771,17772,17773,17774,17775,17776,17777,17778,17779,17780,17781,17782,17783,17784,17785,17786,17787,17788,17789,17790,17791,17792,17793,17794,17795,17796,17797,17798,17799,17800,17801,17802,17803,17804,17805,17806,17807,17808,17809,17810,17811,17812,17813,17814,17815,17816,17817,17818,17819,17820,17821,17822,17823,17824,17825,17826,17827,17828,17829,17830,17831,17832,17833,17834,17835,17836,17837,17838,17839,17840,17841,17842,17843,17844,17845,17846,17847,17848,17849,17850,17851,17852,17853,17854,17855,17856,17857,17858,17859,17860,17861,17862,17863,17864,17865,17866,17867,17868,17869,17870,17871,17872,17873,17874,17875,17876,17877,17878,17879,17880,17881,17882,17883,17884,17885,17886,17887,17888,17889,17890,17891,17892,17893,17894,17895,17896,17897,17898,17899,17900,17901,17902,17903,17904,17905,17906,17907,17908,17909,17910,17911,17912,17913,17914,17915,17916,17917,17918,17919,17920,17921,17922,17923,17924,17925,17926,17927,17928,17929,17930,17931,17932,17933,17934,17935,17936,17937,17938,17939,17940,17941,17942,17943,17944,17945,17946,17947,17948,17949,17950,17951,17952,17953,17954,17955,17956,17957,17958,17959,17960,17961,17962,17963,17964,17965,17966,17967,17968,17969,17970,17971,17972,17973,17974,17975,17976,17977,17978,17979,17980,17981,17982,17983,17984,17985,17986,17987,17988,17989,17990,17991,17992,17993,17994,17995,17996,17997,17998,17999,18000,18001,18002,18003,18004,18005,18006,18007,18008,18009,18010,18011,18012,18013,18014,18015,18016,18017,18018,18019,18020,18021,18022,18023,18024,18025,18026,18027,18028,18029,18030,18031,18032,18033,18034,18035,18036,18037,18038,18039,18040,18041,18042,18043,18044,18045,18046,18047,18048,18049,18050,18051,18052,18053,18054,18055,18056,18057,18058,18059,18060,18061,18062,18063,18064,18065,18066,18067,18068,18069,18070,18071,18072,18073,18074,18075,18076,18077,18078,18079,18080,18081,18082,18083,18084,18085,18086,18087,18088,18089,18090,18091,18092,18093,18094,18095,18096,18097,18098,18099,18100,18101,18102,18103,18104,18105,18106,18107,18108,18109,18110,18111,18112,18113,18114,18115,18116,18117,18118,18119,18120,18121,18122,18123,18124,18125,18126,18127,18128,18129,18130,18131,18132,18133,18134,18135,18136,18137,18138,18139,18140,18141,18142,18143,18144,18145,18146,18147,18148,18149,18150,18151,18152,18153,18154,18155,18156,18157,18158,18159,18160,18161,18162,18163,18164,18165,18166,18167,18168,18169,18170,18171,18172,18173,18174,18175,18176,18177,18178,18179,18180,18181,18182,18183,18184,18185,18186,18187,18188,18189,18190,18191,18192,18193,18194,18195,18196,18197,18198,18199,18200,18201,18202,18203,18204,18205,18206,18207,18208,18209,18210,18211,18212,18213,18214,18215,18216,18217,18218,18219,18220,18221,18222,18223,18224,18225,18226,18227,18228,18229,18230,18231,18232,18233,18234,18235,18236,18237,18238,18239,18240,18241,18242,18243,18244,18245,18246,18247,18248,18249,18250,18251,18252,18253,18254,18255,18256,18257,18258,18259,18260,18261,18262,18263,18264,18265,18266,18267,18268,18269,18270,18271,18272,18273,18274,18275,18276,18277,18278,18279,18280,18281,18282,18283,18284,18285,18286,18287,18288,18289,18290,18291,18292,18293,18294,18295,18296,18297,18298,18299,18300,18301,18302,18303,18304,18305,18306,18307,18308,18309,18310,18311,18312,18313,18314,18315,18316,18317,18318,18319,18320,18321,18322,18323,18324,18325,18326,18327,18328,18329,18330,18331,18332,18333,18334,18335,18336,18337,18338,18339,18340,18341,18342,18343,18344,18345,18346,18347,18348,18349,18350,18351,18352,18353,18354,18355,18356,18357,18358,18359,18360,18361,18362,18363,18364,18365,18366,18367,18368,18369,18370,18371,18372,18373,18374,18375,18376,18377,18378,18379,18380,18381,18382,18383,18384,18385,18386,18387,18388,18389,18390,18391,18392,18393,18394,18395,18396,18397,18398,18399,18400,18401,18402,18403,18404,18405,18406,18407,18408,18409,18410,18411,18412,18413,18414,18415,18416,18417,18418,18419,18420,18421,18422,18423,18424,18425,18426,18427,18428,18429,18430,18431,18432,18433,18434,18435,18436,18437,18438,18439,18440,18441,18442,18443,18444,18445,18446,18447,18448,18449,18450,18451,18452,18453,18454,18455,18456,18457,18458,18459,18460,18461,18462,18463,18464,18465,18466,18467,18468,18469,18470,18471,18472,18473,18474,18475,18476,18477,18478,18479,18480,18481,18482,18483,18484,18485,18486,18487,18488,18489,18490,18491,18492,18493,18494,18495,18496,18497,18498,18499,18500,18501,18502,18503,18504,18505,18506,18507,18508,18509,18510,18511,18512,18513,18514,18515,18516,18517,18518,18519,18520,18521,18522,18523,18524,18525,18526,18527,18528,18529,18530,18531,18532,18533,18534,18535,18536,18537,18538,18539,18540,18541,18542,18543,18544,18545,18546,18547,18548,18549,18550,18551,18552,18553,18554,18555,18556,18557,18558,18559,18560,18561,18562,18563,18564,18565,18566,18567,18568,18569,18570,18571,18572,18573,18574,18575,18576,18577,18578,18579,18580,18581,18582,18583,18584,18585,18586,18587,18588,18589,18590,18591,18592,18593,18594,18595,18596,18597,18598,18599,18600,18601,18602,18603,18604,18605,18606,18607,18608,18609,18610,18611,18612,18613,18614,18615,18616,18617,18618,18619,18620,18621,18622,18623,18624,18625,18626,18627,18628,18629,18630,18631,18632,18633,18634,18635,18636,18637,18638,18639,18640,18641,18642,18643,18644,18645,18646,18647,18648,18649,18650,18651,18652,18653,18654,18655,18656,18657,18658,18659,18660,18661,18662,18663,18664,18665,18666,18667,18668,18669,18670,18671,18672,18673,18674,18675,18676,18677,18678,18679,18680,18681,18682,18683,18684,18685,18686,18687,18688,18689,18690,18691,18692,18693,18694,18695,18696,18697,18698,18699,18700,18701,18702,18703,18704,18705,18706,18707,18708,18709,18710,18711,18712,18713,18714,18715,18716,18717,18718,18719,18720,18721,18722,18723,18724,18725,18726,18727,18728,18729,18730,18731,18732,18733,18734,18735,18736,18737,18738,18739,18740,18741,18742,18743,18744,18745,18746,18747,18748,18749,18750,18751,18752,18753,18754,18755,18756,18757,18758,18759,18760,18761,18762,18763,18764,18765,18766,18767,18768,18769,18770,18771,18772,18773,18774,18775,18776,18777,18778,18779,18780,18781,18782,18783,18784,18785,18786,18787,18788,18789,18790,18791,18792,18793,18794,18795,18796,18797,18798,18799,18800,18801,18802,18803,18804,18805,18806,18807,18808,18809,18810,18811,18812,18813,18814,18815,18816,18817,18818,18819,18820,18821,18822,18823,18824,18825,18826,18827,18828,18829,18830,18831,18832,18833,18834,18835,18836,18837,18838,18839,18840,18841,18842,18843,18844,18845,18846,18847,18848,18849,18850,18851,18852,18853,18854,18855,18856,18857,18858,18859,18860,18861,18862,18863,18864,18865,18866,18867,18868,18869,18870,18871,18872,18873,18874,18875,18876,18877,18878,18879,18880,18881,18882,18883,18884,18885,18886,18887,18888,18889,18890,18891,18892,18893,18894,18895,18896,18897,18898,18899,18900,18901,18902,18903,18904,18905,18906,18907,18908,18909,18910,18911,18912,18913,18914,18915,18916,18917,18918,18919,18920,18921,18922,18923,18924,18925,18926,18927,18928,18929,18930,18931,18932,18933,18934,18935,18936,18937,18938,18939,18940,18941,18942,18943,18944,18945,18946,18947,18948,18949,18950,18951,18952,18953,18954,18955,18956,18957,18958,18959,18960,18961,18962,18963,18964,18965,18966,18967,18968,18969,18970,18971,18972,18973,18974,18975,18976,18977,18978,18979,18980,18981,18982,18983,18984,18985,18986,18987,18988,18989,18990,18991,18992,18993,18994,18995,18996,18997,18998,18999,19000,19001,19002,19003,19004,19005,19006,19007,19008,19009,19010,19011,19012,19013,19014,19015,19016,19017,19018,19019,19020,19021,19022,19023,19024,19025,19026,19027,19028,19029,19030,19031,19032,19033,19034,19035,19036,19037,19038,19039,19040,19041,19042,19043,19044,19045,19046,19047,19048,19049,19050,19051,19052,19053,19054,19055,19056,19057,19058,19059,19060,19061,19062,19063,19064,19065,19066,19067,19068,19069,19070,19071,19072,19073,19074,19075,19076,19077,19078,19079,19080,19081,19082,19083,19084,19085,19086,19087,19088,19089,19090,19091,19092,19093,19094,19095,19096,19097,19098,19099,19100,19101,19102,19103,19104,19105,19106,19107,19108,19109,19110,19111,19112,19113,19114,19115,19116,19117,19118,19119,19120,19121,19122,19123,19124,19125,19126,19127,19128,19129,19130,19131,19132,19133,19134,19135,19136,19137,19138,19139,19140,19141,19142,19143,19144,19145,19146,19147,19148,19149,19150,19151,19152,19153,19154,19155,19156,19157,19158,19159,19160,19161,19162,19163,19164,19165,19166,19167,19168,19169,19170,19171,19172,19173,19174,19175,19176,19177,19178,19179,19180,19181,19182,19183,19184,19185,19186,19187,19188,19189,19190,19191,19192,19193,19194,19195,19196,19197,19198,19199,19200,19201,19202,19203,19204,19205,19206,19207,19208,19209,19210,19211,19212,19213,19214,19215,19216,19217,19218,19219,19220,19221,19222,19223,19224,19225,19226,19227,19228,19229,19230,19231,19232,19233,19234,19235,19236,19237,19238,19239,19240,19241,19242,19243,19244,19245,19246,19247,19248,19249,19250,19251,19252,19253,19254,19255,19256,19257,19258,19259,19260,19261,19262,19263,19264,19265,19266,19267,19268,19269,19270,19271,19272,19273,19274,19275,19276,19277,19278,19279,19280,19281,19282,19283,19284,19285,19286,19287,19288,19289,19290,19291,19292,19293,19294,19295,19296,19297,19298,19299,19300,19301,19302,19303,19304,19305,19306,19307,19308,19309,19310,19311,19312,19313,19314,19315,19316,19317,19318,19319,19320,19321,19322,19323,19324,19325,19326,19327,19328,19329,19330,19331,19332,19333,19334,19335,19336,19337,19338,19339,19340,19341,19342,19343,19344,19345,19346,19347,19348,19349,19350,19351,19352,19353,19354,19355,19356,19357,19358,19359,19360,19361,19362,19363,19364,19365,19366,19367,19368,19369,19370,19371,19372,19373,19374,19375,19376,19377,19378,19379,19380,19381,19382,19383,19384,19385,19386,19387,19388,19389,19390,19391,19392,19393,19394,19395,19396,19397,19398,19399,19400,19401,19402,19403,19404,19405,19406,19407,19408,19409,19410,19411,19412,19413,19414,19415,19416,19417,19418,19419,19420,19421,19422,19423,19424,19425,19426,19427,19428,19429,19430,19431,19432,19433,19434,19435,19436,19437,19438,19439,19440,19441,19442,19443,19444,19445,19446,19447,19448,19449,19450,19451,19452,19453,19454,19455,19456,19457,19458,19459,19460,19461,19462,19463,19464,19465,19466,19467,19468,19469,19470,19471,19472,19473,19474,19475,19476,19477,19478,19479,19480,19481,19482,19483,19484,19485,19486,19487,19488,19489,19490,19491,19492,19493,19494,19495,19496,19497,19498,19499,19500,19501,19502,19503,19504,19505,19506,19507,19508,19509,19510,19511,19512,19513,19514,19515,19516,19517,19518,19519,19520,19521,19522,19523,19524,19525,19526,19527,19528,19529,19530,19531,19532,19533,19534,19535,19536,19537,19538,19539,19540,19541,19542,19543,19544,19545,19546,19547,19548,19549,19550,19551,19552,19553,19554,19555,19556,19557,19558,19559,19560,19561,19562,19563,19564,19565,19566,19567,19568,19569,19570,19571,19572,19573,19574,19575,19576,19577,19578,19579,19580,19581,19582,19583,19584,19585,19586,19587,19588,19589,19590,19591,19592,19593,19594,19595,19596,19597,19598,19599,19600,19601,19602,19603,19604,19605,19606,19607,19608,19609,19610,19611,19612,19613,19614,19615,19616,19617,19618,19619,19620,19621,19622,19623,19624,19625,19626,19627,19628,19629,19630,19631,19632,19633,19634,19635,19636,19637,19638,19639,19640,19641,19642,19643,19644,19645,19646,19647,19648,19649,19650,19651,19652,19653,19654,19655,19656,19657,19658,19659,19660,19661,19662,19663,19664,19665,19666,19667,19668,19669,19670,19671,19672,19673,19674,19675,19676,19677,19678,19679,19680,19681,19682,19683,19684,19685,19686,19687,19688,19689,19690,19691,19692,19693,19694,19695,19696,19697,19698,19699,19700,19701,19702,19703,19704,19705,19706,19707,19708,19709,19710,19711,19712,19713,19714,19715,19716,19717,19718,19719,19720,19721,19722,19723,19724,19725,19726,19727,19728,19729,19730,19731,19732,19733,19734,19735,19736,19737,19738,19739,19740,19741,19742,19743,19744,19745,19746,19747,19748,19749,19750,19751,19752,19753,19754,19755,19756,19757,19758,19759,19760,19761,19762,19763,19764,19765,19766,19767,19768,19769,19770,19771,19772,19773,19774,19775,19776,19777,19778,19779,19780,19781,19782,19783,19784,19785,19786,19787,19788,19789,19790,19791,19792,19793,19794,19795,19796,19797,19798,19799,19800,19801,19802,19803,19804,19805,19806,19807,19808,19809,19810,19811,19812,19813,19814,19815,19816,19817,19818,19819,19820,19821,19822,19823,19824,19825,19826,19827,19828,19829,19830,19831,19832,19833,19834,19835,19836,19837,19838,19839,19840,19841,19842,19843,19844,19845,19846,19847,19848,19849,19850,19851,19852,19853,19854,19855,19856,19857,19858,19859,19860,19861,19862,19863,19864,19865,19866,19867,19868,19869,19870,19871,19872,19873,19874,19875,19876,19877,19878,19879,19880,19881,19882,19883,19884,19885,19886,19887,19888,19889,19890,19891,19892,19893,19968,19969,19970,19971,19972,19973,19974,19975,19976,19977,19978,19979,19980,19981,19982,19983,19984,19985,19986,19987,19988,19989,19990,19991,19992,19993,19994,19995,19996,19997,19998,19999,20000,20001,20002,20003,20004,20005,20006,20007,20008,20009,20010,20011,20012,20013,20014,20015,20016,20017,20018,20019,20020,20021,20022,20023,20024,20025,20026,20027,20028,20029,20030,20031,20032,20033,20034,20035,20036,20037,20038,20039,20040,20041,20042,20043,20044,20045,20046,20047,20048,20049,20050,20051,20052,20053,20054,20055,20056,20057,20058,20059,20060,20061,20062,20063,20064,20065,20066,20067,20068,20069,20070,20071,20072,20073,20074,20075,20076,20077,20078,20079,20080,20081,20082,20083,20084,20085,20086,20087,20088,20089,20090,20091,20092,20093,20094,20095,20096,20097,20098,20099,20100,20101,20102,20103,20104,20105,20106,20107,20108,20109,20110,20111,20112,20113,20114,20115,20116,20117,20118,20119,20120,20121,20122,20123,20124,20125,20126,20127,20128,20129,20130,20131,20132,20133,20134,20135,20136,20137,20138,20139,20140,20141,20142,20143,20144,20145,20146,20147,20148,20149,20150,20151,20152,20153,20154,20155,20156,20157,20158,20159,20160,20161,20162,20163,20164,20165,20166,20167,20168,20169,20170,20171,20172,20173,20174,20175,20176,20177,20178,20179,20180,20181,20182,20183,20184,20185,20186,20187,20188,20189,20190,20191,20192,20193,20194,20195,20196,20197,20198,20199,20200,20201,20202,20203,20204,20205,20206,20207,20208,20209,20210,20211,20212,20213,20214,20215,20216,20217,20218,20219,20220,20221,20222,20223,20224,20225,20226,20227,20228,20229,20230,20231,20232,20233,20234,20235,20236,20237,20238,20239,20240,20241,20242,20243,20244,20245,20246,20247,20248,20249,20250,20251,20252,20253,20254,20255,20256,20257,20258,20259,20260,20261,20262,20263,20264,20265,20266,20267,20268,20269,20270,20271,20272,20273,20274,20275,20276,20277,20278,20279,20280,20281,20282,20283,20284,20285,20286,20287,20288,20289,20290,20291,20292,20293,20294,20295,20296,20297,20298,20299,20300,20301,20302,20303,20304,20305,20306,20307,20308,20309,20310,20311,20312,20313,20314,20315,20316,20317,20318,20319,20320,20321,20322,20323,20324,20325,20326,20327,20328,20329,20330,20331,20332,20333,20334,20335,20336,20337,20338,20339,20340,20341,20342,20343,20344,20345,20346,20347,20348,20349,20350,20351,20352,20353,20354,20355,20356,20357,20358,20359,20360,20361,20362,20363,20364,20365,20366,20367,20368,20369,20370,20371,20372,20373,20374,20375,20376,20377,20378,20379,20380,20381,20382,20383,20384,20385,20386,20387,20388,20389,20390,20391,20392,20393,20394,20395,20396,20397,20398,20399,20400,20401,20402,20403,20404,20405,20406,20407,20408,20409,20410,20411,20412,20413,20414,20415,20416,20417,20418,20419,20420,20421,20422,20423,20424,20425,20426,20427,20428,20429,20430,20431,20432,20433,20434,20435,20436,20437,20438,20439,20440,20441,20442,20443,20444,20445,20446,20447,20448,20449,20450,20451,20452,20453,20454,20455,20456,20457,20458,20459,20460,20461,20462,20463,20464,20465,20466,20467,20468,20469,20470,20471,20472,20473,20474,20475,20476,20477,20478,20479,20480,20481,20482,20483,20484,20485,20486,20487,20488,20489,20490,20491,20492,20493,20494,20495,20496,20497,20498,20499,20500,20501,20502,20503,20504,20505,20506,20507,20508,20509,20510,20511,20512,20513,20514,20515,20516,20517,20518,20519,20520,20521,20522,20523,20524,20525,20526,20527,20528,20529,20530,20531,20532,20533,20534,20535,20536,20537,20538,20539,20540,20541,20542,20543,20544,20545,20546,20547,20548,20549,20550,20551,20552,20553,20554,20555,20556,20557,20558,20559,20560,20561,20562,20563,20564,20565,20566,20567,20568,20569,20570,20571,20572,20573,20574,20575,20576,20577,20578,20579,20580,20581,20582,20583,20584,20585,20586,20587,20588,20589,20590,20591,20592,20593,20594,20595,20596,20597,20598,20599,20600,20601,20602,20603,20604,20605,20606,20607,20608,20609,20610,20611,20612,20613,20614,20615,20616,20617,20618,20619,20620,20621,20622,20623,20624,20625,20626,20627,20628,20629,20630,20631,20632,20633,20634,20635,20636,20637,20638,20639,20640,20641,20642,20643,20644,20645,20646,20647,20648,20649,20650,20651,20652,20653,20654,20655,20656,20657,20658,20659,20660,20661,20662,20663,20664,20665,20666,20667,20668,20669,20670,20671,20672,20673,20674,20675,20676,20677,20678,20679,20680,20681,20682,20683,20684,20685,20686,20687,20688,20689,20690,20691,20692,20693,20694,20695,20696,20697,20698,20699,20700,20701,20702,20703,20704,20705,20706,20707,20708,20709,20710,20711,20712,20713,20714,20715,20716,20717,20718,20719,20720,20721,20722,20723,20724,20725,20726,20727,20728,20729,20730,20731,20732,20733,20734,20735,20736,20737,20738,20739,20740,20741,20742,20743,20744,20745,20746,20747,20748,20749,20750,20751,20752,20753,20754,20755,20756,20757,20758,20759,20760,20761,20762,20763,20764,20765,20766,20767,20768,20769,20770,20771,20772,20773,20774,20775,20776,20777,20778,20779,20780,20781,20782,20783,20784,20785,20786,20787,20788,20789,20790,20791,20792,20793,20794,20795,20796,20797,20798,20799,20800,20801,20802,20803,20804,20805,20806,20807,20808,20809,20810,20811,20812,20813,20814,20815,20816,20817,20818,20819,20820,20821,20822,20823,20824,20825,20826,20827,20828,20829,20830,20831,20832,20833,20834,20835,20836,20837,20838,20839,20840,20841,20842,20843,20844,20845,20846,20847,20848,20849,20850,20851,20852,20853,20854,20855,20856,20857,20858,20859,20860,20861,20862,20863,20864,20865,20866,20867,20868,20869,20870,20871,20872,20873,20874,20875,20876,20877,20878,20879,20880,20881,20882,20883,20884,20885,20886,20887,20888,20889,20890,20891,20892,20893,20894,20895,20896,20897,20898,20899,20900,20901,20902,20903,20904,20905,20906,20907,20908,20909,20910,20911,20912,20913,20914,20915,20916,20917,20918,20919,20920,20921,20922,20923,20924,20925,20926,20927,20928,20929,20930,20931,20932,20933,20934,20935,20936,20937,20938,20939,20940,20941,20942,20943,20944,20945,20946,20947,20948,20949,20950,20951,20952,20953,20954,20955,20956,20957,20958,20959,20960,20961,20962,20963,20964,20965,20966,20967,20968,20969,20970,20971,20972,20973,20974,20975,20976,20977,20978,20979,20980,20981,20982,20983,20984,20985,20986,20987,20988,20989,20990,20991,20992,20993,20994,20995,20996,20997,20998,20999,21000,21001,21002,21003,21004,21005,21006,21007,21008,21009,21010,21011,21012,21013,21014,21015,21016,21017,21018,21019,21020,21021,21022,21023,21024,21025,21026,21027,21028,21029,21030,21031,21032,21033,21034,21035,21036,21037,21038,21039,21040,21041,21042,21043,21044,21045,21046,21047,21048,21049,21050,21051,21052,21053,21054,21055,21056,21057,21058,21059,21060,21061,21062,21063,21064,21065,21066,21067,21068,21069,21070,21071,21072,21073,21074,21075,21076,21077,21078,21079,21080,21081,21082,21083,21084,21085,21086,21087,21088,21089,21090,21091,21092,21093,21094,21095,21096,21097,21098,21099,21100,21101,21102,21103,21104,21105,21106,21107,21108,21109,21110,21111,21112,21113,21114,21115,21116,21117,21118,21119,21120,21121,21122,21123,21124,21125,21126,21127,21128,21129,21130,21131,21132,21133,21134,21135,21136,21137,21138,21139,21140,21141,21142,21143,21144,21145,21146,21147,21148,21149,21150,21151,21152,21153,21154,21155,21156,21157,21158,21159,21160,21161,21162,21163,21164,21165,21166,21167,21168,21169,21170,21171,21172,21173,21174,21175,21176,21177,21178,21179,21180,21181,21182,21183,21184,21185,21186,21187,21188,21189,21190,21191,21192,21193,21194,21195,21196,21197,21198,21199,21200,21201,21202,21203,21204,21205,21206,21207,21208,21209,21210,21211,21212,21213,21214,21215,21216,21217,21218,21219,21220,21221,21222,21223,21224,21225,21226,21227,21228,21229,21230,21231,21232,21233,21234,21235,21236,21237,21238,21239,21240,21241,21242,21243,21244,21245,21246,21247,21248,21249,21250,21251,21252,21253,21254,21255,21256,21257,21258,21259,21260,21261,21262,21263,21264,21265,21266,21267,21268,21269,21270,21271,21272,21273,21274,21275,21276,21277,21278,21279,21280,21281,21282,21283,21284,21285,21286,21287,21288,21289,21290,21291,21292,21293,21294,21295,21296,21297,21298,21299,21300,21301,21302,21303,21304,21305,21306,21307,21308,21309,21310,21311,21312,21313,21314,21315,21316,21317,21318,21319,21320,21321,21322,21323,21324,21325,21326,21327,21328,21329,21330,21331,21332,21333,21334,21335,21336,21337,21338,21339,21340,21341,21342,21343,21344,21345,21346,21347,21348,21349,21350,21351,21352,21353,21354,21355,21356,21357,21358,21359,21360,21361,21362,21363,21364,21365,21366,21367,21368,21369,21370,21371,21372,21373,21374,21375,21376,21377,21378,21379,21380,21381,21382,21383,21384,21385,21386,21387,21388,21389,21390,21391,21392,21393,21394,21395,21396,21397,21398,21399,21400,21401,21402,21403,21404,21405,21406,21407,21408,21409,21410,21411,21412,21413,21414,21415,21416,21417,21418,21419,21420,21421,21422,21423,21424,21425,21426,21427,21428,21429,21430,21431,21432,21433,21434,21435,21436,21437,21438,21439,21440,21441,21442,21443,21444,21445,21446,21447,21448,21449,21450,21451,21452,21453,21454,21455,21456,21457,21458,21459,21460,21461,21462,21463,21464,21465,21466,21467,21468,21469,21470,21471,21472,21473,21474,21475,21476,21477,21478,21479,21480,21481,21482,21483,21484,21485,21486,21487,21488,21489,21490,21491,21492,21493,21494,21495,21496,21497,21498,21499,21500,21501,21502,21503,21504,21505,21506,21507,21508,21509,21510,21511,21512,21513,21514,21515,21516,21517,21518,21519,21520,21521,21522,21523,21524,21525,21526,21527,21528,21529,21530,21531,21532,21533,21534,21535,21536,21537,21538,21539,21540,21541,21542,21543,21544,21545,21546,21547,21548,21549,21550,21551,21552,21553,21554,21555,21556,21557,21558,21559,21560,21561,21562,21563,21564,21565,21566,21567,21568,21569,21570,21571,21572,21573,21574,21575,21576,21577,21578,21579,21580,21581,21582,21583,21584,21585,21586,21587,21588,21589,21590,21591,21592,21593,21594,21595,21596,21597,21598,21599,21600,21601,21602,21603,21604,21605,21606,21607,21608,21609,21610,21611,21612,21613,21614,21615,21616,21617,21618,21619,21620,21621,21622,21623,21624,21625,21626,21627,21628,21629,21630,21631,21632,21633,21634,21635,21636,21637,21638,21639,21640,21641,21642,21643,21644,21645,21646,21647,21648,21649,21650,21651,21652,21653,21654,21655,21656,21657,21658,21659,21660,21661,21662,21663,21664,21665,21666,21667,21668,21669,21670,21671,21672,21673,21674,21675,21676,21677,21678,21679,21680,21681,21682,21683,21684,21685,21686,21687,21688,21689,21690,21691,21692,21693,21694,21695,21696,21697,21698,21699,21700,21701,21702,21703,21704,21705,21706,21707,21708,21709,21710,21711,21712,21713,21714,21715,21716,21717,21718,21719,21720,21721,21722,21723,21724,21725,21726,21727,21728,21729,21730,21731,21732,21733,21734,21735,21736,21737,21738,21739,21740,21741,21742,21743,21744,21745,21746,21747,21748,21749,21750,21751,21752,21753,21754,21755,21756,21757,21758,21759,21760,21761,21762,21763,21764,21765,21766,21767,21768,21769,21770,21771,21772,21773,21774,21775,21776,21777,21778,21779,21780,21781,21782,21783,21784,21785,21786,21787,21788,21789,21790,21791,21792,21793,21794,21795,21796,21797,21798,21799,21800,21801,21802,21803,21804,21805,21806,21807,21808,21809,21810,21811,21812,21813,21814,21815,21816,21817,21818,21819,21820,21821,21822,21823,21824,21825,21826,21827,21828,21829,21830,21831,21832,21833,21834,21835,21836,21837,21838,21839,21840,21841,21842,21843,21844,21845,21846,21847,21848,21849,21850,21851,21852,21853,21854,21855,21856,21857,21858,21859,21860,21861,21862,21863,21864,21865,21866,21867,21868,21869,21870,21871,21872,21873,21874,21875,21876,21877,21878,21879,21880,21881,21882,21883,21884,21885,21886,21887,21888,21889,21890,21891,21892,21893,21894,21895,21896,21897,21898,21899,21900,21901,21902,21903,21904,21905,21906,21907,21908,21909,21910,21911,21912,21913,21914,21915,21916,21917,21918,21919,21920,21921,21922,21923,21924,21925,21926,21927,21928,21929,21930,21931,21932,21933,21934,21935,21936,21937,21938,21939,21940,21941,21942,21943,21944,21945,21946,21947,21948,21949,21950,21951,21952,21953,21954,21955,21956,21957,21958,21959,21960,21961,21962,21963,21964,21965,21966,21967,21968,21969,21970,21971,21972,21973,21974,21975,21976,21977,21978,21979,21980,21981,21982,21983,21984,21985,21986,21987,21988,21989,21990,21991,21992,21993,21994,21995,21996,21997,21998,21999,22000,22001,22002,22003,22004,22005,22006,22007,22008,22009,22010,22011,22012,22013,22014,22015,22016,22017,22018,22019,22020,22021,22022,22023,22024,22025,22026,22027,22028,22029,22030,22031,22032,22033,22034,22035,22036,22037,22038,22039,22040,22041,22042,22043,22044,22045,22046,22047,22048,22049,22050,22051,22052,22053,22054,22055,22056,22057,22058,22059,22060,22061,22062,22063,22064,22065,22066,22067,22068,22069,22070,22071,22072,22073,22074,22075,22076,22077,22078,22079,22080,22081,22082,22083,22084,22085,22086,22087,22088,22089,22090,22091,22092,22093,22094,22095,22096,22097,22098,22099,22100,22101,22102,22103,22104,22105,22106,22107,22108,22109,22110,22111,22112,22113,22114,22115,22116,22117,22118,22119,22120,22121,22122,22123,22124,22125,22126,22127,22128,22129,22130,22131,22132,22133,22134,22135,22136,22137,22138,22139,22140,22141,22142,22143,22144,22145,22146,22147,22148,22149,22150,22151,22152,22153,22154,22155,22156,22157,22158,22159,22160,22161,22162,22163,22164,22165,22166,22167,22168,22169,22170,22171,22172,22173,22174,22175,22176,22177,22178,22179,22180,22181,22182,22183,22184,22185,22186,22187,22188,22189,22190,22191,22192,22193,22194,22195,22196,22197,22198,22199,22200,22201,22202,22203,22204,22205,22206,22207,22208,22209,22210,22211,22212,22213,22214,22215,22216,22217,22218,22219,22220,22221,22222,22223,22224,22225,22226,22227,22228,22229,22230,22231,22232,22233,22234,22235,22236,22237,22238,22239,22240,22241,22242,22243,22244,22245,22246,22247,22248,22249,22250,22251,22252,22253,22254,22255,22256,22257,22258,22259,22260,22261,22262,22263,22264,22265,22266,22267,22268,22269,22270,22271,22272,22273,22274,22275,22276,22277,22278,22279,22280,22281,22282,22283,22284,22285,22286,22287,22288,22289,22290,22291,22292,22293,22294,22295,22296,22297,22298,22299,22300,22301,22302,22303,22304,22305,22306,22307,22308,22309,22310,22311,22312,22313,22314,22315,22316,22317,22318,22319,22320,22321,22322,22323,22324,22325,22326,22327,22328,22329,22330,22331,22332,22333,22334,22335,22336,22337,22338,22339,22340,22341,22342,22343,22344,22345,22346,22347,22348,22349,22350,22351,22352,22353,22354,22355,22356,22357,22358,22359,22360,22361,22362,22363,22364,22365,22366,22367,22368,22369,22370,22371,22372,22373,22374,22375,22376,22377,22378,22379,22380,22381,22382,22383,22384,22385,22386,22387,22388,22389,22390,22391,22392,22393,22394,22395,22396,22397,22398,22399,22400,22401,22402,22403,22404,22405,22406,22407,22408,22409,22410,22411,22412,22413,22414,22415,22416,22417,22418,22419,22420,22421,22422,22423,22424,22425,22426,22427,22428,22429,22430,22431,22432,22433,22434,22435,22436,22437,22438,22439,22440,22441,22442,22443,22444,22445,22446,22447,22448,22449,22450,22451,22452,22453,22454,22455,22456,22457,22458,22459,22460,22461,22462,22463,22464,22465,22466,22467,22468,22469,22470,22471,22472,22473,22474,22475,22476,22477,22478,22479,22480,22481,22482,22483,22484,22485,22486,22487,22488,22489,22490,22491,22492,22493,22494,22495,22496,22497,22498,22499,22500,22501,22502,22503,22504,22505,22506,22507,22508,22509,22510,22511,22512,22513,22514,22515,22516,22517,22518,22519,22520,22521,22522,22523,22524,22525,22526,22527,22528,22529,22530,22531,22532,22533,22534,22535,22536,22537,22538,22539,22540,22541,22542,22543,22544,22545,22546,22547,22548,22549,22550,22551,22552,22553,22554,22555,22556,22557,22558,22559,22560,22561,22562,22563,22564,22565,22566,22567,22568,22569,22570,22571,22572,22573,22574,22575,22576,22577,22578,22579,22580,22581,22582,22583,22584,22585,22586,22587,22588,22589,22590,22591,22592,22593,22594,22595,22596,22597,22598,22599,22600,22601,22602,22603,22604,22605,22606,22607,22608,22609,22610,22611,22612,22613,22614,22615,22616,22617,22618,22619,22620,22621,22622,22623,22624,22625,22626,22627,22628,22629,22630,22631,22632,22633,22634,22635,22636,22637,22638,22639,22640,22641,22642,22643,22644,22645,22646,22647,22648,22649,22650,22651,22652,22653,22654,22655,22656,22657,22658,22659,22660,22661,22662,22663,22664,22665,22666,22667,22668,22669,22670,22671,22672,22673,22674,22675,22676,22677,22678,22679,22680,22681,22682,22683,22684,22685,22686,22687,22688,22689,22690,22691,22692,22693,22694,22695,22696,22697,22698,22699,22700,22701,22702,22703,22704,22705,22706,22707,22708,22709,22710,22711,22712,22713,22714,22715,22716,22717,22718,22719,22720,22721,22722,22723,22724,22725,22726,22727,22728,22729,22730,22731,22732,22733,22734,22735,22736,22737,22738,22739,22740,22741,22742,22743,22744,22745,22746,22747,22748,22749,22750,22751,22752,22753,22754,22755,22756,22757,22758,22759,22760,22761,22762,22763,22764,22765,22766,22767,22768,22769,22770,22771,22772,22773,22774,22775,22776,22777,22778,22779,22780,22781,22782,22783,22784,22785,22786,22787,22788,22789,22790,22791,22792,22793,22794,22795,22796,22797,22798,22799,22800,22801,22802,22803,22804,22805,22806,22807,22808,22809,22810,22811,22812,22813,22814,22815,22816,22817,22818,22819,22820,22821,22822,22823,22824,22825,22826,22827,22828,22829,22830,22831,22832,22833,22834,22835,22836,22837,22838,22839,22840,22841,22842,22843,22844,22845,22846,22847,22848,22849,22850,22851,22852,22853,22854,22855,22856,22857,22858,22859,22860,22861,22862,22863,22864,22865,22866,22867,22868,22869,22870,22871,22872,22873,22874,22875,22876,22877,22878,22879,22880,22881,22882,22883,22884,22885,22886,22887,22888,22889,22890,22891,22892,22893,22894,22895,22896,22897,22898,22899,22900,22901,22902,22903,22904,22905,22906,22907,22908,22909,22910,22911,22912,22913,22914,22915,22916,22917,22918,22919,22920,22921,22922,22923,22924,22925,22926,22927,22928,22929,22930,22931,22932,22933,22934,22935,22936,22937,22938,22939,22940,22941,22942,22943,22944,22945,22946,22947,22948,22949,22950,22951,22952,22953,22954,22955,22956,22957,22958,22959,22960,22961,22962,22963,22964,22965,22966,22967,22968,22969,22970,22971,22972,22973,22974,22975,22976,22977,22978,22979,22980,22981,22982,22983,22984,22985,22986,22987,22988,22989,22990,22991,22992,22993,22994,22995,22996,22997,22998,22999,23000,23001,23002,23003,23004,23005,23006,23007,23008,23009,23010,23011,23012,23013,23014,23015,23016,23017,23018,23019,23020,23021,23022,23023,23024,23025,23026,23027,23028,23029,23030,23031,23032,23033,23034,23035,23036,23037,23038,23039,23040,23041,23042,23043,23044,23045,23046,23047,23048,23049,23050,23051,23052,23053,23054,23055,23056,23057,23058,23059,23060,23061,23062,23063,23064,23065,23066,23067,23068,23069,23070,23071,23072,23073,23074,23075,23076,23077,23078,23079,23080,23081,23082,23083,23084,23085,23086,23087,23088,23089,23090,23091,23092,23093,23094,23095,23096,23097,23098,23099,23100,23101,23102,23103,23104,23105,23106,23107,23108,23109,23110,23111,23112,23113,23114,23115,23116,23117,23118,23119,23120,23121,23122,23123,23124,23125,23126,23127,23128,23129,23130,23131,23132,23133,23134,23135,23136,23137,23138,23139,23140,23141,23142,23143,23144,23145,23146,23147,23148,23149,23150,23151,23152,23153,23154,23155,23156,23157,23158,23159,23160,23161,23162,23163,23164,23165,23166,23167,23168,23169,23170,23171,23172,23173,23174,23175,23176,23177,23178,23179,23180,23181,23182,23183,23184,23185,23186,23187,23188,23189,23190,23191,23192,23193,23194,23195,23196,23197,23198,23199,23200,23201,23202,23203,23204,23205,23206,23207,23208,23209,23210,23211,23212,23213,23214,23215,23216,23217,23218,23219,23220,23221,23222,23223,23224,23225,23226,23227,23228,23229,23230,23231,23232,23233,23234,23235,23236,23237,23238,23239,23240,23241,23242,23243,23244,23245,23246,23247,23248,23249,23250,23251,23252,23253,23254,23255,23256,23257,23258,23259,23260,23261,23262,23263,23264,23265,23266,23267,23268,23269,23270,23271,23272,23273,23274,23275,23276,23277,23278,23279,23280,23281,23282,23283,23284,23285,23286,23287,23288,23289,23290,23291,23292,23293,23294,23295,23296,23297,23298,23299,23300,23301,23302,23303,23304,23305,23306,23307,23308,23309,23310,23311,23312,23313,23314,23315,23316,23317,23318,23319,23320,23321,23322,23323,23324,23325,23326,23327,23328,23329,23330,23331,23332,23333,23334,23335,23336,23337,23338,23339,23340,23341,23342,23343,23344,23345,23346,23347,23348,23349,23350,23351,23352,23353,23354,23355,23356,23357,23358,23359,23360,23361,23362,23363,23364,23365,23366,23367,23368,23369,23370,23371,23372,23373,23374,23375,23376,23377,23378,23379,23380,23381,23382,23383,23384,23385,23386,23387,23388,23389,23390,23391,23392,23393,23394,23395,23396,23397,23398,23399,23400,23401,23402,23403,23404,23405,23406,23407,23408,23409,23410,23411,23412,23413,23414,23415,23416,23417,23418,23419,23420,23421,23422,23423,23424,23425,23426,23427,23428,23429,23430,23431,23432,23433,23434,23435,23436,23437,23438,23439,23440,23441,23442,23443,23444,23445,23446,23447,23448,23449,23450,23451,23452,23453,23454,23455,23456,23457,23458,23459,23460,23461,23462,23463,23464,23465,23466,23467,23468,23469,23470,23471,23472,23473,23474,23475,23476,23477,23478,23479,23480,23481,23482,23483,23484,23485,23486,23487,23488,23489,23490,23491,23492,23493,23494,23495,23496,23497,23498,23499,23500,23501,23502,23503,23504,23505,23506,23507,23508,23509,23510,23511,23512,23513,23514,23515,23516,23517,23518,23519,23520,23521,23522,23523,23524,23525,23526,23527,23528,23529,23530,23531,23532,23533,23534,23535,23536,23537,23538,23539,23540,23541,23542,23543,23544,23545,23546,23547,23548,23549,23550,23551,23552,23553,23554,23555,23556,23557,23558,23559,23560,23561,23562,23563,23564,23565,23566,23567,23568,23569,23570,23571,23572,23573,23574,23575,23576,23577,23578,23579,23580,23581,23582,23583,23584,23585,23586,23587,23588,23589,23590,23591,23592,23593,23594,23595,23596,23597,23598,23599,23600,23601,23602,23603,23604,23605,23606,23607,23608,23609,23610,23611,23612,23613,23614,23615,23616,23617,23618,23619,23620,23621,23622,23623,23624,23625,23626,23627,23628,23629,23630,23631,23632,23633,23634,23635,23636,23637,23638,23639,23640,23641,23642,23643,23644,23645,23646,23647,23648,23649,23650,23651,23652,23653,23654,23655,23656,23657,23658,23659,23660,23661,23662,23663,23664,23665,23666,23667,23668,23669,23670,23671,23672,23673,23674,23675,23676,23677,23678,23679,23680,23681,23682,23683,23684,23685,23686,23687,23688,23689,23690,23691,23692,23693,23694,23695,23696,23697,23698,23699,23700,23701,23702,23703,23704,23705,23706,23707,23708,23709,23710,23711,23712,23713,23714,23715,23716,23717,23718,23719,23720,23721,23722,23723,23724,23725,23726,23727,23728,23729,23730,23731,23732,23733,23734,23735,23736,23737,23738,23739,23740,23741,23742,23743,23744,23745,23746,23747,23748,23749,23750,23751,23752,23753,23754,23755,23756,23757,23758,23759,23760,23761,23762,23763,23764,23765,23766,23767,23768,23769,23770,23771,23772,23773,23774,23775,23776,23777,23778,23779,23780,23781,23782,23783,23784,23785,23786,23787,23788,23789,23790,23791,23792,23793,23794,23795,23796,23797,23798,23799,23800,23801,23802,23803,23804,23805,23806,23807,23808,23809,23810,23811,23812,23813,23814,23815,23816,23817,23818,23819,23820,23821,23822,23823,23824,23825,23826,23827,23828,23829,23830,23831,23832,23833,23834,23835,23836,23837,23838,23839,23840,23841,23842,23843,23844,23845,23846,23847,23848,23849,23850,23851,23852,23853,23854,23855,23856,23857,23858,23859,23860,23861,23862,23863,23864,23865,23866,23867,23868,23869,23870,23871,23872,23873,23874,23875,23876,23877,23878,23879,23880,23881,23882,23883,23884,23885,23886,23887,23888,23889,23890,23891,23892,23893,23894,23895,23896,23897,23898,23899,23900,23901,23902,23903,23904,23905,23906,23907,23908,23909,23910,23911,23912,23913,23914,23915,23916,23917,23918,23919,23920,23921,23922,23923,23924,23925,23926,23927,23928,23929,23930,23931,23932,23933,23934,23935,23936,23937,23938,23939,23940,23941,23942,23943,23944,23945,23946,23947,23948,23949,23950,23951,23952,23953,23954,23955,23956,23957,23958,23959,23960,23961,23962,23963,23964,23965,23966,23967,23968,23969,23970,23971,23972,23973,23974,23975,23976,23977,23978,23979,23980,23981,23982,23983,23984,23985,23986,23987,23988,23989,23990,23991,23992,23993,23994,23995,23996,23997,23998,23999,24000,24001,24002,24003,24004,24005,24006,24007,24008,24009,24010,24011,24012,24013,24014,24015,24016,24017,24018,24019,24020,24021,24022,24023,24024,24025,24026,24027,24028,24029,24030,24031,24032,24033,24034,24035,24036,24037,24038,24039,24040,24041,24042,24043,24044,24045,24046,24047,24048,24049,24050,24051,24052,24053,24054,24055,24056,24057,24058,24059,24060,24061,24062,24063,24064,24065,24066,24067,24068,24069,24070,24071,24072,24073,24074,24075,24076,24077,24078,24079,24080,24081,24082,24083,24084,24085,24086,24087,24088,24089,24090,24091,24092,24093,24094,24095,24096,24097,24098,24099,24100,24101,24102,24103,24104,24105,24106,24107,24108,24109,24110,24111,24112,24113,24114,24115,24116,24117,24118,24119,24120,24121,24122,24123,24124,24125,24126,24127,24128,24129,24130,24131,24132,24133,24134,24135,24136,24137,24138,24139,24140,24141,24142,24143,24144,24145,24146,24147,24148,24149,24150,24151,24152,24153,24154,24155,24156,24157,24158,24159,24160,24161,24162,24163,24164,24165,24166,24167,24168,24169,24170,24171,24172,24173,24174,24175,24176,24177,24178,24179,24180,24181,24182,24183,24184,24185,24186,24187,24188,24189,24190,24191,24192,24193,24194,24195,24196,24197,24198,24199,24200,24201,24202,24203,24204,24205,24206,24207,24208,24209,24210,24211,24212,24213,24214,24215,24216,24217,24218,24219,24220,24221,24222,24223,24224,24225,24226,24227,24228,24229,24230,24231,24232,24233,24234,24235,24236,24237,24238,24239,24240,24241,24242,24243,24244,24245,24246,24247,24248,24249,24250,24251,24252,24253,24254,24255,24256,24257,24258,24259,24260,24261,24262,24263,24264,24265,24266,24267,24268,24269,24270,24271,24272,24273,24274,24275,24276,24277,24278,24279,24280,24281,24282,24283,24284,24285,24286,24287,24288,24289,24290,24291,24292,24293,24294,24295,24296,24297,24298,24299,24300,24301,24302,24303,24304,24305,24306,24307,24308,24309,24310,24311,24312,24313,24314,24315,24316,24317,24318,24319,24320,24321,24322,24323,24324,24325,24326,24327,24328,24329,24330,24331,24332,24333,24334,24335,24336,24337,24338,24339,24340,24341,24342,24343,24344,24345,24346,24347,24348,24349,24350,24351,24352,24353,24354,24355,24356,24357,24358,24359,24360,24361,24362,24363,24364,24365,24366,24367,24368,24369,24370,24371,24372,24373,24374,24375,24376,24377,24378,24379,24380,24381,24382,24383,24384,24385,24386,24387,24388,24389,24390,24391,24392,24393,24394,24395,24396,24397,24398,24399,24400,24401,24402,24403,24404,24405,24406,24407,24408,24409,24410,24411,24412,24413,24414,24415,24416,24417,24418,24419,24420,24421,24422,24423,24424,24425,24426,24427,24428,24429,24430,24431,24432,24433,24434,24435,24436,24437,24438,24439,24440,24441,24442,24443,24444,24445,24446,24447,24448,24449,24450,24451,24452,24453,24454,24455,24456,24457,24458,24459,24460,24461,24462,24463,24464,24465,24466,24467,24468,24469,24470,24471,24472,24473,24474,24475,24476,24477,24478,24479,24480,24481,24482,24483,24484,24485,24486,24487,24488,24489,24490,24491,24492,24493,24494,24495,24496,24497,24498,24499,24500,24501,24502,24503,24504,24505,24506,24507,24508,24509,24510,24511,24512,24513,24514,24515,24516,24517,24518,24519,24520,24521,24522,24523,24524,24525,24526,24527,24528,24529,24530,24531,24532,24533,24534,24535,24536,24537,24538,24539,24540,24541,24542,24543,24544,24545,24546,24547,24548,24549,24550,24551,24552,24553,24554,24555,24556,24557,24558,24559,24560,24561,24562,24563,24564,24565,24566,24567,24568,24569,24570,24571,24572,24573,24574,24575,24576,24577,24578,24579,24580,24581,24582,24583,24584,24585,24586,24587,24588,24589,24590,24591,24592,24593,24594,24595,24596,24597,24598,24599,24600,24601,24602,24603,24604,24605,24606,24607,24608,24609,24610,24611,24612,24613,24614,24615,24616,24617,24618,24619,24620,24621,24622,24623,24624,24625,24626,24627,24628,24629,24630,24631,24632,24633,24634,24635,24636,24637,24638,24639,24640,24641,24642,24643,24644,24645,24646,24647,24648,24649,24650,24651,24652,24653,24654,24655,24656,24657,24658,24659,24660,24661,24662,24663,24664,24665,24666,24667,24668,24669,24670,24671,24672,24673,24674,24675,24676,24677,24678,24679,24680,24681,24682,24683,24684,24685,24686,24687,24688,24689,24690,24691,24692,24693,24694,24695,24696,24697,24698,24699,24700,24701,24702,24703,24704,24705,24706,24707,24708,24709,24710,24711,24712,24713,24714,24715,24716,24717,24718,24719,24720,24721,24722,24723,24724,24725,24726,24727,24728,24729,24730,24731,24732,24733,24734,24735,24736,24737,24738,24739,24740,24741,24742,24743,24744,24745,24746,24747,24748,24749,24750,24751,24752,24753,24754,24755,24756,24757,24758,24759,24760,24761,24762,24763,24764,24765,24766,24767,24768,24769,24770,24771,24772,24773,24774,24775,24776,24777,24778,24779,24780,24781,24782,24783,24784,24785,24786,24787,24788,24789,24790,24791,24792,24793,24794,24795,24796,24797,24798,24799,24800,24801,24802,24803,24804,24805,24806,24807,24808,24809,24810,24811,24812,24813,24814,24815,24816,24817,24818,24819,24820,24821,24822,24823,24824,24825,24826,24827,24828,24829,24830,24831,24832,24833,24834,24835,24836,24837,24838,24839,24840,24841,24842,24843,24844,24845,24846,24847,24848,24849,24850,24851,24852,24853,24854,24855,24856,24857,24858,24859,24860,24861,24862,24863,24864,24865,24866,24867,24868,24869,24870,24871,24872,24873,24874,24875,24876,24877,24878,24879,24880,24881,24882,24883,24884,24885,24886,24887,24888,24889,24890,24891,24892,24893,24894,24895,24896,24897,24898,24899,24900,24901,24902,24903,24904,24905,24906,24907,24908,24909,24910,24911,24912,24913,24914,24915,24916,24917,24918,24919,24920,24921,24922,24923,24924,24925,24926,24927,24928,24929,24930,24931,24932,24933,24934,24935,24936,24937,24938,24939,24940,24941,24942,24943,24944,24945,24946,24947,24948,24949,24950,24951,24952,24953,24954,24955,24956,24957,24958,24959,24960,24961,24962,24963,24964,24965,24966,24967,24968,24969,24970,24971,24972,24973,24974,24975,24976,24977,24978,24979,24980,24981,24982,24983,24984,24985,24986,24987,24988,24989,24990,24991,24992,24993,24994,24995,24996,24997,24998,24999,25000,25001,25002,25003,25004,25005,25006,25007,25008,25009,25010,25011,25012,25013,25014,25015,25016,25017,25018,25019,25020,25021,25022,25023,25024,25025,25026,25027,25028,25029,25030,25031,25032,25033,25034,25035,25036,25037,25038,25039,25040,25041,25042,25043,25044,25045,25046,25047,25048,25049,25050,25051,25052,25053,25054,25055,25056,25057,25058,25059,25060,25061,25062,25063,25064,25065,25066,25067,25068,25069,25070,25071,25072,25073,25074,25075,25076,25077,25078,25079,25080,25081,25082,25083,25084,25085,25086,25087,25088,25089,25090,25091,25092,25093,25094,25095,25096,25097,25098,25099,25100,25101,25102,25103,25104,25105,25106,25107,25108,25109,25110,25111,25112,25113,25114,25115,25116,25117,25118,25119,25120,25121,25122,25123,25124,25125,25126,25127,25128,25129,25130,25131,25132,25133,25134,25135,25136,25137,25138,25139,25140,25141,25142,25143,25144,25145,25146,25147,25148,25149,25150,25151,25152,25153,25154,25155,25156,25157,25158,25159,25160,25161,25162,25163,25164,25165,25166,25167,25168,25169,25170,25171,25172,25173,25174,25175,25176,25177,25178,25179,25180,25181,25182,25183,25184,25185,25186,25187,25188,25189,25190,25191,25192,25193,25194,25195,25196,25197,25198,25199,25200,25201,25202,25203,25204,25205,25206,25207,25208,25209,25210,25211,25212,25213,25214,25215,25216,25217,25218,25219,25220,25221,25222,25223,25224,25225,25226,25227,25228,25229,25230,25231,25232,25233,25234,25235,25236,25237,25238,25239,25240,25241,25242,25243,25244,25245,25246,25247,25248,25249,25250,25251,25252,25253,25254,25255,25256,25257,25258,25259,25260,25261,25262,25263,25264,25265,25266,25267,25268,25269,25270,25271,25272,25273,25274,25275,25276,25277,25278,25279,25280,25281,25282,25283,25284,25285,25286,25287,25288,25289,25290,25291,25292,25293,25294,25295,25296,25297,25298,25299,25300,25301,25302,25303,25304,25305,25306,25307,25308,25309,25310,25311,25312,25313,25314,25315,25316,25317,25318,25319,25320,25321,25322,25323,25324,25325,25326,25327,25328,25329,25330,25331,25332,25333,25334,25335,25336,25337,25338,25339,25340,25341,25342,25343,25344,25345,25346,25347,25348,25349,25350,25351,25352,25353,25354,25355,25356,25357,25358,25359,25360,25361,25362,25363,25364,25365,25366,25367,25368,25369,25370,25371,25372,25373,25374,25375,25376,25377,25378,25379,25380,25381,25382,25383,25384,25385,25386,25387,25388,25389,25390,25391,25392,25393,25394,25395,25396,25397,25398,25399,25400,25401,25402,25403,25404,25405,25406,25407,25408,25409,25410,25411,25412,25413,25414,25415,25416,25417,25418,25419,25420,25421,25422,25423,25424,25425,25426,25427,25428,25429,25430,25431,25432,25433,25434,25435,25436,25437,25438,25439,25440,25441,25442,25443,25444,25445,25446,25447,25448,25449,25450,25451,25452,25453,25454,25455,25456,25457,25458,25459,25460,25461,25462,25463,25464,25465,25466,25467,25468,25469,25470,25471,25472,25473,25474,25475,25476,25477,25478,25479,25480,25481,25482,25483,25484,25485,25486,25487,25488,25489,25490,25491,25492,25493,25494,25495,25496,25497,25498,25499,25500,25501,25502,25503,25504,25505,25506,25507,25508,25509,25510,25511,25512,25513,25514,25515,25516,25517,25518,25519,25520,25521,25522,25523,25524,25525,25526,25527,25528,25529,25530,25531,25532,25533,25534,25535,25536,25537,25538,25539,25540,25541,25542,25543,25544,25545,25546,25547,25548,25549,25550,25551,25552,25553,25554,25555,25556,25557,25558,25559,25560,25561,25562,25563,25564,25565,25566,25567,25568,25569,25570,25571,25572,25573,25574,25575,25576,25577,25578,25579,25580,25581,25582,25583,25584,25585,25586,25587,25588,25589,25590,25591,25592,25593,25594,25595,25596,25597,25598,25599,25600,25601,25602,25603,25604,25605,25606,25607,25608,25609,25610,25611,25612,25613,25614,25615,25616,25617,25618,25619,25620,25621,25622,25623,25624,25625,25626,25627,25628,25629,25630,25631,25632,25633,25634,25635,25636,25637,25638,25639,25640,25641,25642,25643,25644,25645,25646,25647,25648,25649,25650,25651,25652,25653,25654,25655,25656,25657,25658,25659,25660,25661,25662,25663,25664,25665,25666,25667,25668,25669,25670,25671,25672,25673,25674,25675,25676,25677,25678,25679,25680,25681,25682,25683,25684,25685,25686,25687,25688,25689,25690,25691,25692,25693,25694,25695,25696,25697,25698,25699,25700,25701,25702,25703,25704,25705,25706,25707,25708,25709,25710,25711,25712,25713,25714,25715,25716,25717,25718,25719,25720,25721,25722,25723,25724,25725,25726,25727,25728,25729,25730,25731,25732,25733,25734,25735,25736,25737,25738,25739,25740,25741,25742,25743,25744,25745,25746,25747,25748,25749,25750,25751,25752,25753,25754,25755,25756,25757,25758,25759,25760,25761,25762,25763,25764,25765,25766,25767,25768,25769,25770,25771,25772,25773,25774,25775,25776,25777,25778,25779,25780,25781,25782,25783,25784,25785,25786,25787,25788,25789,25790,25791,25792,25793,25794,25795,25796,25797,25798,25799,25800,25801,25802,25803,25804,25805,25806,25807,25808,25809,25810,25811,25812,25813,25814,25815,25816,25817,25818,25819,25820,25821,25822,25823,25824,25825,25826,25827,25828,25829,25830,25831,25832,25833,25834,25835,25836,25837,25838,25839,25840,25841,25842,25843,25844,25845,25846,25847,25848,25849,25850,25851,25852,25853,25854,25855,25856,25857,25858,25859,25860,25861,25862,25863,25864,25865,25866,25867,25868,25869,25870,25871,25872,25873,25874,25875,25876,25877,25878,25879,25880,25881,25882,25883,25884,25885,25886,25887,25888,25889,25890,25891,25892,25893,25894,25895,25896,25897,25898,25899,25900,25901,25902,25903,25904,25905,25906,25907,25908,25909,25910,25911,25912,25913,25914,25915,25916,25917,25918,25919,25920,25921,25922,25923,25924,25925,25926,25927,25928,25929,25930,25931,25932,25933,25934,25935,25936,25937,25938,25939,25940,25941,25942,25943,25944,25945,25946,25947,25948,25949,25950,25951,25952,25953,25954,25955,25956,25957,25958,25959,25960,25961,25962,25963,25964,25965,25966,25967,25968,25969,25970,25971,25972,25973,25974,25975,25976,25977,25978,25979,25980,25981,25982,25983,25984,25985,25986,25987,25988,25989,25990,25991,25992,25993,25994,25995,25996,25997,25998,25999,26000,26001,26002,26003,26004,26005,26006,26007,26008,26009,26010,26011,26012,26013,26014,26015,26016,26017,26018,26019,26020,26021,26022,26023,26024,26025,26026,26027,26028,26029,26030,26031,26032,26033,26034,26035,26036,26037,26038,26039,26040,26041,26042,26043,26044,26045,26046,26047,26048,26049,26050,26051,26052,26053,26054,26055,26056,26057,26058,26059,26060,26061,26062,26063,26064,26065,26066,26067,26068,26069,26070,26071,26072,26073,26074,26075,26076,26077,26078,26079,26080,26081,26082,26083,26084,26085,26086,26087,26088,26089,26090,26091,26092,26093,26094,26095,26096,26097,26098,26099,26100,26101,26102,26103,26104,26105,26106,26107,26108,26109,26110,26111,26112,26113,26114,26115,26116,26117,26118,26119,26120,26121,26122,26123,26124,26125,26126,26127,26128,26129,26130,26131,26132,26133,26134,26135,26136,26137,26138,26139,26140,26141,26142,26143,26144,26145,26146,26147,26148,26149,26150,26151,26152,26153,26154,26155,26156,26157,26158,26159,26160,26161,26162,26163,26164,26165,26166,26167,26168,26169,26170,26171,26172,26173,26174,26175,26176,26177,26178,26179,26180,26181,26182,26183,26184,26185,26186,26187,26188,26189,26190,26191,26192,26193,26194,26195,26196,26197,26198,26199,26200,26201,26202,26203,26204,26205,26206,26207,26208,26209,26210,26211,26212,26213,26214,26215,26216,26217,26218,26219,26220,26221,26222,26223,26224,26225,26226,26227,26228,26229,26230,26231,26232,26233,26234,26235,26236,26237,26238,26239,26240,26241,26242,26243,26244,26245,26246,26247,26248,26249,26250,26251,26252,26253,26254,26255,26256,26257,26258,26259,26260,26261,26262,26263,26264,26265,26266,26267,26268,26269,26270,26271,26272,26273,26274,26275,26276,26277,26278,26279,26280,26281,26282,26283,26284,26285,26286,26287,26288,26289,26290,26291,26292,26293,26294,26295,26296,26297,26298,26299,26300,26301,26302,26303,26304,26305,26306,26307,26308,26309,26310,26311,26312,26313,26314,26315,26316,26317,26318,26319,26320,26321,26322,26323,26324,26325,26326,26327,26328,26329,26330,26331,26332,26333,26334,26335,26336,26337,26338,26339,26340,26341,26342,26343,26344,26345,26346,26347,26348,26349,26350,26351,26352,26353,26354,26355,26356,26357,26358,26359,26360,26361,26362,26363,26364,26365,26366,26367,26368,26369,26370,26371,26372,26373,26374,26375,26376,26377,26378,26379,26380,26381,26382,26383,26384,26385,26386,26387,26388,26389,26390,26391,26392,26393,26394,26395,26396,26397,26398,26399,26400,26401,26402,26403,26404,26405,26406,26407,26408,26409,26410,26411,26412,26413,26414,26415,26416,26417,26418,26419,26420,26421,26422,26423,26424,26425,26426,26427,26428,26429,26430,26431,26432,26433,26434,26435,26436,26437,26438,26439,26440,26441,26442,26443,26444,26445,26446,26447,26448,26449,26450,26451,26452,26453,26454,26455,26456,26457,26458,26459,26460,26461,26462,26463,26464,26465,26466,26467,26468,26469,26470,26471,26472,26473,26474,26475,26476,26477,26478,26479,26480,26481,26482,26483,26484,26485,26486,26487,26488,26489,26490,26491,26492,26493,26494,26495,26496,26497,26498,26499,26500,26501,26502,26503,26504,26505,26506,26507,26508,26509,26510,26511,26512,26513,26514,26515,26516,26517,26518,26519,26520,26521,26522,26523,26524,26525,26526,26527,26528,26529,26530,26531,26532,26533,26534,26535,26536,26537,26538,26539,26540,26541,26542,26543,26544,26545,26546,26547,26548,26549,26550,26551,26552,26553,26554,26555,26556,26557,26558,26559,26560,26561,26562,26563,26564,26565,26566,26567,26568,26569,26570,26571,26572,26573,26574,26575,26576,26577,26578,26579,26580,26581,26582,26583,26584,26585,26586,26587,26588,26589,26590,26591,26592,26593,26594,26595,26596,26597,26598,26599,26600,26601,26602,26603,26604,26605,26606,26607,26608,26609,26610,26611,26612,26613,26614,26615,26616,26617,26618,26619,26620,26621,26622,26623,26624,26625,26626,26627,26628,26629,26630,26631,26632,26633,26634,26635,26636,26637,26638,26639,26640,26641,26642,26643,26644,26645,26646,26647,26648,26649,26650,26651,26652,26653,26654,26655,26656,26657,26658,26659,26660,26661,26662,26663,26664,26665,26666,26667,26668,26669,26670,26671,26672,26673,26674,26675,26676,26677,26678,26679,26680,26681,26682,26683,26684,26685,26686,26687,26688,26689,26690,26691,26692,26693,26694,26695,26696,26697,26698,26699,26700,26701,26702,26703,26704,26705,26706,26707,26708,26709,26710,26711,26712,26713,26714,26715,26716,26717,26718,26719,26720,26721,26722,26723,26724,26725,26726,26727,26728,26729,26730,26731,26732,26733,26734,26735,26736,26737,26738,26739,26740,26741,26742,26743,26744,26745,26746,26747,26748,26749,26750,26751,26752,26753,26754,26755,26756,26757,26758,26759,26760,26761,26762,26763,26764,26765,26766,26767,26768,26769,26770,26771,26772,26773,26774,26775,26776,26777,26778,26779,26780,26781,26782,26783,26784,26785,26786,26787,26788,26789,26790,26791,26792,26793,26794,26795,26796,26797,26798,26799,26800,26801,26802,26803,26804,26805,26806,26807,26808,26809,26810,26811,26812,26813,26814,26815,26816,26817,26818,26819,26820,26821,26822,26823,26824,26825,26826,26827,26828,26829,26830,26831,26832,26833,26834,26835,26836,26837,26838,26839,26840,26841,26842,26843,26844,26845,26846,26847,26848,26849,26850,26851,26852,26853,26854,26855,26856,26857,26858,26859,26860,26861,26862,26863,26864,26865,26866,26867,26868,26869,26870,26871,26872,26873,26874,26875,26876,26877,26878,26879,26880,26881,26882,26883,26884,26885,26886,26887,26888,26889,26890,26891,26892,26893,26894,26895,26896,26897,26898,26899,26900,26901,26902,26903,26904,26905,26906,26907,26908,26909,26910,26911,26912,26913,26914,26915,26916,26917,26918,26919,26920,26921,26922,26923,26924,26925,26926,26927,26928,26929,26930,26931,26932,26933,26934,26935,26936,26937,26938,26939,26940,26941,26942,26943,26944,26945,26946,26947,26948,26949,26950,26951,26952,26953,26954,26955,26956,26957,26958,26959,26960,26961,26962,26963,26964,26965,26966,26967,26968,26969,26970,26971,26972,26973,26974,26975,26976,26977,26978,26979,26980,26981,26982,26983,26984,26985,26986,26987,26988,26989,26990,26991,26992,26993,26994,26995,26996,26997,26998,26999,27000,27001,27002,27003,27004,27005,27006,27007,27008,27009,27010,27011,27012,27013,27014,27015,27016,27017,27018,27019,27020,27021,27022,27023,27024,27025,27026,27027,27028,27029,27030,27031,27032,27033,27034,27035,27036,27037,27038,27039,27040,27041,27042,27043,27044,27045,27046,27047,27048,27049,27050,27051,27052,27053,27054,27055,27056,27057,27058,27059,27060,27061,27062,27063,27064,27065,27066,27067,27068,27069,27070,27071,27072,27073,27074,27075,27076,27077,27078,27079,27080,27081,27082,27083,27084,27085,27086,27087,27088,27089,27090,27091,27092,27093,27094,27095,27096,27097,27098,27099,27100,27101,27102,27103,27104,27105,27106,27107,27108,27109,27110,27111,27112,27113,27114,27115,27116,27117,27118,27119,27120,27121,27122,27123,27124,27125,27126,27127,27128,27129,27130,27131,27132,27133,27134,27135,27136,27137,27138,27139,27140,27141,27142,27143,27144,27145,27146,27147,27148,27149,27150,27151,27152,27153,27154,27155,27156,27157,27158,27159,27160,27161,27162,27163,27164,27165,27166,27167,27168,27169,27170,27171,27172,27173,27174,27175,27176,27177,27178,27179,27180,27181,27182,27183,27184,27185,27186,27187,27188,27189,27190,27191,27192,27193,27194,27195,27196,27197,27198,27199,27200,27201,27202,27203,27204,27205,27206,27207,27208,27209,27210,27211,27212,27213,27214,27215,27216,27217,27218,27219,27220,27221,27222,27223,27224,27225,27226,27227,27228,27229,27230,27231,27232,27233,27234,27235,27236,27237,27238,27239,27240,27241,27242,27243,27244,27245,27246,27247,27248,27249,27250,27251,27252,27253,27254,27255,27256,27257,27258,27259,27260,27261,27262,27263,27264,27265,27266,27267,27268,27269,27270,27271,27272,27273,27274,27275,27276,27277,27278,27279,27280,27281,27282,27283,27284,27285,27286,27287,27288,27289,27290,27291,27292,27293,27294,27295,27296,27297,27298,27299,27300,27301,27302,27303,27304,27305,27306,27307,27308,27309,27310,27311,27312,27313,27314,27315,27316,27317,27318,27319,27320,27321,27322,27323,27324,27325,27326,27327,27328,27329,27330,27331,27332,27333,27334,27335,27336,27337,27338,27339,27340,27341,27342,27343,27344,27345,27346,27347,27348,27349,27350,27351,27352,27353,27354,27355,27356,27357,27358,27359,27360,27361,27362,27363,27364,27365,27366,27367,27368,27369,27370,27371,27372,27373,27374,27375,27376,27377,27378,27379,27380,27381,27382,27383,27384,27385,27386,27387,27388,27389,27390,27391,27392,27393,27394,27395,27396,27397,27398,27399,27400,27401,27402,27403,27404,27405,27406,27407,27408,27409,27410,27411,27412,27413,27414,27415,27416,27417,27418,27419,27420,27421,27422,27423,27424,27425,27426,27427,27428,27429,27430,27431,27432,27433,27434,27435,27436,27437,27438,27439,27440,27441,27442,27443,27444,27445,27446,27447,27448,27449,27450,27451,27452,27453,27454,27455,27456,27457,27458,27459,27460,27461,27462,27463,27464,27465,27466,27467,27468,27469,27470,27471,27472,27473,27474,27475,27476,27477,27478,27479,27480,27481,27482,27483,27484,27485,27486,27487,27488,27489,27490,27491,27492,27493,27494,27495,27496,27497,27498,27499,27500,27501,27502,27503,27504,27505,27506,27507,27508,27509,27510,27511,27512,27513,27514,27515,27516,27517,27518,27519,27520,27521,27522,27523,27524,27525,27526,27527,27528,27529,27530,27531,27532,27533,27534,27535,27536,27537,27538,27539,27540,27541,27542,27543,27544,27545,27546,27547,27548,27549,27550,27551,27552,27553,27554,27555,27556,27557,27558,27559,27560,27561,27562,27563,27564,27565,27566,27567,27568,27569,27570,27571,27572,27573,27574,27575,27576,27577,27578,27579,27580,27581,27582,27583,27584,27585,27586,27587,27588,27589,27590,27591,27592,27593,27594,27595,27596,27597,27598,27599,27600,27601,27602,27603,27604,27605,27606,27607,27608,27609,27610,27611,27612,27613,27614,27615,27616,27617,27618,27619,27620,27621,27622,27623,27624,27625,27626,27627,27628,27629,27630,27631,27632,27633,27634,27635,27636,27637,27638,27639,27640,27641,27642,27643,27644,27645,27646,27647,27648,27649,27650,27651,27652,27653,27654,27655,27656,27657,27658,27659,27660,27661,27662,27663,27664,27665,27666,27667,27668,27669,27670,27671,27672,27673,27674,27675,27676,27677,27678,27679,27680,27681,27682,27683,27684,27685,27686,27687,27688,27689,27690,27691,27692,27693,27694,27695,27696,27697,27698,27699,27700,27701,27702,27703,27704,27705,27706,27707,27708,27709,27710,27711,27712,27713,27714,27715,27716,27717,27718,27719,27720,27721,27722,27723,27724,27725,27726,27727,27728,27729,27730,27731,27732,27733,27734,27735,27736,27737,27738,27739,27740,27741,27742,27743,27744,27745,27746,27747,27748,27749,27750,27751,27752,27753,27754,27755,27756,27757,27758,27759,27760,27761,27762,27763,27764,27765,27766,27767,27768,27769,27770,27771,27772,27773,27774,27775,27776,27777,27778,27779,27780,27781,27782,27783,27784,27785,27786,27787,27788,27789,27790,27791,27792,27793,27794,27795,27796,27797,27798,27799,27800,27801,27802,27803,27804,27805,27806,27807,27808,27809,27810,27811,27812,27813,27814,27815,27816,27817,27818,27819,27820,27821,27822,27823,27824,27825,27826,27827,27828,27829,27830,27831,27832,27833,27834,27835,27836,27837,27838,27839,27840,27841,27842,27843,27844,27845,27846,27847,27848,27849,27850,27851,27852,27853,27854,27855,27856,27857,27858,27859,27860,27861,27862,27863,27864,27865,27866,27867,27868,27869,27870,27871,27872,27873,27874,27875,27876,27877,27878,27879,27880,27881,27882,27883,27884,27885,27886,27887,27888,27889,27890,27891,27892,27893,27894,27895,27896,27897,27898,27899,27900,27901,27902,27903,27904,27905,27906,27907,27908,27909,27910,27911,27912,27913,27914,27915,27916,27917,27918,27919,27920,27921,27922,27923,27924,27925,27926,27927,27928,27929,27930,27931,27932,27933,27934,27935,27936,27937,27938,27939,27940,27941,27942,27943,27944,27945,27946,27947,27948,27949,27950,27951,27952,27953,27954,27955,27956,27957,27958,27959,27960,27961,27962,27963,27964,27965,27966,27967,27968,27969,27970,27971,27972,27973,27974,27975,27976,27977,27978,27979,27980,27981,27982,27983,27984,27985,27986,27987,27988,27989,27990,27991,27992,27993,27994,27995,27996,27997,27998,27999,28000,28001,28002,28003,28004,28005,28006,28007,28008,28009,28010,28011,28012,28013,28014,28015,28016,28017,28018,28019,28020,28021,28022,28023,28024,28025,28026,28027,28028,28029,28030,28031,28032,28033,28034,28035,28036,28037,28038,28039,28040,28041,28042,28043,28044,28045,28046,28047,28048,28049,28050,28051,28052,28053,28054,28055,28056,28057,28058,28059,28060,28061,28062,28063,28064,28065,28066,28067,28068,28069,28070,28071,28072,28073,28074,28075,28076,28077,28078,28079,28080,28081,28082,28083,28084,28085,28086,28087,28088,28089,28090,28091,28092,28093,28094,28095,28096,28097,28098,28099,28100,28101,28102,28103,28104,28105,28106,28107,28108,28109,28110,28111,28112,28113,28114,28115,28116,28117,28118,28119,28120,28121,28122,28123,28124,28125,28126,28127,28128,28129,28130,28131,28132,28133,28134,28135,28136,28137,28138,28139,28140,28141,28142,28143,28144,28145,28146,28147,28148,28149,28150,28151,28152,28153,28154,28155,28156,28157,28158,28159,28160,28161,28162,28163,28164,28165,28166,28167,28168,28169,28170,28171,28172,28173,28174,28175,28176,28177,28178,28179,28180,28181,28182,28183,28184,28185,28186,28187,28188,28189,28190,28191,28192,28193,28194,28195,28196,28197,28198,28199,28200,28201,28202,28203,28204,28205,28206,28207,28208,28209,28210,28211,28212,28213,28214,28215,28216,28217,28218,28219,28220,28221,28222,28223,28224,28225,28226,28227,28228,28229,28230,28231,28232,28233,28234,28235,28236,28237,28238,28239,28240,28241,28242,28243,28244,28245,28246,28247,28248,28249,28250,28251,28252,28253,28254,28255,28256,28257,28258,28259,28260,28261,28262,28263,28264,28265,28266,28267,28268,28269,28270,28271,28272,28273,28274,28275,28276,28277,28278,28279,28280,28281,28282,28283,28284,28285,28286,28287,28288,28289,28290,28291,28292,28293,28294,28295,28296,28297,28298,28299,28300,28301,28302,28303,28304,28305,28306,28307,28308,28309,28310,28311,28312,28313,28314,28315,28316,28317,28318,28319,28320,28321,28322,28323,28324,28325,28326,28327,28328,28329,28330,28331,28332,28333,28334,28335,28336,28337,28338,28339,28340,28341,28342,28343,28344,28345,28346,28347,28348,28349,28350,28351,28352,28353,28354,28355,28356,28357,28358,28359,28360,28361,28362,28363,28364,28365,28366,28367,28368,28369,28370,28371,28372,28373,28374,28375,28376,28377,28378,28379,28380,28381,28382,28383,28384,28385,28386,28387,28388,28389,28390,28391,28392,28393,28394,28395,28396,28397,28398,28399,28400,28401,28402,28403,28404,28405,28406,28407,28408,28409,28410,28411,28412,28413,28414,28415,28416,28417,28418,28419,28420,28421,28422,28423,28424,28425,28426,28427,28428,28429,28430,28431,28432,28433,28434,28435,28436,28437,28438,28439,28440,28441,28442,28443,28444,28445,28446,28447,28448,28449,28450,28451,28452,28453,28454,28455,28456,28457,28458,28459,28460,28461,28462,28463,28464,28465,28466,28467,28468,28469,28470,28471,28472,28473,28474,28475,28476,28477,28478,28479,28480,28481,28482,28483,28484,28485,28486,28487,28488,28489,28490,28491,28492,28493,28494,28495,28496,28497,28498,28499,28500,28501,28502,28503,28504,28505,28506,28507,28508,28509,28510,28511,28512,28513,28514,28515,28516,28517,28518,28519,28520,28521,28522,28523,28524,28525,28526,28527,28528,28529,28530,28531,28532,28533,28534,28535,28536,28537,28538,28539,28540,28541,28542,28543,28544,28545,28546,28547,28548,28549,28550,28551,28552,28553,28554,28555,28556,28557,28558,28559,28560,28561,28562,28563,28564,28565,28566,28567,28568,28569,28570,28571,28572,28573,28574,28575,28576,28577,28578,28579,28580,28581,28582,28583,28584,28585,28586,28587,28588,28589,28590,28591,28592,28593,28594,28595,28596,28597,28598,28599,28600,28601,28602,28603,28604,28605,28606,28607,28608,28609,28610,28611,28612,28613,28614,28615,28616,28617,28618,28619,28620,28621,28622,28623,28624,28625,28626,28627,28628,28629,28630,28631,28632,28633,28634,28635,28636,28637,28638,28639,28640,28641,28642,28643,28644,28645,28646,28647,28648,28649,28650,28651,28652,28653,28654,28655,28656,28657,28658,28659,28660,28661,28662,28663,28664,28665,28666,28667,28668,28669,28670,28671,28672,28673,28674,28675,28676,28677,28678,28679,28680,28681,28682,28683,28684,28685,28686,28687,28688,28689,28690,28691,28692,28693,28694,28695,28696,28697,28698,28699,28700,28701,28702,28703,28704,28705,28706,28707,28708,28709,28710,28711,28712,28713,28714,28715,28716,28717,28718,28719,28720,28721,28722,28723,28724,28725,28726,28727,28728,28729,28730,28731,28732,28733,28734,28735,28736,28737,28738,28739,28740,28741,28742,28743,28744,28745,28746,28747,28748,28749,28750,28751,28752,28753,28754,28755,28756,28757,28758,28759,28760,28761,28762,28763,28764,28765,28766,28767,28768,28769,28770,28771,28772,28773,28774,28775,28776,28777,28778,28779,28780,28781,28782,28783,28784,28785,28786,28787,28788,28789,28790,28791,28792,28793,28794,28795,28796,28797,28798,28799,28800,28801,28802,28803,28804,28805,28806,28807,28808,28809,28810,28811,28812,28813,28814,28815,28816,28817,28818,28819,28820,28821,28822,28823,28824,28825,28826,28827,28828,28829,28830,28831,28832,28833,28834,28835,28836,28837,28838,28839,28840,28841,28842,28843,28844,28845,28846,28847,28848,28849,28850,28851,28852,28853,28854,28855,28856,28857,28858,28859,28860,28861,28862,28863,28864,28865,28866,28867,28868,28869,28870,28871,28872,28873,28874,28875,28876,28877,28878,28879,28880,28881,28882,28883,28884,28885,28886,28887,28888,28889,28890,28891,28892,28893,28894,28895,28896,28897,28898,28899,28900,28901,28902,28903,28904,28905,28906,28907,28908,28909,28910,28911,28912,28913,28914,28915,28916,28917,28918,28919,28920,28921,28922,28923,28924,28925,28926,28927,28928,28929,28930,28931,28932,28933,28934,28935,28936,28937,28938,28939,28940,28941,28942,28943,28944,28945,28946,28947,28948,28949,28950,28951,28952,28953,28954,28955,28956,28957,28958,28959,28960,28961,28962,28963,28964,28965,28966,28967,28968,28969,28970,28971,28972,28973,28974,28975,28976,28977,28978,28979,28980,28981,28982,28983,28984,28985,28986,28987,28988,28989,28990,28991,28992,28993,28994,28995,28996,28997,28998,28999,29000,29001,29002,29003,29004,29005,29006,29007,29008,29009,29010,29011,29012,29013,29014,29015,29016,29017,29018,29019,29020,29021,29022,29023,29024,29025,29026,29027,29028,29029,29030,29031,29032,29033,29034,29035,29036,29037,29038,29039,29040,29041,29042,29043,29044,29045,29046,29047,29048,29049,29050,29051,29052,29053,29054,29055,29056,29057,29058,29059,29060,29061,29062,29063,29064,29065,29066,29067,29068,29069,29070,29071,29072,29073,29074,29075,29076,29077,29078,29079,29080,29081,29082,29083,29084,29085,29086,29087,29088,29089,29090,29091,29092,29093,29094,29095,29096,29097,29098,29099,29100,29101,29102,29103,29104,29105,29106,29107,29108,29109,29110,29111,29112,29113,29114,29115,29116,29117,29118,29119,29120,29121,29122,29123,29124,29125,29126,29127,29128,29129,29130,29131,29132,29133,29134,29135,29136,29137,29138,29139,29140,29141,29142,29143,29144,29145,29146,29147,29148,29149,29150,29151,29152,29153,29154,29155,29156,29157,29158,29159,29160,29161,29162,29163,29164,29165,29166,29167,29168,29169,29170,29171,29172,29173,29174,29175,29176,29177,29178,29179,29180,29181,29182,29183,29184,29185,29186,29187,29188,29189,29190,29191,29192,29193,29194,29195,29196,29197,29198,29199,29200,29201,29202,29203,29204,29205,29206,29207,29208,29209,29210,29211,29212,29213,29214,29215,29216,29217,29218,29219,29220,29221,29222,29223,29224,29225,29226,29227,29228,29229,29230,29231,29232,29233,29234,29235,29236,29237,29238,29239,29240,29241,29242,29243,29244,29245,29246,29247,29248,29249,29250,29251,29252,29253,29254,29255,29256,29257,29258,29259,29260,29261,29262,29263,29264,29265,29266,29267,29268,29269,29270,29271,29272,29273,29274,29275,29276,29277,29278,29279,29280,29281,29282,29283,29284,29285,29286,29287,29288,29289,29290,29291,29292,29293,29294,29295,29296,29297,29298,29299,29300,29301,29302,29303,29304,29305,29306,29307,29308,29309,29310,29311,29312,29313,29314,29315,29316,29317,29318,29319,29320,29321,29322,29323,29324,29325,29326,29327,29328,29329,29330,29331,29332,29333,29334,29335,29336,29337,29338,29339,29340,29341,29342,29343,29344,29345,29346,29347,29348,29349,29350,29351,29352,29353,29354,29355,29356,29357,29358,29359,29360,29361,29362,29363,29364,29365,29366,29367,29368,29369,29370,29371,29372,29373,29374,29375,29376,29377,29378,29379,29380,29381,29382,29383,29384,29385,29386,29387,29388,29389,29390,29391,29392,29393,29394,29395,29396,29397,29398,29399,29400,29401,29402,29403,29404,29405,29406,29407,29408,29409,29410,29411,29412,29413,29414,29415,29416,29417,29418,29419,29420,29421,29422,29423,29424,29425,29426,29427,29428,29429,29430,29431,29432,29433,29434,29435,29436,29437,29438,29439,29440,29441,29442,29443,29444,29445,29446,29447,29448,29449,29450,29451,29452,29453,29454,29455,29456,29457,29458,29459,29460,29461,29462,29463,29464,29465,29466,29467,29468,29469,29470,29471,29472,29473,29474,29475,29476,29477,29478,29479,29480,29481,29482,29483,29484,29485,29486,29487,29488,29489,29490,29491,29492,29493,29494,29495,29496,29497,29498,29499,29500,29501,29502,29503,29504,29505,29506,29507,29508,29509,29510,29511,29512,29513,29514,29515,29516,29517,29518,29519,29520,29521,29522,29523,29524,29525,29526,29527,29528,29529,29530,29531,29532,29533,29534,29535,29536,29537,29538,29539,29540,29541,29542,29543,29544,29545,29546,29547,29548,29549,29550,29551,29552,29553,29554,29555,29556,29557,29558,29559,29560,29561,29562,29563,29564,29565,29566,29567,29568,29569,29570,29571,29572,29573,29574,29575,29576,29577,29578,29579,29580,29581,29582,29583,29584,29585,29586,29587,29588,29589,29590,29591,29592,29593,29594,29595,29596,29597,29598,29599,29600,29601,29602,29603,29604,29605,29606,29607,29608,29609,29610,29611,29612,29613,29614,29615,29616,29617,29618,29619,29620,29621,29622,29623,29624,29625,29626,29627,29628,29629,29630,29631,29632,29633,29634,29635,29636,29637,29638,29639,29640,29641,29642,29643,29644,29645,29646,29647,29648,29649,29650,29651,29652,29653,29654,29655,29656,29657,29658,29659,29660,29661,29662,29663,29664,29665,29666,29667,29668,29669,29670,29671,29672,29673,29674,29675,29676,29677,29678,29679,29680,29681,29682,29683,29684,29685,29686,29687,29688,29689,29690,29691,29692,29693,29694,29695,29696,29697,29698,29699,29700,29701,29702,29703,29704,29705,29706,29707,29708,29709,29710,29711,29712,29713,29714,29715,29716,29717,29718,29719,29720,29721,29722,29723,29724,29725,29726,29727,29728,29729,29730,29731,29732,29733,29734,29735,29736,29737,29738,29739,29740,29741,29742,29743,29744,29745,29746,29747,29748,29749,29750,29751,29752,29753,29754,29755,29756,29757,29758,29759,29760,29761,29762,29763,29764,29765,29766,29767,29768,29769,29770,29771,29772,29773,29774,29775,29776,29777,29778,29779,29780,29781,29782,29783,29784,29785,29786,29787,29788,29789,29790,29791,29792,29793,29794,29795,29796,29797,29798,29799,29800,29801,29802,29803,29804,29805,29806,29807,29808,29809,29810,29811,29812,29813,29814,29815,29816,29817,29818,29819,29820,29821,29822,29823,29824,29825,29826,29827,29828,29829,29830,29831,29832,29833,29834,29835,29836,29837,29838,29839,29840,29841,29842,29843,29844,29845,29846,29847,29848,29849,29850,29851,29852,29853,29854,29855,29856,29857,29858,29859,29860,29861,29862,29863,29864,29865,29866,29867,29868,29869,29870,29871,29872,29873,29874,29875,29876,29877,29878,29879,29880,29881,29882,29883,29884,29885,29886,29887,29888,29889,29890,29891,29892,29893,29894,29895,29896,29897,29898,29899,29900,29901,29902,29903,29904,29905,29906,29907,29908,29909,29910,29911,29912,29913,29914,29915,29916,29917,29918,29919,29920,29921,29922,29923,29924,29925,29926,29927,29928,29929,29930,29931,29932,29933,29934,29935,29936,29937,29938,29939,29940,29941,29942,29943,29944,29945,29946,29947,29948,29949,29950,29951,29952,29953,29954,29955,29956,29957,29958,29959,29960,29961,29962,29963,29964,29965,29966,29967,29968,29969,29970,29971,29972,29973,29974,29975,29976,29977,29978,29979,29980,29981,29982,29983,29984,29985,29986,29987,29988,29989,29990,29991,29992,29993,29994,29995,29996,29997,29998,29999,30000,30001,30002,30003,30004,30005,30006,30007,30008,30009,30010,30011,30012,30013,30014,30015,30016,30017,30018,30019,30020,30021,30022,30023,30024,30025,30026,30027,30028,30029,30030,30031,30032,30033,30034,30035,30036,30037,30038,30039,30040,30041,30042,30043,30044,30045,30046,30047,30048,30049,30050,30051,30052,30053,30054,30055,30056,30057,30058,30059,30060,30061,30062,30063,30064,30065,30066,30067,30068,30069,30070,30071,30072,30073,30074,30075,30076,30077,30078,30079,30080,30081,30082,30083,30084,30085,30086,30087,30088,30089,30090,30091,30092,30093,30094,30095,30096,30097,30098,30099,30100,30101,30102,30103,30104,30105,30106,30107,30108,30109,30110,30111,30112,30113,30114,30115,30116,30117,30118,30119,30120,30121,30122,30123,30124,30125,30126,30127,30128,30129,30130,30131,30132,30133,30134,30135,30136,30137,30138,30139,30140,30141,30142,30143,30144,30145,30146,30147,30148,30149,30150,30151,30152,30153,30154,30155,30156,30157,30158,30159,30160,30161,30162,30163,30164,30165,30166,30167,30168,30169,30170,30171,30172,30173,30174,30175,30176,30177,30178,30179,30180,30181,30182,30183,30184,30185,30186,30187,30188,30189,30190,30191,30192,30193,30194,30195,30196,30197,30198,30199,30200,30201,30202,30203,30204,30205,30206,30207,30208,30209,30210,30211,30212,30213,30214,30215,30216,30217,30218,30219,30220,30221,30222,30223,30224,30225,30226,30227,30228,30229,30230,30231,30232,30233,30234,30235,30236,30237,30238,30239,30240,30241,30242,30243,30244,30245,30246,30247,30248,30249,30250,30251,30252,30253,30254,30255,30256,30257,30258,30259,30260,30261,30262,30263,30264,30265,30266,30267,30268,30269,30270,30271,30272,30273,30274,30275,30276,30277,30278,30279,30280,30281,30282,30283,30284,30285,30286,30287,30288,30289,30290,30291,30292,30293,30294,30295,30296,30297,30298,30299,30300,30301,30302,30303,30304,30305,30306,30307,30308,30309,30310,30311,30312,30313,30314,30315,30316,30317,30318,30319,30320,30321,30322,30323,30324,30325,30326,30327,30328,30329,30330,30331,30332,30333,30334,30335,30336,30337,30338,30339,30340,30341,30342,30343,30344,30345,30346,30347,30348,30349,30350,30351,30352,30353,30354,30355,30356,30357,30358,30359,30360,30361,30362,30363,30364,30365,30366,30367,30368,30369,30370,30371,30372,30373,30374,30375,30376,30377,30378,30379,30380,30381,30382,30383,30384,30385,30386,30387,30388,30389,30390,30391,30392,30393,30394,30395,30396,30397,30398,30399,30400,30401,30402,30403,30404,30405,30406,30407,30408,30409,30410,30411,30412,30413,30414,30415,30416,30417,30418,30419,30420,30421,30422,30423,30424,30425,30426,30427,30428,30429,30430,30431,30432,30433,30434,30435,30436,30437,30438,30439,30440,30441,30442,30443,30444,30445,30446,30447,30448,30449,30450,30451,30452,30453,30454,30455,30456,30457,30458,30459,30460,30461,30462,30463,30464,30465,30466,30467,30468,30469,30470,30471,30472,30473,30474,30475,30476,30477,30478,30479,30480,30481,30482,30483,30484,30485,30486,30487,30488,30489,30490,30491,30492,30493,30494,30495,30496,30497,30498,30499,30500,30501,30502,30503,30504,30505,30506,30507,30508,30509,30510,30511,30512,30513,30514,30515,30516,30517,30518,30519,30520,30521,30522,30523,30524,30525,30526,30527,30528,30529,30530,30531,30532,30533,30534,30535,30536,30537,30538,30539,30540,30541,30542,30543,30544,30545,30546,30547,30548,30549,30550,30551,30552,30553,30554,30555,30556,30557,30558,30559,30560,30561,30562,30563,30564,30565,30566,30567,30568,30569,30570,30571,30572,30573,30574,30575,30576,30577,30578,30579,30580,30581,30582,30583,30584,30585,30586,30587,30588,30589,30590,30591,30592,30593,30594,30595,30596,30597,30598,30599,30600,30601,30602,30603,30604,30605,30606,30607,30608,30609,30610,30611,30612,30613,30614,30615,30616,30617,30618,30619,30620,30621,30622,30623,30624,30625,30626,30627,30628,30629,30630,30631,30632,30633,30634,30635,30636,30637,30638,30639,30640,30641,30642,30643,30644,30645,30646,30647,30648,30649,30650,30651,30652,30653,30654,30655,30656,30657,30658,30659,30660,30661,30662,30663,30664,30665,30666,30667,30668,30669,30670,30671,30672,30673,30674,30675,30676,30677,30678,30679,30680,30681,30682,30683,30684,30685,30686,30687,30688,30689,30690,30691,30692,30693,30694,30695,30696,30697,30698,30699,30700,30701,30702,30703,30704,30705,30706,30707,30708,30709,30710,30711,30712,30713,30714,30715,30716,30717,30718,30719,30720,30721,30722,30723,30724,30725,30726,30727,30728,30729,30730,30731,30732,30733,30734,30735,30736,30737,30738,30739,30740,30741,30742,30743,30744,30745,30746,30747,30748,30749,30750,30751,30752,30753,30754,30755,30756,30757,30758,30759,30760,30761,30762,30763,30764,30765,30766,30767,30768,30769,30770,30771,30772,30773,30774,30775,30776,30777,30778,30779,30780,30781,30782,30783,30784,30785,30786,30787,30788,30789,30790,30791,30792,30793,30794,30795,30796,30797,30798,30799,30800,30801,30802,30803,30804,30805,30806,30807,30808,30809,30810,30811,30812,30813,30814,30815,30816,30817,30818,30819,30820,30821,30822,30823,30824,30825,30826,30827,30828,30829,30830,30831,30832,30833,30834,30835,30836,30837,30838,30839,30840,30841,30842,30843,30844,30845,30846,30847,30848,30849,30850,30851,30852,30853,30854,30855,30856,30857,30858,30859,30860,30861,30862,30863,30864,30865,30866,30867,30868,30869,30870,30871,30872,30873,30874,30875,30876,30877,30878,30879,30880,30881,30882,30883,30884,30885,30886,30887,30888,30889,30890,30891,30892,30893,30894,30895,30896,30897,30898,30899,30900,30901,30902,30903,30904,30905,30906,30907,30908,30909,30910,30911,30912,30913,30914,30915,30916,30917,30918,30919,30920,30921,30922,30923,30924,30925,30926,30927,30928,30929,30930,30931,30932,30933,30934,30935,30936,30937,30938,30939,30940,30941,30942,30943,30944,30945,30946,30947,30948,30949,30950,30951,30952,30953,30954,30955,30956,30957,30958,30959,30960,30961,30962,30963,30964,30965,30966,30967,30968,30969,30970,30971,30972,30973,30974,30975,30976,30977,30978,30979,30980,30981,30982,30983,30984,30985,30986,30987,30988,30989,30990,30991,30992,30993,30994,30995,30996,30997,30998,30999,31000,31001,31002,31003,31004,31005,31006,31007,31008,31009,31010,31011,31012,31013,31014,31015,31016,31017,31018,31019,31020,31021,31022,31023,31024,31025,31026,31027,31028,31029,31030,31031,31032,31033,31034,31035,31036,31037,31038,31039,31040,31041,31042,31043,31044,31045,31046,31047,31048,31049,31050,31051,31052,31053,31054,31055,31056,31057,31058,31059,31060,31061,31062,31063,31064,31065,31066,31067,31068,31069,31070,31071,31072,31073,31074,31075,31076,31077,31078,31079,31080,31081,31082,31083,31084,31085,31086,31087,31088,31089,31090,31091,31092,31093,31094,31095,31096,31097,31098,31099,31100,31101,31102,31103,31104,31105,31106,31107,31108,31109,31110,31111,31112,31113,31114,31115,31116,31117,31118,31119,31120,31121,31122,31123,31124,31125,31126,31127,31128,31129,31130,31131,31132,31133,31134,31135,31136,31137,31138,31139,31140,31141,31142,31143,31144,31145,31146,31147,31148,31149,31150,31151,31152,31153,31154,31155,31156,31157,31158,31159,31160,31161,31162,31163,31164,31165,31166,31167,31168,31169,31170,31171,31172,31173,31174,31175,31176,31177,31178,31179,31180,31181,31182,31183,31184,31185,31186,31187,31188,31189,31190,31191,31192,31193,31194,31195,31196,31197,31198,31199,31200,31201,31202,31203,31204,31205,31206,31207,31208,31209,31210,31211,31212,31213,31214,31215,31216,31217,31218,31219,31220,31221,31222,31223,31224,31225,31226,31227,31228,31229,31230,31231,31232,31233,31234,31235,31236,31237,31238,31239,31240,31241,31242,31243,31244,31245,31246,31247,31248,31249,31250,31251,31252,31253,31254,31255,31256,31257,31258,31259,31260,31261,31262,31263,31264,31265,31266,31267,31268,31269,31270,31271,31272,31273,31274,31275,31276,31277,31278,31279,31280,31281,31282,31283,31284,31285,31286,31287,31288,31289,31290,31291,31292,31293,31294,31295,31296,31297,31298,31299,31300,31301,31302,31303,31304,31305,31306,31307,31308,31309,31310,31311,31312,31313,31314,31315,31316,31317,31318,31319,31320,31321,31322,31323,31324,31325,31326,31327,31328,31329,31330,31331,31332,31333,31334,31335,31336,31337,31338,31339,31340,31341,31342,31343,31344,31345,31346,31347,31348,31349,31350,31351,31352,31353,31354,31355,31356,31357,31358,31359,31360,31361,31362,31363,31364,31365,31366,31367,31368,31369,31370,31371,31372,31373,31374,31375,31376,31377,31378,31379,31380,31381,31382,31383,31384,31385,31386,31387,31388,31389,31390,31391,31392,31393,31394,31395,31396,31397,31398,31399,31400,31401,31402,31403,31404,31405,31406,31407,31408,31409,31410,31411,31412,31413,31414,31415,31416,31417,31418,31419,31420,31421,31422,31423,31424,31425,31426,31427,31428,31429,31430,31431,31432,31433,31434,31435,31436,31437,31438,31439,31440,31441,31442,31443,31444,31445,31446,31447,31448,31449,31450,31451,31452,31453,31454,31455,31456,31457,31458,31459,31460,31461,31462,31463,31464,31465,31466,31467,31468,31469,31470,31471,31472,31473,31474,31475,31476,31477,31478,31479,31480,31481,31482,31483,31484,31485,31486,31487,31488,31489,31490,31491,31492,31493,31494,31495,31496,31497,31498,31499,31500,31501,31502,31503,31504,31505,31506,31507,31508,31509,31510,31511,31512,31513,31514,31515,31516,31517,31518,31519,31520,31521,31522,31523,31524,31525,31526,31527,31528,31529,31530,31531,31532,31533,31534,31535,31536,31537,31538,31539,31540,31541,31542,31543,31544,31545,31546,31547,31548,31549,31550,31551,31552,31553,31554,31555,31556,31557,31558,31559,31560,31561,31562,31563,31564,31565,31566,31567,31568,31569,31570,31571,31572,31573,31574,31575,31576,31577,31578,31579,31580,31581,31582,31583,31584,31585,31586,31587,31588,31589,31590,31591,31592,31593,31594,31595,31596,31597,31598,31599,31600,31601,31602,31603,31604,31605,31606,31607,31608,31609,31610,31611,31612,31613,31614,31615,31616,31617,31618,31619,31620,31621,31622,31623,31624,31625,31626,31627,31628,31629,31630,31631,31632,31633,31634,31635,31636,31637,31638,31639,31640,31641,31642,31643,31644,31645,31646,31647,31648,31649,31650,31651,31652,31653,31654,31655,31656,31657,31658,31659,31660,31661,31662,31663,31664,31665,31666,31667,31668,31669,31670,31671,31672,31673,31674,31675,31676,31677,31678,31679,31680,31681,31682,31683,31684,31685,31686,31687,31688,31689,31690,31691,31692,31693,31694,31695,31696,31697,31698,31699,31700,31701,31702,31703,31704,31705,31706,31707,31708,31709,31710,31711,31712,31713,31714,31715,31716,31717,31718,31719,31720,31721,31722,31723,31724,31725,31726,31727,31728,31729,31730,31731,31732,31733,31734,31735,31736,31737,31738,31739,31740,31741,31742,31743,31744,31745,31746,31747,31748,31749,31750,31751,31752,31753,31754,31755,31756,31757,31758,31759,31760,31761,31762,31763,31764,31765,31766,31767,31768,31769,31770,31771,31772,31773,31774,31775,31776,31777,31778,31779,31780,31781,31782,31783,31784,31785,31786,31787,31788,31789,31790,31791,31792,31793,31794,31795,31796,31797,31798,31799,31800,31801,31802,31803,31804,31805,31806,31807,31808,31809,31810,31811,31812,31813,31814,31815,31816,31817,31818,31819,31820,31821,31822,31823,31824,31825,31826,31827,31828,31829,31830,31831,31832,31833,31834,31835,31836,31837,31838,31839,31840,31841,31842,31843,31844,31845,31846,31847,31848,31849,31850,31851,31852,31853,31854,31855,31856,31857,31858,31859,31860,31861,31862,31863,31864,31865,31866,31867,31868,31869,31870,31871,31872,31873,31874,31875,31876,31877,31878,31879,31880,31881,31882,31883,31884,31885,31886,31887,31888,31889,31890,31891,31892,31893,31894,31895,31896,31897,31898,31899,31900,31901,31902,31903,31904,31905,31906,31907,31908,31909,31910,31911,31912,31913,31914,31915,31916,31917,31918,31919,31920,31921,31922,31923,31924,31925,31926,31927,31928,31929,31930,31931,31932,31933,31934,31935,31936,31937,31938,31939,31940,31941,31942,31943,31944,31945,31946,31947,31948,31949,31950,31951,31952,31953,31954,31955,31956,31957,31958,31959,31960,31961,31962,31963,31964,31965,31966,31967,31968,31969,31970,31971,31972,31973,31974,31975,31976,31977,31978,31979,31980,31981,31982,31983,31984,31985,31986,31987,31988,31989,31990,31991,31992,31993,31994,31995,31996,31997,31998,31999,32000,32001,32002,32003,32004,32005,32006,32007,32008,32009,32010,32011,32012,32013,32014,32015,32016,32017,32018,32019,32020,32021,32022,32023,32024,32025,32026,32027,32028,32029,32030,32031,32032,32033,32034,32035,32036,32037,32038,32039,32040,32041,32042,32043,32044,32045,32046,32047,32048,32049,32050,32051,32052,32053,32054,32055,32056,32057,32058,32059,32060,32061,32062,32063,32064,32065,32066,32067,32068,32069,32070,32071,32072,32073,32074,32075,32076,32077,32078,32079,32080,32081,32082,32083,32084,32085,32086,32087,32088,32089,32090,32091,32092,32093,32094,32095,32096,32097,32098,32099,32100,32101,32102,32103,32104,32105,32106,32107,32108,32109,32110,32111,32112,32113,32114,32115,32116,32117,32118,32119,32120,32121,32122,32123,32124,32125,32126,32127,32128,32129,32130,32131,32132,32133,32134,32135,32136,32137,32138,32139,32140,32141,32142,32143,32144,32145,32146,32147,32148,32149,32150,32151,32152,32153,32154,32155,32156,32157,32158,32159,32160,32161,32162,32163,32164,32165,32166,32167,32168,32169,32170,32171,32172,32173,32174,32175,32176,32177,32178,32179,32180,32181,32182,32183,32184,32185,32186,32187,32188,32189,32190,32191,32192,32193,32194,32195,32196,32197,32198,32199,32200,32201,32202,32203,32204,32205,32206,32207,32208,32209,32210,32211,32212,32213,32214,32215,32216,32217,32218,32219,32220,32221,32222,32223,32224,32225,32226,32227,32228,32229,32230,32231,32232,32233,32234,32235,32236,32237,32238,32239,32240,32241,32242,32243,32244,32245,32246,32247,32248,32249,32250,32251,32252,32253,32254,32255,32256,32257,32258,32259,32260,32261,32262,32263,32264,32265,32266,32267,32268,32269,32270,32271,32272,32273,32274,32275,32276,32277,32278,32279,32280,32281,32282,32283,32284,32285,32286,32287,32288,32289,32290,32291,32292,32293,32294,32295,32296,32297,32298,32299,32300,32301,32302,32303,32304,32305,32306,32307,32308,32309,32310,32311,32312,32313,32314,32315,32316,32317,32318,32319,32320,32321,32322,32323,32324,32325,32326,32327,32328,32329,32330,32331,32332,32333,32334,32335,32336,32337,32338,32339,32340,32341,32342,32343,32344,32345,32346,32347,32348,32349,32350,32351,32352,32353,32354,32355,32356,32357,32358,32359,32360,32361,32362,32363,32364,32365,32366,32367,32368,32369,32370,32371,32372,32373,32374,32375,32376,32377,32378,32379,32380,32381,32382,32383,32384,32385,32386,32387,32388,32389,32390,32391,32392,32393,32394,32395,32396,32397,32398,32399,32400,32401,32402,32403,32404,32405,32406,32407,32408,32409,32410,32411,32412,32413,32414,32415,32416,32417,32418,32419,32420,32421,32422,32423,32424,32425,32426,32427,32428,32429,32430,32431,32432,32433,32434,32435,32436,32437,32438,32439,32440,32441,32442,32443,32444,32445,32446,32447,32448,32449,32450,32451,32452,32453,32454,32455,32456,32457,32458,32459,32460,32461,32462,32463,32464,32465,32466,32467,32468,32469,32470,32471,32472,32473,32474,32475,32476,32477,32478,32479,32480,32481,32482,32483,32484,32485,32486,32487,32488,32489,32490,32491,32492,32493,32494,32495,32496,32497,32498,32499,32500,32501,32502,32503,32504,32505,32506,32507,32508,32509,32510,32511,32512,32513,32514,32515,32516,32517,32518,32519,32520,32521,32522,32523,32524,32525,32526,32527,32528,32529,32530,32531,32532,32533,32534,32535,32536,32537,32538,32539,32540,32541,32542,32543,32544,32545,32546,32547,32548,32549,32550,32551,32552,32553,32554,32555,32556,32557,32558,32559,32560,32561,32562,32563,32564,32565,32566,32567,32568,32569,32570,32571,32572,32573,32574,32575,32576,32577,32578,32579,32580,32581,32582,32583,32584,32585,32586,32587,32588,32589,32590,32591,32592,32593,32594,32595,32596,32597,32598,32599,32600,32601,32602,32603,32604,32605,32606,32607,32608,32609,32610,32611,32612,32613,32614,32615,32616,32617,32618,32619,32620,32621,32622,32623,32624,32625,32626,32627,32628,32629,32630,32631,32632,32633,32634,32635,32636,32637,32638,32639,32640,32641,32642,32643,32644,32645,32646,32647,32648,32649,32650,32651,32652,32653,32654,32655,32656,32657,32658,32659,32660,32661,32662,32663,32664,32665,32666,32667,32668,32669,32670,32671,32672,32673,32674,32675,32676,32677,32678,32679,32680,32681,32682,32683,32684,32685,32686,32687,32688,32689,32690,32691,32692,32693,32694,32695,32696,32697,32698,32699,32700,32701,32702,32703,32704,32705,32706,32707,32708,32709,32710,32711,32712,32713,32714,32715,32716,32717,32718,32719,32720,32721,32722,32723,32724,32725,32726,32727,32728,32729,32730,32731,32732,32733,32734,32735,32736,32737,32738,32739,32740,32741,32742,32743,32744,32745,32746,32747,32748,32749,32750,32751,32752,32753,32754,32755,32756,32757,32758,32759,32760,32761,32762,32763,32764,32765,32766,32767,32768,32769,32770,32771,32772,32773,32774,32775,32776,32777,32778,32779,32780,32781,32782,32783,32784,32785,32786,32787,32788,32789,32790,32791,32792,32793,32794,32795,32796,32797,32798,32799,32800,32801,32802,32803,32804,32805,32806,32807,32808,32809,32810,32811,32812,32813,32814,32815,32816,32817,32818,32819,32820,32821,32822,32823,32824,32825,32826,32827,32828,32829,32830,32831,32832,32833,32834,32835,32836,32837,32838,32839,32840,32841,32842,32843,32844,32845,32846,32847,32848,32849,32850,32851,32852,32853,32854,32855,32856,32857,32858,32859,32860,32861,32862,32863,32864,32865,32866,32867,32868,32869,32870,32871,32872,32873,32874,32875,32876,32877,32878,32879,32880,32881,32882,32883,32884,32885,32886,32887,32888,32889,32890,32891,32892,32893,32894,32895,32896,32897,32898,32899,32900,32901,32902,32903,32904,32905,32906,32907,32908,32909,32910,32911,32912,32913,32914,32915,32916,32917,32918,32919,32920,32921,32922,32923,32924,32925,32926,32927,32928,32929,32930,32931,32932,32933,32934,32935,32936,32937,32938,32939,32940,32941,32942,32943,32944,32945,32946,32947,32948,32949,32950,32951,32952,32953,32954,32955,32956,32957,32958,32959,32960,32961,32962,32963,32964,32965,32966,32967,32968,32969,32970,32971,32972,32973,32974,32975,32976,32977,32978,32979,32980,32981,32982,32983,32984,32985,32986,32987,32988,32989,32990,32991,32992,32993,32994,32995,32996,32997,32998,32999,33000,33001,33002,33003,33004,33005,33006,33007,33008,33009,33010,33011,33012,33013,33014,33015,33016,33017,33018,33019,33020,33021,33022,33023,33024,33025,33026,33027,33028,33029,33030,33031,33032,33033,33034,33035,33036,33037,33038,33039,33040,33041,33042,33043,33044,33045,33046,33047,33048,33049,33050,33051,33052,33053,33054,33055,33056,33057,33058,33059,33060,33061,33062,33063,33064,33065,33066,33067,33068,33069,33070,33071,33072,33073,33074,33075,33076,33077,33078,33079,33080,33081,33082,33083,33084,33085,33086,33087,33088,33089,33090,33091,33092,33093,33094,33095,33096,33097,33098,33099,33100,33101,33102,33103,33104,33105,33106,33107,33108,33109,33110,33111,33112,33113,33114,33115,33116,33117,33118,33119,33120,33121,33122,33123,33124,33125,33126,33127,33128,33129,33130,33131,33132,33133,33134,33135,33136,33137,33138,33139,33140,33141,33142,33143,33144,33145,33146,33147,33148,33149,33150,33151,33152,33153,33154,33155,33156,33157,33158,33159,33160,33161,33162,33163,33164,33165,33166,33167,33168,33169,33170,33171,33172,33173,33174,33175,33176,33177,33178,33179,33180,33181,33182,33183,33184,33185,33186,33187,33188,33189,33190,33191,33192,33193,33194,33195,33196,33197,33198,33199,33200,33201,33202,33203,33204,33205,33206,33207,33208,33209,33210,33211,33212,33213,33214,33215,33216,33217,33218,33219,33220,33221,33222,33223,33224,33225,33226,33227,33228,33229,33230,33231,33232,33233,33234,33235,33236,33237,33238,33239,33240,33241,33242,33243,33244,33245,33246,33247,33248,33249,33250,33251,33252,33253,33254,33255,33256,33257,33258,33259,33260,33261,33262,33263,33264,33265,33266,33267,33268,33269,33270,33271,33272,33273,33274,33275,33276,33277,33278,33279,33280,33281,33282,33283,33284,33285,33286,33287,33288,33289,33290,33291,33292,33293,33294,33295,33296,33297,33298,33299,33300,33301,33302,33303,33304,33305,33306,33307,33308,33309,33310,33311,33312,33313,33314,33315,33316,33317,33318,33319,33320,33321,33322,33323,33324,33325,33326,33327,33328,33329,33330,33331,33332,33333,33334,33335,33336,33337,33338,33339,33340,33341,33342,33343,33344,33345,33346,33347,33348,33349,33350,33351,33352,33353,33354,33355,33356,33357,33358,33359,33360,33361,33362,33363,33364,33365,33366,33367,33368,33369,33370,33371,33372,33373,33374,33375,33376,33377,33378,33379,33380,33381,33382,33383,33384,33385,33386,33387,33388,33389,33390,33391,33392,33393,33394,33395,33396,33397,33398,33399,33400,33401,33402,33403,33404,33405,33406,33407,33408,33409,33410,33411,33412,33413,33414,33415,33416,33417,33418,33419,33420,33421,33422,33423,33424,33425,33426,33427,33428,33429,33430,33431,33432,33433,33434,33435,33436,33437,33438,33439,33440,33441,33442,33443,33444,33445,33446,33447,33448,33449,33450,33451,33452,33453,33454,33455,33456,33457,33458,33459,33460,33461,33462,33463,33464,33465,33466,33467,33468,33469,33470,33471,33472,33473,33474,33475,33476,33477,33478,33479,33480,33481,33482,33483,33484,33485,33486,33487,33488,33489,33490,33491,33492,33493,33494,33495,33496,33497,33498,33499,33500,33501,33502,33503,33504,33505,33506,33507,33508,33509,33510,33511,33512,33513,33514,33515,33516,33517,33518,33519,33520,33521,33522,33523,33524,33525,33526,33527,33528,33529,33530,33531,33532,33533,33534,33535,33536,33537,33538,33539,33540,33541,33542,33543,33544,33545,33546,33547,33548,33549,33550,33551,33552,33553,33554,33555,33556,33557,33558,33559,33560,33561,33562,33563,33564,33565,33566,33567,33568,33569,33570,33571,33572,33573,33574,33575,33576,33577,33578,33579,33580,33581,33582,33583,33584,33585,33586,33587,33588,33589,33590,33591,33592,33593,33594,33595,33596,33597,33598,33599,33600,33601,33602,33603,33604,33605,33606,33607,33608,33609,33610,33611,33612,33613,33614,33615,33616,33617,33618,33619,33620,33621,33622,33623,33624,33625,33626,33627,33628,33629,33630,33631,33632,33633,33634,33635,33636,33637,33638,33639,33640,33641,33642,33643,33644,33645,33646,33647,33648,33649,33650,33651,33652,33653,33654,33655,33656,33657,33658,33659,33660,33661,33662,33663,33664,33665,33666,33667,33668,33669,33670,33671,33672,33673,33674,33675,33676,33677,33678,33679,33680,33681,33682,33683,33684,33685,33686,33687,33688,33689,33690,33691,33692,33693,33694,33695,33696,33697,33698,33699,33700,33701,33702,33703,33704,33705,33706,33707,33708,33709,33710,33711,33712,33713,33714,33715,33716,33717,33718,33719,33720,33721,33722,33723,33724,33725,33726,33727,33728,33729,33730,33731,33732,33733,33734,33735,33736,33737,33738,33739,33740,33741,33742,33743,33744,33745,33746,33747,33748,33749,33750,33751,33752,33753,33754,33755,33756,33757,33758,33759,33760,33761,33762,33763,33764,33765,33766,33767,33768,33769,33770,33771,33772,33773,33774,33775,33776,33777,33778,33779,33780,33781,33782,33783,33784,33785,33786,33787,33788,33789,33790,33791,33792,33793,33794,33795,33796,33797,33798,33799,33800,33801,33802,33803,33804,33805,33806,33807,33808,33809,33810,33811,33812,33813,33814,33815,33816,33817,33818,33819,33820,33821,33822,33823,33824,33825,33826,33827,33828,33829,33830,33831,33832,33833,33834,33835,33836,33837,33838,33839,33840,33841,33842,33843,33844,33845,33846,33847,33848,33849,33850,33851,33852,33853,33854,33855,33856,33857,33858,33859,33860,33861,33862,33863,33864,33865,33866,33867,33868,33869,33870,33871,33872,33873,33874,33875,33876,33877,33878,33879,33880,33881,33882,33883,33884,33885,33886,33887,33888,33889,33890,33891,33892,33893,33894,33895,33896,33897,33898,33899,33900,33901,33902,33903,33904,33905,33906,33907,33908,33909,33910,33911,33912,33913,33914,33915,33916,33917,33918,33919,33920,33921,33922,33923,33924,33925,33926,33927,33928,33929,33930,33931,33932,33933,33934,33935,33936,33937,33938,33939,33940,33941,33942,33943,33944,33945,33946,33947,33948,33949,33950,33951,33952,33953,33954,33955,33956,33957,33958,33959,33960,33961,33962,33963,33964,33965,33966,33967,33968,33969,33970,33971,33972,33973,33974,33975,33976,33977,33978,33979,33980,33981,33982,33983,33984,33985,33986,33987,33988,33989,33990,33991,33992,33993,33994,33995,33996,33997,33998,33999,34000,34001,34002,34003,34004,34005,34006,34007,34008,34009,34010,34011,34012,34013,34014,34015,34016,34017,34018,34019,34020,34021,34022,34023,34024,34025,34026,34027,34028,34029,34030,34031,34032,34033,34034,34035,34036,34037,34038,34039,34040,34041,34042,34043,34044,34045,34046,34047,34048,34049,34050,34051,34052,34053,34054,34055,34056,34057,34058,34059,34060,34061,34062,34063,34064,34065,34066,34067,34068,34069,34070,34071,34072,34073,34074,34075,34076,34077,34078,34079,34080,34081,34082,34083,34084,34085,34086,34087,34088,34089,34090,34091,34092,34093,34094,34095,34096,34097,34098,34099,34100,34101,34102,34103,34104,34105,34106,34107,34108,34109,34110,34111,34112,34113,34114,34115,34116,34117,34118,34119,34120,34121,34122,34123,34124,34125,34126,34127,34128,34129,34130,34131,34132,34133,34134,34135,34136,34137,34138,34139,34140,34141,34142,34143,34144,34145,34146,34147,34148,34149,34150,34151,34152,34153,34154,34155,34156,34157,34158,34159,34160,34161,34162,34163,34164,34165,34166,34167,34168,34169,34170,34171,34172,34173,34174,34175,34176,34177,34178,34179,34180,34181,34182,34183,34184,34185,34186,34187,34188,34189,34190,34191,34192,34193,34194,34195,34196,34197,34198,34199,34200,34201,34202,34203,34204,34205,34206,34207,34208,34209,34210,34211,34212,34213,34214,34215,34216,34217,34218,34219,34220,34221,34222,34223,34224,34225,34226,34227,34228,34229,34230,34231,34232,34233,34234,34235,34236,34237,34238,34239,34240,34241,34242,34243,34244,34245,34246,34247,34248,34249,34250,34251,34252,34253,34254,34255,34256,34257,34258,34259,34260,34261,34262,34263,34264,34265,34266,34267,34268,34269,34270,34271,34272,34273,34274,34275,34276,34277,34278,34279,34280,34281,34282,34283,34284,34285,34286,34287,34288,34289,34290,34291,34292,34293,34294,34295,34296,34297,34298,34299,34300,34301,34302,34303,34304,34305,34306,34307,34308,34309,34310,34311,34312,34313,34314,34315,34316,34317,34318,34319,34320,34321,34322,34323,34324,34325,34326,34327,34328,34329,34330,34331,34332,34333,34334,34335,34336,34337,34338,34339,34340,34341,34342,34343,34344,34345,34346,34347,34348,34349,34350,34351,34352,34353,34354,34355,34356,34357,34358,34359,34360,34361,34362,34363,34364,34365,34366,34367,34368,34369,34370,34371,34372,34373,34374,34375,34376,34377,34378,34379,34380,34381,34382,34383,34384,34385,34386,34387,34388,34389,34390,34391,34392,34393,34394,34395,34396,34397,34398,34399,34400,34401,34402,34403,34404,34405,34406,34407,34408,34409,34410,34411,34412,34413,34414,34415,34416,34417,34418,34419,34420,34421,34422,34423,34424,34425,34426,34427,34428,34429,34430,34431,34432,34433,34434,34435,34436,34437,34438,34439,34440,34441,34442,34443,34444,34445,34446,34447,34448,34449,34450,34451,34452,34453,34454,34455,34456,34457,34458,34459,34460,34461,34462,34463,34464,34465,34466,34467,34468,34469,34470,34471,34472,34473,34474,34475,34476,34477,34478,34479,34480,34481,34482,34483,34484,34485,34486,34487,34488,34489,34490,34491,34492,34493,34494,34495,34496,34497,34498,34499,34500,34501,34502,34503,34504,34505,34506,34507,34508,34509,34510,34511,34512,34513,34514,34515,34516,34517,34518,34519,34520,34521,34522,34523,34524,34525,34526,34527,34528,34529,34530,34531,34532,34533,34534,34535,34536,34537,34538,34539,34540,34541,34542,34543,34544,34545,34546,34547,34548,34549,34550,34551,34552,34553,34554,34555,34556,34557,34558,34559,34560,34561,34562,34563,34564,34565,34566,34567,34568,34569,34570,34571,34572,34573,34574,34575,34576,34577,34578,34579,34580,34581,34582,34583,34584,34585,34586,34587,34588,34589,34590,34591,34592,34593,34594,34595,34596,34597,34598,34599,34600,34601,34602,34603,34604,34605,34606,34607,34608,34609,34610,34611,34612,34613,34614,34615,34616,34617,34618,34619,34620,34621,34622,34623,34624,34625,34626,34627,34628,34629,34630,34631,34632,34633,34634,34635,34636,34637,34638,34639,34640,34641,34642,34643,34644,34645,34646,34647,34648,34649,34650,34651,34652,34653,34654,34655,34656,34657,34658,34659,34660,34661,34662,34663,34664,34665,34666,34667,34668,34669,34670,34671,34672,34673,34674,34675,34676,34677,34678,34679,34680,34681,34682,34683,34684,34685,34686,34687,34688,34689,34690,34691,34692,34693,34694,34695,34696,34697,34698,34699,34700,34701,34702,34703,34704,34705,34706,34707,34708,34709,34710,34711,34712,34713,34714,34715,34716,34717,34718,34719,34720,34721,34722,34723,34724,34725,34726,34727,34728,34729,34730,34731,34732,34733,34734,34735,34736,34737,34738,34739,34740,34741,34742,34743,34744,34745,34746,34747,34748,34749,34750,34751,34752,34753,34754,34755,34756,34757,34758,34759,34760,34761,34762,34763,34764,34765,34766,34767,34768,34769,34770,34771,34772,34773,34774,34775,34776,34777,34778,34779,34780,34781,34782,34783,34784,34785,34786,34787,34788,34789,34790,34791,34792,34793,34794,34795,34796,34797,34798,34799,34800,34801,34802,34803,34804,34805,34806,34807,34808,34809,34810,34811,34812,34813,34814,34815,34816,34817,34818,34819,34820,34821,34822,34823,34824,34825,34826,34827,34828,34829,34830,34831,34832,34833,34834,34835,34836,34837,34838,34839,34840,34841,34842,34843,34844,34845,34846,34847,34848,34849,34850,34851,34852,34853,34854,34855,34856,34857,34858,34859,34860,34861,34862,34863,34864,34865,34866,34867,34868,34869,34870,34871,34872,34873,34874,34875,34876,34877,34878,34879,34880,34881,34882,34883,34884,34885,34886,34887,34888,34889,34890,34891,34892,34893,34894,34895,34896,34897,34898,34899,34900,34901,34902,34903,34904,34905,34906,34907,34908,34909,34910,34911,34912,34913,34914,34915,34916,34917,34918,34919,34920,34921,34922,34923,34924,34925,34926,34927,34928,34929,34930,34931,34932,34933,34934,34935,34936,34937,34938,34939,34940,34941,34942,34943,34944,34945,34946,34947,34948,34949,34950,34951,34952,34953,34954,34955,34956,34957,34958,34959,34960,34961,34962,34963,34964,34965,34966,34967,34968,34969,34970,34971,34972,34973,34974,34975,34976,34977,34978,34979,34980,34981,34982,34983,34984,34985,34986,34987,34988,34989,34990,34991,34992,34993,34994,34995,34996,34997,34998,34999,35000,35001,35002,35003,35004,35005,35006,35007,35008,35009,35010,35011,35012,35013,35014,35015,35016,35017,35018,35019,35020,35021,35022,35023,35024,35025,35026,35027,35028,35029,35030,35031,35032,35033,35034,35035,35036,35037,35038,35039,35040,35041,35042,35043,35044,35045,35046,35047,35048,35049,35050,35051,35052,35053,35054,35055,35056,35057,35058,35059,35060,35061,35062,35063,35064,35065,35066,35067,35068,35069,35070,35071,35072,35073,35074,35075,35076,35077,35078,35079,35080,35081,35082,35083,35084,35085,35086,35087,35088,35089,35090,35091,35092,35093,35094,35095,35096,35097,35098,35099,35100,35101,35102,35103,35104,35105,35106,35107,35108,35109,35110,35111,35112,35113,35114,35115,35116,35117,35118,35119,35120,35121,35122,35123,35124,35125,35126,35127,35128,35129,35130,35131,35132,35133,35134,35135,35136,35137,35138,35139,35140,35141,35142,35143,35144,35145,35146,35147,35148,35149,35150,35151,35152,35153,35154,35155,35156,35157,35158,35159,35160,35161,35162,35163,35164,35165,35166,35167,35168,35169,35170,35171,35172,35173,35174,35175,35176,35177,35178,35179,35180,35181,35182,35183,35184,35185,35186,35187,35188,35189,35190,35191,35192,35193,35194,35195,35196,35197,35198,35199,35200,35201,35202,35203,35204,35205,35206,35207,35208,35209,35210,35211,35212,35213,35214,35215,35216,35217,35218,35219,35220,35221,35222,35223,35224,35225,35226,35227,35228,35229,35230,35231,35232,35233,35234,35235,35236,35237,35238,35239,35240,35241,35242,35243,35244,35245,35246,35247,35248,35249,35250,35251,35252,35253,35254,35255,35256,35257,35258,35259,35260,35261,35262,35263,35264,35265,35266,35267,35268,35269,35270,35271,35272,35273,35274,35275,35276,35277,35278,35279,35280,35281,35282,35283,35284,35285,35286,35287,35288,35289,35290,35291,35292,35293,35294,35295,35296,35297,35298,35299,35300,35301,35302,35303,35304,35305,35306,35307,35308,35309,35310,35311,35312,35313,35314,35315,35316,35317,35318,35319,35320,35321,35322,35323,35324,35325,35326,35327,35328,35329,35330,35331,35332,35333,35334,35335,35336,35337,35338,35339,35340,35341,35342,35343,35344,35345,35346,35347,35348,35349,35350,35351,35352,35353,35354,35355,35356,35357,35358,35359,35360,35361,35362,35363,35364,35365,35366,35367,35368,35369,35370,35371,35372,35373,35374,35375,35376,35377,35378,35379,35380,35381,35382,35383,35384,35385,35386,35387,35388,35389,35390,35391,35392,35393,35394,35395,35396,35397,35398,35399,35400,35401,35402,35403,35404,35405,35406,35407,35408,35409,35410,35411,35412,35413,35414,35415,35416,35417,35418,35419,35420,35421,35422,35423,35424,35425,35426,35427,35428,35429,35430,35431,35432,35433,35434,35435,35436,35437,35438,35439,35440,35441,35442,35443,35444,35445,35446,35447,35448,35449,35450,35451,35452,35453,35454,35455,35456,35457,35458,35459,35460,35461,35462,35463,35464,35465,35466,35467,35468,35469,35470,35471,35472,35473,35474,35475,35476,35477,35478,35479,35480,35481,35482,35483,35484,35485,35486,35487,35488,35489,35490,35491,35492,35493,35494,35495,35496,35497,35498,35499,35500,35501,35502,35503,35504,35505,35506,35507,35508,35509,35510,35511,35512,35513,35514,35515,35516,35517,35518,35519,35520,35521,35522,35523,35524,35525,35526,35527,35528,35529,35530,35531,35532,35533,35534,35535,35536,35537,35538,35539,35540,35541,35542,35543,35544,35545,35546,35547,35548,35549,35550,35551,35552,35553,35554,35555,35556,35557,35558,35559,35560,35561,35562,35563,35564,35565,35566,35567,35568,35569,35570,35571,35572,35573,35574,35575,35576,35577,35578,35579,35580,35581,35582,35583,35584,35585,35586,35587,35588,35589,35590,35591,35592,35593,35594,35595,35596,35597,35598,35599,35600,35601,35602,35603,35604,35605,35606,35607,35608,35609,35610,35611,35612,35613,35614,35615,35616,35617,35618,35619,35620,35621,35622,35623,35624,35625,35626,35627,35628,35629,35630,35631,35632,35633,35634,35635,35636,35637,35638,35639,35640,35641,35642,35643,35644,35645,35646,35647,35648,35649,35650,35651,35652,35653,35654,35655,35656,35657,35658,35659,35660,35661,35662,35663,35664,35665,35666,35667,35668,35669,35670,35671,35672,35673,35674,35675,35676,35677,35678,35679,35680,35681,35682,35683,35684,35685,35686,35687,35688,35689,35690,35691,35692,35693,35694,35695,35696,35697,35698,35699,35700,35701,35702,35703,35704,35705,35706,35707,35708,35709,35710,35711,35712,35713,35714,35715,35716,35717,35718,35719,35720,35721,35722,35723,35724,35725,35726,35727,35728,35729,35730,35731,35732,35733,35734,35735,35736,35737,35738,35739,35740,35741,35742,35743,35744,35745,35746,35747,35748,35749,35750,35751,35752,35753,35754,35755,35756,35757,35758,35759,35760,35761,35762,35763,35764,35765,35766,35767,35768,35769,35770,35771,35772,35773,35774,35775,35776,35777,35778,35779,35780,35781,35782,35783,35784,35785,35786,35787,35788,35789,35790,35791,35792,35793,35794,35795,35796,35797,35798,35799,35800,35801,35802,35803,35804,35805,35806,35807,35808,35809,35810,35811,35812,35813,35814,35815,35816,35817,35818,35819,35820,35821,35822,35823,35824,35825,35826,35827,35828,35829,35830,35831,35832,35833,35834,35835,35836,35837,35838,35839,35840,35841,35842,35843,35844,35845,35846,35847,35848,35849,35850,35851,35852,35853,35854,35855,35856,35857,35858,35859,35860,35861,35862,35863,35864,35865,35866,35867,35868,35869,35870,35871,35872,35873,35874,35875,35876,35877,35878,35879,35880,35881,35882,35883,35884,35885,35886,35887,35888,35889,35890,35891,35892,35893,35894,35895,35896,35897,35898,35899,35900,35901,35902,35903,35904,35905,35906,35907,35908,35909,35910,35911,35912,35913,35914,35915,35916,35917,35918,35919,35920,35921,35922,35923,35924,35925,35926,35927,35928,35929,35930,35931,35932,35933,35934,35935,35936,35937,35938,35939,35940,35941,35942,35943,35944,35945,35946,35947,35948,35949,35950,35951,35952,35953,35954,35955,35956,35957,35958,35959,35960,35961,35962,35963,35964,35965,35966,35967,35968,35969,35970,35971,35972,35973,35974,35975,35976,35977,35978,35979,35980,35981,35982,35983,35984,35985,35986,35987,35988,35989,35990,35991,35992,35993,35994,35995,35996,35997,35998,35999,36000,36001,36002,36003,36004,36005,36006,36007,36008,36009,36010,36011,36012,36013,36014,36015,36016,36017,36018,36019,36020,36021,36022,36023,36024,36025,36026,36027,36028,36029,36030,36031,36032,36033,36034,36035,36036,36037,36038,36039,36040,36041,36042,36043,36044,36045,36046,36047,36048,36049,36050,36051,36052,36053,36054,36055,36056,36057,36058,36059,36060,36061,36062,36063,36064,36065,36066,36067,36068,36069,36070,36071,36072,36073,36074,36075,36076,36077,36078,36079,36080,36081,36082,36083,36084,36085,36086,36087,36088,36089,36090,36091,36092,36093,36094,36095,36096,36097,36098,36099,36100,36101,36102,36103,36104,36105,36106,36107,36108,36109,36110,36111,36112,36113,36114,36115,36116,36117,36118,36119,36120,36121,36122,36123,36124,36125,36126,36127,36128,36129,36130,36131,36132,36133,36134,36135,36136,36137,36138,36139,36140,36141,36142,36143,36144,36145,36146,36147,36148,36149,36150,36151,36152,36153,36154,36155,36156,36157,36158,36159,36160,36161,36162,36163,36164,36165,36166,36167,36168,36169,36170,36171,36172,36173,36174,36175,36176,36177,36178,36179,36180,36181,36182,36183,36184,36185,36186,36187,36188,36189,36190,36191,36192,36193,36194,36195,36196,36197,36198,36199,36200,36201,36202,36203,36204,36205,36206,36207,36208,36209,36210,36211,36212,36213,36214,36215,36216,36217,36218,36219,36220,36221,36222,36223,36224,36225,36226,36227,36228,36229,36230,36231,36232,36233,36234,36235,36236,36237,36238,36239,36240,36241,36242,36243,36244,36245,36246,36247,36248,36249,36250,36251,36252,36253,36254,36255,36256,36257,36258,36259,36260,36261,36262,36263,36264,36265,36266,36267,36268,36269,36270,36271,36272,36273,36274,36275,36276,36277,36278,36279,36280,36281,36282,36283,36284,36285,36286,36287,36288,36289,36290,36291,36292,36293,36294,36295,36296,36297,36298,36299,36300,36301,36302,36303,36304,36305,36306,36307,36308,36309,36310,36311,36312,36313,36314,36315,36316,36317,36318,36319,36320,36321,36322,36323,36324,36325,36326,36327,36328,36329,36330,36331,36332,36333,36334,36335,36336,36337,36338,36339,36340,36341,36342,36343,36344,36345,36346,36347,36348,36349,36350,36351,36352,36353,36354,36355,36356,36357,36358,36359,36360,36361,36362,36363,36364,36365,36366,36367,36368,36369,36370,36371,36372,36373,36374,36375,36376,36377,36378,36379,36380,36381,36382,36383,36384,36385,36386,36387,36388,36389,36390,36391,36392,36393,36394,36395,36396,36397,36398,36399,36400,36401,36402,36403,36404,36405,36406,36407,36408,36409,36410,36411,36412,36413,36414,36415,36416,36417,36418,36419,36420,36421,36422,36423,36424,36425,36426,36427,36428,36429,36430,36431,36432,36433,36434,36435,36436,36437,36438,36439,36440,36441,36442,36443,36444,36445,36446,36447,36448,36449,36450,36451,36452,36453,36454,36455,36456,36457,36458,36459,36460,36461,36462,36463,36464,36465,36466,36467,36468,36469,36470,36471,36472,36473,36474,36475,36476,36477,36478,36479,36480,36481,36482,36483,36484,36485,36486,36487,36488,36489,36490,36491,36492,36493,36494,36495,36496,36497,36498,36499,36500,36501,36502,36503,36504,36505,36506,36507,36508,36509,36510,36511,36512,36513,36514,36515,36516,36517,36518,36519,36520,36521,36522,36523,36524,36525,36526,36527,36528,36529,36530,36531,36532,36533,36534,36535,36536,36537,36538,36539,36540,36541,36542,36543,36544,36545,36546,36547,36548,36549,36550,36551,36552,36553,36554,36555,36556,36557,36558,36559,36560,36561,36562,36563,36564,36565,36566,36567,36568,36569,36570,36571,36572,36573,36574,36575,36576,36577,36578,36579,36580,36581,36582,36583,36584,36585,36586,36587,36588,36589,36590,36591,36592,36593,36594,36595,36596,36597,36598,36599,36600,36601,36602,36603,36604,36605,36606,36607,36608,36609,36610,36611,36612,36613,36614,36615,36616,36617,36618,36619,36620,36621,36622,36623,36624,36625,36626,36627,36628,36629,36630,36631,36632,36633,36634,36635,36636,36637,36638,36639,36640,36641,36642,36643,36644,36645,36646,36647,36648,36649,36650,36651,36652,36653,36654,36655,36656,36657,36658,36659,36660,36661,36662,36663,36664,36665,36666,36667,36668,36669,36670,36671,36672,36673,36674,36675,36676,36677,36678,36679,36680,36681,36682,36683,36684,36685,36686,36687,36688,36689,36690,36691,36692,36693,36694,36695,36696,36697,36698,36699,36700,36701,36702,36703,36704,36705,36706,36707,36708,36709,36710,36711,36712,36713,36714,36715,36716,36717,36718,36719,36720,36721,36722,36723,36724,36725,36726,36727,36728,36729,36730,36731,36732,36733,36734,36735,36736,36737,36738,36739,36740,36741,36742,36743,36744,36745,36746,36747,36748,36749,36750,36751,36752,36753,36754,36755,36756,36757,36758,36759,36760,36761,36762,36763,36764,36765,36766,36767,36768,36769,36770,36771,36772,36773,36774,36775,36776,36777,36778,36779,36780,36781,36782,36783,36784,36785,36786,36787,36788,36789,36790,36791,36792,36793,36794,36795,36796,36797,36798,36799,36800,36801,36802,36803,36804,36805,36806,36807,36808,36809,36810,36811,36812,36813,36814,36815,36816,36817,36818,36819,36820,36821,36822,36823,36824,36825,36826,36827,36828,36829,36830,36831,36832,36833,36834,36835,36836,36837,36838,36839,36840,36841,36842,36843,36844,36845,36846,36847,36848,36849,36850,36851,36852,36853,36854,36855,36856,36857,36858,36859,36860,36861,36862,36863,36864,36865,36866,36867,36868,36869,36870,36871,36872,36873,36874,36875,36876,36877,36878,36879,36880,36881,36882,36883,36884,36885,36886,36887,36888,36889,36890,36891,36892,36893,36894,36895,36896,36897,36898,36899,36900,36901,36902,36903,36904,36905,36906,36907,36908,36909,36910,36911,36912,36913,36914,36915,36916,36917,36918,36919,36920,36921,36922,36923,36924,36925,36926,36927,36928,36929,36930,36931,36932,36933,36934,36935,36936,36937,36938,36939,36940,36941,36942,36943,36944,36945,36946,36947,36948,36949,36950,36951,36952,36953,36954,36955,36956,36957,36958,36959,36960,36961,36962,36963,36964,36965,36966,36967,36968,36969,36970,36971,36972,36973,36974,36975,36976,36977,36978,36979,36980,36981,36982,36983,36984,36985,36986,36987,36988,36989,36990,36991,36992,36993,36994,36995,36996,36997,36998,36999,37000,37001,37002,37003,37004,37005,37006,37007,37008,37009,37010,37011,37012,37013,37014,37015,37016,37017,37018,37019,37020,37021,37022,37023,37024,37025,37026,37027,37028,37029,37030,37031,37032,37033,37034,37035,37036,37037,37038,37039,37040,37041,37042,37043,37044,37045,37046,37047,37048,37049,37050,37051,37052,37053,37054,37055,37056,37057,37058,37059,37060,37061,37062,37063,37064,37065,37066,37067,37068,37069,37070,37071,37072,37073,37074,37075,37076,37077,37078,37079,37080,37081,37082,37083,37084,37085,37086,37087,37088,37089,37090,37091,37092,37093,37094,37095,37096,37097,37098,37099,37100,37101,37102,37103,37104,37105,37106,37107,37108,37109,37110,37111,37112,37113,37114,37115,37116,37117,37118,37119,37120,37121,37122,37123,37124,37125,37126,37127,37128,37129,37130,37131,37132,37133,37134,37135,37136,37137,37138,37139,37140,37141,37142,37143,37144,37145,37146,37147,37148,37149,37150,37151,37152,37153,37154,37155,37156,37157,37158,37159,37160,37161,37162,37163,37164,37165,37166,37167,37168,37169,37170,37171,37172,37173,37174,37175,37176,37177,37178,37179,37180,37181,37182,37183,37184,37185,37186,37187,37188,37189,37190,37191,37192,37193,37194,37195,37196,37197,37198,37199,37200,37201,37202,37203,37204,37205,37206,37207,37208,37209,37210,37211,37212,37213,37214,37215,37216,37217,37218,37219,37220,37221,37222,37223,37224,37225,37226,37227,37228,37229,37230,37231,37232,37233,37234,37235,37236,37237,37238,37239,37240,37241,37242,37243,37244,37245,37246,37247,37248,37249,37250,37251,37252,37253,37254,37255,37256,37257,37258,37259,37260,37261,37262,37263,37264,37265,37266,37267,37268,37269,37270,37271,37272,37273,37274,37275,37276,37277,37278,37279,37280,37281,37282,37283,37284,37285,37286,37287,37288,37289,37290,37291,37292,37293,37294,37295,37296,37297,37298,37299,37300,37301,37302,37303,37304,37305,37306,37307,37308,37309,37310,37311,37312,37313,37314,37315,37316,37317,37318,37319,37320,37321,37322,37323,37324,37325,37326,37327,37328,37329,37330,37331,37332,37333,37334,37335,37336,37337,37338,37339,37340,37341,37342,37343,37344,37345,37346,37347,37348,37349,37350,37351,37352,37353,37354,37355,37356,37357,37358,37359,37360,37361,37362,37363,37364,37365,37366,37367,37368,37369,37370,37371,37372,37373,37374,37375,37376,37377,37378,37379,37380,37381,37382,37383,37384,37385,37386,37387,37388,37389,37390,37391,37392,37393,37394,37395,37396,37397,37398,37399,37400,37401,37402,37403,37404,37405,37406,37407,37408,37409,37410,37411,37412,37413,37414,37415,37416,37417,37418,37419,37420,37421,37422,37423,37424,37425,37426,37427,37428,37429,37430,37431,37432,37433,37434,37435,37436,37437,37438,37439,37440,37441,37442,37443,37444,37445,37446,37447,37448,37449,37450,37451,37452,37453,37454,37455,37456,37457,37458,37459,37460,37461,37462,37463,37464,37465,37466,37467,37468,37469,37470,37471,37472,37473,37474,37475,37476,37477,37478,37479,37480,37481,37482,37483,37484,37485,37486,37487,37488,37489,37490,37491,37492,37493,37494,37495,37496,37497,37498,37499,37500,37501,37502,37503,37504,37505,37506,37507,37508,37509,37510,37511,37512,37513,37514,37515,37516,37517,37518,37519,37520,37521,37522,37523,37524,37525,37526,37527,37528,37529,37530,37531,37532,37533,37534,37535,37536,37537,37538,37539,37540,37541,37542,37543,37544,37545,37546,37547,37548,37549,37550,37551,37552,37553,37554,37555,37556,37557,37558,37559,37560,37561,37562,37563,37564,37565,37566,37567,37568,37569,37570,37571,37572,37573,37574,37575,37576,37577,37578,37579,37580,37581,37582,37583,37584,37585,37586,37587,37588,37589,37590,37591,37592,37593,37594,37595,37596,37597,37598,37599,37600,37601,37602,37603,37604,37605,37606,37607,37608,37609,37610,37611,37612,37613,37614,37615,37616,37617,37618,37619,37620,37621,37622,37623,37624,37625,37626,37627,37628,37629,37630,37631,37632,37633,37634,37635,37636,37637,37638,37639,37640,37641,37642,37643,37644,37645,37646,37647,37648,37649,37650,37651,37652,37653,37654,37655,37656,37657,37658,37659,37660,37661,37662,37663,37664,37665,37666,37667,37668,37669,37670,37671,37672,37673,37674,37675,37676,37677,37678,37679,37680,37681,37682,37683,37684,37685,37686,37687,37688,37689,37690,37691,37692,37693,37694,37695,37696,37697,37698,37699,37700,37701,37702,37703,37704,37705,37706,37707,37708,37709,37710,37711,37712,37713,37714,37715,37716,37717,37718,37719,37720,37721,37722,37723,37724,37725,37726,37727,37728,37729,37730,37731,37732,37733,37734,37735,37736,37737,37738,37739,37740,37741,37742,37743,37744,37745,37746,37747,37748,37749,37750,37751,37752,37753,37754,37755,37756,37757,37758,37759,37760,37761,37762,37763,37764,37765,37766,37767,37768,37769,37770,37771,37772,37773,37774,37775,37776,37777,37778,37779,37780,37781,37782,37783,37784,37785,37786,37787,37788,37789,37790,37791,37792,37793,37794,37795,37796,37797,37798,37799,37800,37801,37802,37803,37804,37805,37806,37807,37808,37809,37810,37811,37812,37813,37814,37815,37816,37817,37818,37819,37820,37821,37822,37823,37824,37825,37826,37827,37828,37829,37830,37831,37832,37833,37834,37835,37836,37837,37838,37839,37840,37841,37842,37843,37844,37845,37846,37847,37848,37849,37850,37851,37852,37853,37854,37855,37856,37857,37858,37859,37860,37861,37862,37863,37864,37865,37866,37867,37868,37869,37870,37871,37872,37873,37874,37875,37876,37877,37878,37879,37880,37881,37882,37883,37884,37885,37886,37887,37888,37889,37890,37891,37892,37893,37894,37895,37896,37897,37898,37899,37900,37901,37902,37903,37904,37905,37906,37907,37908,37909,37910,37911,37912,37913,37914,37915,37916,37917,37918,37919,37920,37921,37922,37923,37924,37925,37926,37927,37928,37929,37930,37931,37932,37933,37934,37935,37936,37937,37938,37939,37940,37941,37942,37943,37944,37945,37946,37947,37948,37949,37950,37951,37952,37953,37954,37955,37956,37957,37958,37959,37960,37961,37962,37963,37964,37965,37966,37967,37968,37969,37970,37971,37972,37973,37974,37975,37976,37977,37978,37979,37980,37981,37982,37983,37984,37985,37986,37987,37988,37989,37990,37991,37992,37993,37994,37995,37996,37997,37998,37999,38000,38001,38002,38003,38004,38005,38006,38007,38008,38009,38010,38011,38012,38013,38014,38015,38016,38017,38018,38019,38020,38021,38022,38023,38024,38025,38026,38027,38028,38029,38030,38031,38032,38033,38034,38035,38036,38037,38038,38039,38040,38041,38042,38043,38044,38045,38046,38047,38048,38049,38050,38051,38052,38053,38054,38055,38056,38057,38058,38059,38060,38061,38062,38063,38064,38065,38066,38067,38068,38069,38070,38071,38072,38073,38074,38075,38076,38077,38078,38079,38080,38081,38082,38083,38084,38085,38086,38087,38088,38089,38090,38091,38092,38093,38094,38095,38096,38097,38098,38099,38100,38101,38102,38103,38104,38105,38106,38107,38108,38109,38110,38111,38112,38113,38114,38115,38116,38117,38118,38119,38120,38121,38122,38123,38124,38125,38126,38127,38128,38129,38130,38131,38132,38133,38134,38135,38136,38137,38138,38139,38140,38141,38142,38143,38144,38145,38146,38147,38148,38149,38150,38151,38152,38153,38154,38155,38156,38157,38158,38159,38160,38161,38162,38163,38164,38165,38166,38167,38168,38169,38170,38171,38172,38173,38174,38175,38176,38177,38178,38179,38180,38181,38182,38183,38184,38185,38186,38187,38188,38189,38190,38191,38192,38193,38194,38195,38196,38197,38198,38199,38200,38201,38202,38203,38204,38205,38206,38207,38208,38209,38210,38211,38212,38213,38214,38215,38216,38217,38218,38219,38220,38221,38222,38223,38224,38225,38226,38227,38228,38229,38230,38231,38232,38233,38234,38235,38236,38237,38238,38239,38240,38241,38242,38243,38244,38245,38246,38247,38248,38249,38250,38251,38252,38253,38254,38255,38256,38257,38258,38259,38260,38261,38262,38263,38264,38265,38266,38267,38268,38269,38270,38271,38272,38273,38274,38275,38276,38277,38278,38279,38280,38281,38282,38283,38284,38285,38286,38287,38288,38289,38290,38291,38292,38293,38294,38295,38296,38297,38298,38299,38300,38301,38302,38303,38304,38305,38306,38307,38308,38309,38310,38311,38312,38313,38314,38315,38316,38317,38318,38319,38320,38321,38322,38323,38324,38325,38326,38327,38328,38329,38330,38331,38332,38333,38334,38335,38336,38337,38338,38339,38340,38341,38342,38343,38344,38345,38346,38347,38348,38349,38350,38351,38352,38353,38354,38355,38356,38357,38358,38359,38360,38361,38362,38363,38364,38365,38366,38367,38368,38369,38370,38371,38372,38373,38374,38375,38376,38377,38378,38379,38380,38381,38382,38383,38384,38385,38386,38387,38388,38389,38390,38391,38392,38393,38394,38395,38396,38397,38398,38399,38400,38401,38402,38403,38404,38405,38406,38407,38408,38409,38410,38411,38412,38413,38414,38415,38416,38417,38418,38419,38420,38421,38422,38423,38424,38425,38426,38427,38428,38429,38430,38431,38432,38433,38434,38435,38436,38437,38438,38439,38440,38441,38442,38443,38444,38445,38446,38447,38448,38449,38450,38451,38452,38453,38454,38455,38456,38457,38458,38459,38460,38461,38462,38463,38464,38465,38466,38467,38468,38469,38470,38471,38472,38473,38474,38475,38476,38477,38478,38479,38480,38481,38482,38483,38484,38485,38486,38487,38488,38489,38490,38491,38492,38493,38494,38495,38496,38497,38498,38499,38500,38501,38502,38503,38504,38505,38506,38507,38508,38509,38510,38511,38512,38513,38514,38515,38516,38517,38518,38519,38520,38521,38522,38523,38524,38525,38526,38527,38528,38529,38530,38531,38532,38533,38534,38535,38536,38537,38538,38539,38540,38541,38542,38543,38544,38545,38546,38547,38548,38549,38550,38551,38552,38553,38554,38555,38556,38557,38558,38559,38560,38561,38562,38563,38564,38565,38566,38567,38568,38569,38570,38571,38572,38573,38574,38575,38576,38577,38578,38579,38580,38581,38582,38583,38584,38585,38586,38587,38588,38589,38590,38591,38592,38593,38594,38595,38596,38597,38598,38599,38600,38601,38602,38603,38604,38605,38606,38607,38608,38609,38610,38611,38612,38613,38614,38615,38616,38617,38618,38619,38620,38621,38622,38623,38624,38625,38626,38627,38628,38629,38630,38631,38632,38633,38634,38635,38636,38637,38638,38639,38640,38641,38642,38643,38644,38645,38646,38647,38648,38649,38650,38651,38652,38653,38654,38655,38656,38657,38658,38659,38660,38661,38662,38663,38664,38665,38666,38667,38668,38669,38670,38671,38672,38673,38674,38675,38676,38677,38678,38679,38680,38681,38682,38683,38684,38685,38686,38687,38688,38689,38690,38691,38692,38693,38694,38695,38696,38697,38698,38699,38700,38701,38702,38703,38704,38705,38706,38707,38708,38709,38710,38711,38712,38713,38714,38715,38716,38717,38718,38719,38720,38721,38722,38723,38724,38725,38726,38727,38728,38729,38730,38731,38732,38733,38734,38735,38736,38737,38738,38739,38740,38741,38742,38743,38744,38745,38746,38747,38748,38749,38750,38751,38752,38753,38754,38755,38756,38757,38758,38759,38760,38761,38762,38763,38764,38765,38766,38767,38768,38769,38770,38771,38772,38773,38774,38775,38776,38777,38778,38779,38780,38781,38782,38783,38784,38785,38786,38787,38788,38789,38790,38791,38792,38793,38794,38795,38796,38797,38798,38799,38800,38801,38802,38803,38804,38805,38806,38807,38808,38809,38810,38811,38812,38813,38814,38815,38816,38817,38818,38819,38820,38821,38822,38823,38824,38825,38826,38827,38828,38829,38830,38831,38832,38833,38834,38835,38836,38837,38838,38839,38840,38841,38842,38843,38844,38845,38846,38847,38848,38849,38850,38851,38852,38853,38854,38855,38856,38857,38858,38859,38860,38861,38862,38863,38864,38865,38866,38867,38868,38869,38870,38871,38872,38873,38874,38875,38876,38877,38878,38879,38880,38881,38882,38883,38884,38885,38886,38887,38888,38889,38890,38891,38892,38893,38894,38895,38896,38897,38898,38899,38900,38901,38902,38903,38904,38905,38906,38907,38908,38909,38910,38911,38912,38913,38914,38915,38916,38917,38918,38919,38920,38921,38922,38923,38924,38925,38926,38927,38928,38929,38930,38931,38932,38933,38934,38935,38936,38937,38938,38939,38940,38941,38942,38943,38944,38945,38946,38947,38948,38949,38950,38951,38952,38953,38954,38955,38956,38957,38958,38959,38960,38961,38962,38963,38964,38965,38966,38967,38968,38969,38970,38971,38972,38973,38974,38975,38976,38977,38978,38979,38980,38981,38982,38983,38984,38985,38986,38987,38988,38989,38990,38991,38992,38993,38994,38995,38996,38997,38998,38999,39000,39001,39002,39003,39004,39005,39006,39007,39008,39009,39010,39011,39012,39013,39014,39015,39016,39017,39018,39019,39020,39021,39022,39023,39024,39025,39026,39027,39028,39029,39030,39031,39032,39033,39034,39035,39036,39037,39038,39039,39040,39041,39042,39043,39044,39045,39046,39047,39048,39049,39050,39051,39052,39053,39054,39055,39056,39057,39058,39059,39060,39061,39062,39063,39064,39065,39066,39067,39068,39069,39070,39071,39072,39073,39074,39075,39076,39077,39078,39079,39080,39081,39082,39083,39084,39085,39086,39087,39088,39089,39090,39091,39092,39093,39094,39095,39096,39097,39098,39099,39100,39101,39102,39103,39104,39105,39106,39107,39108,39109,39110,39111,39112,39113,39114,39115,39116,39117,39118,39119,39120,39121,39122,39123,39124,39125,39126,39127,39128,39129,39130,39131,39132,39133,39134,39135,39136,39137,39138,39139,39140,39141,39142,39143,39144,39145,39146,39147,39148,39149,39150,39151,39152,39153,39154,39155,39156,39157,39158,39159,39160,39161,39162,39163,39164,39165,39166,39167,39168,39169,39170,39171,39172,39173,39174,39175,39176,39177,39178,39179,39180,39181,39182,39183,39184,39185,39186,39187,39188,39189,39190,39191,39192,39193,39194,39195,39196,39197,39198,39199,39200,39201,39202,39203,39204,39205,39206,39207,39208,39209,39210,39211,39212,39213,39214,39215,39216,39217,39218,39219,39220,39221,39222,39223,39224,39225,39226,39227,39228,39229,39230,39231,39232,39233,39234,39235,39236,39237,39238,39239,39240,39241,39242,39243,39244,39245,39246,39247,39248,39249,39250,39251,39252,39253,39254,39255,39256,39257,39258,39259,39260,39261,39262,39263,39264,39265,39266,39267,39268,39269,39270,39271,39272,39273,39274,39275,39276,39277,39278,39279,39280,39281,39282,39283,39284,39285,39286,39287,39288,39289,39290,39291,39292,39293,39294,39295,39296,39297,39298,39299,39300,39301,39302,39303,39304,39305,39306,39307,39308,39309,39310,39311,39312,39313,39314,39315,39316,39317,39318,39319,39320,39321,39322,39323,39324,39325,39326,39327,39328,39329,39330,39331,39332,39333,39334,39335,39336,39337,39338,39339,39340,39341,39342,39343,39344,39345,39346,39347,39348,39349,39350,39351,39352,39353,39354,39355,39356,39357,39358,39359,39360,39361,39362,39363,39364,39365,39366,39367,39368,39369,39370,39371,39372,39373,39374,39375,39376,39377,39378,39379,39380,39381,39382,39383,39384,39385,39386,39387,39388,39389,39390,39391,39392,39393,39394,39395,39396,39397,39398,39399,39400,39401,39402,39403,39404,39405,39406,39407,39408,39409,39410,39411,39412,39413,39414,39415,39416,39417,39418,39419,39420,39421,39422,39423,39424,39425,39426,39427,39428,39429,39430,39431,39432,39433,39434,39435,39436,39437,39438,39439,39440,39441,39442,39443,39444,39445,39446,39447,39448,39449,39450,39451,39452,39453,39454,39455,39456,39457,39458,39459,39460,39461,39462,39463,39464,39465,39466,39467,39468,39469,39470,39471,39472,39473,39474,39475,39476,39477,39478,39479,39480,39481,39482,39483,39484,39485,39486,39487,39488,39489,39490,39491,39492,39493,39494,39495,39496,39497,39498,39499,39500,39501,39502,39503,39504,39505,39506,39507,39508,39509,39510,39511,39512,39513,39514,39515,39516,39517,39518,39519,39520,39521,39522,39523,39524,39525,39526,39527,39528,39529,39530,39531,39532,39533,39534,39535,39536,39537,39538,39539,39540,39541,39542,39543,39544,39545,39546,39547,39548,39549,39550,39551,39552,39553,39554,39555,39556,39557,39558,39559,39560,39561,39562,39563,39564,39565,39566,39567,39568,39569,39570,39571,39572,39573,39574,39575,39576,39577,39578,39579,39580,39581,39582,39583,39584,39585,39586,39587,39588,39589,39590,39591,39592,39593,39594,39595,39596,39597,39598,39599,39600,39601,39602,39603,39604,39605,39606,39607,39608,39609,39610,39611,39612,39613,39614,39615,39616,39617,39618,39619,39620,39621,39622,39623,39624,39625,39626,39627,39628,39629,39630,39631,39632,39633,39634,39635,39636,39637,39638,39639,39640,39641,39642,39643,39644,39645,39646,39647,39648,39649,39650,39651,39652,39653,39654,39655,39656,39657,39658,39659,39660,39661,39662,39663,39664,39665,39666,39667,39668,39669,39670,39671,39672,39673,39674,39675,39676,39677,39678,39679,39680,39681,39682,39683,39684,39685,39686,39687,39688,39689,39690,39691,39692,39693,39694,39695,39696,39697,39698,39699,39700,39701,39702,39703,39704,39705,39706,39707,39708,39709,39710,39711,39712,39713,39714,39715,39716,39717,39718,39719,39720,39721,39722,39723,39724,39725,39726,39727,39728,39729,39730,39731,39732,39733,39734,39735,39736,39737,39738,39739,39740,39741,39742,39743,39744,39745,39746,39747,39748,39749,39750,39751,39752,39753,39754,39755,39756,39757,39758,39759,39760,39761,39762,39763,39764,39765,39766,39767,39768,39769,39770,39771,39772,39773,39774,39775,39776,39777,39778,39779,39780,39781,39782,39783,39784,39785,39786,39787,39788,39789,39790,39791,39792,39793,39794,39795,39796,39797,39798,39799,39800,39801,39802,39803,39804,39805,39806,39807,39808,39809,39810,39811,39812,39813,39814,39815,39816,39817,39818,39819,39820,39821,39822,39823,39824,39825,39826,39827,39828,39829,39830,39831,39832,39833,39834,39835,39836,39837,39838,39839,39840,39841,39842,39843,39844,39845,39846,39847,39848,39849,39850,39851,39852,39853,39854,39855,39856,39857,39858,39859,39860,39861,39862,39863,39864,39865,39866,39867,39868,39869,39870,39871,39872,39873,39874,39875,39876,39877,39878,39879,39880,39881,39882,39883,39884,39885,39886,39887,39888,39889,39890,39891,39892,39893,39894,39895,39896,39897,39898,39899,39900,39901,39902,39903,39904,39905,39906,39907,39908,39909,39910,39911,39912,39913,39914,39915,39916,39917,39918,39919,39920,39921,39922,39923,39924,39925,39926,39927,39928,39929,39930,39931,39932,39933,39934,39935,39936,39937,39938,39939,39940,39941,39942,39943,39944,39945,39946,39947,39948,39949,39950,39951,39952,39953,39954,39955,39956,39957,39958,39959,39960,39961,39962,39963,39964,39965,39966,39967,39968,39969,39970,39971,39972,39973,39974,39975,39976,39977,39978,39979,39980,39981,39982,39983,39984,39985,39986,39987,39988,39989,39990,39991,39992,39993,39994,39995,39996,39997,39998,39999,40000,40001,40002,40003,40004,40005,40006,40007,40008,40009,40010,40011,40012,40013,40014,40015,40016,40017,40018,40019,40020,40021,40022,40023,40024,40025,40026,40027,40028,40029,40030,40031,40032,40033,40034,40035,40036,40037,40038,40039,40040,40041,40042,40043,40044,40045,40046,40047,40048,40049,40050,40051,40052,40053,40054,40055,40056,40057,40058,40059,40060,40061,40062,40063,40064,40065,40066,40067,40068,40069,40070,40071,40072,40073,40074,40075,40076,40077,40078,40079,40080,40081,40082,40083,40084,40085,40086,40087,40088,40089,40090,40091,40092,40093,40094,40095,40096,40097,40098,40099,40100,40101,40102,40103,40104,40105,40106,40107,40108,40109,40110,40111,40112,40113,40114,40115,40116,40117,40118,40119,40120,40121,40122,40123,40124,40125,40126,40127,40128,40129,40130,40131,40132,40133,40134,40135,40136,40137,40138,40139,40140,40141,40142,40143,40144,40145,40146,40147,40148,40149,40150,40151,40152,40153,40154,40155,40156,40157,40158,40159,40160,40161,40162,40163,40164,40165,40166,40167,40168,40169,40170,40171,40172,40173,40174,40175,40176,40177,40178,40179,40180,40181,40182,40183,40184,40185,40186,40187,40188,40189,40190,40191,40192,40193,40194,40195,40196,40197,40198,40199,40200,40201,40202,40203,40204,40205,40206,40207,40208,40209,40210,40211,40212,40213,40214,40215,40216,40217,40218,40219,40220,40221,40222,40223,40224,40225,40226,40227,40228,40229,40230,40231,40232,40233,40234,40235,40236,40237,40238,40239,40240,40241,40242,40243,40244,40245,40246,40247,40248,40249,40250,40251,40252,40253,40254,40255,40256,40257,40258,40259,40260,40261,40262,40263,40264,40265,40266,40267,40268,40269,40270,40271,40272,40273,40274,40275,40276,40277,40278,40279,40280,40281,40282,40283,40284,40285,40286,40287,40288,40289,40290,40291,40292,40293,40294,40295,40296,40297,40298,40299,40300,40301,40302,40303,40304,40305,40306,40307,40308,40309,40310,40311,40312,40313,40314,40315,40316,40317,40318,40319,40320,40321,40322,40323,40324,40325,40326,40327,40328,40329,40330,40331,40332,40333,40334,40335,40336,40337,40338,40339,40340,40341,40342,40343,40344,40345,40346,40347,40348,40349,40350,40351,40352,40353,40354,40355,40356,40357,40358,40359,40360,40361,40362,40363,40364,40365,40366,40367,40368,40369,40370,40371,40372,40373,40374,40375,40376,40377,40378,40379,40380,40381,40382,40383,40384,40385,40386,40387,40388,40389,40390,40391,40392,40393,40394,40395,40396,40397,40398,40399,40400,40401,40402,40403,40404,40405,40406,40407,40408,40409,40410,40411,40412,40413,40414,40415,40416,40417,40418,40419,40420,40421,40422,40423,40424,40425,40426,40427,40428,40429,40430,40431,40432,40433,40434,40435,40436,40437,40438,40439,40440,40441,40442,40443,40444,40445,40446,40447,40448,40449,40450,40451,40452,40453,40454,40455,40456,40457,40458,40459,40460,40461,40462,40463,40464,40465,40466,40467,40468,40469,40470,40471,40472,40473,40474,40475,40476,40477,40478,40479,40480,40481,40482,40483,40484,40485,40486,40487,40488,40489,40490,40491,40492,40493,40494,40495,40496,40497,40498,40499,40500,40501,40502,40503,40504,40505,40506,40507,40508,40509,40510,40511,40512,40513,40514,40515,40516,40517,40518,40519,40520,40521,40522,40523,40524,40525,40526,40527,40528,40529,40530,40531,40532,40533,40534,40535,40536,40537,40538,40539,40540,40541,40542,40543,40544,40545,40546,40547,40548,40549,40550,40551,40552,40553,40554,40555,40556,40557,40558,40559,40560,40561,40562,40563,40564,40565,40566,40567,40568,40569,40570,40571,40572,40573,40574,40575,40576,40577,40578,40579,40580,40581,40582,40583,40584,40585,40586,40587,40588,40589,40590,40591,40592,40593,40594,40595,40596,40597,40598,40599,40600,40601,40602,40603,40604,40605,40606,40607,40608,40609,40610,40611,40612,40613,40614,40615,40616,40617,40618,40619,40620,40621,40622,40623,40624,40625,40626,40627,40628,40629,40630,40631,40632,40633,40634,40635,40636,40637,40638,40639,40640,40641,40642,40643,40644,40645,40646,40647,40648,40649,40650,40651,40652,40653,40654,40655,40656,40657,40658,40659,40660,40661,40662,40663,40664,40665,40666,40667,40668,40669,40670,40671,40672,40673,40674,40675,40676,40677,40678,40679,40680,40681,40682,40683,40684,40685,40686,40687,40688,40689,40690,40691,40692,40693,40694,40695,40696,40697,40698,40699,40700,40701,40702,40703,40704,40705,40706,40707,40708,40709,40710,40711,40712,40713,40714,40715,40716,40717,40718,40719,40720,40721,40722,40723,40724,40725,40726,40727,40728,40729,40730,40731,40732,40733,40734,40735,40736,40737,40738,40739,40740,40741,40742,40743,40744,40745,40746,40747,40748,40749,40750,40751,40752,40753,40754,40755,40756,40757,40758,40759,40760,40761,40762,40763,40764,40765,40766,40767,40768,40769,40770,40771,40772,40773,40774,40775,40776,40777,40778,40779,40780,40781,40782,40783,40784,40785,40786,40787,40788,40789,40790,40791,40792,40793,40794,40795,40796,40797,40798,40799,40800,40801,40802,40803,40804,40805,40806,40807,40808,40809,40810,40811,40812,40813,40814,40815,40816,40817,40818,40819,40820,40821,40822,40823,40824,40825,40826,40827,40828,40829,40830,40831,40832,40833,40834,40835,40836,40837,40838,40839,40840,40841,40842,40843,40844,40845,40846,40847,40848,40849,40850,40851,40852,40853,40854,40855,40856,40857,40858,40859,40860,40861,40862,40863,40864,40865,40866,40867,40868,40869,40870,40871,40872,40873,40874,40875,40876,40877,40878,40879,40880,40881,40882,40883,40884,40885,40886,40887,40888,40889,40890,40891,40892,40893,40894,40895,40896,40897,40898,40899,40900,40901,40902,40903,40904,40905,40906,40907,40908,40909,40910,40911,40912,40913,40914,40915,40916,40917,40918,40919,40920,40921,40922,40923,40924,40925,40926,40927,40928,40929,40930,40931,40932,40933,40934,40935,40936,40937,40938,40939,40940,40941,40942,40943,40960,40961,40962,40963,40964,40965,40966,40967,40968,40969,40970,40971,40972,40973,40974,40975,40976,40977,40978,40979,40980,40981,40982,40983,40984,40985,40986,40987,40988,40989,40990,40991,40992,40993,40994,40995,40996,40997,40998,40999,41000,41001,41002,41003,41004,41005,41006,41007,41008,41009,41010,41011,41012,41013,41014,41015,41016,41017,41018,41019,41020,41021,41022,41023,41024,41025,41026,41027,41028,41029,41030,41031,41032,41033,41034,41035,41036,41037,41038,41039,41040,41041,41042,41043,41044,41045,41046,41047,41048,41049,41050,41051,41052,41053,41054,41055,41056,41057,41058,41059,41060,41061,41062,41063,41064,41065,41066,41067,41068,41069,41070,41071,41072,41073,41074,41075,41076,41077,41078,41079,41080,41081,41082,41083,41084,41085,41086,41087,41088,41089,41090,41091,41092,41093,41094,41095,41096,41097,41098,41099,41100,41101,41102,41103,41104,41105,41106,41107,41108,41109,41110,41111,41112,41113,41114,41115,41116,41117,41118,41119,41120,41121,41122,41123,41124,41125,41126,41127,41128,41129,41130,41131,41132,41133,41134,41135,41136,41137,41138,41139,41140,41141,41142,41143,41144,41145,41146,41147,41148,41149,41150,41151,41152,41153,41154,41155,41156,41157,41158,41159,41160,41161,41162,41163,41164,41165,41166,41167,41168,41169,41170,41171,41172,41173,41174,41175,41176,41177,41178,41179,41180,41181,41182,41183,41184,41185,41186,41187,41188,41189,41190,41191,41192,41193,41194,41195,41196,41197,41198,41199,41200,41201,41202,41203,41204,41205,41206,41207,41208,41209,41210,41211,41212,41213,41214,41215,41216,41217,41218,41219,41220,41221,41222,41223,41224,41225,41226,41227,41228,41229,41230,41231,41232,41233,41234,41235,41236,41237,41238,41239,41240,41241,41242,41243,41244,41245,41246,41247,41248,41249,41250,41251,41252,41253,41254,41255,41256,41257,41258,41259,41260,41261,41262,41263,41264,41265,41266,41267,41268,41269,41270,41271,41272,41273,41274,41275,41276,41277,41278,41279,41280,41281,41282,41283,41284,41285,41286,41287,41288,41289,41290,41291,41292,41293,41294,41295,41296,41297,41298,41299,41300,41301,41302,41303,41304,41305,41306,41307,41308,41309,41310,41311,41312,41313,41314,41315,41316,41317,41318,41319,41320,41321,41322,41323,41324,41325,41326,41327,41328,41329,41330,41331,41332,41333,41334,41335,41336,41337,41338,41339,41340,41341,41342,41343,41344,41345,41346,41347,41348,41349,41350,41351,41352,41353,41354,41355,41356,41357,41358,41359,41360,41361,41362,41363,41364,41365,41366,41367,41368,41369,41370,41371,41372,41373,41374,41375,41376,41377,41378,41379,41380,41381,41382,41383,41384,41385,41386,41387,41388,41389,41390,41391,41392,41393,41394,41395,41396,41397,41398,41399,41400,41401,41402,41403,41404,41405,41406,41407,41408,41409,41410,41411,41412,41413,41414,41415,41416,41417,41418,41419,41420,41421,41422,41423,41424,41425,41426,41427,41428,41429,41430,41431,41432,41433,41434,41435,41436,41437,41438,41439,41440,41441,41442,41443,41444,41445,41446,41447,41448,41449,41450,41451,41452,41453,41454,41455,41456,41457,41458,41459,41460,41461,41462,41463,41464,41465,41466,41467,41468,41469,41470,41471,41472,41473,41474,41475,41476,41477,41478,41479,41480,41481,41482,41483,41484,41485,41486,41487,41488,41489,41490,41491,41492,41493,41494,41495,41496,41497,41498,41499,41500,41501,41502,41503,41504,41505,41506,41507,41508,41509,41510,41511,41512,41513,41514,41515,41516,41517,41518,41519,41520,41521,41522,41523,41524,41525,41526,41527,41528,41529,41530,41531,41532,41533,41534,41535,41536,41537,41538,41539,41540,41541,41542,41543,41544,41545,41546,41547,41548,41549,41550,41551,41552,41553,41554,41555,41556,41557,41558,41559,41560,41561,41562,41563,41564,41565,41566,41567,41568,41569,41570,41571,41572,41573,41574,41575,41576,41577,41578,41579,41580,41581,41582,41583,41584,41585,41586,41587,41588,41589,41590,41591,41592,41593,41594,41595,41596,41597,41598,41599,41600,41601,41602,41603,41604,41605,41606,41607,41608,41609,41610,41611,41612,41613,41614,41615,41616,41617,41618,41619,41620,41621,41622,41623,41624,41625,41626,41627,41628,41629,41630,41631,41632,41633,41634,41635,41636,41637,41638,41639,41640,41641,41642,41643,41644,41645,41646,41647,41648,41649,41650,41651,41652,41653,41654,41655,41656,41657,41658,41659,41660,41661,41662,41663,41664,41665,41666,41667,41668,41669,41670,41671,41672,41673,41674,41675,41676,41677,41678,41679,41680,41681,41682,41683,41684,41685,41686,41687,41688,41689,41690,41691,41692,41693,41694,41695,41696,41697,41698,41699,41700,41701,41702,41703,41704,41705,41706,41707,41708,41709,41710,41711,41712,41713,41714,41715,41716,41717,41718,41719,41720,41721,41722,41723,41724,41725,41726,41727,41728,41729,41730,41731,41732,41733,41734,41735,41736,41737,41738,41739,41740,41741,41742,41743,41744,41745,41746,41747,41748,41749,41750,41751,41752,41753,41754,41755,41756,41757,41758,41759,41760,41761,41762,41763,41764,41765,41766,41767,41768,41769,41770,41771,41772,41773,41774,41775,41776,41777,41778,41779,41780,41781,41782,41783,41784,41785,41786,41787,41788,41789,41790,41791,41792,41793,41794,41795,41796,41797,41798,41799,41800,41801,41802,41803,41804,41805,41806,41807,41808,41809,41810,41811,41812,41813,41814,41815,41816,41817,41818,41819,41820,41821,41822,41823,41824,41825,41826,41827,41828,41829,41830,41831,41832,41833,41834,41835,41836,41837,41838,41839,41840,41841,41842,41843,41844,41845,41846,41847,41848,41849,41850,41851,41852,41853,41854,41855,41856,41857,41858,41859,41860,41861,41862,41863,41864,41865,41866,41867,41868,41869,41870,41871,41872,41873,41874,41875,41876,41877,41878,41879,41880,41881,41882,41883,41884,41885,41886,41887,41888,41889,41890,41891,41892,41893,41894,41895,41896,41897,41898,41899,41900,41901,41902,41903,41904,41905,41906,41907,41908,41909,41910,41911,41912,41913,41914,41915,41916,41917,41918,41919,41920,41921,41922,41923,41924,41925,41926,41927,41928,41929,41930,41931,41932,41933,41934,41935,41936,41937,41938,41939,41940,41941,41942,41943,41944,41945,41946,41947,41948,41949,41950,41951,41952,41953,41954,41955,41956,41957,41958,41959,41960,41961,41962,41963,41964,41965,41966,41967,41968,41969,41970,41971,41972,41973,41974,41975,41976,41977,41978,41979,41980,41981,41982,41983,41984,41985,41986,41987,41988,41989,41990,41991,41992,41993,41994,41995,41996,41997,41998,41999,42000,42001,42002,42003,42004,42005,42006,42007,42008,42009,42010,42011,42012,42013,42014,42015,42016,42017,42018,42019,42020,42021,42022,42023,42024,42025,42026,42027,42028,42029,42030,42031,42032,42033,42034,42035,42036,42037,42038,42039,42040,42041,42042,42043,42044,42045,42046,42047,42048,42049,42050,42051,42052,42053,42054,42055,42056,42057,42058,42059,42060,42061,42062,42063,42064,42065,42066,42067,42068,42069,42070,42071,42072,42073,42074,42075,42076,42077,42078,42079,42080,42081,42082,42083,42084,42085,42086,42087,42088,42089,42090,42091,42092,42093,42094,42095,42096,42097,42098,42099,42100,42101,42102,42103,42104,42105,42106,42107,42108,42109,42110,42111,42112,42113,42114,42115,42116,42117,42118,42119,42120,42121,42122,42123,42124,42192,42193,42194,42195,42196,42197,42198,42199,42200,42201,42202,42203,42204,42205,42206,42207,42208,42209,42210,42211,42212,42213,42214,42215,42216,42217,42218,42219,42220,42221,42222,42223,42224,42225,42226,42227,42228,42229,42230,42231,42232,42233,42234,42235,42236,42237,42240,42241,42242,42243,42244,42245,42246,42247,42248,42249,42250,42251,42252,42253,42254,42255,42256,42257,42258,42259,42260,42261,42262,42263,42264,42265,42266,42267,42268,42269,42270,42271,42272,42273,42274,42275,42276,42277,42278,42279,42280,42281,42282,42283,42284,42285,42286,42287,42288,42289,42290,42291,42292,42293,42294,42295,42296,42297,42298,42299,42300,42301,42302,42303,42304,42305,42306,42307,42308,42309,42310,42311,42312,42313,42314,42315,42316,42317,42318,42319,42320,42321,42322,42323,42324,42325,42326,42327,42328,42329,42330,42331,42332,42333,42334,42335,42336,42337,42338,42339,42340,42341,42342,42343,42344,42345,42346,42347,42348,42349,42350,42351,42352,42353,42354,42355,42356,42357,42358,42359,42360,42361,42362,42363,42364,42365,42366,42367,42368,42369,42370,42371,42372,42373,42374,42375,42376,42377,42378,42379,42380,42381,42382,42383,42384,42385,42386,42387,42388,42389,42390,42391,42392,42393,42394,42395,42396,42397,42398,42399,42400,42401,42402,42403,42404,42405,42406,42407,42408,42409,42410,42411,42412,42413,42414,42415,42416,42417,42418,42419,42420,42421,42422,42423,42424,42425,42426,42427,42428,42429,42430,42431,42432,42433,42434,42435,42436,42437,42438,42439,42440,42441,42442,42443,42444,42445,42446,42447,42448,42449,42450,42451,42452,42453,42454,42455,42456,42457,42458,42459,42460,42461,42462,42463,42464,42465,42466,42467,42468,42469,42470,42471,42472,42473,42474,42475,42476,42477,42478,42479,42480,42481,42482,42483,42484,42485,42486,42487,42488,42489,42490,42491,42492,42493,42494,42495,42496,42497,42498,42499,42500,42501,42502,42503,42504,42505,42506,42507,42508,42512,42513,42514,42515,42516,42517,42518,42519,42520,42521,42522,42523,42524,42525,42526,42527,42538,42539,42560,42561,42562,42563,42564,42565,42566,42567,42568,42569,42570,42571,42572,42573,42574,42575,42576,42577,42578,42579,42580,42581,42582,42583,42584,42585,42586,42587,42588,42589,42590,42591,42592,42593,42594,42595,42596,42597,42598,42599,42600,42601,42602,42603,42604,42605,42606,42623,42624,42625,42626,42627,42628,42629,42630,42631,42632,42633,42634,42635,42636,42637,42638,42639,42640,42641,42642,42643,42644,42645,42646,42647,42648,42649,42650,42651,42652,42653,42656,42657,42658,42659,42660,42661,42662,42663,42664,42665,42666,42667,42668,42669,42670,42671,42672,42673,42674,42675,42676,42677,42678,42679,42680,42681,42682,42683,42684,42685,42686,42687,42688,42689,42690,42691,42692,42693,42694,42695,42696,42697,42698,42699,42700,42701,42702,42703,42704,42705,42706,42707,42708,42709,42710,42711,42712,42713,42714,42715,42716,42717,42718,42719,42720,42721,42722,42723,42724,42725,42726,42727,42728,42729,42730,42731,42732,42733,42734,42735,42775,42776,42777,42778,42779,42780,42781,42782,42783,42786,42787,42788,42789,42790,42791,42792,42793,42794,42795,42796,42797,42798,42799,42800,42801,42802,42803,42804,42805,42806,42807,42808,42809,42810,42811,42812,42813,42814,42815,42816,42817,42818,42819,42820,42821,42822,42823,42824,42825,42826,42827,42828,42829,42830,42831,42832,42833,42834,42835,42836,42837,42838,42839,42840,42841,42842,42843,42844,42845,42846,42847,42848,42849,42850,42851,42852,42853,42854,42855,42856,42857,42858,42859,42860,42861,42862,42863,42864,42865,42866,42867,42868,42869,42870,42871,42872,42873,42874,42875,42876,42877,42878,42879,42880,42881,42882,42883,42884,42885,42886,42887,42888,42891,42892,42893,42894,42895,42896,42897,42898,42899,42900,42901,42902,42903,42904,42905,42906,42907,42908,42909,42910,42911,42912,42913,42914,42915,42916,42917,42918,42919,42920,42921,42922,42923,42924,42925,42926,42927,42928,42929,42930,42931,42932,42933,42934,42935,42936,42937,42999,43000,43001,43002,43003,43004,43005,43006,43007,43008,43009,43011,43012,43013,43015,43016,43017,43018,43020,43021,43022,43023,43024,43025,43026,43027,43028,43029,43030,43031,43032,43033,43034,43035,43036,43037,43038,43039,43040,43041,43042,43072,43073,43074,43075,43076,43077,43078,43079,43080,43081,43082,43083,43084,43085,43086,43087,43088,43089,43090,43091,43092,43093,43094,43095,43096,43097,43098,43099,43100,43101,43102,43103,43104,43105,43106,43107,43108,43109,43110,43111,43112,43113,43114,43115,43116,43117,43118,43119,43120,43121,43122,43123,43138,43139,43140,43141,43142,43143,43144,43145,43146,43147,43148,43149,43150,43151,43152,43153,43154,43155,43156,43157,43158,43159,43160,43161,43162,43163,43164,43165,43166,43167,43168,43169,43170,43171,43172,43173,43174,43175,43176,43177,43178,43179,43180,43181,43182,43183,43184,43185,43186,43187,43250,43251,43252,43253,43254,43255,43259,43261,43262,43274,43275,43276,43277,43278,43279,43280,43281,43282,43283,43284,43285,43286,43287,43288,43289,43290,43291,43292,43293,43294,43295,43296,43297,43298,43299,43300,43301,43312,43313,43314,43315,43316,43317,43318,43319,43320,43321,43322,43323,43324,43325,43326,43327,43328,43329,43330,43331,43332,43333,43334,43360,43361,43362,43363,43364,43365,43366,43367,43368,43369,43370,43371,43372,43373,43374,43375,43376,43377,43378,43379,43380,43381,43382,43383,43384,43385,43386,43387,43388,43396,43397,43398,43399,43400,43401,43402,43403,43404,43405,43406,43407,43408,43409,43410,43411,43412,43413,43414,43415,43416,43417,43418,43419,43420,43421,43422,43423,43424,43425,43426,43427,43428,43429,43430,43431,43432,43433,43434,43435,43436,43437,43438,43439,43440,43441,43442,43471,43488,43489,43490,43491,43492,43494,43495,43496,43497,43498,43499,43500,43501,43502,43503,43514,43515,43516,43517,43518,43520,43521,43522,43523,43524,43525,43526,43527,43528,43529,43530,43531,43532,43533,43534,43535,43536,43537,43538,43539,43540,43541,43542,43543,43544,43545,43546,43547,43548,43549,43550,43551,43552,43553,43554,43555,43556,43557,43558,43559,43560,43584,43585,43586,43588,43589,43590,43591,43592,43593,43594,43595,43616,43617,43618,43619,43620,43621,43622,43623,43624,43625,43626,43627,43628,43629,43630,43631,43632,43633,43634,43635,43636,43637,43638,43642,43646,43647,43648,43649,43650,43651,43652,43653,43654,43655,43656,43657,43658,43659,43660,43661,43662,43663,43664,43665,43666,43667,43668,43669,43670,43671,43672,43673,43674,43675,43676,43677,43678,43679,43680,43681,43682,43683,43684,43685,43686,43687,43688,43689,43690,43691,43692,43693,43694,43695,43697,43701,43702,43705,43706,43707,43708,43709,43712,43714,43739,43740,43741,43744,43745,43746,43747,43748,43749,43750,43751,43752,43753,43754,43762,43763,43764,43777,43778,43779,43780,43781,43782,43785,43786,43787,43788,43789,43790,43793,43794,43795,43796,43797,43798,43808,43809,43810,43811,43812,43813,43814,43816,43817,43818,43819,43820,43821,43822,43824,43825,43826,43827,43828,43829,43830,43831,43832,43833,43834,43835,43836,43837,43838,43839,43840,43841,43842,43843,43844,43845,43846,43847,43848,43849,43850,43851,43852,43853,43854,43855,43856,43857,43858,43859,43860,43861,43862,43863,43864,43865,43866,43868,43869,43870,43871,43872,43873,43874,43875,43876,43877,43888,43889,43890,43891,43892,43893,43894,43895,43896,43897,43898,43899,43900,43901,43902,43903,43904,43905,43906,43907,43908,43909,43910,43911,43912,43913,43914,43915,43916,43917,43918,43919,43920,43921,43922,43923,43924,43925,43926,43927,43928,43929,43930,43931,43932,43933,43934,43935,43936,43937,43938,43939,43940,43941,43942,43943,43944,43945,43946,43947,43948,43949,43950,43951,43952,43953,43954,43955,43956,43957,43958,43959,43960,43961,43962,43963,43964,43965,43966,43967,43968,43969,43970,43971,43972,43973,43974,43975,43976,43977,43978,43979,43980,43981,43982,43983,43984,43985,43986,43987,43988,43989,43990,43991,43992,43993,43994,43995,43996,43997,43998,43999,44000,44001,44002,44032,44033,44034,44035,44036,44037,44038,44039,44040,44041,44042,44043,44044,44045,44046,44047,44048,44049,44050,44051,44052,44053,44054,44055,44056,44057,44058,44059,44060,44061,44062,44063,44064,44065,44066,44067,44068,44069,44070,44071,44072,44073,44074,44075,44076,44077,44078,44079,44080,44081,44082,44083,44084,44085,44086,44087,44088,44089,44090,44091,44092,44093,44094,44095,44096,44097,44098,44099,44100,44101,44102,44103,44104,44105,44106,44107,44108,44109,44110,44111,44112,44113,44114,44115,44116,44117,44118,44119,44120,44121,44122,44123,44124,44125,44126,44127,44128,44129,44130,44131,44132,44133,44134,44135,44136,44137,44138,44139,44140,44141,44142,44143,44144,44145,44146,44147,44148,44149,44150,44151,44152,44153,44154,44155,44156,44157,44158,44159,44160,44161,44162,44163,44164,44165,44166,44167,44168,44169,44170,44171,44172,44173,44174,44175,44176,44177,44178,44179,44180,44181,44182,44183,44184,44185,44186,44187,44188,44189,44190,44191,44192,44193,44194,44195,44196,44197,44198,44199,44200,44201,44202,44203,44204,44205,44206,44207,44208,44209,44210,44211,44212,44213,44214,44215,44216,44217,44218,44219,44220,44221,44222,44223,44224,44225,44226,44227,44228,44229,44230,44231,44232,44233,44234,44235,44236,44237,44238,44239,44240,44241,44242,44243,44244,44245,44246,44247,44248,44249,44250,44251,44252,44253,44254,44255,44256,44257,44258,44259,44260,44261,44262,44263,44264,44265,44266,44267,44268,44269,44270,44271,44272,44273,44274,44275,44276,44277,44278,44279,44280,44281,44282,44283,44284,44285,44286,44287,44288,44289,44290,44291,44292,44293,44294,44295,44296,44297,44298,44299,44300,44301,44302,44303,44304,44305,44306,44307,44308,44309,44310,44311,44312,44313,44314,44315,44316,44317,44318,44319,44320,44321,44322,44323,44324,44325,44326,44327,44328,44329,44330,44331,44332,44333,44334,44335,44336,44337,44338,44339,44340,44341,44342,44343,44344,44345,44346,44347,44348,44349,44350,44351,44352,44353,44354,44355,44356,44357,44358,44359,44360,44361,44362,44363,44364,44365,44366,44367,44368,44369,44370,44371,44372,44373,44374,44375,44376,44377,44378,44379,44380,44381,44382,44383,44384,44385,44386,44387,44388,44389,44390,44391,44392,44393,44394,44395,44396,44397,44398,44399,44400,44401,44402,44403,44404,44405,44406,44407,44408,44409,44410,44411,44412,44413,44414,44415,44416,44417,44418,44419,44420,44421,44422,44423,44424,44425,44426,44427,44428,44429,44430,44431,44432,44433,44434,44435,44436,44437,44438,44439,44440,44441,44442,44443,44444,44445,44446,44447,44448,44449,44450,44451,44452,44453,44454,44455,44456,44457,44458,44459,44460,44461,44462,44463,44464,44465,44466,44467,44468,44469,44470,44471,44472,44473,44474,44475,44476,44477,44478,44479,44480,44481,44482,44483,44484,44485,44486,44487,44488,44489,44490,44491,44492,44493,44494,44495,44496,44497,44498,44499,44500,44501,44502,44503,44504,44505,44506,44507,44508,44509,44510,44511,44512,44513,44514,44515,44516,44517,44518,44519,44520,44521,44522,44523,44524,44525,44526,44527,44528,44529,44530,44531,44532,44533,44534,44535,44536,44537,44538,44539,44540,44541,44542,44543,44544,44545,44546,44547,44548,44549,44550,44551,44552,44553,44554,44555,44556,44557,44558,44559,44560,44561,44562,44563,44564,44565,44566,44567,44568,44569,44570,44571,44572,44573,44574,44575,44576,44577,44578,44579,44580,44581,44582,44583,44584,44585,44586,44587,44588,44589,44590,44591,44592,44593,44594,44595,44596,44597,44598,44599,44600,44601,44602,44603,44604,44605,44606,44607,44608,44609,44610,44611,44612,44613,44614,44615,44616,44617,44618,44619,44620,44621,44622,44623,44624,44625,44626,44627,44628,44629,44630,44631,44632,44633,44634,44635,44636,44637,44638,44639,44640,44641,44642,44643,44644,44645,44646,44647,44648,44649,44650,44651,44652,44653,44654,44655,44656,44657,44658,44659,44660,44661,44662,44663,44664,44665,44666,44667,44668,44669,44670,44671,44672,44673,44674,44675,44676,44677,44678,44679,44680,44681,44682,44683,44684,44685,44686,44687,44688,44689,44690,44691,44692,44693,44694,44695,44696,44697,44698,44699,44700,44701,44702,44703,44704,44705,44706,44707,44708,44709,44710,44711,44712,44713,44714,44715,44716,44717,44718,44719,44720,44721,44722,44723,44724,44725,44726,44727,44728,44729,44730,44731,44732,44733,44734,44735,44736,44737,44738,44739,44740,44741,44742,44743,44744,44745,44746,44747,44748,44749,44750,44751,44752,44753,44754,44755,44756,44757,44758,44759,44760,44761,44762,44763,44764,44765,44766,44767,44768,44769,44770,44771,44772,44773,44774,44775,44776,44777,44778,44779,44780,44781,44782,44783,44784,44785,44786,44787,44788,44789,44790,44791,44792,44793,44794,44795,44796,44797,44798,44799,44800,44801,44802,44803,44804,44805,44806,44807,44808,44809,44810,44811,44812,44813,44814,44815,44816,44817,44818,44819,44820,44821,44822,44823,44824,44825,44826,44827,44828,44829,44830,44831,44832,44833,44834,44835,44836,44837,44838,44839,44840,44841,44842,44843,44844,44845,44846,44847,44848,44849,44850,44851,44852,44853,44854,44855,44856,44857,44858,44859,44860,44861,44862,44863,44864,44865,44866,44867,44868,44869,44870,44871,44872,44873,44874,44875,44876,44877,44878,44879,44880,44881,44882,44883,44884,44885,44886,44887,44888,44889,44890,44891,44892,44893,44894,44895,44896,44897,44898,44899,44900,44901,44902,44903,44904,44905,44906,44907,44908,44909,44910,44911,44912,44913,44914,44915,44916,44917,44918,44919,44920,44921,44922,44923,44924,44925,44926,44927,44928,44929,44930,44931,44932,44933,44934,44935,44936,44937,44938,44939,44940,44941,44942,44943,44944,44945,44946,44947,44948,44949,44950,44951,44952,44953,44954,44955,44956,44957,44958,44959,44960,44961,44962,44963,44964,44965,44966,44967,44968,44969,44970,44971,44972,44973,44974,44975,44976,44977,44978,44979,44980,44981,44982,44983,44984,44985,44986,44987,44988,44989,44990,44991,44992,44993,44994,44995,44996,44997,44998,44999,45000,45001,45002,45003,45004,45005,45006,45007,45008,45009,45010,45011,45012,45013,45014,45015,45016,45017,45018,45019,45020,45021,45022,45023,45024,45025,45026,45027,45028,45029,45030,45031,45032,45033,45034,45035,45036,45037,45038,45039,45040,45041,45042,45043,45044,45045,45046,45047,45048,45049,45050,45051,45052,45053,45054,45055,45056,45057,45058,45059,45060,45061,45062,45063,45064,45065,45066,45067,45068,45069,45070,45071,45072,45073,45074,45075,45076,45077,45078,45079,45080,45081,45082,45083,45084,45085,45086,45087,45088,45089,45090,45091,45092,45093,45094,45095,45096,45097,45098,45099,45100,45101,45102,45103,45104,45105,45106,45107,45108,45109,45110,45111,45112,45113,45114,45115,45116,45117,45118,45119,45120,45121,45122,45123,45124,45125,45126,45127,45128,45129,45130,45131,45132,45133,45134,45135,45136,45137,45138,45139,45140,45141,45142,45143,45144,45145,45146,45147,45148,45149,45150,45151,45152,45153,45154,45155,45156,45157,45158,45159,45160,45161,45162,45163,45164,45165,45166,45167,45168,45169,45170,45171,45172,45173,45174,45175,45176,45177,45178,45179,45180,45181,45182,45183,45184,45185,45186,45187,45188,45189,45190,45191,45192,45193,45194,45195,45196,45197,45198,45199,45200,45201,45202,45203,45204,45205,45206,45207,45208,45209,45210,45211,45212,45213,45214,45215,45216,45217,45218,45219,45220,45221,45222,45223,45224,45225,45226,45227,45228,45229,45230,45231,45232,45233,45234,45235,45236,45237,45238,45239,45240,45241,45242,45243,45244,45245,45246,45247,45248,45249,45250,45251,45252,45253,45254,45255,45256,45257,45258,45259,45260,45261,45262,45263,45264,45265,45266,45267,45268,45269,45270,45271,45272,45273,45274,45275,45276,45277,45278,45279,45280,45281,45282,45283,45284,45285,45286,45287,45288,45289,45290,45291,45292,45293,45294,45295,45296,45297,45298,45299,45300,45301,45302,45303,45304,45305,45306,45307,45308,45309,45310,45311,45312,45313,45314,45315,45316,45317,45318,45319,45320,45321,45322,45323,45324,45325,45326,45327,45328,45329,45330,45331,45332,45333,45334,45335,45336,45337,45338,45339,45340,45341,45342,45343,45344,45345,45346,45347,45348,45349,45350,45351,45352,45353,45354,45355,45356,45357,45358,45359,45360,45361,45362,45363,45364,45365,45366,45367,45368,45369,45370,45371,45372,45373,45374,45375,45376,45377,45378,45379,45380,45381,45382,45383,45384,45385,45386,45387,45388,45389,45390,45391,45392,45393,45394,45395,45396,45397,45398,45399,45400,45401,45402,45403,45404,45405,45406,45407,45408,45409,45410,45411,45412,45413,45414,45415,45416,45417,45418,45419,45420,45421,45422,45423,45424,45425,45426,45427,45428,45429,45430,45431,45432,45433,45434,45435,45436,45437,45438,45439,45440,45441,45442,45443,45444,45445,45446,45447,45448,45449,45450,45451,45452,45453,45454,45455,45456,45457,45458,45459,45460,45461,45462,45463,45464,45465,45466,45467,45468,45469,45470,45471,45472,45473,45474,45475,45476,45477,45478,45479,45480,45481,45482,45483,45484,45485,45486,45487,45488,45489,45490,45491,45492,45493,45494,45495,45496,45497,45498,45499,45500,45501,45502,45503,45504,45505,45506,45507,45508,45509,45510,45511,45512,45513,45514,45515,45516,45517,45518,45519,45520,45521,45522,45523,45524,45525,45526,45527,45528,45529,45530,45531,45532,45533,45534,45535,45536,45537,45538,45539,45540,45541,45542,45543,45544,45545,45546,45547,45548,45549,45550,45551,45552,45553,45554,45555,45556,45557,45558,45559,45560,45561,45562,45563,45564,45565,45566,45567,45568,45569,45570,45571,45572,45573,45574,45575,45576,45577,45578,45579,45580,45581,45582,45583,45584,45585,45586,45587,45588,45589,45590,45591,45592,45593,45594,45595,45596,45597,45598,45599,45600,45601,45602,45603,45604,45605,45606,45607,45608,45609,45610,45611,45612,45613,45614,45615,45616,45617,45618,45619,45620,45621,45622,45623,45624,45625,45626,45627,45628,45629,45630,45631,45632,45633,45634,45635,45636,45637,45638,45639,45640,45641,45642,45643,45644,45645,45646,45647,45648,45649,45650,45651,45652,45653,45654,45655,45656,45657,45658,45659,45660,45661,45662,45663,45664,45665,45666,45667,45668,45669,45670,45671,45672,45673,45674,45675,45676,45677,45678,45679,45680,45681,45682,45683,45684,45685,45686,45687,45688,45689,45690,45691,45692,45693,45694,45695,45696,45697,45698,45699,45700,45701,45702,45703,45704,45705,45706,45707,45708,45709,45710,45711,45712,45713,45714,45715,45716,45717,45718,45719,45720,45721,45722,45723,45724,45725,45726,45727,45728,45729,45730,45731,45732,45733,45734,45735,45736,45737,45738,45739,45740,45741,45742,45743,45744,45745,45746,45747,45748,45749,45750,45751,45752,45753,45754,45755,45756,45757,45758,45759,45760,45761,45762,45763,45764,45765,45766,45767,45768,45769,45770,45771,45772,45773,45774,45775,45776,45777,45778,45779,45780,45781,45782,45783,45784,45785,45786,45787,45788,45789,45790,45791,45792,45793,45794,45795,45796,45797,45798,45799,45800,45801,45802,45803,45804,45805,45806,45807,45808,45809,45810,45811,45812,45813,45814,45815,45816,45817,45818,45819,45820,45821,45822,45823,45824,45825,45826,45827,45828,45829,45830,45831,45832,45833,45834,45835,45836,45837,45838,45839,45840,45841,45842,45843,45844,45845,45846,45847,45848,45849,45850,45851,45852,45853,45854,45855,45856,45857,45858,45859,45860,45861,45862,45863,45864,45865,45866,45867,45868,45869,45870,45871,45872,45873,45874,45875,45876,45877,45878,45879,45880,45881,45882,45883,45884,45885,45886,45887,45888,45889,45890,45891,45892,45893,45894,45895,45896,45897,45898,45899,45900,45901,45902,45903,45904,45905,45906,45907,45908,45909,45910,45911,45912,45913,45914,45915,45916,45917,45918,45919,45920,45921,45922,45923,45924,45925,45926,45927,45928,45929,45930,45931,45932,45933,45934,45935,45936,45937,45938,45939,45940,45941,45942,45943,45944,45945,45946,45947,45948,45949,45950,45951,45952,45953,45954,45955,45956,45957,45958,45959,45960,45961,45962,45963,45964,45965,45966,45967,45968,45969,45970,45971,45972,45973,45974,45975,45976,45977,45978,45979,45980,45981,45982,45983,45984,45985,45986,45987,45988,45989,45990,45991,45992,45993,45994,45995,45996,45997,45998,45999,46000,46001,46002,46003,46004,46005,46006,46007,46008,46009,46010,46011,46012,46013,46014,46015,46016,46017,46018,46019,46020,46021,46022,46023,46024,46025,46026,46027,46028,46029,46030,46031,46032,46033,46034,46035,46036,46037,46038,46039,46040,46041,46042,46043,46044,46045,46046,46047,46048,46049,46050,46051,46052,46053,46054,46055,46056,46057,46058,46059,46060,46061,46062,46063,46064,46065,46066,46067,46068,46069,46070,46071,46072,46073,46074,46075,46076,46077,46078,46079,46080,46081,46082,46083,46084,46085,46086,46087,46088,46089,46090,46091,46092,46093,46094,46095,46096,46097,46098,46099,46100,46101,46102,46103,46104,46105,46106,46107,46108,46109,46110,46111,46112,46113,46114,46115,46116,46117,46118,46119,46120,46121,46122,46123,46124,46125,46126,46127,46128,46129,46130,46131,46132,46133,46134,46135,46136,46137,46138,46139,46140,46141,46142,46143,46144,46145,46146,46147,46148,46149,46150,46151,46152,46153,46154,46155,46156,46157,46158,46159,46160,46161,46162,46163,46164,46165,46166,46167,46168,46169,46170,46171,46172,46173,46174,46175,46176,46177,46178,46179,46180,46181,46182,46183,46184,46185,46186,46187,46188,46189,46190,46191,46192,46193,46194,46195,46196,46197,46198,46199,46200,46201,46202,46203,46204,46205,46206,46207,46208,46209,46210,46211,46212,46213,46214,46215,46216,46217,46218,46219,46220,46221,46222,46223,46224,46225,46226,46227,46228,46229,46230,46231,46232,46233,46234,46235,46236,46237,46238,46239,46240,46241,46242,46243,46244,46245,46246,46247,46248,46249,46250,46251,46252,46253,46254,46255,46256,46257,46258,46259,46260,46261,46262,46263,46264,46265,46266,46267,46268,46269,46270,46271,46272,46273,46274,46275,46276,46277,46278,46279,46280,46281,46282,46283,46284,46285,46286,46287,46288,46289,46290,46291,46292,46293,46294,46295,46296,46297,46298,46299,46300,46301,46302,46303,46304,46305,46306,46307,46308,46309,46310,46311,46312,46313,46314,46315,46316,46317,46318,46319,46320,46321,46322,46323,46324,46325,46326,46327,46328,46329,46330,46331,46332,46333,46334,46335,46336,46337,46338,46339,46340,46341,46342,46343,46344,46345,46346,46347,46348,46349,46350,46351,46352,46353,46354,46355,46356,46357,46358,46359,46360,46361,46362,46363,46364,46365,46366,46367,46368,46369,46370,46371,46372,46373,46374,46375,46376,46377,46378,46379,46380,46381,46382,46383,46384,46385,46386,46387,46388,46389,46390,46391,46392,46393,46394,46395,46396,46397,46398,46399,46400,46401,46402,46403,46404,46405,46406,46407,46408,46409,46410,46411,46412,46413,46414,46415,46416,46417,46418,46419,46420,46421,46422,46423,46424,46425,46426,46427,46428,46429,46430,46431,46432,46433,46434,46435,46436,46437,46438,46439,46440,46441,46442,46443,46444,46445,46446,46447,46448,46449,46450,46451,46452,46453,46454,46455,46456,46457,46458,46459,46460,46461,46462,46463,46464,46465,46466,46467,46468,46469,46470,46471,46472,46473,46474,46475,46476,46477,46478,46479,46480,46481,46482,46483,46484,46485,46486,46487,46488,46489,46490,46491,46492,46493,46494,46495,46496,46497,46498,46499,46500,46501,46502,46503,46504,46505,46506,46507,46508,46509,46510,46511,46512,46513,46514,46515,46516,46517,46518,46519,46520,46521,46522,46523,46524,46525,46526,46527,46528,46529,46530,46531,46532,46533,46534,46535,46536,46537,46538,46539,46540,46541,46542,46543,46544,46545,46546,46547,46548,46549,46550,46551,46552,46553,46554,46555,46556,46557,46558,46559,46560,46561,46562,46563,46564,46565,46566,46567,46568,46569,46570,46571,46572,46573,46574,46575,46576,46577,46578,46579,46580,46581,46582,46583,46584,46585,46586,46587,46588,46589,46590,46591,46592,46593,46594,46595,46596,46597,46598,46599,46600,46601,46602,46603,46604,46605,46606,46607,46608,46609,46610,46611,46612,46613,46614,46615,46616,46617,46618,46619,46620,46621,46622,46623,46624,46625,46626,46627,46628,46629,46630,46631,46632,46633,46634,46635,46636,46637,46638,46639,46640,46641,46642,46643,46644,46645,46646,46647,46648,46649,46650,46651,46652,46653,46654,46655,46656,46657,46658,46659,46660,46661,46662,46663,46664,46665,46666,46667,46668,46669,46670,46671,46672,46673,46674,46675,46676,46677,46678,46679,46680,46681,46682,46683,46684,46685,46686,46687,46688,46689,46690,46691,46692,46693,46694,46695,46696,46697,46698,46699,46700,46701,46702,46703,46704,46705,46706,46707,46708,46709,46710,46711,46712,46713,46714,46715,46716,46717,46718,46719,46720,46721,46722,46723,46724,46725,46726,46727,46728,46729,46730,46731,46732,46733,46734,46735,46736,46737,46738,46739,46740,46741,46742,46743,46744,46745,46746,46747,46748,46749,46750,46751,46752,46753,46754,46755,46756,46757,46758,46759,46760,46761,46762,46763,46764,46765,46766,46767,46768,46769,46770,46771,46772,46773,46774,46775,46776,46777,46778,46779,46780,46781,46782,46783,46784,46785,46786,46787,46788,46789,46790,46791,46792,46793,46794,46795,46796,46797,46798,46799,46800,46801,46802,46803,46804,46805,46806,46807,46808,46809,46810,46811,46812,46813,46814,46815,46816,46817,46818,46819,46820,46821,46822,46823,46824,46825,46826,46827,46828,46829,46830,46831,46832,46833,46834,46835,46836,46837,46838,46839,46840,46841,46842,46843,46844,46845,46846,46847,46848,46849,46850,46851,46852,46853,46854,46855,46856,46857,46858,46859,46860,46861,46862,46863,46864,46865,46866,46867,46868,46869,46870,46871,46872,46873,46874,46875,46876,46877,46878,46879,46880,46881,46882,46883,46884,46885,46886,46887,46888,46889,46890,46891,46892,46893,46894,46895,46896,46897,46898,46899,46900,46901,46902,46903,46904,46905,46906,46907,46908,46909,46910,46911,46912,46913,46914,46915,46916,46917,46918,46919,46920,46921,46922,46923,46924,46925,46926,46927,46928,46929,46930,46931,46932,46933,46934,46935,46936,46937,46938,46939,46940,46941,46942,46943,46944,46945,46946,46947,46948,46949,46950,46951,46952,46953,46954,46955,46956,46957,46958,46959,46960,46961,46962,46963,46964,46965,46966,46967,46968,46969,46970,46971,46972,46973,46974,46975,46976,46977,46978,46979,46980,46981,46982,46983,46984,46985,46986,46987,46988,46989,46990,46991,46992,46993,46994,46995,46996,46997,46998,46999,47000,47001,47002,47003,47004,47005,47006,47007,47008,47009,47010,47011,47012,47013,47014,47015,47016,47017,47018,47019,47020,47021,47022,47023,47024,47025,47026,47027,47028,47029,47030,47031,47032,47033,47034,47035,47036,47037,47038,47039,47040,47041,47042,47043,47044,47045,47046,47047,47048,47049,47050,47051,47052,47053,47054,47055,47056,47057,47058,47059,47060,47061,47062,47063,47064,47065,47066,47067,47068,47069,47070,47071,47072,47073,47074,47075,47076,47077,47078,47079,47080,47081,47082,47083,47084,47085,47086,47087,47088,47089,47090,47091,47092,47093,47094,47095,47096,47097,47098,47099,47100,47101,47102,47103,47104,47105,47106,47107,47108,47109,47110,47111,47112,47113,47114,47115,47116,47117,47118,47119,47120,47121,47122,47123,47124,47125,47126,47127,47128,47129,47130,47131,47132,47133,47134,47135,47136,47137,47138,47139,47140,47141,47142,47143,47144,47145,47146,47147,47148,47149,47150,47151,47152,47153,47154,47155,47156,47157,47158,47159,47160,47161,47162,47163,47164,47165,47166,47167,47168,47169,47170,47171,47172,47173,47174,47175,47176,47177,47178,47179,47180,47181,47182,47183,47184,47185,47186,47187,47188,47189,47190,47191,47192,47193,47194,47195,47196,47197,47198,47199,47200,47201,47202,47203,47204,47205,47206,47207,47208,47209,47210,47211,47212,47213,47214,47215,47216,47217,47218,47219,47220,47221,47222,47223,47224,47225,47226,47227,47228,47229,47230,47231,47232,47233,47234,47235,47236,47237,47238,47239,47240,47241,47242,47243,47244,47245,47246,47247,47248,47249,47250,47251,47252,47253,47254,47255,47256,47257,47258,47259,47260,47261,47262,47263,47264,47265,47266,47267,47268,47269,47270,47271,47272,47273,47274,47275,47276,47277,47278,47279,47280,47281,47282,47283,47284,47285,47286,47287,47288,47289,47290,47291,47292,47293,47294,47295,47296,47297,47298,47299,47300,47301,47302,47303,47304,47305,47306,47307,47308,47309,47310,47311,47312,47313,47314,47315,47316,47317,47318,47319,47320,47321,47322,47323,47324,47325,47326,47327,47328,47329,47330,47331,47332,47333,47334,47335,47336,47337,47338,47339,47340,47341,47342,47343,47344,47345,47346,47347,47348,47349,47350,47351,47352,47353,47354,47355,47356,47357,47358,47359,47360,47361,47362,47363,47364,47365,47366,47367,47368,47369,47370,47371,47372,47373,47374,47375,47376,47377,47378,47379,47380,47381,47382,47383,47384,47385,47386,47387,47388,47389,47390,47391,47392,47393,47394,47395,47396,47397,47398,47399,47400,47401,47402,47403,47404,47405,47406,47407,47408,47409,47410,47411,47412,47413,47414,47415,47416,47417,47418,47419,47420,47421,47422,47423,47424,47425,47426,47427,47428,47429,47430,47431,47432,47433,47434,47435,47436,47437,47438,47439,47440,47441,47442,47443,47444,47445,47446,47447,47448,47449,47450,47451,47452,47453,47454,47455,47456,47457,47458,47459,47460,47461,47462,47463,47464,47465,47466,47467,47468,47469,47470,47471,47472,47473,47474,47475,47476,47477,47478,47479,47480,47481,47482,47483,47484,47485,47486,47487,47488,47489,47490,47491,47492,47493,47494,47495,47496,47497,47498,47499,47500,47501,47502,47503,47504,47505,47506,47507,47508,47509,47510,47511,47512,47513,47514,47515,47516,47517,47518,47519,47520,47521,47522,47523,47524,47525,47526,47527,47528,47529,47530,47531,47532,47533,47534,47535,47536,47537,47538,47539,47540,47541,47542,47543,47544,47545,47546,47547,47548,47549,47550,47551,47552,47553,47554,47555,47556,47557,47558,47559,47560,47561,47562,47563,47564,47565,47566,47567,47568,47569,47570,47571,47572,47573,47574,47575,47576,47577,47578,47579,47580,47581,47582,47583,47584,47585,47586,47587,47588,47589,47590,47591,47592,47593,47594,47595,47596,47597,47598,47599,47600,47601,47602,47603,47604,47605,47606,47607,47608,47609,47610,47611,47612,47613,47614,47615,47616,47617,47618,47619,47620,47621,47622,47623,47624,47625,47626,47627,47628,47629,47630,47631,47632,47633,47634,47635,47636,47637,47638,47639,47640,47641,47642,47643,47644,47645,47646,47647,47648,47649,47650,47651,47652,47653,47654,47655,47656,47657,47658,47659,47660,47661,47662,47663,47664,47665,47666,47667,47668,47669,47670,47671,47672,47673,47674,47675,47676,47677,47678,47679,47680,47681,47682,47683,47684,47685,47686,47687,47688,47689,47690,47691,47692,47693,47694,47695,47696,47697,47698,47699,47700,47701,47702,47703,47704,47705,47706,47707,47708,47709,47710,47711,47712,47713,47714,47715,47716,47717,47718,47719,47720,47721,47722,47723,47724,47725,47726,47727,47728,47729,47730,47731,47732,47733,47734,47735,47736,47737,47738,47739,47740,47741,47742,47743,47744,47745,47746,47747,47748,47749,47750,47751,47752,47753,47754,47755,47756,47757,47758,47759,47760,47761,47762,47763,47764,47765,47766,47767,47768,47769,47770,47771,47772,47773,47774,47775,47776,47777,47778,47779,47780,47781,47782,47783,47784,47785,47786,47787,47788,47789,47790,47791,47792,47793,47794,47795,47796,47797,47798,47799,47800,47801,47802,47803,47804,47805,47806,47807,47808,47809,47810,47811,47812,47813,47814,47815,47816,47817,47818,47819,47820,47821,47822,47823,47824,47825,47826,47827,47828,47829,47830,47831,47832,47833,47834,47835,47836,47837,47838,47839,47840,47841,47842,47843,47844,47845,47846,47847,47848,47849,47850,47851,47852,47853,47854,47855,47856,47857,47858,47859,47860,47861,47862,47863,47864,47865,47866,47867,47868,47869,47870,47871,47872,47873,47874,47875,47876,47877,47878,47879,47880,47881,47882,47883,47884,47885,47886,47887,47888,47889,47890,47891,47892,47893,47894,47895,47896,47897,47898,47899,47900,47901,47902,47903,47904,47905,47906,47907,47908,47909,47910,47911,47912,47913,47914,47915,47916,47917,47918,47919,47920,47921,47922,47923,47924,47925,47926,47927,47928,47929,47930,47931,47932,47933,47934,47935,47936,47937,47938,47939,47940,47941,47942,47943,47944,47945,47946,47947,47948,47949,47950,47951,47952,47953,47954,47955,47956,47957,47958,47959,47960,47961,47962,47963,47964,47965,47966,47967,47968,47969,47970,47971,47972,47973,47974,47975,47976,47977,47978,47979,47980,47981,47982,47983,47984,47985,47986,47987,47988,47989,47990,47991,47992,47993,47994,47995,47996,47997,47998,47999,48000,48001,48002,48003,48004,48005,48006,48007,48008,48009,48010,48011,48012,48013,48014,48015,48016,48017,48018,48019,48020,48021,48022,48023,48024,48025,48026,48027,48028,48029,48030,48031,48032,48033,48034,48035,48036,48037,48038,48039,48040,48041,48042,48043,48044,48045,48046,48047,48048,48049,48050,48051,48052,48053,48054,48055,48056,48057,48058,48059,48060,48061,48062,48063,48064,48065,48066,48067,48068,48069,48070,48071,48072,48073,48074,48075,48076,48077,48078,48079,48080,48081,48082,48083,48084,48085,48086,48087,48088,48089,48090,48091,48092,48093,48094,48095,48096,48097,48098,48099,48100,48101,48102,48103,48104,48105,48106,48107,48108,48109,48110,48111,48112,48113,48114,48115,48116,48117,48118,48119,48120,48121,48122,48123,48124,48125,48126,48127,48128,48129,48130,48131,48132,48133,48134,48135,48136,48137,48138,48139,48140,48141,48142,48143,48144,48145,48146,48147,48148,48149,48150,48151,48152,48153,48154,48155,48156,48157,48158,48159,48160,48161,48162,48163,48164,48165,48166,48167,48168,48169,48170,48171,48172,48173,48174,48175,48176,48177,48178,48179,48180,48181,48182,48183,48184,48185,48186,48187,48188,48189,48190,48191,48192,48193,48194,48195,48196,48197,48198,48199,48200,48201,48202,48203,48204,48205,48206,48207,48208,48209,48210,48211,48212,48213,48214,48215,48216,48217,48218,48219,48220,48221,48222,48223,48224,48225,48226,48227,48228,48229,48230,48231,48232,48233,48234,48235,48236,48237,48238,48239,48240,48241,48242,48243,48244,48245,48246,48247,48248,48249,48250,48251,48252,48253,48254,48255,48256,48257,48258,48259,48260,48261,48262,48263,48264,48265,48266,48267,48268,48269,48270,48271,48272,48273,48274,48275,48276,48277,48278,48279,48280,48281,48282,48283,48284,48285,48286,48287,48288,48289,48290,48291,48292,48293,48294,48295,48296,48297,48298,48299,48300,48301,48302,48303,48304,48305,48306,48307,48308,48309,48310,48311,48312,48313,48314,48315,48316,48317,48318,48319,48320,48321,48322,48323,48324,48325,48326,48327,48328,48329,48330,48331,48332,48333,48334,48335,48336,48337,48338,48339,48340,48341,48342,48343,48344,48345,48346,48347,48348,48349,48350,48351,48352,48353,48354,48355,48356,48357,48358,48359,48360,48361,48362,48363,48364,48365,48366,48367,48368,48369,48370,48371,48372,48373,48374,48375,48376,48377,48378,48379,48380,48381,48382,48383,48384,48385,48386,48387,48388,48389,48390,48391,48392,48393,48394,48395,48396,48397,48398,48399,48400,48401,48402,48403,48404,48405,48406,48407,48408,48409,48410,48411,48412,48413,48414,48415,48416,48417,48418,48419,48420,48421,48422,48423,48424,48425,48426,48427,48428,48429,48430,48431,48432,48433,48434,48435,48436,48437,48438,48439,48440,48441,48442,48443,48444,48445,48446,48447,48448,48449,48450,48451,48452,48453,48454,48455,48456,48457,48458,48459,48460,48461,48462,48463,48464,48465,48466,48467,48468,48469,48470,48471,48472,48473,48474,48475,48476,48477,48478,48479,48480,48481,48482,48483,48484,48485,48486,48487,48488,48489,48490,48491,48492,48493,48494,48495,48496,48497,48498,48499,48500,48501,48502,48503,48504,48505,48506,48507,48508,48509,48510,48511,48512,48513,48514,48515,48516,48517,48518,48519,48520,48521,48522,48523,48524,48525,48526,48527,48528,48529,48530,48531,48532,48533,48534,48535,48536,48537,48538,48539,48540,48541,48542,48543,48544,48545,48546,48547,48548,48549,48550,48551,48552,48553,48554,48555,48556,48557,48558,48559,48560,48561,48562,48563,48564,48565,48566,48567,48568,48569,48570,48571,48572,48573,48574,48575,48576,48577,48578,48579,48580,48581,48582,48583,48584,48585,48586,48587,48588,48589,48590,48591,48592,48593,48594,48595,48596,48597,48598,48599,48600,48601,48602,48603,48604,48605,48606,48607,48608,48609,48610,48611,48612,48613,48614,48615,48616,48617,48618,48619,48620,48621,48622,48623,48624,48625,48626,48627,48628,48629,48630,48631,48632,48633,48634,48635,48636,48637,48638,48639,48640,48641,48642,48643,48644,48645,48646,48647,48648,48649,48650,48651,48652,48653,48654,48655,48656,48657,48658,48659,48660,48661,48662,48663,48664,48665,48666,48667,48668,48669,48670,48671,48672,48673,48674,48675,48676,48677,48678,48679,48680,48681,48682,48683,48684,48685,48686,48687,48688,48689,48690,48691,48692,48693,48694,48695,48696,48697,48698,48699,48700,48701,48702,48703,48704,48705,48706,48707,48708,48709,48710,48711,48712,48713,48714,48715,48716,48717,48718,48719,48720,48721,48722,48723,48724,48725,48726,48727,48728,48729,48730,48731,48732,48733,48734,48735,48736,48737,48738,48739,48740,48741,48742,48743,48744,48745,48746,48747,48748,48749,48750,48751,48752,48753,48754,48755,48756,48757,48758,48759,48760,48761,48762,48763,48764,48765,48766,48767,48768,48769,48770,48771,48772,48773,48774,48775,48776,48777,48778,48779,48780,48781,48782,48783,48784,48785,48786,48787,48788,48789,48790,48791,48792,48793,48794,48795,48796,48797,48798,48799,48800,48801,48802,48803,48804,48805,48806,48807,48808,48809,48810,48811,48812,48813,48814,48815,48816,48817,48818,48819,48820,48821,48822,48823,48824,48825,48826,48827,48828,48829,48830,48831,48832,48833,48834,48835,48836,48837,48838,48839,48840,48841,48842,48843,48844,48845,48846,48847,48848,48849,48850,48851,48852,48853,48854,48855,48856,48857,48858,48859,48860,48861,48862,48863,48864,48865,48866,48867,48868,48869,48870,48871,48872,48873,48874,48875,48876,48877,48878,48879,48880,48881,48882,48883,48884,48885,48886,48887,48888,48889,48890,48891,48892,48893,48894,48895,48896,48897,48898,48899,48900,48901,48902,48903,48904,48905,48906,48907,48908,48909,48910,48911,48912,48913,48914,48915,48916,48917,48918,48919,48920,48921,48922,48923,48924,48925,48926,48927,48928,48929,48930,48931,48932,48933,48934,48935,48936,48937,48938,48939,48940,48941,48942,48943,48944,48945,48946,48947,48948,48949,48950,48951,48952,48953,48954,48955,48956,48957,48958,48959,48960,48961,48962,48963,48964,48965,48966,48967,48968,48969,48970,48971,48972,48973,48974,48975,48976,48977,48978,48979,48980,48981,48982,48983,48984,48985,48986,48987,48988,48989,48990,48991,48992,48993,48994,48995,48996,48997,48998,48999,49000,49001,49002,49003,49004,49005,49006,49007,49008,49009,49010,49011,49012,49013,49014,49015,49016,49017,49018,49019,49020,49021,49022,49023,49024,49025,49026,49027,49028,49029,49030,49031,49032,49033,49034,49035,49036,49037,49038,49039,49040,49041,49042,49043,49044,49045,49046,49047,49048,49049,49050,49051,49052,49053,49054,49055,49056,49057,49058,49059,49060,49061,49062,49063,49064,49065,49066,49067,49068,49069,49070,49071,49072,49073,49074,49075,49076,49077,49078,49079,49080,49081,49082,49083,49084,49085,49086,49087,49088,49089,49090,49091,49092,49093,49094,49095,49096,49097,49098,49099,49100,49101,49102,49103,49104,49105,49106,49107,49108,49109,49110,49111,49112,49113,49114,49115,49116,49117,49118,49119,49120,49121,49122,49123,49124,49125,49126,49127,49128,49129,49130,49131,49132,49133,49134,49135,49136,49137,49138,49139,49140,49141,49142,49143,49144,49145,49146,49147,49148,49149,49150,49151,49152,49153,49154,49155,49156,49157,49158,49159,49160,49161,49162,49163,49164,49165,49166,49167,49168,49169,49170,49171,49172,49173,49174,49175,49176,49177,49178,49179,49180,49181,49182,49183,49184,49185,49186,49187,49188,49189,49190,49191,49192,49193,49194,49195,49196,49197,49198,49199,49200,49201,49202,49203,49204,49205,49206,49207,49208,49209,49210,49211,49212,49213,49214,49215,49216,49217,49218,49219,49220,49221,49222,49223,49224,49225,49226,49227,49228,49229,49230,49231,49232,49233,49234,49235,49236,49237,49238,49239,49240,49241,49242,49243,49244,49245,49246,49247,49248,49249,49250,49251,49252,49253,49254,49255,49256,49257,49258,49259,49260,49261,49262,49263,49264,49265,49266,49267,49268,49269,49270,49271,49272,49273,49274,49275,49276,49277,49278,49279,49280,49281,49282,49283,49284,49285,49286,49287,49288,49289,49290,49291,49292,49293,49294,49295,49296,49297,49298,49299,49300,49301,49302,49303,49304,49305,49306,49307,49308,49309,49310,49311,49312,49313,49314,49315,49316,49317,49318,49319,49320,49321,49322,49323,49324,49325,49326,49327,49328,49329,49330,49331,49332,49333,49334,49335,49336,49337,49338,49339,49340,49341,49342,49343,49344,49345,49346,49347,49348,49349,49350,49351,49352,49353,49354,49355,49356,49357,49358,49359,49360,49361,49362,49363,49364,49365,49366,49367,49368,49369,49370,49371,49372,49373,49374,49375,49376,49377,49378,49379,49380,49381,49382,49383,49384,49385,49386,49387,49388,49389,49390,49391,49392,49393,49394,49395,49396,49397,49398,49399,49400,49401,49402,49403,49404,49405,49406,49407,49408,49409,49410,49411,49412,49413,49414,49415,49416,49417,49418,49419,49420,49421,49422,49423,49424,49425,49426,49427,49428,49429,49430,49431,49432,49433,49434,49435,49436,49437,49438,49439,49440,49441,49442,49443,49444,49445,49446,49447,49448,49449,49450,49451,49452,49453,49454,49455,49456,49457,49458,49459,49460,49461,49462,49463,49464,49465,49466,49467,49468,49469,49470,49471,49472,49473,49474,49475,49476,49477,49478,49479,49480,49481,49482,49483,49484,49485,49486,49487,49488,49489,49490,49491,49492,49493,49494,49495,49496,49497,49498,49499,49500,49501,49502,49503,49504,49505,49506,49507,49508,49509,49510,49511,49512,49513,49514,49515,49516,49517,49518,49519,49520,49521,49522,49523,49524,49525,49526,49527,49528,49529,49530,49531,49532,49533,49534,49535,49536,49537,49538,49539,49540,49541,49542,49543,49544,49545,49546,49547,49548,49549,49550,49551,49552,49553,49554,49555,49556,49557,49558,49559,49560,49561,49562,49563,49564,49565,49566,49567,49568,49569,49570,49571,49572,49573,49574,49575,49576,49577,49578,49579,49580,49581,49582,49583,49584,49585,49586,49587,49588,49589,49590,49591,49592,49593,49594,49595,49596,49597,49598,49599,49600,49601,49602,49603,49604,49605,49606,49607,49608,49609,49610,49611,49612,49613,49614,49615,49616,49617,49618,49619,49620,49621,49622,49623,49624,49625,49626,49627,49628,49629,49630,49631,49632,49633,49634,49635,49636,49637,49638,49639,49640,49641,49642,49643,49644,49645,49646,49647,49648,49649,49650,49651,49652,49653,49654,49655,49656,49657,49658,49659,49660,49661,49662,49663,49664,49665,49666,49667,49668,49669,49670,49671,49672,49673,49674,49675,49676,49677,49678,49679,49680,49681,49682,49683,49684,49685,49686,49687,49688,49689,49690,49691,49692,49693,49694,49695,49696,49697,49698,49699,49700,49701,49702,49703,49704,49705,49706,49707,49708,49709,49710,49711,49712,49713,49714,49715,49716,49717,49718,49719,49720,49721,49722,49723,49724,49725,49726,49727,49728,49729,49730,49731,49732,49733,49734,49735,49736,49737,49738,49739,49740,49741,49742,49743,49744,49745,49746,49747,49748,49749,49750,49751,49752,49753,49754,49755,49756,49757,49758,49759,49760,49761,49762,49763,49764,49765,49766,49767,49768,49769,49770,49771,49772,49773,49774,49775,49776,49777,49778,49779,49780,49781,49782,49783,49784,49785,49786,49787,49788,49789,49790,49791,49792,49793,49794,49795,49796,49797,49798,49799,49800,49801,49802,49803,49804,49805,49806,49807,49808,49809,49810,49811,49812,49813,49814,49815,49816,49817,49818,49819,49820,49821,49822,49823,49824,49825,49826,49827,49828,49829,49830,49831,49832,49833,49834,49835,49836,49837,49838,49839,49840,49841,49842,49843,49844,49845,49846,49847,49848,49849,49850,49851,49852,49853,49854,49855,49856,49857,49858,49859,49860,49861,49862,49863,49864,49865,49866,49867,49868,49869,49870,49871,49872,49873,49874,49875,49876,49877,49878,49879,49880,49881,49882,49883,49884,49885,49886,49887,49888,49889,49890,49891,49892,49893,49894,49895,49896,49897,49898,49899,49900,49901,49902,49903,49904,49905,49906,49907,49908,49909,49910,49911,49912,49913,49914,49915,49916,49917,49918,49919,49920,49921,49922,49923,49924,49925,49926,49927,49928,49929,49930,49931,49932,49933,49934,49935,49936,49937,49938,49939,49940,49941,49942,49943,49944,49945,49946,49947,49948,49949,49950,49951,49952,49953,49954,49955,49956,49957,49958,49959,49960,49961,49962,49963,49964,49965,49966,49967,49968,49969,49970,49971,49972,49973,49974,49975,49976,49977,49978,49979,49980,49981,49982,49983,49984,49985,49986,49987,49988,49989,49990,49991,49992,49993,49994,49995,49996,49997,49998,49999,50000,50001,50002,50003,50004,50005,50006,50007,50008,50009,50010,50011,50012,50013,50014,50015,50016,50017,50018,50019,50020,50021,50022,50023,50024,50025,50026,50027,50028,50029,50030,50031,50032,50033,50034,50035,50036,50037,50038,50039,50040,50041,50042,50043,50044,50045,50046,50047,50048,50049,50050,50051,50052,50053,50054,50055,50056,50057,50058,50059,50060,50061,50062,50063,50064,50065,50066,50067,50068,50069,50070,50071,50072,50073,50074,50075,50076,50077,50078,50079,50080,50081,50082,50083,50084,50085,50086,50087,50088,50089,50090,50091,50092,50093,50094,50095,50096,50097,50098,50099,50100,50101,50102,50103,50104,50105,50106,50107,50108,50109,50110,50111,50112,50113,50114,50115,50116,50117,50118,50119,50120,50121,50122,50123,50124,50125,50126,50127,50128,50129,50130,50131,50132,50133,50134,50135,50136,50137,50138,50139,50140,50141,50142,50143,50144,50145,50146,50147,50148,50149,50150,50151,50152,50153,50154,50155,50156,50157,50158,50159,50160,50161,50162,50163,50164,50165,50166,50167,50168,50169,50170,50171,50172,50173,50174,50175,50176,50177,50178,50179,50180,50181,50182,50183,50184,50185,50186,50187,50188,50189,50190,50191,50192,50193,50194,50195,50196,50197,50198,50199,50200,50201,50202,50203,50204,50205,50206,50207,50208,50209,50210,50211,50212,50213,50214,50215,50216,50217,50218,50219,50220,50221,50222,50223,50224,50225,50226,50227,50228,50229,50230,50231,50232,50233,50234,50235,50236,50237,50238,50239,50240,50241,50242,50243,50244,50245,50246,50247,50248,50249,50250,50251,50252,50253,50254,50255,50256,50257,50258,50259,50260,50261,50262,50263,50264,50265,50266,50267,50268,50269,50270,50271,50272,50273,50274,50275,50276,50277,50278,50279,50280,50281,50282,50283,50284,50285,50286,50287,50288,50289,50290,50291,50292,50293,50294,50295,50296,50297,50298,50299,50300,50301,50302,50303,50304,50305,50306,50307,50308,50309,50310,50311,50312,50313,50314,50315,50316,50317,50318,50319,50320,50321,50322,50323,50324,50325,50326,50327,50328,50329,50330,50331,50332,50333,50334,50335,50336,50337,50338,50339,50340,50341,50342,50343,50344,50345,50346,50347,50348,50349,50350,50351,50352,50353,50354,50355,50356,50357,50358,50359,50360,50361,50362,50363,50364,50365,50366,50367,50368,50369,50370,50371,50372,50373,50374,50375,50376,50377,50378,50379,50380,50381,50382,50383,50384,50385,50386,50387,50388,50389,50390,50391,50392,50393,50394,50395,50396,50397,50398,50399,50400,50401,50402,50403,50404,50405,50406,50407,50408,50409,50410,50411,50412,50413,50414,50415,50416,50417,50418,50419,50420,50421,50422,50423,50424,50425,50426,50427,50428,50429,50430,50431,50432,50433,50434,50435,50436,50437,50438,50439,50440,50441,50442,50443,50444,50445,50446,50447,50448,50449,50450,50451,50452,50453,50454,50455,50456,50457,50458,50459,50460,50461,50462,50463,50464,50465,50466,50467,50468,50469,50470,50471,50472,50473,50474,50475,50476,50477,50478,50479,50480,50481,50482,50483,50484,50485,50486,50487,50488,50489,50490,50491,50492,50493,50494,50495,50496,50497,50498,50499,50500,50501,50502,50503,50504,50505,50506,50507,50508,50509,50510,50511,50512,50513,50514,50515,50516,50517,50518,50519,50520,50521,50522,50523,50524,50525,50526,50527,50528,50529,50530,50531,50532,50533,50534,50535,50536,50537,50538,50539,50540,50541,50542,50543,50544,50545,50546,50547,50548,50549,50550,50551,50552,50553,50554,50555,50556,50557,50558,50559,50560,50561,50562,50563,50564,50565,50566,50567,50568,50569,50570,50571,50572,50573,50574,50575,50576,50577,50578,50579,50580,50581,50582,50583,50584,50585,50586,50587,50588,50589,50590,50591,50592,50593,50594,50595,50596,50597,50598,50599,50600,50601,50602,50603,50604,50605,50606,50607,50608,50609,50610,50611,50612,50613,50614,50615,50616,50617,50618,50619,50620,50621,50622,50623,50624,50625,50626,50627,50628,50629,50630,50631,50632,50633,50634,50635,50636,50637,50638,50639,50640,50641,50642,50643,50644,50645,50646,50647,50648,50649,50650,50651,50652,50653,50654,50655,50656,50657,50658,50659,50660,50661,50662,50663,50664,50665,50666,50667,50668,50669,50670,50671,50672,50673,50674,50675,50676,50677,50678,50679,50680,50681,50682,50683,50684,50685,50686,50687,50688,50689,50690,50691,50692,50693,50694,50695,50696,50697,50698,50699,50700,50701,50702,50703,50704,50705,50706,50707,50708,50709,50710,50711,50712,50713,50714,50715,50716,50717,50718,50719,50720,50721,50722,50723,50724,50725,50726,50727,50728,50729,50730,50731,50732,50733,50734,50735,50736,50737,50738,50739,50740,50741,50742,50743,50744,50745,50746,50747,50748,50749,50750,50751,50752,50753,50754,50755,50756,50757,50758,50759,50760,50761,50762,50763,50764,50765,50766,50767,50768,50769,50770,50771,50772,50773,50774,50775,50776,50777,50778,50779,50780,50781,50782,50783,50784,50785,50786,50787,50788,50789,50790,50791,50792,50793,50794,50795,50796,50797,50798,50799,50800,50801,50802,50803,50804,50805,50806,50807,50808,50809,50810,50811,50812,50813,50814,50815,50816,50817,50818,50819,50820,50821,50822,50823,50824,50825,50826,50827,50828,50829,50830,50831,50832,50833,50834,50835,50836,50837,50838,50839,50840,50841,50842,50843,50844,50845,50846,50847,50848,50849,50850,50851,50852,50853,50854,50855,50856,50857,50858,50859,50860,50861,50862,50863,50864,50865,50866,50867,50868,50869,50870,50871,50872,50873,50874,50875,50876,50877,50878,50879,50880,50881,50882,50883,50884,50885,50886,50887,50888,50889,50890,50891,50892,50893,50894,50895,50896,50897,50898,50899,50900,50901,50902,50903,50904,50905,50906,50907,50908,50909,50910,50911,50912,50913,50914,50915,50916,50917,50918,50919,50920,50921,50922,50923,50924,50925,50926,50927,50928,50929,50930,50931,50932,50933,50934,50935,50936,50937,50938,50939,50940,50941,50942,50943,50944,50945,50946,50947,50948,50949,50950,50951,50952,50953,50954,50955,50956,50957,50958,50959,50960,50961,50962,50963,50964,50965,50966,50967,50968,50969,50970,50971,50972,50973,50974,50975,50976,50977,50978,50979,50980,50981,50982,50983,50984,50985,50986,50987,50988,50989,50990,50991,50992,50993,50994,50995,50996,50997,50998,50999,51000,51001,51002,51003,51004,51005,51006,51007,51008,51009,51010,51011,51012,51013,51014,51015,51016,51017,51018,51019,51020,51021,51022,51023,51024,51025,51026,51027,51028,51029,51030,51031,51032,51033,51034,51035,51036,51037,51038,51039,51040,51041,51042,51043,51044,51045,51046,51047,51048,51049,51050,51051,51052,51053,51054,51055,51056,51057,51058,51059,51060,51061,51062,51063,51064,51065,51066,51067,51068,51069,51070,51071,51072,51073,51074,51075,51076,51077,51078,51079,51080,51081,51082,51083,51084,51085,51086,51087,51088,51089,51090,51091,51092,51093,51094,51095,51096,51097,51098,51099,51100,51101,51102,51103,51104,51105,51106,51107,51108,51109,51110,51111,51112,51113,51114,51115,51116,51117,51118,51119,51120,51121,51122,51123,51124,51125,51126,51127,51128,51129,51130,51131,51132,51133,51134,51135,51136,51137,51138,51139,51140,51141,51142,51143,51144,51145,51146,51147,51148,51149,51150,51151,51152,51153,51154,51155,51156,51157,51158,51159,51160,51161,51162,51163,51164,51165,51166,51167,51168,51169,51170,51171,51172,51173,51174,51175,51176,51177,51178,51179,51180,51181,51182,51183,51184,51185,51186,51187,51188,51189,51190,51191,51192,51193,51194,51195,51196,51197,51198,51199,51200,51201,51202,51203,51204,51205,51206,51207,51208,51209,51210,51211,51212,51213,51214,51215,51216,51217,51218,51219,51220,51221,51222,51223,51224,51225,51226,51227,51228,51229,51230,51231,51232,51233,51234,51235,51236,51237,51238,51239,51240,51241,51242,51243,51244,51245,51246,51247,51248,51249,51250,51251,51252,51253,51254,51255,51256,51257,51258,51259,51260,51261,51262,51263,51264,51265,51266,51267,51268,51269,51270,51271,51272,51273,51274,51275,51276,51277,51278,51279,51280,51281,51282,51283,51284,51285,51286,51287,51288,51289,51290,51291,51292,51293,51294,51295,51296,51297,51298,51299,51300,51301,51302,51303,51304,51305,51306,51307,51308,51309,51310,51311,51312,51313,51314,51315,51316,51317,51318,51319,51320,51321,51322,51323,51324,51325,51326,51327,51328,51329,51330,51331,51332,51333,51334,51335,51336,51337,51338,51339,51340,51341,51342,51343,51344,51345,51346,51347,51348,51349,51350,51351,51352,51353,51354,51355,51356,51357,51358,51359,51360,51361,51362,51363,51364,51365,51366,51367,51368,51369,51370,51371,51372,51373,51374,51375,51376,51377,51378,51379,51380,51381,51382,51383,51384,51385,51386,51387,51388,51389,51390,51391,51392,51393,51394,51395,51396,51397,51398,51399,51400,51401,51402,51403,51404,51405,51406,51407,51408,51409,51410,51411,51412,51413,51414,51415,51416,51417,51418,51419,51420,51421,51422,51423,51424,51425,51426,51427,51428,51429,51430,51431,51432,51433,51434,51435,51436,51437,51438,51439,51440,51441,51442,51443,51444,51445,51446,51447,51448,51449,51450,51451,51452,51453,51454,51455,51456,51457,51458,51459,51460,51461,51462,51463,51464,51465,51466,51467,51468,51469,51470,51471,51472,51473,51474,51475,51476,51477,51478,51479,51480,51481,51482,51483,51484,51485,51486,51487,51488,51489,51490,51491,51492,51493,51494,51495,51496,51497,51498,51499,51500,51501,51502,51503,51504,51505,51506,51507,51508,51509,51510,51511,51512,51513,51514,51515,51516,51517,51518,51519,51520,51521,51522,51523,51524,51525,51526,51527,51528,51529,51530,51531,51532,51533,51534,51535,51536,51537,51538,51539,51540,51541,51542,51543,51544,51545,51546,51547,51548,51549,51550,51551,51552,51553,51554,51555,51556,51557,51558,51559,51560,51561,51562,51563,51564,51565,51566,51567,51568,51569,51570,51571,51572,51573,51574,51575,51576,51577,51578,51579,51580,51581,51582,51583,51584,51585,51586,51587,51588,51589,51590,51591,51592,51593,51594,51595,51596,51597,51598,51599,51600,51601,51602,51603,51604,51605,51606,51607,51608,51609,51610,51611,51612,51613,51614,51615,51616,51617,51618,51619,51620,51621,51622,51623,51624,51625,51626,51627,51628,51629,51630,51631,51632,51633,51634,51635,51636,51637,51638,51639,51640,51641,51642,51643,51644,51645,51646,51647,51648,51649,51650,51651,51652,51653,51654,51655,51656,51657,51658,51659,51660,51661,51662,51663,51664,51665,51666,51667,51668,51669,51670,51671,51672,51673,51674,51675,51676,51677,51678,51679,51680,51681,51682,51683,51684,51685,51686,51687,51688,51689,51690,51691,51692,51693,51694,51695,51696,51697,51698,51699,51700,51701,51702,51703,51704,51705,51706,51707,51708,51709,51710,51711,51712,51713,51714,51715,51716,51717,51718,51719,51720,51721,51722,51723,51724,51725,51726,51727,51728,51729,51730,51731,51732,51733,51734,51735,51736,51737,51738,51739,51740,51741,51742,51743,51744,51745,51746,51747,51748,51749,51750,51751,51752,51753,51754,51755,51756,51757,51758,51759,51760,51761,51762,51763,51764,51765,51766,51767,51768,51769,51770,51771,51772,51773,51774,51775,51776,51777,51778,51779,51780,51781,51782,51783,51784,51785,51786,51787,51788,51789,51790,51791,51792,51793,51794,51795,51796,51797,51798,51799,51800,51801,51802,51803,51804,51805,51806,51807,51808,51809,51810,51811,51812,51813,51814,51815,51816,51817,51818,51819,51820,51821,51822,51823,51824,51825,51826,51827,51828,51829,51830,51831,51832,51833,51834,51835,51836,51837,51838,51839,51840,51841,51842,51843,51844,51845,51846,51847,51848,51849,51850,51851,51852,51853,51854,51855,51856,51857,51858,51859,51860,51861,51862,51863,51864,51865,51866,51867,51868,51869,51870,51871,51872,51873,51874,51875,51876,51877,51878,51879,51880,51881,51882,51883,51884,51885,51886,51887,51888,51889,51890,51891,51892,51893,51894,51895,51896,51897,51898,51899,51900,51901,51902,51903,51904,51905,51906,51907,51908,51909,51910,51911,51912,51913,51914,51915,51916,51917,51918,51919,51920,51921,51922,51923,51924,51925,51926,51927,51928,51929,51930,51931,51932,51933,51934,51935,51936,51937,51938,51939,51940,51941,51942,51943,51944,51945,51946,51947,51948,51949,51950,51951,51952,51953,51954,51955,51956,51957,51958,51959,51960,51961,51962,51963,51964,51965,51966,51967,51968,51969,51970,51971,51972,51973,51974,51975,51976,51977,51978,51979,51980,51981,51982,51983,51984,51985,51986,51987,51988,51989,51990,51991,51992,51993,51994,51995,51996,51997,51998,51999,52000,52001,52002,52003,52004,52005,52006,52007,52008,52009,52010,52011,52012,52013,52014,52015,52016,52017,52018,52019,52020,52021,52022,52023,52024,52025,52026,52027,52028,52029,52030,52031,52032,52033,52034,52035,52036,52037,52038,52039,52040,52041,52042,52043,52044,52045,52046,52047,52048,52049,52050,52051,52052,52053,52054,52055,52056,52057,52058,52059,52060,52061,52062,52063,52064,52065,52066,52067,52068,52069,52070,52071,52072,52073,52074,52075,52076,52077,52078,52079,52080,52081,52082,52083,52084,52085,52086,52087,52088,52089,52090,52091,52092,52093,52094,52095,52096,52097,52098,52099,52100,52101,52102,52103,52104,52105,52106,52107,52108,52109,52110,52111,52112,52113,52114,52115,52116,52117,52118,52119,52120,52121,52122,52123,52124,52125,52126,52127,52128,52129,52130,52131,52132,52133,52134,52135,52136,52137,52138,52139,52140,52141,52142,52143,52144,52145,52146,52147,52148,52149,52150,52151,52152,52153,52154,52155,52156,52157,52158,52159,52160,52161,52162,52163,52164,52165,52166,52167,52168,52169,52170,52171,52172,52173,52174,52175,52176,52177,52178,52179,52180,52181,52182,52183,52184,52185,52186,52187,52188,52189,52190,52191,52192,52193,52194,52195,52196,52197,52198,52199,52200,52201,52202,52203,52204,52205,52206,52207,52208,52209,52210,52211,52212,52213,52214,52215,52216,52217,52218,52219,52220,52221,52222,52223,52224,52225,52226,52227,52228,52229,52230,52231,52232,52233,52234,52235,52236,52237,52238,52239,52240,52241,52242,52243,52244,52245,52246,52247,52248,52249,52250,52251,52252,52253,52254,52255,52256,52257,52258,52259,52260,52261,52262,52263,52264,52265,52266,52267,52268,52269,52270,52271,52272,52273,52274,52275,52276,52277,52278,52279,52280,52281,52282,52283,52284,52285,52286,52287,52288,52289,52290,52291,52292,52293,52294,52295,52296,52297,52298,52299,52300,52301,52302,52303,52304,52305,52306,52307,52308,52309,52310,52311,52312,52313,52314,52315,52316,52317,52318,52319,52320,52321,52322,52323,52324,52325,52326,52327,52328,52329,52330,52331,52332,52333,52334,52335,52336,52337,52338,52339,52340,52341,52342,52343,52344,52345,52346,52347,52348,52349,52350,52351,52352,52353,52354,52355,52356,52357,52358,52359,52360,52361,52362,52363,52364,52365,52366,52367,52368,52369,52370,52371,52372,52373,52374,52375,52376,52377,52378,52379,52380,52381,52382,52383,52384,52385,52386,52387,52388,52389,52390,52391,52392,52393,52394,52395,52396,52397,52398,52399,52400,52401,52402,52403,52404,52405,52406,52407,52408,52409,52410,52411,52412,52413,52414,52415,52416,52417,52418,52419,52420,52421,52422,52423,52424,52425,52426,52427,52428,52429,52430,52431,52432,52433,52434,52435,52436,52437,52438,52439,52440,52441,52442,52443,52444,52445,52446,52447,52448,52449,52450,52451,52452,52453,52454,52455,52456,52457,52458,52459,52460,52461,52462,52463,52464,52465,52466,52467,52468,52469,52470,52471,52472,52473,52474,52475,52476,52477,52478,52479,52480,52481,52482,52483,52484,52485,52486,52487,52488,52489,52490,52491,52492,52493,52494,52495,52496,52497,52498,52499,52500,52501,52502,52503,52504,52505,52506,52507,52508,52509,52510,52511,52512,52513,52514,52515,52516,52517,52518,52519,52520,52521,52522,52523,52524,52525,52526,52527,52528,52529,52530,52531,52532,52533,52534,52535,52536,52537,52538,52539,52540,52541,52542,52543,52544,52545,52546,52547,52548,52549,52550,52551,52552,52553,52554,52555,52556,52557,52558,52559,52560,52561,52562,52563,52564,52565,52566,52567,52568,52569,52570,52571,52572,52573,52574,52575,52576,52577,52578,52579,52580,52581,52582,52583,52584,52585,52586,52587,52588,52589,52590,52591,52592,52593,52594,52595,52596,52597,52598,52599,52600,52601,52602,52603,52604,52605,52606,52607,52608,52609,52610,52611,52612,52613,52614,52615,52616,52617,52618,52619,52620,52621,52622,52623,52624,52625,52626,52627,52628,52629,52630,52631,52632,52633,52634,52635,52636,52637,52638,52639,52640,52641,52642,52643,52644,52645,52646,52647,52648,52649,52650,52651,52652,52653,52654,52655,52656,52657,52658,52659,52660,52661,52662,52663,52664,52665,52666,52667,52668,52669,52670,52671,52672,52673,52674,52675,52676,52677,52678,52679,52680,52681,52682,52683,52684,52685,52686,52687,52688,52689,52690,52691,52692,52693,52694,52695,52696,52697,52698,52699,52700,52701,52702,52703,52704,52705,52706,52707,52708,52709,52710,52711,52712,52713,52714,52715,52716,52717,52718,52719,52720,52721,52722,52723,52724,52725,52726,52727,52728,52729,52730,52731,52732,52733,52734,52735,52736,52737,52738,52739,52740,52741,52742,52743,52744,52745,52746,52747,52748,52749,52750,52751,52752,52753,52754,52755,52756,52757,52758,52759,52760,52761,52762,52763,52764,52765,52766,52767,52768,52769,52770,52771,52772,52773,52774,52775,52776,52777,52778,52779,52780,52781,52782,52783,52784,52785,52786,52787,52788,52789,52790,52791,52792,52793,52794,52795,52796,52797,52798,52799,52800,52801,52802,52803,52804,52805,52806,52807,52808,52809,52810,52811,52812,52813,52814,52815,52816,52817,52818,52819,52820,52821,52822,52823,52824,52825,52826,52827,52828,52829,52830,52831,52832,52833,52834,52835,52836,52837,52838,52839,52840,52841,52842,52843,52844,52845,52846,52847,52848,52849,52850,52851,52852,52853,52854,52855,52856,52857,52858,52859,52860,52861,52862,52863,52864,52865,52866,52867,52868,52869,52870,52871,52872,52873,52874,52875,52876,52877,52878,52879,52880,52881,52882,52883,52884,52885,52886,52887,52888,52889,52890,52891,52892,52893,52894,52895,52896,52897,52898,52899,52900,52901,52902,52903,52904,52905,52906,52907,52908,52909,52910,52911,52912,52913,52914,52915,52916,52917,52918,52919,52920,52921,52922,52923,52924,52925,52926,52927,52928,52929,52930,52931,52932,52933,52934,52935,52936,52937,52938,52939,52940,52941,52942,52943,52944,52945,52946,52947,52948,52949,52950,52951,52952,52953,52954,52955,52956,52957,52958,52959,52960,52961,52962,52963,52964,52965,52966,52967,52968,52969,52970,52971,52972,52973,52974,52975,52976,52977,52978,52979,52980,52981,52982,52983,52984,52985,52986,52987,52988,52989,52990,52991,52992,52993,52994,52995,52996,52997,52998,52999,53000,53001,53002,53003,53004,53005,53006,53007,53008,53009,53010,53011,53012,53013,53014,53015,53016,53017,53018,53019,53020,53021,53022,53023,53024,53025,53026,53027,53028,53029,53030,53031,53032,53033,53034,53035,53036,53037,53038,53039,53040,53041,53042,53043,53044,53045,53046,53047,53048,53049,53050,53051,53052,53053,53054,53055,53056,53057,53058,53059,53060,53061,53062,53063,53064,53065,53066,53067,53068,53069,53070,53071,53072,53073,53074,53075,53076,53077,53078,53079,53080,53081,53082,53083,53084,53085,53086,53087,53088,53089,53090,53091,53092,53093,53094,53095,53096,53097,53098,53099,53100,53101,53102,53103,53104,53105,53106,53107,53108,53109,53110,53111,53112,53113,53114,53115,53116,53117,53118,53119,53120,53121,53122,53123,53124,53125,53126,53127,53128,53129,53130,53131,53132,53133,53134,53135,53136,53137,53138,53139,53140,53141,53142,53143,53144,53145,53146,53147,53148,53149,53150,53151,53152,53153,53154,53155,53156,53157,53158,53159,53160,53161,53162,53163,53164,53165,53166,53167,53168,53169,53170,53171,53172,53173,53174,53175,53176,53177,53178,53179,53180,53181,53182,53183,53184,53185,53186,53187,53188,53189,53190,53191,53192,53193,53194,53195,53196,53197,53198,53199,53200,53201,53202,53203,53204,53205,53206,53207,53208,53209,53210,53211,53212,53213,53214,53215,53216,53217,53218,53219,53220,53221,53222,53223,53224,53225,53226,53227,53228,53229,53230,53231,53232,53233,53234,53235,53236,53237,53238,53239,53240,53241,53242,53243,53244,53245,53246,53247,53248,53249,53250,53251,53252,53253,53254,53255,53256,53257,53258,53259,53260,53261,53262,53263,53264,53265,53266,53267,53268,53269,53270,53271,53272,53273,53274,53275,53276,53277,53278,53279,53280,53281,53282,53283,53284,53285,53286,53287,53288,53289,53290,53291,53292,53293,53294,53295,53296,53297,53298,53299,53300,53301,53302,53303,53304,53305,53306,53307,53308,53309,53310,53311,53312,53313,53314,53315,53316,53317,53318,53319,53320,53321,53322,53323,53324,53325,53326,53327,53328,53329,53330,53331,53332,53333,53334,53335,53336,53337,53338,53339,53340,53341,53342,53343,53344,53345,53346,53347,53348,53349,53350,53351,53352,53353,53354,53355,53356,53357,53358,53359,53360,53361,53362,53363,53364,53365,53366,53367,53368,53369,53370,53371,53372,53373,53374,53375,53376,53377,53378,53379,53380,53381,53382,53383,53384,53385,53386,53387,53388,53389,53390,53391,53392,53393,53394,53395,53396,53397,53398,53399,53400,53401,53402,53403,53404,53405,53406,53407,53408,53409,53410,53411,53412,53413,53414,53415,53416,53417,53418,53419,53420,53421,53422,53423,53424,53425,53426,53427,53428,53429,53430,53431,53432,53433,53434,53435,53436,53437,53438,53439,53440,53441,53442,53443,53444,53445,53446,53447,53448,53449,53450,53451,53452,53453,53454,53455,53456,53457,53458,53459,53460,53461,53462,53463,53464,53465,53466,53467,53468,53469,53470,53471,53472,53473,53474,53475,53476,53477,53478,53479,53480,53481,53482,53483,53484,53485,53486,53487,53488,53489,53490,53491,53492,53493,53494,53495,53496,53497,53498,53499,53500,53501,53502,53503,53504,53505,53506,53507,53508,53509,53510,53511,53512,53513,53514,53515,53516,53517,53518,53519,53520,53521,53522,53523,53524,53525,53526,53527,53528,53529,53530,53531,53532,53533,53534,53535,53536,53537,53538,53539,53540,53541,53542,53543,53544,53545,53546,53547,53548,53549,53550,53551,53552,53553,53554,53555,53556,53557,53558,53559,53560,53561,53562,53563,53564,53565,53566,53567,53568,53569,53570,53571,53572,53573,53574,53575,53576,53577,53578,53579,53580,53581,53582,53583,53584,53585,53586,53587,53588,53589,53590,53591,53592,53593,53594,53595,53596,53597,53598,53599,53600,53601,53602,53603,53604,53605,53606,53607,53608,53609,53610,53611,53612,53613,53614,53615,53616,53617,53618,53619,53620,53621,53622,53623,53624,53625,53626,53627,53628,53629,53630,53631,53632,53633,53634,53635,53636,53637,53638,53639,53640,53641,53642,53643,53644,53645,53646,53647,53648,53649,53650,53651,53652,53653,53654,53655,53656,53657,53658,53659,53660,53661,53662,53663,53664,53665,53666,53667,53668,53669,53670,53671,53672,53673,53674,53675,53676,53677,53678,53679,53680,53681,53682,53683,53684,53685,53686,53687,53688,53689,53690,53691,53692,53693,53694,53695,53696,53697,53698,53699,53700,53701,53702,53703,53704,53705,53706,53707,53708,53709,53710,53711,53712,53713,53714,53715,53716,53717,53718,53719,53720,53721,53722,53723,53724,53725,53726,53727,53728,53729,53730,53731,53732,53733,53734,53735,53736,53737,53738,53739,53740,53741,53742,53743,53744,53745,53746,53747,53748,53749,53750,53751,53752,53753,53754,53755,53756,53757,53758,53759,53760,53761,53762,53763,53764,53765,53766,53767,53768,53769,53770,53771,53772,53773,53774,53775,53776,53777,53778,53779,53780,53781,53782,53783,53784,53785,53786,53787,53788,53789,53790,53791,53792,53793,53794,53795,53796,53797,53798,53799,53800,53801,53802,53803,53804,53805,53806,53807,53808,53809,53810,53811,53812,53813,53814,53815,53816,53817,53818,53819,53820,53821,53822,53823,53824,53825,53826,53827,53828,53829,53830,53831,53832,53833,53834,53835,53836,53837,53838,53839,53840,53841,53842,53843,53844,53845,53846,53847,53848,53849,53850,53851,53852,53853,53854,53855,53856,53857,53858,53859,53860,53861,53862,53863,53864,53865,53866,53867,53868,53869,53870,53871,53872,53873,53874,53875,53876,53877,53878,53879,53880,53881,53882,53883,53884,53885,53886,53887,53888,53889,53890,53891,53892,53893,53894,53895,53896,53897,53898,53899,53900,53901,53902,53903,53904,53905,53906,53907,53908,53909,53910,53911,53912,53913,53914,53915,53916,53917,53918,53919,53920,53921,53922,53923,53924,53925,53926,53927,53928,53929,53930,53931,53932,53933,53934,53935,53936,53937,53938,53939,53940,53941,53942,53943,53944,53945,53946,53947,53948,53949,53950,53951,53952,53953,53954,53955,53956,53957,53958,53959,53960,53961,53962,53963,53964,53965,53966,53967,53968,53969,53970,53971,53972,53973,53974,53975,53976,53977,53978,53979,53980,53981,53982,53983,53984,53985,53986,53987,53988,53989,53990,53991,53992,53993,53994,53995,53996,53997,53998,53999,54000,54001,54002,54003,54004,54005,54006,54007,54008,54009,54010,54011,54012,54013,54014,54015,54016,54017,54018,54019,54020,54021,54022,54023,54024,54025,54026,54027,54028,54029,54030,54031,54032,54033,54034,54035,54036,54037,54038,54039,54040,54041,54042,54043,54044,54045,54046,54047,54048,54049,54050,54051,54052,54053,54054,54055,54056,54057,54058,54059,54060,54061,54062,54063,54064,54065,54066,54067,54068,54069,54070,54071,54072,54073,54074,54075,54076,54077,54078,54079,54080,54081,54082,54083,54084,54085,54086,54087,54088,54089,54090,54091,54092,54093,54094,54095,54096,54097,54098,54099,54100,54101,54102,54103,54104,54105,54106,54107,54108,54109,54110,54111,54112,54113,54114,54115,54116,54117,54118,54119,54120,54121,54122,54123,54124,54125,54126,54127,54128,54129,54130,54131,54132,54133,54134,54135,54136,54137,54138,54139,54140,54141,54142,54143,54144,54145,54146,54147,54148,54149,54150,54151,54152,54153,54154,54155,54156,54157,54158,54159,54160,54161,54162,54163,54164,54165,54166,54167,54168,54169,54170,54171,54172,54173,54174,54175,54176,54177,54178,54179,54180,54181,54182,54183,54184,54185,54186,54187,54188,54189,54190,54191,54192,54193,54194,54195,54196,54197,54198,54199,54200,54201,54202,54203,54204,54205,54206,54207,54208,54209,54210,54211,54212,54213,54214,54215,54216,54217,54218,54219,54220,54221,54222,54223,54224,54225,54226,54227,54228,54229,54230,54231,54232,54233,54234,54235,54236,54237,54238,54239,54240,54241,54242,54243,54244,54245,54246,54247,54248,54249,54250,54251,54252,54253,54254,54255,54256,54257,54258,54259,54260,54261,54262,54263,54264,54265,54266,54267,54268,54269,54270,54271,54272,54273,54274,54275,54276,54277,54278,54279,54280,54281,54282,54283,54284,54285,54286,54287,54288,54289,54290,54291,54292,54293,54294,54295,54296,54297,54298,54299,54300,54301,54302,54303,54304,54305,54306,54307,54308,54309,54310,54311,54312,54313,54314,54315,54316,54317,54318,54319,54320,54321,54322,54323,54324,54325,54326,54327,54328,54329,54330,54331,54332,54333,54334,54335,54336,54337,54338,54339,54340,54341,54342,54343,54344,54345,54346,54347,54348,54349,54350,54351,54352,54353,54354,54355,54356,54357,54358,54359,54360,54361,54362,54363,54364,54365,54366,54367,54368,54369,54370,54371,54372,54373,54374,54375,54376,54377,54378,54379,54380,54381,54382,54383,54384,54385,54386,54387,54388,54389,54390,54391,54392,54393,54394,54395,54396,54397,54398,54399,54400,54401,54402,54403,54404,54405,54406,54407,54408,54409,54410,54411,54412,54413,54414,54415,54416,54417,54418,54419,54420,54421,54422,54423,54424,54425,54426,54427,54428,54429,54430,54431,54432,54433,54434,54435,54436,54437,54438,54439,54440,54441,54442,54443,54444,54445,54446,54447,54448,54449,54450,54451,54452,54453,54454,54455,54456,54457,54458,54459,54460,54461,54462,54463,54464,54465,54466,54467,54468,54469,54470,54471,54472,54473,54474,54475,54476,54477,54478,54479,54480,54481,54482,54483,54484,54485,54486,54487,54488,54489,54490,54491,54492,54493,54494,54495,54496,54497,54498,54499,54500,54501,54502,54503,54504,54505,54506,54507,54508,54509,54510,54511,54512,54513,54514,54515,54516,54517,54518,54519,54520,54521,54522,54523,54524,54525,54526,54527,54528,54529,54530,54531,54532,54533,54534,54535,54536,54537,54538,54539,54540,54541,54542,54543,54544,54545,54546,54547,54548,54549,54550,54551,54552,54553,54554,54555,54556,54557,54558,54559,54560,54561,54562,54563,54564,54565,54566,54567,54568,54569,54570,54571,54572,54573,54574,54575,54576,54577,54578,54579,54580,54581,54582,54583,54584,54585,54586,54587,54588,54589,54590,54591,54592,54593,54594,54595,54596,54597,54598,54599,54600,54601,54602,54603,54604,54605,54606,54607,54608,54609,54610,54611,54612,54613,54614,54615,54616,54617,54618,54619,54620,54621,54622,54623,54624,54625,54626,54627,54628,54629,54630,54631,54632,54633,54634,54635,54636,54637,54638,54639,54640,54641,54642,54643,54644,54645,54646,54647,54648,54649,54650,54651,54652,54653,54654,54655,54656,54657,54658,54659,54660,54661,54662,54663,54664,54665,54666,54667,54668,54669,54670,54671,54672,54673,54674,54675,54676,54677,54678,54679,54680,54681,54682,54683,54684,54685,54686,54687,54688,54689,54690,54691,54692,54693,54694,54695,54696,54697,54698,54699,54700,54701,54702,54703,54704,54705,54706,54707,54708,54709,54710,54711,54712,54713,54714,54715,54716,54717,54718,54719,54720,54721,54722,54723,54724,54725,54726,54727,54728,54729,54730,54731,54732,54733,54734,54735,54736,54737,54738,54739,54740,54741,54742,54743,54744,54745,54746,54747,54748,54749,54750,54751,54752,54753,54754,54755,54756,54757,54758,54759,54760,54761,54762,54763,54764,54765,54766,54767,54768,54769,54770,54771,54772,54773,54774,54775,54776,54777,54778,54779,54780,54781,54782,54783,54784,54785,54786,54787,54788,54789,54790,54791,54792,54793,54794,54795,54796,54797,54798,54799,54800,54801,54802,54803,54804,54805,54806,54807,54808,54809,54810,54811,54812,54813,54814,54815,54816,54817,54818,54819,54820,54821,54822,54823,54824,54825,54826,54827,54828,54829,54830,54831,54832,54833,54834,54835,54836,54837,54838,54839,54840,54841,54842,54843,54844,54845,54846,54847,54848,54849,54850,54851,54852,54853,54854,54855,54856,54857,54858,54859,54860,54861,54862,54863,54864,54865,54866,54867,54868,54869,54870,54871,54872,54873,54874,54875,54876,54877,54878,54879,54880,54881,54882,54883,54884,54885,54886,54887,54888,54889,54890,54891,54892,54893,54894,54895,54896,54897,54898,54899,54900,54901,54902,54903,54904,54905,54906,54907,54908,54909,54910,54911,54912,54913,54914,54915,54916,54917,54918,54919,54920,54921,54922,54923,54924,54925,54926,54927,54928,54929,54930,54931,54932,54933,54934,54935,54936,54937,54938,54939,54940,54941,54942,54943,54944,54945,54946,54947,54948,54949,54950,54951,54952,54953,54954,54955,54956,54957,54958,54959,54960,54961,54962,54963,54964,54965,54966,54967,54968,54969,54970,54971,54972,54973,54974,54975,54976,54977,54978,54979,54980,54981,54982,54983,54984,54985,54986,54987,54988,54989,54990,54991,54992,54993,54994,54995,54996,54997,54998,54999,55000,55001,55002,55003,55004,55005,55006,55007,55008,55009,55010,55011,55012,55013,55014,55015,55016,55017,55018,55019,55020,55021,55022,55023,55024,55025,55026,55027,55028,55029,55030,55031,55032,55033,55034,55035,55036,55037,55038,55039,55040,55041,55042,55043,55044,55045,55046,55047,55048,55049,55050,55051,55052,55053,55054,55055,55056,55057,55058,55059,55060,55061,55062,55063,55064,55065,55066,55067,55068,55069,55070,55071,55072,55073,55074,55075,55076,55077,55078,55079,55080,55081,55082,55083,55084,55085,55086,55087,55088,55089,55090,55091,55092,55093,55094,55095,55096,55097,55098,55099,55100,55101,55102,55103,55104,55105,55106,55107,55108,55109,55110,55111,55112,55113,55114,55115,55116,55117,55118,55119,55120,55121,55122,55123,55124,55125,55126,55127,55128,55129,55130,55131,55132,55133,55134,55135,55136,55137,55138,55139,55140,55141,55142,55143,55144,55145,55146,55147,55148,55149,55150,55151,55152,55153,55154,55155,55156,55157,55158,55159,55160,55161,55162,55163,55164,55165,55166,55167,55168,55169,55170,55171,55172,55173,55174,55175,55176,55177,55178,55179,55180,55181,55182,55183,55184,55185,55186,55187,55188,55189,55190,55191,55192,55193,55194,55195,55196,55197,55198,55199,55200,55201,55202,55203,55216,55217,55218,55219,55220,55221,55222,55223,55224,55225,55226,55227,55228,55229,55230,55231,55232,55233,55234,55235,55236,55237,55238,55243,55244,55245,55246,55247,55248,55249,55250,55251,55252,55253,55254,55255,55256,55257,55258,55259,55260,55261,55262,55263,55264,55265,55266,55267,55268,55269,55270,55271,55272,55273,55274,55275,55276,55277,55278,55279,55280,55281,55282,55283,55284,55285,55286,55287,55288,55289,55290,55291,63744,63745,63746,63747,63748,63749,63750,63751,63752,63753,63754,63755,63756,63757,63758,63759,63760,63761,63762,63763,63764,63765,63766,63767,63768,63769,63770,63771,63772,63773,63774,63775,63776,63777,63778,63779,63780,63781,63782,63783,63784,63785,63786,63787,63788,63789,63790,63791,63792,63793,63794,63795,63796,63797,63798,63799,63800,63801,63802,63803,63804,63805,63806,63807,63808,63809,63810,63811,63812,63813,63814,63815,63816,63817,63818,63819,63820,63821,63822,63823,63824,63825,63826,63827,63828,63829,63830,63831,63832,63833,63834,63835,63836,63837,63838,63839,63840,63841,63842,63843,63844,63845,63846,63847,63848,63849,63850,63851,63852,63853,63854,63855,63856,63857,63858,63859,63860,63861,63862,63863,63864,63865,63866,63867,63868,63869,63870,63871,63872,63873,63874,63875,63876,63877,63878,63879,63880,63881,63882,63883,63884,63885,63886,63887,63888,63889,63890,63891,63892,63893,63894,63895,63896,63897,63898,63899,63900,63901,63902,63903,63904,63905,63906,63907,63908,63909,63910,63911,63912,63913,63914,63915,63916,63917,63918,63919,63920,63921,63922,63923,63924,63925,63926,63927,63928,63929,63930,63931,63932,63933,63934,63935,63936,63937,63938,63939,63940,63941,63942,63943,63944,63945,63946,63947,63948,63949,63950,63951,63952,63953,63954,63955,63956,63957,63958,63959,63960,63961,63962,63963,63964,63965,63966,63967,63968,63969,63970,63971,63972,63973,63974,63975,63976,63977,63978,63979,63980,63981,63982,63983,63984,63985,63986,63987,63988,63989,63990,63991,63992,63993,63994,63995,63996,63997,63998,63999,64000,64001,64002,64003,64004,64005,64006,64007,64008,64009,64010,64011,64012,64013,64014,64015,64016,64017,64018,64019,64020,64021,64022,64023,64024,64025,64026,64027,64028,64029,64030,64031,64032,64033,64034,64035,64036,64037,64038,64039,64040,64041,64042,64043,64044,64045,64046,64047,64048,64049,64050,64051,64052,64053,64054,64055,64056,64057,64058,64059,64060,64061,64062,64063,64064,64065,64066,64067,64068,64069,64070,64071,64072,64073,64074,64075,64076,64077,64078,64079,64080,64081,64082,64083,64084,64085,64086,64087,64088,64089,64090,64091,64092,64093,64094,64095,64096,64097,64098,64099,64100,64101,64102,64103,64104,64105,64106,64107,64108,64109,64112,64113,64114,64115,64116,64117,64118,64119,64120,64121,64122,64123,64124,64125,64126,64127,64128,64129,64130,64131,64132,64133,64134,64135,64136,64137,64138,64139,64140,64141,64142,64143,64144,64145,64146,64147,64148,64149,64150,64151,64152,64153,64154,64155,64156,64157,64158,64159,64160,64161,64162,64163,64164,64165,64166,64167,64168,64169,64170,64171,64172,64173,64174,64175,64176,64177,64178,64179,64180,64181,64182,64183,64184,64185,64186,64187,64188,64189,64190,64191,64192,64193,64194,64195,64196,64197,64198,64199,64200,64201,64202,64203,64204,64205,64206,64207,64208,64209,64210,64211,64212,64213,64214,64215,64216,64217,64256,64257,64258,64259,64260,64261,64262,64275,64276,64277,64278,64279,64285,64287,64288,64289,64290,64291,64292,64293,64294,64295,64296,64298,64299,64300,64301,64302,64303,64304,64305,64306,64307,64308,64309,64310,64312,64313,64314,64315,64316,64318,64320,64321,64323,64324,64326,64327,64328,64329,64330,64331,64332,64333,64334,64335,64336,64337,64338,64339,64340,64341,64342,64343,64344,64345,64346,64347,64348,64349,64350,64351,64352,64353,64354,64355,64356,64357,64358,64359,64360,64361,64362,64363,64364,64365,64366,64367,64368,64369,64370,64371,64372,64373,64374,64375,64376,64377,64378,64379,64380,64381,64382,64383,64384,64385,64386,64387,64388,64389,64390,64391,64392,64393,64394,64395,64396,64397,64398,64399,64400,64401,64402,64403,64404,64405,64406,64407,64408,64409,64410,64411,64412,64413,64414,64415,64416,64417,64418,64419,64420,64421,64422,64423,64424,64425,64426,64427,64428,64429,64430,64431,64432,64433,64467,64468,64469,64470,64471,64472,64473,64474,64475,64476,64477,64478,64479,64480,64481,64482,64483,64484,64485,64486,64487,64488,64489,64490,64491,64492,64493,64494,64495,64496,64497,64498,64499,64500,64501,64502,64503,64504,64505,64506,64507,64508,64509,64510,64511,64512,64513,64514,64515,64516,64517,64518,64519,64520,64521,64522,64523,64524,64525,64526,64527,64528,64529,64530,64531,64532,64533,64534,64535,64536,64537,64538,64539,64540,64541,64542,64543,64544,64545,64546,64547,64548,64549,64550,64551,64552,64553,64554,64555,64556,64557,64558,64559,64560,64561,64562,64563,64564,64565,64566,64567,64568,64569,64570,64571,64572,64573,64574,64575,64576,64577,64578,64579,64580,64581,64582,64583,64584,64585,64586,64587,64588,64589,64590,64591,64592,64593,64594,64595,64596,64597,64598,64599,64600,64601,64602,64603,64604,64605,64606,64607,64608,64609,64610,64611,64612,64613,64614,64615,64616,64617,64618,64619,64620,64621,64622,64623,64624,64625,64626,64627,64628,64629,64630,64631,64632,64633,64634,64635,64636,64637,64638,64639,64640,64641,64642,64643,64644,64645,64646,64647,64648,64649,64650,64651,64652,64653,64654,64655,64656,64657,64658,64659,64660,64661,64662,64663,64664,64665,64666,64667,64668,64669,64670,64671,64672,64673,64674,64675,64676,64677,64678,64679,64680,64681,64682,64683,64684,64685,64686,64687,64688,64689,64690,64691,64692,64693,64694,64695,64696,64697,64698,64699,64700,64701,64702,64703,64704,64705,64706,64707,64708,64709,64710,64711,64712,64713,64714,64715,64716,64717,64718,64719,64720,64721,64722,64723,64724,64725,64726,64727,64728,64729,64730,64731,64732,64733,64734,64735,64736,64737,64738,64739,64740,64741,64742,64743,64744,64745,64746,64747,64748,64749,64750,64751,64752,64753,64754,64755,64756,64757,64758,64759,64760,64761,64762,64763,64764,64765,64766,64767,64768,64769,64770,64771,64772,64773,64774,64775,64776,64777,64778,64779,64780,64781,64782,64783,64784,64785,64786,64787,64788,64789,64790,64791,64792,64793,64794,64795,64796,64797,64798,64799,64800,64801,64802,64803,64804,64805,64806,64807,64808,64809,64810,64811,64812,64813,64814,64815,64816,64817,64818,64819,64820,64821,64822,64823,64824,64825,64826,64827,64828,64829,64848,64849,64850,64851,64852,64853,64854,64855,64856,64857,64858,64859,64860,64861,64862,64863,64864,64865,64866,64867,64868,64869,64870,64871,64872,64873,64874,64875,64876,64877,64878,64879,64880,64881,64882,64883,64884,64885,64886,64887,64888,64889,64890,64891,64892,64893,64894,64895,64896,64897,64898,64899,64900,64901,64902,64903,64904,64905,64906,64907,64908,64909,64910,64911,64914,64915,64916,64917,64918,64919,64920,64921,64922,64923,64924,64925,64926,64927,64928,64929,64930,64931,64932,64933,64934,64935,64936,64937,64938,64939,64940,64941,64942,64943,64944,64945,64946,64947,64948,64949,64950,64951,64952,64953,64954,64955,64956,64957,64958,64959,64960,64961,64962,64963,64964,64965,64966,64967,65008,65009,65010,65011,65012,65013,65014,65015,65016,65017,65018,65019,65136,65137,65138,65139,65140,65142,65143,65144,65145,65146,65147,65148,65149,65150,65151,65152,65153,65154,65155,65156,65157,65158,65159,65160,65161,65162,65163,65164,65165,65166,65167,65168,65169,65170,65171,65172,65173,65174,65175,65176,65177,65178,65179,65180,65181,65182,65183,65184,65185,65186,65187,65188,65189,65190,65191,65192,65193,65194,65195,65196,65197,65198,65199,65200,65201,65202,65203,65204,65205,65206,65207,65208,65209,65210,65211,65212,65213,65214,65215,65216,65217,65218,65219,65220,65221,65222,65223,65224,65225,65226,65227,65228,65229,65230,65231,65232,65233,65234,65235,65236,65237,65238,65239,65240,65241,65242,65243,65244,65245,65246,65247,65248,65249,65250,65251,65252,65253,65254,65255,65256,65257,65258,65259,65260,65261,65262,65263,65264,65265,65266,65267,65268,65269,65270,65271,65272,65273,65274,65275,65276,65313,65314,65315,65316,65317,65318,65319,65320,65321,65322,65323,65324,65325,65326,65327,65328,65329,65330,65331,65332,65333,65334,65335,65336,65337,65338,65345,65346,65347,65348,65349,65350,65351,65352,65353,65354,65355,65356,65357,65358,65359,65360,65361,65362,65363,65364,65365,65366,65367,65368,65369,65370,65382,65383,65384,65385,65386,65387,65388,65389,65390,65391,65392,65393,65394,65395,65396,65397,65398,65399,65400,65401,65402,65403,65404,65405,65406,65407,65408,65409,65410,65411,65412,65413,65414,65415,65416,65417,65418,65419,65420,65421,65422,65423,65424,65425,65426,65427,65428,65429,65430,65431,65432,65433,65434,65435,65436,65437,65438,65439,65440,65441,65442,65443,65444,65445,65446,65447,65448,65449,65450,65451,65452,65453,65454,65455,65456,65457,65458,65459,65460,65461,65462,65463,65464,65465,65466,65467,65468,65469,65470,65474,65475,65476,65477,65478,65479,65482,65483,65484,65485,65486,65487,65490,65491,65492,65493,65494,65495,65498,65499,65500".split(",").map(function(e){return parseInt(e,10)});e.exports=t},29709:function(e,t,n){"use strict";var i=n(94298),r=n(3),o=n(34936),a=n(51675),s=n(8072);e.exports={validate:function(e,t){var n,i=e.toString().toLowerCase(),l=new s(t),c=r[i];if(c){if("number"!=typeof c){if(o.isAny(l,"inherit | initial | unset")){if(l.hasNext())throw n=l.next(),new a("Expected end of value but found '"+n+"'.",n.line,n.col);return}this.singleProperty(c,l)}}else if(0!==i.indexOf("-"))throw new a("Unknown property '"+e+"'.",e.line,e.col)},singleProperty:function(e,t){var n,r=t.value;if(!i.parse(e).match(t))throw t.hasNext()&&!t.isFirst()?(n=t.peek(),new a("Expected end of value but found '"+n+"'.",n.line,n.col)):new a("Expected ("+o.describe(e)+") but found '"+r+"'.",r.line,r.col);if(t.hasNext())throw n=t.next(),new a("Expected end of value but found '"+n+"'.",n.line,n.col)}}},30119:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M120 0h8v128h-8zM0 0h8v128H0zm24 16h32v96H24zm48 0h32v96H72z"/></svg>'},30560:function(){},30655:function(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},30789:function(){},31507:function(){},31513:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"link-rel-canonical-require",description:'<link rel="canonical"> with non-blank href must be present in <head> tag.',init(e,t){let n=!1,i=!1,r="",o=null;e.addListener("tagstart",t=>{const a=t.tagName.toLowerCase();if("head"===a)n=!0,o=t;else if("link"===a){const n=e.getMapAttrs(t.attrs);n.rel&&"canonical"===n.rel.toLowerCase()&&(i=!0,r=n.href||"")}}),e.addListener("end",()=>{n&&o&&(i?""===r.trim()&&t.error('<link rel="canonical"> href attribute must not be empty.',o.line,o.col,this,o.raw):t.error('<link rel="canonical"> must be present in <head> tag.',o.line,o.col,this,o.raw))})}}},31732:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M0 120h128v8H0zm16-40h96v32H16zm0-40h96v32H16z"/></svg>'},31799:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="-0.75 -0.75 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" class="bricks-svg"><path d="M3.75 12.188h4.688" stroke-width="1.5"/><path d="M11.25 15V7.5h2.813a1.875 1.875 0 0 1 1.874 1.875v.938a1.875 1.875 0 0 1-1.874 1.874H11.25" stroke-width="1.5"/><path d="M18.75 7.5V15" stroke-width="1.5"/><path d="M8.438 15V9.844a2.344 2.344 0 0 0-4.688 0V15" stroke-width="1.5"/></svg>'},32122:function(){},32137:function(e){var t,n;t="undefined"!=typeof window?window:this,n=function(){function e(){}let t=e.prototype;return t.on=function(e,t){if(!e||!t)return this;let n=this._events=this._events||{},i=n[e]=n[e]||[];return i.includes(t)||i.push(t),this},t.once=function(e,t){if(!e||!t)return this;this.on(e,t);let n=this._onceEvents=this._onceEvents||{};return(n[e]=n[e]||{})[t]=!0,this},t.off=function(e,t){let n=this._events&&this._events[e];if(!n||!n.length)return this;let i=n.indexOf(t);return-1!=i&&n.splice(i,1),this},t.emitEvent=function(e,t){let n=this._events&&this._events[e];if(!n||!n.length)return this;n=n.slice(0),t=t||[];let i=this._onceEvents&&this._onceEvents[e];for(let r of n)i&&i[r]&&(this.off(e,r),delete i[r]),r.apply(this,t);return this},t.allOff=function(){return delete this._events,delete this._onceEvents,this},e},e.exports?e.exports=n():t.EvEmitter=n()},32657:function(e){e.exports='<svg fill="currentcolor" viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M13 6.993h-.013l-2.16-2.159 2.152-2.207v-.896l-.324-.324h-4.1l-.33.302v.523L7.009 1.013V1L7 1.007 6.993 1v.014l-.645.645-.269-.27H2.018l-.32.346v.943l.309.308h.36v2.655L1.014 6.994H1L1.007 7 1 7.007h.014L2.367 8.36v3.234l.453.261h1.161l.929-.952 2.083 2.083V13L7 12.993l.007.007v-.014l1.255-1.254h.243a.13.13 0 0 0 .124-.09l.074-.213a.13.13 0 0 0-.019-.12l.731-.73-.306.98a.133.133 0 0 0 .128.173h.912c.053-.001.1-.032.121-.082l.083-.197a.135.135 0 0 0-.124-.182h-.037l.42-1.322h.615l-.508 1.61a.133.133 0 0 0 .128.172h1.001a.13.13 0 0 0 .124-.085l.082-.214a.133.133 0 0 0-.124-.179h-.073l.566-1.836a.13.13 0 0 0-.02-.12l-.187-.253-.002-.002a.13.13 0 0 0-.104-.051h-.718a.13.13 0 0 0-.095.04l-.2.22h-.312l-.021-.023 2.222-2.222H13L12.993 7zM5.919 11.57l.79-2.255h-.251l.149-.152h.829l-.781 2.278h.311l-.04.129zM7.767 7.81l.074.076-.134.461-.112.113H7.11l-.09-.09.155-.436.144-.123zm-3.972 3.604h-.856l-.132-.075V2.546H2.19l-.05-.05v-.588l.071-.077h3.686l.106.107v.554l-.071.086h-.54v4.344l4.404-4.344H8.753l-.087-.094v-.581l.06-.056h3.745l.066.067v.535L7.49 7.625h-.208l-.01.002a.13.13 0 0 0-.06.03l-.171.147-.002.002a.14.14 0 0 0-.036.056l-.148.415zm7.384-1.976.237-.26h.667l.155.208-.633 2.053h.247l-.04.105h-.892l.562-1.782h-1.008l-.538 1.695h.212l-.036.087h-.803l.554-1.774H8.814l-.53 1.67H8.5l-.036.104h-.83l.757-2.23h-.293l.046-.135h.825l.259.268h.453l.245-.277h.531l.244.268z"/></svg>'},32861:function(){},33264:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"title-require",description:"<title> must be present in <head> tag.",init(e,t){let n=!1,i=!1;const r=e=>{const t=e.tagName.toLowerCase();"head"===t?n=!0:"title"===t&&n&&(i=!0)},o=n=>{const a=n.tagName.toLowerCase();if(i&&"title"===a){const e=n.lastEvent;("text"!==e.type||"text"===e.type&&!0===/^\s*$/.test(e.raw))&&t.error("<title></title> must not be empty.",n.line,n.col,this,n.raw)}else"head"===a&&(!1===i&&t.error("<title> must be present in <head> tag.",n.line,n.col,this,n.raw),e.removeListener("tagstart",r),e.removeListener("tagend",o))};e.addListener("tagstart",r),e.addListener("tagend",o)}}},33444:function(e){e.exports='<svg version="1.1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="bricks-svg"><g fill="currentColor"><path d="M23.913 12.188c-.031-.068-.781-1.699-2.839-3.367a1 1 0 0 0-1.26 1.553c1.028.834 1.654 1.642 1.981 2.139-1.199 1.453-5.031 5.586-9.795 5.586-.441 0-.894-.036-1.348-.106a1 1 0 0 0-.308 1.977c.555.086 1.111.13 1.656.13 6.787 0 11.611-6.635 11.812-6.918.208-.291.246-.67.101-.994"/><path d="M2.874 16.333a.999.999 0 1 0 1.263-1.549c-1.004-.82-1.613-1.61-1.935-2.099C3.401 11.234 7.235 7.099 12 7.099q.462 0 .936.051a1 1 0 1 0 .218-1.988A11 11 0 0 0 12 5.099C5.212 5.099.389 11.734.186 12.018a1 1 0 0 0-.1.988c.03.067.758 1.673 2.788 3.327"/><path d="M12.583 16.223a4.005 4.005 0 0 0 3.816-5.197l-5.013 5.014c.378.119.781.183 1.197.183"/><path d="M8.583 12.223a4 4 0 0 0 .097.867l4.77-4.769a4 4 0 0 0-.866-.097 4.003 4.003 0 0 0-4.001 3.999"/><path d="M23.051 1.548a1 1 0 0 0-1.396-.016q-.01.006-.019.016l-19.5 19.5c-.353.279-.429.989 0 1.414l.004.004a1.024 1.024 0 0 0 1.405 0l.005-.004 19.5-19.5a1 1 0 0 0 .001-1.414"/></g><path fill="none" d="M0 0h24v24H0Z"/></svg>'},33548:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"spec-char-escape",description:"Special characters must be escaped.",init(e,t){e.addListener("text",n=>{const i=n.raw,r=/([<>])/g;let o;for(;o=r.exec(i);){const i=e.fixPos(n,o.index);t.error(`Special characters must be escaped : [ ${o[0]} ].`,i.line,i.col,this,n.raw)}})}}},33821:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M0 120h128v8H0zM0 0h128v8H0zm16 20h96v32H16zm0 56h96v32H16z"/></svg>'},33825:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M1.5 2.997v18a1.5 1.5 0 0 0 1.5 1.5h18a1.5 1.5 0 0 0 1.5-1.5v-18a1.5 1.5 0 0 0-1.5-1.5H3a1.5 1.5 0 0 0-1.5 1.5" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M12.003 22.497v-21" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M12.003 11.997h10" stroke-width="2"/></svg>'},33845:function(e){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},34148:function(e){e.exports=function(){return(new Date).getTime()}},34529:function(e,t,n){"use strict";var i=n(11514)(); /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org> * @license MIT */function r(e,t){if(e===t)return 0;for(var n=e.length,i=t.length,r=0,o=Math.min(n,i);r<o;++r)if(e[r]!==t[r]){n=e[r],i=t[r];break}return n<i?-1:i<n?1:0}function o(e){return n.g.Buffer&&"function"==typeof n.g.Buffer.isBuffer?n.g.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var a=n(94591),s=Object.prototype.hasOwnProperty,l=Array.prototype.slice,c="foo"===function(){}.name;function u(e){return Object.prototype.toString.call(e)}function d(e){return!o(e)&&("function"==typeof n.g.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}var p=e.exports=y,h=/\s*function\s+([^\(\s]*)\s*/;function f(e){if(a.isFunction(e)){if(c)return e.name;var t=e.toString().match(h);return t&&t[1]}}function m(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function g(e){if(c||!a.isFunction(e))return a.inspect(e);var t=f(e);return"[Function"+(t?": "+t:"")+"]"}function v(e,t,n,i,r){throw new p.AssertionError({message:n,actual:e,expected:t,operator:i,stackStartFunction:r})}function y(e,t){e||v(e,!0,t,"==",p.ok)}function b(e,t,n,i){if(e===t)return!0;if(o(e)&&o(t))return 0===r(e,t);if(a.isDate(e)&&a.isDate(t))return e.getTime()===t.getTime();if(a.isRegExp(e)&&a.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"==typeof e||null!==t&&"object"==typeof t){if(d(e)&&d(t)&&u(e)===u(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===r(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(o(e)!==o(t))return!1;var s=(i=i||{actual:[],expected:[]}).actual.indexOf(e);return-1!==s&&s===i.expected.indexOf(t)||(i.actual.push(e),i.expected.push(t),function(e,t,n,i){if(null==e||null==t)return!1;if(a.isPrimitive(e)||a.isPrimitive(t))return e===t;if(n&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var r=k(e),o=k(t);if(r&&!o||!r&&o)return!1;if(r)return b(e=l.call(e),t=l.call(t),n);var s,c,u=C(e),d=C(t);if(u.length!==d.length)return!1;for(u.sort(),d.sort(),c=u.length-1;c>=0;c--)if(u[c]!==d[c])return!1;for(c=u.length-1;c>=0;c--)if(!b(e[s=u[c]],t[s],n,i))return!1;return!0}(e,t,n,i))}return n?e===t:e==t}function k(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function w(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function _(e,t,n,i){var r;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(i=n,n=null),r=function(e){var t;try{e()}catch(e){t=e}return t}(t),i=(n&&n.name?" ("+n.name+").":".")+(i?" "+i:"."),e&&!r&&v(r,n,"Missing expected exception"+i);var o="string"==typeof i,s=!e&&r&&!n;if((!e&&a.isError(r)&&o&&w(r,n)||s)&&v(r,n,"Got unwanted exception"+i),e&&r&&n&&!w(r,n)||!e&&r)throw r}p.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return m(g(e.actual),128)+" "+e.operator+" "+m(g(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var i=n.stack,r=f(t),o=i.indexOf("\n"+r);if(o>=0){var a=i.indexOf("\n",o+1);i=i.substring(a+1)}this.stack=i}}},a.inherits(p.AssertionError,Error),p.fail=v,p.ok=y,p.equal=function(e,t,n){e!=t&&v(e,t,n,"==",p.equal)},p.notEqual=function(e,t,n){e==t&&v(e,t,n,"!=",p.notEqual)},p.deepEqual=function(e,t,n){b(e,t,!1)||v(e,t,n,"deepEqual",p.deepEqual)},p.deepStrictEqual=function(e,t,n){b(e,t,!0)||v(e,t,n,"deepStrictEqual",p.deepStrictEqual)},p.notDeepEqual=function(e,t,n){b(e,t,!1)&&v(e,t,n,"notDeepEqual",p.notDeepEqual)},p.notDeepStrictEqual=function e(t,n,i){b(t,n,!0)&&v(t,n,i,"notDeepStrictEqual",e)},p.strictEqual=function(e,t,n){e!==t&&v(e,t,n,"===",p.strictEqual)},p.notStrictEqual=function(e,t,n){e===t&&v(e,t,n,"!==",p.notStrictEqual)},p.throws=function(e,t,n){_(!0,e,t,n)},p.doesNotThrow=function(e,t,n){_(!1,e,t,n)},p.ifError=function(e){if(e)throw e},p.strict=i(function e(t,n){t||v(t,!0,n,"==",e)},p,{equal:p.strictEqual,deepEqual:p.deepStrictEqual,notEqual:p.notStrictEqual,notDeepEqual:p.notDeepStrictEqual}),p.strict.strict=p.strict;var C=Object.keys||function(e){var t=[];for(var n in e)s.call(e,n)&&t.push(n);return t}},34687:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M0 120h128v8H0zM0 0h128v8H0zm16 24h96v32H16zm0 48h96v32H16z"/></svg>'},34936:function(e,t,n){"use strict";var i,r,o=e.exports,a=n(94298);i=o,r={isLiteral:function(e,t){var n,i,r=e.text.toString().toLowerCase(),o=t.split(" | "),a=!1;for(n=0,i=o.length;n<i&&!a;n++)"<"===o[n].charAt(0)?a=this.simple[o[n]](e):"()"===o[n].slice(-2)?a="function"===e.type&&e.name===o[n].slice(0,-2):r===o[n].toLowerCase()&&(a=!0);return a},isSimple:function(e){return Boolean(this.simple[e])},isComplex:function(e){return Boolean(this.complex[e])},describe:function(e){return this.complex[e]instanceof a?this.complex[e].toString(0):e},isAny:function(e,t){var n,i,r=t.split(" | "),o=!1;for(n=0,i=r.length;n<i&&!o&&e.hasNext();n++)o=this.isType(e,r[n]);return o},isAnyOfGroup:function(e,t){var n,i,r=t.split(" || "),o=!1;for(n=0,i=r.length;n<i&&!o;n++)o=this.isType(e,r[n]);return!!o&&r[n-1]},isType:function(e,t){var n=e.peek(),i=!1;return"<"!==t.charAt(0)?(i=this.isLiteral(n,t))&&e.next():this.simple[t]?(i=this.simple[t](n))&&e.next():i=this.complex[t]instanceof a?this.complex[t].match(e):this.complex[t](e),i},simple:{__proto__:null,"<absolute-size>":"xx-small | x-small | small | medium | large | x-large | xx-large","<animateable-feature>":"scroll-position | contents | <animateable-feature-name>","<animateable-feature-name>":function(e){return this["<ident>"](e)&&!/^(unset|initial|inherit|will-change|auto|scroll-position|contents)$/i.test(e)},"<angle>":function(e){return"angle"===e.type},"<attachment>":"scroll | fixed | local","<attr>":"attr()","<basic-shape>":"inset() | circle() | ellipse() | polygon()","<bg-image>":"<image> | <gradient> | none","<border-style>":"none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset","<border-width>":"<length> | thin | medium | thick","<box>":"padding-box | border-box | content-box","<clip-source>":"<uri>","<color>":function(e){return"color"===e.type||"transparent"===String(e)||"currentColor"===String(e)},"<color-svg>":function(e){return"color"===e.type},"<content>":"content()","<content-sizing>":"fill-available | -moz-available | -webkit-fill-available | max-content | -moz-max-content | -webkit-max-content | min-content | -moz-min-content | -webkit-min-content | fit-content | -moz-fit-content | -webkit-fit-content","<feature-tag-value>":function(e){return"function"===e.type&&/^[A-Z0-9]{4}$/i.test(e)},"<filter-function>":"blur() | brightness() | contrast() | custom() | drop-shadow() | grayscale() | hue-rotate() | invert() | opacity() | saturate() | sepia()","<flex-basis>":"<width>","<flex-direction>":"row | row-reverse | column | column-reverse","<flex-grow>":"<number>","<flex-shrink>":"<number>","<flex-wrap>":"nowrap | wrap | wrap-reverse","<font-size>":"<absolute-size> | <relative-size> | <length> | <percentage>","<font-stretch>":"normal | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded","<font-style>":"normal | italic | oblique","<font-variant-caps>":"small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps","<font-variant-css21>":"normal | small-caps","<font-weight>":"normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900","<generic-family>":"serif | sans-serif | cursive | fantasy | monospace","<geometry-box>":"<shape-box> | fill-box | stroke-box | view-box","<glyph-angle>":function(e){return"angle"===e.type&&"deg"===e.units},"<gradient>":function(e){return"function"===e.type&&/^(?:\-(?:ms|moz|o|webkit)\-)?(?:repeating\-)?(?:radial\-|linear\-)?gradient/i.test(e)},"<icccolor>":"cielab() | cielch() | cielchab() | icc-color() | icc-named-color()","<ident>":function(e){return"identifier"===e.type||e.wasIdent},"<ident-not-generic-family>":function(e){return this["<ident>"](e)&&!this["<generic-family>"](e)},"<image>":"<uri>","<integer>":function(e){return"integer"===e.type},"<length>":function(e){return!("function"!==e.type||!/^(?:\-(?:ms|moz|o|webkit)\-)?calc/i.test(e))||"length"===e.type||"number"===e.type||"integer"===e.type||"0"===String(e)},"<line>":function(e){return"integer"===e.type},"<line-height>":"<number> | <length> | <percentage> | normal","<margin-width>":"<length> | <percentage> | auto","<miterlimit>":function(e){return this["<number>"](e)&&e.value>=1},"<nonnegative-length-or-percentage>":function(e){return(this["<length>"](e)||this["<percentage>"](e))&&("0"===String(e)||"function"===e.type||e.value>=0)},"<nonnegative-number-or-percentage>":function(e){return(this["<number>"](e)||this["<percentage>"](e))&&("0"===String(e)||"function"===e.type||e.value>=0)},"<number>":function(e){return"number"===e.type||this["<integer>"](e)},"<opacity-value>":function(e){return this["<number>"](e)&&e.value>=0&&e.value<=1},"<padding-width>":"<nonnegative-length-or-percentage>","<percentage>":function(e){return"percentage"===e.type||"0"===String(e)},"<relative-size>":"smaller | larger","<shape>":"rect() | inset-rect()","<shape-box>":"<box> | margin-box","<single-animation-direction>":"normal | reverse | alternate | alternate-reverse","<single-animation-name>":function(e){return this["<ident>"](e)&&/^-?[a-z_][-a-z0-9_]+$/i.test(e)&&!/^(none|unset|initial|inherit)$/i.test(e)},"<string>":function(e){return"string"===e.type},"<time>":function(e){return"time"===e.type},"<uri>":function(e){return"uri"===e.type},"<width>":"<margin-width>"},complex:{__proto__:null,"<azimuth>":"<angle> | [ [ left-side | far-left | left | center-left | center | center-right | right | far-right | right-side ] || behind ] | leftwards | rightwards","<bg-position>":"<position>#","<bg-size>":"[ <length> | <percentage> | auto ]{1,2} | cover | contain","<border-image-slice>":a.many([!0],a.cast("<nonnegative-number-or-percentage>"),a.cast("<nonnegative-number-or-percentage>"),a.cast("<nonnegative-number-or-percentage>"),a.cast("<nonnegative-number-or-percentage>"),"fill"),"<border-radius>":"<nonnegative-length-or-percentage>{1,4} [ / <nonnegative-length-or-percentage>{1,4} ]?","<box-shadow>":"none | <shadow>#","<clip-path>":"<basic-shape> || <geometry-box>","<dasharray>":a.cast("<nonnegative-length-or-percentage>").braces(1,1/0,"#",a.cast(",").question()),"<family-name>":"<string> | <ident-not-generic-family> <ident>*","<filter-function-list>":"[ <filter-function> | <uri> ]+","<flex>":"none | [ <flex-grow> <flex-shrink>? || <flex-basis> ]","<font-family>":"[ <generic-family> | <family-name> ]#","<font-shorthand>":"[ <font-style> || <font-variant-css21> || <font-weight> || <font-stretch> ]? <font-size> [ / <line-height> ]? <font-family>","<font-variant-alternates>":"stylistic() || historical-forms || styleset() || character-variant() || swash() || ornaments() || annotation()","<font-variant-ligatures>":"[ common-ligatures | no-common-ligatures ] || [ discretionary-ligatures | no-discretionary-ligatures ] || [ historical-ligatures | no-historical-ligatures ] || [ contextual | no-contextual ]","<font-variant-numeric>":"[ lining-nums | oldstyle-nums ] || [ proportional-nums | tabular-nums ] || [ diagonal-fractions | stacked-fractions ] || ordinal || slashed-zero","<font-variant-east-asian>":"[ jis78 | jis83 | jis90 | jis04 | simplified | traditional ] || [ full-width | proportional-width ] || ruby","<paint>":"<paint-basic> | <uri> <paint-basic>?","<paint-basic>":"none | currentColor | <color-svg> <icccolor>?","<position>":"[ center | [ left | right ] [ <percentage> | <length> ]? ] && [ center | [ top | bottom ] [ <percentage> | <length> ]? ] | [ left | center | right | <percentage> | <length> ] [ top | center | bottom | <percentage> | <length> ] | [ left | center | right | top | bottom | <percentage> | <length> ]","<repeat-style>":"repeat-x | repeat-y | [ repeat | space | round | no-repeat ]{1,2}","<shadow>":a.many([!0],a.cast("<length>").braces(2,4),"inset","<color>"),"<text-decoration-color>":"<color>","<text-decoration-line>":"none | [ underline || overline || line-through || blink ]","<text-decoration-style>":"solid | double | dotted | dashed | wavy","<will-change>":"auto | <animateable-feature>#","<x-one-radius>":"[ <length> | <percentage> ]{1,2}"}},Object.keys(r).forEach(function(e){i[e]=r[e]}),Object.keys(o.simple).forEach(function(e){var t=o.simple[e];"string"==typeof t&&(o.simple[e]=function(e){return o.isLiteral(e,t)})}),Object.keys(o.complex).forEach(function(e){var t=o.complex[e];"string"==typeof t&&(o.complex[e]=a.parse(t))}),o.complex["<font-variant>"]=a.oror({expand:"<font-variant-ligatures>"},{expand:"<font-variant-alternates>"},"<font-variant-caps>",{expand:"<font-variant-numeric>"},{expand:"<font-variant-east-asian>"})},35033:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M10.12 9.06a4.38 4.38 0 0 0-3.265-1.47h-1.47c-3.395 0-5.517 3.675-3.82 6.615a4.41 4.41 0 0 0 3.82 2.205h1.47a4.39 4.39 0 0 0 3.265-1.47" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M13.88 9.06a4.38 4.38 0 0 1 3.265-1.47h1.47c3.395 0 5.517 3.675 3.82 6.615a4.41 4.41 0 0 1-3.82 2.205h-1.47a4.38 4.38 0 0 1-3.265-1.47" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M6.855 11.999h10.29" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},35115:function(){},35321:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14" class="bricks-svg"><g id="horizontal-toggle-button-single-right"><path id="Vector 3959" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M9.5 11h-5a4 4 0 1 1 0-8h5a4 4 0 0 1 0 8" stroke-width="1"/><path id="Ellipse 1804" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M7.5 7a2 2 0 1 0 4 0 2 2 0 1 0-4 0" stroke-width="1"/></g></svg>'},35345:function(e){"use strict";e.exports=URIError},35392:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M120 0h8v128h-8zM0 0h8v128H0zm16 28h96v32H16zm0 40h96v32H16z"/></svg>'},35541:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M23.025 6.64 12.519 17.145a.736.736 0 0 1-1.038 0L.975 6.64" stroke-width="2"/></svg>'},35777:function(){},35997:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M15.75 4.5h3.75A1.5 1.5 0 0 1 21 6v15.75a1.5 1.5 0 0 1-1.5 1.5h-15a1.5 1.5 0 0 1-1.5-1.5V6a1.5 1.5 0 0 1 1.5-1.5h3.75a3.75 3.75 0 0 1 7.5 0" stroke-width="2"/><path stroke="currentColor" d="M12 4.511a.375.375 0 0 1 0-.75" stroke-width="2"/><path stroke="currentColor" d="M12 4.511a.375.375 0 0 0 0-.75" stroke-width="2"/></svg>'},36148:function(){},36460:function(){},36556:function(e,t,n){"use strict";var i=n(70453),r=n(73126),o=r([i("%String.prototype.indexOf%")]);e.exports=function(e,t){var n=i(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?r([n]):n}},36622:function(e){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},36753:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M.75 8.248v-6a1.5 1.5 0 0 1 1.5-1.5h6" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M23.25 8.248v-6a1.5 1.5 0 0 0-1.5-1.5h-6" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M.75 15.748v6a1.5 1.5 0 0 0 1.5 1.5h6" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M23.25 15.748v6a1.5 1.5 0 0 1-1.5 1.5h-6" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M5.25 5.248h13.5v13.5H5.25z" stroke-width="2"/></svg>'},36876:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"frame-title-require",description:"A <frame> or <iframe> element must have an accessible name.",init(e,t){e.addListener("tagstart",n=>{const i=n.tagName.toLowerCase(),r=e.getMapAttrs(n.attrs),o=n.col+i.length+1;if("frame"===i||"iframe"===i){const e=r.role;if("presentation"===e||"none"===e)return;const a="aria-label"in r&&""!==r["aria-label"].trim(),s="aria-labelledby"in r&&""!==r["aria-labelledby"].trim(),l="title"in r&&""!==r.title.trim();a||s||l||t.warn(`A <${i}> element must have an accessible name.`,n.line,o,this,n.raw)}})}}},36949:function(){},37004:function(e){e.exports='<svg version="1.1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="bricks-svg"><g fill="currentColor"><path d="M19 0H5a1 1 0 0 0-1 1v3a1 1 0 1 0 2 0V2h5v14H9a1 1 0 1 0 0 2h6a1 1 0 1 0 0-2h-2V2h5v2a1 1 0 1 0 2 0V1a1 1 0 0 0-1-1"/><path d="m18.931 21.585.868-.602H4.201l.868.602A1.001 1.001 0 0 1 3.93 23.23l-3.5-2.424c-.562-.389-.558-1.256-.009-1.638l3.5-2.483a1 1 0 1 1 1.157 1.63l-.94.685h15.725l-.94-.685a.999.999 0 1 1 1.156-1.63l3.5 2.483c.548.382.555 1.249-.009 1.638l-3.5 2.424a1.001 1.001 0 0 1-1.139-1.645"/></g><path fill="none" d="M0 0h24v24H0Z"/></svg>'},37007:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,i=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var r=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise(function(n,i){function r(n){e.removeListener(t,o),i(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",r),n([].slice.call(arguments))}m(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&m(e,"error",t,n)}(e,r,{once:!0})})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,i){var r,o,a,c;if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=i?[n,a]:[a,n]:i?a.unshift(n):a.push(n),(r=l(e))>0&&a.length>r&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,c=u,console&&console.warn&&console.warn(c)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=u.bind(i);return r.listener=n,i.wrapFn=r,r}function p(e,t,n){var i=e._events;if(void 0===i)return[];var r=i[t];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(r):f(r,r.length)}function h(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function f(e,t){for(var n=new Array(t),i=0;i<t;++i)n[i]=e[i];return n}function m(e,t,n,i){if("function"==typeof e.on)i.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function r(o){i.once&&e.removeEventListener(t,r),n(o)})}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)i(l,this,t);else{var c=l.length,u=f(l,c);for(n=0;n<c;++n)i(u[n],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,i,r,o,a;if(s(t),void 0===(i=this._events))return this;if(void 0===(n=i[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(r=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,r=o;break}if(r<0)return this;0===r?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,r),1===n.length&&(i[e]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,i;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var r,o=Object.keys(n);for(i=0;i<o.length;++i)"removeListener"!==(r=o[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this},o.prototype.listeners=function(e){return p(this,e,!0)},o.prototype.rawListeners=function(e){return p(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},37090:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="-1 -1 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M1.604 5.615h18.792s.916 0 .916.916v8.938s0 .916-.916.916H1.604s-.916 0-.916-.916V6.53s0-.916.916-.916" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M13.52 5.844v10.541" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m16.042 9.969 1.375 1.833 1.375-1.833" stroke-width="2"/></svg>'},37131:function(e){"use strict";var t=e.exports={__proto__:null,":first-letter":1,":first-line":1,":before":1,":after":1};t.ELEMENT=1,t.CLASS=2,t.isElement=function(e){return 0===e.indexOf("::")||t[e.toLowerCase()]===t.ELEMENT}},37388:function(e){"use strict";function t(e,t,n,i){this.col=n,this.line=t,this.text=e,this.type=i}e.exports=t,t.fromToken=function(e){return new t(e.value,e.startLine,e.startCol)},t.prototype={constructor:t,valueOf:function(){return this.toString()},toString:function(){return this.text}}},37680:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"attr-value-no-duplication",description:"Class attributes should not contain duplicate values. Other attributes can be checked via configuration.",init(e,t,n){const i=Array.isArray(n)?n:["class"];e.addListener("tagstart",e=>{const n=e.attrs;let r;const o=e.col+e.tagName.length+1;for(let a=0,s=n.length;a<s;a++){r=n[a];const s=r.name.toLowerCase();if(!i.includes(s))continue;if(!r.value||!/\s/.test(r.value))continue;const l=r.value.trim().split(/\s+/),c={};for(const n of l){if(n&&!0===c[n]){t.error(`Duplicate value [ ${n} ] was found in attribute [ ${r.name} ].`,e.line,o+r.index,this,r.raw);break}c[n]=!0}}})}}},37802:function(){},38403:function(e,t,n){"use strict";var i=n(1189),r=n(41333)(),o=n(36556),a=n(79612),s=o("Array.prototype.push"),l=o("Object.prototype.propertyIsEnumerable"),c=r?a.getOwnPropertySymbols:null;e.exports=function(e,t){if(null==e)throw new TypeError("target must be an object");var n=a(e);if(1===arguments.length)return n;for(var o=1;o<arguments.length;++o){var u=a(arguments[o]),d=i(u),p=r&&(a.getOwnPropertySymbols||c);if(p)for(var h=p(u),f=0;f<h.length;++f){var m=h[f];l(u,m)&&s(d,m)}for(var g=0;g<d.length;++g){var v=d[g];if(l(u,v)){var y=u[v];n[v]=y}}}return n}},38476:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=class{constructor(){this._listeners={},this._mapCdataTags=this.makeMap("script,style"),this._arrBlocks=[],this.lastEvent=null}makeMap(e){const t={},n=e.split(",");for(let e=0;e<n.length;e++)t[n[e]]=!0;return t}parse(e){const t=this._mapCdataTags,n=/<(?:\/([^\s>]+)\s*|!--([\s\S]*?)--|!([^>]*?)|([\w\-:]+)((?:\s+[^\s"'>\/=\x00-\x0F\x7F\x80-\x9F]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s"'>]*))?)*?)\s*(\/?))>/g,i=/\s*([^\s"'>\/=\x00-\x0F\x7F\x80-\x9F]+)(?:\s*=\s*(?:(")([^"]*)"|(')([^']*)'|([^\s"'>]*)))?/g,r=/\r?\n/g;let o,a,s,l,c,u,d=0,p=null,h=[],f=0,m=0,g=1;const v=this._arrBlocks;this.fire("start",{pos:0,line:1,col:1});const y=()=>{const e=l.find(e=>"type"===e.name)||{value:""};return t[s]&&-1===e.value.indexOf("text/ng-template")},b=(e,t,n,i)=>{const o=n-m+1;for(void 0===i&&(i={}),i.raw=t,i.pos=n,i.line=g,i.col=o,v.push(i),this.fire(e,i);r.exec(t);)g++,m=n+r.lastIndex};for(;o=n.exec(e);)if(a=o.index,a>d&&(u=e.substring(d,a),p?h.push(u):b("text",u,d)),d=n.lastIndex,!(s=o[1])||(p&&s===p&&(u=h.join(""),b("cdata",u,f,{tagName:p,attrs:c}),p=null,c=void 0,h=[]),p))if(p)h.push(o[0]);else if(s=o[4]){l=[];const e=o[5];let t,n=0;for(;t=i.exec(e);){const e=t[1],i=t[2]?t[2]:t[4]?t[4]:"",r=t[3]?t[3]:t[5]?t[5]:t[6]?t[6]:"";l.push({name:e,value:r,quote:i,index:t.index,raw:t[0]}),n+=t[0].length}n===e.length?(b("tagstart",o[0],a,{tagName:s,attrs:l,close:o[6]}),y()&&(p=s,c=l.concat(),h=[],f=d)):b("text",o[0],a)}else(o[2]||o[3])&&b("comment",o[0],a,{content:o[2]||o[3],long:!!o[2]});else b("tagend",o[0],a,{tagName:s});e.length>d&&(u=e.substring(d,e.length),b("text",u,d)),this.fire("end",{pos:d,line:g,col:e.length-m+1})}addListener(e,t){const n=this._listeners,i=e.split(/[,\s]/);let r;for(let e=0,o=i.length;e<o;e++)r=i[e],void 0===n[r]&&(n[r]=[]),n[r].push(t)}fire(e,t){void 0===t&&(t={}),t.type=e;let n=[];const i=this._listeners[e],r=this._listeners.all;void 0!==i&&(n=n.concat(i)),void 0!==r&&(n=n.concat(r));const o=this.lastEvent;null!==o&&(delete o.lastEvent,t.lastEvent=o),this.lastEvent=t;for(let e=0,i=n.length;e<i;e++)n[e].call(this,t)}removeListener(e,t){const n=this._listeners[e];if(void 0!==n)for(let e=0,i=n.length;e<i;e++)if(n[e]===t){n.splice(e,1);break}}fixPos(e,t){const n=e.raw.substr(0,t).split(/\r?\n/),i=n.length-1;let r,o=e.line;return i>0?(o+=i,r=n[i].length+1):r=e.col+t,{line:o,col:r}}getMapAttrs(e){const t={};let n;for(let i=0,r=e.length;i<r;i++)n=e[i],t[n.name]=n.value;return t}}},38675:function(){},38963:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"h1-require",description:"<h1> must be present in <body> tag and not be empty.",init(e,t){let n=0,i=!1,r=null,o=null,a=!1;e.addListener("tagstart",e=>{const t=e.tagName.toLowerCase();"body"===t?(n++,1===n&&(i=!1,r=e)):"h1"===t&&n>0&&(i=!0,o=e,a=!0)}),e.addListener("tagend",e=>{const s=e.tagName.toLowerCase();"h1"===s&&o?(a&&t.warn("<h1> tag must not be empty.",o.line,o.col,this,o.raw),o=null):"body"===s&&(1===n&&!i&&r&&t.warn("<h1> must be present in <body> tag.",r.line,r.col,this,r.raw),n--,n<0&&(n=0))}),e.addListener("text",e=>{o&&a&&e.raw&&!/^\s*$/.test(e.raw)&&(a=!1)}),e.addListener("end",()=>{n>0&&!i&&r&&t.warn("<h1> must be present in <body> tag.",r.line,r.col,this,r.raw)})}}},39038:function(){},39112:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M.75 12.749h10.5" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M15.75 17.249h7.5" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M15.75 21.749V13.5a3.75 3.75 0 0 1 7.5 0v8.25" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M.75 21.749V7.5a5.25 5.25 0 1 1 10.5 0v14.25" stroke-width="2"/></svg>'},39227:function(e,t,n){"use strict";var i=n(7218),r={syntax:{},isStrict:function(){return!!this.directive["use strict"]||this.inClassBody||this.option.module||"implied"===this.option.strict},stmtMissingStrict:function(){return"global"===this.option.strict||!1!==this.option.strict&&!!this.option.globalstrict},allowsGlobalUsd:function(){return"global"===this.option.strict||this.option.globalstrict||this.option.module||this.impliedClosure()},impliedClosure:function(){return this.option.node||this.option.phantom||this.option.browserify},inMoz:function(){return this.option.moz},inES11:function(){return this.esVersion>=11},inES10:function(){return this.esVersion>=10},inES9:function(){return this.esVersion>=9},inES8:function(){return this.esVersion>=8},inES7:function(){return this.esVersion>=7},inES6:function(e){return!(e||!this.option.moz)||this.esVersion>=6},inES5:function(){return!this.esVersion||this.esVersion>=5||this.option.moz},inferEsVersion:function(){var e=null;if(this.option.esversion){if(this.option.es3?e="es3":this.option.es5?e="es5":this.option.esnext&&(e="esnext"),e)return e;2015===this.option.esversion?this.esVersion=6:this.esVersion=this.option.esversion}else this.option.es3?this.esVersion=3:this.option.esnext&&(this.esVersion=6);return null},reset:function(){this.tokens={prev:null,next:null,curr:null},this.option={unstable:{}},this.esVersion=5,this.funct=null,this.ignored={},this.directive=Object.create(null),this.jsonMode=!1,this.lines=[],this.tab="",this.cache={},this.ignoredLines={},this.forinifcheckneeded=!1,this.nameStack=new i,this.inClassBody=!1}};t.w=r},39920:function(e,t,n){function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var r,o;e=n.nmd(e),r=function(e,t){"use strict";var n=[];function r(t,i,r){var o,a;i.lineNumber&&i.columnNumber?(o=e.Pos(i.lineNumber-1,i.columnNumber-1),a=e.Pos(i.lineNumber-1,i.columnNumber)):i.start&&i.end&&(i.end.offset<i.start.offset?(a=e.Pos(i.start.line-1,i.start.column),o=e.Pos(i.end.line-1,i.end.column)):(o=e.Pos(i.start.line-1,i.start.column),a=e.Pos(i.end.line-1,i.end.column))),n.push({message:t,severity:r,from:o,to:a})}function o(e,t){r(e,t,"error")}function a(e,t){r(e,t,"warning")}function s(e,t){for(var n in e.hasOwnProperty("kind")&&function(e,t){if(t.disableEval){if("eval"===e.kind)return a("Eval is evil",e.loc);if("call"===e.kind&&"create_function"===e.what.name)return a("Eval is evil",e.loc)}"exit"===e.kind&&t.disableExit?a("You should not use exit or die",e.loc):t.disablePHP7&&"array"===e.kind&&e.shortForm?a("PHP 7 feature disabled",e.loc):t.disabledFunctions&&"call"===e.kind&&t.disabledFunctions.indexOf(e.what.name)>-1?o('Function "'+e.what.name+'" is not available',e.what.loc):t.deprecatedFunctions&&"call"===e.kind&&t.deprecatedFunctions.indexOf(e.what.name)>-1&&a('Function "'+e.what.name+'" is deprecated',e.what.loc)}(e,t),e)if(e.hasOwnProperty(n)){var r=e[n];if(!r)continue;r.hasOwnProperty("kind")?s(r,t):Array.isArray(r)?r.forEach(function(e){s(e,t)}):"object"===i(r)&&s(r,t)}}e.registerHelper("lint","php",function(e,i){if(n=[],t)try{var r=t.parseCode(e,{parser:{suppressErrors:!0},ast:{withPositions:!0}});if(r.errors&&r.errors.length>0)for(var a=0;a<r.errors.length;a++)o(r.errors[a].message,r.errors[a].loc);s(r,i)}catch(e){console.error("PHP parsing error:",e),o("PHP parsing error: "+e.message,{start:{line:1,column:1},end:{line:1,column:1}})}else console.warn("Warning: php-parser not defined, CodeMirror PHP linting cannot run.");return n});var l=e.helpers.lint.php;e.helpers.lint.php=function(t,n){try{return l(t,n)}catch(t){return console.error("Unexpected error in PHP linting:",t),[{message:"Unexpected linting error",severity:"error",from:e.Pos(0,0),to:e.Pos(0,0)}]}}},o=window.PhpParser||n(94776),"object"==i(t)&&"object"==i(e)?r(n(15237),o):r(CodeMirror,o)},39986:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n={a:{selfclosing:!1,attrsRequired:["href","title"],redundantAttrs:["alt"]},div:{selfclosing:!1},main:{selfclosing:!1,redundantAttrs:["role"]},nav:{selfclosing:!1,redundantAttrs:["role"]},script:{attrsOptional:[["async","async"],["defer","defer"]]},img:{selfclosing:!0,attrsRequired:["src","alt","title"]}};t.default={id:"tags-check",description:"Checks html tags.",init(e,t,i){n={...n,...i},e.addListener("tagstart",e=>{const i=e.attrs,r=e.col+e.tagName.length+1,o=e.tagName.toLowerCase();if(n[o]){const a=n[o];if(!0!==a.selfclosing||e.close?!1===a.selfclosing&&e.close&&t.warn(`The <${o}> tag must not be selfclosing.`,e.line,e.col,this,e.raw):t.warn(`The <${o}> tag must be selfclosing.`,e.line,e.col,this,e.raw),Array.isArray(a.attrsRequired)){a.attrsRequired.forEach(n=>{if(Array.isArray(n)){const a=n.map(e=>e),s=a.shift(),l=a;i.some(e=>e.name===s)?i.forEach(n=>{n.name===s&&-1===l.indexOf(n.value)&&t.error(`The <${o}> tag must have attr '${s}' with one value of '${l.join("' or '")}'.`,e.line,r,this,e.raw)}):t.error(`The <${o}> tag must have attr '${s}'.`,e.line,r,this,e.raw)}else i.some(e=>-1!==n.split("|").indexOf(e.name))||t.error(`The <${o}> tag must have attr '${n}'.`,e.line,r,this,e.raw)})}if(Array.isArray(a.attrsOptional)){a.attrsOptional.forEach(n=>{if(Array.isArray(n)){const a=n.map(e=>e),s=a.shift(),l=a;i.some(e=>e.name===s)&&i.forEach(n=>{n.name===s&&-1===l.indexOf(n.value)&&t.error(`The <${o}> tag must have optional attr '${s}' with one value of '${l.join("' or '")}'.`,e.line,r,this,e.raw)})}})}if(Array.isArray(a.redundantAttrs)){a.redundantAttrs.forEach(n=>{i.some(e=>e.name===n)&&t.error(`The attr '${n}' is redundant for <${o}> and should be omitted.`,e.line,r,this,e.raw)})}}})}}},40039:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M0 0h128v8H0zm16 16h96v32H16zm0 40h96v32H16z"/></svg>'},40100:function(e,t,n){"use strict";var i,r=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},i=[],r=0;r<e.length;r++){var o=e[r],l=t.base?o[0]+t.base:o[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var d=s(u),p={css:o[1],media:o[2],sourceMap:o[3]};-1!==d?(a[d].references++,a[d].updater(p)):a.push({identifier:u,updater:g(p,t),references:1}),i.push(u)}return i}function c(e){var t=document.createElement("style"),i=e.attributes||{};if(void 0===i.nonce){var r=n.nc;r&&(i.nonce=r)}if(Object.keys(i).forEach(function(e){t.setAttribute(e,i[e])}),"function"==typeof e.insert)e.insert(t);else{var a=o(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var u,d=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function p(e,t,n,i){var r=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(e.styleSheet)e.styleSheet.cssText=d(t,r);else{var o=document.createTextNode(r),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function h(e,t,n){var i=n.css,r=n.media,o=n.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var f=null,m=0;function g(e,t){var n,i,r;if(t.singleton){var o=m++;n=f||(f=c(t)),i=p.bind(null,n,o,!1),r=p.bind(null,n,o,!0)}else n=c(t),i=h.bind(null,n,t),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else r()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=r());var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<n.length;i++){var r=s(n[i]);a[r].references--}for(var o=l(e,t),c=0;c<n.length;c++){var u=s(n[c]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}n=o}}}},40173:function(e,t,n){"use strict";e.exports=o;var i=n(51971),r=n(44418);function o(e,t){this._reader=new i(e?e.toString():""),this._token=null,this._tokenData=t,this._lt=[],this._ltIndex=0,this._ltIndexCache=[]}o.createTokenData=function(e){var t=[],n=Object.create(null),i=e.concat([]),r=0,o=i.length+1;for(i.UNKNOWN=-1,i.unshift({name:"EOF"});r<o;r++)t.push(i[r].name),i[i[r].name]=r,i[r].text&&(n[i[r].text]=r);return i.name=function(e){return t[e]},i.type=function(e){return n[e]},i},o.prototype={constructor:o,match:function(e,t){e instanceof Array||(e=[e]);for(var n=this.get(t),i=0,r=e.length;i<r;)if(n===e[i++])return!0;return this.unget(),!1},mustMatch:function(e){var t;if(e instanceof Array||(e=[e]),!this.match.apply(this,arguments))throw t=this.LT(1),new r("Expected "+this._tokenData[e[0]].name+" at line "+t.startLine+", col "+t.startCol+".",t.startLine,t.startCol)},advance:function(e,t){for(;0!==this.LA(0)&&!this.match(e,t);)this.get();return this.LA(0)},get:function(e){var t,n,i=this._tokenData,r=0;if(this._lt.length&&this._ltIndex>=0&&this._ltIndex<this._lt.length){for(r++,this._token=this._lt[this._ltIndex++],n=i[this._token.type];void 0!==n.channel&&e!==n.channel&&this._ltIndex<this._lt.length;)this._token=this._lt[this._ltIndex++],n=i[this._token.type],r++;if((void 0===n.channel||e===n.channel)&&this._ltIndex<=this._lt.length)return this._ltIndexCache.push(r),this._token.type}return(t=this._getToken()).type>-1&&!i[t.type].hide&&(t.channel=i[t.type].channel,this._token=t,this._lt.push(t),this._ltIndexCache.push(this._lt.length-this._ltIndex+r),this._lt.length>5&&this._lt.shift(),this._ltIndexCache.length>5&&this._ltIndexCache.shift(),this._ltIndex=this._lt.length),(n=i[t.type])&&(n.hide||void 0!==n.channel&&e!==n.channel)?this.get(e):t.type},LA:function(e){var t,n=e;if(e>0){if(e>5)throw new Error("Too much lookahead.");for(;n;)t=this.get(),n--;for(;n<e;)this.unget(),n++}else if(e<0){if(!this._lt[this._ltIndex+e])throw new Error("Too much lookbehind.");t=this._lt[this._ltIndex+e].type}else t=this._token.type;return t},LT:function(e){return this.LA(e),this._lt[this._ltIndex+e-1]},peek:function(){return this.LA(1)},token:function(){return this._token},tokenName:function(e){return e<0||e>this._tokenData.length?"UNKNOWN_TOKEN":this._tokenData[e].name},tokenType:function(e){return this._tokenData[e]||-1},unget:function(){if(!this._ltIndexCache.length)throw new Error("Too much lookahead.");this._ltIndex-=this._ltIndexCache.pop(),this._token=this._lt[this._ltIndex-1]}}},40537:function(e,t,n){var i=n(65606),r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},i=0;i<t.length;i++)n[t[i]]=Object.getOwnPropertyDescriptor(e,t[i]);return n},o=/%[sdj%]/g;t.format=function(e){if(!y(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(l(arguments[n]));return t.join(" ")}n=1;for(var i=arguments,r=i.length,a=String(e).replace(o,function(e){if("%%"===e)return"%";if(n>=r)return e;switch(e){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(e){return"[Circular]"}default:return e}}),s=i[n];n<r;s=i[++n])g(s)||!w(s)?a+=" "+s:a+=" "+l(s);return a},t.deprecate=function(e,n){if(void 0!==i&&!0===i.noDeprecation)return e;if(void 0===i)return function(){return t.deprecate(e,n).apply(this,arguments)};var r=!1;return function(){if(!r){if(i.throwDeprecation)throw new Error(n);i.traceDeprecation?console.trace(n):console.error(n),r=!0}return e.apply(this,arguments)}};var a,s={};function l(e,n){var i={seen:[],stylize:u};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),m(n)?i.showHidden=n:n&&t._extend(i,n),b(i.showHidden)&&(i.showHidden=!1),b(i.depth)&&(i.depth=2),b(i.colors)&&(i.colors=!1),b(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=c),d(i,e,i.depth)}function c(e,t){var n=l.styles[t];return n?"["+l.colors[n][0]+"m"+e+"["+l.colors[n][1]+"m":e}function u(e,t){return e}function d(e,n,i){if(e.customInspect&&n&&x(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var r=n.inspect(i,e);return y(r)||(r=d(e,r,i)),r}var o=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(y(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(v(t))return e.stylize(""+t,"number");if(m(t))return e.stylize(""+t,"boolean");if(g(t))return e.stylize("null","null")}(e,n);if(o)return o;var a=Object.keys(n),s=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),C(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return p(n);if(0===a.length){if(x(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(k(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(_(n))return e.stylize(Date.prototype.toString.call(n),"date");if(C(n))return p(n)}var c,u="",w=!1,S=["{","}"];(f(n)&&(w=!0,S=["[","]"]),x(n))&&(u=" [Function"+(n.name?": "+n.name:"")+"]");return k(n)&&(u=" "+RegExp.prototype.toString.call(n)),_(n)&&(u=" "+Date.prototype.toUTCString.call(n)),C(n)&&(u=" "+p(n)),0!==a.length||w&&0!=n.length?i<0?k(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=w?function(e,t,n,i,r){for(var o=[],a=0,s=t.length;a<s;++a)D(t,String(a))?o.push(h(e,t,n,i,String(a),!0)):o.push("");return r.forEach(function(r){r.match(/^\d+$/)||o.push(h(e,t,n,i,r,!0))}),o}(e,n,i,s,a):a.map(function(t){return h(e,n,i,s,t,w)}),e.seen.pop(),function(e,t,n){var i=e.reduce(function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(i>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(c,u,S)):S[0]+u+S[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,n,i,r,o){var a,s,l;if((l=Object.getOwnPropertyDescriptor(t,r)||{value:t[r]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),D(i,r)||(a="["+r+"]"),s||(e.seen.indexOf(l.value)<0?(s=g(n)?d(e,l.value,null):d(e,l.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),b(a)){if(o&&r.match(/^\d+$/))return s;(a=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function f(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function g(e){return null===e}function v(e){return"number"==typeof e}function y(e){return"string"==typeof e}function b(e){return void 0===e}function k(e){return w(e)&&"[object RegExp]"===S(e)}function w(e){return"object"==typeof e&&null!==e}function _(e){return w(e)&&"[object Date]"===S(e)}function C(e){return w(e)&&("[object Error]"===S(e)||e instanceof Error)}function x(e){return"function"==typeof e}function S(e){return Object.prototype.toString.call(e)}function E(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(b(a)&&(a=i.env.NODE_DEBUG||""),e=e.toUpperCase(),!s[e])if(new RegExp("\\b"+e+"\\b","i").test(a)){var n=i.pid;s[e]=function(){var i=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,i)}}else s[e]=function(){};return s[e]},t.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=f,t.isBoolean=m,t.isNull=g,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=y,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=b,t.isRegExp=k,t.isObject=w,t.isDate=_,t.isError=C,t.isFunction=x,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(81135);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function D(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(e=new Date,n=[E(e.getHours()),E(e.getMinutes()),E(e.getSeconds())].join(":"),[e.getDate(),A[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(36622),t._extend=function(e,t){if(!t||!w(t))return e;for(var n=Object.keys(t),i=n.length;i--;)e[n[i]]=t[n[i]];return e};var T="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function I(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(T&&e[T]){var t;if("function"!=typeof(t=e[T]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,T,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,i=new Promise(function(e,i){t=e,n=i}),r=[],o=0;o<arguments.length;o++)r.push(arguments[o]);r.push(function(e,i){e?n(e):t(i)});try{e.apply(this,r)}catch(e){n(e)}return i}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),T&&Object.defineProperty(t,T,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,r(e))},t.promisify.custom=T,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var r=t.pop();if("function"!=typeof r)throw new TypeError("The last argument must be of type Function");var o=this,a=function(){return r.apply(o,arguments)};e.apply(this,t).then(function(e){i.nextTick(a,null,e)},function(e){i.nextTick(I,e,a)})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,r(e)),t}},40576:function(e,t,n){!function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",function(i,r){var o,a,s=i.indentUnit,l={},c=r.htmlMode?t:n;for(var u in c)l[u]=c[u];for(var u in r)l[u]=r[u];function d(e,t){function n(n){return t.tokenize=n,n(e,t)}var i=e.next();return"<"==i?e.eat("!")?e.eat("[")?e.match("CDATA[")?n(f("atom","]]>")):null:e.match("--")?n(f("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(m(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=f("meta","?>"),"meta"):(o=e.eat("/")?"closeTag":"openTag",t.tokenize=p,"tag bracket"):"&"==i?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function p(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=d,o=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return o="equals",null;if("<"==n){t.tokenize=d,t.state=k,t.tagName=t.tagStart=null;var i=t.tokenize(e,t);return i?i+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=h(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function h(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=p;break}return"string"};return t.isInAttribute=!0,t}function f(e,t){return function(n,i){for(;!n.eol();){if(n.match(t)){i.tokenize=d;break}n.next()}return e}}function m(e){return function(t,n){for(var i;null!=(i=t.next());){if("<"==i)return n.tokenize=m(e+1),n.tokenize(t,n);if(">"==i){if(1==e){n.tokenize=d;break}return n.tokenize=m(e-1),n.tokenize(t,n)}}return"meta"}}function g(e){return e&&e.toLowerCase()}function v(e,t,n){this.prev=e.context,this.tagName=t||"",this.indent=e.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function y(e){e.context&&(e.context=e.context.prev)}function b(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!l.contextGrabbers.hasOwnProperty(g(n))||!l.contextGrabbers[g(n)].hasOwnProperty(g(t)))return;y(e)}}function k(e,t,n){return"openTag"==e?(n.tagStart=t.column(),w):"closeTag"==e?_:k}function w(e,t,n){return"word"==e?(n.tagName=t.current(),a="tag",S):l.allowMissingTagName&&"endTag"==e?(a="tag bracket",S(e,t,n)):(a="error",w)}function _(e,t,n){if("word"==e){var i=t.current();return n.context&&n.context.tagName!=i&&l.implicitlyClosed.hasOwnProperty(g(n.context.tagName))&&y(n),n.context&&n.context.tagName==i||!1===l.matchClosing?(a="tag",C):(a="tag error",x)}return l.allowMissingTagName&&"endTag"==e?(a="tag bracket",C(e,t,n)):(a="error",x)}function C(e,t,n){return"endTag"!=e?(a="error",C):(y(n),k)}function x(e,t,n){return a="error",C(e,t,n)}function S(e,t,n){if("word"==e)return a="attribute",E;if("endTag"==e||"selfcloseTag"==e){var i=n.tagName,r=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(g(i))?b(n,i):(b(n,i),n.context=new v(n,i,r==n.indented)),k}return a="error",S}function E(e,t,n){return"equals"==e?A:(l.allowMissing||(a="error"),S(e,t,n))}function A(e,t,n){return"string"==e?D:"word"==e&&l.allowUnquoted?(a="string",S):(a="error",S(e,t,n))}function D(e,t,n){return"string"==e?D:S(e,t,n)}return d.isInText=!0,{startState:function(e){var t={tokenize:d,state:k,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;o=null;var n=t.tokenize(e,t);return(n||o)&&"comment"!=n&&(a=null,t.state=t.state(o||n,e,t),a&&(n="error"==a?n+" error":a)),n},indent:function(t,n,i){var r=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(r&&r.noIndent)return e.Pass;if(t.tokenize!=p&&t.tokenize!=d)return i?i.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==l.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var o=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(o&&o[1])for(;r;){if(r.tagName==o[2]){r=r.prev;break}if(!l.implicitlyClosed.hasOwnProperty(g(r.tagName)))break;r=r.prev}else if(o)for(;r;){var a=l.contextGrabbers[g(r.tagName)];if(!a||!a.hasOwnProperty(g(o[2])))break;r=r.prev}for(;r&&r.prev&&!r.startOfLine;)r=r.prev;return r?r.indent+s:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(e){e.state==A&&(e.state=S)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],n=e.context;n;n=n.prev)t.push(n.tagName);return t.reverse()}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}(n(15237))},40822:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M0 60h128v8H0zm16-40h96v32H16zm0 56h96v32H16z"/></svg>'},40959:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=class{constructor(e,t,n={}){this.html=e,this.lines=e.split(/\r?\n/);const i=/\r?\n/.exec(e);this.brLen=null!==i?i[0].length:0,this.ruleset=t,this.messages=[],this.disabledRulesMap=n}info(e,t,n,i,r){this.report("info",e,t,n,i,r)}warn(e,t,n,i,r){this.report("warning",e,t,n,i,r)}error(e,t,n,i,r){this.report("error",e,t,n,i,r)}report(e,t,n,i,r,o){const a=this.disabledRulesMap[n];if(a){if(!0===a.all)return;if(a.rules&&a.rules.has(r.id))return}const s=this.lines,l=this.brLen;let c="",u=0;for(let e=n-1,t=s.length;e<t&&(c=s[e],u=c.length,i>u&&n<t);e++)n++,1!==(i-=u)&&(i-=l);this.messages.push({type:e,message:t,raw:o,evidence:c,line:n,col:i,rule:{id:r.id,description:r.description,link:`https://htmlhint.com/rules/${r.id}`}})}}},40967:function(){},41237:function(e){"use strict";e.exports=EvalError},41333:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var i in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},41477:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="bricks-svg"><path d="M12 0a12 12 0 1 0 12 12A12 12 0 0 0 12 0m.25 5a1.5 1.5 0 1 1-1.5 1.5 1.5 1.5 0 0 1 1.5-1.5m2.25 13.5h-4a1 1 0 0 1 0-2h.75a.25.25 0 0 0 .25-.25v-4.5a.25.25 0 0 0-.25-.25h-.75a1 1 0 0 1 0-2h1a2 2 0 0 1 2 2v4.75a.25.25 0 0 0 .25.25h.75a1 1 0 0 1 0 2" fill="currentColor" stroke-width="1"/></svg>'},41844:function(){},42310:function(e){e.exports='<svg version="1.1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="bricks-svg"><g fill="currentColor"><path d="M23.5 1H.5a.5.5 0 0 0-.5.5v9a.5.5 0 0 0 .5.5h23a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5"/><path d="M23.5 13H.5a.5.5 0 0 0-.5.5v9a.5.5 0 0 0 .5.5h23a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5"/></g><path fill="none" d="M0 0h24v24H0Z"/></svg>'},42384:function(e){e.exports={export:1,noin:2,initial:4,preAsync:8,async:16,tryClause:32,yield:64}},42444:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"meta-viewport-require",description:'<meta name="viewport"> with non-blank content must be present in <head> tag.',init(e,t){let n=!1,i=!1,r="",o=null;e.addListener("tagstart",t=>{const a=t.tagName.toLowerCase();if("head"===a)n=!0,o=t;else if("meta"===a){const n=e.getMapAttrs(t.attrs);n.name&&"viewport"===n.name.toLowerCase()&&(i=!0,r=n.content||"")}}),e.addListener("end",()=>{n&&o&&(i?""===r.trim()&&t.error('<meta name="viewport"> content attribute must not be empty.',o.line,o.col,this,o.raw):t.error('<meta name="viewport"> must be present in <head> tag.',o.line,o.col,this,o.raw))})}}},42551:function(){},42761:function(e,t,n){ /*! CSSLint v1.0.4 Copyright (c) 2016 Nicole Sullivan and Nicholas C. Zakas. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ var i=n(1779),r=n(5248),o=function(){"use strict";var e=[],t=[],n=/\/\*\s*csslint([^\*]*)\*\//,s=new r.util.EventTarget;return s.version="1.0.4",s.addRule=function(t){e.push(t),e[t.id]=t},s.clearRules=function(){e=[]},s.getRules=function(){return[].concat(e).sort(function(e,t){return e.id>t.id?1:0})},s.getRuleset=function(){for(var t={},n=0,i=e.length;n<i;)t[e[n++].id]=1;return t},s.addFormatter=function(e){t[e.id]=e},s.getFormatter=function(e){return t[e]},s.format=function(e,t,n,i){var r=this.getFormatter(n),o=null;return r&&(o=r.startFormat(),o+=r.formatResults(e,t,i||{}),o+=r.endFormat()),o},s.hasFormat=function(e){return t.hasOwnProperty(e)},s.verify=function(t,s){var l,c,u,d=0,p={},h=[],f=new r.css.Parser({starHack:!0,ieFilters:!0,underscoreHack:!0,strict:!1});c=t.replace(/\n\r?/g,"$split$").split("$split$"),o.Util.forEach(c,function(e,t){var n=e&&e.match(/\/\*[ \t]*csslint[ \t]+allow:[ \t]*([^\*]*)\*\//i),i=n&&n[1],r={};i&&(i.toLowerCase().split(",").forEach(function(e){r[e.trim()]=!0}),Object.keys(r).length>0&&(p[t+1]=r))});var m=null,g=null;for(d in o.Util.forEach(c,function(e,t){null===m&&e.match(/\/\*[ \t]*csslint[ \t]+ignore:start[ \t]*\*\//i)&&(m=t),e.match(/\/\*[ \t]*csslint[ \t]+ignore:end[ \t]*\*\//i)&&(g=t),null!==m&&null!==g&&(h.push([m,g]),m=g=null)}),null!==m&&h.push([m,c.length]),s||(s=this.getRuleset()),n.test(t)&&(s=function(e,t){var i,r=e&&e.match(n),o=r&&r[1];return o&&(i={true:2,"":1,false:0,2:2,1:1,0:0},o.toLowerCase().split(",").forEach(function(e){var n=e.split(":"),r=n[0]||"",o=n[1]||"";t[r.trim()]=i[o.trim()]})),t}(t,s=i(s))),l=new a(c,s,p,h),s.errors=2,s)s.hasOwnProperty(d)&&s[d]&&e[d]&&e[d].init(f,l);try{f.parse(t)}catch(e){l.error("Fatal error, cannot continue: "+e.message,e.line,e.col,{})}return(u={messages:l.messages,stats:l.stats,ruleset:l.ruleset,allow:l.allow,ignore:l.ignore}).messages.sort(function(e,t){return e.rollup&&!t.rollup?1:!e.rollup&&t.rollup?-1:e.line-t.line}),u},s}();function a(e,t,n,i){"use strict";this.messages=[],this.stats=[],this.lines=e,this.ruleset=t,this.allow=n,this.allow||(this.allow={}),this.ignore=i,this.ignore||(this.ignore=[])}a.prototype={constructor:a,error:function(e,t,n,i){"use strict";this.messages.push({type:"error",line:t,col:n,message:e,evidence:this.lines[t-1],rule:i||{}})},warn:function(e,t,n,i){"use strict";this.report(e,t,n,i)},report:function(e,t,n,i){"use strict";if(!this.allow.hasOwnProperty(t)||!this.allow[t].hasOwnProperty(i.id)){var r=!1;o.Util.forEach(this.ignore,function(e){e[0]<=t&&t<=e[1]&&(r=!0)}),r||this.messages.push({type:2===this.ruleset[i.id]?"error":"warning",line:t,col:n,message:e,evidence:this.lines[t-1],rule:i})}},info:function(e,t,n,i){"use strict";this.messages.push({type:"info",line:t,col:n,message:e,evidence:this.lines[t-1],rule:i})},rollupError:function(e,t){"use strict";this.messages.push({type:"error",rollup:!0,message:e,rule:t})},rollupWarn:function(e,t){"use strict";this.messages.push({type:"warning",rollup:!0,message:e,rule:t})},stat:function(e,t){"use strict";this.stats[e]=t}},o._Reporter=a,o.Util={mix:function(e,t){"use strict";var n;for(n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return n},indexOf:function(e,t){"use strict";if(e.indexOf)return e.indexOf(t);for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},forEach:function(e,t){"use strict";if(e.forEach)return e.forEach(t);for(var n=0,i=e.length;n<i;n++)t(e[n],n,e)}},o.addRule({id:"adjoining-classes",name:"Disallow adjoining classes",desc:"Don't use adjoining classes.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-adjoining-classes",browsers:"IE6",init:function(e,t){"use strict";var n=this;e.addListener("startrule",function(i){var r,o,a,s,l,c,u=i.selectors;for(s=0;s<u.length;s++)for(r=u[s],l=0;l<r.parts.length;l++)if((o=r.parts[l]).type===e.SELECTOR_PART_TYPE)for(a=0,c=0;c<o.modifiers.length;c++)"class"===o.modifiers[c].type&&a++,a>1&&t.report("Adjoining classes: "+u[s].text,o.line,o.col,n)})}}),o.addRule({id:"box-model",name:"Beware of broken box size",desc:"Don't use width or height when using padding or border.",url:"https://github.com/CSSLint/csslint/wiki/Beware-of-box-model-size",browsers:"All",init:function(e,t){"use strict";var n,i=this,r={border:1,"border-left":1,"border-right":1,padding:1,"padding-left":1,"padding-right":1},o={border:1,"border-bottom":1,"border-top":1,padding:1,"padding-bottom":1,"padding-top":1},a=!1;function s(){n={},a=!1}function l(){var e,s;if(!a){if(n.height)for(e in o)o.hasOwnProperty(e)&&n[e]&&(s=n[e].value,"padding"===e&&2===s.parts.length&&0===s.parts[0].value||t.report("Using height with "+e+" can sometimes make elements larger than you expect.",n[e].line,n[e].col,i));if(n.width)for(e in r)r.hasOwnProperty(e)&&n[e]&&(s=n[e].value,"padding"===e&&2===s.parts.length&&0===s.parts[1].value||t.report("Using width with "+e+" can sometimes make elements larger than you expect.",n[e].line,n[e].col,i))}}e.addListener("startrule",s),e.addListener("startfontface",s),e.addListener("startpage",s),e.addListener("startpagemargin",s),e.addListener("startkeyframerule",s),e.addListener("startviewport",s),e.addListener("property",function(e){var t=e.property.text.toLowerCase();o[t]||r[t]?/^0\S*$/.test(e.value)||"border"===t&&"none"===e.value.toString()||(n[t]={line:e.property.line,col:e.property.col,value:e.value}):/^(width|height)/i.test(t)&&/^(length|percentage)/.test(e.value.parts[0].type)?n[t]=1:"box-sizing"===t&&(a=!0)}),e.addListener("endrule",l),e.addListener("endfontface",l),e.addListener("endpage",l),e.addListener("endpagemargin",l),e.addListener("endkeyframerule",l),e.addListener("endviewport",l)}}),o.addRule({id:"box-sizing",name:"Disallow use of box-sizing",desc:"The box-sizing properties isn't supported in IE6 and IE7.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-box-sizing",browsers:"IE6, IE7",tags:["Compatibility"],init:function(e,t){"use strict";var n=this;e.addListener("property",function(e){"box-sizing"===e.property.text.toLowerCase()&&t.report("The box-sizing property isn't supported in IE6 and IE7.",e.line,e.col,n)})}}),o.addRule({id:"bulletproof-font-face",name:"Use the bulletproof @font-face syntax",desc:"Use the bulletproof @font-face syntax to avoid 404's in old IE (http://www.fontspring.com/blog/the-new-bulletproof-font-face-syntax).",url:"https://github.com/CSSLint/csslint/wiki/Bulletproof-font-face",browsers:"All",init:function(e,t){"use strict";var n,i,r=this,o=!1,a=!0,s=!1;e.addListener("startfontface",function(){o=!0}),e.addListener("property",function(e){if(o){var t=e.property.toString().toLowerCase(),r=e.value.toString();if(n=e.line,i=e.col,"src"===t){var l=/^\s?url\(['"].+\.eot\?.*['"]\)\s*format\(['"]embedded-opentype['"]\).*$/i;!r.match(l)&&a?(s=!0,a=!1):r.match(l)&&!a&&(s=!1)}}}),e.addListener("endfontface",function(){o=!1,s&&t.report("@font-face declaration doesn't follow the fontspring bulletproof syntax.",n,i,r)})}}),o.addRule({id:"compatible-vendor-prefixes",name:"Require compatible vendor prefixes",desc:"Include all compatible vendor prefixes to reach a wider range of users.",url:"https://github.com/CSSLint/csslint/wiki/Require-compatible-vendor-prefixes",browsers:"All",init:function(e,t){"use strict";var n,i,r,a,s,l,c,u=this,d=!1,p=Array.prototype.push,h=[];for(r in n={animation:"webkit","animation-delay":"webkit","animation-direction":"webkit","animation-duration":"webkit","animation-fill-mode":"webkit","animation-iteration-count":"webkit","animation-name":"webkit","animation-play-state":"webkit","animation-timing-function":"webkit",appearance:"webkit moz","border-end":"webkit moz","border-end-color":"webkit moz","border-end-style":"webkit moz","border-end-width":"webkit moz","border-image":"webkit moz o","border-radius":"webkit","border-start":"webkit moz","border-start-color":"webkit moz","border-start-style":"webkit moz","border-start-width":"webkit moz","box-align":"webkit moz ms","box-direction":"webkit moz ms","box-flex":"webkit moz ms","box-lines":"webkit ms","box-ordinal-group":"webkit moz ms","box-orient":"webkit moz ms","box-pack":"webkit moz ms","box-sizing":"","box-shadow":"","column-count":"webkit moz ms","column-gap":"webkit moz ms","column-rule":"webkit moz ms","column-rule-color":"webkit moz ms","column-rule-style":"webkit moz ms","column-rule-width":"webkit moz ms","column-width":"webkit moz ms",hyphens:"epub moz","line-break":"webkit ms","margin-end":"webkit moz","margin-start":"webkit moz","marquee-speed":"webkit wap","marquee-style":"webkit wap","padding-end":"webkit moz","padding-start":"webkit moz","tab-size":"moz o","text-size-adjust":"webkit ms",transform:"webkit ms","transform-origin":"webkit ms",transition:"","transition-delay":"","transition-duration":"","transition-property":"","transition-timing-function":"","user-modify":"webkit moz","user-select":"webkit moz ms","word-break":"epub ms","writing-mode":"epub ms"})if(n.hasOwnProperty(r)){for(a=[],l=0,c=(s=n[r].split(" ")).length;l<c;l++)a.push("-"+s[l]+"-"+r);n[r]=a,p.apply(h,a)}e.addListener("startrule",function(){i=[]}),e.addListener("startkeyframes",function(e){d=e.prefix||!0}),e.addListener("endkeyframes",function(){d=!1}),e.addListener("property",function(e){var t=e.property;o.Util.indexOf(h,t.text)>-1&&(d&&"string"==typeof d&&0===t.text.indexOf("-"+d+"-")||i.push(t))}),e.addListener("endrule",function(){if(i.length){var e,r,a,s,l,c,d,p,h,f,m={};for(e=0,r=i.length;e<r;e++)for(s in a=i[e],n)n.hasOwnProperty(s)&&(l=n[s],o.Util.indexOf(l,a.text)>-1&&(m[s]||(m[s]={full:l.slice(0),actual:[],actualNodes:[]}),-1===o.Util.indexOf(m[s].actual,a.text)&&(m[s].actual.push(a.text),m[s].actualNodes.push(a))));for(s in m)if(m.hasOwnProperty(s)&&(d=(c=m[s]).full,p=c.actual,d.length>p.length))for(e=0,r=d.length;e<r;e++)h=d[e],-1===o.Util.indexOf(p,h)&&(f=1===p.length?p[0]:2===p.length?p.join(" and "):p.join(", "),t.report("The property "+h+" is compatible with "+f+" and should be included as well.",c.actualNodes[0].line,c.actualNodes[0].col,u))}})}}),o.addRule({id:"display-property-grouping",name:"Require properties appropriate for display",desc:"Certain properties shouldn't be used with certain display property values.",url:"https://github.com/CSSLint/csslint/wiki/Require-properties-appropriate-for-display",browsers:"All",init:function(e,t){"use strict";var n,i=this,r={display:1,float:"none",height:1,width:1,margin:1,"margin-left":1,"margin-right":1,"margin-bottom":1,"margin-top":1,padding:1,"padding-left":1,"padding-right":1,"padding-bottom":1,"padding-top":1,"vertical-align":1};function o(e,o,a){n[e]&&("string"==typeof r[e]&&n[e].value.toLowerCase()===r[e]||t.report(a||e+" can't be used with display: "+o+".",n[e].line,n[e].col,i))}function a(){n={}}function s(){var e=n.display?n.display.value:null;if(e)switch(e){case"inline":o("height",e),o("width",e),o("margin",e),o("margin-top",e),o("margin-bottom",e),o("float",e,"display:inline has no effect on floated elements (but may be used to fix the IE6 double-margin bug).");break;case"block":o("vertical-align",e);break;case"inline-block":o("float",e);break;default:0===e.indexOf("table-")&&(o("margin",e),o("margin-left",e),o("margin-right",e),o("margin-top",e),o("margin-bottom",e),o("float",e))}}e.addListener("startrule",a),e.addListener("startfontface",a),e.addListener("startkeyframerule",a),e.addListener("startpagemargin",a),e.addListener("startpage",a),e.addListener("startviewport",a),e.addListener("property",function(e){var t=e.property.text.toLowerCase();r[t]&&(n[t]={value:e.value.text,line:e.property.line,col:e.property.col})}),e.addListener("endrule",s),e.addListener("endfontface",s),e.addListener("endkeyframerule",s),e.addListener("endpagemargin",s),e.addListener("endpage",s),e.addListener("endviewport",s)}}),o.addRule({id:"duplicate-background-images",name:"Disallow duplicate background images",desc:"Every background-image should be unique. Use a common class for e.g. sprites.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-duplicate-background-images",browsers:"All",init:function(e,t){"use strict";var n=this,i={};e.addListener("property",function(e){var r,o,a=e.property.text,s=e.value;if(a.match(/background/i))for(r=0,o=s.parts.length;r<o;r++)"uri"===s.parts[r].type&&(void 0===i[s.parts[r].uri]?i[s.parts[r].uri]=e:t.report("Background image '"+s.parts[r].uri+"' was used multiple times, first declared at line "+i[s.parts[r].uri].line+", col "+i[s.parts[r].uri].col+".",e.line,e.col,n))})}}),o.addRule({id:"duplicate-properties",name:"Disallow duplicate properties",desc:"Duplicate properties must appear one after the other.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-duplicate-properties",browsers:"All",init:function(e,t){"use strict";var n,i,r=this;function o(){n={}}e.addListener("startrule",o),e.addListener("startfontface",o),e.addListener("startpage",o),e.addListener("startpagemargin",o),e.addListener("startkeyframerule",o),e.addListener("startviewport",o),e.addListener("property",function(e){var o=e.property.text.toLowerCase();!n[o]||i===o&&n[o]!==e.value.text||t.report("Duplicate property '"+e.property+"' found.",e.line,e.col,r),n[o]=e.value.text,i=o})}}),o.addRule({id:"empty-rules",name:"Disallow empty rules",desc:"Rules without any properties specified should be removed.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-empty-rules",browsers:"All",init:function(e,t){"use strict";var n=this,i=0;e.addListener("startrule",function(){i=0}),e.addListener("property",function(){i++}),e.addListener("endrule",function(e){var r=e.selectors;0===i&&t.report("Rule is empty.",r[0].line,r[0].col,n)})}}),o.addRule({id:"errors",name:"Parsing Errors",desc:"This rule looks for recoverable syntax errors.",browsers:"All",init:function(e,t){"use strict";var n=this;e.addListener("error",function(e){t.error(e.message,e.line,e.col,n)})}}),o.addRule({id:"fallback-colors",name:"Require fallback colors",desc:"For older browsers that don't support RGBA, HSL, or HSLA, provide a fallback color.",url:"https://github.com/CSSLint/csslint/wiki/Require-fallback-colors",browsers:"IE6,IE7,IE8",init:function(e,t){"use strict";var n,i=this,r={color:1,background:1,"border-color":1,"border-top-color":1,"border-right-color":1,"border-bottom-color":1,"border-left-color":1,border:1,"border-top":1,"border-right":1,"border-bottom":1,"border-left":1,"background-color":1};function o(){n=null}e.addListener("startrule",o),e.addListener("startfontface",o),e.addListener("startpage",o),e.addListener("startpagemargin",o),e.addListener("startkeyframerule",o),e.addListener("startviewport",o),e.addListener("property",function(e){var o=e.property.text.toLowerCase(),a=e.value.parts,s=0,l="",c=a.length;if(r[o])for(;s<c;)"color"===a[s].type&&("alpha"in a[s]||"hue"in a[s]?(/([^\)]+)\(/.test(a[s])&&(l=RegExp.$1.toUpperCase()),n&&n.property.text.toLowerCase()===o&&"compat"===n.colorType||t.report("Fallback "+o+" (hex or RGB) should precede "+l+" "+o+".",e.line,e.col,i)):e.colorType="compat"),s++;n=e})}}),o.addRule({id:"floats",name:"Disallow too many floats",desc:"This rule tests if the float property is used too many times",url:"https://github.com/CSSLint/csslint/wiki/Disallow-too-many-floats",browsers:"All",init:function(e,t){"use strict";var n=this,i=0;e.addListener("property",function(e){"float"===e.property.text.toLowerCase()&&"none"!==e.value.text.toLowerCase()&&i++}),e.addListener("endstylesheet",function(){t.stat("floats",i),i>=10&&t.rollupWarn("Too many floats ("+i+"), you're probably using them for layout. Consider using a grid system instead.",n)})}}),o.addRule({id:"font-faces",name:"Don't use too many web fonts",desc:"Too many different web fonts in the same stylesheet.",url:"https://github.com/CSSLint/csslint/wiki/Don%27t-use-too-many-web-fonts",browsers:"All",init:function(e,t){"use strict";var n=this,i=0;e.addListener("startfontface",function(){i++}),e.addListener("endstylesheet",function(){i>5&&t.rollupWarn("Too many @font-face declarations ("+i+").",n)})}}),o.addRule({id:"font-sizes",name:"Disallow too many font sizes",desc:"Checks the number of font-size declarations.",url:"https://github.com/CSSLint/csslint/wiki/Don%27t-use-too-many-font-size-declarations",browsers:"All",init:function(e,t){"use strict";var n=this,i=0;e.addListener("property",function(e){"font-size"===e.property.toString()&&i++}),e.addListener("endstylesheet",function(){t.stat("font-sizes",i),i>=10&&t.rollupWarn("Too many font-size declarations ("+i+"), abstraction needed.",n)})}}),o.addRule({id:"gradients",name:"Require all gradient definitions",desc:"When using a vendor-prefixed gradient, make sure to use them all.",url:"https://github.com/CSSLint/csslint/wiki/Require-all-gradient-definitions",browsers:"All",init:function(e,t){"use strict";var n,i=this;e.addListener("startrule",function(){n={moz:0,webkit:0,oldWebkit:0,o:0}}),e.addListener("property",function(e){/\-(moz|o|webkit)(?:\-(?:linear|radial))\-gradient/i.test(e.value)?n[RegExp.$1]=1:/\-webkit\-gradient/i.test(e.value)&&(n.oldWebkit=1)}),e.addListener("endrule",function(e){var r=[];n.moz||r.push("Firefox 3.6+"),n.webkit||r.push("Webkit (Safari 5+, Chrome)"),n.oldWebkit||r.push("Old Webkit (Safari 4+, Chrome)"),n.o||r.push("Opera 11.1+"),r.length&&r.length<4&&t.report("Missing vendor-prefixed CSS gradients for "+r.join(", ")+".",e.selectors[0].line,e.selectors[0].col,i)})}}),o.addRule({id:"ids",name:"Disallow IDs in selectors",desc:"Selectors should not contain IDs.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-IDs-in-selectors",browsers:"All",init:function(e,t){"use strict";var n=this;e.addListener("startrule",function(i){var r,o,a,s,l,c,u=i.selectors;for(s=0;s<u.length;s++){for(r=u[s],a=0,l=0;l<r.parts.length;l++)if((o=r.parts[l]).type===e.SELECTOR_PART_TYPE)for(c=0;c<o.modifiers.length;c++)"id"===o.modifiers[c].type&&a++;1===a?t.report("Don't use IDs in selectors.",r.line,r.col,n):a>1&&t.report(a+" IDs in the selector, really?",r.line,r.col,n)}})}}),o.addRule({id:"import-ie-limit",name:"@import limit on IE6-IE9",desc:"IE6-9 supports up to 31 @import per stylesheet",browsers:"IE6, IE7, IE8, IE9",init:function(e,t){"use strict";var n=this,i=0;e.addListener("startpage",function(){i=0}),e.addListener("import",function(){i++}),e.addListener("endstylesheet",function(){i>31&&t.rollupError("Too many @import rules ("+i+"). IE6-9 supports up to 31 import per stylesheet.",n)})}}),o.addRule({id:"import",name:"Disallow @import",desc:"Don't use @import, use <link> instead.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-%40import",browsers:"All",init:function(e,t){"use strict";var n=this;e.addListener("import",function(e){t.report("@import prevents parallel downloads, use <link> instead.",e.line,e.col,n)})}}),o.addRule({id:"important",name:"Disallow !important",desc:"Be careful when using !important declaration",url:"https://github.com/CSSLint/csslint/wiki/Disallow-%21important",browsers:"All",init:function(e,t){"use strict";var n=this,i=0;e.addListener("property",function(e){!0===e.important&&(i++,t.report("Use of !important",e.line,e.col,n))}),e.addListener("endstylesheet",function(){t.stat("important",i),i>=10&&t.rollupWarn("Too many !important declarations ("+i+"), try to use less than 10 to avoid specificity issues.",n)})}}),o.addRule({id:"known-properties",name:"Require use of known properties",desc:"Properties should be known (listed in CSS3 specification) or be a vendor-prefixed property.",url:"https://github.com/CSSLint/csslint/wiki/Require-use-of-known-properties",browsers:"All",init:function(e,t){"use strict";var n=this;e.addListener("property",function(e){e.invalid&&t.report(e.invalid.message,e.line,e.col,n)})}}),o.addRule({id:"order-alphabetical",name:"Alphabetical order",desc:"Assure properties are in alphabetical order",browsers:"All",init:function(e,t){"use strict";var n,i=this,r=function(){n=[]},o=function(e){n.join(",")!==n.sort().join(",")&&t.report("Rule doesn't have all its properties in alphabetical order.",e.line,e.col,i)};e.addListener("startrule",r),e.addListener("startfontface",r),e.addListener("startpage",r),e.addListener("startpagemargin",r),e.addListener("startkeyframerule",r),e.addListener("startviewport",r),e.addListener("property",function(e){var t=e.property.text.toLowerCase().replace(/^-.*?-/,"");n.push(t)}),e.addListener("endrule",o),e.addListener("endfontface",o),e.addListener("endpage",o),e.addListener("endpagemargin",o),e.addListener("endkeyframerule",o),e.addListener("endviewport",o)}}),o.addRule({id:"outline-none",name:"Disallow outline: none",desc:"Use of outline: none or outline: 0 should be limited to :focus rules.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-outline%3Anone",browsers:"All",tags:["Accessibility"],init:function(e,t){"use strict";var n,i=this;function r(e){n=e.selectors?{line:e.line,col:e.col,selectors:e.selectors,propCount:0,outline:!1}:null}function o(){n&&n.outline&&(-1===n.selectors.toString().toLowerCase().indexOf(":focus")?t.report("Outlines should only be modified using :focus.",n.line,n.col,i):1===n.propCount&&t.report("Outlines shouldn't be hidden unless other visual changes are made.",n.line,n.col,i))}e.addListener("startrule",r),e.addListener("startfontface",r),e.addListener("startpage",r),e.addListener("startpagemargin",r),e.addListener("startkeyframerule",r),e.addListener("startviewport",r),e.addListener("property",function(e){var t=e.property.text.toLowerCase(),i=e.value;n&&(n.propCount++,"outline"!==t||"none"!==i.toString()&&"0"!==i.toString()||(n.outline=!0))}),e.addListener("endrule",o),e.addListener("endfontface",o),e.addListener("endpage",o),e.addListener("endpagemargin",o),e.addListener("endkeyframerule",o),e.addListener("endviewport",o)}}),o.addRule({id:"overqualified-elements",name:"Disallow overqualified elements",desc:"Don't use classes or IDs with elements (a.foo or a#foo).",url:"https://github.com/CSSLint/csslint/wiki/Disallow-overqualified-elements",browsers:"All",init:function(e,t){"use strict";var n=this,i={};e.addListener("startrule",function(r){var o,a,s,l,c,u,d=r.selectors;for(l=0;l<d.length;l++)for(o=d[l],c=0;c<o.parts.length;c++)if((a=o.parts[c]).type===e.SELECTOR_PART_TYPE)for(u=0;u<a.modifiers.length;u++)s=a.modifiers[u],a.elementName&&"id"===s.type?t.report("Element ("+a+") is overqualified, just use "+s+" without element name.",a.line,a.col,n):"class"===s.type&&(i[s]||(i[s]=[]),i[s].push({modifier:s,part:a}))}),e.addListener("endstylesheet",function(){var e;for(e in i)i.hasOwnProperty(e)&&1===i[e].length&&i[e][0].part.elementName&&t.report("Element ("+i[e][0].part+") is overqualified, just use "+i[e][0].modifier+" without element name.",i[e][0].part.line,i[e][0].part.col,n)})}}),o.addRule({id:"qualified-headings",name:"Disallow qualified headings",desc:"Headings should not be qualified (namespaced).",url:"https://github.com/CSSLint/csslint/wiki/Disallow-qualified-headings",browsers:"All",init:function(e,t){"use strict";var n=this;e.addListener("startrule",function(i){var r,o,a,s,l=i.selectors;for(a=0;a<l.length;a++)for(r=l[a],s=0;s<r.parts.length;s++)(o=r.parts[s]).type===e.SELECTOR_PART_TYPE&&o.elementName&&/h[1-6]/.test(o.elementName.toString())&&s>0&&t.report("Heading ("+o.elementName+") should not be qualified.",o.line,o.col,n)})}}),o.addRule({id:"regex-selectors",name:"Disallow selectors that look like regexs",desc:"Selectors that look like regular expressions are slow and should be avoided.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-selectors-that-look-like-regular-expressions",browsers:"All",init:function(e,t){"use strict";var n=this;e.addListener("startrule",function(i){var r,o,a,s,l,c,u=i.selectors;for(s=0;s<u.length;s++)for(r=u[s],l=0;l<r.parts.length;l++)if((o=r.parts[l]).type===e.SELECTOR_PART_TYPE)for(c=0;c<o.modifiers.length;c++)"attribute"===(a=o.modifiers[c]).type&&/([~\|\^\$\*]=)/.test(a)&&t.report("Attribute selectors with "+RegExp.$1+" are slow!",a.line,a.col,n)})}}),o.addRule({id:"rules-count",name:"Rules Count",desc:"Track how many rules there are.",browsers:"All",init:function(e,t){"use strict";var n=0;e.addListener("startrule",function(){n++}),e.addListener("endstylesheet",function(){t.stat("rule-count",n)})}}),o.addRule({id:"selector-max-approaching",name:"Warn when approaching the 4095 selector limit for IE",desc:"Will warn when selector count is >= 3800 selectors.",browsers:"IE",init:function(e,t){"use strict";var n=this,i=0;e.addListener("startrule",function(e){i+=e.selectors.length}),e.addListener("endstylesheet",function(){i>=3800&&t.report("You have "+i+" selectors. Internet Explorer supports a maximum of 4095 selectors per stylesheet. Consider refactoring.",0,0,n)})}}),o.addRule({id:"selector-max",name:"Error when past the 4095 selector limit for IE",desc:"Will error when selector count is > 4095.",browsers:"IE",init:function(e,t){"use strict";var n=this,i=0;e.addListener("startrule",function(e){i+=e.selectors.length}),e.addListener("endstylesheet",function(){i>4095&&t.report("You have "+i+" selectors. Internet Explorer supports a maximum of 4095 selectors per stylesheet. Consider refactoring.",0,0,n)})}}),o.addRule({id:"selector-newline",name:"Disallow new-line characters in selectors",desc:"New-line characters in selectors are usually a forgotten comma and not a descendant combinator.",browsers:"All",init:function(e,t){"use strict";var n=this;e.addListener("startrule",function(e){var i,r,o,a,s,l,c,u,d,p,h,f=e.selectors;for(i=0,r=f.length;i<r;i++)for(a=0,l=(o=f[i]).parts.length;a<l;a++)for(s=a+1;s<l;s++)c=o.parts[a],u=o.parts[s],d=c.type,p=c.line,h=u.line,"descendant"===d&&h>p&&t.report("newline character found in selector (forgot a comma?)",p,f[i].parts[0].col,n)})}}),o.addRule({id:"shorthand",name:"Require shorthand properties",desc:"Use shorthand properties where possible.",url:"https://github.com/CSSLint/csslint/wiki/Require-shorthand-properties",browsers:"All",init:function(e,t){"use strict";var n,i,r,o,a=this,s={},l={margin:["margin-top","margin-bottom","margin-left","margin-right"],padding:["padding-top","padding-bottom","padding-left","padding-right"]};for(n in l)if(l.hasOwnProperty(n))for(i=0,r=l[n].length;i<r;i++)s[l[n][i]]=n;function c(){o={}}function u(e){var n,i,r,s;for(n in l)if(l.hasOwnProperty(n)){for(s=0,i=0,r=l[n].length;i<r;i++)s+=o[l[n][i]]?1:0;s===l[n].length&&t.report("The properties "+l[n].join(", ")+" can be replaced by "+n+".",e.line,e.col,a)}}e.addListener("startrule",c),e.addListener("startfontface",c),e.addListener("property",function(e){var t=e.property.toString().toLowerCase();s[t]&&(o[t]=1)}),e.addListener("endrule",u),e.addListener("endfontface",u)}}),o.addRule({id:"star-property-hack",name:"Disallow properties with a star prefix",desc:"Checks for the star property hack (targets IE6/7)",url:"https://github.com/CSSLint/csslint/wiki/Disallow-star-hack",browsers:"All",init:function(e,t){"use strict";var n=this;e.addListener("property",function(e){"*"===e.property.hack&&t.report("Property with star prefix found.",e.property.line,e.property.col,n)})}}),o.addRule({id:"text-indent",name:"Disallow negative text-indent",desc:"Checks for text indent less than -99px",url:"https://github.com/CSSLint/csslint/wiki/Disallow-negative-text-indent",browsers:"All",init:function(e,t){"use strict";var n,i,r=this;function o(){n=!1,i="inherit"}function a(){n&&"ltr"!==i&&t.report("Negative text-indent doesn't work well with RTL. If you use text-indent for image replacement explicitly set direction for that item to ltr.",n.line,n.col,r)}e.addListener("startrule",o),e.addListener("startfontface",o),e.addListener("property",function(e){var t=e.property.toString().toLowerCase(),r=e.value;"text-indent"===t&&r.parts[0].value<-99?n=e.property:"direction"===t&&"ltr"===r.toString()&&(i="ltr")}),e.addListener("endrule",a),e.addListener("endfontface",a)}}),o.addRule({id:"underscore-property-hack",name:"Disallow properties with an underscore prefix",desc:"Checks for the underscore property hack (targets IE6)",url:"https://github.com/CSSLint/csslint/wiki/Disallow-underscore-hack",browsers:"All",init:function(e,t){"use strict";var n=this;e.addListener("property",function(e){"_"===e.property.hack&&t.report("Property with underscore prefix found.",e.property.line,e.property.col,n)})}}),o.addRule({id:"unique-headings",name:"Headings should only be defined once",desc:"Headings should be defined only once.",url:"https://github.com/CSSLint/csslint/wiki/Headings-should-only-be-defined-once",browsers:"All",init:function(e,t){"use strict";var n=this,i={h1:0,h2:0,h3:0,h4:0,h5:0,h6:0};e.addListener("startrule",function(e){var r,o,a,s,l,c=e.selectors;for(s=0;s<c.length;s++)if((o=(r=c[s]).parts[r.parts.length-1]).elementName&&/(h[1-6])/i.test(o.elementName.toString())){for(l=0;l<o.modifiers.length;l++)if("pseudo"===o.modifiers[l].type){a=!0;break}a||(i[RegExp.$1]++,i[RegExp.$1]>1&&t.report("Heading ("+o.elementName+") has already been defined.",o.line,o.col,n))}}),e.addListener("endstylesheet",function(){var e,r=[];for(e in i)i.hasOwnProperty(e)&&i[e]>1&&r.push(i[e]+" "+e+"s");r.length&&t.rollupWarn("You have "+r.join(", ")+" defined in this stylesheet.",n)})}}),o.addRule({id:"universal-selector",name:"Disallow universal selector",desc:"The universal selector (*) is known to be slow.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-universal-selector",browsers:"All",init:function(e,t){"use strict";var n=this;e.addListener("startrule",function(e){var i,r,o,a=e.selectors;for(o=0;o<a.length;o++)"*"===(r=(i=a[o]).parts[i.parts.length-1]).elementName&&t.report(n.desc,r.line,r.col,n)})}}),o.addRule({id:"unqualified-attributes",name:"Disallow unqualified attribute selectors",desc:"Unqualified attribute selectors are known to be slow.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-unqualified-attribute-selectors",browsers:"All",init:function(e,t){"use strict";var n=this;e.addListener("startrule",function(i){var r,o,a,s,l,c=i.selectors,u=!1;for(s=0;s<c.length;s++)if((o=(r=c[s]).parts[r.parts.length-1]).type===e.SELECTOR_PART_TYPE){for(l=0;l<o.modifiers.length;l++)if("class"===(a=o.modifiers[l]).type||"id"===a.type){u=!0;break}if(!u)for(l=0;l<o.modifiers.length;l++)"attribute"!==(a=o.modifiers[l]).type||o.elementName&&"*"!==o.elementName||t.report(n.desc,o.line,o.col,n)}})}}),o.addRule({id:"vendor-prefix",name:"Require standard property with vendor prefix",desc:"When using a vendor-prefixed property, make sure to include the standard one.",url:"https://github.com/CSSLint/csslint/wiki/Require-standard-property-with-vendor-prefix",browsers:"All",init:function(e,t){"use strict";var n,i,r=this,o={"-webkit-border-radius":"border-radius","-webkit-border-top-left-radius":"border-top-left-radius","-webkit-border-top-right-radius":"border-top-right-radius","-webkit-border-bottom-left-radius":"border-bottom-left-radius","-webkit-border-bottom-right-radius":"border-bottom-right-radius","-o-border-radius":"border-radius","-o-border-top-left-radius":"border-top-left-radius","-o-border-top-right-radius":"border-top-right-radius","-o-border-bottom-left-radius":"border-bottom-left-radius","-o-border-bottom-right-radius":"border-bottom-right-radius","-moz-border-radius":"border-radius","-moz-border-radius-topleft":"border-top-left-radius","-moz-border-radius-topright":"border-top-right-radius","-moz-border-radius-bottomleft":"border-bottom-left-radius","-moz-border-radius-bottomright":"border-bottom-right-radius","-moz-column-count":"column-count","-webkit-column-count":"column-count","-moz-column-gap":"column-gap","-webkit-column-gap":"column-gap","-moz-column-rule":"column-rule","-webkit-column-rule":"column-rule","-moz-column-rule-style":"column-rule-style","-webkit-column-rule-style":"column-rule-style","-moz-column-rule-color":"column-rule-color","-webkit-column-rule-color":"column-rule-color","-moz-column-rule-width":"column-rule-width","-webkit-column-rule-width":"column-rule-width","-moz-column-width":"column-width","-webkit-column-width":"column-width","-webkit-column-span":"column-span","-webkit-columns":"columns","-moz-box-shadow":"box-shadow","-webkit-box-shadow":"box-shadow","-moz-transform":"transform","-webkit-transform":"transform","-o-transform":"transform","-ms-transform":"transform","-moz-transform-origin":"transform-origin","-webkit-transform-origin":"transform-origin","-o-transform-origin":"transform-origin","-ms-transform-origin":"transform-origin","-moz-box-sizing":"box-sizing","-webkit-box-sizing":"box-sizing"};function a(){n={},i=1}function s(){var e,i,a,s,l,c=[];for(e in n)o[e]&&c.push({actual:e,needed:o[e]});for(i=0,a=c.length;i<a;i++)s=c[i].needed,l=c[i].actual,n[s]?n[s][0].pos<n[l][0].pos&&t.report("Standard property '"+s+"' should come after vendor-prefixed property '"+l+"'.",n[l][0].name.line,n[l][0].name.col,r):t.report("Missing standard property '"+s+"' to go along with '"+l+"'.",n[l][0].name.line,n[l][0].name.col,r)}e.addListener("startrule",a),e.addListener("startfontface",a),e.addListener("startpage",a),e.addListener("startpagemargin",a),e.addListener("startkeyframerule",a),e.addListener("startviewport",a),e.addListener("property",function(e){var t=e.property.text.toLowerCase();n[t]||(n[t]=[]),n[t].push({name:e.property,value:e.value,pos:i++})}),e.addListener("endrule",s),e.addListener("endfontface",s),e.addListener("endpage",s),e.addListener("endpagemargin",s),e.addListener("endkeyframerule",s),e.addListener("endviewport",s)}}),o.addRule({id:"zero-units",name:"Disallow units for 0 values",desc:"You don't need to specify units when a value is 0.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-units-for-zero-values",browsers:"All",init:function(e,t){"use strict";var n=this;e.addListener("property",function(e){for(var i=e.value.parts,r=0,o=i.length;r<o;)!i[r].units&&"percentage"!==i[r].type||0!==i[r].value||"time"===i[r].type||t.report("Values of 0 shouldn't have units specified.",i[r].line,i[r].col,n),r++})}}),function(){"use strict";var e=function(e){return e&&e.constructor===String?e.replace(/["&><]/g,function(e){switch(e){case'"':return""";case"&":return"&";case"<":return"<";case">":return">"}}):""};o.addFormatter({id:"checkstyle-xml",name:"Checkstyle XML format",startFormat:function(){return'<?xml version="1.0" encoding="utf-8"?><checkstyle>'},endFormat:function(){return"</checkstyle>"},readError:function(t,n){return'<file name="'+e(t)+'"><error line="0" column="0" severty="error" message="'+e(n)+'"></error></file>'},formatResults:function(t,n){var i=t.messages,r=[];return i.length>0&&(r.push('<file name="'+n+'">'),o.Util.forEach(i,function(t){var n;t.rollup||r.push('<error line="'+t.line+'" column="'+t.col+'" severity="'+t.type+'" message="'+e(t.message)+'" source="'+(((n=t.rule)&&"name"in n?"net.csslint."+n.name.replace(/\s/g,""):"")+'"/>'))}),r.push("</file>")),r.join("")}})}(),o.addFormatter({id:"compact",name:"Compact, 'porcelain' format",startFormat:function(){"use strict";return""},endFormat:function(){"use strict";return""},formatResults:function(e,t,n){"use strict";var i=e.messages,r="";n=n||{};var a=function(e){return e.charAt(0).toUpperCase()+e.slice(1)};return 0===i.length?n.quiet?"":t+": Lint Free!":(o.Util.forEach(i,function(e){e.rollup?r+=t+": "+a(e.type)+" - "+e.message+" ("+e.rule.id+")\n":r+=t+": line "+e.line+", col "+e.col+", "+a(e.type)+" - "+e.message+" ("+e.rule.id+")\n"}),r)}}),o.addFormatter({id:"csslint-xml",name:"CSSLint XML format",startFormat:function(){"use strict";return'<?xml version="1.0" encoding="utf-8"?><csslint>'},endFormat:function(){"use strict";return"</csslint>"},formatResults:function(e,t){"use strict";var n=e.messages,i=[],r=function(e){return e&&e.constructor===String?e.replace(/"/g,"'").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"):""};return n.length>0&&(i.push('<file name="'+t+'">'),o.Util.forEach(n,function(e){e.rollup?i.push('<issue severity="'+e.type+'" reason="'+r(e.message)+'" evidence="'+r(e.evidence)+'"/>'):i.push('<issue line="'+e.line+'" char="'+e.col+'" severity="'+e.type+'" reason="'+r(e.message)+'" evidence="'+r(e.evidence)+'"/>')}),i.push("</file>")),i.join("")}}),o.addFormatter({id:"json",name:"JSON",startFormat:function(){"use strict";return this.json=[],""},endFormat:function(){"use strict";var e="";return this.json.length>0&&(e=1===this.json.length?JSON.stringify(this.json[0]):JSON.stringify(this.json)),e},formatResults:function(e,t,n){"use strict";return(e.messages.length>0||!n.quiet)&&this.json.push({filename:t,messages:e.messages,stats:e.stats}),""}}),o.addFormatter({id:"junit-xml",name:"JUNIT XML format",startFormat:function(){"use strict";return'<?xml version="1.0" encoding="utf-8"?><testsuites>'},endFormat:function(){"use strict";return"</testsuites>"},formatResults:function(e,t){"use strict";var n=e.messages,i=[],r={error:0,failure:0},o=function(e){return e&&e.constructor===String?e.replace(/"/g,"'").replace(/</g,"<").replace(/>/g,">"):""};return n.length>0&&(n.forEach(function(e){var t,n="warning"===e.type?"error":e.type;e.rollup||(i.push('<testcase time="0" name="'+(((t=e.rule)&&"name"in t?"net.csslint."+t.name.replace(/\s/g,""):"")+'">')),i.push("<"+n+' message="'+o(e.message)+'"><![CDATA['+e.line+":"+e.col+":"+o(e.evidence)+"]]></"+n+">"),i.push("</testcase>"),r[n]+=1)}),i.unshift('<testsuite time="0" tests="'+n.length+'" skipped="0" errors="'+r.error+'" failures="'+r.failure+'" package="net.csslint" name="'+t+'">'),i.push("</testsuite>")),i.join("")}}),o.addFormatter({id:"lint-xml",name:"Lint XML format",startFormat:function(){"use strict";return'<?xml version="1.0" encoding="utf-8"?><lint>'},endFormat:function(){"use strict";return"</lint>"},formatResults:function(e,t){"use strict";var n=e.messages,i=[],r=function(e){return e&&e.constructor===String?e.replace(/"/g,"'").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"):""};return n.length>0&&(i.push('<file name="'+t+'">'),o.Util.forEach(n,function(e){if(e.rollup)i.push('<issue severity="'+e.type+'" reason="'+r(e.message)+'" evidence="'+r(e.evidence)+'"/>');else{var t="";e.rule&&e.rule.id&&(t='rule="'+r(e.rule.id)+'" '),i.push("<issue "+t+'line="'+e.line+'" char="'+e.col+'" severity="'+e.type+'" reason="'+r(e.message)+'" evidence="'+r(e.evidence)+'"/>')}}),i.push("</file>")),i.join("")}}),o.addFormatter({id:"text",name:"Plain Text",startFormat:function(){"use strict";return""},endFormat:function(){"use strict";return""},formatResults:function(e,t,n){"use strict";var i=e.messages,r="";if(n=n||{},0===i.length)return n.quiet?"":"\n\ncsslint: No errors in "+t+".";r="\n\ncsslint: There ",1===i.length?r+="is 1 problem":r+="are "+i.length+" problems",r+=" in "+t+".";var a=t.lastIndexOf("/"),s=t;return-1===a&&(a=t.lastIndexOf("\\")),a>-1&&(s=t.substring(a+1)),o.Util.forEach(i,function(e,t){r=r+"\n\n"+s,e.rollup?(r+="\n"+(t+1)+": "+e.type,r+="\n"+e.message):(r+="\n"+(t+1)+": "+e.type+" at line "+e.line+", col "+e.col,r+="\n"+e.message,r+="\n"+e.evidence)}),r}}),t.l=o},42839:function(e,t,n){"use strict";var i=n(78041),r=n(37007),o=n(71444),a=n(39227).w,s=n(70856),l=s.asciiIdentifierStartTable,c=s.asciiIdentifierPartTable,u=n(29200),d=n(26874),p=1,h=2,f=3,m=4,g=5,v=6,y=9,b=10,k=11,w=12,_=13,C={Block:1,Template:2};function x(e){return/^[0-9a-fA-F]+$/.test(e)}function S(e){return 1===e.length&&x(e)}function E(e){var t=e;"string"==typeof t&&(t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n").split("\n")),t[0]&&"#!"===t[0].substr(0,2)&&(-1!==t[0].indexOf("node")&&(a.option.node=!0),t[0]=""),this.emitter=new r.EventEmitter,this.source=e,this.setLines(t),this.prereg=!0,this.line=0,this.char=1,this.from=1,this.input="",this.inComment=!1,this.context=[],this.templateStarts=[];for(var n=0;n<a.option.indent;n+=1)a.tab+=" "}E.prototype={_lines:[],inContext:function(e){return this.context.length>0&&this.context[this.context.length-1].type===e},pushContext:function(e){this.context.push({type:e})},popContext:function(){return this.context.pop()},currentContext:function(){return this.context.length>0&&this.context[this.context.length-1]},getLines:function(){return this._lines=a.lines,this._lines},setLines:function(e){this._lines=e,a.lines=this._lines},peek:function(e){return this.input.charAt(e||0)},skip:function(e){e=e||1,this.char+=e,this.input=this.input.slice(e)},on:function(e,t){e.split(" ").forEach(function(e){this.emitter.on(e,t)}.bind(this))},trigger:function(){this.emitter.emit.apply(this.emitter,Array.prototype.slice.call(arguments))},triggerAsync:function(e,t,n,i){n.push(function(){i()&&this.trigger(e,t)}.bind(this))},scanPunctuator:function(){var e,t,n,i=this.peek();switch(i){case".":if(/^[0-9]$/.test(this.peek(1)))return null;if("."===this.peek(1)&&"."===this.peek(2))return{type:h,value:"..."};case"(":case")":case";":case",":case"[":case"]":case":":case"~":return{type:h,value:i};case"{":return this.pushContext(C.Block),{type:h,value:i};case"}":return this.inContext(C.Block)&&this.popContext(),{type:h,value:i};case"#":return{type:h,value:i};case"":return null}return e=this.peek(1),t=this.peek(2),"?"===i?"."!==e||o.decimalDigit.test(t)?{type:h,value:"?"===e?"??":"?"}:{type:h,value:"?."}:(n=this.peek(3),">"===i&&">"===e&&">"===t&&"="===n?{type:h,value:">>>="}:"="===i&&"="===e&&"="===t?{type:h,value:"==="}:"!"===i&&"="===e&&"="===t?{type:h,value:"!=="}:">"===i&&">"===e&&">"===t?{type:h,value:">>>"}:"<"===i&&"<"===e&&"="===t?{type:h,value:"<<="}:">"===i&&">"===e&&"="===t?{type:h,value:">>="}:"="===i&&">"===e?{type:h,value:i+e}:i===e&&"+-<>&|*".indexOf(i)>=0?"*"===i&&"="===t?{type:h,value:i+e+t}:{type:h,value:i+e}:"<>=!+-*%&|^/".indexOf(i)>=0?"="===e?{type:h,value:i+e}:{type:h,value:i}:null)},scanComments:function(e){var t=this.peek(),n=this.peek(1),i=this.input.substr(2),r=this.line,a=this.char,s=this;function l(e,t,n){var i=!1,r=e+t,a="plain";return(n=n||{}).isMultiline&&(r+="*/"),t=t.replace(/\n/g," "),"/*"===e&&o.fallsThrough.test(t)&&(i=!0,a="falls through"),["jshint","jshint.unstable","jslint","members","member","globals","global","exported"].forEach(function(n){if(!i&&("//"!==e||"jshint"===n||"jshint.unstable"===n)){" "===t.charAt(n.length)&&t.substr(0,n.length)===n&&(i=!0,e+=n,t=t.substr(n.length)),i||" "!==t.charAt(0)||" "!==t.charAt(n.length+1)||t.substr(1,n.length)!==n||(i=!0,e=e+" "+n,t=t.substr(n.length+1));var r=t.indexOf(n);if(!i&&r>=0&&" "===t.charAt(r+n.length))0===t.substr(0,r).trim().length&&(i=!0,t=t.substr(n.length+r));if(i)switch(n){case"member":a="members";break;case"global":a="globals";break;default:var o=t.split(":").map(function(e){return e.replace(/^\s+/,"").replace(/\s+$/,"")});if(2===o.length&&"ignore"===o[0])switch(o[1]){case"start":s.ignoringLinterErrors=!0,i=!1;break;case"end":s.ignoringLinterErrors=!1,i=!1}a=n}}}),{type:g,commentType:a,value:r,body:t,isSpecial:i,isMalformed:n.isMalformed||!1}}if("*"===t&&"/"===n)return this.trigger("error",{code:"E018",line:r,character:a}),this.skip(2),null;if("/"!==t||"*"!==n&&"/"!==n)return null;if("/"===n)return this.skip(this.input.length),l("//",i);var c="";if("*"===n){for(this.inComment=!0,this.skip(2);"*"!==this.peek()||"/"!==this.peek(1);)if(""===this.peek()){if(c+="\n",!this.nextLine(e))return this.trigger("error",{code:"E017",line:r,character:a}),this.inComment=!1,l("/*",c,{isMultiline:!0,isMalformed:!0})}else c+=this.peek(),this.skip();return this.skip(2),this.inComment=!1,l("/*",c,{isMultiline:!0})}},scanKeyword:function(){var e=/^[a-zA-Z_$][a-zA-Z0-9_$]*/.exec(this.input);return e&&["if","in","do","var","for","new","try","let","this","else","case","void","with","enum","while","break","catch","throw","const","yield","class","super","return","typeof","delete","switch","export","import","default","finally","extends","function","continue","debugger","instanceof","true","false","null","async","await"].indexOf(e[0])>=0?{type:v,value:e[0]}:null},scanIdentifier:function(e){var t,i,r="",o=0;function s(e){return u.indexOf(e)>-1}function h(e){return s(e)||d.indexOf(e)>-1}var f=function(){if(o+=1,"u"!==this.peek(o))return null;var e,t=this.peek(o+1)+this.peek(o+2)+this.peek(o+3)+this.peek(o+4);return x(t)?(e=parseInt(t,16),c[e]||h(e)?(o+=5,"\\u"+t):null):null}.bind(this),m=function(){var e=this.peek(o),t=e.charCodeAt(0);return 92===t?f():t<128?l[t]?(o+=1,e):null:s(t)?(o+=1,e):null}.bind(this),g=function(){var e=this.peek(o),t=e.charCodeAt(0);return 92===t?f():t<128?c[t]?(o+=1,e):null:h(t)?(o+=1,e):null}.bind(this);if(null===(t=m()))return null;for(r=t;null!==(t=g());)r+=t;return i=function(e){return e.replace(/\\u([0-9a-fA-F]{4})/g,function(e,t){return String.fromCharCode(parseInt(t,16))})}(r),a.inES6(!0)||n(93294).test(i)||this.triggerAsync("warning",{code:"W119",line:this.line,character:this.char,data:["unicode 8","6"]},e,function(){return!0}),{type:p,value:i,text:r,tokenLength:r.length}},scanNumericLiteral:function(e){var t=0,n="",i=this.input.length,r=this.peek(t),o=u,s=10,l=!1,c=!1;function u(e){return/^[0-9]$/.test(e)}function d(e){return/^[0-7]$/.test(e)}function p(e){return"8"===e||"9"===e}function h(e){return"$"===e||"_"===e||"\\"===e||e>="a"&&e<="z"||e>="A"&&e<="Z"}if("."!==r&&!u(r))return null;if("."!==r){for(n=this.peek(t),t+=1,r=this.peek(t),"0"===n&&("x"!==r&&"X"!==r||(o=S,s=16,t+=1,n+=r),"o"!==r&&"O"!==r||(o=d,s=8,a.inES6(!0)||this.triggerAsync("warning",{code:"W119",line:this.line,character:this.char,data:["Octal integer literal","6"]},e,function(){return!0}),t+=1,n+=r),"b"!==r&&"B"!==r||(o=function(e){return/^[01]$/.test(e)},s=2,a.inES6(!0)||this.triggerAsync("warning",{code:"W119",line:this.line,character:this.char,data:["Binary integer literal","6"]},e,function(){return!0}),t+=1,n+=r),d(r)?(o=d,s=8,l=!0):u(r)&&(c=!0));t<i&&(r=this.peek(t),l&&p(r)&&(s=10,l=!1,c=!0,o=u),o(r));)n+=r,t+=1;var m="n"===this.peek(t);if(o!==u||m){if(m)this.triggerAsync("warning",{code:"W119",line:this.line,character:this.char,data:["BigInt","11"]},e,function(){return!a.inES11()}),(l||c)&&this.triggerAsync("error",{code:"E067",line:this.line,character:this.char,data:[n+r]},e,function(){return!0}),n+=r,t+=1;else if(!l&&n.length<=2)return{type:f,value:n,isMalformed:!0};return t<i&&h(r=this.peek(t))?null:{type:f,value:n,base:s,isLegacy:l,isMalformed:!1}}}if("."===r)for(n+=r,t+=1;t<i&&u(r=this.peek(t));)n+=r,t+=1;if("e"===r||"E"===r){if(n+=r,t+=1,"+"!==(r=this.peek(t))&&"-"!==r||(n+=this.peek(t),t+=1),!u(r=this.peek(t)))return null;for(n+=r,t+=1;t<i&&u(r=this.peek(t));)n+=r,t+=1}return t<i&&h(r=this.peek(t))?null:(this.triggerAsync("warning",{code:"W045",line:this.line,character:this.char+n.length,data:[n]},e,function(){return!isFinite(n)}),{type:f,value:n,base:s,isNonOctal:c,isMalformed:!1})},scanEscapeSequence:function(e){var t=!1,n=1;this.skip();var i=this.peek();switch(i){case"'":this.triggerAsync("warning",{code:"W114",line:this.line,character:this.char,data:["\\'"]},e,function(){return a.jsonMode});break;case"b":i="\\b";break;case"f":i="\\f";break;case"n":i="\\n";break;case"r":i="\\r";break;case"t":i="\\t";break;case"0":i="\\0";var r=parseInt(this.peek(1),10);this.triggerAsync("warning",{code:"W115",line:this.line,character:this.char},e,function(){return r>=0&&r<=7&&a.isStrict()});break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":i="\\"+i,this.triggerAsync("warning",{code:"W115",line:this.line,character:this.char},e,function(){return a.isStrict()});break;case"u":var o=this.input.substr(1,4),s=parseInt(o,16);x(o)||this.trigger("warning",{code:"W052",line:this.line,character:this.char,data:["u"+o]}),i=String.fromCharCode(s),n=5;break;case"v":this.triggerAsync("warning",{code:"W114",line:this.line,character:this.char,data:["\\v"]},e,function(){return a.jsonMode}),i="\v";break;case"x":var l=parseInt(this.input.substr(1,2),16);this.triggerAsync("warning",{code:"W114",line:this.line,character:this.char,data:["\\x-"]},e,function(){return a.jsonMode}),i=String.fromCharCode(l),n=3;break;case"\\":i="\\\\";break;case"/":break;case"":t=!0,i=""}return{char:i,jump:n,allowNewLine:t}},scanTemplateLiteral:function(e){var t,n,i="",r=this.line,o=this.char,s=this.templateStarts.length;if("`"===this.peek())a.inES6(!0)||this.triggerAsync("warning",{code:"W119",line:this.line,character:this.char,data:["template literal syntax","6"]},e,function(){return!0}),t=b,this.templateStarts.push({line:this.line,char:this.char}),s=this.templateStarts.length,this.skip(1),this.pushContext(C.Template);else{if(!this.inContext(C.Template)||"}"!==this.peek())return null;t=k}for(;"`"!==this.peek();){for(;""===(n=this.peek());)if(i+="\n",!this.nextLine(e)){var l=this.templateStarts.pop();return this.trigger("error",{code:"E052",line:l.line,character:l.char}),{type:t,value:i,startLine:r,startChar:o,isUnclosed:!0,depth:s,context:this.popContext()}}if("$"===n&&"{"===this.peek(1))return i+="${",this.skip(2),{type:t,value:i,startLine:r,startChar:o,isUnclosed:!1,depth:s,context:this.currentContext()};if("\\"===n){var c=this.scanEscapeSequence(e);i+=c.char,this.skip(c.jump)}else"`"!==n&&(i+=n,this.skip(1))}return t=t===b?_:w,this.skip(1),this.templateStarts.pop(),{type:t,value:i,startLine:r,startChar:o,isUnclosed:!1,depth:s,context:this.popContext()}},scanStringLiteral:function(e){var t=this.peek();if('"'!==t&&"'"!==t)return null;this.triggerAsync("warning",{code:"W108",line:this.line,character:this.char},e,function(){return a.jsonMode&&'"'!==t});var n="",i=this.line,r=this.char,o=!1;for(this.skip();this.peek()!==t;)if(""===this.peek()){if(o?(o=!1,this.triggerAsync("warning",{code:"W043",line:this.line,character:this.char},e,function(){return!a.option.multistr}),this.triggerAsync("warning",{code:"W042",line:this.line,character:this.char},e,function(){return a.jsonMode&&a.option.multistr})):this.trigger("warning",{code:"W112",line:this.line,character:this.char}),!this.nextLine(e))return{type:m,value:n,startLine:i,startChar:r,isUnclosed:!0,quote:t}}else{o=!1;var s=this.peek(),l=1;if(s<" "&&this.triggerAsync("warning",{code:"W113",line:this.line,character:this.char,data:["<non-printable>"]},e,function(){return!0}),"\\"===s){var c=this.scanEscapeSequence(e);s=c.char,l=c.jump,o=c.allowNewLine}""!==s&&(n+=s,this.skip(l))}return this.skip(),{type:m,value:n,startLine:i,startChar:r,isUnclosed:!1,quote:t}},scanRegExp:function(e){var t,i,r,s=0,l=this.input.length,c=this.peek(),u=c,d="",p=[],h="",f="",m=!1,g=!1,v=!1,b=!1,k=!1,w="",_=function(){return h.indexOf("u")>-1},C=0,S=function(){var t,i;if(s+=1,c=this.peek(s),o.nonzeroDigit.test(c)){for(i=c,t=this.peek(s+1);o.nonzeroDigit.test(t)||"0"===t;)s+=1,i+=c=t,d+=c,u+=c,t=this.peek(s+1);return p.push(Number(i)),i}if(w+=c,"u"===c&&"{"===this.peek(s+1)){var r=s+2;for(i="u{",t=this.peek(r);x(t);)i+=t,r+=1,t=this.peek(r);if("}"!==t)this.triggerAsync("error",{code:"E016",line:this.line,character:this.char,data:["Invalid Unicode escape sequence"]},e,_);else if(i.length>2)return d+=i+="}",u+=i,s=r+1,i}if("p"===c||"P"===c){var l=s+2;if(i="",t="","{"===this.peek(s+1))for(t=this.peek(l);t&&"}"!==t;)i+=t,l+=1,t=this.peek(l);if(i&&n(44430)(i)||this.triggerAsync("error",{code:"E016",line:this.line,character:this.char,data:["Invalid Unicode property escape sequence"]},e,_),i)return d+=i=c+"{"+i+"}",u+=i,s=l+1,a.inES9()||this.triggerAsync("warning",{code:"W119",line:this.line,character:this.char,data:["Unicode property escape","9"]},e,_),i}return c<" "&&(m=!0,this.triggerAsync("warning",{code:"W048",line:this.line,character:this.char},e,function(){return!0})),"<"===c?(m=!0,this.triggerAsync("warning",{code:"W049",line:this.line,character:this.char,data:[c]},e,function(){return!0})):"0"===c&&o.decimalDigit.test(this.peek(s+1))&&this.triggerAsync("error",{code:"E016",line:this.line,character:this.char,data:["Invalid decimal escape sequence"]},e,_),s+=1,d+=c,u+=c,c}.bind(this),E=function(){var e,t=s,n="",i="";for(e=this.peek(t+1);o.decimalDigit.test(e);)t+=1,n+=e,e=this.peek(t+1);if(!n)return!1;if("}"===e)return!0;if(","!==e)return!1;for(t+=1,e=this.peek(t+1);o.decimalDigit.test(e);)t+=1,i+=e,e=this.peek(t+1);return"}"===e&&(!i||Number(n)<=Number(i))}.bind(this),A=function(e){return e.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(e,t,n){var i,r=parseInt(t||n,16);return r>1114111?(m=!0,void this.trigger("error",{code:"E016",line:this.line,character:this.char,data:[c]})):(i=String.fromCharCode(r),o.regexpSyntaxChars.test(i)?e:r<=65535?String.fromCharCode(r):"")}.bind(this)).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"")}.bind(this);if(!this.prereg||"/"!==c)return null;for(s+=1,i=!1;s<l;)if(v&="-"===c,c=this.peek(s),u+=c,d+=c,g&&("]"===c?"\\"===this.peek(s-1)&&"\\"!==this.peek(s-2)||(g=!1):"-"===c&&(v=!0)),"\\"!==c)if(g)s+=1;else if("{"!==c||k||(k=!E()),"["!==c){if("("===c)"?"!==this.peek(s+1)||"="!==this.peek(s+2)&&"!"!==this.peek(s+2)||(b=!0);else if(")"===c)b?(b=!1,o.regexpQuantifiers.test(this.peek(s+1))&&this.triggerAsync("error",{code:"E016",line:this.line,character:this.char,data:["Quantified quantifiable"]},e,_)):C+=1;else if("/"===c){d=d.substr(0,d.length-1),i=!0,s+=1;break}s+=1}else g=!0,s+=1;else t=S(),g&&("-"===this.peek(s)||v)&&o.regexpCharClasses.test(t)&&this.triggerAsync("error",{code:"E016",line:this.line,character:this.char,data:["Character class used in range"]},e,_);if(!i)return this.trigger("error",{code:"E015",line:this.line,character:this.from}),void this.trigger("fatal",{line:this.line,from:this.from});for(;s<l&&(c=this.peek(s),/[gimyus]/.test(c));){if("y"===c)a.inES6(!0)||this.triggerAsync("warning",{code:"W119",line:this.line,character:this.char,data:["Sticky RegExp flag","6"]},e,function(){return!0});else if("u"===c){a.inES6(!0)||this.triggerAsync("warning",{code:"W119",line:this.line,character:this.char,data:["Unicode RegExp flag","6"]},e,function(){return!0});var D=function(e,t,n,i){return!!e.some(function(e){if(e>t)return!0})||!n.split("").every(function(e){return"u"===e||"/"===e||"0"===e||i.regexpControlEscapes.test(e)||i.regexpCharClasses.test(e)||i.regexpSyntaxChars.test(e)})}(p,C,w,o);D?r="Invalid escape":k&&(r="Invalid quantifier"),d=A(d)}else"s"===c?(a.inES9()||this.triggerAsync("warning",{code:"W119",line:this.line,character:this.char,data:["DotAll RegExp flag","9"]},e,function(){return!0}),u.indexOf("s")>-1&&(r="Duplicate RegExp flag")):f+=c;h.indexOf(c)>-1&&(r="Duplicate RegExp flag"),h+=c,u+=c,h+=c,s+=1}-1===h.indexOf("u")&&this.triggerAsync("warning",{code:"W147",line:this.line,character:this.char},e,function(){return a.option.regexpu});try{new RegExp(d,f)}catch(e){r=e.message}return r?(m=!0,this.trigger("error",{code:"E016",line:this.line,character:this.char,data:[r]})):h.indexOf("s")>-1&&!o.regexpDot.test(d)&&this.trigger("warning",{code:"W148",line:this.line,character:this.char}),{type:y,value:u,isMalformed:m}},scanNonBreakingSpaces:function(){return a.option.nonbsp?this.input.search(/(\u00A0)/):-1},next:function(e){for(this.from=this.char;o.whitespace.test(this.peek());)this.from+=1,this.skip();var t=this.scanComments(e)||this.scanStringLiteral(e)||this.scanTemplateLiteral(e);return t||((t=this.scanRegExp(e)||this.scanPunctuator()||this.scanKeyword()||this.scanIdentifier(e)||this.scanNumericLiteral(e))?(this.skip(t.tokenLength||t.value.length),t):null)},nextLine:function(e){var t;if(this.line>=this.getLines().length)return!1;this.input=this.getLines()[this.line],this.line+=1,this.char=1,this.from=1;var n=this.input.trim(),r=function(){return i.some(arguments,function(e){return 0===n.indexOf(e)})};(!0===this.ignoringLinterErrors&&(r("/*","//")||this.inComment&&function(){return i.some(arguments,function(e){return-1!==n.indexOf(e,n.length-e.length)})}("*/")||(this.input="")),(t=this.scanNonBreakingSpaces())>=0&&this.triggerAsync("warning",{code:"W125",line:this.line,character:t+1},e,function(){return!0}),this.input=this.input.replace(/\t/g,a.tab),!this.ignoringLinterErrors&&a.option.maxlen&&a.option.maxlen<this.input.length)&&((!(this.inComment||r.call(n,"//")||r.call(n,"/*"))||!o.maxlenException.test(n))&&this.triggerAsync("warning",{code:"W101",line:this.line,character:this.input.length},e,function(){return!0}));return!0},token:function(){for(var e,t,n=(e=[],{push:function(t){e.push(t)},check:function(){for(var t=0;t<e.length;++t)e[t]();e.splice(0,e.length)}}),r=function(e,t,r,o){var s;if("(endline)"!==e&&"(end)"!==e&&(this.prereg=!1),"(punctuator)"===e){switch(t){case".":case")":case"~":case"#":case"]":case"}":case"++":case"--":this.prereg=!1;break;default:this.prereg=!0}s=Object.create(a.syntax[t]||a.syntax["(error)"])}return"(identifier)"===e&&("return"!==t&&"case"!==t&&"yield"!==t&&"typeof"!==t&&"instanceof"!==t&&"void"!==t&&"await"!==t&&"new"!==t&&"delete"!==t&&"default"!==t&&"extends"!==t||(this.prereg=!0),i.has(a.syntax,t)&&(s=Object.create(a.syntax[t]||a.syntax["(error)"]))),"(template)"!==e&&"(template middle)"!==e||(this.prereg=!0),s||(s=Object.create(a.syntax[e])),s.identifier="(identifier)"===e,s.type=s.type||e,s.value=t,s.line=this.line,s.character=this.char,s.from=this.from,s.identifier&&o&&(s.raw_text=o.text||o.value),o&&o.startLine&&o.startLine!==this.line&&(s.startLine=o.startLine),o&&o.context&&(s.context=o.context),o&&o.depth&&(s.depth=o.depth),o&&o.isUnclosed&&(s.isUnclosed=o.isUnclosed),r&&s.identifier&&(s.isProperty=r),s.check=n.check,s}.bind(this);;){if(!this.input.length)return this.nextLine(n)?r("(endline)",""):this.exhausted?null:(this.exhausted=!0,r("(end)",""));if(t=this.next(n))switch(t.type){case m:return this.triggerAsync("String",{line:this.line,char:this.char,from:this.from,startLine:t.startLine,startChar:t.startChar,value:t.value,quote:t.quote},n,function(){return!0}),r("(string)",t.value,null,t);case b:return this.trigger("TemplateHead",{line:this.line,char:this.char,from:this.from,startLine:t.startLine,startChar:t.startChar,value:t.value}),r("(template)",t.value,null,t);case k:return this.trigger("TemplateMiddle",{line:this.line,char:this.char,from:this.from,startLine:t.startLine,startChar:t.startChar,value:t.value}),r("(template middle)",t.value,null,t);case w:return this.trigger("TemplateTail",{line:this.line,char:this.char,from:this.from,startLine:t.startLine,startChar:t.startChar,value:t.value}),r("(template tail)",t.value,null,t);case _:return this.trigger("NoSubstTemplate",{line:this.line,char:this.char,from:this.from,startLine:t.startLine,startChar:t.startChar,value:t.value}),r("(no subst template)",t.value,null,t);case p:this.triggerAsync("Identifier",{line:this.line,char:this.char,from:this.from,name:t.value,raw_name:t.text,isProperty:"."===a.tokens.curr.id},n,function(){return!0});case v:return r("(identifier)",t.value,"."===a.tokens.curr.id,t);case f:return t.isMalformed&&this.trigger("error",{code:"E067",line:this.line,character:this.char,data:[t.value]}),this.triggerAsync("warning",{code:"W114",line:this.line,character:this.char,data:["0x-"]},n,function(){return 16===t.base&&a.jsonMode}),this.triggerAsync("warning",{code:"W115",line:this.line,character:this.char},n,function(){return a.isStrict()&&8===t.base&&t.isLegacy}),this.triggerAsync("error",{code:"E068",line:this.line,character:this.char},n,function(){return a.isStrict()&&t.isNonOctal}),this.trigger("Number",{line:this.line,char:this.char,from:this.from,value:t.value,base:t.base,isMalformed:t.isMalformed}),r("(number)",t.value);case y:return r("(regexp)",t.value);case g:if(t.isSpecial)return{id:"(comment)",value:t.value,body:t.body,type:t.commentType,isSpecial:t.isSpecial,line:this.line,character:this.char,from:this.from};break;default:return r("(punctuator)",t.value)}else this.input.length&&(this.trigger("error",{code:"E024",line:this.line,character:this.char,data:[this.peek()]}),this.input="")}}},t.J=E},43079:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14" class="bricks-svg"><g id="screen-1--screen-device-electronics-monitor-diplay-computer"><path id="Vector" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M13 1.5H1a.5.5 0 0 0-.5.5v7.5a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5V2a.5.5 0 0 0-.5-.5" stroke-width="1"/><path id="Vector_2" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m6 10-1 2.5" stroke-width="1"/><path id="Vector_3" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m8 10 1 2.5" stroke-width="1"/><path id="Vector_4" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M4 12.5h6" stroke-width="1"/></g></svg>'},43339:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M10 21.75a2.087 2.087 0 0 0 4.005 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M12 3V.75" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M12 3a7.5 7.5 0 0 1 7.5 7.5c0 7.046 1.5 8.25 1.5 8.25H3s1.5-1.916 1.5-8.25A7.5 7.5 0 0 1 12 3" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},43591:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M13.862 14.942a5.5 5.5 0 0 0 4.018 2.203c3.96 0 6.436-4.287 4.456-7.717a5.15 5.15 0 0 0-4.456-2.573C14.205 6.855 12 12 12 12s-2.205 5.145-5.88 5.145c-3.96 0-6.436-4.287-4.456-7.717A5.15 5.15 0 0 1 6.12 6.855a5.5 5.5 0 0 1 4.018 2.207" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},43905:function(){},44103:function(){},44147:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><g fill="none" fill-rule="evenodd"><path fill="#212121" d="M58 44h12v52H58zM37 32h56v12H37z"/><path fill="#212121" d="M16 100h96v12H16z"/></g></svg>'},44162:function(e,t,n){"use strict";e.exports=o;var i=n(37388),r=n(13573);function o(e,t,n){i.call(this,e.join(" "),t,n,r.PROPERTY_VALUE_TYPE),this.parts=e}o.prototype=new i,o.prototype.constructor=o},44418:function(e){"use strict";function t(e,t,n){Error.call(this),this.name=this.constructor.name,this.col=n,this.line=t,this.message=e}e.exports=t,t.prototype=Object.create(Error.prototype),t.prototype.constructor=t},44430:function(e){"use strict";e.exports=function(e){var i=e.indexOf("=");if(-1===i)return e in t.binary||e in n.general;var r=e.substr(0,i),o=e.substr(i+1);return"General_Category"===r||"gc"===r?o in n.general:("Script"===r||"sc"===r||"Script_Extensions"===r||"scx"===r)&&o in n.script};var t={nonBinary:Object.create(null),binary:Object.create(null)},n={general:Object.create(null),script:Object.create(null)},i=t.nonBinary;i.General_Category=!0,i.gc=!0,i.Script=!0,i.sc=!0,i.Script_Extensions=!0,i.scx=!0;var r=t.binary;r.ASCII=!0,r.ASCII_Hex_Digit=!0,r.AHex=!0,r.Alphabetic=!0,r.Alpha=!0,r.Any=!0,r.Assigned=!0,r.Bidi_Control=!0,r.Bidi_C=!0,r.Bidi_Mirrored=!0,r.Bidi_M=!0,r.Case_Ignorable=!0,r.CI=!0,r.Cased=!0,r.Changes_When_Casefolded=!0,r.CWCF=!0,r.Changes_When_Casemapped=!0,r.CWCM=!0,r.Changes_When_Lowercased=!0,r.CWL=!0,r.Changes_When_NFKC_Casefolded=!0,r.CWKCF=!0,r.Changes_When_Titlecased=!0,r.CWT=!0,r.Changes_When_Uppercased=!0,r.CWU=!0,r.Dash=!0,r.Default_Ignorable_Code_Point=!0,r.DI=!0,r.Deprecated=!0,r.Dep=!0,r.Diacritic=!0,r.Dia=!0,r.Emoji=!0,r.Emoji_Component=!0,r.EComp=!0,r.Emoji_Modifier=!0,r.EMod=!0,r.Emoji_Modifier_Base=!0,r.EBase=!0,r.Emoji_Presentation=!0,r.EPres=!0,r.Extended_Pictographic=!0,r.ExtPict=!0,r.Extender=!0,r.Ext=!0,r.Grapheme_Base=!0,r.Gr_Base=!0,r.Grapheme_Extend=!0,r.Gr_Ext=!0,r.Hex_Digit=!0,r.Hex=!0,r.IDS_Binary_Operator=!0,r.IDSB=!0,r.IDS_Trinary_Operator=!0,r.IDST=!0,r.ID_Continue=!0,r.IDC=!0,r.ID_Start=!0,r.IDS=!0,r.Ideographic=!0,r.Ideo=!0,r.Join_Control=!0,r.Join_C=!0,r.Logical_Order_Exception=!0,r.LOE=!0,r.Lowercase=!0,r.Lower=!0,r.Math=!0,r.Noncharacter_Code_Point=!0,r.NChar=!0,r.Pattern_Syntax=!0,r.Pat_Syn=!0,r.Pattern_White_Space=!0,r.Pat_WS=!0,r.Quotation_Mark=!0,r.QMark=!0,r.Radical=!0,r.Regional_Indicator=!0,r.RI=!0,r.Sentence_Terminal=!0,r.STerm=!0,r.Soft_Dotted=!0,r.SD=!0,r.Terminal_Punctuation=!0,r.Term=!0,r.Unified_Ideograph=!0,r.UIdeo=!0,r.Uppercase=!0,r.Upper=!0,r.Variation_Selector=!0,r.VS=!0,r.White_Space=!0,r.space=!0,r.XID_Continue=!0,r.XIDC=!0,r.XID_Start=!0,r.XIDS=!0;var o=n.general;o.Cased_Letter=!0,o.LC=!0,o.Close_Punctuation=!0,o.Pe=!0,o.Connector_Punctuation=!0,o.Pc=!0,o.Control=!0,o.Cc=!0,o.cntrl=!0,o.Currency_Symbol=!0,o.Sc=!0,o.Dash_Punctuation=!0,o.Pd=!0,o.Decimal_Number=!0,o.Nd=!0,o.digit=!0,o.Enclosing_Mark=!0,o.Me=!0,o.Final_Punctuation=!0,o.Pf=!0,o.Format=!0,o.Cf=!0,o.Initial_Punctuation=!0,o.Pi=!0,o.Letter=!0,o.L=!0,o.Letter_Number=!0,o.Nl=!0,o.Line_Separator=!0,o.Zl=!0,o.Lowercase_Letter=!0,o.Ll=!0,o.Mark=!0,o.M=!0,o.Combining_Mark=!0,o.Math_Symbol=!0,o.Sm=!0,o.Modifier_Letter=!0,o.Lm=!0,o.Modifier_Symbol=!0,o.Sk=!0,o.Nonspacing_Mark=!0,o.Mn=!0,o.Number=!0,o.N=!0,o.Open_Punctuation=!0,o.Ps=!0,o.Other=!0,o.C=!0,o.Other_Letter=!0,o.Lo=!0,o.Other_Number=!0,o.No=!0,o.Other_Punctuation=!0,o.Po=!0,o.Other_Symbol=!0,o.So=!0,o.Paragraph_Separator=!0,o.Zp=!0,o.Private_Use=!0,o.Co=!0,o.Punctuation=!0,o.P=!0,o.punct=!0,o.Separator=!0,o.Z=!0,o.Space_Separator=!0,o.Zs=!0,o.Spacing_Mark=!0,o.Mc=!0,o.Surrogate=!0,o.Cs=!0,o.Symbol=!0,o.S=!0,o.Titlecase_Letter=!0,o.Lt=!0,o.Unassigned=!0,o.Cn=!0,o.Uppercase_Letter=!0,o.Lu=!0;var a=n.script;a.Adlam=!0,a.Adlm=!0,a.Ahom=!0,a.Anatolian_Hieroglyphs=!0,a.Hluw=!0,a.Arabic=!0,a.Arab=!0,a.Armenian=!0,a.Armn=!0,a.Avestan=!0,a.Avst=!0,a.Balinese=!0,a.Bali=!0,a.Bamum=!0,a.Bamu=!0,a.Bassa_Vah=!0,a.Bass=!0,a.Batak=!0,a.Batk=!0,a.Bengali=!0,a.Beng=!0,a.Bhaiksuki=!0,a.Bhks=!0,a.Bopomofo=!0,a.Bopo=!0,a.Brahmi=!0,a.Brah=!0,a.Braille=!0,a.Brai=!0,a.Buginese=!0,a.Bugi=!0,a.Buhid=!0,a.Buhd=!0,a.Canadian_Aboriginal=!0,a.Cans=!0,a.Carian=!0,a.Cari=!0,a.Caucasian_Albanian=!0,a.Aghb=!0,a.Chakma=!0,a.Cakm=!0,a.Cham=!0,a.Chorasmian=!0,a.Chrs=!0,a.Cherokee=!0,a.Cher=!0,a.Common=!0,a.Zyyy=!0,a.Coptic=!0,a.Copt=!0,a.Qaac=!0,a.Cuneiform=!0,a.Xsux=!0,a.Cypriot=!0,a.Cprt=!0,a.Cyrillic=!0,a.Cyrl=!0,a.Deseret=!0,a.Dsrt=!0,a.Devanagari=!0,a.Deva=!0,a.Dives_Akuru=!0,a.Diak=!0,a.Dogra=!0,a.Dogr=!0,a.Duployan=!0,a.Dupl=!0,a.Egyptian_Hieroglyphs=!0,a.Egyp=!0,a.Elbasan=!0,a.Elba=!0,a.Elymaic=!0,a.Elym=!0,a.Ethiopic=!0,a.Ethi=!0,a.Georgian=!0,a.Geor=!0,a.Glagolitic=!0,a.Glag=!0,a.Gothic=!0,a.Goth=!0,a.Grantha=!0,a.Gran=!0,a.Greek=!0,a.Grek=!0,a.Gujarati=!0,a.Gujr=!0,a.Gunjala_Gondi=!0,a.Gong=!0,a.Gurmukhi=!0,a.Guru=!0,a.Han=!0,a.Hani=!0,a.Hangul=!0,a.Hang=!0,a.Hanifi_Rohingya=!0,a.Rohg=!0,a.Hanunoo=!0,a.Hano=!0,a.Hatran=!0,a.Hatr=!0,a.Hebrew=!0,a.Hebr=!0,a.Hiragana=!0,a.Hira=!0,a.Imperial_Aramaic=!0,a.Armi=!0,a.Inherited=!0,a.Zinh=!0,a.Qaai=!0,a.Inscriptional_Pahlavi=!0,a.Phli=!0,a.Inscriptional_Parthian=!0,a.Prti=!0,a.Javanese=!0,a.Java=!0,a.Kaithi=!0,a.Kthi=!0,a.Kannada=!0,a.Knda=!0,a.Katakana=!0,a.Kana=!0,a.Kayah_Li=!0,a.Kali=!0,a.Kharoshthi=!0,a.Khar=!0,a.Khitan_Small_Script=!0,a.Kits=!0,a.Khmer=!0,a.Khmr=!0,a.Khojki=!0,a.Khoj=!0,a.Khudawadi=!0,a.Sind=!0,a.Lao=!0,a.Laoo=!0,a.Latin=!0,a.Latn=!0,a.Lepcha=!0,a.Lepc=!0,a.Limbu=!0,a.Limb=!0,a.Linear_A=!0,a.Lina=!0,a.Linear_B=!0,a.Linb=!0,a.Lisu=!0,a.Lycian=!0,a.Lyci=!0,a.Lydian=!0,a.Lydi=!0,a.Mahajani=!0,a.Mahj=!0,a.Makasar=!0,a.Maka=!0,a.Malayalam=!0,a.Mlym=!0,a.Mandaic=!0,a.Mand=!0,a.Manichaean=!0,a.Mani=!0,a.Marchen=!0,a.Marc=!0,a.Medefaidrin=!0,a.Medf=!0,a.Masaram_Gondi=!0,a.Gonm=!0,a.Meetei_Mayek=!0,a.Mtei=!0,a.Mende_Kikakui=!0,a.Mend=!0,a.Meroitic_Cursive=!0,a.Merc=!0,a.Meroitic_Hieroglyphs=!0,a.Mero=!0,a.Miao=!0,a.Plrd=!0,a.Modi=!0,a.Mongolian=!0,a.Mong=!0,a.Mro=!0,a.Mroo=!0,a.Multani=!0,a.Mult=!0,a.Myanmar=!0,a.Mymr=!0,a.Nabataean=!0,a.Nbat=!0,a.Nandinagari=!0,a.Nand=!0,a.New_Tai_Lue=!0,a.Talu=!0,a.Newa=!0,a.Nko=!0,a.Nkoo=!0,a.Nushu=!0,a.Nshu=!0,a.Nyiakeng_Puachue_Hmong=!0,a.Hmnp=!0,a.Ogham=!0,a.Ogam=!0,a.Ol_Chiki=!0,a.Olck=!0,a.Old_Hungarian=!0,a.Hung=!0,a.Old_Italic=!0,a.Ital=!0,a.Old_North_Arabian=!0,a.Narb=!0,a.Old_Permic=!0,a.Perm=!0,a.Old_Persian=!0,a.Xpeo=!0,a.Old_Sogdian=!0,a.Sogo=!0,a.Old_South_Arabian=!0,a.Sarb=!0,a.Old_Turkic=!0,a.Orkh=!0,a.Oriya=!0,a.Orya=!0,a.Osage=!0,a.Osge=!0,a.Osmanya=!0,a.Osma=!0,a.Pahawh_Hmong=!0,a.Hmng=!0,a.Palmyrene=!0,a.Palm=!0,a.Pau_Cin_Hau=!0,a.Pauc=!0,a.Phags_Pa=!0,a.Phag=!0,a.Phoenician=!0,a.Phnx=!0,a.Psalter_Pahlavi=!0,a.Phlp=!0,a.Rejang=!0,a.Rjng=!0,a.Runic=!0,a.Runr=!0,a.Samaritan=!0,a.Samr=!0,a.Saurashtra=!0,a.Saur=!0,a.Sharada=!0,a.Shrd=!0,a.Shavian=!0,a.Shaw=!0,a.Siddham=!0,a.Sidd=!0,a.SignWriting=!0,a.Sgnw=!0,a.Sinhala=!0,a.Sinh=!0,a.Sogdian=!0,a.Sogd=!0,a.Sora_Sompeng=!0,a.Sora=!0,a.Soyombo=!0,a.Soyo=!0,a.Sundanese=!0,a.Sund=!0,a.Syloti_Nagri=!0,a.Sylo=!0,a.Syriac=!0,a.Syrc=!0,a.Tagalog=!0,a.Tglg=!0,a.Tagbanwa=!0,a.Tagb=!0,a.Tai_Le=!0,a.Tale=!0,a.Tai_Tham=!0,a.Lana=!0,a.Tai_Viet=!0,a.Tavt=!0,a.Takri=!0,a.Takr=!0,a.Tamil=!0,a.Taml=!0,a.Tangut=!0,a.Tang=!0,a.Telugu=!0,a.Telu=!0,a.Thaana=!0,a.Thaa=!0,a.Thai=!0,a.Tibetan=!0,a.Tibt=!0,a.Tifinagh=!0,a.Tfng=!0,a.Tirhuta=!0,a.Tirh=!0,a.Ugaritic=!0,a.Ugar=!0,a.Vai=!0,a.Vaii=!0,a.Wancho=!0,a.Wcho=!0,a.Warang_Citi=!0,a.Wara=!0,a.Yezidi=!0,a.Yezi=!0,a.Yi=!0,a.Yiii=!0,a.Zanabazar_Square=!0,a.Zanb=!0},44459:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"head-script-disabled",description:"The <script> tag cannot be used in a <head> tag.",init(e,t,n){const i=/^(text\/javascript|application\/javascript)$/i;let r=!1;const o=o=>{const a=e.getMapAttrs(o.attrs),s=a.type,l=a.defer,c=o.tagName.toLowerCase();if("head"===c&&(r=!0),!0===r&&"script"===c){const e="module"===s,r=void 0!==l,c=void 0!==a.async;(!s||!0===i.test(s)||e)&&("allow-non-blocking"===n?e||r||c||t.warn('The <script> tag cannot be used in a <head> tag unless it has type="module", defer, or async attribute.',o.line,o.col,this,o.raw):t.warn("The <script> tag cannot be used in a <head> tag.",o.line,o.col,this,o.raw))}},a=t=>{"head"===t.tagName.toLowerCase()&&(e.removeListener("tagstart",o),e.removeListener("tagend",a))};e.addListener("tagstart",o),e.addListener("tagend",a)}}},44984:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"inline-style-disabled",description:"Inline style cannot be used.",init(e,t){e.addListener("tagstart",e=>{const n=e.attrs;let i;const r=e.col+e.tagName.length+1;for(let o=0,a=n.length;o<a;o++)i=n[o],"style"===i.name.toLowerCase()&&t.warn(`Inline style [ ${i.raw} ] cannot be used.`,e.line,r+i.index,this,i.raw)})}}},45094:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="-1 -1 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M11.002 15.81v5.5" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M11.002.685v5.5" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M6.19 10.997H.69" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M21.314 10.997h-5.5" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M3.44 10.998a7.563 7.563 0 1 0 15.125 0 7.563 7.563 0 0 0-15.126 0" stroke-width="2"/></svg>'},45133:function(){},45304:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="bricks-svg"><rect x="0" y="0" width="1.5" height="24" fill="#23282D"/><rect x="22.5" y="0" width="1.5" height="24" fill="#23282D"/><text x="12" y="14.5" font-size="22" font-weight="bold" fill="#23282D" font-family="Arial, sans-serif" text-anchor="middle" dominant-baseline="middle">A</text></svg>'},46451:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M0 0h8v128H0zm16 28h96v32H16zm0 40h96v32H16z"/></svg>'},46650:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"style-disabled",description:"<style> tags cannot be used.",init(e,t){e.addListener("tagstart",e=>{"style"===e.tagName.toLowerCase()&&t.warn("The <style> tag cannot be used.",e.line,e.col,this,e.raw)})}}},46749:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M32 16h64v24H32zM16 52h96v24H16zm16 36h64v24H32z"/></svg>'},46825:function(){},46979:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M4.799 15.356 1.443 12 4.8 8.645" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M19.201 8.645 22.557 12 19.2 15.356" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M22.557 12H1.443" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M12 22.557V1.443" stroke-width="2"/></svg>'},47119:function(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},47147:function(){},47204:function(){},47943:function(e,t,n){ /*! * imagesLoaded v5.0.0 * JavaScript is all like "You images are done yet or what?" * MIT License */ !function(t,i){e.exports?e.exports=i(t,n(32137)):t.imagesLoaded=i(t,t.EvEmitter)}("undefined"!=typeof window?window:this,function(e,t){let n=e.jQuery,i=e.console;function r(e,t,o){if(!(this instanceof r))return new r(e,t,o);let a=e;var s;("string"==typeof e&&(a=document.querySelectorAll(e)),a)?(this.elements=(s=a,Array.isArray(s)?s:"object"==typeof s&&"number"==typeof s.length?[...s]:[s]),this.options={},"function"==typeof t?o=t:Object.assign(this.options,t),o&&this.on("always",o),this.getImages(),n&&(this.jqDeferred=new n.Deferred),setTimeout(this.check.bind(this))):i.error(`Bad element for imagesLoaded ${a||e}`)}r.prototype=Object.create(t.prototype),r.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const o=[1,9,11];r.prototype.addElementImages=function(e){"IMG"===e.nodeName&&this.addImage(e),!0===this.options.background&&this.addElementBackgroundImages(e);let{nodeType:t}=e;if(!t||!o.includes(t))return;let n=e.querySelectorAll("img");for(let e of n)this.addImage(e);if("string"==typeof this.options.background){let t=e.querySelectorAll(this.options.background);for(let e of t)this.addElementBackgroundImages(e)}};const a=/url\((['"])?(.*?)\1\)/gi;function s(e){this.img=e}function l(e,t){this.url=e,this.element=t,this.img=new Image}return r.prototype.addElementBackgroundImages=function(e){let t=getComputedStyle(e);if(!t)return;let n=a.exec(t.backgroundImage);for(;null!==n;){let i=n&&n[2];i&&this.addBackground(i,e),n=a.exec(t.backgroundImage)}},r.prototype.addImage=function(e){let t=new s(e);this.images.push(t)},r.prototype.addBackground=function(e,t){let n=new l(e,t);this.images.push(n)},r.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let e=(e,t,n)=>{setTimeout(()=>{this.progress(e,t,n)})};this.images.forEach(function(t){t.once("progress",e),t.check()})},r.prototype.progress=function(e,t,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&i&&i.log(`progress: ${n}`,e,t)},r.prototype.complete=function(){let e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){let e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},s.prototype=Object.create(t.prototype),s.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},s.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},s.prototype.confirm=function(e,t){this.isLoaded=e;let{parentNode:n}=this.img,i="PICTURE"===n.nodeName?n:this.img;this.emitEvent("progress",[this,i,t])},s.prototype.handleEvent=function(e){let t="on"+e.type;this[t]&&this[t](e)},s.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},s.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},s.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},l.prototype=Object.create(s.prototype),l.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},l.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},l.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},r.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&(n=t,n.fn.imagesLoaded=function(e,t){return new r(this,e,t).jqDeferred.promise(n(this))})},r.makeJQueryPlugin(),r})},48101:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M16 16h64v20H16zm0 38h96v20H16zm0 38h64v20H16z"/></svg>'},48287:function(e,t,n){"use strict"; /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh <https://feross.org> * @license MIT */ const i=n(67526),r=n(251),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.hp=l,t.IS=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return c(e,t,n)}function c(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|m(e,t);let i=s(n);const r=i.write(e,t);r!==n&&(i=i.slice(0,r));return i}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Q(e,Uint8Array)){const t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Q(e,ArrayBuffer)||e&&Q(e.buffer,ArrayBuffer))return h(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(Q(e,SharedArrayBuffer)||e&&Q(e.buffer,SharedArrayBuffer)))return h(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return l.from(i,t,n);const r=function(e){if(l.isBuffer(e)){const t=0|f(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||Y(e.length)?s(0):p(e);if("Buffer"===e.type&&Array.isArray(e.data))return p(e.data)}(e);if(r)return r;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return u(e),s(e<0?0:0|f(e))}function p(e){const t=e.length<0?0:0|f(e.length),n=s(t);for(let i=0;i<t;i+=1)n[i]=255&e[i];return n}function h(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let i;return i=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(i,l.prototype),i}function f(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Q(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===n)return 0;let r=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(e).length;default:if(r)return i?-1:W(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){let i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return I(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return D(this,t,n);case"latin1":case"binary":return T(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function v(e,t,n){const i=e[t];e[t]=e[n],e[n]=i}function y(e,t,n,i,r){if(0===e.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Y(n=+n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof t&&(t=l.from(t,i)),l.isBuffer(t))return 0===t.length?-1:b(e,t,n,i,r);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,i,r);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,i,r){let o,a=1,s=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(r){let i=-1;for(o=n;o<s;o++)if(c(e,o)===c(t,-1===i?0:o-i)){if(-1===i&&(i=o),o-i+1===l)return i*a}else-1!==i&&(o-=o-i),i=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){let n=!0;for(let i=0;i<l;i++)if(c(e,o+i)!==c(t,i)){n=!1;break}if(n)return o}return-1}function k(e,t,n,i){n=Number(n)||0;const r=e.length-n;i?(i=Number(i))>r&&(i=r):i=r;const o=t.length;let a;for(i>o/2&&(i=o/2),a=0;a<i;++a){const i=parseInt(t.substr(2*a,2),16);if(Y(i))return a;e[n+a]=i}return a}function w(e,t,n,i){return K(W(t,e.length-n),e,n,i)}function _(e,t,n,i){return K(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,i)}function C(e,t,n,i){return K(G(t),e,n,i)}function x(e,t,n,i){return K(function(e,t){let n,i,r;const o=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),i=n>>8,r=n%256,o.push(r),o.push(i);return o}(t,e.length-n),e,n,i)}function S(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);const i=[];let r=t;for(;r<n;){const t=e[r];let o=null,a=t>239?4:t>223?3:t>191?2:1;if(r+a<=n){let n,i,s,l;switch(a){case 1:t<128&&(o=t);break;case 2:n=e[r+1],128==(192&n)&&(l=(31&t)<<6|63&n,l>127&&(o=l));break;case 3:n=e[r+1],i=e[r+2],128==(192&n)&&128==(192&i)&&(l=(15&t)<<12|(63&n)<<6|63&i,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:n=e[r+1],i=e[r+2],s=e[r+3],128==(192&n)&&128==(192&i)&&128==(192&s)&&(l=(15&t)<<18|(63&n)<<12|(63&i)<<6|63&s,l>65535&&l<1114112&&(o=l))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,i.push(o>>>10&1023|55296),o=56320|1023&o),i.push(o),r+=a}return function(e){const t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);let n="",i=0;for(;i<t;)n+=String.fromCharCode.apply(String,e.slice(i,i+=A));return n}(i)}l.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,n){return function(e,t,n){return u(e),e<=0?s(e):void 0!==t?"string"==typeof n?s(e).fill(t,n):s(e).fill(t):s(e)}(e,t,n)},l.allocUnsafe=function(e){return d(e)},l.allocUnsafeSlow=function(e){return d(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(Q(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),Q(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,i=t.length;for(let r=0,o=Math.min(n,i);r<o;++r)if(e[r]!==t[r]){n=e[r],i=t[r];break}return n<i?-1:i<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const i=l.allocUnsafe(t);let r=0;for(n=0;n<e.length;++n){let t=e[n];if(Q(t,Uint8Array))r+t.length>i.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(i,r)):Uint8Array.prototype.set.call(i,t,r);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(i,r)}r+=t.length}return i},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)v(this,t,t+1);return this},l.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},l.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},l.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?E(this,0,e):g.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){let e="";const n=t.IS;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(l.prototype[o]=l.prototype.inspect),l.prototype.compare=function(e,t,n,i,r){if(Q(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&t>=n)return 0;if(i>=r)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(r>>>=0)-(i>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(o,a),c=this.slice(i,r),u=e.slice(t,n);for(let e=0;e<s;++e)if(c[e]!==u[e]){o=c[e],a=u[e];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},l.prototype.write=function(e,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)i=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}const r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let o=!1;for(;;)switch(i){case"hex":return k(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":case"latin1":case"binary":return _(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const A=4096;function D(e,t,n){let i="";n=Math.min(e.length,n);for(let r=t;r<n;++r)i+=String.fromCharCode(127&e[r]);return i}function T(e,t,n){let i="";n=Math.min(e.length,n);for(let r=t;r<n;++r)i+=String.fromCharCode(e[r]);return i}function I(e,t,n){const i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);let r="";for(let i=t;i<n;++i)r+=J[e[i]];return r}function O(e,t,n){const i=e.slice(t,n);let r="";for(let e=0;e<i.length-1;e+=2)r+=String.fromCharCode(i[e]+256*i[e+1]);return r}function P(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function F(e,t,n,i,r,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<o)throw new RangeError('"value" argument is out of bounds');if(n+i>e.length)throw new RangeError("Index out of range")}function $(e,t,n,i,r){q(t,i,r,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function M(e,t,n,i,r){q(t,i,r,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function L(e,t,n,i,r,o){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,i,o){return t=+t,n>>>=0,o||L(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function j(e,t,n,i,o){return t=+t,n>>>=0,o||L(e,0,n,8),r.write(e,t,n,i,52,8),n+8}l.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const i=this.subarray(e,t);return Object.setPrototypeOf(i,l.prototype),i},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);let i=this[e],r=1,o=0;for(;++o<t&&(r*=256);)i+=this[e+o]*r;return i},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);let i=this[e+--t],r=1;for(;t>0&&(r*=256);)i+=this[e+--t]*r;return i},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=X(function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||z(e,this.length-8);const i=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,r=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(i)+(BigInt(r)<<BigInt(32))}),l.prototype.readBigUInt64BE=X(function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||z(e,this.length-8);const i=t*2**24+65536*this[++e]+256*this[++e]+this[++e],r=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(i)<<BigInt(32))+BigInt(r)}),l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);let i=this[e],r=1,o=0;for(;++o<t&&(r*=256);)i+=this[e+o]*r;return r*=128,i>=r&&(i-=Math.pow(2,8*t)),i},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);let i=t,r=1,o=this[e+--i];for(;i>0&&(r*=256);)o+=this[e+--i]*r;return r*=128,o>=r&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||P(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||P(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=X(function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||z(e,this.length-8);const i=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(i)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)}),l.prototype.readBigInt64BE=X(function(e){H(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||z(e,this.length-8);const i=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(i)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)}),l.prototype.readFloatLE=function(e,t){return e>>>=0,t||P(e,4,this.length),r.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||P(e,4,this.length),r.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||P(e,8,this.length),r.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||P(e,8,this.length),r.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,i){if(e=+e,t>>>=0,n>>>=0,!i){F(this,e,t,n,Math.pow(2,8*n)-1,0)}let r=1,o=0;for(this[t]=255&e;++o<n&&(r*=256);)this[t+o]=e/r&255;return t+n},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,n,i){if(e=+e,t>>>=0,n>>>=0,!i){F(this,e,t,n,Math.pow(2,8*n)-1,0)}let r=n-1,o=1;for(this[t+r]=255&e;--r>=0&&(o*=256);)this[t+r]=e/o&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=X(function(e,t=0){return $(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=X(function(e,t=0){return M(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t>>>=0,!i){const i=Math.pow(2,8*n-1);F(this,e,t,n,i-1,-i)}let r=0,o=1,a=0;for(this[t]=255&e;++r<n&&(o*=256);)e<0&&0===a&&0!==this[t+r-1]&&(a=1),this[t+r]=(e/o|0)-a&255;return t+n},l.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t>>>=0,!i){const i=Math.pow(2,8*n-1);F(this,e,t,n,i-1,-i)}let r=n-1,o=1,a=0;for(this[t+r]=255&e;--r>=0&&(o*=256);)e<0&&0===a&&0!==this[t+r+1]&&(a=1),this[t+r]=(e/o|0)-a&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||F(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=X(function(e,t=0){return $(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=X(function(e,t=0){return M(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return j(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return j(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,i){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);const r=i-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),t),r},l.prototype.fill=function(e,t,n,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!l.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(1===e.length){const t=e.charCodeAt(0);("utf8"===i&&t<128||"latin1"===i)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let r;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(r=t;r<n;++r)this[r]=e;else{const o=l.isBuffer(e)?e:l.from(e,i),a=o.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(r=0;r<n-t;++r)this[r+t]=o[r%a]}return this};const B={};function R(e,t,n){B[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function V(e){let t="",n=e.length;const i="-"===e[0]?1:0;for(;n>=i+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function q(e,t,n,i,r,o){if(e>n||e<t){const i="bigint"==typeof t?"n":"";let r;throw r=o>3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${8*(o+1)}${i}`:`>= -(2${i} ** ${8*(o+1)-1}${i}) and < 2 ** ${8*(o+1)-1}${i}`:`>= ${t}${i} and <= ${n}${i}`,new B.ERR_OUT_OF_RANGE("value",r,e)}!function(e,t,n){H(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||z(t,e.length-(n+1))}(i,r,o)}function H(e,t){if("number"!=typeof e)throw new B.ERR_INVALID_ARG_TYPE(t,"number",e)}function z(e,t,n){if(Math.floor(e)!==e)throw H(e,n),new B.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new B.ERR_BUFFER_OUT_OF_BOUNDS;throw new B.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}R("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),R("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),R("ERR_OUT_OF_RANGE",function(e,t,n){let i=`The value of "${e}" is out of range.`,r=n;return Number.isInteger(n)&&Math.abs(n)>2**32?r=V(String(n)):"bigint"==typeof n&&(r=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(r=V(r)),r+="n"),i+=` It must be ${t}. Received ${r}`,i},RangeError);const U=/[^+/0-9A-Za-z-_]/g;function W(e,t){let n;t=t||1/0;const i=e.length;let r=null;const o=[];for(let a=0;a<i;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(t-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function G(e){return i.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function K(e,t,n,i){let r;for(r=0;r<i&&!(r+n>=t.length||r>=e.length);++r)t[r+n]=e[r];return r}function Q(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!=e}const J=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const i=16*n;for(let r=0;r<16;++r)t[i+r]=e[n]+e[r]}return t}();function X(e){return"undefined"==typeof BigInt?Z:e}function Z(){throw new Error("BigInt not supported")}},48332:function(){},48420:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M86 16h26v96H86zm-35 0h26v96H51zm-35 0h26v96H16z"/></svg>'},48648:function(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},48712:function(e,t,n){!function(e){"use strict";function t(e,t,n,i,r,o){this.indented=e,this.column=t,this.type=n,this.info=i,this.align=r,this.prev=o}function n(e,n,i,r){var o=e.indented;return e.context&&"statement"==e.context.type&&"statement"!=i&&(o=e.context.indented),e.context=new t(o,n,i,r,null,e.context)}function i(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}function r(e,t,n){return"variable"==t.prevToken||"type"==t.prevToken||!!/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,n))||!(!t.typeAtEndOfLine||e.column()!=e.indentation())||void 0}function o(e){for(;;){if(!e||"top"==e.type)return!0;if("}"==e.type&&"namespace"!=e.prev.info)return!1;e=e.prev}}function a(e){for(var t={},n=e.split(" "),i=0;i<n.length;++i)t[n[i]]=!0;return t}function s(e,t){return"function"==typeof e?e(t):e.propertyIsEnumerable(t)}e.defineMode("clike",function(a,l){var c,u,d=a.indentUnit,p=l.statementIndentUnit||d,h=l.dontAlignCalls,f=l.keywords||{},m=l.types||{},g=l.builtin||{},v=l.blockKeywords||{},y=l.defKeywords||{},b=l.atoms||{},k=l.hooks||{},w=l.multiLineStrings,_=!1!==l.indentStatements,C=!1!==l.indentSwitch,x=l.namespaceSeparator,S=l.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,E=l.numberStart||/[\d\.]/,A=l.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,D=l.isOperatorChar||/[+\-*&%=<>!?|\/]/,T=l.isIdentifierChar||/[\w\$_\xa1-\uffff]/,I=l.isReservedIdentifier||!1;function O(e,t){var n=e.next();if(k[n]){var i=k[n](e,t);if(!1!==i)return i}if('"'==n||"'"==n)return t.tokenize=P(n),t.tokenize(e,t);if(E.test(n)){if(e.backUp(1),e.match(A))return"number";e.next()}if(S.test(n))return c=n,null;if("/"==n){if(e.eat("*"))return t.tokenize=F,F(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(D.test(n)){for(;!e.match(/^\/[\/*]/,!1)&&e.eat(D););return"operator"}if(e.eatWhile(T),x)for(;e.match(x);)e.eatWhile(T);var r=e.current();return s(f,r)?(s(v,r)&&(c="newstatement"),s(y,r)&&(u=!0),"keyword"):s(m,r)?"type":s(g,r)||I&&I(r)?(s(v,r)&&(c="newstatement"),"builtin"):s(b,r)?"atom":"variable"}function P(e){return function(t,n){for(var i,r=!1,o=!1;null!=(i=t.next());){if(i==e&&!r){o=!0;break}r=!r&&"\\"==i}return(o||!r&&!w)&&(n.tokenize=null),"string"}}function F(e,t){for(var n,i=!1;n=e.next();){if("/"==n&&i){t.tokenize=null;break}i="*"==n}return"comment"}function $(e,t){l.typeFirstDefinitions&&e.eol()&&o(t.context)&&(t.typeAtEndOfLine=r(e,t,e.pos))}return{startState:function(e){return{tokenize:null,context:new t((e||0)-d,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(e,t){var a=t.context;if(e.sol()&&(null==a.align&&(a.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return $(e,t),null;c=u=null;var s=(t.tokenize||O)(e,t);if("comment"==s||"meta"==s)return s;if(null==a.align&&(a.align=!0),";"==c||":"==c||","==c&&e.match(/^\s*(?:\/\/.*)?$/,!1))for(;"statement"==t.context.type;)i(t);else if("{"==c)n(t,e.column(),"}");else if("["==c)n(t,e.column(),"]");else if("("==c)n(t,e.column(),")");else if("}"==c){for(;"statement"==a.type;)a=i(t);for("}"==a.type&&(a=i(t));"statement"==a.type;)a=i(t)}else c==a.type?i(t):_&&(("}"==a.type||"top"==a.type)&&";"!=c||"statement"==a.type&&"newstatement"==c)&&n(t,e.column(),"statement",e.current());if("variable"==s&&("def"==t.prevToken||l.typeFirstDefinitions&&r(e,t,e.start)&&o(t.context)&&e.match(/^\s*\(/,!1))&&(s="def"),k.token){var d=k.token(e,t,s);void 0!==d&&(s=d)}return"def"==s&&!1===l.styleDefs&&(s="variable"),t.startOfLine=!1,t.prevToken=u?"def":s||c,$(e,t),s},indent:function(t,n){if(t.tokenize!=O&&null!=t.tokenize||t.typeAtEndOfLine)return e.Pass;var i=t.context,r=n&&n.charAt(0),o=r==i.type;if("statement"==i.type&&"}"==r&&(i=i.prev),l.dontIndentStatements)for(;"statement"==i.type&&l.dontIndentStatements.test(i.info);)i=i.prev;if(k.indent){var a=k.indent(t,i,n,d);if("number"==typeof a)return a}var s=i.prev&&"switch"==i.prev.info;if(l.allmanIndentation&&/[{(]/.test(r)){for(;"top"!=i.type&&"}"!=i.type;)i=i.prev;return i.indented}return"statement"==i.type?i.indented+("{"==r?0:p):!i.align||h&&")"==i.type?")"!=i.type||o?i.indented+(o?0:d)+(o||!s||/^(?:case|default)\b/.test(n)?0:d):i.indented+p:i.column+(o?0:1)},electricInput:C?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});var l="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran",c="alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq",u="bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available",d="FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT",p=a("int long char short double float unsigned signed void bool"),h=a("SEL instancetype id Class Protocol BOOL");function f(e){return s(p,e)||/.+_t$/.test(e)}function m(e){return f(e)||s(h,e)}var g="case do else for if switch while struct enum union",v="struct enum union";function y(e,t){if(!t.startOfLine)return!1;for(var n,i=null;n=e.peek();){if("\\"==n&&e.match(/^.$/)){i=y;break}if("/"==n&&e.match(/^\/[\/\*]/,!1))break;e.next()}return t.tokenize=i,"meta"}function b(e,t){return"type"==t.prevToken&&"type"}function k(e){return!(!e||e.length<2||"_"!=e[0]||"_"!=e[1]&&e[1]===e[1].toLowerCase())}function w(e){return e.eatWhile(/[\w\.']/),"number"}function _(e,t){if(e.backUp(1),e.match(/^(?:R|u8R|uR|UR|LR)/)){var n=e.match(/^"([^\s\\()]{0,16})\(/);return!!n&&(t.cpp11RawStringDelim=n[1],t.tokenize=S,S(e,t))}return e.match(/^(?:u8|u|U|L)/)?!!e.match(/^["']/,!1)&&"string":(e.next(),!1)}function C(e){var t=/(\w+)::~?(\w+)$/.exec(e);return t&&t[1]==t[2]}function x(e,t){for(var n;null!=(n=e.next());)if('"'==n&&!e.eat('"')){t.tokenize=null;break}return"string"}function S(e,t){var n=t.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&");return e.match(new RegExp(".*?\\)"+n+'"'))?t.tokenize=null:e.skipToEnd(),"string"}function E(t,n){"string"==typeof t&&(t=[t]);var i=[];function r(e){if(e)for(var t in e)e.hasOwnProperty(t)&&i.push(t)}r(n.keywords),r(n.types),r(n.builtin),r(n.atoms),i.length&&(n.helperType=t[0],e.registerHelper("hintWords",t[0],i));for(var o=0;o<t.length;++o)e.defineMIME(t[o],n)}function A(e,t){for(var n=!1;!e.eol();){if(!n&&e.match('"""')){t.tokenize=null;break}n="\\"==e.next()&&!n}return"string"}function D(e){return function(t,n){for(var i;i=t.next();){if("*"==i&&t.eat("/")){if(1==e){n.tokenize=null;break}return n.tokenize=D(e-1),n.tokenize(t,n)}if("/"==i&&t.eat("*"))return n.tokenize=D(e+1),n.tokenize(t,n)}return"comment"}}function T(e){return function(t,n){for(var i,r=!1,o=!1;!t.eol();){if(!e&&!r&&t.match('"')){o=!0;break}if(e&&t.match('"""')){o=!0;break}i=t.next(),!r&&"$"==i&&t.match("{")&&t.skipTo("}"),r=!r&&"\\"==i&&!e}return!o&&e||(n.tokenize=null),"string"}}E(["text/x-csrc","text/x-c","text/x-chdr"],{name:"clike",keywords:a(l),types:f,blockKeywords:a(g),defKeywords:a(v),typeFirstDefinitions:!0,atoms:a("NULL true false"),isReservedIdentifier:k,hooks:{"#":y,"*":b},modeProps:{fold:["brace","include"]}}),E(["text/x-c++src","text/x-c++hdr"],{name:"clike",keywords:a(l+" "+c),types:f,blockKeywords:a(g+" class try catch"),defKeywords:a(v+" class namespace"),typeFirstDefinitions:!0,atoms:a("true false NULL nullptr"),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,isReservedIdentifier:k,hooks:{"#":y,"*":b,u:_,U:_,L:_,R:_,0:w,1:w,2:w,3:w,4:w,5:w,6:w,7:w,8:w,9:w,token:function(e,t,n){if("variable"==n&&"("==e.peek()&&(";"==t.prevToken||null==t.prevToken||"}"==t.prevToken)&&C(e.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),E("text/x-java",{name:"clike",keywords:a("abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface"),types:a("var byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),blockKeywords:a("catch class do else finally for if switch try while"),defKeywords:a("class interface enum @interface"),typeFirstDefinitions:!0,atoms:a("true false null"),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{"@":function(e){return!e.match("interface",!1)&&(e.eatWhile(/[\w\$_]/),"meta")},'"':function(e,t){return!!e.match(/""$/)&&(t.tokenize=A,t.tokenize(e,t))}},modeProps:{fold:["brace","import"]}}),E("text/x-csharp",{name:"clike",keywords:a("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in interface internal is lock namespace new operator out override params private protected public readonly ref return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),types:a("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),blockKeywords:a("catch class do else finally for foreach if struct switch try while"),defKeywords:a("class interface namespace struct var"),typeFirstDefinitions:!0,atoms:a("true false null"),hooks:{"@":function(e,t){return e.eat('"')?(t.tokenize=x,x(e,t)):(e.eatWhile(/[\w\$_]/),"meta")}}}),E("text/x-scala",{name:"clike",keywords:a("abstract case catch class def do else extends final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try type val var while with yield _ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble"),types:a("AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),multiLineStrings:!0,blockKeywords:a("catch class enum do else finally for forSome if match switch try while"),defKeywords:a("class enum def object package trait type val var"),atoms:a("true false null"),indentStatements:!1,indentSwitch:!1,isOperatorChar:/[+\-*&%=<>!?|\/#:@]/,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return!!e.match('""')&&(t.tokenize=A,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(e,n){var i=n.context;return!("}"!=i.type||!i.align||!e.eat(">"))&&(n.context=new t(i.indented,i.column,i.type,i.info,null,i.prev),"operator")},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=D(1),t.tokenize(e,t))}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}}),E("text/x-kotlin",{name:"clike",keywords:a("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam value"),types:a("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:a("catch class do else finally for if where try while enum"),defKeywords:a("class val var object interface fun"),atoms:a("true false null this"),hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},"*":function(e,t){return"."==t.prevToken?"variable":"operator"},'"':function(e,t){return t.tokenize=T(e.match('""')),t.tokenize(e,t)},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=D(1),t.tokenize(e,t))},indent:function(e,t,n,i){var r=n&&n.charAt(0);return"}"!=e.prevToken&&")"!=e.prevToken||""!=n?"operator"==e.prevToken&&"}"!=n&&"}"!=e.context.type||"variable"==e.prevToken&&"."==r||("}"==e.prevToken||")"==e.prevToken)&&"."==r?2*i+t.indented:t.align&&"}"==t.type?t.indented+(e.context.type==(n||"").charAt(0)?0:i):void 0:e.indented}},modeProps:{closeBrackets:{triples:'"'}}}),E(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:a("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:a("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:a("for while do if else struct"),builtin:a("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:a("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":y},modeProps:{fold:["brace","include"]}}),E("text/x-nesc",{name:"clike",keywords:a(l+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:f,blockKeywords:a(g),atoms:a("null true false"),hooks:{"#":y},modeProps:{fold:["brace","include"]}}),E("text/x-objectivec",{name:"clike",keywords:a(l+" "+u),types:m,builtin:a(d),blockKeywords:a(g+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:a(v+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:a("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:k,hooks:{"#":y,"*":b},modeProps:{fold:["brace","include"]}}),E("text/x-objectivec++",{name:"clike",keywords:a(l+" "+u+" "+c),types:m,builtin:a(d),blockKeywords:a(g+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:a(v+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:a("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:k,hooks:{"#":y,"*":b,u:_,U:_,L:_,R:_,0:w,1:w,2:w,3:w,4:w,5:w,6:w,7:w,8:w,9:w,token:function(e,t,n){if("variable"==n&&"("==e.peek()&&(";"==t.prevToken||null==t.prevToken||"}"==t.prevToken)&&C(e.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),E("text/x-squirrel",{name:"clike",keywords:a("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:f,blockKeywords:a("case catch class else for foreach if switch try while"),defKeywords:a("function local class"),typeFirstDefinitions:!0,atoms:a("true false null"),hooks:{"#":y},modeProps:{fold:["brace","include"]}});var I=null;function O(e){return function(t,n){for(var i,r=!1,o=!1;!t.eol();){if(!r&&t.match('"')&&("single"==e||t.match('""'))){o=!0;break}if(!r&&t.match("``")){I=O(e),o=!0;break}i=t.next(),r="single"==e&&!r&&"\\"==i}return o&&(n.tokenize=null),"string"}}E("text/x-ceylon",{name:"clike",keywords:a("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(e){var t=e.charAt(0);return t===t.toUpperCase()&&t!==t.toLowerCase()},blockKeywords:a("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:a("class dynamic function interface module object package value"),builtin:a("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:a("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return t.tokenize=O(e.match('""')?"triple":"single"),t.tokenize(e,t)},"`":function(e,t){return!(!I||!e.match("`"))&&(t.tokenize=I,I=null,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(e,t,n){if(("variable"==n||"type"==n)&&"."==t.prevToken)return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})}(n(15237))},49140:function(){},49693:function(){},49743:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="m1.816 2.8 8.428 19.072a.75.75 0 0 0 1.411-.112l1.884-7.158a1.5 1.5 0 0 1 1.068-1.069l7.158-1.884a.75.75 0 0 0 .113-1.411L2.806 1.814a.75.75 0 0 0-.99.986" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},49801:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><text font-size="80" font-weight="bold">\n <tspan x="14" y="89">Aa</tspan>\n </text></svg>'},49926:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M8.25 23.248V.748" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m3.75 18.748 4.5 4.5 4.5-4.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M15.75 14.248h3.6a.9.9 0 0 1 .836 1.234l-4.372 6.531a.9.9 0 0 0 .836 1.235h3.6" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M20.25 9.748V3a2.25 2.25 0 0 0-4.5 0v6.75" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M15.75 6.748h4.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},50178:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="-1 -1 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M9.763 19.57.688 10.864l9.074-8.709v4.95h2.384c5.041 0 9.166 4.125 9.166 9.167v3.025c0 .275-.275.55-.55.55h-.091c-.183 0-.367-.184-.458-.367-.184-2.658-2.384-4.675-5.042-4.675H9.763z" stroke-width="2"/></svg>'},50974:function(){},51029:function(e,t,n){"use strict";const i=n(51799),r="undefined"!=typeof window?n(48287).hp:n.g.Buffer;function o(e){return 12+4*Math.ceil(e.length/4)}function a(){return"undefined"==typeof window||"undefined"==typeof document}e.exports=function(e){let t=0;return t=null!==e&&"object"==typeof e?function(e){let t=0;try{let i=e;if(e instanceof Map?i=Object.fromEntries(e):e instanceof Set&&(i=Array.from(e)),ArrayBuffer.isView(e))return(n=e).BYTES_PER_ELEMENT?n.length*n.BYTES_PER_ELEMENT:-1;const o=JSON.stringify(i,(e,t)=>"bigint"==typeof t||"function"==typeof t?t.toString():void 0===t?"undefined":"symbol"==typeof t||t instanceof RegExp?t.toString():t);t=r.byteLength(o,"utf8")}catch(e){return new Error(-1)}var n;return t}(e):function(e){const t=[],n=[e];let s=0;for(;n.length;){const l=n.pop();if("boolean"==typeof l)s+=i.BYTES;else if("string"==typeof l)a()?s+=o(l):s+=l.length*i.STRING;else if("number"==typeof l)s+=i.NUMBER;else if("symbol"==typeof l)s+=Symbol.keyFor&&Symbol.keyFor(e)?Symbol.keyFor(e).length*i.STRING:(e.toString().length-8)*i.STRING;else if("bigint"==typeof l)s+=r.from(l.toString()).byteLength;else if("function"==typeof l)s+=l.toString().length;else if("object"==typeof l&&-1===t.indexOf(l)){t.push(l);for(const e in l)n.push(l[e])}}return s}(e),t}},51076:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="bricks-svg"><g><path d="M.75 12a11.25 11.25 0 1 0 22.5 0 11.25 11.25 0 1 0-22.5 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><g><path d="m5 20.8 1-5.05h1.08a1.48 1.48 0 0 0 1.18-.58 1.44 1.44 0 0 0 .27-1.28l-.75-3a1.49 1.49 0 0 0-1.45-1.14H1" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M21 5.25h-4.08a1.49 1.49 0 0 0-1.45 1.14l-.75 3a1.44 1.44 0 0 0 .28 1.28 1.48 1.48 0 0 0 1.18.58h1.58l.78 4.75A1.5 1.5 0 0 0 20 17.25h2" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></g></svg>'},51431:function(){},51607:function(e,t,n){"use strict";e.exports=s;var i=n(37388),r=n(67202),o=n(13573),a=n(392);function s(e,t,n,a){var l,c=a||{};if(i.call(this,e,t,n,o.PROPERTY_VALUE_PART_TYPE),this.type="unknown",/^([+\-]?[\d\.]+)([a-z]+)$/i.test(e))switch(this.type="dimension",this.value=+RegExp.$1,this.units=RegExp.$2,this.units.toLowerCase()){case"em":case"rem":case"ex":case"px":case"cm":case"mm":case"in":case"pt":case"pc":case"ch":case"vh":case"vw":case"vmax":case"vmin":this.type="length";break;case"fr":this.type="grid";break;case"deg":case"rad":case"grad":case"turn":this.type="angle";break;case"ms":case"s":this.type="time";break;case"hz":case"khz":this.type="frequency";break;case"dpi":case"dpcm":this.type="resolution"}else/^([+\-]?[\d\.]+)%$/i.test(e)?(this.type="percentage",this.value=+RegExp.$1):/^([+\-]?\d+)$/i.test(e)?(this.type="integer",this.value=+RegExp.$1):/^([+\-]?[\d\.]+)$/i.test(e)?(this.type="number",this.value=+RegExp.$1):/^#([a-f0-9]{3,6})/i.test(e)?(this.type="color",3===(l=RegExp.$1).length?(this.red=parseInt(l.charAt(0)+l.charAt(0),16),this.green=parseInt(l.charAt(1)+l.charAt(1),16),this.blue=parseInt(l.charAt(2)+l.charAt(2),16)):(this.red=parseInt(l.substring(0,2),16),this.green=parseInt(l.substring(2,4),16),this.blue=parseInt(l.substring(4,6),16))):/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/i.test(e)?(this.type="color",this.red=+RegExp.$1,this.green=+RegExp.$2,this.blue=+RegExp.$3):/^rgb\(\s*(\d+)%\s*,\s*(\d+)%\s*,\s*(\d+)%\s*\)/i.test(e)?(this.type="color",this.red=255*+RegExp.$1/100,this.green=255*+RegExp.$2/100,this.blue=255*+RegExp.$3/100):/^rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d\.]+)\s*\)/i.test(e)?(this.type="color",this.red=+RegExp.$1,this.green=+RegExp.$2,this.blue=+RegExp.$3,this.alpha=+RegExp.$4):/^rgba\(\s*(\d+)%\s*,\s*(\d+)%\s*,\s*(\d+)%\s*,\s*([\d\.]+)\s*\)/i.test(e)?(this.type="color",this.red=255*+RegExp.$1/100,this.green=255*+RegExp.$2/100,this.blue=255*+RegExp.$3/100,this.alpha=+RegExp.$4):/^hsl\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*\)/i.test(e)?(this.type="color",this.hue=+RegExp.$1,this.saturation=+RegExp.$2/100,this.lightness=+RegExp.$3/100):/^hsla\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*,\s*([\d\.]+)\s*\)/i.test(e)?(this.type="color",this.hue=+RegExp.$1,this.saturation=+RegExp.$2/100,this.lightness=+RegExp.$3/100,this.alpha=+RegExp.$4):/^url\(("([^\\"]|\\.)*")\)/i.test(e)?(this.type="uri",this.uri=s.parseString(RegExp.$1)):/^([^\(]+)\(/i.test(e)?(this.type="function",this.name=RegExp.$1,this.value=e):/^"([^\n\r\f\\"]|\\\r\n|\\[^\r0-9a-f]|\\[0-9a-f]{1,6}(\r\n|[ \n\r\t\f])?)*"/i.test(e)||/^'([^\n\r\f\\']|\\\r\n|\\[^\r0-9a-f]|\\[0-9a-f]{1,6}(\r\n|[ \n\r\t\f])?)*'/i.test(e)?(this.type="string",this.value=s.parseString(e)):r[e.toLowerCase()]?(this.type="color",l=r[e.toLowerCase()].substring(1),this.red=parseInt(l.substring(0,2),16),this.green=parseInt(l.substring(2,4),16),this.blue=parseInt(l.substring(4,6),16)):/^[,\/]$/.test(e)?(this.type="operator",this.value=e):/^-?[a-z_\u00A0-\uFFFF][a-z0-9\-_\u00A0-\uFFFF]*$/i.test(e)&&(this.type="identifier",this.value=e);this.wasIdent=Boolean(c.ident)}s.prototype=new i,s.prototype.constructor=s,s.parseString=function(e){return(e=e.slice(1,-1)).replace(/\\(\r\n|[^\r0-9a-f]|[0-9a-f]{1,6}(\r\n|[ \n\r\t\f])?)/gi,function(e,t){if(/^(\n|\r\n|\r|\f)$/.test(t))return"";var n=/^[0-9a-f]{1,6}/i.exec(t);if(n){var i=parseInt(n[0],16);return String.fromCodePoint?String.fromCodePoint(i):String.fromCharCode(i)}return t})},s.serializeString=function(e){return'"'+e.replace(/["\r\n\f]/g,function(e,t){return'"'===t?"\\"+t:"\\"+(String.codePointAt?String.codePointAt(0):String.charCodeAt(0)).toString(16)+" "})+'"'},s.fromToken=function(e){return new s(e.value,e.startLine,e.startCol,{ident:e.type===a.IDENT})}},51675:function(e){"use strict";function t(e,t,n){this.col=n,this.line=t,this.message=e}e.exports=t,t.prototype=new Error},51799:function(e){e.exports={STRING:2,BOOLEAN:4,BYTES:4,NUMBER:8,Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8}},51971:function(e){"use strict";function t(e){this._input=e.replace(/(\r\n?|\n)/g,"\n"),this._line=1,this._col=1,this._cursor=0}e.exports=t,t.prototype={constructor:t,getCol:function(){return this._col},getLine:function(){return this._line},eof:function(){return this._cursor===this._input.length},peek:function(e){var t=null;return e=void 0===e?1:e,this._cursor<this._input.length&&(t=this._input.charAt(this._cursor+e-1)),t},read:function(){var e=null;return this._cursor<this._input.length&&("\n"===this._input.charAt(this._cursor)?(this._line++,this._col=1):this._col++,e=this._input.charAt(this._cursor++)),e},mark:function(){this._bookmark={cursor:this._cursor,line:this._line,col:this._col}},reset:function(){this._bookmark&&(this._cursor=this._bookmark.cursor,this._line=this._bookmark.line,this._col=this._bookmark.col,delete this._bookmark)},readTo:function(e){for(var t,n="";n.length<e.length||n.lastIndexOf(e)!==n.length-e.length;){if(!(t=this.read()))throw new Error('Expected "'+e+'" at line '+this._line+", col "+this._col+".");n+=t}return n},readWhile:function(e){for(var t="",n=this.peek();null!==n&&e(n);)t+=this.read(),n=this.peek();return t},readMatch:function(e){var t=this._input.substring(this._cursor),n=null;return"string"==typeof e?t.slice(0,e.length)===e&&(n=this.readCount(e.length)):e instanceof RegExp&&e.test(t)&&(n=this.readCount(RegExp.lastMatch.length)),n},readCount:function(e){for(var t="";e--;)t+=this.read();return t}}},52012:function(){},52203:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M12 5.251C7.969 5.183 3.8 8 1.179 10.885a1.663 1.663 0 0 0 0 2.226C3.743 15.935 7.9 18.817 12 18.748c4.1.069 8.258-2.813 10.824-5.637a1.663 1.663 0 0 0 0-2.226C20.2 8 16.031 5.183 12 5.251" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M15.75 12A3.75 3.75 0 1 1 12 8.249 3.75 3.75 0 0 1 15.75 12" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},52351:function(){},52503:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M1.157 8.889A6.126 6.126 0 0 1 12 4.98a6.126 6.126 0 1 1 8.707 8.556l-8.027 7.435a1 1 0 0 1-1.359 0l-8.017-7.425a6.11 6.11 0 0 1-2.146-4.657" stroke-width="2"/></svg>'},52585:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14" class="bricks-svg"><g id="phone-mobile-phone--android-phone-mobile-device-smartphone-iphone"><path id="Vector" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M10.5.5h-7a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1v-11a1 1 0 0 0-1-1" stroke-width="1"/><path id="Vector_2" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M6.5 11h1" stroke-width="1"/></g></svg>'},53036:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="-1 -1 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M12.493 21.313H2.063a1.375 1.375 0 0 1-1.376-1.375V2.063A1.375 1.375 0 0 1 2.064.687h17.875a1.375 1.375 0 0 1 1.375 1.376v10.43c0 .365-.145.714-.403.972l-7.445 7.445a1.38 1.38 0 0 1-.972.402" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M13.063 21.189v-6.751a1.375 1.375 0 0 1 1.374-1.376h6.752" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M6.188 6.188h11" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M6.188 10.313H11" stroke-width="2"/></svg>'},53069:function(){},53148:function(){},53686:function(){},54100:function(e,t,n){"use strict";e.exports=o;var i=n(37388),r=n(13573);function o(e,t){i.call(this,"("+e+(null!==t?":"+t:"")+")",e.startLine,e.startCol,r.MEDIA_FEATURE_TYPE),this.name=e,this.value=t}o.prototype=new i,o.prototype.constructor=o},54321:function(){},54545:function(e){e.exports='<svg viewBox="-1 -1 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M17.953 7.94A10.972 10.972 0 0 0 .688 16.958a6.875 6.875 0 0 1 6.875-6.875 6.8 6.8 0 0 1 5.474 2.776l-2.926 2.923a.688.688 0 0 0 .487 1.174h9.34a1.375 1.375 0 0 0 1.375-1.375V6.24a.688.688 0 0 0-1.174-.487Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},54592:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"inline-script-disabled",description:"Inline script cannot be used.",init(e,t){e.addListener("tagstart",e=>{const n=e.attrs;let i;const r=e.col+e.tagName.length+1;let o;const a=/^on(unload|message|submit|select|scroll|resize|mouseover|mouseout|mousemove|mouseleave|mouseenter|mousedown|load|keyup|keypress|keydown|focus|dblclick|click|change|blur|error)$/i;for(let s=0,l=n.length;s<l;s++)i=n[s],o=i.name.toLowerCase(),!0===a.test(o)?t.warn(`Inline script [ ${i.raw} ] cannot be used.`,e.line,r+i.index,this,i.raw):"src"!==o&&"href"!==o||/^\s*javascript:/i.test(i.value)&&t.warn(`Inline script [ ${i.raw} ] cannot be used.`,e.line,r+i.index,this,i.raw)})}}},54884:function(){},54978:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M12.001 3.75v12" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m7.501 11.25 4.5 4.5 4.5-4.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M23.251 15.75v1.5a3 3 0 0 1-3 3h-16.5a3 3 0 0 1-3-3v-1.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},55065:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"doctype-first",description:"Doctype must be declared first (comments and whitespace allowed before DOCTYPE).",init(e,t){let n=!1,i=!1;const r=o=>{if(!("start"===o.type||"text"===o.type&&/^\s*$/.test(o.raw)||n))return"comment"===o.type&&!1===o.long&&/^DOCTYPE\s+/i.test(o.content)?(n=!0,void(i&&t.error("Doctype must be declared before any non-comment content.",o.line,o.col,this,o.raw))):void("comment"!==o.type&&(i=!0,t.error("Doctype must be declared before any non-comment content.",o.line,o.col,this,o.raw),e.removeListener("all",r)))};e.addListener("all",r)}}},55218:function(e,t,n){!function(e){var t={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;>",triples:"",explode:"[]{}"},n=e.Pos;function i(e,n){return"pairs"==n&&"string"==typeof e?e:"object"==typeof e&&null!=e[n]?e[n]:t[n]}e.defineOption("autoCloseBrackets",!1,function(t,n,a){a&&a!=e.Init&&(t.removeKeyMap(r),t.state.closeBrackets=null),n&&(o(i(n,"pairs")),t.state.closeBrackets=n,t.addKeyMap(r))});var r={Backspace:l,Enter:c};function o(e){for(var t=0;t<e.length;t++){var n=e.charAt(t),i="'"+n+"'";r[i]||(r[i]=a(n))}}function a(e){return function(t){return p(t,e)}}function s(e){var t=e.state.closeBrackets;return!t||t.override?t:e.getModeAt(e.getCursor()).closeBrackets||t}function l(t){var r=s(t);if(!r||t.getOption("disableInput"))return e.Pass;for(var o=i(r,"pairs"),a=t.listSelections(),l=0;l<a.length;l++){if(!a[l].empty())return e.Pass;var c=h(t,a[l].head);if(!c||o.indexOf(c)%2!=0)return e.Pass}for(l=a.length-1;l>=0;l--){var u=a[l].head;t.replaceRange("",n(u.line,u.ch-1),n(u.line,u.ch+1),"+delete")}}function c(t){var n=s(t),r=n&&i(n,"explode");if(!r||t.getOption("disableInput"))return e.Pass;for(var o=t.listSelections(),a=0;a<o.length;a++){if(!o[a].empty())return e.Pass;var l=h(t,o[a].head);if(!l||r.indexOf(l)%2!=0)return e.Pass}t.operation(function(){var e=t.lineSeparator()||"\n";t.replaceSelection(e+e,null),u(t,-1),o=t.listSelections();for(var n=0;n<o.length;n++){var i=o[n].head.line;t.indentLine(i,null,!0),t.indentLine(i+1,null,!0)}})}function u(e,t){for(var n=[],i=e.listSelections(),r=0,o=0;o<i.length;o++){var a=i[o];a.head==e.getCursor()&&(r=o);var s=a.head.ch||t>0?{line:a.head.line,ch:a.head.ch+t}:{line:a.head.line-1};n.push({anchor:s,head:s})}e.setSelections(n,r)}function d(t){var i=e.cmpPos(t.anchor,t.head)>0;return{anchor:new n(t.anchor.line,t.anchor.ch+(i?-1:1)),head:new n(t.head.line,t.head.ch+(i?1:-1))}}function p(t,r){var o=s(t);if(!o||t.getOption("disableInput"))return e.Pass;var a=i(o,"pairs"),l=a.indexOf(r);if(-1==l)return e.Pass;for(var c,p=i(o,"closeBefore"),h=i(o,"triples"),m=a.charAt(l+1)==r,g=t.listSelections(),v=l%2==0,y=0;y<g.length;y++){var b,k=g[y],w=k.head,_=t.getRange(w,n(w.line,w.ch+1));if(v&&!k.empty())b="surround";else if(!m&&v||_!=r)if(m&&w.ch>1&&h.indexOf(r)>=0&&t.getRange(n(w.line,w.ch-2),w)==r+r){if(w.ch>2&&/\bstring/.test(t.getTokenTypeAt(n(w.line,w.ch-2))))return e.Pass;b="addFour"}else if(m){var C=0==w.ch?" ":t.getRange(n(w.line,w.ch-1),w);if(e.isWordChar(_)||C==r||e.isWordChar(C))return e.Pass;b="both"}else{if(!v||!(0===_.length||/\s/.test(_)||p.indexOf(_)>-1))return e.Pass;b="both"}else b=m&&f(t,w)?"both":h.indexOf(r)>=0&&t.getRange(w,n(w.line,w.ch+3))==r+r+r?"skipThree":"skip";if(c){if(c!=b)return e.Pass}else c=b}var x=l%2?a.charAt(l-1):r,S=l%2?r:a.charAt(l+1);t.operation(function(){if("skip"==c)u(t,1);else if("skipThree"==c)u(t,3);else if("surround"==c){for(var e=t.getSelections(),n=0;n<e.length;n++)e[n]=x+e[n]+S;for(t.replaceSelections(e,"around"),e=t.listSelections().slice(),n=0;n<e.length;n++)e[n]=d(e[n]);t.setSelections(e)}else"both"==c?(t.replaceSelection(x+S,null),t.triggerElectric(x+S),u(t,-1)):"addFour"==c&&(t.replaceSelection(x+x+x+x,"before"),u(t,1))})}function h(e,t){var i=e.getRange(n(t.line,t.ch-1),n(t.line,t.ch+1));return 2==i.length?i:null}function f(e,t){var i=e.getTokenAt(n(t.line,t.ch+1));return/\bstring/.test(i.type)&&i.start==t.ch&&(0==t.ch||!/\bstring/.test(e.getTokenTypeAt(t)))}o(t.pairs+"`")}(n(15237))},55248:function(e,t,n){"use strict";const i=n(94083),{stdout:r,stderr:o}=n(2747),{stringReplaceAll:a,stringEncaseCRLFWithFirstIndex:s}=n(4058),{isArray:l}=Array,c=["ansi","ansi","ansi256","ansi16m"],u=Object.create(null);class d{constructor(e){return p(e)}}const p=e=>{const t={};return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const n=r?r.level:0;e.level=void 0===t.level?n:t.level})(t,e),t.template=(...e)=>k(t.template,...e),Object.setPrototypeOf(t,h.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=d,t.template};function h(e){return p(e)}for(const[e,t]of Object.entries(i))u[e]={get(){const n=v(this,g(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:n}),n}};u.visible={get(){const e=v(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};const f=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of f)u[e]={get(){const{level:t}=this;return function(...n){const r=g(i.color[c[t]][e](...n),i.color.close,this._styler);return v(this,r,this._isEmpty)}}};for(const e of f){u["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const{level:t}=this;return function(...n){const r=g(i.bgColor[c[t]][e](...n),i.bgColor.close,this._styler);return v(this,r,this._isEmpty)}}}}const m=Object.defineProperties(()=>{},{...u,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),g=(e,t,n)=>{let i,r;return void 0===n?(i=e,r=t):(i=n.openAll+e,r=t+n.closeAll),{open:e,close:t,openAll:i,closeAll:r,parent:n}},v=(e,t,n)=>{const i=(...e)=>l(e[0])&&l(e[0].raw)?y(i,k(i,...e)):y(i,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(i,m),i._generator=e,i._styler=t,i._isEmpty=n,i},y=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let n=e._styler;if(void 0===n)return t;const{openAll:i,closeAll:r}=n;if(-1!==t.indexOf(""))for(;void 0!==n;)t=a(t,n.close,n.open),n=n.parent;const o=t.indexOf("\n");return-1!==o&&(t=s(t,r,i,o)),i+t+r};let b;const k=(e,...t)=>{const[i]=t;if(!l(i)||!l(i.raw))return t.join(" ");const r=t.slice(1),o=[i.raw[0]];for(let e=1;e<i.length;e++)o.push(String(r[e-1]).replace(/[{}\\]/g,"\\$&"),String(i.raw[e]));return void 0===b&&(b=n(12991)),b(e,o.join(""))};Object.defineProperties(h.prototype,u);const w=h();w.supportsColor=r,w.stderr=h({level:o?o.level:0}),w.stderr.supportsColor=o,e.exports=w},55573:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14" class="bricks-svg"><g id="flash-2--flash-power-connect-charge-electricity-lightning"><path id="Vector" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M8 .5v5h4.5l-6.5 8v-5H1.5z" stroke-width="1"/></g></svg>'},55882:function(){},56809:function(e,t,n){"use strict";e.exports={StringReader:n(51971),SyntaxError:n(44418),SyntaxUnit:n(37388),EventTarget:n(21124),TokenStreamBase:n(40173)}},57286:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M0 120h128v8H0zM0 0h128v8H0zm40 16h48v96H40z"/></svg>'},57733:function(){},58068:function(e){"use strict";e.exports=SyntaxError},58103:function(e){e.exports='<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><g><path d="M21.5 13V8h5v5zm0 27v-5h5v5z" fill="currentColor" stroke-width="1"/></g></svg>'},58257:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="-0.5 -0.5 24 24" class="bricks-svg"><g><g><path d="m2.396 5.242-1.361.7a.594.594 0 0 0 0 1.054l5.75 2.99" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m11.98 12.152 9.985-5.156a.594.594 0 0 0 0-1.054L12.18.882a1.5 1.5 0 0 0-1.36 0L5.673 3.546" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g><g><path d="m14.653 15.803 7.312-3.776a.594.594 0 0 0 0-1.054L18.132 8.98" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m4.888 8.98-3.834 1.993a.594.594 0 0 0 0 1.054l9.785 5.06a1.5 1.5 0 0 0 .661.163 1.5 1.5 0 0 0 .565-.115" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g><g><path d="m17.327 19.454 4.638-2.396a.594.594 0 0 0 0-1.054l-3.833-1.984" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m4.888 14.02-3.834 1.984a.594.594 0 0 0 0 1.054l9.785 5.06a1.5 1.5 0 0 0 1.36 0l1.917-.958" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g><path d="M3.594.719 19.406 22.28" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></svg>'},58937:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M0 0h8v128H0zm16 16h32v96H16zm40 0h32v96H56z"/></svg>'},58965:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="m9.75 14.248-9 9" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M23.25 7.498V.748H16.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M.75 16.498v6.75H7.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m23.25.748-9 9" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},58968:function(e){"use strict";e.exports=Math.floor},59156:function(){},59628:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M22.917 6.2 12.708.922a1.54 1.54 0 0 0-1.416 0L1.083 6.2a.616.616 0 0 0 0 1.094l10.209 5.281a1.54 1.54 0 0 0 1.416 0L22.917 7.3a.616.616 0 0 0 0-1.094Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m5.1 9.375-4.017 2.078a.616.616 0 0 0 0 1.094l10.209 5.281a1.54 1.54 0 0 0 1.416 0l10.209-5.281a.616.616 0 0 0 0-1.094L18.9 9.375" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M5.1 14.625 1.083 16.7a.616.616 0 0 0 0 1.094l10.209 5.281a1.54 1.54 0 0 0 1.416 0L22.917 17.8a.616.616 0 0 0 0-1.094L18.9 14.625" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},59681:function(){},59858:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><g fill="none" fill-rule="evenodd"><path fill="#23282D" d="M0 60h128v8H0zm32 8h32v28H32zm40 0h32v44H72z"/><path stroke="#23282D" stroke-width="6" d="M35 31h26v32H35zm40 0h26v32H75z"/></g></svg>'},59969:function(){},60327:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"];t.default={id:"tagname-lowercase",description:"All html element names must be in lowercase.",init(e,t,i){const r=(Array.isArray(i)?i:[]).concat(n);e.addListener("tagstart,tagend",e=>{const n=e.tagName;r.find(e=>function(e,t){if(t instanceof RegExp)return!!t.test(e)&&{match:e,pattern:t};const n=t[0],i=t[t.length-1],r=t[t.length-2],o="/"===n&&("/"===i||"/"===r&&"i"===i);if(o)return o&&"i"===i?new RegExp(t.slice(1,-2),"i").test(e):new RegExp(t.slice(1,-1)).test(e);return e===t}(n,e))||n===n.toLowerCase()||t.error(`The html element name of [ ${n} ] must be in lowercase.`,e.line,e.col,this,e.raw)})}}},60370:function(){},60494:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="bricks-svg"><g fill="none" fill-rule="nonzero"><path d="M24 0v24H0V0zM12.593 23.258l-.011.002-.071.035-.02.004-.014-.004-.071-.035q-.016-.005-.024.005l-.004.01-.017.428.005.02.01.013.104.074.015.004.012-.004.104-.074.012-.016.004-.017-.017-.427q-.004-.016-.017-.018m.265-.113-.013.002-.185.093-.01.01-.003.011.018.43.005.012.008.007.201.093q.019.005.029-.008l.004-.014-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014-.034.614q.001.018.017.024l.015-.002.201-.093.01-.008.004-.011.017-.43-.003-.012-.01-.01z" stroke-width="1"/><path fill="currentColor" d="M20 14a1 1 0 0 1 .117 1.993L20 16H6.414l2.293 2.293a1 1 0 0 1-1.32 1.497l-.094-.083-3.83-3.83c-.665-.664-.239-1.783.663-1.871L4.241 14zm-4.707-9.707a1 1 0 0 1 1.32-.083l.094.083 3.83 3.83c.665.664.239 1.783-.663 1.871l-.115.006H4a1 1 0 0 1-.117-1.993L4 8h13.586l-2.293-2.293a1 1 0 0 1 0-1.414" stroke-width="1"/></g></svg>'},60585:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M19.629 19.238 12.739 23a1.5 1.5 0 0 1-1.439 0l-6.89-3.758a1.5 1.5 0 0 1-.762-1.07L1.061 2.635A1.5 1.5 0 0 1 2.541.888H21.5a1.5 1.5 0 0 1 1.479 1.747L20.39 18.168a1.5 1.5 0 0 1-.761 1.07" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m8.27 15.888 3.75 2.25 3.75-2.25.75-6H9.77l7.5-4.5H6.77" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},61378:function(e,t,n){"use strict";e.exports=o;var i=n(37388),r=n(13573);function o(e,t,n,o,a){i.call(this,(e?e+" ":"")+(t||"")+(t&&n.length>0?" and ":"")+n.join(" and "),o,a,r.MEDIA_QUERY_TYPE),this.modifier=e,this.mediaType=t,this.features=n}o.prototype=new i,o.prototype.constructor=o},62281:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" version="1.1" class="bricks-svg"><path d="M6.776.3c-.16.038-.272.091-.416.199-.186.139-.182.131-1.077 1.939l-.823 1.66-1.807.269c-.993.147-1.844.277-1.89.29-.332.09-.6.35-.717.698-.033.1-.037.134-.038.301 0 .179.003.197.047.327.094.274.02.195 1.674 1.787l1.096 1.056.073.072-.31 1.805c-.283 1.64-.311 1.82-.311 1.967 0 .177.021.28.09.431a1.06 1.06 0 0 0 1.266.567c.1-.031.105-.034 1.8-.93A53 53 0 0 1 7 11.928c.018 0 .723.365 1.567.81 1.695.896 1.7.899 1.8.93a1.06 1.06 0 0 0 1.266-.567.9.9 0 0 0 .09-.431c0-.147-.027-.318-.31-1.946l-.311-1.785 1.343-1.337c1.317-1.312 1.343-1.34 1.398-1.449a.93.93 0 0 0 .122-.49c0-.097-.008-.2-.02-.244a1.06 1.06 0 0 0-.662-.742c-.106-.04-.134-.044-2.027-.324-.943-.14-1.716-.254-1.716-.256l-.823-1.66C8.087 1.165 7.88.758 7.82.678A1.06 1.06 0 0 0 7.2.295a1.4 1.4 0 0 0-.423.006m.2.99c-.008.01-.38.755-.826 1.656a73 73 0 0 1-.869 1.724c-.135.199-.39.368-.623.412-.039.007-.861.13-1.829.272-.967.143-1.772.263-1.79.267s-.031.017-.031.031c0 .015.518.525 1.262 1.242.694.67 1.305 1.264 1.358 1.322.112.119.206.296.244.456.05.207.048.22-.287 2.17-.17.992-.309 1.815-.309 1.829 0 .013.012.028.028.033.02.006.481-.231 1.627-.836.88-.465 1.625-.856 1.656-.869A.9.9 0 0 1 7 10.927c.192 0 .272.014.413.073.03.013.776.404 1.656.869 1.146.605 1.608.842 1.627.836.016-.005.028-.02.028-.033s-.14-.827-.31-1.808c-.341-1.975-.339-1.958-.279-2.176.04-.145.122-.302.214-.407.04-.046.644-.65 1.341-1.341.916-.91 1.267-1.266 1.267-1.288 0-.03-.031-.035-1.575-.264-2.136-.316-2.068-.306-2.164-.34a1.06 1.06 0 0 1-.5-.377 73 73 0 0 1-.868-1.724c-.446-.9-.818-1.646-.825-1.655s-.02-.018-.025-.018-.017.008-.025.018" stroke="none" fill="currentColor" fill-rule="evenodd" stroke-width="0.014"/></svg>'},63024:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.titleRequire=t.tagSelfClose=t.tagsCheck=t.tagPair=t.tagnameSpecialChars=t.tagnameLowercase=t.tagNoObsolete=t.styleDisabled=t.srcNotEmpty=t.specCharEscape=t.spaceTabMixedDisabled=t.scriptDisabled=t.metaViewportRequire=t.metaDescriptionRequire=t.metaCharsetRequire=t.mainRequire=t.linkRelCanonicalRequire=t.inputRequiresLabel=t.inlineStyleDisabled=t.inlineScriptDisabled=t.idUnique=t.idClassValue=t.idClassAdDisabled=t.htmlLangRequire=t.hrefAbsOrRel=t.headScriptDisabled=t.h1Require=t.frameTitleRequire=t.formMethodRequire=t.emptyTagNotSelfClosed=t.doctypeHTML5=t.doctypeFirst=t.buttonTypeRequire=t.attrWhitespace=t.attrValueSingleQuotes=t.attrValueNotEmpty=t.attrValueDoubleQuotes=t.attrUnsafeChars=t.attrSort=t.attrValueNoDuplication=t.attrNoUnnecessaryWhitespace=t.attrNoDuplication=t.attrLowercase=t.altRequire=void 0;var i=n(77329);Object.defineProperty(t,"altRequire",{enumerable:!0,get:function(){return i.default}});var r=n(89273);Object.defineProperty(t,"attrLowercase",{enumerable:!0,get:function(){return r.default}});var o=n(98616);Object.defineProperty(t,"attrNoDuplication",{enumerable:!0,get:function(){return o.default}});var a=n(99650);Object.defineProperty(t,"attrNoUnnecessaryWhitespace",{enumerable:!0,get:function(){return a.default}});var s=n(37680);Object.defineProperty(t,"attrValueNoDuplication",{enumerable:!0,get:function(){return s.default}});var l=n(68335);Object.defineProperty(t,"attrSort",{enumerable:!0,get:function(){return l.default}});var c=n(83256);Object.defineProperty(t,"attrUnsafeChars",{enumerable:!0,get:function(){return c.default}});var u=n(74465);Object.defineProperty(t,"attrValueDoubleQuotes",{enumerable:!0,get:function(){return u.default}});var d=n(69081);Object.defineProperty(t,"attrValueNotEmpty",{enumerable:!0,get:function(){return d.default}});var p=n(19050);Object.defineProperty(t,"attrValueSingleQuotes",{enumerable:!0,get:function(){return p.default}});var h=n(78103);Object.defineProperty(t,"attrWhitespace",{enumerable:!0,get:function(){return h.default}});var f=n(25697);Object.defineProperty(t,"buttonTypeRequire",{enumerable:!0,get:function(){return f.default}});var m=n(55065);Object.defineProperty(t,"doctypeFirst",{enumerable:!0,get:function(){return m.default}});var g=n(24175);Object.defineProperty(t,"doctypeHTML5",{enumerable:!0,get:function(){return g.default}});var v=n(72244);Object.defineProperty(t,"emptyTagNotSelfClosed",{enumerable:!0,get:function(){return v.default}});var y=n(23238);Object.defineProperty(t,"formMethodRequire",{enumerable:!0,get:function(){return y.default}});var b=n(36876);Object.defineProperty(t,"frameTitleRequire",{enumerable:!0,get:function(){return b.default}});var k=n(38963);Object.defineProperty(t,"h1Require",{enumerable:!0,get:function(){return k.default}});var w=n(44459);Object.defineProperty(t,"headScriptDisabled",{enumerable:!0,get:function(){return w.default}});var _=n(96224);Object.defineProperty(t,"hrefAbsOrRel",{enumerable:!0,get:function(){return _.default}});var C=n(11314);Object.defineProperty(t,"htmlLangRequire",{enumerable:!0,get:function(){return C.default}});var x=n(3835);Object.defineProperty(t,"idClassAdDisabled",{enumerable:!0,get:function(){return x.default}});var S=n(90438);Object.defineProperty(t,"idClassValue",{enumerable:!0,get:function(){return S.default}});var E=n(10531);Object.defineProperty(t,"idUnique",{enumerable:!0,get:function(){return E.default}});var A=n(54592);Object.defineProperty(t,"inlineScriptDisabled",{enumerable:!0,get:function(){return A.default}});var D=n(44984);Object.defineProperty(t,"inlineStyleDisabled",{enumerable:!0,get:function(){return D.default}});var T=n(6230);Object.defineProperty(t,"inputRequiresLabel",{enumerable:!0,get:function(){return T.default}});var I=n(31513);Object.defineProperty(t,"linkRelCanonicalRequire",{enumerable:!0,get:function(){return I.default}});var O=n(71581);Object.defineProperty(t,"mainRequire",{enumerable:!0,get:function(){return O.default}});var P=n(64596);Object.defineProperty(t,"metaCharsetRequire",{enumerable:!0,get:function(){return P.default}});var F=n(84254);Object.defineProperty(t,"metaDescriptionRequire",{enumerable:!0,get:function(){return F.default}});var $=n(42444);Object.defineProperty(t,"metaViewportRequire",{enumerable:!0,get:function(){return $.default}});var M=n(20334);Object.defineProperty(t,"scriptDisabled",{enumerable:!0,get:function(){return M.default}});var L=n(63323);Object.defineProperty(t,"spaceTabMixedDisabled",{enumerable:!0,get:function(){return L.default}});var N=n(33548);Object.defineProperty(t,"specCharEscape",{enumerable:!0,get:function(){return N.default}});var j=n(18690);Object.defineProperty(t,"srcNotEmpty",{enumerable:!0,get:function(){return j.default}});var B=n(46650);Object.defineProperty(t,"styleDisabled",{enumerable:!0,get:function(){return B.default}});var R=n(18024);Object.defineProperty(t,"tagNoObsolete",{enumerable:!0,get:function(){return R.default}});var V=n(60327);Object.defineProperty(t,"tagnameLowercase",{enumerable:!0,get:function(){return V.default}});var q=n(67192);Object.defineProperty(t,"tagnameSpecialChars",{enumerable:!0,get:function(){return q.default}});var H=n(74853);Object.defineProperty(t,"tagPair",{enumerable:!0,get:function(){return H.default}});var z=n(39986);Object.defineProperty(t,"tagsCheck",{enumerable:!0,get:function(){return z.default}});var U=n(8706);Object.defineProperty(t,"tagSelfClose",{enumerable:!0,get:function(){return U.default}});var W=n(33264);Object.defineProperty(t,"titleRequire",{enumerable:!0,get:function(){return W.default}})},63323:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"space-tab-mixed-disabled",description:"Do not mix tabs and spaces for indentation.",init(e,t,n){let i="nomix",r=null;if("string"==typeof n){const e=/^([a-z]+)(\d+)?/.exec(n);e&&(i=e[1],r=e[2]&&parseInt(e[2],10))}e.addListener("text",n=>{const o=n.raw,a=/(^|\r?\n)([ \t]+)/g;let s;for(;s=a.exec(o);){const o=e.fixPos(n,s.index+s[1].length);if(1!==o.col)continue;const a=s[2];"space"===i?r?!1!==/^ +$/.test(a)&&a.length%r===0||t.warn(`Please use space for indentation and keep ${r} length.`,o.line,1,this,n.raw):!1===/^ +$/.test(a)&&t.warn("Please use space for indentation.",o.line,1,this,n.raw):"tab"===i&&!1===/^\t+$/.test(a)?t.warn("Please use tab for indentation.",o.line,1,this,n.raw):!0===/ +\t|\t+ /.test(a)&&t.warn("Do not mix tabs and spaces for indentation.",o.line,1,this,n.raw)}})}}},63642:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" class="bricks-svg"><path d="M14.98 3a1 1 0 0 0-.175.016 13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.07 13.07 0 0 0 10.703-5.555 1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38 1.015 1.015 0 0 0 14.98 3" fill="currentColor" stroke-width="1"/><path d="M0 0h32v32H0Z" fill="none" stroke-width="1"/></svg>'},63982:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14" class="bricks-svg"><g id="vertical-menu--navigation-vertical-three-circle-button-menu-dots"><path id="Vector" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M7 3.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3" stroke-width="1"/><path id="Vector_2" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M7 8.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3" stroke-width="1"/><path id="Vector_3" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M7 13.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3" stroke-width="1"/></g></svg>'},63987:function(){},64039:function(e,t,n){"use strict";var i="undefined"!=typeof Symbol&&Symbol,r=n(41333);e.exports=function(){return"function"==typeof i&&("function"==typeof Symbol&&("symbol"==typeof i("foo")&&("symbol"==typeof Symbol("bar")&&r())))}},64245:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M1.472 13.357a9.063 9.063 0 1 0 16.682-7.09 9.063 9.063 0 1 0-16.682 7.09" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m16.221 16.22 7.029 7.03" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},64333:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><path d="m7.945 0 .405.253v7.038a8.4 8.4 0 0 1 4.743-1.418q3.747 0 6.21 2.616 2.431 2.617 2.431 6.448 0 3.848-2.447 6.447Q16.822 24 13.093 24q-3.258 0-5.57-2.33v1.908H3V.557zm4.287 10.447q-1.789 0-2.987 1.215-1.2 1.249-1.199 3.275t1.199 3.257q1.18 1.232 2.987 1.232 1.908 0 3.089-1.283 1.164-1.265 1.164-3.206t-1.181-3.224q-1.182-1.266-3.072-1.266" fill="currentcolor" fill-rule="nonzero"/></g></svg>'},64535:function(){},64596:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"meta-charset-require",description:'<meta charset=""> must be present in <head> tag.',init(e,t){let n=!1,i=!1,r="",o=null;e.addListener("tagstart",t=>{const a=t.tagName.toLowerCase();if("head"===a)n=!0,o=t;else if("meta"===a){const n=e.getMapAttrs(t.attrs);void 0!==n.charset&&(i=!0,r=n.charset||"")}}),e.addListener("end",()=>{n&&o&&(i?""===r.trim()&&t.error('<meta charset=""> value must not be empty.',o.line,o.col,this,o.raw):t.error('<meta charset=""> must be present in <head> tag.',o.line,o.col,this,o.raw))})}}},64780:function(e,t){"use strict";t.bool={enforcing:{bitwise:!0,freeze:!0,camelcase:!0,curly:!0,eqeqeq:!0,futurehostile:!0,es3:!0,es5:!0,forin:!0,immed:!0,leanswitch:!0,newcap:!0,noarg:!0,nocomma:!0,noempty:!0,nonbsp:!0,nonew:!0,noreturnawait:!0,regexpu:!0,undef:!0,singleGroups:!1,varstmt:!1,enforceall:!1,trailingcomma:!1},relaxing:{asi:!0,multistr:!0,debug:!0,boss:!0,evil:!0,funcscope:!0,globalstrict:!0,iterator:!0,notypeof:!0,plusplus:!0,proto:!0,scripturl:!0,sub:!0,supernew:!0,laxbreak:!0,laxcomma:!0,validthis:!0,withstmt:!0,moz:!0,noyield:!0,eqnull:!0,lastsemic:!0,loopfunc:!0,expr:!0,esnext:!0,elision:!0},environments:{mootools:!0,couch:!0,jasmine:!0,jquery:!0,node:!0,qunit:!0,rhino:!0,shelljs:!0,prototypejs:!0,yui:!0,mocha:!0,module:!0,wsh:!0,worker:!0,nonstandard:!0,browser:!0,browserify:!0,devel:!0,dojo:!0,typed:!0,phantom:!0},obsolete:{onecase:!0,regexp:!0,regexdash:!0}},t.val={maxlen:!1,indent:!1,maxerr:!1,predef:!1,globals:!1,quotmark:!1,scope:!1,maxstatements:!1,maxdepth:!1,maxparams:!1,maxcomplexity:!1,shadow:!1,strict:!0,unused:!0,latedef:!1,ignore:!1,ignoreDelimiters:!1,esversion:5},t.unstable={},t.inverted={bitwise:!0,forin:!0,newcap:!0,plusplus:!0,regexp:!0,undef:!0,eqeqeq:!0,strict:!0},t.validNames=Object.keys(t.val).concat(Object.keys(t.bool.relaxing)).concat(Object.keys(t.bool.enforcing)).concat(Object.keys(t.bool.obsolete)).concat(Object.keys(t.bool.environments)).concat(["unstable"]),t.unstableNames=Object.keys(t.unstable),t.renamed={eqeq:"eqeqeq",windows:"wsh",sloppy:"strict"},t.removed={nomen:!0,onevar:!0,passfail:!0,white:!0,gcl:!0,smarttabs:!0,trailing:!0},t.noenforceall={varstmt:!0,strict:!0,regexpu:!0}},65459:function(){},65464:function(e,t,n){var i,r,o,a;function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}e=n.nmd(e),a=function(e,t){"use strict";var n={"tagname-lowercase":!0,"attr-lowercase":!0,"attr-value-double-quotes":!0,"doctype-first":!1,"tag-pair":!0,"spec-char-escape":!0,"id-unique":!0,"src-not-empty":!0,"attr-no-duplication":!0};e.registerHelper("lint","html",function(i,r){var o=[];if(t&&!t.verify&&(t=void 0!==t.default?t.default:t.HTMLHint),t||(t=window.HTMLHint),!t)return window.console&&window.console.error("Error: window.HTMLHint not found, CodeMirror HTML mixed linting cannot run."),o;if(!window.CSSLint)return window.console&&window.console.error("Error: window.CSSLint not defined, CodeMirror HTML mixed linting cannot run."),o;if(!window.JSHINT)return window.console&&window.console.error("Error: window.JSHINT not defined, CodeMirror HTML mixed linting cannot run."),[];r.indent||(r.indent=1);var a=r.css||JSON.parse(JSON.stringify(r)),s=r.js||JSON.parse(JSON.stringify(r));function l(t,n,i){for(var r=0;r<t.length;r++){var o=t[r];if(o){if(o.line<=0){window.console&&window.console.warn("Cannot display JSHint error (invalid line "+o.line+")",o);continue}var a=o.character-1,s=a+1;if(o.evidence){var l=o.evidence.substring(a).search(/.\b/);l>-1&&(s+=l)}var c=o.line-1+i-1,u={message:o.reason,severity:o.code&&o.code.startsWith("W")?"warning":"error",from:e.Pos(c,a),to:e.Pos(c,s)};n.push(u)}}}function c(e){return e.split("\n").length}return function(i,r,o){for(var a=t.verify(i,r&&r.rules||n),s=0;s<a.length;s++){var l=a[s],c=l.line-1,u=l.line-1,d=l.col-1,p=l.col;o.push({from:e.Pos(c,d),to:e.Pos(u,p),message:l.message,severity:l.type})}}(i,r.html||JSON.parse(JSON.stringify(r)),o),function(t,n,i){for(var r=t.split(/<style[\s\S]*?>|<\/style>/gi),o=1;o<r.length;o+=2)for(var a=c(r.slice(0,o).join()),s=CSSLint.verify(r[o],n).messages,l=null,u=0;u<s.length;u++){var d=a-1+(l=s[u]).line-1,p=a-1+l.line-1,h=l.col-1,f=l.col;i.push({from:e.Pos(d,h),to:e.Pos(p,f),message:l.message,severity:l.type})}}(i,a,o),function(e,t,n){for(var i=e.split(/<script[\s\S]*?>|<\/script>/gi),r=1;r<i.length;r+=2)if(i[r].length>1){JSHINT(i[r],t,t.globals);var o=JSHINT.data().errors;o&&l(o,n,c(i.slice(0,r).join()))}}(i,s,o),o})},"object"==s(t)&&"object"==s(e)?a(n(15237),n(73041)):(r=[n(15237),n(73041)],void 0===(o="function"==typeof(i=a)?i.apply(t,r):i)||(e.exports=o))},65562:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><text font-size="80" font-weight="bold">\n <tspan x="19" y="89">aa</tspan>\n </text></svg>'},65606:function(e){var t,n,i=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===r||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:r}catch(e){t=r}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var s,l=[],c=!1,u=-1;function d(){c&&s&&(c=!1,s.length?l=s.concat(l):u=-1,l.length&&p())}function p(){if(!c){var e=a(d);c=!0;for(var t=l.length;t;){for(s=l,l=[];++u<t;)s&&s[u].run();u=-1,t=l.length}s=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function f(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),1!==l.length||c||a(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=f,i.addListener=f,i.once=f,i.off=f,i.removeListener=f,i.removeAllListeners=f,i.emit=f,i.prependListener=f,i.prependOnceListener=f,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},65777:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14" class="bricks-svg"><g id="ipad-tablet-screen"><path id="vector" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M12.262 2H1.738C1.054 2 .5 2.533.5 3.19v7.62c0 .657.554 1.19 1.238 1.19h10.524c.684 0 1.238-.533 1.238-1.19V3.19c0-.657-.554-1.19-1.238-1.19" stroke-width="1"/><path id="vector_2" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M4.332 9.776h5.34" stroke-width="1"/></g></svg>'},65926:function(){},65949:function(){},65990:function(){"use strict";"function"!=typeof Object.assign&&(Object.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var i=function(t){t&&Object.keys(t).forEach(function(n){return e[n]=t[n]})},r=0,o=t;r<o.length;r++){i(o[r])}return e})},66208:function(e,t){!function(e){"use strict"; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var t=function(){return t=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},t.apply(this,arguments)},n="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},i={weekdays:{shorthand:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],longhand:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},months:{shorthand:["1","2","3","4","5","6","7","8","9","10","11","12"],longhand:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},firstDayOfWeek:6,rangeSeparator:" إلى ",weekAbbreviation:"Wk",scrollTitle:"قم بالتمرير للزيادة",toggleTitle:"اضغط للتبديل",amPM:["ص","م"],yearAriaLabel:"سنة",monthAriaLabel:"شهر",hourAriaLabel:"ساعة",minuteAriaLabel:"دقيقة",time_24hr:!1};n.l10ns.ar=i,n.l10ns;var r="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},o={weekdays:{shorthand:["So","Mo","Di","Mi","Do","Fr","Sa"],longhand:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},months:{shorthand:["Jän","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],longhand:["Jänner","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},firstDayOfWeek:1,weekAbbreviation:"KW",rangeSeparator:" bis ",scrollTitle:"Zum Ändern scrollen",toggleTitle:"Zum Umschalten klicken",time_24hr:!0};r.l10ns.at=o,r.l10ns;var a="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},s={weekdays:{shorthand:["B.","B.e.","Ç.a.","Ç.","C.a.","C.","Ş."],longhand:["Bazar","Bazar ertəsi","Çərşənbə axşamı","Çərşənbə","Cümə axşamı","Cümə","Şənbə"]},months:{shorthand:["Yan","Fev","Mar","Apr","May","İyn","İyl","Avq","Sen","Okt","Noy","Dek"],longhand:["Yanvar","Fevral","Mart","Aprel","May","İyun","İyul","Avqust","Sentyabr","Oktyabr","Noyabr","Dekabr"]},firstDayOfWeek:1,ordinal:function(){return"."},rangeSeparator:" - ",weekAbbreviation:"Hf",scrollTitle:"Artırmaq üçün sürüşdürün",toggleTitle:"Aç / Bağla",amPM:["GƏ","GS"],time_24hr:!0};a.l10ns.az=s,a.l10ns;var l="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},c={weekdays:{shorthand:["Нд","Пн","Аў","Ср","Чц","Пт","Сб"],longhand:["Нядзеля","Панядзелак","Аўторак","Серада","Чацвер","Пятніца","Субота"]},months:{shorthand:["Сту","Лют","Сак","Кра","Тра","Чэр","Ліп","Жні","Вер","Кас","Ліс","Сне"],longhand:["Студзень","Люты","Сакавік","Красавік","Травень","Чэрвень","Ліпень","Жнівень","Верасень","Кастрычнік","Лістапад","Снежань"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" — ",weekAbbreviation:"Тыд.",scrollTitle:"Пракруціце для павелічэння",toggleTitle:"Націсніце для пераключэння",amPM:["ДП","ПП"],yearAriaLabel:"Год",time_24hr:!0};l.l10ns.be=c,l.l10ns;var u="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},d={firstDayOfWeek:1,weekdays:{shorthand:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],longhand:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"]},months:{shorthand:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],longhand:["Januar","Februar","Mart","April","Maj","Juni","Juli","Avgust","Septembar","Oktobar","Novembar","Decembar"]},time_24hr:!0};u.l10ns.bs=d,u.l10ns;var p="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},h={weekdays:{shorthand:["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],longhand:["Неделя","Понеделник","Вторник","Сряда","Четвъртък","Петък","Събота"]},months:{shorthand:["Яну","Фев","Март","Апр","Май","Юни","Юли","Авг","Сеп","Окт","Ное","Дек"],longhand:["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"]},time_24hr:!0,firstDayOfWeek:1};p.l10ns.bg=h,p.l10ns;var f="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},m={weekdays:{shorthand:["রবি","সোম","মঙ্গল","বুধ","বৃহস্পতি","শুক্র","শনি"],longhand:["রবিবার","সোমবার","মঙ্গলবার","বুধবার","বৃহস্পতিবার","শুক্রবার","শনিবার"]},months:{shorthand:["জানু","ফেব্রু","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগ","সেপ্টে","অক্টো","নভে","ডিসে"],longhand:["জানুয়ারী","ফেব্রুয়ারী","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগস্ট","সেপ্টেম্বর","অক্টোবর","নভেম্বর","ডিসেম্বর"]}};f.l10ns.bn=m,f.l10ns;var g="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},v={weekdays:{shorthand:["Dg","Dl","Dt","Dc","Dj","Dv","Ds"],longhand:["Diumenge","Dilluns","Dimarts","Dimecres","Dijous","Divendres","Dissabte"]},months:{shorthand:["Gen","Febr","Març","Abr","Maig","Juny","Jul","Ag","Set","Oct","Nov","Des"],longhand:["Gener","Febrer","Març","Abril","Maig","Juny","Juliol","Agost","Setembre","Octubre","Novembre","Desembre"]},ordinal:function(e){var t=e%100;if(t>3&&t<21)return"è";switch(t%10){case 1:case 3:return"r";case 2:return"n";case 4:return"t";default:return"è"}},firstDayOfWeek:1,rangeSeparator:" a ",time_24hr:!0};g.l10ns.cat=g.l10ns.ca=v,g.l10ns;var y="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},b={weekdays:{shorthand:["یەکشەممە","دووشەممە","سێشەممە","چوارشەممە","پێنجشەممە","هەینی","شەممە"],longhand:["یەکشەممە","دووشەممە","سێشەممە","چوارشەممە","پێنجشەممە","هەینی","شەممە"]},months:{shorthand:["ڕێبەندان","ڕەشەمە","نەورۆز","گوڵان","جۆزەردان","پووشپەڕ","گەلاوێژ","خەرمانان","ڕەزبەر","گەڵاڕێزان","سەرماوەز","بەفرانبار"],longhand:["ڕێبەندان","ڕەشەمە","نەورۆز","گوڵان","جۆزەردان","پووشپەڕ","گەلاوێژ","خەرمانان","ڕەزبەر","گەڵاڕێزان","سەرماوەز","بەفرانبار"]},firstDayOfWeek:6,ordinal:function(){return""}};y.l10ns.ckb=b,y.l10ns;var k="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},w={weekdays:{shorthand:["Ne","Po","Út","St","Čt","Pá","So"],longhand:["Neděle","Pondělí","Úterý","Středa","Čtvrtek","Pátek","Sobota"]},months:{shorthand:["Led","Ún","Bře","Dub","Kvě","Čer","Čvc","Srp","Zář","Říj","Lis","Pro"],longhand:["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"]},firstDayOfWeek:1,ordinal:function(){return"."},rangeSeparator:" do ",weekAbbreviation:"Týd.",scrollTitle:"Rolujte pro změnu",toggleTitle:"Přepnout dopoledne/odpoledne",amPM:["dop.","odp."],yearAriaLabel:"Rok",time_24hr:!0};k.l10ns.cs=w,k.l10ns;var _="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},C={weekdays:{shorthand:["Sul","Llun","Maw","Mer","Iau","Gwe","Sad"],longhand:["Dydd Sul","Dydd Llun","Dydd Mawrth","Dydd Mercher","Dydd Iau","Dydd Gwener","Dydd Sadwrn"]},months:{shorthand:["Ion","Chwef","Maw","Ebr","Mai","Meh","Gorff","Awst","Medi","Hyd","Tach","Rhag"],longhand:["Ionawr","Chwefror","Mawrth","Ebrill","Mai","Mehefin","Gorffennaf","Awst","Medi","Hydref","Tachwedd","Rhagfyr"]},firstDayOfWeek:1,ordinal:function(e){return 1===e?"af":2===e?"ail":3===e||4===e?"ydd":5===e||6===e?"ed":e>=7&&e<=10||12==e||15==e||18==e||20==e?"fed":11==e||13==e||14==e||16==e||17==e||19==e?"eg":e>=21&&e<=39?"ain":""},time_24hr:!0};_.l10ns.cy=C,_.l10ns;var x="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},S={weekdays:{shorthand:["søn","man","tir","ons","tors","fre","lør"],longhand:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},months:{shorthand:["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec"],longhand:["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"]},ordinal:function(){return"."},firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"uge",time_24hr:!0};x.l10ns.da=S,x.l10ns;var E="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},A={weekdays:{shorthand:["So","Mo","Di","Mi","Do","Fr","Sa"],longhand:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},months:{shorthand:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],longhand:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},firstDayOfWeek:1,weekAbbreviation:"KW",rangeSeparator:" bis ",scrollTitle:"Zum Ändern scrollen",toggleTitle:"Zum Umschalten klicken",time_24hr:!0};E.l10ns.de=A,E.l10ns;var D={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},T="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},I={firstDayOfWeek:1,rangeSeparator:" ĝis ",weekAbbreviation:"Sem",scrollTitle:"Rulumu por pligrandigi la valoron",toggleTitle:"Klaku por ŝalti",weekdays:{shorthand:["Dim","Lun","Mar","Mer","Ĵaŭ","Ven","Sab"],longhand:["dimanĉo","lundo","mardo","merkredo","ĵaŭdo","vendredo","sabato"]},months:{shorthand:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aŭg","Sep","Okt","Nov","Dec"],longhand:["januaro","februaro","marto","aprilo","majo","junio","julio","aŭgusto","septembro","oktobro","novembro","decembro"]},ordinal:function(){return"-a"},time_24hr:!0};T.l10ns.eo=I,T.l10ns;var O="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},P={weekdays:{shorthand:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],longhand:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"]},months:{shorthand:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],longhand:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]},ordinal:function(){return"º"},firstDayOfWeek:1,rangeSeparator:" a ",time_24hr:!0};O.l10ns.es=P,O.l10ns;var F="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},$={weekdays:{shorthand:["P","E","T","K","N","R","L"],longhand:["Pühapäev","Esmaspäev","Teisipäev","Kolmapäev","Neljapäev","Reede","Laupäev"]},months:{shorthand:["Jaan","Veebr","Märts","Apr","Mai","Juuni","Juuli","Aug","Sept","Okt","Nov","Dets"],longhand:["Jaanuar","Veebruar","Märts","Aprill","Mai","Juuni","Juuli","August","September","Oktoober","November","Detsember"]},firstDayOfWeek:1,ordinal:function(){return"."},weekAbbreviation:"Näd",rangeSeparator:" kuni ",scrollTitle:"Keri, et suurendada",toggleTitle:"Klõpsa, et vahetada",time_24hr:!0};F.l10ns.et=$,F.l10ns;var M="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},L={weekdays:{shorthand:["یک","دو","سه","چهار","پنج","جمعه","شنبه"],longhand:["یکشنبه","دوشنبه","سهشنبه","چهارشنبه","پنچشنبه","جمعه","شنبه"]},months:{shorthand:["ژانویه","فوریه","مارس","آوریل","مه","ژوئن","ژوئیه","اوت","سپتامبر","اکتبر","نوامبر","دسامبر"],longhand:["ژانویه","فوریه","مارس","آوریل","مه","ژوئن","ژوئیه","اوت","سپتامبر","اکتبر","نوامبر","دسامبر"]},firstDayOfWeek:6,ordinal:function(){return""}};M.l10ns.fa=L,M.l10ns;var N="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},j={firstDayOfWeek:1,weekdays:{shorthand:["su","ma","ti","ke","to","pe","la"],longhand:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},months:{shorthand:["tammi","helmi","maalis","huhti","touko","kesä","heinä","elo","syys","loka","marras","joulu"],longhand:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"]},ordinal:function(){return"."},time_24hr:!0};N.l10ns.fi=j,N.l10ns;var B="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},R={weekdays:{shorthand:["Sun","Mán","Týs","Mik","Hós","Frí","Ley"],longhand:["Sunnudagur","Mánadagur","Týsdagur","Mikudagur","Hósdagur","Fríggjadagur","Leygardagur"]},months:{shorthand:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],longhand:["Januar","Februar","Mars","Apríl","Mai","Juni","Juli","August","Septembur","Oktobur","Novembur","Desembur"]},ordinal:function(){return"."},firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"vika",scrollTitle:"Rulla fyri at broyta",toggleTitle:"Trýst fyri at skifta",yearAriaLabel:"Ár",time_24hr:!0};B.l10ns.fo=R,B.l10ns;var V="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},q={firstDayOfWeek:1,weekdays:{shorthand:["dim","lun","mar","mer","jeu","ven","sam"],longhand:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},months:{shorthand:["janv","févr","mars","avr","mai","juin","juil","août","sept","oct","nov","déc"],longhand:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},ordinal:function(e){return e>1?"":"er"},rangeSeparator:" au ",weekAbbreviation:"Sem",scrollTitle:"Défiler pour augmenter la valeur",toggleTitle:"Cliquer pour basculer",time_24hr:!0};V.l10ns.fr=q,V.l10ns;var H="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},z={weekdays:{shorthand:["Κυ","Δε","Τρ","Τε","Πέ","Πα","Σά"],longhand:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"]},months:{shorthand:["Ιαν","Φεβ","Μάρ","Απρ","Μάι","Ιούν","Ιούλ","Αύγ","Σεπ","Οκτ","Νοέ","Δεκ"],longhand:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"]},firstDayOfWeek:1,ordinal:function(){return""},weekAbbreviation:"Εβδ",rangeSeparator:" έως ",scrollTitle:"Μετακυλήστε για προσαύξηση",toggleTitle:"Κάντε κλικ για αλλαγή",amPM:["ΠΜ","ΜΜ"],yearAriaLabel:"χρόνος",monthAriaLabel:"μήνας",hourAriaLabel:"ώρα",minuteAriaLabel:"λεπτό"};H.l10ns.gr=z,H.l10ns;var U="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},W={weekdays:{shorthand:["א","ב","ג","ד","ה","ו","ש"],longhand:["ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת"]},months:{shorthand:["ינו׳","פבר׳","מרץ","אפר׳","מאי","יוני","יולי","אוג׳","ספט׳","אוק׳","נוב׳","דצמ׳"],longhand:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"]},rangeSeparator:" אל ",time_24hr:!0};U.l10ns.he=W,U.l10ns;var G="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},K={weekdays:{shorthand:["रवि","सोम","मंगल","बुध","गुरु","शुक्र","शनि"],longhand:["रविवार","सोमवार","मंगलवार","बुधवार","गुरुवार","शुक्रवार","शनिवार"]},months:{shorthand:["जन","फर","मार्च","अप्रेल","मई","जून","जूलाई","अग","सित","अक्ट","नव","दि"],longhand:["जनवरी ","फरवरी","मार्च","अप्रेल","मई","जून","जूलाई","अगस्त ","सितम्बर","अक्टूबर","नवम्बर","दिसम्बर"]}};G.l10ns.hi=K,G.l10ns;var Q="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Y={firstDayOfWeek:1,weekdays:{shorthand:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],longhand:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"]},months:{shorthand:["Sij","Velj","Ožu","Tra","Svi","Lip","Srp","Kol","Ruj","Lis","Stu","Pro"],longhand:["Siječanj","Veljača","Ožujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"]},time_24hr:!0};Q.l10ns.hr=Y,Q.l10ns;var J="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},X={firstDayOfWeek:1,weekdays:{shorthand:["V","H","K","Sz","Cs","P","Szo"],longhand:["Vasárnap","Hétfő","Kedd","Szerda","Csütörtök","Péntek","Szombat"]},months:{shorthand:["Jan","Feb","Már","Ápr","Máj","Jún","Júl","Aug","Szep","Okt","Nov","Dec"],longhand:["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"]},ordinal:function(){return"."},weekAbbreviation:"Hét",scrollTitle:"Görgessen",toggleTitle:"Kattintson a váltáshoz",rangeSeparator:" - ",time_24hr:!0};J.l10ns.hu=X,J.l10ns;var Z="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},ee={weekdays:{shorthand:["Կիր","Երկ","Երք","Չրք","Հնգ","Ուրբ","Շբթ"],longhand:["Կիրակի","Եկուշաբթի","Երեքշաբթի","Չորեքշաբթի","Հինգշաբթի","Ուրբաթ","Շաբաթ"]},months:{shorthand:["Հնվ","Փտր","Մար","Ապր","Մայ","Հնս","Հլս","Օգս","Սեպ","Հոկ","Նմբ","Դեկ"],longhand:["Հունվար","Փետրվար","Մարտ","Ապրիլ","Մայիս","Հունիս","Հուլիս","Օգոստոս","Սեպտեմբեր","Հոկտեմբեր","Նոյեմբեր","Դեկտեմբեր"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" — ",weekAbbreviation:"ՇԲՏ",scrollTitle:"Ոլորեք՝ մեծացնելու համար",toggleTitle:"Սեղմեք՝ փոխելու համար",amPM:["ՄԿ","ԿՀ"],yearAriaLabel:"Տարի",monthAriaLabel:"Ամիս",hourAriaLabel:"Ժամ",minuteAriaLabel:"Րոպե",time_24hr:!0};Z.l10ns.hy=ee,Z.l10ns;var te="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},ne={weekdays:{shorthand:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],longhand:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},months:{shorthand:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agu","Sep","Okt","Nov","Des"],longhand:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]},firstDayOfWeek:1,ordinal:function(){return""},time_24hr:!0,rangeSeparator:" - "};te.l10ns.id=ne,te.l10ns;var ie="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},re={weekdays:{shorthand:["Sun","Mán","Þri","Mið","Fim","Fös","Lau"],longhand:["Sunnudagur","Mánudagur","Þriðjudagur","Miðvikudagur","Fimmtudagur","Föstudagur","Laugardagur"]},months:{shorthand:["Jan","Feb","Mar","Apr","Maí","Jún","Júl","Ágú","Sep","Okt","Nóv","Des"],longhand:["Janúar","Febrúar","Mars","Apríl","Maí","Júní","Júlí","Ágúst","September","Október","Nóvember","Desember"]},ordinal:function(){return"."},firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"vika",yearAriaLabel:"Ár",time_24hr:!0};ie.l10ns.is=re,ie.l10ns;var oe="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},ae={weekdays:{shorthand:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],longhand:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"]},months:{shorthand:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],longhand:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"]},firstDayOfWeek:1,ordinal:function(){return"°"},rangeSeparator:" al ",weekAbbreviation:"Se",scrollTitle:"Scrolla per aumentare",toggleTitle:"Clicca per cambiare",time_24hr:!0};oe.l10ns.it=ae,oe.l10ns;var se="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},le={weekdays:{shorthand:["日","月","火","水","木","金","土"],longhand:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},months:{shorthand:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],longhand:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},time_24hr:!0,rangeSeparator:" から ",monthAriaLabel:"月",amPM:["午前","午後"],yearAriaLabel:"年",hourAriaLabel:"時間",minuteAriaLabel:"分"};se.l10ns.ja=le,se.l10ns;var ce="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},ue={weekdays:{shorthand:["კვ","ორ","სა","ოთ","ხუ","პა","შა"],longhand:["კვირა","ორშაბათი","სამშაბათი","ოთხშაბათი","ხუთშაბათი","პარასკევი","შაბათი"]},months:{shorthand:["იან","თებ","მარ","აპრ","მაი","ივნ","ივლ","აგვ","სექ","ოქტ","ნოე","დეკ"],longhand:["იანვარი","თებერვალი","მარტი","აპრილი","მაისი","ივნისი","ივლისი","აგვისტო","სექტემბერი","ოქტომბერი","ნოემბერი","დეკემბერი"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" — ",weekAbbreviation:"კვ.",scrollTitle:"დასქროლეთ გასადიდებლად",toggleTitle:"დააკლიკეთ გადართვისთვის",amPM:["AM","PM"],yearAriaLabel:"წელი",time_24hr:!0};ce.l10ns.ka=ue,ce.l10ns;var de="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},pe={weekdays:{shorthand:["일","월","화","수","목","금","토"],longhand:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},months:{shorthand:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],longhand:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},ordinal:function(){return"일"},rangeSeparator:" ~ ",amPM:["오전","오후"]};de.l10ns.ko=pe,de.l10ns;var he="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},fe={weekdays:{shorthand:["អាទិត្យ","ចន្ទ","អង្គារ","ពុធ","ព្រហស.","សុក្រ","សៅរ៍"],longhand:["អាទិត្យ","ចន្ទ","អង្គារ","ពុធ","ព្រហស្បតិ៍","សុក្រ","សៅរ៍"]},months:{shorthand:["មករា","កុម្ភះ","មីនា","មេសា","ឧសភា","មិថុនា","កក្កដា","សីហា","កញ្ញា","តុលា","វិច្ឆិកា","ធ្នូ"],longhand:["មករា","កុម្ភះ","មីនា","មេសា","ឧសភា","មិថុនា","កក្កដា","សីហា","កញ្ញា","តុលា","វិច្ឆិកា","ធ្នូ"]},ordinal:function(){return""},firstDayOfWeek:1,rangeSeparator:" ដល់ ",weekAbbreviation:"សប្តាហ៍",scrollTitle:"រំកិលដើម្បីបង្កើន",toggleTitle:"ចុចដើម្បីផ្លាស់ប្ដូរ",yearAriaLabel:"ឆ្នាំ",time_24hr:!0};he.l10ns.km=fe,he.l10ns;var me="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},ge={weekdays:{shorthand:["Жс","Дс","Сc","Ср","Бс","Жм","Сб"],longhand:["Жексенбi","Дүйсенбi","Сейсенбi","Сәрсенбi","Бейсенбi","Жұма","Сенбi"]},months:{shorthand:["Қаң","Ақп","Нау","Сәу","Мам","Мау","Шiл","Там","Қыр","Қаз","Қар","Жел"],longhand:["Қаңтар","Ақпан","Наурыз","Сәуiр","Мамыр","Маусым","Шiлде","Тамыз","Қыркүйек","Қазан","Қараша","Желтоқсан"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" — ",weekAbbreviation:"Апта",scrollTitle:"Үлкейту үшін айналдырыңыз",toggleTitle:"Ауыстыру үшін басыңыз",amPM:["ТД","ТК"],yearAriaLabel:"Жыл"};me.l10ns.kz=ge,me.l10ns;var ve="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},ye={weekdays:{shorthand:["S","Pr","A","T","K","Pn","Š"],longhand:["Sekmadienis","Pirmadienis","Antradienis","Trečiadienis","Ketvirtadienis","Penktadienis","Šeštadienis"]},months:{shorthand:["Sau","Vas","Kov","Bal","Geg","Bir","Lie","Rgp","Rgs","Spl","Lap","Grd"],longhand:["Sausis","Vasaris","Kovas","Balandis","Gegužė","Birželis","Liepa","Rugpjūtis","Rugsėjis","Spalis","Lapkritis","Gruodis"]},firstDayOfWeek:1,ordinal:function(){return"-a"},rangeSeparator:" iki ",weekAbbreviation:"Sav",scrollTitle:"Keisti laiką pelės rateliu",toggleTitle:"Perjungti laiko formatą",time_24hr:!0};ve.l10ns.lt=ye,ve.l10ns;var be="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},ke={firstDayOfWeek:1,weekdays:{shorthand:["Sv","Pr","Ot","Tr","Ce","Pk","Se"],longhand:["Svētdiena","Pirmdiena","Otrdiena","Trešdiena","Ceturtdiena","Piektdiena","Sestdiena"]},months:{shorthand:["Jan","Feb","Mar","Apr","Mai","Jūn","Jūl","Aug","Sep","Okt","Nov","Dec"],longhand:["Janvāris","Februāris","Marts","Aprīlis","Maijs","Jūnijs","Jūlijs","Augusts","Septembris","Oktobris","Novembris","Decembris"]},rangeSeparator:" līdz ",time_24hr:!0};be.l10ns.lv=ke,be.l10ns;var we="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},_e={weekdays:{shorthand:["Не","По","Вт","Ср","Че","Пе","Са"],longhand:["Недела","Понеделник","Вторник","Среда","Четврток","Петок","Сабота"]},months:{shorthand:["Јан","Фев","Мар","Апр","Мај","Јун","Јул","Авг","Сеп","Окт","Ное","Дек"],longhand:["Јануари","Февруари","Март","Април","Мај","Јуни","Јули","Август","Септември","Октомври","Ноември","Декември"]},firstDayOfWeek:1,weekAbbreviation:"Нед.",rangeSeparator:" до ",time_24hr:!0};we.l10ns.mk=_e,we.l10ns;var Ce="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},xe={firstDayOfWeek:1,weekdays:{shorthand:["Да","Мя","Лх","Пү","Ба","Бя","Ня"],longhand:["Даваа","Мягмар","Лхагва","Пүрэв","Баасан","Бямба","Ням"]},months:{shorthand:["1-р сар","2-р сар","3-р сар","4-р сар","5-р сар","6-р сар","7-р сар","8-р сар","9-р сар","10-р сар","11-р сар","12-р сар"],longhand:["Нэгдүгээр сар","Хоёрдугаар сар","Гуравдугаар сар","Дөрөвдүгээр сар","Тавдугаар сар","Зургаадугаар сар","Долдугаар сар","Наймдугаар сар","Есдүгээр сар","Аравдугаар сар","Арваннэгдүгээр сар","Арванхоёрдугаар сар"]},rangeSeparator:"-с ",time_24hr:!0};Ce.l10ns.mn=xe,Ce.l10ns;var Se="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Ee={weekdays:{shorthand:["Aha","Isn","Sel","Rab","Kha","Jum","Sab"],longhand:["Ahad","Isnin","Selasa","Rabu","Khamis","Jumaat","Sabtu"]},months:{shorthand:["Jan","Feb","Mac","Apr","Mei","Jun","Jul","Ogo","Sep","Okt","Nov","Dis"],longhand:["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember"]},firstDayOfWeek:1,ordinal:function(){return""}};Se.l10ns;var Ae="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},De={weekdays:{shorthand:["နွေ","လာ","ဂါ","ဟူး","ကြာ","သော","နေ"],longhand:["တနင်္ဂနွေ","တနင်္လာ","အင်္ဂါ","ဗုဒ္ဓဟူး","ကြာသပတေး","သောကြာ","စနေ"]},months:{shorthand:["ဇန်","ဖေ","မတ်","ပြီ","မေ","ဇွန်","လိုင်","သြ","စက်","အောက်","နို","ဒီ"],longhand:["ဇန်နဝါရီ","ဖေဖော်ဝါရီ","မတ်","ဧပြီ","မေ","ဇွန်","ဇူလိုင်","သြဂုတ်","စက်တင်ဘာ","အောက်တိုဘာ","နိုဝင်ဘာ","ဒီဇင်ဘာ"]},firstDayOfWeek:1,ordinal:function(){return""},time_24hr:!0};Ae.l10ns.my=De,Ae.l10ns;var Te="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Ie={weekdays:{shorthand:["zo","ma","di","wo","do","vr","za"],longhand:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},months:{shorthand:["jan","feb","mrt","apr","mei","jun","jul","aug","sept","okt","nov","dec"],longhand:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},firstDayOfWeek:1,weekAbbreviation:"wk",rangeSeparator:" t/m ",scrollTitle:"Scroll voor volgende / vorige",toggleTitle:"Klik om te wisselen",time_24hr:!0,ordinal:function(e){return 1===e||8===e||e>=20?"ste":"de"}};Te.l10ns.nl=Ie,Te.l10ns;var Oe="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Pe={weekdays:{shorthand:["Sø.","Må.","Ty.","On.","To.","Fr.","La."],longhand:["Søndag","Måndag","Tysdag","Onsdag","Torsdag","Fredag","Laurdag"]},months:{shorthand:["Jan","Feb","Mars","Apr","Mai","Juni","Juli","Aug","Sep","Okt","Nov","Des"],longhand:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"]},firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"Veke",scrollTitle:"Scroll for å endre",toggleTitle:"Klikk for å veksle",time_24hr:!0,ordinal:function(){return"."}};Oe.l10ns.nn=Pe,Oe.l10ns;var Fe="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},$e={weekdays:{shorthand:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],longhand:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"]},months:{shorthand:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],longhand:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"]},firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"Uke",scrollTitle:"Scroll for å endre",toggleTitle:"Klikk for å veksle",time_24hr:!0,ordinal:function(){return"."}};Fe.l10ns.no=$e,Fe.l10ns;var Me="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Le={weekdays:{shorthand:["ਐਤ","ਸੋਮ","ਮੰਗਲ","ਬੁੱਧ","ਵੀਰ","ਸ਼ੁੱਕਰ","ਸ਼ਨਿੱਚਰ"],longhand:["ਐਤਵਾਰ","ਸੋਮਵਾਰ","ਮੰਗਲਵਾਰ","ਬੁੱਧਵਾਰ","ਵੀਰਵਾਰ","ਸ਼ੁੱਕਰਵਾਰ","ਸ਼ਨਿੱਚਰਵਾਰ"]},months:{shorthand:["ਜਨ","ਫ਼ਰ","ਮਾਰ","ਅਪ੍ਰੈ","ਮਈ","ਜੂਨ","ਜੁਲਾ","ਅਗ","ਸਤੰ","ਅਕ","ਨਵੰ","ਦਸੰ"],longhand:["ਜਨਵਰੀ","ਫ਼ਰਵਰੀ","ਮਾਰਚ","ਅਪ੍ਰੈਲ","ਮਈ","ਜੂਨ","ਜੁਲਾਈ","ਅਗਸਤ","ਸਤੰਬਰ","ਅਕਤੂਬਰ","ਨਵੰਬਰ","ਦਸੰਬਰ"]},time_24hr:!0};Me.l10ns.pa=Le,Me.l10ns;var Ne="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},je={weekdays:{shorthand:["Nd","Pn","Wt","Śr","Cz","Pt","So"],longhand:["Niedziela","Poniedziałek","Wtorek","Środa","Czwartek","Piątek","Sobota"]},months:{shorthand:["Sty","Lut","Mar","Kwi","Maj","Cze","Lip","Sie","Wrz","Paź","Lis","Gru"],longhand:["Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień"]},rangeSeparator:" do ",weekAbbreviation:"tydz.",scrollTitle:"Przewiń, aby zwiększyć",toggleTitle:"Kliknij, aby przełączyć",firstDayOfWeek:1,time_24hr:!0,ordinal:function(){return"."}};Ne.l10ns.pl=je,Ne.l10ns;var Be="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Re={weekdays:{shorthand:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],longhand:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"]},months:{shorthand:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],longhand:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"]},rangeSeparator:" até ",time_24hr:!0};Be.l10ns.pt=Re,Be.l10ns;var Ve="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},qe={weekdays:{shorthand:["Dum","Lun","Mar","Mie","Joi","Vin","Sâm"],longhand:["Duminică","Luni","Marți","Miercuri","Joi","Vineri","Sâmbătă"]},months:{shorthand:["Ian","Feb","Mar","Apr","Mai","Iun","Iul","Aug","Sep","Oct","Noi","Dec"],longhand:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"]},firstDayOfWeek:1,time_24hr:!0,ordinal:function(){return""}};Ve.l10ns.ro=qe,Ve.l10ns;var He="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},ze={weekdays:{shorthand:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],longhand:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"]},months:{shorthand:["Янв","Фев","Март","Апр","Май","Июнь","Июль","Авг","Сен","Окт","Ноя","Дек"],longhand:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" — ",weekAbbreviation:"Нед.",scrollTitle:"Прокрутите для увеличения",toggleTitle:"Нажмите для переключения",amPM:["ДП","ПП"],yearAriaLabel:"Год",time_24hr:!0};He.l10ns.ru=ze,He.l10ns;var Ue="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},We={weekdays:{shorthand:["ඉ","ස","අ","බ","බ්ර","සි","සෙ"],longhand:["ඉරිදා","සඳුදා","අඟහරුවාදා","බදාදා","බ්රහස්පතින්දා","සිකුරාදා","සෙනසුරාදා"]},months:{shorthand:["ජන","පෙබ","මාර්","අප්රේ","මැයි","ජුනි","ජූලි","අගෝ","සැප්","ඔක්","නොවැ","දෙසැ"],longhand:["ජනවාරි","පෙබරවාරි","මාර්තු","අප්රේල්","මැයි","ජුනි","ජූලි","අගෝස්තු","සැප්තැම්බර්","ඔක්තෝබර්","නොවැම්බර්","දෙසැම්බර්"]},time_24hr:!0};Ue.l10ns.si=We,Ue.l10ns;var Ge="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Ke={weekdays:{shorthand:["Ned","Pon","Ut","Str","Štv","Pia","Sob"],longhand:["Nedeľa","Pondelok","Utorok","Streda","Štvrtok","Piatok","Sobota"]},months:{shorthand:["Jan","Feb","Mar","Apr","Máj","Jún","Júl","Aug","Sep","Okt","Nov","Dec"],longhand:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"]},firstDayOfWeek:1,rangeSeparator:" do ",time_24hr:!0,ordinal:function(){return"."}};Ge.l10ns.sk=Ke,Ge.l10ns;var Qe="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Ye={weekdays:{shorthand:["Ned","Pon","Tor","Sre","Čet","Pet","Sob"],longhand:["Nedelja","Ponedeljek","Torek","Sreda","Četrtek","Petek","Sobota"]},months:{shorthand:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],longhand:["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"]},firstDayOfWeek:1,rangeSeparator:" do ",time_24hr:!0,ordinal:function(){return"."}};Qe.l10ns.sl=Ye,Qe.l10ns;var Je="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},Xe={weekdays:{shorthand:["Di","Hë","Ma","Më","En","Pr","Sh"],longhand:["E Diel","E Hënë","E Martë","E Mërkurë","E Enjte","E Premte","E Shtunë"]},months:{shorthand:["Jan","Shk","Mar","Pri","Maj","Qer","Kor","Gus","Sht","Tet","Nën","Dhj"],longhand:["Janar","Shkurt","Mars","Prill","Maj","Qershor","Korrik","Gusht","Shtator","Tetor","Nëntor","Dhjetor"]},firstDayOfWeek:1,rangeSeparator:" deri ",weekAbbreviation:"Java",yearAriaLabel:"Viti",monthAriaLabel:"Muaji",hourAriaLabel:"Ora",minuteAriaLabel:"Minuta",time_24hr:!0};Je.l10ns.sq=Xe,Je.l10ns;var Ze="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},et={weekdays:{shorthand:["Ned","Pon","Uto","Sre","Čet","Pet","Sub"],longhand:["Nedelja","Ponedeljak","Utorak","Sreda","Četvrtak","Petak","Subota"]},months:{shorthand:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],longhand:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"]},firstDayOfWeek:1,weekAbbreviation:"Ned.",rangeSeparator:" do ",time_24hr:!0};Ze.l10ns.sr=et,Ze.l10ns;var tt="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},nt={firstDayOfWeek:1,weekAbbreviation:"v",weekdays:{shorthand:["sön","mån","tis","ons","tor","fre","lör"],longhand:["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"]},months:{shorthand:["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec"],longhand:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"]},rangeSeparator:" till ",time_24hr:!0,ordinal:function(){return"."}};tt.l10ns.sv=nt,tt.l10ns;var it="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},rt={weekdays:{shorthand:["อา","จ","อ","พ","พฤ","ศ","ส"],longhand:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัสบดี","ศุกร์","เสาร์"]},months:{shorthand:["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],longhand:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"]},firstDayOfWeek:1,rangeSeparator:" ถึง ",scrollTitle:"เลื่อนเพื่อเพิ่มหรือลด",toggleTitle:"คลิกเพื่อเปลี่ยน",time_24hr:!0,ordinal:function(){return""}};it.l10ns.th=rt,it.l10ns;var ot="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},at={weekdays:{shorthand:["Paz","Pzt","Sal","Çar","Per","Cum","Cmt"],longhand:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},months:{shorthand:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],longhand:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"]},firstDayOfWeek:1,ordinal:function(){return"."},rangeSeparator:" - ",weekAbbreviation:"Hf",scrollTitle:"Artırmak için kaydırın",toggleTitle:"Aç/Kapa",amPM:["ÖÖ","ÖS"],time_24hr:!0};ot.l10ns.tr=at,ot.l10ns;var st="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},lt={firstDayOfWeek:1,weekdays:{shorthand:["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],longhand:["Неділя","Понеділок","Вівторок","Середа","Четвер","П'ятниця","Субота"]},months:{shorthand:["Січ","Лют","Бер","Кві","Тра","Чер","Лип","Сер","Вер","Жов","Лис","Гру"],longhand:["Січень","Лютий","Березень","Квітень","Травень","Червень","Липень","Серпень","Вересень","Жовтень","Листопад","Грудень"]},time_24hr:!0};st.l10ns.uk=lt,st.l10ns;var ct="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},ut={weekdays:{shorthand:["Якш","Душ","Сеш","Чор","Пай","Жум","Шан"],longhand:["Якшанба","Душанба","Сешанба","Чоршанба","Пайшанба","Жума","Шанба"]},months:{shorthand:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],longhand:["Январ","Феврал","Март","Апрел","Май","Июн","Июл","Август","Сентябр","Октябр","Ноябр","Декабр"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" — ",weekAbbreviation:"Ҳафта",scrollTitle:"Катталаштириш учун айлантиринг",toggleTitle:"Ўтиш учун босинг",amPM:["AM","PM"],yearAriaLabel:"Йил",time_24hr:!0};ct.l10ns.uz=ut,ct.l10ns;var dt="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},pt={weekdays:{shorthand:["Ya","Du","Se","Cho","Pa","Ju","Sha"],longhand:["Yakshanba","Dushanba","Seshanba","Chorshanba","Payshanba","Juma","Shanba"]},months:{shorthand:["Yan","Fev","Mar","Apr","May","Iyun","Iyul","Avg","Sen","Okt","Noy","Dek"],longhand:["Yanvar","Fevral","Mart","Aprel","May","Iyun","Iyul","Avgust","Sentabr","Oktabr","Noyabr","Dekabr"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" — ",weekAbbreviation:"Hafta",scrollTitle:"Kattalashtirish uchun aylantiring",toggleTitle:"O‘tish uchun bosing",amPM:["AM","PM"],yearAriaLabel:"Yil",time_24hr:!0};dt.l10ns.uz_latn=pt,dt.l10ns;var ht="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},ft={weekdays:{shorthand:["CN","T2","T3","T4","T5","T6","T7"],longhand:["Chủ nhật","Thứ hai","Thứ ba","Thứ tư","Thứ năm","Thứ sáu","Thứ bảy"]},months:{shorthand:["Th1","Th2","Th3","Th4","Th5","Th6","Th7","Th8","Th9","Th10","Th11","Th12"],longhand:["Tháng một","Tháng hai","Tháng ba","Tháng tư","Tháng năm","Tháng sáu","Tháng bảy","Tháng tám","Tháng chín","Tháng mười","Tháng mười một","Tháng mười hai"]},firstDayOfWeek:1,rangeSeparator:" đến "};ht.l10ns.vn=ft,ht.l10ns;var mt="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},gt={weekdays:{shorthand:["周日","周一","周二","周三","周四","周五","周六"],longhand:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},months:{shorthand:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],longhand:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},rangeSeparator:" 至 ",weekAbbreviation:"周",scrollTitle:"滚动切换",toggleTitle:"点击切换 12/24 小时时制"};mt.l10ns.zh=gt,mt.l10ns;var vt="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},yt={weekdays:{shorthand:["週日","週一","週二","週三","週四","週五","週六"],longhand:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},months:{shorthand:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],longhand:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},rangeSeparator:" 至 ",weekAbbreviation:"週",scrollTitle:"滾動切換",toggleTitle:"點擊切換 12/24 小時時制"};vt.l10ns.zh_tw=yt,vt.l10ns;var bt={ar:i,at:o,az:s,be:c,bg:h,bn:m,bs:d,ca:v,ckb:b,cat:v,cs:w,cy:C,da:S,de:A,default:t({},D),en:D,eo:I,es:P,et:$,fa:L,fi:j,fo:R,fr:q,gr:z,he:W,hi:K,hr:Y,hu:X,hy:ee,id:ne,is:re,it:ae,ja:le,ka:ue,ko:pe,km:fe,kz:ge,lt:ye,lv:ke,mk:_e,mn:xe,ms:Ee,my:De,nl:Ie,nn:Pe,no:$e,pa:Le,pl:je,pt:Re,ro:qe,ru:ze,si:We,sk:Ke,sl:Ye,sq:Xe,sr:et,sv:nt,th:rt,tr:at,uk:lt,vn:ft,zh:gt,zh_tw:yt,uz:ut,uz_latn:pt};e.default=bt,Object.defineProperty(e,"__esModule",{value:!0})}(t)},66262:function(e,t){"use strict";t.A=(e,t)=>{const n=e.__vccOpts||e;for(const[e,i]of t)n[e]=i;return n}},66524:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M3.749 9a8.25 8.25 0 0 1 13.5-6.364" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M19.687 6a8.2 8.2 0 0 1 .562 3v6A8.25 8.25 0 0 1 12 23.25a8.3 8.3 0 0 1-1.5-.136" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M6.751 21.365a8.23 8.23 0 0 1-3-6.365v-2.25" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M15.749 15V9a3.75 3.75 0 0 0-6-3" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M8.249 9v6a3.753 3.753 0 0 0 5.251 3.438" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M11.999 9.75v4.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},66743:function(e,t,n){"use strict";var i=n(89353);e.exports=Function.prototype.bind||i},66828:function(){},66912:function(){},67019:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M7.501 11.997h9" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m11.251 15.747-3.75-3.75 3.75-3.75" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M1.501 11.997a10.5 10.5 0 1 0 21 0 10.5 10.5 0 1 0-21 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},67192:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"tagname-specialchars",description:"All special characters must be escaped.",init(e,t){const n=/[^a-zA-Z0-9\-:_]/;e.addListener("tagstart,tagend",e=>{const i=e.tagName;n.test(i)&&t.error(`The html element name of [ ${i} ] contains special character.`,e.line,e.col,this,e.raw)})}}},67202:function(e){"use strict";e.exports={__proto__:null,aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32",currentColor:"The value of the 'color' property.",activeBorder:"Active window border.",activecaption:"Active window caption.",appworkspace:"Background color of multiple document interface.",background:"Desktop background.",buttonface:"The face background color for 3-D elements that appear 3-D due to one layer of surrounding border.",buttonhighlight:"The color of the border facing the light source for 3-D elements that appear 3-D due to one layer of surrounding border.",buttonshadow:"The color of the border away from the light source for 3-D elements that appear 3-D due to one layer of surrounding border.",buttontext:"Text on push buttons.",captiontext:"Text in caption, size box, and scrollbar arrow box.",graytext:"Grayed (disabled) text. This color is set to #000 if the current display driver does not support a solid gray color.",greytext:"Greyed (disabled) text. This color is set to #000 if the current display driver does not support a solid grey color.",highlight:"Item(s) selected in a control.",highlighttext:"Text of item(s) selected in a control.",inactiveborder:"Inactive window border.",inactivecaption:"Inactive window caption.",inactivecaptiontext:"Color of text in an inactive caption.",infobackground:"Background color for tooltip controls.",infotext:"Text color for tooltip controls.",menu:"Menu background.",menutext:"Text in menus.",scrollbar:"Scroll bar gray area.",threeddarkshadow:"The color of the darker (generally outer) of the two borders away from the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",threedface:"The face background color for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",threedhighlight:"The color of the lighter (generally outer) of the two borders facing the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",threedlightshadow:"The color of the darker (generally inner) of the two borders facing the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",threedshadow:"The color of the lighter (generally inner) of the two borders away from the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",window:"Window background.",windowframe:"Window frame.",windowtext:"Text in windows."}},67243:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M18.75 9.75H5.25a1.5 1.5 0 0 0-1.5 1.5v10.5a1.5 1.5 0 0 0 1.5 1.5h13.5a1.5 1.5 0 0 0 1.5-1.5v-10.5a1.5 1.5 0 0 0-1.5-1.5" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M6.75 9.75V6a5.25 5.25 0 1 1 10.5 0v3.75" stroke-width="2"/><path stroke="currentColor" d="M12 16.5a.375.375 0 0 1 0-.75" stroke-width="2"/><path stroke="currentColor" d="M12 16.5a.375.375 0 0 0 0-.75" stroke-width="2"/></svg>'},67367:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 48 48" class="bricks-svg"><g><path fill="currentColor" fill-rule="evenodd" d="M25.685 5.318c2.697-.203 8.618-.53 15.05-.125.827.052 1.52.723 1.575 1.623.403 6.578.073 12.629-.128 15.34a3.2 3.2 0 0 1-.626 1.699c-2.218 2.951-8.686 10.982-18.661 18.64-.825.633-1.563.602-2.05.275-1.56-1.05-4.201-3.179-8.109-7.408-3.408-3.688-5.49-6.223-6.74-7.875-.685-.906-.68-2.158.148-3.22 7.54-9.662 15.006-16.02 17.837-18.284a3.07 3.07 0 0 1 1.704-.665m15.301-4.117C34.298.78 28.174 1.12 25.384 1.33a7.07 7.07 0 0 0-3.9 1.529C18.495 5.247 10.78 11.823 2.99 21.806c-1.81 2.32-2.09 5.578-.185 8.095 1.348 1.78 3.52 4.417 6.992 8.176 4.051 4.384 6.925 6.741 8.815 8.012 2.27 1.526 4.905.97 6.718-.421 10.358-7.952 17.074-16.284 19.423-19.41a7.2 7.2 0 0 0 1.418-3.808c.206-2.8.549-9.05.13-15.878-.175-2.87-2.43-5.189-5.316-5.37m-8.237 9.731c0-2.182 1.747-3.975 3.932-3.975 2.186 0 3.933 1.793 3.933 3.975s-1.747 3.975-3.933 3.975-3.933-1.793-3.933-3.975" clip-rule="evenodd" stroke-width="1"/></g></svg>'},67374:function(e){e.exports='<svg fill="currentColor" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="64px" height="64px" viewBox="0 0 96.24 96.24" xml:space="preserve" stroke="" class="bricks-svg"><g stroke-width="0"/><g stroke-linecap="round" stroke-linejoin="round"/><g><g><path d="M48.122 0C21.587 0 .001 21.585.001 48.118c0 26.535 21.587 48.122 48.12 48.122s48.117-21.587 48.117-48.122C96.239 21.586 74.654 0 48.122 0zM4.857 48.118a43.1 43.1 0 0 1 3.746-17.606l20.638 56.544C14.81 80.042 4.857 65.243 4.857 48.118zm43.265 43.267c-4.247 0-8.346-.623-12.222-1.763l12.98-37.719 13.301 36.433c.086.215.191.411.308.596a43.2 43.2 0 0 1-14.367 2.453zm5.961-63.551c2.604-.137 4.953-.412 4.953-.412 2.33-.276 2.057-3.701-.277-3.564 0 0-7.007.549-11.532.549-4.25 0-11.396-.549-11.396-.549-2.332-.137-2.604 3.427-.273 3.564 0 0 2.208.275 4.537.412l6.74 18.469-9.468 28.395-15.752-46.863c2.608-.136 4.952-.412 4.952-.412 2.33-.275 2.055-3.702-.278-3.562 0 0-7.004.549-11.53.549a95 95 0 0 1-2.784-.052C19.709 12.611 33.008 4.856 48.122 4.856c11.265 0 21.519 4.306 29.215 11.357-.187-.01-.368-.035-.562-.035-4.248 0-7.264 3.702-7.264 7.679 0 3.564 2.055 6.582 4.248 10.146 1.647 2.882 3.567 6.585 3.567 11.932 0 3.704-1.422 8-3.293 13.986l-4.315 14.421zm15.788 57.682 13.215-38.208c2.471-6.171 3.29-11.106 3.29-15.497 0-1.591-.104-3.07-.292-4.449a43 43 0 0 1 5.301 20.758c-.001 15.96-8.653 29.896-21.514 37.396z"/></g></g></svg>'},67526:function(e,t){"use strict";t.byteLength=function(e){var t=s(e),n=t[0],i=t[1];return 3*(n+i)/4-i},t.toByteArray=function(e){var t,n,o=s(e),a=o[0],l=o[1],c=new r(function(e,t,n){return 3*(t+n)/4-n}(0,a,l)),u=0,d=l>0?a-4:a;for(n=0;n<d;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===l&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===l&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,i=e.length,r=i%3,o=[],a=16383,s=0,l=i-r;s<l;s+=a)o.push(c(e,s,s+a>l?l:s+a));1===r?(t=e[i-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===r&&(t=(e[i-2]<<8)+e[i-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],i=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=o[a],i[o.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function c(e,t,n){for(var i,r=[],o=t;o<n;o+=3)i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),r.push(l(i));return r.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},68002:function(e){"use strict";e.exports=Math.min},68217:function(e,t,n){var i,r,o,a;function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}e=n.nmd(e),a=function(e){"use strict";e.registerHelper("lint","css",function(t,n){return window.stylelint?(t=t.replace(/%root%/g,".brxe-root-placeholder"),stylelint.lint({code:t,config:n.stylelintConfig||{}}).then(function(t){var n=[],i=t.results[0];return i&&i.warnings&&i.warnings.forEach(function(t){var i=t.text.replace(/\.brxe-root-placeholder/g,"%root%");n.push({from:e.Pos(t.line-1,t.column-1),to:e.Pos(t.line-1,t.column),message:i,severity:t.severity})}),n}).catch(function(e){return console.error("Stylelint error:",e),[]})):(console.error("Error: window.stylelint not defined, CodeMirror CSS linting cannot run."),Promise.resolve([]))})},"object"==s(t)&&"object"==s(e)?a(n(15237)):(r=[n(15237)],void 0===(o="function"==typeof(i=a)?i.apply(t,r):i)||(e.exports=o))},68335:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"attr-sorted",description:"Attribute tags must be in proper order.",init(e,t){const n={},i=["class","id","name","src","for","type","rel","href","value","title","alt","role"];for(let e=0;e<i.length;e++)n[i[e]]=e;e.addListener("tagstart",e=>{const i=e.attrs,r=[];for(let e=0;e<i.length;e++)r.push(i[e].name);const o=JSON.stringify(r);r.sort((e,t)=>void 0!==n[e]?void 0!==n[t]?n[e]-n[t]:-1:e.startsWith("data-")?t.startsWith("data-")?e.localeCompare(t):1:void 0!==n[t]?1:t.startsWith("data-")?-1:e.localeCompare(t)),o!==JSON.stringify(r)&&t.error(`Inaccurate order ${o} should be in hierarchy ${JSON.stringify(r)} `,e.line,e.col,this,e.raw)})}}},68494:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M17.36 23.025 6.855 12.519a.734.734 0 0 1 0-1.038L17.36.975" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},68564:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M9 9a3 3 0 0 1 5.753-1.192c.218.505.294 1.06.218 1.605A3 3 0 0 1 13 11.829a1.5 1.5 0 0 0-1 1.415v1.006" stroke-width="2"/><path stroke="currentColor" d="M12 18a.375.375 0 0 1 0-.75" stroke-width="2"/><path stroke="currentColor" d="M12 18a.375.375 0 0 0 0-.75" stroke-width="2"/><path stroke="currentColor" stroke-miterlimit="10" d="M12 23.25c6.213 0 11.25-5.037 11.25-11.25S18.213.75 12 .75.75 5.787.75 12 5.787 23.25 12 23.25Z" stroke-width="2"/></svg>'},68656:function(e,t,n){!function(e){"use strict";function t(e){for(var t={},n=0;n<e.length;++n)t[e[n].toLowerCase()]=!0;return t}e.defineMode("css",function(t,n){var i=n.inline;n.propertyKeywords||(n=e.resolveMode("text/css"));var r,o,a=t.indentUnit,s=n.tokenHooks,l=n.documentTypes||{},c=n.mediaTypes||{},u=n.mediaFeatures||{},d=n.mediaValueKeywords||{},p=n.propertyKeywords||{},h=n.nonStandardPropertyKeywords||{},f=n.fontProperties||{},m=n.counterDescriptors||{},g=n.colorKeywords||{},v=n.valueKeywords||{},y=n.allowNested,b=n.lineComment,k=!0===n.supportsAtComponent,w=!1!==t.highlightNonStandardPropertyKeywords;function _(e,t){return r=t,e}function C(e,t){var n=e.next();if(s[n]){var i=s[n](e,t);if(!1!==i)return i}return"@"==n?(e.eatWhile(/[\w\\\-]/),_("def",e.current())):"="==n||("~"==n||"|"==n)&&e.eat("=")?_(null,"compare"):'"'==n||"'"==n?(t.tokenize=x(n),t.tokenize(e,t)):"#"==n?(e.eatWhile(/[\w\\\-]/),_("atom","hash")):"!"==n?(e.match(/^\s*\w*/),_("keyword","important")):/\d/.test(n)||"."==n&&e.eat(/\d/)?(e.eatWhile(/[\w.%]/),_("number","unit")):"-"!==n?/[,+>*\/]/.test(n)?_(null,"select-op"):"."==n&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?_("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(n)?_(null,n):e.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(e.current())&&(t.tokenize=S),_("variable callee","variable")):/[\w\\\-]/.test(n)?(e.eatWhile(/[\w\\\-]/),_("property","word")):_(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),_("number","unit")):e.match(/^-[\w\\\-]*/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?_("variable-2","variable-definition"):_("variable-2","variable")):e.match(/^\w+-/)?_("meta","meta"):void 0}function x(e){return function(t,n){for(var i,r=!1;null!=(i=t.next());){if(i==e&&!r){")"==e&&t.backUp(1);break}r=!r&&"\\"==i}return(i==e||!r&&")"!=e)&&(n.tokenize=null),_("string","string")}}function S(e,t){return e.next(),e.match(/^\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=x(")"),_(null,"(")}function E(e,t,n){this.type=e,this.indent=t,this.prev=n}function A(e,t,n,i){return e.context=new E(n,t.indentation()+(!1===i?0:a),e.context),n}function D(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function T(e,t,n){return P[n.context.type](e,t,n)}function I(e,t,n,i){for(var r=i||1;r>0;r--)n.context=n.context.prev;return T(e,t,n)}function O(e){var t=e.current().toLowerCase();o=v.hasOwnProperty(t)?"atom":g.hasOwnProperty(t)?"keyword":"variable"}var P={top:function(e,t,n){if("{"==e)return A(n,t,"block");if("}"==e&&n.context.prev)return D(n);if(k&&/@component/i.test(e))return A(n,t,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return A(n,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return A(n,t,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return n.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return A(n,t,"at");if("hash"==e)o="builtin";else if("word"==e)o="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return A(n,t,"interpolation");if(":"==e)return"pseudo";if(y&&"("==e)return A(n,t,"parens")}return n.context.type},block:function(e,t,n){if("word"==e){var i=t.current().toLowerCase();return p.hasOwnProperty(i)?(o="property","maybeprop"):h.hasOwnProperty(i)?(o=w?"string-2":"property","maybeprop"):y?(o=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(o+=" error","maybeprop")}return"meta"==e?"block":y||"hash"!=e&&"qualifier"!=e?P.top(e,t,n):(o="error","block")},maybeprop:function(e,t,n){return":"==e?A(n,t,"prop"):T(e,t,n)},prop:function(e,t,n){if(";"==e)return D(n);if("{"==e&&y)return A(n,t,"propBlock");if("}"==e||"{"==e)return I(e,t,n);if("("==e)return A(n,t,"parens");if("hash"!=e||/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(t.current())){if("word"==e)O(t);else if("interpolation"==e)return A(n,t,"interpolation")}else o+=" error";return"prop"},propBlock:function(e,t,n){return"}"==e?D(n):"word"==e?(o="property","maybeprop"):n.context.type},parens:function(e,t,n){return"{"==e||"}"==e?I(e,t,n):")"==e?D(n):"("==e?A(n,t,"parens"):"interpolation"==e?A(n,t,"interpolation"):("word"==e&&O(t),"parens")},pseudo:function(e,t,n){return"meta"==e?"pseudo":"word"==e?(o="variable-3",n.context.type):T(e,t,n)},documentTypes:function(e,t,n){return"word"==e&&l.hasOwnProperty(t.current())?(o="tag",n.context.type):P.atBlock(e,t,n)},atBlock:function(e,t,n){if("("==e)return A(n,t,"atBlock_parens");if("}"==e||";"==e)return I(e,t,n);if("{"==e)return D(n)&&A(n,t,y?"block":"top");if("interpolation"==e)return A(n,t,"interpolation");if("word"==e){var i=t.current().toLowerCase();o="only"==i||"not"==i||"and"==i||"or"==i?"keyword":c.hasOwnProperty(i)?"attribute":u.hasOwnProperty(i)?"property":d.hasOwnProperty(i)?"keyword":p.hasOwnProperty(i)?"property":h.hasOwnProperty(i)?w?"string-2":"property":v.hasOwnProperty(i)?"atom":g.hasOwnProperty(i)?"keyword":"error"}return n.context.type},atComponentBlock:function(e,t,n){return"}"==e?I(e,t,n):"{"==e?D(n)&&A(n,t,y?"block":"top",!1):("word"==e&&(o="error"),n.context.type)},atBlock_parens:function(e,t,n){return")"==e?D(n):"{"==e||"}"==e?I(e,t,n,2):P.atBlock(e,t,n)},restricted_atBlock_before:function(e,t,n){return"{"==e?A(n,t,"restricted_atBlock"):"word"==e&&"@counter-style"==n.stateArg?(o="variable","restricted_atBlock_before"):T(e,t,n)},restricted_atBlock:function(e,t,n){return"}"==e?(n.stateArg=null,D(n)):"word"==e?(o="@font-face"==n.stateArg&&!f.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==n.stateArg&&!m.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(e,t,n){return"word"==e?(o="variable","keyframes"):"{"==e?A(n,t,"top"):T(e,t,n)},at:function(e,t,n){return";"==e?D(n):"{"==e||"}"==e?I(e,t,n):("word"==e?o="tag":"hash"==e&&(o="builtin"),"at")},interpolation:function(e,t,n){return"}"==e?D(n):"{"==e||";"==e?I(e,t,n):("word"==e?o="variable":"variable"!=e&&"("!=e&&")"!=e&&(o="error"),"interpolation")}};return{startState:function(e){return{tokenize:null,state:i?"block":"top",stateArg:null,context:new E(i?"block":"top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var n=(t.tokenize||C)(e,t);return n&&"object"==typeof n&&(r=n[1],n=n[0]),o=n,"comment"!=r&&(t.state=P[t.state](r,e,t)),o},indent:function(e,t){var n=e.context,i=t&&t.charAt(0),r=n.indent;return"prop"!=n.type||"}"!=i&&")"!=i||(n=n.prev),n.prev&&("}"!=i||"block"!=n.type&&"top"!=n.type&&"interpolation"!=n.type&&"restricted_atBlock"!=n.type?(")"!=i||"parens"!=n.type&&"atBlock_parens"!=n.type)&&("{"!=i||"at"!=n.type&&"atBlock"!=n.type)||(r=Math.max(0,n.indent-a)):r=(n=n.prev).indent),r},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:b,fold:"brace"}});var n=["domain","regexp","url","url-prefix"],i=t(n),r=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],o=t(r),a=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],s=t(a),l=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],c=t(l),u=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],d=t(u),p=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],h=t(p),f=t(["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"]),m=t(["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"]),g=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],v=t(g),y=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],b=t(y),k=n.concat(r).concat(a).concat(l).concat(u).concat(p).concat(g).concat(y);function w(e,t){for(var n,i=!1;null!=(n=e.next());){if(i&&"/"==n){t.tokenize=null;break}i="*"==n}return["comment","comment"]}e.registerHelper("hintWords","css",k),e.defineMIME("text/css",{documentTypes:i,mediaTypes:o,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:d,nonStandardPropertyKeywords:h,fontProperties:f,counterDescriptors:m,colorKeywords:v,valueKeywords:b,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=w,w(e,t))}},name:"css"}),e.defineMIME("text/x-scss",{mediaTypes:o,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:d,nonStandardPropertyKeywords:h,colorKeywords:v,valueKeywords:b,fontProperties:f,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=w,w(e,t)):["operator","operator"]},":":function(e){return!!e.match(/^\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),e.defineMIME("text/x-less",{mediaTypes:o,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:d,nonStandardPropertyKeywords:h,colorKeywords:v,valueKeywords:b,fontProperties:f,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=w,w(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),e.defineMIME("text/x-gss",{documentTypes:i,mediaTypes:o,mediaFeatures:s,propertyKeywords:d,nonStandardPropertyKeywords:h,fontProperties:f,counterDescriptors:m,colorKeywords:v,valueKeywords:b,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=w,w(e,t))}},name:"css",helperType:"gss"})}(n(15237))},69081:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"attr-value-not-empty",description:"All attributes must have values.",init(e,t){e.addListener("tagstart",e=>{const n=e.attrs;let i;const r=e.col+e.tagName.length+1;for(let o=0,a=n.length;o<a;o++)i=n[o],""===i.quote&&""===i.value&&t.warn(`The attribute [ ${i.name} ] must have a value.`,e.line,r+i.index,this,i.raw)})}}},69187:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="-0.75 -0.75 14 14" class="bricks-svg"><g id="check--check-form-validation-checkmark-success-add-addition-tick"><path id="Vector 3969" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m.446 8.036 2.877 2.517c.38.332.96.284 1.28-.107l7.45-9.107" stroke-width="1.5"/></g></svg>'},69281:function(){},69383:function(e){"use strict";e.exports=Error},69466:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="bricks-svg"><g><path d="M18.75 6.37V4.12a2.25 2.25 0 0 0-4.5 0V3a2.25 2.25 0 0 0-4.5 0v1.12a2.25 2.25 0 0 0-4.5 0V7.5A4.49 4.49 0 0 0 .75 12a10.54 10.54 0 0 0 2 6.12l1.65 2.3a6.72 6.72 0 0 0 5.49 2.83h5.72a7.68 7.68 0 0 0 7.68-7.68v-9.2a2.25 2.25 0 0 0-4.5 0Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M5.25 7.5v3.37" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M9.75 6.37V4.12" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M14.25 6.37V4.12" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M18.75 6.37" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></g></svg>'},69675:function(e){"use strict";e.exports=TypeError},69873:function(){},69905:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><text fill="#212121" font-size="80" font-weight="bold">\n <tspan x="42" y="85">x</tspan>\n </text></svg>'},70024:function(){},70094:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M0 120h128v8H0zM28 16h32v96H28zm40 0h32v96H68z"/></svg>'},70414:function(e){"use strict";e.exports=Math.round},70453:function(e,t,n){"use strict";var i,r=n(79612),o=n(69383),a=n(41237),s=n(79290),l=n(79538),c=n(58068),u=n(69675),d=n(35345),p=n(71514),h=n(58968),f=n(6188),m=n(68002),g=n(75880),v=n(70414),y=n(73093),b=Function,k=function(e){try{return b('"use strict"; return ('+e+").constructor;")()}catch(e){}},w=n(75795),_=n(30655),C=function(){throw new u},x=w?function(){try{return C}catch(e){try{return w(arguments,"callee").get}catch(e){return C}}}():C,S=n(64039)(),E=n(93628),A=n(71064),D=n(48648),T=n(11002),I=n(10076),O={},P="undefined"!=typeof Uint8Array&&E?E(Uint8Array):i,F={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?i:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?i:ArrayBuffer,"%ArrayIteratorPrototype%":S&&E?E([][Symbol.iterator]()):i,"%AsyncFromSyncIteratorPrototype%":i,"%AsyncFunction%":O,"%AsyncGenerator%":O,"%AsyncGeneratorFunction%":O,"%AsyncIteratorPrototype%":O,"%Atomics%":"undefined"==typeof Atomics?i:Atomics,"%BigInt%":"undefined"==typeof BigInt?i:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?i:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?i:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?i:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?i:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?i:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?i:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?i:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":O,"%Int8Array%":"undefined"==typeof Int8Array?i:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?i:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?i:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":S&&E?E(E([][Symbol.iterator]())):i,"%JSON%":"object"==typeof JSON?JSON:i,"%Map%":"undefined"==typeof Map?i:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&S&&E?E((new Map)[Symbol.iterator]()):i,"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?i:Promise,"%Proxy%":"undefined"==typeof Proxy?i:Proxy,"%RangeError%":s,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?i:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?i:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&S&&E?E((new Set)[Symbol.iterator]()):i,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?i:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":S&&E?E(""[Symbol.iterator]()):i,"%Symbol%":S?Symbol:i,"%SyntaxError%":c,"%ThrowTypeError%":x,"%TypedArray%":P,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?i:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?i:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?i:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?i:Uint32Array,"%URIError%":d,"%WeakMap%":"undefined"==typeof WeakMap?i:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?i:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?i:WeakSet,"%Function.prototype.call%":I,"%Function.prototype.apply%":T,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":A,"%Math.abs%":p,"%Math.floor%":h,"%Math.max%":f,"%Math.min%":m,"%Math.pow%":g,"%Math.round%":v,"%Math.sign%":y,"%Reflect.getPrototypeOf%":D};if(E)try{null.error}catch(e){var $=E(E(e));F["%Error.prototype%"]=$}var M=function e(t){var n;if("%AsyncFunction%"===t)n=k("async function () {}");else if("%GeneratorFunction%"===t)n=k("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=k("async function* () {}");else if("%AsyncGenerator%"===t){var i=e("%AsyncGeneratorFunction%");i&&(n=i.prototype)}else if("%AsyncIteratorPrototype%"===t){var r=e("%AsyncGenerator%");r&&E&&(n=E(r.prototype))}return F[t]=n,n},L={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},N=n(66743),j=n(9957),B=N.call(I,Array.prototype.concat),R=N.call(T,Array.prototype.splice),V=N.call(I,String.prototype.replace),q=N.call(I,String.prototype.slice),H=N.call(I,RegExp.prototype.exec),z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,U=/\\(\\)?/g,W=function(e,t){var n,i=e;if(j(L,i)&&(i="%"+(n=L[i])[0]+"%"),j(F,i)){var r=F[i];if(r===O&&(r=M(i)),void 0===r&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:r}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===H(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=q(e,0,1),n=q(e,-1);if("%"===t&&"%"!==n)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var i=[];return V(e,z,function(e,t,n,r){i[i.length]=n?V(r,U,"$1"):t||e}),i}(e),i=n.length>0?n[0]:"",r=W("%"+i+"%",t),o=r.name,a=r.value,s=!1,l=r.alias;l&&(i=l[0],R(n,B([0,1],l)));for(var d=1,p=!0;d<n.length;d+=1){var h=n[d],f=q(h,0,1),m=q(h,-1);if(('"'===f||"'"===f||"`"===f||'"'===m||"'"===m||"`"===m)&&f!==m)throw new c("property names with quotes must have matching quotes");if("constructor"!==h&&p||(s=!0),j(F,o="%"+(i+="."+h)+"%"))a=F[o];else if(null!=a){if(!(h in a)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(w&&d+1>=n.length){var g=w(a,h);a=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[h]}else p=j(a,h),a=a[h];p&&!s&&(F[o]=a)}}return a}},70482:function(e,t,n){"use strict";e.exports=o;var i=n(37388),r=n(13573);function o(e,t,n,o,a){i.call(this,n,o,a,r.SELECTOR_PART_TYPE),this.elementName=e,this.modifiers=t}o.prototype=new i,o.prototype.constructor=o},70488:function(e){e.exports='<svg version="1.1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="bricks-svg"><path d="M22.492 6.467a.5.5 0 0 0-.046-.172c-.007-.016-.008-.033-.017-.047l-.002-.005a.5.5 0 0 0-.156-.157q-.007-.008-.014-.014l-10-6a.5.5 0 0 0-.515 0l-10 6c-.006.003-.008.01-.014.014a.5.5 0 0 0-.156.157l-.002.005c-.008.013-.009.029-.015.042a.5.5 0 0 0-.048.181c0 .01-.007.019-.007.029v11c0 .176.093.339.243.429l10 6c.008.005.018.003.026.007.07.038.146.064.231.064.084 0 .16-.026.23-.063.009-.005.019-.003.028-.008l10-5.996a.5.5 0 0 0 .243-.429V6.5c0-.012-.008-.021-.009-.033ZM11.5 22.617l-9-5.4V7.383l9 5.4zm.499-10.7L2.971 6.5 12 1.083 21.027 6.5zm9.501 5.304-9 5.396v-9.835l9-5.4z" fill="none" stroke="currentColor" stroke-width="1"/></svg>'},70787:function(){},70856:function(e){for(var t=[],n=0;n<128;n++)t[n]=36===n||n>=65&&n<=90||95===n||n>=97&&n<=122;var i=[];for(n=0;n<128;n++)i[n]=t[n]||n>=48&&n<=57;e.exports={asciiIdentifierStartTable:t,asciiIdentifierPartTable:i}},71064:function(e,t,n){"use strict";var i=n(79612);e.exports=i.getPrototypeOf||null},71207:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14" class="bricks-svg"><g id="one-handed-holding-tablet-handheld"><path id="Rectangle 2038" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M9.646 1.237A1 1 0 0 0 9 1H2a1 1 0 0 0-1 1v9.094a1 1 0 0 0 1 1h3.75" stroke-width="1"/><path id="vector 296" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m12.31 13 .639-3.152a2.6 2.6 0 0 0-.02-1.11l-.909-3.79a2 2 0 0 0-1.395-1.457l-.622-.178V8.55a.5.5 0 0 1-.688.464l-1.699-.682a.894.894 0 0 0-.998 1.432l1.243 1.367L8.9 13" stroke-width="1"/></g></svg>'},71266:function(){},71275:function(e,t,n){!function(e){"use strict";function t(e){var t=e.Pos;function n(e,n){var i=e.state.vim;if(!i||i.insertMode)return n.head;var r=i.sel.head;return r?i.visualBlock&&n.head.line!=r.line?void 0:n.from()!=n.anchor||n.empty()||n.head.line!=r.line||n.head.ch==r.ch?n.head:new t(n.head.line,n.head.ch-1):n.head}var i=[{keys:"<Left>",type:"keyToKey",toKeys:"h"},{keys:"<Right>",type:"keyToKey",toKeys:"l"},{keys:"<Up>",type:"keyToKey",toKeys:"k"},{keys:"<Down>",type:"keyToKey",toKeys:"j"},{keys:"g<Up>",type:"keyToKey",toKeys:"gk"},{keys:"g<Down>",type:"keyToKey",toKeys:"gj"},{keys:"<Space>",type:"keyToKey",toKeys:"l"},{keys:"<BS>",type:"keyToKey",toKeys:"h",context:"normal"},{keys:"<Del>",type:"keyToKey",toKeys:"x",context:"normal"},{keys:"<C-Space>",type:"keyToKey",toKeys:"W"},{keys:"<C-BS>",type:"keyToKey",toKeys:"B",context:"normal"},{keys:"<S-Space>",type:"keyToKey",toKeys:"w"},{keys:"<S-BS>",type:"keyToKey",toKeys:"b",context:"normal"},{keys:"<C-n>",type:"keyToKey",toKeys:"j"},{keys:"<C-p>",type:"keyToKey",toKeys:"k"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"<Home>",type:"keyToKey",toKeys:"0"},{keys:"<End>",type:"keyToKey",toKeys:"$"},{keys:"<PageUp>",type:"keyToKey",toKeys:"<C-b>"},{keys:"<PageDown>",type:"keyToKey",toKeys:"<C-f>"},{keys:"<CR>",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"<Ins>",type:"keyToKey",toKeys:"i",context:"normal"},{keys:"<Ins>",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"<C-f>",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"<C-b>",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"<C-d>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"<C-u>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"g$",type:"motion",motion:"moveToEndOfDisplayLine"},{keys:"g^",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"g0",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'<character>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`<character>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"gn",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!0}},{keys:"gN",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!1}},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"<C-u>",type:"operatorMotion",operator:"delete",motion:"moveToStartOfLine",context:"insert"},{keys:"<C-w>",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"<C-w>",type:"idle",context:"normal"},{keys:"<C-i>",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"<C-o>",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"<C-e>",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"<C-y>",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"gi",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"lastEdit"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"gI",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"bol"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"<C-v>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"<C-q>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"gJ",type:"action",action:"joinLines",actionArgs:{keepSpaces:!0},isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r<character>",type:"action",action:"replace",isEdit:!0},{keys:"@<character>",type:"action",action:"replayMacro"},{keys:"q<character>",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0},context:"normal"},{keys:"R",type:"operator",operator:"change",operatorArgs:{linewise:!0,fullLine:!0},context:"visual",exitVisualBlock:!0},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"<C-r>",type:"action",action:"redo"},{keys:"m<character>",type:"action",action:"setMark"},{keys:'"<character>',type:"action",action:"setRegister"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z<CR>",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"<C-a>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"<C-x>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"<C-t>",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"<C-d>",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a<character>",type:"motion",motion:"textObjectManipulation"},{keys:"i<character>",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}],r=i.length,o=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"unmap"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"vglobal",shortName:"v"},{name:"global",shortName:"g"}];function a(t){t.setOption("disableInput",!0),t.setOption("showCursorWhenSelecting",!1),e.signal(t,"vim-mode-change",{mode:"normal"}),t.on("cursorActivity",Rt),q(t),e.on(t.getInputField(),"paste",f(t))}function s(t){t.setOption("disableInput",!1),t.off("cursorActivity",Rt),e.off(t.getInputField(),"paste",f(t)),t.state.vim=null,bt&&clearTimeout(bt)}function l(t,n){this==e.keyMap.vim&&(t.options.$customCursor=null,e.rmClass(t.getWrapperElement(),"cm-fat-cursor")),n&&n.attach==c||s(t)}function c(t,i){this==e.keyMap.vim&&(t.curOp&&(t.curOp.selectionChanged=!0),t.options.$customCursor=n,e.addClass(t.getWrapperElement(),"cm-fat-cursor")),i&&i.attach==c||a(t)}function u(t,n){if(n){if(this[t])return this[t];var i=h(t);if(!i)return!1;var r=z.findKey(n,i);return"function"==typeof r&&e.signal(n,"vim-keypress",i),r}}e.defineOption("vimMode",!1,function(t,n,i){n&&"vim"!=t.getOption("keyMap")?t.setOption("keyMap","vim"):!n&&i!=e.Init&&/^vim/.test(t.getOption("keyMap"))&&t.setOption("keyMap","default")});var d={Shift:"S",Ctrl:"C",Alt:"A",Cmd:"D",Mod:"A",CapsLock:""},p={Enter:"CR",Backspace:"BS",Delete:"Del",Insert:"Ins"};function h(e){if("'"==e.charAt(0))return e.charAt(1);var t=e.split(/-(?!$)/),n=t[t.length-1];if(1==t.length&&1==t[0].length)return!1;if(2==t.length&&"Shift"==t[0]&&1==n.length)return!1;for(var i=!1,r=0;r<t.length;r++){var o=t[r];o in d?t[r]=d[o]:i=!0,o in p&&(t[r]=p[o])}return!!i&&(T(n)&&(t[t.length-1]=n.toLowerCase()),"<"+t.join("-")+">")}function f(e){var t=e.state.vim;return t.onPasteFn||(t.onPasteFn=function(){t.insertMode||(e.setCursor(se(e.getCursor(),0,1)),ie.enterInsertMode(e,{},t))}),t.onPasteFn}var m=/[\d]/,g=[e.isWordChar,function(t){return t&&!e.isWordChar(t)&&!/\s/.test(t)}],v=[function(e){return/\S/.test(e)}];function y(e,t){for(var n=[],i=e;i<e+t;i++)n.push(String.fromCharCode(i));return n}var b,k=y(65,26),w=y(97,26),_=y(48,10),C=[].concat(k,w,_,["<",">"]),x=[].concat(k,w,_,["-",'"',".",":","_","/"]);try{b=new RegExp("^[\\p{Lu}]$","u")}catch(e){b=/^[A-Z]$/}function S(e,t){return t>=e.firstLine()&&t<=e.lastLine()}function E(e){return/^[a-z]$/.test(e)}function A(e){return-1!="()[]{}".indexOf(e)}function D(e){return m.test(e)}function T(e){return b.test(e)}function I(e){return/^\s*$/.test(e)}function O(e){return-1!=".?!".indexOf(e)}function P(e,t){for(var n=0;n<t.length;n++)if(t[n]==e)return!0;return!1}var F={};function $(e,t,n,i,r){if(void 0===t&&!r)throw Error("defaultValue is required unless callback is provided");if(n||(n="string"),F[e]={type:n,defaultValue:t,callback:r},i)for(var o=0;o<i.length;o++)F[i[o]]=F[e];t&&M(e,t)}function M(e,t,n,i){var r=F[e],o=(i=i||{}).scope;if(!r)return new Error("Unknown option: "+e);if("boolean"==r.type){if(t&&!0!==t)return new Error("Invalid argument: "+e+"="+t);!1!==t&&(t=!0)}r.callback?("local"!==o&&r.callback(t,void 0),"global"!==o&&n&&r.callback(t,n)):("local"!==o&&(r.value="boolean"==r.type?!!t:t),"global"!==o&&n&&(n.state.vim.options[e]={value:t}))}function L(e,t,n){var i=F[e],r=(n=n||{}).scope;if(!i)return new Error("Unknown option: "+e);if(i.callback){var o=t&&i.callback(void 0,t);return"global"!==r&&void 0!==o?o:"local"!==r?i.callback():void 0}return((o="global"!==r&&t&&t.state.vim.options[e])||"local"!==r&&i||{}).value}$("filetype",void 0,"string",["ft"],function(e,t){if(void 0!==t){if(void 0===e)return"null"==(n=t.getOption("mode"))?"":n;var n=""==e?"null":e;t.setOption("mode",n)}});var N,j,B=function(){var e=100,t=-1,n=0,i=0,r=new Array(e);function o(o,a,s){var l=r[t%e];function c(n){var i=++t%e,a=r[i];a&&a.clear(),r[i]=o.setBookmark(n)}if(l){var u=l.find();u&&!he(u,a)&&c(a)}else c(a);c(s),n=t,(i=t-e+1)<0&&(i=0)}function a(o,a){(t+=a)>n?t=n:t<i&&(t=i);var s=r[(e+t)%e];if(s&&!s.find()){var l,c=a>0?1:-1,u=o.getCursor();do{if((s=r[(e+(t+=c))%e])&&(l=s.find())&&!he(u,l))break}while(t<n&&t>i)}return s}function s(e,n){var i=t,r=a(e,n);return t=i,r&&r.find()}return{cachedCursor:void 0,add:o,find:s,move:a}},R=function(e){return e?{changes:e.changes,expectCursorActivityForChange:e.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};function V(){this.latestRegister=void 0,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=void 0,this.lastInsertModeChanges=R()}function q(e){return e.state.vim||(e.state.vim={inputState:new U,lastEditInputState:void 0,lastEditActionCommand:void 0,lastHPos:-1,lastHSPos:-1,lastMotion:null,marks:{},insertMode:!1,insertModeRepeat:void 0,visualMode:!1,visualLine:!1,visualBlock:!1,lastSelection:null,lastPastedText:null,sel:{},options:{}}),e.state.vim}function H(){for(var e in N={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:B(),macroModeState:new V,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new Q({}),searchHistoryController:new Y,exCommandHistoryController:new Y},F){var t=F[e];t.value=t.defaultValue}}V.prototype={exitMacroRecordMode:function(){var e=N.macroModeState;e.onRecordingDone&&e.onRecordingDone(),e.onRecordingDone=void 0,e.isRecording=!1},enterMacroRecordMode:function(e,t){var n=N.registerController.getRegister(t);if(n){if(n.clear(),this.latestRegister=t,e.openDialog){var i=pt("span",{class:"cm-vim-message"},"recording @"+t);this.onRecordingDone=e.openDialog(i,null,{bottom:!0})}this.isRecording=!0}}};var z={enterVimMode:a,buildKeyMap:function(){},getRegisterController:function(){return N.registerController},resetVimGlobalState_:H,getVimGlobalState_:function(){return N},maybeInitVimState_:q,suppressErrorLogging:!1,InsertModeKey:qt,map:function(e,t,n){It.map(e,t,n)},unmap:function(e,t){return It.unmap(e,t)},noremap:function(e,t,n){function o(e){return e?[e]:["normal","insert","visual"]}for(var a=o(n),s=i.length,l=s-r;l<s&&a.length;l++){var c=i[l];if(!(c.keys!=t||n&&c.context&&c.context!==n||"ex"===c.type.substr(0,2)||"key"===c.type.substr(0,3))){var u={};for(var d in c)u[d]=c[d];u.keys=e,n&&!u.context&&(u.context=n),this._mapCommand(u);var p=o(c.context);a=a.filter(function(e){return-1===p.indexOf(e)})}}},mapclear:function(e){var t=i.length,n=r,o=i.slice(0,t-n);if(i=i.slice(t-n),e)for(var a=o.length-1;a>=0;a--){var s=o[a];if(e!==s.context)if(s.context)this._mapCommand(s);else{var l=["normal","insert","visual"];for(var c in l)if(l[c]!==e){var u={};for(var d in s)u[d]=s[d];u.context=l[c],this._mapCommand(u)}}}},setOption:M,getOption:L,defineOption:$,defineEx:function(e,t,n){if(t){if(0!==e.indexOf(t))throw new Error('(Vim.defineEx) "'+t+'" is not a prefix of "'+e+'", command not registered')}else t=e;Tt[e]=n,It.commandMap_[t]={name:e,shortName:t,type:"api"}},handleKey:function(e,t,n){var i=this.findKey(e,t,n);if("function"==typeof i)return i()},multiSelectHandleKey:Gt,findKey:function(e,t,n){var r,o=q(e);function a(){var i=N.macroModeState;if(i.isRecording){if("q"==t)return i.exitMacroRecordMode(),W(e),!0;"mapping"!=n&&Lt(i,t)}}function s(){if("<Esc>"==t){if(o.visualMode)Oe(e);else{if(!o.insertMode)return;Pt(e)}return W(e),!0}}function l(n){for(var i;n;)i=/<\w+-.+?>|<\w+>|./.exec(n),t=i[0],n=n.substring(i.index+t.length),z.handleKey(e,t,"mapping")}function c(){if(s())return!0;for(var n=o.inputState.keyBuffer=o.inputState.keyBuffer+t,r=1==t.length,a=J.matchCommand(n,i,o.inputState,"insert");n.length>1&&"full"!=a.type;){n=o.inputState.keyBuffer=n.slice(1);var l=J.matchCommand(n,i,o.inputState,"insert");"none"!=l.type&&(a=l)}if("none"==a.type)return W(e),!1;if("partial"==a.type)return j&&window.clearTimeout(j),j=window.setTimeout(function(){o.insertMode&&o.inputState.keyBuffer&&W(e)},L("insertModeEscKeysTimeout")),!r;if(j&&window.clearTimeout(j),r){for(var c=e.listSelections(),u=0;u<c.length;u++){var d=c[u].head;e.replaceRange("",se(d,0,-(n.length-1)),d,"+input")}N.macroModeState.lastInsertModeChanges.changes.pop()}return W(e),a.command}function u(){if(a()||s())return!0;var n=o.inputState.keyBuffer=o.inputState.keyBuffer+t;if(/^[1-9]\d*$/.test(n))return!0;var r=/^(\d*)(.*)$/.exec(n);if(!r)return W(e),!1;var l=o.visualMode?"visual":"normal",c=r[2]||r[1];o.inputState.operatorShortcut&&o.inputState.operatorShortcut.slice(-1)==c&&(c=o.inputState.operatorShortcut);var u=J.matchCommand(c,i,o.inputState,l);return"none"==u.type?(W(e),!1):"partial"==u.type||("clear"==u.type?(W(e),!0):(o.inputState.keyBuffer="",(r=/^(\d*)(.*)$/.exec(n))[1]&&"0"!=r[1]&&o.inputState.pushRepeatDigit(r[1]),u.command))}return!1===(r=o.insertMode?c():u())?o.insertMode||1!==t.length?void 0:function(){return!0}:!0===r?function(){return!0}:function(){return e.operation(function(){e.curOp.isVimOp=!0;try{"keyToKey"==r.type?l(r.toKeys):J.processCommand(e,o,r)}catch(t){throw e.state.vim=void 0,q(e),z.suppressErrorLogging||console.log(t),t}return!0})}},handleEx:function(e,t){It.processCommand(e,t)},defineMotion:Z,defineAction:re,defineOperator:ne,mapCommand:$t,_mapCommand:Ft,defineRegister:K,exitVisualMode:Oe,exitInsertMode:Pt};function U(){this.prefixRepeat=[],this.motionRepeat=[],this.operator=null,this.operatorArgs=null,this.motion=null,this.motionArgs=null,this.keyBuffer=[],this.registerName=null}function W(t,n){t.state.vim.inputState=new U,e.signal(t,"vim-command-done",n)}function G(e,t,n){this.clear(),this.keyBuffer=[e||""],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!!t,this.blockwise=!!n}function K(e,t){var n=N.registerController.registers;if(!e||1!=e.length)throw Error("Register name must be 1 character");if(n[e])throw Error("Register already defined "+e);n[e]=t,x.push(e)}function Q(e){this.registers=e,this.unnamedRegister=e['"']=new G,e["."]=new G,e[":"]=new G,e["/"]=new G}function Y(){this.historyBuffer=[],this.iterator=0,this.initialPrefix=null}U.prototype.pushRepeatDigit=function(e){this.operator?this.motionRepeat=this.motionRepeat.concat(e):this.prefixRepeat=this.prefixRepeat.concat(e)},U.prototype.getRepeat=function(){var e=0;return(this.prefixRepeat.length>0||this.motionRepeat.length>0)&&(e=1,this.prefixRepeat.length>0&&(e*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(e*=parseInt(this.motionRepeat.join(""),10))),e},G.prototype={setText:function(e,t,n){this.keyBuffer=[e||""],this.linewise=!!t,this.blockwise=!!n},pushText:function(e,t){t&&(this.linewise||this.keyBuffer.push("\n"),this.linewise=!0),this.keyBuffer.push(e)},pushInsertModeChanges:function(e){this.insertModeChanges.push(R(e))},pushSearchQuery:function(e){this.searchQueries.push(e)},clear:function(){this.keyBuffer=[],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!1},toString:function(){return this.keyBuffer.join("")}},Q.prototype={pushText:function(e,t,n,i,r){if("_"!==e){i&&"\n"!==n.charAt(n.length-1)&&(n+="\n");var o=this.isValidRegister(e)?this.getRegister(e):null;if(o)T(e)?o.pushText(n,i):o.setText(n,i,r),this.unnamedRegister.setText(o.toString(),i);else{switch(t){case"yank":this.registers[0]=new G(n,i,r);break;case"delete":case"change":-1==n.indexOf("\n")?this.registers["-"]=new G(n,i):(this.shiftNumericRegisters_(),this.registers[1]=new G(n,i))}this.unnamedRegister.setText(n,i,r)}}},getRegister:function(e){return this.isValidRegister(e)?(e=e.toLowerCase(),this.registers[e]||(this.registers[e]=new G),this.registers[e]):this.unnamedRegister},isValidRegister:function(e){return e&&P(e,x)},shiftNumericRegisters_:function(){for(var e=9;e>=2;e--)this.registers[e]=this.getRegister(""+(e-1))}},Y.prototype={nextMatch:function(e,t){var n=this.historyBuffer,i=t?-1:1;null===this.initialPrefix&&(this.initialPrefix=e);for(var r=this.iterator+i;t?r>=0:r<n.length;r+=i)for(var o=n[r],a=0;a<=o.length;a++)if(this.initialPrefix==o.substring(0,a))return this.iterator=r,o;return r>=n.length?(this.iterator=n.length,this.initialPrefix):r<0?e:void 0},pushInput:function(e){var t=this.historyBuffer.indexOf(e);t>-1&&this.historyBuffer.splice(t,1),e.length&&this.historyBuffer.push(e)},reset:function(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}};var J={matchCommand:function(e,t,n,i){var r,o=le(e,t,i,n);if(!o.full&&!o.partial)return{type:"none"};if(!o.full&&o.partial)return{type:"partial"};for(var a=0;a<o.full.length;a++){var s=o.full[a];r||(r=s)}if("<character>"==r.keys.slice(-11)){var l=ue(e);if(!l||l.length>1)return{type:"clear"};n.selectedCharacter=l}return{type:"full",command:r}},processCommand:function(e,t,n){switch(t.inputState.repeatOverride=n.repeatOverride,n.type){case"motion":this.processMotion(e,t,n);break;case"operator":this.processOperator(e,t,n);break;case"operatorMotion":this.processOperatorMotion(e,t,n);break;case"action":this.processAction(e,t,n);break;case"search":this.processSearch(e,t,n);break;case"ex":case"keyToEx":this.processEx(e,t,n)}},processMotion:function(e,t,n){t.inputState.motion=n.motion,t.inputState.motionArgs=ae(n.motionArgs),this.evalInput(e,t)},processOperator:function(e,t,n){var i=t.inputState;if(i.operator){if(i.operator==n.operator)return i.motion="expandToLine",i.motionArgs={linewise:!0},void this.evalInput(e,t);W(e)}i.operator=n.operator,i.operatorArgs=ae(n.operatorArgs),n.keys.length>1&&(i.operatorShortcut=n.keys),n.exitVisualBlock&&(t.visualBlock=!1,De(e)),t.visualMode&&this.evalInput(e,t)},processOperatorMotion:function(e,t,n){var i=t.visualMode,r=ae(n.operatorMotionArgs);r&&i&&r.visualLine&&(t.visualLine=!0),this.processOperator(e,t,n),i||this.processMotion(e,t,n)},processAction:function(e,t,n){var i=t.inputState,r=i.getRepeat(),o=!!r,a=ae(n.actionArgs)||{};i.selectedCharacter&&(a.selectedCharacter=i.selectedCharacter),n.operator&&this.processOperator(e,t,n),n.motion&&this.processMotion(e,t,n),(n.motion||n.operator)&&this.evalInput(e,t),a.repeat=r||1,a.repeatIsExplicit=o,a.registerName=i.registerName,W(e),t.lastMotion=null,n.isEdit&&this.recordLastEdit(t,i,n),ie[n.action](e,a,t)},processSearch:function(t,n,i){if(t.getSearchCursor){var r=i.searchArgs.forward,o=i.searchArgs.wholeWordOnly;tt(t).setReversed(!r);var a=r?"/":"?",s=tt(t).getQuery(),l=t.getScrollInfo();switch(i.searchArgs.querySrc){case"prompt":var c=N.macroModeState;c.isPlaying?h(p=c.replaySearchQueries.shift(),!0,!1):mt(t,{onClose:f,prefix:a,desc:"(JavaScript regexp)",onKeyUp:m,onKeyDown:g});break;case"wordUnderCursor":var u=Me(t,!1,!0,!1,!0),d=!0;if(u||(u=Me(t,!1,!0,!1,!1),d=!1),!u)return;var p=t.getLine(u.start.line).substring(u.start.ch,u.end.ch);p=d&&o?"\\b"+p+"\\b":ke(p),N.jumpList.cachedCursor=t.getCursor(),t.setCursor(u.start),h(p,!0,!1)}}function h(e,r,o){N.searchHistoryController.pushInput(e),N.searchHistoryController.reset();try{vt(t,e,r,o)}catch(n){return ht(t,"Invalid regex: "+e),void W(t)}J.processMotion(t,n,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:i.searchArgs.toJumplist}})}function f(e){t.scrollTo(l.left,l.top),h(e,!0,!0);var n=N.macroModeState;n.isRecording&&jt(n,e)}function m(n,i,o){var a,s,c,u=e.keyName(n);"Up"==u||"Down"==u?(a="Up"==u,s=n.target?n.target.selectionEnd:0,o(i=N.searchHistoryController.nextMatch(i,a)||""),s&&n.target&&(n.target.selectionEnd=n.target.selectionStart=Math.min(s,n.target.value.length))):"Left"!=u&&"Right"!=u&&"Ctrl"!=u&&"Alt"!=u&&"Shift"!=u&&N.searchHistoryController.reset();try{c=vt(t,i,!0,!0)}catch(n){}c?t.scrollIntoView(wt(t,!r,c),30):(Ct(t),t.scrollTo(l.left,l.top))}function g(n,i,r){var o=e.keyName(n);"Esc"==o||"Ctrl-C"==o||"Ctrl-["==o||"Backspace"==o&&""==i?(N.searchHistoryController.pushInput(i),N.searchHistoryController.reset(),vt(t,s),Ct(t),t.scrollTo(l.left,l.top),e.e_stop(n),W(t),r(),t.focus()):"Up"==o||"Down"==o?e.e_stop(n):"Ctrl-U"==o&&(e.e_stop(n),r(""))}},processEx:function(t,n,i){function r(e){N.exCommandHistoryController.pushInput(e),N.exCommandHistoryController.reset(),It.processCommand(t,e),W(t)}function o(n,i,r){var o,a,s=e.keyName(n);("Esc"==s||"Ctrl-C"==s||"Ctrl-["==s||"Backspace"==s&&""==i)&&(N.exCommandHistoryController.pushInput(i),N.exCommandHistoryController.reset(),e.e_stop(n),W(t),r(),t.focus()),"Up"==s||"Down"==s?(e.e_stop(n),o="Up"==s,a=n.target?n.target.selectionEnd:0,r(i=N.exCommandHistoryController.nextMatch(i,o)||""),a&&n.target&&(n.target.selectionEnd=n.target.selectionStart=Math.min(a,n.target.value.length))):"Ctrl-U"==s?(e.e_stop(n),r("")):"Left"!=s&&"Right"!=s&&"Ctrl"!=s&&"Alt"!=s&&"Shift"!=s&&N.exCommandHistoryController.reset()}"keyToEx"==i.type?It.processCommand(t,i.exArgs.input):n.visualMode?mt(t,{onClose:r,prefix:":",value:"'<,'>",onKeyDown:o,selectValueOnOpen:!1}):mt(t,{onClose:r,prefix:":",onKeyDown:o})},evalInput:function(e,n){var i,r,o,a=n.inputState,s=a.motion,l=a.motionArgs||{},c=a.operator,u=a.operatorArgs||{},d=a.registerName,p=n.sel,h=pe(n.visualMode?oe(e,p.head):e.getCursor("head")),f=pe(n.visualMode?oe(e,p.anchor):e.getCursor("anchor")),m=pe(h),g=pe(f);if(c&&this.recordLastEdit(n,a),(o=void 0!==a.repeatOverride?a.repeatOverride:a.getRepeat())>0&&l.explicitRepeat?l.repeatIsExplicit=!0:(l.noRepeat||!l.explicitRepeat&&0===o)&&(o=1,l.repeatIsExplicit=!1),a.selectedCharacter&&(l.selectedCharacter=u.selectedCharacter=a.selectedCharacter),l.repeat=o,W(e),s){var v=X[s](e,h,l,n,a);if(n.lastMotion=X[s],!v)return;if(l.toJumplist){var y=N.jumpList,b=y.cachedCursor;b?(Ne(e,b,v),delete y.cachedCursor):Ne(e,h,v)}v instanceof Array?(r=v[0],i=v[1]):i=v,i||(i=pe(h)),n.visualMode?(n.visualBlock&&i.ch===1/0||(i=oe(e,i)),r&&(r=oe(e,r)),r=r||g,p.anchor=r,p.head=i,De(e),Ge(e,n,"<",fe(r,i)?r:i),Ge(e,n,">",fe(r,i)?i:r)):c||(i=oe(e,i),e.setCursor(i.line,i.ch))}if(c){if(u.lastSel){r=g;var k=u.lastSel,w=Math.abs(k.head.line-k.anchor.line),_=Math.abs(k.head.ch-k.anchor.ch);i=k.visualLine?new t(g.line+w,g.ch):k.visualBlock?new t(g.line+w,g.ch+_):k.head.line==k.anchor.line?new t(g.line,g.ch+_):new t(g.line+w,g.ch),n.visualMode=!0,n.visualLine=k.visualLine,n.visualBlock=k.visualBlock,p=n.sel={anchor:r,head:i},De(e)}else n.visualMode&&(u.lastSel={anchor:pe(p.anchor),head:pe(p.head),visualBlock:n.visualBlock,visualLine:n.visualLine});var C,x,S,E,A;if(n.visualMode){if(C=me(p.head,p.anchor),x=ge(p.head,p.anchor),S=n.visualLine||u.linewise,A=Te(e,{anchor:C,head:x},E=n.visualBlock?"block":S?"line":"char"),S){var D=A.ranges;if("block"==E)for(var T=0;T<D.length;T++)D[T].head.ch=ye(e,D[T].head.line);else"line"==E&&(D[0].head=new t(D[0].head.line+1,0))}}else{if(C=pe(r||g),fe(x=pe(i||m),C)){var I=C;C=x,x=I}(S=l.linewise||u.linewise)?Fe(e,C,x):l.forward&&Pe(e,C,x),A=Te(e,{anchor:C,head:x},E="char",!l.inclusive||S)}e.setSelections(A.ranges,A.primary),n.lastMotion=null,u.repeat=o,u.registerName=d,u.linewise=S;var O=te[c](e,u,A.ranges,g,i);n.visualMode&&Oe(e,null!=O),O&&e.setCursor(O)}},recordLastEdit:function(e,t,n){var i=N.macroModeState;i.isPlaying||(e.lastEditInputState=t,e.lastEditActionCommand=n,i.lastInsertModeChanges.changes=[],i.lastInsertModeChanges.expectCursorActivityForChange=!1,i.lastInsertModeChanges.visualBlock=e.visualBlock?e.sel.head.line-e.sel.anchor.line:0)}},X={moveToTopLine:function(e,n,i){var r=St(e).top+i.repeat-1;return new t(r,$e(e.getLine(r)))},moveToMiddleLine:function(e){var n=St(e),i=Math.floor(.5*(n.top+n.bottom));return new t(i,$e(e.getLine(i)))},moveToBottomLine:function(e,n,i){var r=St(e).bottom-i.repeat+1;return new t(r,$e(e.getLine(r)))},expandToLine:function(e,n,i){return new t(n.line+i.repeat-1,1/0)},findNext:function(e,t,n){var i=tt(e),r=i.getQuery();if(r){var o=!n.forward;return o=i.isReversed()?!o:o,kt(e,r),wt(e,o,r,n.repeat)}},findAndSelectNextInclusive:function(n,i,r,o,a){var s=tt(n),l=s.getQuery();if(l){var c=!r.forward,u=_t(n,c=s.isReversed()?!c:c,l,r.repeat,o);if(u){if(a.operator)return u;var d=u[0],p=new t(u[1].line,u[1].ch-1);if(o.visualMode){(o.visualLine||o.visualBlock)&&(o.visualLine=!1,o.visualBlock=!1,e.signal(n,"vim-mode-change",{mode:"visual",subMode:""}));var h=o.sel.anchor;if(h)return s.isReversed()?r.forward?[h,d]:[h,p]:r.forward?[h,p]:[h,d]}else o.visualMode=!0,o.visualLine=!1,o.visualBlock=!1,e.signal(n,"vim-mode-change",{mode:"visual",subMode:""});return c?[p,d]:[d,p]}}},goToMark:function(e,t,n,i){var r=Et(e,i,n.selectedCharacter);return r?n.linewise?{line:r.line,ch:$e(e.getLine(r.line))}:r:null},moveToOtherHighlightedEnd:function(e,n,i,r){if(r.visualBlock&&i.sameLine){var o=r.sel;return[oe(e,new t(o.anchor.line,o.head.ch)),oe(e,new t(o.head.line,o.anchor.ch))]}return[r.sel.head,r.sel.anchor]},jumpToMark:function(e,n,i,r){for(var o=n,a=0;a<i.repeat;a++){var s=o;for(var l in r.marks)if(E(l)){var c=r.marks[l].find();if(!((i.forward?fe(c,s):fe(s,c))||i.linewise&&c.line==s.line)){var u=he(s,o),d=i.forward?ve(s,c,o):ve(o,c,s);(u||d)&&(o=c)}}}return i.linewise&&(o=new t(o.line,$e(e.getLine(o.line)))),o},moveByCharacters:function(e,n,i){var r=n,o=i.repeat,a=i.forward?r.ch+o:r.ch-o;return new t(r.line,a)},moveByLines:function(e,n,i,r){var o=n,a=o.ch;switch(r.lastMotion){case this.moveByLines:case this.moveByDisplayLines:case this.moveByScroll:case this.moveToColumn:case this.moveToEol:a=r.lastHPos;break;default:r.lastHPos=a}var s=i.repeat+(i.repeatOffset||0),l=i.forward?o.line+s:o.line-s,c=e.firstLine(),u=e.lastLine(),d=e.findPosV(o,i.forward?s:-s,"line",r.lastHSPos);return(i.forward?d.line>l:d.line<l)&&(l=d.line,a=d.ch),l<c&&o.line==c?this.moveToStartOfLine(e,n,i,r):l>u&&o.line==u?ze(e,n,i,r,!0):(i.toFirstChar&&(a=$e(e.getLine(l)),r.lastHPos=a),r.lastHSPos=e.charCoords(new t(l,a),"div").left,new t(l,a))},moveByDisplayLines:function(e,n,i,r){var o=n;switch(r.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:r.lastHSPos=e.charCoords(o,"div").left}var a=i.repeat;if((l=e.findPosV(o,i.forward?a:-a,"line",r.lastHSPos)).hitSide)if(i.forward)var s={top:e.charCoords(l,"div").top+8,left:r.lastHSPos},l=e.coordsChar(s,"div");else{var c=e.charCoords(new t(e.firstLine(),0),"div");c.left=r.lastHSPos,l=e.coordsChar(c,"div")}return r.lastHPos=l.ch,l},moveByPage:function(e,t,n){var i=t,r=n.repeat;return e.findPosV(i,n.forward?r:-r,"page")},moveByParagraph:function(e,t,n){var i=n.forward?1:-1;return Qe(e,t,n.repeat,i)},moveBySentence:function(e,t,n){var i=n.forward?1:-1;return Je(e,t,n.repeat,i)},moveByScroll:function(e,t,n,i){var r=e.getScrollInfo(),o=null,a=n.repeat;a||(a=r.clientHeight/(2*e.defaultTextHeight()));var s=e.charCoords(t,"local");if(n.repeat=a,!(o=X.moveByDisplayLines(e,t,n,i)))return null;var l=e.charCoords(o,"local");return e.scrollTo(null,r.top+l.top-s.top),o},moveByWords:function(e,t,n){return He(e,t,n.repeat,!!n.forward,!!n.wordEnd,!!n.bigWord)},moveTillCharacter:function(e,t,n){var i=Ue(e,n.repeat,n.forward,n.selectedCharacter),r=n.forward?-1:1;return je(r,n),i?(i.ch+=r,i):null},moveToCharacter:function(e,t,n){var i=n.repeat;return je(0,n),Ue(e,i,n.forward,n.selectedCharacter)||t},moveToSymbol:function(e,t,n){return Ve(e,n.repeat,n.forward,n.selectedCharacter)||t},moveToColumn:function(e,t,n,i){var r=n.repeat;return i.lastHPos=r-1,i.lastHSPos=e.charCoords(t,"div").left,We(e,r)},moveToEol:function(e,t,n,i){return ze(e,t,n,i,!1)},moveToFirstNonWhiteSpaceCharacter:function(e,n){var i=n;return new t(i.line,$e(e.getLine(i.line)))},moveToMatchedSymbol:function(e,n){for(var i,r=n,o=r.line,a=r.ch,s=e.getLine(o);a<s.length;a++)if((i=s.charAt(a))&&A(i)){var l=e.getTokenTypeAt(new t(o,a+1));if("string"!==l&&"comment"!==l)break}if(a<s.length){var c="<"===a||">"===a?/[(){}[\]<>]/:/[(){}[\]]/;return e.findMatchingBracket(new t(o,a),{bracketRegex:c}).to}return r},moveToStartOfLine:function(e,n){return new t(n.line,0)},moveToLineOrEdgeOfDocument:function(e,n,i){var r=i.forward?e.lastLine():e.firstLine();return i.repeatIsExplicit&&(r=i.repeat-e.getOption("firstLineNumber")),new t(r,$e(e.getLine(r)))},moveToStartOfDisplayLine:function(e){return e.execCommand("goLineLeft"),e.getCursor()},moveToEndOfDisplayLine:function(e){e.execCommand("goLineRight");var t=e.getCursor();return"before"==t.sticky&&t.ch--,t},textObjectManipulation:function(e,t,n,i){var r={"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"},o={"'":!0,'"':!0,"`":!0},a=n.selectedCharacter;"b"==a?a="(":"B"==a&&(a="{");var s,l=!n.textObjectInner;if(r[a])s=Xe(e,t,a,l);else if(o[a])s=Ze(e,t,a,l);else if("W"===a)s=Me(e,l,!0,!0);else if("w"===a)s=Me(e,l,!0,!1);else if("p"===a)if(s=Qe(e,t,n.repeat,0,l),n.linewise=!0,i.visualMode)i.visualLine||(i.visualLine=!0);else{var c=i.inputState.operatorArgs;c&&(c.linewise=!0),s.end.line--}else if("t"===a)s=Le(e,t,l);else{if("s"!==a)return null;var u=e.getLine(t.line);t.ch>0&&O(u[t.ch])&&(t.ch-=1);var d=Ye(e,t,n.repeat,1,l),p=Ye(e,t,n.repeat,-1,l);I(e.getLine(p.line)[p.ch])&&I(e.getLine(d.line)[d.ch-1])&&(p={line:p.line,ch:p.ch+1}),s={start:p,end:d}}return e.state.vim.visualMode?Ae(e,s.start,s.end):[s.start,s.end]},repeatLastCharacterSearch:function(e,t,n){var i=N.lastCharacterSearch,r=n.repeat,o=n.forward===i.forward,a=(i.increment?1:0)*(o?-1:1);e.moveH(-a,"char"),n.inclusive=!!o;var s=Ue(e,r,o,i.selectedCharacter);return s?(s.ch+=a,s):(e.moveH(a,"char"),t)}};function Z(e,t){X[e]=t}function ee(e,t){for(var n=[],i=0;i<t;i++)n.push(e);return n}var te={change:function(n,i,r){var o,a,s=n.state.vim,l=r[0].anchor,c=r[0].head;if(s.visualMode)if(i.fullLine)c.ch=Number.MAX_VALUE,c.line--,n.setSelection(l,c),a=n.getSelection(),n.replaceSelection(""),o=l;else{a=n.getSelection();var u=ee("",r.length);n.replaceSelections(u),o=me(r[0].head,r[0].anchor)}else{a=n.getRange(l,c);var d=s.lastEditInputState||{};if("moveByWords"==d.motion&&!I(a)){var p=/\s+$/.exec(a);p&&d.motionArgs&&d.motionArgs.forward&&(c=se(c,0,-p[0].length),a=a.slice(0,-p[0].length))}var h=new t(l.line-1,Number.MAX_VALUE),f=n.firstLine()==n.lastLine();c.line>n.lastLine()&&i.linewise&&!f?n.replaceRange("",h,c):n.replaceRange("",l,c),i.linewise&&(f||(n.setCursor(h),e.commands.newlineAndIndent(n)),l.ch=Number.MAX_VALUE),o=l}N.registerController.pushText(i.registerName,"change",a,i.linewise,r.length>1),ie.enterInsertMode(n,{head:o},n.state.vim)},delete:function(e,n,i){var r,o,a=e.state.vim;if(a.visualBlock){o=e.getSelection();var s=ee("",i.length);e.replaceSelections(s),r=me(i[0].head,i[0].anchor)}else{var l=i[0].anchor,c=i[0].head;n.linewise&&c.line!=e.firstLine()&&l.line==e.lastLine()&&l.line==c.line-1&&(l.line==e.firstLine()?l.ch=0:l=new t(l.line-1,ye(e,l.line-1))),o=e.getRange(l,c),e.replaceRange("",l,c),r=l,n.linewise&&(r=X.moveToFirstNonWhiteSpaceCharacter(e,l))}return N.registerController.pushText(n.registerName,"delete",o,n.linewise,a.visualBlock),oe(e,r)},indent:function(e,t,n){var i=e.state.vim;if(e.indentMore)for(var r=i.visualMode?t.repeat:1,o=0;o<r;o++)t.indentRight?e.indentMore():e.indentLess();else{var a=n[0].anchor.line,s=i.visualBlock?n[n.length-1].anchor.line:n[0].head.line;r=i.visualMode?t.repeat:1,t.linewise&&s--;for(var l=a;l<=s;l++)for(o=0;o<r;o++)e.indentLine(l,t.indentRight)}return X.moveToFirstNonWhiteSpaceCharacter(e,n[0].anchor)},indentAuto:function(e,t,n){return e.execCommand("indentAuto"),X.moveToFirstNonWhiteSpaceCharacter(e,n[0].anchor)},changeCase:function(e,t,n,i,r){for(var o=e.getSelections(),a=[],s=t.toLower,l=0;l<o.length;l++){var c=o[l],u="";if(!0===s)u=c.toLowerCase();else if(!1===s)u=c.toUpperCase();else for(var d=0;d<c.length;d++){var p=c.charAt(d);u+=T(p)?p.toLowerCase():p.toUpperCase()}a.push(u)}return e.replaceSelections(a),t.shouldMoveCursor?r:!e.state.vim.visualMode&&t.linewise&&n[0].anchor.line+1==n[0].head.line?X.moveToFirstNonWhiteSpaceCharacter(e,i):t.linewise?i:me(n[0].anchor,n[0].head)},yank:function(e,t,n,i){var r=e.state.vim,o=e.getSelection(),a=r.visualMode?me(r.sel.anchor,r.sel.head,n[0].head,n[0].anchor):i;return N.registerController.pushText(t.registerName,"yank",o,t.linewise,r.visualBlock),a}};function ne(e,t){te[e]=t}var ie={jumpListWalk:function(e,t,n){if(!n.visualMode){var i=t.repeat,r=t.forward,o=N.jumpList.move(e,r?i:-i),a=o?o.find():void 0;a=a||e.getCursor(),e.setCursor(a)}},scroll:function(e,t,n){if(!n.visualMode){var i=t.repeat||1,r=e.defaultTextHeight(),o=e.getScrollInfo().top,a=r*i,s=t.forward?o+a:o-a,l=pe(e.getCursor()),c=e.charCoords(l,"local");if(t.forward)s>c.top?(l.line+=(s-c.top)/r,l.line=Math.ceil(l.line),e.setCursor(l),c=e.charCoords(l,"local"),e.scrollTo(null,c.top)):e.scrollTo(null,s);else{var u=s+e.getScrollInfo().clientHeight;u<c.bottom?(l.line-=(c.bottom-u)/r,l.line=Math.floor(l.line),e.setCursor(l),c=e.charCoords(l,"local"),e.scrollTo(null,c.bottom-e.getScrollInfo().clientHeight)):e.scrollTo(null,s)}}},scrollToCursor:function(e,n){var i=e.getCursor().line,r=e.charCoords(new t(i,0),"local"),o=e.getScrollInfo().clientHeight,a=r.top;switch(n.position){case"center":a=r.bottom-o/2;break;case"bottom":var s=new t(i,e.getLine(i).length-1);a=a-o+(e.charCoords(s,"local").bottom-a)}e.scrollTo(null,a)},replayMacro:function(e,t,n){var i=t.selectedCharacter,r=t.repeat,o=N.macroModeState;for("@"==i?i=o.latestRegister:o.latestRegister=i;r--;)Mt(e,n,o,i)},enterMacroRecordMode:function(e,t){var n=N.macroModeState,i=t.selectedCharacter;N.registerController.isValidRegister(i)&&n.enterMacroRecordMode(e,i)},toggleOverwrite:function(t){t.state.overwrite?(t.toggleOverwrite(!1),t.setOption("keyMap","vim-insert"),e.signal(t,"vim-mode-change",{mode:"insert"})):(t.toggleOverwrite(!0),t.setOption("keyMap","vim-replace"),e.signal(t,"vim-mode-change",{mode:"replace"}))},enterInsertMode:function(n,i,r){if(!n.getOption("readOnly")){r.insertMode=!0,r.insertModeRepeat=i&&i.repeat||1;var o=i?i.insertAt:null,a=r.sel,s=i.head||n.getCursor("head"),l=n.listSelections().length;if("eol"==o)s=new t(s.line,ye(n,s.line));else if("bol"==o)s=new t(s.line,0);else if("charAfter"==o)s=se(s,0,1);else if("firstNonBlank"==o)s=X.moveToFirstNonWhiteSpaceCharacter(n,s);else if("startOfSelectedArea"==o){if(!r.visualMode)return;r.visualBlock?(s=new t(Math.min(a.head.line,a.anchor.line),Math.min(a.head.ch,a.anchor.ch)),l=Math.abs(a.head.line-a.anchor.line)+1):s=a.head.line<a.anchor.line?a.head:new t(a.anchor.line,0)}else if("endOfSelectedArea"==o){if(!r.visualMode)return;r.visualBlock?(s=new t(Math.min(a.head.line,a.anchor.line),Math.max(a.head.ch,a.anchor.ch)+1),l=Math.abs(a.head.line-a.anchor.line)+1):s=a.head.line>=a.anchor.line?se(a.head,0,1):new t(a.anchor.line,0)}else if("inplace"==o){if(r.visualMode)return}else"lastEdit"==o&&(s=At(n)||s);n.setOption("disableInput",!1),i&&i.replace?(n.toggleOverwrite(!0),n.setOption("keyMap","vim-replace"),e.signal(n,"vim-mode-change",{mode:"replace"})):(n.toggleOverwrite(!1),n.setOption("keyMap","vim-insert"),e.signal(n,"vim-mode-change",{mode:"insert"})),N.macroModeState.isPlaying||(n.on("change",Bt),e.on(n.getInputField(),"keydown",Ht)),r.visualMode&&Oe(n),Ce(n,s,l)}},toggleVisualMode:function(n,i,r){var o,a=i.repeat,s=n.getCursor();r.visualMode?r.visualLine^i.linewise||r.visualBlock^i.blockwise?(r.visualLine=!!i.linewise,r.visualBlock=!!i.blockwise,e.signal(n,"vim-mode-change",{mode:"visual",subMode:r.visualLine?"linewise":r.visualBlock?"blockwise":""}),De(n)):Oe(n):(r.visualMode=!0,r.visualLine=!!i.linewise,r.visualBlock=!!i.blockwise,o=oe(n,new t(s.line,s.ch+a-1)),r.sel={anchor:s,head:o},e.signal(n,"vim-mode-change",{mode:"visual",subMode:r.visualLine?"linewise":r.visualBlock?"blockwise":""}),De(n),Ge(n,r,"<",me(s,o)),Ge(n,r,">",ge(s,o)))},reselectLastSelection:function(t,n,i){var r=i.lastSelection;if(i.visualMode&&Ee(t,i),r){var o=r.anchorMark.find(),a=r.headMark.find();if(!o||!a)return;i.sel={anchor:o,head:a},i.visualMode=!0,i.visualLine=r.visualLine,i.visualBlock=r.visualBlock,De(t),Ge(t,i,"<",me(o,a)),Ge(t,i,">",ge(o,a)),e.signal(t,"vim-mode-change",{mode:"visual",subMode:i.visualLine?"linewise":i.visualBlock?"blockwise":""})}},joinLines:function(e,n,i){var r,o;if(i.visualMode){if(r=e.getCursor("anchor"),fe(o=e.getCursor("head"),r)){var a=o;o=r,r=a}o.ch=ye(e,o.line)-1}else{var s=Math.max(n.repeat,2);r=e.getCursor(),o=oe(e,new t(r.line+s-1,1/0))}for(var l=0,c=r.line;c<o.line;c++){l=ye(e,r.line),a=new t(r.line+1,ye(e,r.line+1));var u=e.getRange(r,a);u=n.keepSpaces?u.replace(/\n\r?/g,""):u.replace(/\n\s*/g," "),e.replaceRange(u,r,a)}var d=new t(r.line,l);i.visualMode&&Oe(e,!1),e.setCursor(d)},newLineAndEnterInsertMode:function(n,i,r){r.insertMode=!0;var o=pe(n.getCursor());o.line!==n.firstLine()||i.after?(o.line=i.after?o.line:o.line-1,o.ch=ye(n,o.line),n.setCursor(o),(e.commands.newlineAndIndentContinueComment||e.commands.newlineAndIndent)(n)):(n.replaceRange("\n",new t(n.firstLine(),0)),n.setCursor(n.firstLine(),0)),this.enterInsertMode(n,{repeat:i.repeat},r)},paste:function(e,n,i){var r=pe(e.getCursor()),o=N.registerController.getRegister(n.registerName);if(h=o.toString()){if(n.matchIndent){var a=e.getOption("tabSize"),s=function(e){var t=e.split("\t").length-1,n=e.split(" ").length-1;return t*a+1*n},l=e.getLine(e.getCursor().line),c=s(l.match(/^\s*/)[0]),u=h.replace(/\n$/,""),d=h!==u,p=s(h.match(/^\s*/)[0]),h=u.replace(/^\s*/gm,function(t){var n=c+(s(t)-p);if(n<0)return"";if(e.getOption("indentWithTabs")){var i=Math.floor(n/a);return Array(i+1).join("\t")}return Array(n+1).join(" ")});h+=d?"\n":""}n.repeat>1&&(h=Array(n.repeat+1).join(h));var f,m,g=o.linewise,v=o.blockwise;if(v){h=h.split("\n"),g&&h.pop();for(var y=0;y<h.length;y++)h[y]=""==h[y]?" ":h[y];r.ch+=n.after?1:0,r.ch=Math.min(ye(e,r.line),r.ch)}else g?i.visualMode?h=i.visualLine?h.slice(0,-1):"\n"+h.slice(0,h.length-1)+"\n":n.after?(h="\n"+h.slice(0,h.length-1),r.ch=ye(e,r.line)):r.ch=0:r.ch+=n.after?1:0;if(i.visualMode){var b;i.lastPastedText=h;var k=Se(e,i),w=k[0],_=k[1],C=e.getSelection(),x=e.listSelections(),S=new Array(x.length).join("1").split("1");i.lastSelection&&(b=i.lastSelection.headMark.find()),N.registerController.unnamedRegister.setText(C),v?(e.replaceSelections(S),_=new t(w.line+h.length-1,w.ch),e.setCursor(w),_e(e,_),e.replaceSelections(h),f=w):i.visualBlock?(e.replaceSelections(S),e.setCursor(w),e.replaceRange(h,w,w),f=w):(e.replaceRange(h,w,_),f=e.posFromIndex(e.indexFromPos(w)+h.length-1)),b&&(i.lastSelection.headMark=e.setBookmark(b)),g&&(f.ch=0)}else if(v){for(e.setCursor(r),y=0;y<h.length;y++){var E=r.line+y;E>e.lastLine()&&e.replaceRange("\n",new t(E,0)),ye(e,E)<r.ch&&we(e,E,r.ch)}e.setCursor(r),_e(e,new t(r.line+h.length-1,r.ch)),e.replaceSelections(h),f=r}else e.replaceRange(h,r),g&&n.after?f=new t(r.line+1,$e(e.getLine(r.line+1))):g&&!n.after?f=new t(r.line,$e(e.getLine(r.line))):!g&&n.after?(m=e.indexFromPos(r),f=e.posFromIndex(m+h.length-1)):(m=e.indexFromPos(r),f=e.posFromIndex(m+h.length));i.visualMode&&Oe(e,!1),e.setCursor(f)}},undo:function(t,n){t.operation(function(){de(t,e.commands.undo,n.repeat)(),t.setCursor(t.getCursor("anchor"))})},redo:function(t,n){de(t,e.commands.redo,n.repeat)()},setRegister:function(e,t,n){n.inputState.registerName=t.selectedCharacter},setMark:function(e,t,n){Ge(e,n,t.selectedCharacter,e.getCursor())},replace:function(n,i,r){var o,a,s=i.selectedCharacter,l=n.getCursor(),c=n.listSelections();if(r.visualMode)l=n.getCursor("start"),a=n.getCursor("end");else{var u=n.getLine(l.line);(o=l.ch+i.repeat)>u.length&&(o=u.length),a=new t(l.line,o)}if("\n"==s)r.visualMode||n.replaceRange("",l,a),(e.commands.newlineAndIndentContinueComment||e.commands.newlineAndIndent)(n);else{var d=n.getRange(l,a);if(d=d.replace(/[^\n]/g,s),r.visualBlock){var p=new Array(n.getOption("tabSize")+1).join(" ");d=(d=n.getSelection()).replace(/\t/g,p).replace(/[^\n]/g,s).split("\n"),n.replaceSelections(d)}else n.replaceRange(d,l,a);r.visualMode?(l=fe(c[0].anchor,c[0].head)?c[0].anchor:c[0].head,n.setCursor(l),Oe(n,!1)):n.setCursor(se(a,0,-1))}},incrementNumberToken:function(e,n){for(var i,r,o,a,s=e.getCursor(),l=e.getLine(s.line),c=/(-?)(?:(0x)([\da-f]+)|(0b|0|)(\d+))/gi;null!==(i=c.exec(l))&&(o=(r=i.index)+i[0].length,!(s.ch<o)););if((n.backtrack||!(o<=s.ch))&&i){var u=i[2]||i[4],d=i[3]||i[5],p=n.increase?1:-1,h={"0b":2,0:8,"":10,"0x":16}[u.toLowerCase()];a=(parseInt(i[1]+d,h)+p*n.repeat).toString(h);var f=u?new Array(d.length-a.length+1+i[1].length).join("0"):"";a="-"===a.charAt(0)?"-"+u+f+a.substr(1):u+f+a;var m=new t(s.line,r),g=new t(s.line,o);e.replaceRange(a,m,g),e.setCursor(new t(s.line,r+a.length-1))}},repeatLastEdit:function(e,t,n){if(n.lastEditInputState){var i=t.repeat;i&&t.repeatIsExplicit?n.lastEditInputState.repeatOverride=i:i=n.lastEditInputState.repeatOverride||i,zt(e,n,i,!1)}},indent:function(e,t){e.indentLine(e.getCursor().line,t.indentRight)},exitInsertMode:Pt};function re(e,t){ie[e]=t}function oe(e,n){var i=e.state.vim,r=i.insertMode||i.visualMode,o=Math.min(Math.max(e.firstLine(),n.line),e.lastLine()),a=ye(e,o)-1+!!r,s=Math.min(Math.max(0,n.ch),a);return new t(o,s)}function ae(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function se(e,n,i){return"object"==typeof n&&(i=n.ch,n=n.line),new t(e.line+n,e.ch+i)}function le(e,t,n,i){for(var r,o=[],a=[],s=0;s<t.length;s++){var l=t[s];"insert"==n&&"insert"!=l.context||l.context&&l.context!=n||i.operator&&"action"==l.type||!(r=ce(e,l.keys))||("partial"==r&&o.push(l),"full"==r&&a.push(l))}return{partial:o.length&&o,full:a.length&&a}}function ce(e,t){if("<character>"==t.slice(-11)){var n=t.length-11,i=e.slice(0,n),r=t.slice(0,n);return i==r&&e.length>n?"full":0==r.indexOf(i)&&"partial"}return e==t?"full":0==t.indexOf(e)&&"partial"}function ue(e){var t=/^.*(<[^>]+>)$/.exec(e),n=t?t[1]:e.slice(-1);if(n.length>1)switch(n){case"<CR>":n="\n";break;case"<Space>":n=" ";break;default:n=""}return n}function de(e,t,n){return function(){for(var i=0;i<n;i++)t(e)}}function pe(e){return new t(e.line,e.ch)}function he(e,t){return e.ch==t.ch&&e.line==t.line}function fe(e,t){return e.line<t.line||e.line==t.line&&e.ch<t.ch}function me(e,t){return arguments.length>2&&(t=me.apply(void 0,Array.prototype.slice.call(arguments,1))),fe(e,t)?e:t}function ge(e,t){return arguments.length>2&&(t=ge.apply(void 0,Array.prototype.slice.call(arguments,1))),fe(e,t)?t:e}function ve(e,t,n){var i=fe(e,t),r=fe(t,n);return i&&r}function ye(e,t){return e.getLine(t).length}function be(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function ke(e){return e.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1")}function we(e,n,i){var r=ye(e,n),o=new Array(i-r+1).join(" ");e.setCursor(new t(n,r)),e.replaceRange(o,e.getCursor())}function _e(e,n){var i=[],r=e.listSelections(),o=pe(e.clipPos(n)),a=!he(n,o),s=xe(r,e.getCursor("head")),l=he(r[s].head,r[s].anchor),c=r.length-1,u=c-s>s?c:0,d=r[u].anchor,p=Math.min(d.line,o.line),h=Math.max(d.line,o.line),f=d.ch,m=o.ch,g=r[u].head.ch-f,v=m-f;g>0&&v<=0?(f++,a||m--):g<0&&v>=0?(f--,l||m++):g<0&&-1==v&&(f--,m++);for(var y=p;y<=h;y++){var b={anchor:new t(y,f),head:new t(y,m)};i.push(b)}return e.setSelections(i),n.ch=m,d.ch=f,d}function Ce(e,t,n){for(var i=[],r=0;r<n;r++){var o=se(t,r,0);i.push({anchor:o,head:o})}e.setSelections(i,0)}function xe(e,t,n){for(var i=0;i<e.length;i++){var r="head"!=n&&he(e[i].anchor,t),o="anchor"!=n&&he(e[i].head,t);if(r||o)return i}return-1}function Se(e,n){var i=n.lastSelection,r=function(){var t=e.listSelections(),n=t[0],i=t[t.length-1];return[fe(n.anchor,n.head)?n.anchor:n.head,fe(i.anchor,i.head)?i.head:i.anchor]},o=function(){var n=e.getCursor(),r=e.getCursor(),o=i.visualBlock;if(o){var a=o.width,s=o.height;r=new t(n.line+s,n.ch+a);for(var l=[],c=n.line;c<r.line;c++){var u={anchor:new t(c,n.ch),head:new t(c,r.ch)};l.push(u)}e.setSelections(l)}else{var d=i.anchorMark.find(),p=i.headMark.find(),h=p.line-d.line,f=p.ch-d.ch;r={line:r.line+h,ch:h?r.ch:f+r.ch},i.visualLine&&(n=new t(n.line,0),r=new t(r.line,ye(e,r.line))),e.setSelection(n,r)}return[n,r]};return n.visualMode?r():o()}function Ee(e,t){var n=t.sel.anchor,i=t.sel.head;t.lastPastedText&&(i=e.posFromIndex(e.indexFromPos(n)+t.lastPastedText.length),t.lastPastedText=null),t.lastSelection={anchorMark:e.setBookmark(n),headMark:e.setBookmark(i),anchor:pe(n),head:pe(i),visualMode:t.visualMode,visualLine:t.visualLine,visualBlock:t.visualBlock}}function Ae(e,n,i){var r,o=e.state.vim.sel,a=o.head,s=o.anchor;return fe(i,n)&&(r=i,i=n,n=r),fe(a,s)?(a=me(n,a),s=ge(s,i)):(s=me(n,s),-1==(a=se(a=ge(a,i),0,-1)).ch&&a.line!=e.firstLine()&&(a=new t(a.line-1,ye(e,a.line-1)))),[s,a]}function De(e,t,n){var i=e.state.vim,r=Te(e,t=t||i.sel,n=n||i.visualLine?"line":i.visualBlock?"block":"char");e.setSelections(r.ranges,r.primary)}function Te(e,n,i,r){var o=pe(n.head),a=pe(n.anchor);if("char"==i){var s=r||fe(n.head,n.anchor)?0:1,l=fe(n.head,n.anchor)?1:0;return o=se(n.head,0,s),{ranges:[{anchor:a=se(n.anchor,0,l),head:o}],primary:0}}if("line"==i){if(fe(n.head,n.anchor))o.ch=0,a.ch=ye(e,a.line);else{a.ch=0;var c=e.lastLine();o.line>c&&(o.line=c),o.ch=ye(e,o.line)}return{ranges:[{anchor:a,head:o}],primary:0}}if("block"==i){var u=Math.min(a.line,o.line),d=a.ch,p=Math.max(a.line,o.line),h=o.ch;d<h?h+=1:d+=1;for(var f=p-u+1,m=o.line==u?0:f-1,g=[],v=0;v<f;v++)g.push({anchor:new t(u+v,d),head:new t(u+v,h)});return{ranges:g,primary:m}}}function Ie(e){var t=e.getCursor("head");return 1==e.getSelection().length&&(t=me(t,e.getCursor("anchor"))),t}function Oe(t,n){var i=t.state.vim;!1!==n&&t.setCursor(oe(t,i.sel.head)),Ee(t,i),i.visualMode=!1,i.visualLine=!1,i.visualBlock=!1,i.insertMode||e.signal(t,"vim-mode-change",{mode:"normal"})}function Pe(e,t,n){var i=e.getRange(t,n);if(/\n\s*$/.test(i)){var r=i.split("\n");r.pop();for(var o=r.pop();r.length>0&&o&&I(o);o=r.pop())n.line--,n.ch=0;o?(n.line--,n.ch=ye(e,n.line)):n.ch=0}}function Fe(e,t,n){t.ch=0,n.ch=0,n.line++}function $e(e){if(!e)return 0;var t=e.search(/\S/);return-1==t?e.length:t}function Me(e,n,i,r,o){for(var a=Ie(e),s=e.getLine(a.line),l=a.ch,c=o?g[0]:v[0];!c(s.charAt(l));)if(++l>=s.length)return null;r?c=v[0]:(c=g[0])(s.charAt(l))||(c=g[1]);for(var u=l,d=l;c(s.charAt(u))&&u<s.length;)u++;for(;c(s.charAt(d))&&d>=0;)d--;if(d++,n){for(var p=u;/\s/.test(s.charAt(u))&&u<s.length;)u++;if(p==u){for(var h=d;/\s/.test(s.charAt(d-1))&&d>0;)d--;d||(d=h)}}return{start:new t(a.line,d),end:new t(a.line,u)}}function Le(t,n,i){var r=n;if(!e.findMatchingTag||!e.findEnclosingTag)return{start:r,end:r};var o=e.findMatchingTag(t,n)||e.findEnclosingTag(t,n);return o&&o.open&&o.close?i?{start:o.open.from,end:o.close.to}:{start:o.open.to,end:o.close.from}:{start:r,end:r}}function Ne(e,t,n){he(t,n)||N.jumpList.add(e,t,n)}function je(e,t){N.lastCharacterSearch.increment=e,N.lastCharacterSearch.forward=t.forward,N.lastCharacterSearch.selectedCharacter=t.selectedCharacter}var Be={"(":"bracket",")":"bracket","{":"bracket","}":"bracket","[":"section","]":"section","*":"comment","/":"comment",m:"method",M:"method","#":"preprocess"},Re={bracket:{isComplete:function(e){if(e.nextCh===e.symb){if(e.depth++,e.depth>=1)return!0}else e.nextCh===e.reverseSymb&&e.depth--;return!1}},section:{init:function(e){e.curMoveThrough=!0,e.symb=(e.forward?"]":"[")===e.symb?"{":"}"},isComplete:function(e){return 0===e.index&&e.nextCh===e.symb}},comment:{isComplete:function(e){var t="*"===e.lastCh&&"/"===e.nextCh;return e.lastCh=e.nextCh,t}},method:{init:function(e){e.symb="m"===e.symb?"{":"}",e.reverseSymb="{"===e.symb?"}":"{"},isComplete:function(e){return e.nextCh===e.symb}},preprocess:{init:function(e){e.index=0},isComplete:function(e){if("#"===e.nextCh){var t=e.lineText.match(/^#(\w+)/)[1];if("endif"===t){if(e.forward&&0===e.depth)return!0;e.depth++}else if("if"===t){if(!e.forward&&0===e.depth)return!0;e.depth--}if("else"===t&&0===e.depth)return!0}return!1}}};function Ve(e,n,i,r){var o=pe(e.getCursor()),a=i?1:-1,s=i?e.lineCount():-1,l=o.ch,c=o.line,u=e.getLine(c),d={lineText:u,nextCh:u.charAt(l),lastCh:null,index:l,symb:r,reverseSymb:(i?{")":"(","}":"{"}:{"(":")","{":"}"})[r],forward:i,depth:0,curMoveThrough:!1},p=Be[r];if(!p)return o;var h=Re[p].init,f=Re[p].isComplete;for(h&&h(d);c!==s&&n;){if(d.index+=a,d.nextCh=d.lineText.charAt(d.index),!d.nextCh){if(c+=a,d.lineText=e.getLine(c)||"",a>0)d.index=0;else{var m=d.lineText.length;d.index=m>0?m-1:0}d.nextCh=d.lineText.charAt(d.index)}f(d)&&(o.line=c,o.ch=d.index,n--)}return d.nextCh||d.curMoveThrough?new t(c,d.index):o}function qe(e,t,n,i,r){var o=t.line,a=t.ch,s=e.getLine(o),l=n?1:-1,c=i?v:g;if(r&&""==s){if(o+=l,s=e.getLine(o),!S(e,o))return null;a=n?0:s.length}for(;;){if(r&&""==s)return{from:0,to:0,line:o};for(var u=l>0?s.length:-1,d=u,p=u;a!=u;){for(var h=!1,f=0;f<c.length&&!h;++f)if(c[f](s.charAt(a))){for(d=a;a!=u&&c[f](s.charAt(a));)a+=l;if(h=d!=(p=a),d==t.ch&&o==t.line&&p==d+l)continue;return{from:Math.min(d,p+1),to:Math.max(d,p),line:o}}h||(a+=l)}if(!S(e,o+=l))return null;s=e.getLine(o),a=l>0?0:s.length}}function He(e,n,i,r,o,a){var s=pe(n),l=[];(r&&!o||!r&&o)&&i++;for(var c=!(r&&o),u=0;u<i;u++){var d=qe(e,n,r,a,c);if(!d){var p=ye(e,e.lastLine());l.push(r?{line:e.lastLine(),from:p,to:p}:{line:0,from:0,to:0});break}l.push(d),n=new t(d.line,r?d.to-1:d.from)}var h=l.length!=i,f=l[0],m=l.pop();return r&&!o?(h||f.from==s.ch&&f.line==s.line||(m=l.pop()),new t(m.line,m.from)):r&&o?new t(m.line,m.to-1):!r&&o?(h||f.to==s.ch&&f.line==s.line||(m=l.pop()),new t(m.line,m.to)):new t(m.line,m.from)}function ze(e,n,i,r,o){var a=new t(n.line+i.repeat-1,1/0),s=e.clipPos(a);return s.ch--,o||(r.lastHPos=1/0,r.lastHSPos=e.charCoords(s,"div").left),a}function Ue(e,n,i,r){for(var o,a=e.getCursor(),s=a.ch,l=0;l<n;l++){if(-1==(o=Ke(s,e.getLine(a.line),r,i,!0)))return null;s=o}return new t(e.getCursor().line,o)}function We(e,n){var i=e.getCursor().line;return oe(e,new t(i,n-1))}function Ge(e,t,n,i){P(n,C)&&(t.marks[n]&&t.marks[n].clear(),t.marks[n]=e.setBookmark(i))}function Ke(e,t,n,i,r){var o;return i?-1==(o=t.indexOf(n,e+1))||r||(o-=1):-1==(o=t.lastIndexOf(n,e-1))||r||(o+=1),o}function Qe(e,n,i,r,o){var a,s=n.line,l=e.firstLine(),c=e.lastLine(),u=s;function d(t){return!e.getLine(t)}function p(e,t,n){return n?d(e)!=d(e+t):!d(e)&&d(e+t)}if(r){for(;l<=u&&u<=c&&i>0;)p(u,r)&&i--,u+=r;return new t(u,0)}var h=e.state.vim;if(h.visualLine&&p(s,1,!0)){var f=h.sel.anchor;p(f.line,-1,!0)&&(o&&f.line==s||(s+=1))}var m=d(s);for(u=s;u<=c&&i;u++)p(u,1,!0)&&(o&&d(u)==m||i--);for(a=new t(u,0),u>c&&!m?m=!0:o=!1,u=s;u>l&&(o&&d(u)!=m&&u!=s||!p(u,-1,!0));u--);return{start:new t(u,0),end:a}}function Ye(e,n,i,r,o){function a(e){e.pos+e.dir<0||e.pos+e.dir>=e.line.length?e.line=null:e.pos+=e.dir}function s(e,t,n,i){var r={line:e.getLine(t),ln:t,pos:n,dir:i};if(""===r.line)return{ln:r.ln,pos:r.pos};var s=r.pos;for(a(r);null!==r.line;){if(s=r.pos,O(r.line[r.pos])){if(o){for(a(r);null!==r.line&&I(r.line[r.pos]);)s=r.pos,a(r);return{ln:r.ln,pos:s+1}}return{ln:r.ln,pos:r.pos+1}}a(r)}return{ln:r.ln,pos:s+1}}function l(e,t,n,i){var r=e.getLine(t),s={line:r,ln:t,pos:n,dir:i};if(""===s.line)return{ln:s.ln,pos:s.pos};var l=s.pos;for(a(s);null!==s.line;){if(I(s.line[s.pos])||O(s.line[s.pos])){if(O(s.line[s.pos]))return o&&I(s.line[s.pos+1])?{ln:s.ln,pos:s.pos+1}:{ln:s.ln,pos:l}}else l=s.pos;a(s)}return s.line=r,o&&I(s.line[s.pos])?{ln:s.ln,pos:s.pos}:{ln:s.ln,pos:l}}for(var c={ln:n.line,pos:n.ch};i>0;)c=r<0?l(e,c.ln,c.pos,r):s(e,c.ln,c.pos,r),i--;return new t(c.ln,c.pos)}function Je(e,n,i,r){function o(e,t){if(t.pos+t.dir<0||t.pos+t.dir>=t.line.length){if(t.ln+=t.dir,!S(e,t.ln))return t.line=null,t.ln=null,void(t.pos=null);t.line=e.getLine(t.ln),t.pos=t.dir>0?0:t.line.length-1}else t.pos+=t.dir}function a(e,t,n,i){var r=""===(c=e.getLine(t)),a={line:c,ln:t,pos:n,dir:i},s={ln:a.ln,pos:a.pos},l=""===a.line;for(o(e,a);null!==a.line;){if(s.ln=a.ln,s.pos=a.pos,""===a.line&&!l)return{ln:a.ln,pos:a.pos};if(r&&""!==a.line&&!I(a.line[a.pos]))return{ln:a.ln,pos:a.pos};!O(a.line[a.pos])||r||a.pos!==a.line.length-1&&!I(a.line[a.pos+1])||(r=!0),o(e,a)}var c=e.getLine(s.ln);s.pos=0;for(var u=c.length-1;u>=0;--u)if(!I(c[u])){s.pos=u;break}return s}function s(e,t,n,i){var r={line:l=e.getLine(t),ln:t,pos:n,dir:i},a={ln:r.ln,pos:null},s=""===r.line;for(o(e,r);null!==r.line;){if(""===r.line&&!s)return null!==a.pos?a:{ln:r.ln,pos:r.pos};if(O(r.line[r.pos])&&null!==a.pos&&(r.ln!==a.ln||r.pos+1!==a.pos))return a;""===r.line||I(r.line[r.pos])||(s=!1,a={ln:r.ln,pos:r.pos}),o(e,r)}var l=e.getLine(a.ln);a.pos=0;for(var c=0;c<l.length;++c)if(!I(l[c])){a.pos=c;break}return a}for(var l={ln:n.line,pos:n.ch};i>0;)l=r<0?s(e,l.ln,l.pos,r):a(e,l.ln,l.pos,r),i--;return new t(l.ln,l.pos)}function Xe(e,n,i,r){var o,a,s=n,l={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[i],c={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[i],u=e.getLine(s.line).charAt(s.ch)===c?1:0;if(o=e.scanForBracket(new t(s.line,s.ch+u),-1,void 0,{bracketRegex:l}),a=e.scanForBracket(new t(s.line,s.ch+u),1,void 0,{bracketRegex:l}),!o||!a)return{start:s,end:s};if(o=o.pos,a=a.pos,o.line==a.line&&o.ch>a.ch||o.line>a.line){var d=o;o=a,a=d}return r?a.ch+=1:o.ch+=1,{start:o,end:a}}function Ze(e,n,i,r){var o,a,s,l,c=pe(n),u=e.getLine(c.line).split(""),d=u.indexOf(i);if(c.ch<d?c.ch=d:d<c.ch&&u[c.ch]==i&&(a=c.ch,--c.ch),u[c.ch]!=i||a)for(s=c.ch;s>-1&&!o;s--)u[s]==i&&(o=s+1);else o=c.ch+1;if(o&&!a)for(s=o,l=u.length;s<l&&!a;s++)u[s]==i&&(a=s);return o&&a?(r&&(--o,++a),{start:new t(c.line,o),end:new t(c.line,a)}):{start:c,end:c}}function et(){}function tt(e){var t=e.state.vim;return t.searchState_||(t.searchState_=new et)}function nt(e){return rt(e,"/")}function it(e){return ot(e,"/")}function rt(e,t){var n=ot(e,t)||[];if(!n.length)return[];var i=[];if(0===n[0]){for(var r=0;r<n.length;r++)"number"==typeof n[r]&&i.push(e.substring(n[r]+1,n[r+1]));return i}}function ot(e,t){t||(t="/");for(var n=!1,i=[],r=0;r<e.length;r++){var o=e.charAt(r);n||o!=t||i.push(r),n=!n&&"\\"==o}return i}function at(e){for(var t="|(){",n="}",i=!1,r=[],o=-1;o<e.length;o++){var a=e.charAt(o)||"",s=e.charAt(o+1)||"",l=s&&-1!=t.indexOf(s);i?("\\"===a&&l||r.push(a),i=!1):"\\"===a?(i=!0,s&&-1!=n.indexOf(s)&&(l=!0),l&&"\\"!==s||r.push(a)):(r.push(a),l&&"\\"!==s&&r.push("\\"))}return r.join("")}$("pcre",!0,"boolean"),et.prototype={getQuery:function(){return N.query},setQuery:function(e){N.query=e},getOverlay:function(){return this.searchOverlay},setOverlay:function(e){this.searchOverlay=e},isReversed:function(){return N.isReversed},setReversed:function(e){N.isReversed=e},getScrollbarAnnotate:function(){return this.annotate},setScrollbarAnnotate:function(e){this.annotate=e}};var st={"\\n":"\n","\\r":"\r","\\t":"\t"};function lt(e){for(var t=!1,n=[],i=-1;i<e.length;i++){var r=e.charAt(i)||"",o=e.charAt(i+1)||"";st[r+o]?(n.push(st[r+o]),i++):t?(n.push(r),t=!1):"\\"===r?(t=!0,D(o)||"$"===o?n.push("$"):"/"!==o&&"\\"!==o&&n.push("\\")):("$"===r&&n.push("$"),n.push(r),"/"===o&&n.push("\\"))}return n.join("")}var ct={"\\/":"/","\\\\":"\\","\\n":"\n","\\r":"\r","\\t":"\t","\\&":"&"};function ut(t){for(var n=new e.StringStream(t),i=[];!n.eol();){for(;n.peek()&&"\\"!=n.peek();)i.push(n.next());var r=!1;for(var o in ct)if(n.match(o,!0)){r=!0,i.push(ct[o]);break}r||i.push(n.next())}return i.join("")}function dt(e,t,n){if(N.registerController.getRegister("/").setText(e),e instanceof RegExp)return e;var i,r,o=it(e);return o.length?(i=e.substring(0,o[0]),r=-1!=e.substring(o[0]).indexOf("i")):i=e,i?(L("pcre")||(i=at(i)),n&&(t=/^[^A-Z]*$/.test(i)),new RegExp(i,t||r?"im":"m")):null}function pt(e){"string"==typeof e&&(e=document.createElement(e));for(var t,n=1;n<arguments.length;n++)if(t=arguments[n])if("object"!=typeof t&&(t=document.createTextNode(t)),t.nodeType)e.appendChild(t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&("$"===i[0]?e.style[i.slice(1)]=t[i]:e.setAttribute(i,t[i]));return e}function ht(e,t){var n=pt("div",{$color:"red",$whiteSpace:"pre",class:"cm-vim-message"},t);e.openNotification?e.openNotification(n,{bottom:!0,duration:5e3}):alert(n.innerText)}function ft(e,t){return pt(document.createDocumentFragment(),pt("span",{$fontFamily:"monospace",$whiteSpace:"pre"},e,pt("input",{type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false"})),t&&pt("span",{$color:"#888"},t))}function mt(e,t){var n=ft(t.prefix,t.desc);if(e.openDialog)e.openDialog(n,t.onClose,{onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp,bottom:!0,selectValueOnOpen:!1,value:t.value});else{var i="";"string"!=typeof t.prefix&&t.prefix&&(i+=t.prefix.textContent),t.desc&&(i+=" "+t.desc),t.onClose(prompt(i,""))}}function gt(e,t){if(e instanceof RegExp&&t instanceof RegExp){for(var n=["global","multiline","ignoreCase","source"],i=0;i<n.length;i++){var r=n[i];if(e[r]!==t[r])return!1}return!0}return!1}function vt(e,t,n,i){if(t){var r=tt(e),o=dt(t,!!n,!!i);if(o)return kt(e,o),gt(o,r.getQuery())||r.setQuery(o),o}}function yt(e){if("^"==e.source.charAt(0))var t=!0;return{token:function(n){if(!t||n.sol()){var i=n.match(e,!1);if(i)return 0==i[0].length?(n.next(),"searching"):n.sol()||(n.backUp(1),e.exec(n.next()+i[0]))?(n.match(e),"searching"):(n.next(),null);for(;!n.eol()&&(n.next(),!n.match(e,!1)););}else n.skipToEnd()},query:e}}var bt=0;function kt(e,t){clearTimeout(bt),bt=setTimeout(function(){if(e.state.vim){var n=tt(e),i=n.getOverlay();i&&t==i.query||(i&&e.removeOverlay(i),i=yt(t),e.addOverlay(i),e.showMatchesOnScrollbar&&(n.getScrollbarAnnotate()&&n.getScrollbarAnnotate().clear(),n.setScrollbarAnnotate(e.showMatchesOnScrollbar(t))),n.setOverlay(i))}},50)}function wt(e,n,i,r){return void 0===r&&(r=1),e.operation(function(){for(var o=e.getCursor(),a=e.getSearchCursor(i,o),s=0;s<r;s++){var l=a.find(n);if(0==s&&l&&he(a.from(),o)){var c=n?a.from():a.to();(l=a.find(n))&&!l[0]&&he(a.from(),c)&&e.getLine(c.line).length==c.ch&&(l=a.find(n))}if(!l&&!(a=e.getSearchCursor(i,n?new t(e.lastLine()):new t(e.firstLine(),0))).find(n))return}return a.from()})}function _t(e,n,i,r,o){return void 0===r&&(r=1),e.operation(function(){var a=e.getCursor(),s=e.getSearchCursor(i,a),l=s.find(!n);!o.visualMode&&l&&he(s.from(),a)&&s.find(!n);for(var c=0;c<r;c++)if(!(l=s.find(n))&&!(s=e.getSearchCursor(i,n?new t(e.lastLine()):new t(e.firstLine(),0))).find(n))return;return[s.from(),s.to()]})}function Ct(e){var t=tt(e);e.removeOverlay(tt(e).getOverlay()),t.setOverlay(null),t.getScrollbarAnnotate()&&(t.getScrollbarAnnotate().clear(),t.setScrollbarAnnotate(null))}function xt(e,t,n){return"number"!=typeof e&&(e=e.line),t instanceof Array?P(e,t):"number"==typeof n?e>=t&&e<=n:e==t}function St(e){var t=e.getScrollInfo(),n=6,i=10,r=e.coordsChar({left:0,top:n+t.top},"local"),o=t.clientHeight-i+t.top,a=e.coordsChar({left:0,top:o},"local");return{top:r.line,bottom:a.line}}function Et(e,n,i){if("'"==i||"`"==i)return N.jumpList.find(e,-1)||new t(0,0);if("."==i)return At(e);var r=n.marks[i];return r&&r.find()}function At(e){for(var t=e.doc.history.done,n=t.length;n--;)if(t[n].changes)return pe(t[n].changes[0].to)}var Dt=function(){this.buildCommandMap_()};Dt.prototype={processCommand:function(e,t,n){var i=this;e.operation(function(){e.curOp.isVimOp=!0,i._processCommand(e,t,n)})},_processCommand:function(t,n,i){var r=t.state.vim,o=N.registerController.getRegister(":"),a=o.toString();r.visualMode&&Oe(t);var s=new e.StringStream(n);o.setText(n);var l,c,u=i||{};u.input=n;try{this.parseInput_(t,s,u)}catch(e){throw ht(t,e.toString()),e}if(u.commandName){if(l=this.matchCommand_(u.commandName)){if(c=l.name,l.excludeFromCommandHistory&&o.setText(a),this.parseCommandArgs_(s,u,l),"exToKey"==l.type){for(var d=0;d<l.toKeys.length;d++)z.handleKey(t,l.toKeys[d],"mapping");return}if("exToEx"==l.type)return void this.processCommand(t,l.toInput)}}else void 0!==u.line&&(c="move");if(c)try{Tt[c](t,u),l&&l.possiblyAsync||!u.callback||u.callback()}catch(e){throw ht(t,e.toString()),e}else ht(t,'Not an editor command ":'+n+'"')},parseInput_:function(e,t,n){t.eatWhile(":"),t.eat("%")?(n.line=e.firstLine(),n.lineEnd=e.lastLine()):(n.line=this.parseLineSpec_(e,t),void 0!==n.line&&t.eat(",")&&(n.lineEnd=this.parseLineSpec_(e,t)));var i=t.match(/^(\w+|!!|@@|[!#&*<=>@~])/);return n.commandName=i?i[1]:t.match(/.*/)[0],n},parseLineSpec_:function(e,t){var n=t.match(/^(\d+)/);if(n)return parseInt(n[1],10)-1;switch(t.next()){case".":return this.parseLineSpecOffset_(t,e.getCursor().line);case"$":return this.parseLineSpecOffset_(t,e.lastLine());case"'":var i=t.next(),r=Et(e,e.state.vim,i);if(!r)throw new Error("Mark not set");return this.parseLineSpecOffset_(t,r.line);case"-":case"+":return t.backUp(1),this.parseLineSpecOffset_(t,e.getCursor().line);default:return void t.backUp(1)}},parseLineSpecOffset_:function(e,t){var n=e.match(/^([+-])?(\d+)/);if(n){var i=parseInt(n[2],10);"-"==n[1]?t-=i:t+=i}return t},parseCommandArgs_:function(e,t,n){if(!e.eol()){t.argString=e.match(/.*/)[0];var i=n.argDelimiter||/\s+/,r=be(t.argString).split(i);r.length&&r[0]&&(t.args=r)}},matchCommand_:function(e){for(var t=e.length;t>0;t--){var n=e.substring(0,t);if(this.commandMap_[n]){var i=this.commandMap_[n];if(0===i.name.indexOf(e))return i}}return null},buildCommandMap_:function(){this.commandMap_={};for(var e=0;e<o.length;e++){var t=o[e],n=t.shortName||t.name;this.commandMap_[n]=t}},map:function(e,t,n){if(":"!=e&&":"==e.charAt(0)){if(n)throw Error("Mode not supported for ex mappings");var r=e.substring(1);":"!=t&&":"==t.charAt(0)?this.commandMap_[r]={name:r,type:"exToEx",toInput:t.substring(1),user:!0}:this.commandMap_[r]={name:r,type:"exToKey",toKeys:t,user:!0}}else if(":"!=t&&":"==t.charAt(0)){var o={keys:e,type:"keyToEx",exArgs:{input:t.substring(1)}};n&&(o.context=n),i.unshift(o)}else o={keys:e,type:"keyToKey",toKeys:t},n&&(o.context=n),i.unshift(o)},unmap:function(e,t){if(":"!=e&&":"==e.charAt(0)){if(t)throw Error("Mode not supported for ex mappings");var n=e.substring(1);if(this.commandMap_[n]&&this.commandMap_[n].user)return delete this.commandMap_[n],!0}else for(var r=e,o=0;o<i.length;o++)if(r==i[o].keys&&i[o].context===t)return i.splice(o,1),!0}};var Tt={colorscheme:function(e,t){!t.args||t.args.length<1?ht(e,e.getOption("theme")):e.setOption("theme",t.args[0])},map:function(e,t,n){var i=t.args;!i||i.length<2?e&&ht(e,"Invalid mapping: "+t.input):It.map(i[0],i[1],n)},imap:function(e,t){this.map(e,t,"insert")},nmap:function(e,t){this.map(e,t,"normal")},vmap:function(e,t){this.map(e,t,"visual")},unmap:function(e,t,n){var i=t.args;(!i||i.length<1||!It.unmap(i[0],n))&&e&&ht(e,"No such mapping: "+t.input)},move:function(e,t){J.processCommand(e,e.state.vim,{type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0},repeatOverride:t.line+1})},set:function(e,t){var n=t.args,i=t.setCfg||{};if(!n||n.length<1)e&&ht(e,"Invalid mapping: "+t.input);else{var r=n[0].split("="),o=r[0],a=r[1],s=!1;if("?"==o.charAt(o.length-1)){if(a)throw Error("Trailing characters: "+t.argString);o=o.substring(0,o.length-1),s=!0}void 0===a&&"no"==o.substring(0,2)&&(o=o.substring(2),a=!1);var l=F[o]&&"boolean"==F[o].type;if(l&&null==a&&(a=!0),!l&&void 0===a||s){var c=L(o,e,i);c instanceof Error?ht(e,c.message):ht(e,!0===c||!1===c?" "+(c?"":"no")+o:" "+o+"="+c)}else{var u=M(o,a,e,i);u instanceof Error&&ht(e,u.message)}}},setlocal:function(e,t){t.setCfg={scope:"local"},this.set(e,t)},setglobal:function(e,t){t.setCfg={scope:"global"},this.set(e,t)},registers:function(e,t){var n=t.args,i=N.registerController.registers,r="----------Registers----------\n\n";if(n){n=n.join("");for(var o=0;o<n.length;o++)a=n.charAt(o),N.registerController.isValidRegister(a)&&(r+='"'+a+" "+(i[a]||new G).toString()+"\n")}else for(var a in i){var s=i[a].toString();s.length&&(r+='"'+a+" "+s+"\n")}ht(e,r)},sort:function(n,i){var r,o,a,s,l;function c(){if(i.argString){var t=new e.StringStream(i.argString);if(t.eat("!")&&(r=!0),t.eol())return;if(!t.eatSpace())return"Invalid arguments";var n=t.match(/([dinuox]+)?\s*(\/.+\/)?\s*/);if(!n&&!t.eol())return"Invalid arguments";if(n[1]){o=-1!=n[1].indexOf("i"),a=-1!=n[1].indexOf("u");var c=-1!=n[1].indexOf("d")||-1!=n[1].indexOf("n")&&1,u=-1!=n[1].indexOf("x")&&1,d=-1!=n[1].indexOf("o")&&1;if(c+u+d>1)return"Invalid arguments";s=(c?"decimal":u&&"hex")||d&&"octal"}n[2]&&(l=new RegExp(n[2].substr(1,n[2].length-2),o?"i":""))}}var u=c();if(u)ht(n,u+": "+i.argString);else{var d=i.line||n.firstLine(),p=i.lineEnd||i.line||n.lastLine();if(d!=p){var h=new t(d,0),f=new t(p,ye(n,p)),m=n.getRange(h,f).split("\n"),g=l||("decimal"==s?/(-?)([\d]+)/:"hex"==s?/(-?)(?:0x)?([0-9a-f]+)/i:"octal"==s?/([0-7]+)/:null),v="decimal"==s?10:"hex"==s?16:"octal"==s?8:null,y=[],b=[];if(s||l)for(var k=0;k<m.length;k++){var w=l?m[k].match(l):null;w&&""!=w[0]?y.push(w):!l&&g.exec(m[k])?y.push(m[k]):b.push(m[k])}else b=m;if(y.sort(l?S:x),l)for(k=0;k<y.length;k++)y[k]=y[k].input;else s||b.sort(x);if(m=r?y.concat(b):b.concat(y),a){var _,C=m;for(m=[],k=0;k<C.length;k++)C[k]!=_&&m.push(C[k]),_=C[k]}n.replaceRange(m.join("\n"),h,f)}}function x(e,t){var n;r&&(n=e,e=t,t=n),o&&(e=e.toLowerCase(),t=t.toLowerCase());var i=s&&g.exec(e),a=s&&g.exec(t);return i?(i=parseInt((i[1]+i[2]).toLowerCase(),v))-(a=parseInt((a[1]+a[2]).toLowerCase(),v)):e<t?-1:1}function S(e,t){var n;return r&&(n=e,e=t,t=n),o&&(e[0]=e[0].toLowerCase(),t[0]=t[0].toLowerCase()),e[0]<t[0]?-1:1}},vglobal:function(e,t){this.global(e,t)},global:function(e,t){var n=t.argString;if(n){var i,r="v"===t.commandName[0],o=void 0!==t.line?t.line:e.firstLine(),a=t.lineEnd||t.line||e.lastLine(),s=nt(n),l=n;if(s.length&&(l=s[0],i=s.slice(1,s.length).join("/")),l)try{vt(e,l,!0,!0)}catch(t){return void ht(e,"Invalid regex: "+l)}for(var c=tt(e).getQuery(),u=[],d=o;d<=a;d++){var p=e.getLineHandle(d);c.test(p.text)!==r&&u.push(i?p:p.text)}if(i){var h=0,f=function(){if(h<u.length){var t=u[h++],n=e.getLineNumber(t);if(null==n)return void f();var r=n+1+i;It.processCommand(e,r,{callback:f})}};f()}else ht(e,u.join("\n"))}else ht(e,"Regular Expression missing from global")},substitute:function(e,n){if(!e.getSearchCursor)throw new Error("Search feature not available. Requires searchcursor.js or any other getSearchCursor implementation.");var i,r,o,a,s=n.argString,l=s?rt(s,s[0]):[],c="",u=!1,d=!1;if(l.length)i=l[0],L("pcre")&&""!==i&&(i=new RegExp(i).source),void 0!==(c=l[1])&&(c=L("pcre")?ut(c.replace(/([^\\])&/g,"$1$$&")):lt(c),N.lastSubstituteReplacePart=c),r=l[2]?l[2].split(" "):[];else if(s&&s.length)return void ht(e,"Substitutions should be of the form :s/pattern/replace/");if(r&&(o=r[0],a=parseInt(r[1]),o&&(-1!=o.indexOf("c")&&(u=!0),-1!=o.indexOf("g")&&(d=!0),i=L("pcre")?i+"/"+o:i.replace(/\//g,"\\/")+"/"+o)),i)try{vt(e,i,!0,!0)}catch(t){return void ht(e,"Invalid regex: "+i)}if(void 0!==(c=c||N.lastSubstituteReplacePart)){var p=tt(e).getQuery(),h=void 0!==n.line?n.line:e.getCursor().line,f=n.lineEnd||h;h==e.firstLine()&&f==e.lastLine()&&(f=1/0),a&&(f=(h=f)+a-1);var m=oe(e,new t(h,0)),g=e.getSearchCursor(p,m);Ot(e,u,d,h,f,g,p,c,n.callback)}else ht(e,"No previous substitute regular expression")},redo:e.commands.redo,undo:e.commands.undo,write:function(t){e.commands.save?e.commands.save(t):t.save&&t.save()},nohlsearch:function(e){Ct(e)},yank:function(e){var t=pe(e.getCursor()).line,n=e.getLine(t);N.registerController.pushText("0","yank",n,!0,!0)},delmarks:function(t,n){if(n.argString&&be(n.argString))for(var i=t.state.vim,r=new e.StringStream(be(n.argString));!r.eol();){r.eatSpace();var o=r.pos;if(!r.match(/[a-zA-Z]/,!1))return void ht(t,"Invalid argument: "+n.argString.substring(o));var a=r.next();if(r.match("-",!0)){if(!r.match(/[a-zA-Z]/,!1))return void ht(t,"Invalid argument: "+n.argString.substring(o));var s=a,l=r.next();if(!(E(s)&&E(l)||T(s)&&T(l)))return void ht(t,"Invalid argument: "+s+"-");var c=s.charCodeAt(0),u=l.charCodeAt(0);if(c>=u)return void ht(t,"Invalid argument: "+n.argString.substring(o));for(var d=0;d<=u-c;d++){var p=String.fromCharCode(c+d);delete i.marks[p]}}else delete i.marks[a]}else ht(t,"Argument required")}},It=new Dt;function Ot(t,n,i,r,o,a,s,l,c){t.state.vim.exMode=!0;var u,d,p,h=!1;function f(){t.operation(function(){for(;!h;)m(),v();y()})}function m(){var e=t.getRange(a.from(),a.to()).replace(s,l),n=a.to().line;a.replace(e),d=a.to().line,o+=d-n,p=d<n}function g(){var e=u&&pe(a.to()),t=a.findNext();return t&&!t[0]&&e&&he(a.from(),e)&&(t=a.findNext()),t}function v(){for(;g()&&xt(a.from(),r,o);)if(i||a.from().line!=d||p)return t.scrollIntoView(a.from(),30),t.setSelection(a.from(),a.to()),u=a.from(),void(h=!1);h=!0}function y(e){if(e&&e(),t.focus(),u){t.setCursor(u);var n=t.state.vim;n.exMode=!1,n.lastHPos=n.lastHSPos=u.ch}c&&c()}function b(n,i,r){switch(e.e_stop(n),e.keyName(n)){case"Y":m(),v();break;case"N":v();break;case"A":var o=c;c=void 0,t.operation(f),c=o;break;case"L":m();case"Q":case"Esc":case"Ctrl-C":case"Ctrl-[":y(r)}return h&&y(r),!0}if(v(),!h)return n?void mt(t,{prefix:pt("span","replace with ",pt("strong",l)," (y/n/a/q/l)"),onKeyDown:b}):(f(),void(c&&c()));ht(t,"No matches for "+s.source)}function Pt(t){var n=t.state.vim,i=N.macroModeState,r=N.registerController.getRegister("."),o=i.isPlaying,a=i.lastInsertModeChanges;o||(t.off("change",Bt),e.off(t.getInputField(),"keydown",Ht)),!o&&n.insertModeRepeat>1&&(zt(t,n,n.insertModeRepeat-1,!0),n.lastEditInputState.repeatOverride=n.insertModeRepeat),delete n.insertModeRepeat,n.insertMode=!1,t.setCursor(t.getCursor().line,t.getCursor().ch-1),t.setOption("keyMap","vim"),t.setOption("disableInput",!0),t.toggleOverwrite(!1),r.setText(a.changes.join("")),e.signal(t,"vim-mode-change",{mode:"normal"}),i.isRecording&&Nt(i)}function Ft(e){i.unshift(e)}function $t(e,t,n,i,r){var o={keys:e,type:t};for(var a in o[t]=n,o[t+"Args"]=i,r)o[a]=r[a];Ft(o)}function Mt(e,t,n,i){var r=N.registerController.getRegister(i);if(":"==i)return r.keyBuffer[0]&&It.processCommand(e,r.keyBuffer[0]),void(n.isPlaying=!1);var o=r.keyBuffer,a=0;n.isPlaying=!0,n.replaySearchQueries=r.searchQueries.slice(0);for(var s=0;s<o.length;s++)for(var l,c,u=o[s];u;)if(c=(l=/<\w+-.+?>|<\w+>|./.exec(u))[0],u=u.substring(l.index+c.length),z.handleKey(e,c,"macro"),t.insertMode){var d=r.insertModeChanges[a++].changes;N.macroModeState.lastInsertModeChanges.changes=d,Ut(e,d,1),Pt(e)}n.isPlaying=!1}function Lt(e,t){if(!e.isPlaying){var n=e.latestRegister,i=N.registerController.getRegister(n);i&&i.pushText(t)}}function Nt(e){if(!e.isPlaying){var t=e.latestRegister,n=N.registerController.getRegister(t);n&&n.pushInsertModeChanges&&n.pushInsertModeChanges(e.lastInsertModeChanges)}}function jt(e,t){if(!e.isPlaying){var n=e.latestRegister,i=N.registerController.getRegister(n);i&&i.pushSearchQuery&&i.pushSearchQuery(t)}}function Bt(e,t){var n=N.macroModeState,i=n.lastInsertModeChanges;if(!n.isPlaying)for(;t;){if(i.expectCursorActivityForChange=!0,i.ignoreCount>1)i.ignoreCount--;else if("+input"==t.origin||"paste"==t.origin||void 0===t.origin){var r=e.listSelections().length;r>1&&(i.ignoreCount=r);var o=t.text.join("\n");i.maybeReset&&(i.changes=[],i.maybeReset=!1),o&&(e.state.overwrite&&!/\n/.test(o)?i.changes.push([o]):i.changes.push(o))}t=t.next}}function Rt(e){var t=e.state.vim;if(t.insertMode){var n=N.macroModeState;if(n.isPlaying)return;var i=n.lastInsertModeChanges;i.expectCursorActivityForChange?i.expectCursorActivityForChange=!1:i.maybeReset=!0}else e.curOp.isVimOp||Vt(e,t)}function Vt(t,n){var i=t.getCursor("anchor"),r=t.getCursor("head");if(n.visualMode&&!t.somethingSelected()?Oe(t,!1):n.visualMode||n.insertMode||!t.somethingSelected()||(n.visualMode=!0,n.visualLine=!1,e.signal(t,"vim-mode-change",{mode:"visual"})),n.visualMode){var o=fe(r,i)?0:-1,a=fe(r,i)?-1:0;r=se(r,0,o),i=se(i,0,a),n.sel={anchor:i,head:r},Ge(t,n,"<",me(r,i)),Ge(t,n,">",ge(r,i))}else n.insertMode||(n.lastHPos=t.getCursor().ch)}function qt(e){this.keyName=e}function Ht(t){var n=N.macroModeState.lastInsertModeChanges,i=e.keyName(t);function r(){return n.maybeReset&&(n.changes=[],n.maybeReset=!1),n.changes.push(new qt(i)),!0}i&&(-1==i.indexOf("Delete")&&-1==i.indexOf("Backspace")||e.lookupKey(i,"vim-insert",r))}function zt(e,t,n,i){var r=N.macroModeState;r.isPlaying=!0;var o=!!t.lastEditActionCommand,a=t.inputState;function s(){o?J.processAction(e,t,t.lastEditActionCommand):J.evalInput(e,t)}function l(n){if(r.lastInsertModeChanges.changes.length>0){n=t.lastEditActionCommand?n:1;var i=r.lastInsertModeChanges;Ut(e,i.changes,n)}}if(t.inputState=t.lastEditInputState,o&&t.lastEditActionCommand.interlaceInsertRepeat)for(var c=0;c<n;c++)s(),l(1);else i||s(),l(n);t.inputState=a,t.insertMode&&!i&&Pt(e),r.isPlaying=!1}function Ut(t,n,i){function r(n){return"string"==typeof n?e.commands[n](t):n(t),!0}var o=t.getCursor("head"),a=N.macroModeState.lastInsertModeChanges.visualBlock;a&&(Ce(t,o,a+1),i=t.listSelections().length,t.setCursor(o));for(var s=0;s<i;s++){a&&t.setCursor(se(o,s,0));for(var l=0;l<n.length;l++){var c=n[l];if(c instanceof qt)e.lookupKey(c.keyName,"vim-insert",r);else if("string"==typeof c)t.replaceSelection(c);else{var u=t.getCursor(),d=se(u,0,c[0].length);t.replaceRange(c[0],u,d),t.setCursor(d)}}}a&&t.setCursor(se(o,0,1))}function Wt(e){var t=new e.constructor;return Object.keys(e).forEach(function(n){var i=e[n];Array.isArray(i)?i=i.slice():i&&"object"==typeof i&&i.constructor!=Object&&(i=Wt(i)),t[n]=i}),e.sel&&(t.sel={head:e.sel.head&&pe(e.sel.head),anchor:e.sel.anchor&&pe(e.sel.anchor)}),t}function Gt(e,t,n){var i=!1,r=z.maybeInitVimState_(e),o=r.visualBlock||r.wasInVisualBlock,a=e.isInMultiSelectMode();if(r.wasInVisualBlock&&!a?r.wasInVisualBlock=!1:a&&r.visualBlock&&(r.wasInVisualBlock=!0),"<Esc>"!=t||r.insertMode||r.visualMode||!a||"<Esc>"!=r.status)if(o||!a||e.inVirtualSelectionMode)i=z.handleKey(e,t,n);else{var s=Wt(r);e.operation(function(){e.curOp.isVimOp=!0,e.forEachSelection(function(){var r=e.getCursor("head"),o=e.getCursor("anchor"),a=fe(r,o)?0:-1,l=fe(r,o)?-1:0;r=se(r,0,a),o=se(o,0,l),e.state.vim.sel.head=r,e.state.vim.sel.anchor=o,i=z.handleKey(e,t,n),e.virtualSelection&&(e.state.vim=Wt(s))}),e.curOp.cursorActivity&&!i&&(e.curOp.cursorActivity=!1),e.state.vim=r},!0)}else W(e);return!i||r.visualMode||r.insert||r.visualMode==e.somethingSelected()||Vt(e,r),i}return e.keyMap.vim={attach:c,detach:l,call:u},$("insertModeEscKeysTimeout",200,"number"),e.keyMap["vim-insert"]={fallthrough:["default"],attach:c,detach:l,call:u},e.keyMap["vim-replace"]={Backspace:"goCharLeft",fallthrough:["vim-insert"],attach:c,detach:l,call:u},H(),z}function n(e){return e.Vim=t(e),e.Vim}e.Vim=n(e)}(n(15237),n(23653),n(28527),n(97923))},71444:function(e,t){"use strict";t.unsafeString=/@cc|<\/?|script|\]\s*\]|<\s*!|</i,t.needEsc=/[\u0000-\u001f&<"\/\\\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/,t.needEscGlobal=/[\u0000-\u001f&<"\/\\\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,t.starSlash=/\*\//,t.identifier=/^([a-zA-Z_$][a-zA-Z0-9_$]*)$/,t.javascriptURL=/^(?:javascript|jscript|ecmascript|vbscript|livescript)\s*:/i,t.fallsThrough=/^\s*falls?\sthrough\s*$/,t.maxlenException=/^(?:(?:\/\/|\/\*|\*) ?)?[^ ]+$/,t.whitespace=/[ \f\n\r\t\v\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]/,t.nonzeroDigit=/^[1-9]$/,t.decimalDigit=/^[0-9]$/,t.regexpSyntaxChars=/[\^$\\.*+?()[\]{}|]/,t.regexpQuantifiers=/[*+?{]/,t.regexpControlEscapes=/[fnrtv]/,t.regexpCharClasses=/[dDsSwWpP]/,t.regexpDot=/(^|[^\\])(\\\\)*\./},71514:function(e){"use strict";e.exports=Math.abs},71561:function(e,t,n){!function(e){"use strict";var t="CodeMirror-lint-markers",n="CodeMirror-lint-line-";function i(t,n,i){var r=document.createElement("div");function o(t){if(!r.parentNode)return e.off(document,"mousemove",o);r.style.top=Math.max(0,t.clientY-r.offsetHeight-5)+"px",r.style.left=t.clientX+5+"px"}return r.className="CodeMirror-lint-tooltip cm-s-"+t.options.theme,r.appendChild(i.cloneNode(!0)),t.state.lint.options.selfContain?t.getWrapperElement().appendChild(r):document.body.appendChild(r),e.on(document,"mousemove",o),o(n),null!=r.style.opacity&&(r.style.opacity=1),r}function r(e){e.parentNode&&e.parentNode.removeChild(e)}function o(e){e.parentNode&&(null==e.style.opacity&&r(e),e.style.opacity=0,setTimeout(function(){r(e)},600))}function a(t,n,r,a){var s=i(t,n,r);function l(){e.off(a,"mouseout",l),s&&(o(s),s=null)}var c=setInterval(function(){if(s)for(var e=a;;e=e.parentNode){if(e&&11==e.nodeType&&(e=e.host),e==document.body)return;if(!e){l();break}}if(!s)return clearInterval(c)},400);e.on(a,"mouseout",l)}function s(e,t,n){for(var i in this.marked=[],t instanceof Function&&(t={getAnnotations:t}),t&&!0!==t||(t={}),this.options={},this.linterOptions=t.options||{},l)this.options[i]=l[i];for(var i in t)l.hasOwnProperty(i)?null!=t[i]&&(this.options[i]=t[i]):t.options||(this.linterOptions[i]=t[i]);this.timeout=null,this.hasGutter=n,this.onMouseOver=function(t){k(e,t)},this.waitingFor=0}var l={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function c(e){var n=e.state.lint;n.hasGutter&&e.clearGutter(t),n.options.highlightLines&&u(e);for(var i=0;i<n.marked.length;++i)n.marked[i].clear();n.marked.length=0}function u(e){e.eachLine(function(t){var n=t.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(t.wrapClass);n&&e.removeLineClass(t,"wrap",n[0])})}function d(t,n,i,r,o){var s=document.createElement("div"),l=s;return s.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+i,r&&((l=s.appendChild(document.createElement("div"))).className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),0!=o&&e.on(l,"mouseover",function(e){a(t,e,n,l)}),s}function p(e,t){return"error"==e?e:t}function h(e){for(var t=[],n=0;n<e.length;++n){var i=e[n],r=i.from.line;(t[r]||(t[r]=[])).push(i)}return t}function f(e){var t=e.severity;t||(t="error");var n=document.createElement("div");return n.className="CodeMirror-lint-message CodeMirror-lint-message-"+t,void 0!==e.messageHTML?n.innerHTML=e.messageHTML:n.appendChild(document.createTextNode(e.message)),n}function m(t,n){var i=t.state.lint,r=++i.waitingFor;function o(){r=-1,t.off("change",o)}t.on("change",o),n(t.getValue(),function(n,a){t.off("change",o),i.waitingFor==r&&(a&&n instanceof e&&(n=a),t.operation(function(){v(t,n)}))},i.linterOptions,t)}function g(t){var n=t.state.lint;if(n){var i=n.options,r=i.getAnnotations||t.getHelper(e.Pos(0,0),"lint");if(r)if(i.async||r.async)m(t,r);else{var o=r(t.getValue(),n.linterOptions,t);if(!o)return;o.then?o.then(function(e){t.operation(function(){v(t,e)})}):t.operation(function(){v(t,o)})}}}function v(e,i){var r=e.state.lint;if(r){var o=r.options;c(e);for(var a=h(i),s=0;s<a.length;++s){var l=a[s];if(l){var u=[];l=l.filter(function(e){return!(u.indexOf(e.message)>-1)&&u.push(e.message)});for(var m=null,g=r.hasGutter&&document.createDocumentFragment(),v=0;v<l.length;++v){var y=l[v],b=y.severity;b||(b="error"),m=p(m,b),o.formatAnnotation&&(y=o.formatAnnotation(y)),r.hasGutter&&g.appendChild(f(y)),y.to&&r.marked.push(e.markText(y.from,y.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+b,__annotation:y}))}r.hasGutter&&e.setGutterMarker(s,t,d(e,g,m,a[s].length>1,o.tooltips)),o.highlightLines&&e.addLineClass(s,"wrap",n+m)}}o.onUpdateLinting&&o.onUpdateLinting(i,a,e)}}function y(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(function(){g(e)},t.options.delay))}function b(e,t,n){for(var i=n.target||n.srcElement,r=document.createDocumentFragment(),o=0;o<t.length;o++){var s=t[o];r.appendChild(f(s))}a(e,n,r,i)}function k(e,t){var n=t.target||t.srcElement;if(/\bCodeMirror-lint-mark-/.test(n.className)){for(var i=n.getBoundingClientRect(),r=(i.left+i.right)/2,o=(i.top+i.bottom)/2,a=e.findMarksAt(e.coordsChar({left:r,top:o},"client")),s=[],l=0;l<a.length;++l){var c=a[l].__annotation;c&&s.push(c)}s.length&&b(e,s,t)}}e.defineOption("lint",!1,function(n,i,r){if(r&&r!=e.Init&&(c(n),!1!==n.state.lint.options.lintOnChange&&n.off("change",y),e.off(n.getWrapperElement(),"mouseover",n.state.lint.onMouseOver),clearTimeout(n.state.lint.timeout),delete n.state.lint),i){for(var o=n.getOption("gutters"),a=!1,l=0;l<o.length;++l)o[l]==t&&(a=!0);var u=n.state.lint=new s(n,i,a);u.options.lintOnChange&&n.on("change",y),0!=u.options.tooltips&&"gutter"!=u.options.tooltips&&e.on(n.getWrapperElement(),"mouseover",u.onMouseOver),g(n)}}),e.defineExtension("performLint",function(){g(this)})}(n(15237))},71581:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"main-require",description:"<main> must be present in <body> tag.",init(e,t){let n=0,i=!1,r=null;e.addListener("tagstart",e=>{const t=e.tagName.toLowerCase();"body"===t?(n++,1===n&&(i=!1,r=e)):"main"===t&&n>0&&(i=!0)}),e.addListener("tagend",e=>{"body"===e.tagName.toLowerCase()&&(1===n&&!i&&r&&t.warn("<main> must be present in <body> tag.",r.line,r.col,this,r.raw),n--,n<0&&(n=0))}),e.addListener("end",()=>{n>0&&!i&&r&&t.warn("<main> must be present in <body> tag.",r.line,r.col,this,r.raw)})}}},72230:function(){},72244:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"empty-tag-not-self-closed",description:"Empty tags must not use self closed syntax.",init(e,t){const n=e.makeMap("area,base,basefont,bgsound,br,col,frame,hr,img,input,isindex,link,meta,param,embed,track,command,source,keygen,wbr");e.addListener("tagstart",e=>{const i=e.tagName.toLowerCase();void 0!==n[i]&&e.close&&t.error(`The empty tag : [ ${i} ] must not use self closed syntax.`,e.line,e.col,this,e.raw)})}}},72439:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="m.75 23.249 22.5-22.5" fill="none" stroke="currentColor" stroke-width="2"/><path d="M23.25 23.249.75.749" fill="none" stroke="currentColor" stroke-width="2"/></svg>'},72592:function(){},72649:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M22.19 1.81a3.64 3.64 0 0 0-5.17.035l-14.5 14.5L.75 23.25l6.905-1.771 14.5-14.5a3.637 3.637 0 0 0 .035-5.169" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m16.606 2.26 5.134 5.134" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m2.521 16.344 5.139 5.13" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},73041:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HTMLParser=t.Reporter=t.HTMLRules=t.HTMLHint=void 0;const i=n(38476);t.HTMLParser=i.default;const r=n(40959);t.Reporter=r.default;const o=n(63024);t.HTMLRules=o;function a(e,t){return new Array(e+1).join(t||" ")}t.HTMLHint=new class{constructor(){this.rules={},this.defaultRuleset={"tagname-lowercase":!0,"attr-lowercase":!0,"attr-value-double-quotes":!0,"doctype-first":!0,"tag-pair":!0,"spec-char-escape":!0,"id-unique":!0,"src-not-empty":!0,"attr-no-duplication":!0,"title-require":!0}}addRule(e){this.rules[e.id]=e}verify(e,t=this.defaultRuleset){0===Object.keys(t).length&&(t=this.defaultRuleset),e=e.replace(/^\s*<!--\s*htmlhint\s+([^\r\n]+?)\s*-->/i,(e,n)=>(n.replace(/(?:^|,)\s*([^:,]+)\s*(?:\:\s*([^,\s]+))?/g,(e,n,i)=>(t[n]=!(void 0!==i&&i.length>0)||JSON.parse(i),"")),""));const n=this.parseDisableComments(e),o=new i.default,a=new r.default(e,t,n),s=this.rules;let l;for(const e in t)l=s[e],void 0!==l&&!1!==t[e]&&l.init(o,a,t[e]);return o.parse(e),a.messages}parseDisableComments(e){var t;const n={},i=e.split(/\r?\n/),r=/<!--\s*htmlhint-(disable|enable)(?:-next-line)?(?:\s+([^\r\n]+?))?\s*-->/gi,o=[];let a;for(;null!==(a=r.exec(e));){const n=e.substring(0,a.index).split(/\r?\n/).length,i=a[1].toLowerCase(),r=a[0].includes("-next-line"),s=null===(t=a[2])||void 0===t?void 0:t.trim();o.push({line:n,command:i,isNextLine:r,rulesStr:s})}let s=null,l=!1;for(let e=0;e<i.length;e++){const t=e+1,i=o.find(e=>e.line===t);if(i)if("disable"===i.command)if(i.isNextLine){const e=t+1;if(i.rulesStr){const t=i.rulesStr.split(/\s+/).filter(e=>e.length>0);n[e]||(n[e]={}),n[e].rules||(n[e].rules=new Set),t.forEach(t=>n[e].rules.add(t))}else n[e]||(n[e]={}),n[e].all=!0}else if(i.rulesStr){const e=i.rulesStr.split(/\s+/).filter(e=>e.length>0);s=new Set(e),l=!1}else s=null,l=!0;else"enable"===i.command&&(s=null,l=!1);(null!==s||l)&&(n[t]||(n[t]={}),l&&!0!==n[t].all?n[t].all=!0:s&&(n[t].rules||(n[t].rules=new Set),s.forEach(e=>n[t].rules.add(e))))}return n}format(e,t={}){const n=[],i={white:"",grey:"",red:"",reset:""};t.colors&&(i.white="[37m",i.grey="[90m",i.red="[31m",i.reset="[39m");const r=t.indent||0;return e.forEach(e=>{let t=e.evidence;const o=e.line,s=e.col,l=t.length;let c=s>41?s-40:1,u=t.length>s+60?s+60:l;s<41&&(u+=40-s+1),t=t.replace(/\t/g," ").substring(c-1,u),c>1&&(t=`...${t}`,c-=3),u<l&&(t+="..."),n.push(`${i.white+a(r)}L${o} |${i.grey}${t}${i.reset}`);let d=s-c;const p=t.substring(0,d).match(/[^\u0000-\u00ff]/g);null!==p&&(d+=p.length),n.push(`${i.white+a(r)+a(String(o).length+3+d)}^ ${i.red}${e.message} (${e.rule.id})${i.reset}`)}),n}},Object.values(o).forEach(e=>{t.HTMLHint.addRule(e)})},73093:function(e,t,n){"use strict";var i=n(94459);e.exports=function(e){return i(e)||0===e?e:e<0?-1:1}},73126:function(e,t,n){"use strict";var i=n(66743),r=n(69675),o=n(10076),a=n(13144);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new r("a function is required");return a(i,o,e)}},73146:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M.748 12a11.25 11.25 0 1 0 22.5 0 11.25 11.25 0 1 0-22.5 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m7.498 16.5 8.999-9" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m16.498 16.5-9.001-9" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},73514:function(e,t,n){ /*! * JSHint, by JSHint Community. * * Licensed under the MIT license. * * JSHint is a derivative work of JSLint: * * Copyright (c) 2002 Douglas Crockford (www.JSLint.com) * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom * the Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. * */ var i=n(78041),r=n(37007),o=n(75634),a=n(9072),s=n(42839).J,l=n(71444),c=n(39227).w,u=n(23531),d=n(64780),p=n(8520),h=n(42384),f=(n(96763),function(){"use strict";var e,t,n,m,g,v,y,b,k,w,_={"<":!0,"<=":!0,"==":!0,"===":!0,"!==":!0,"!=":!0,">":!0,">=":!0,"+":!0,"-":!0,"*":!0,"/":!0,"%":!0},C=[],x=new r.EventEmitter;function S(e,t,n){var r,o;return t?(r="",o=d.validNames):(r="unstable ",o=d.unstableNames),e=e.trim(),!!/^[+-]W\d{3}$/g.test(e)||(!(-1===o.indexOf(e)&&"jslint"!==n.type&&!i.has(d.removed,e))||(M("E001",n,r,e),!1))}function E(e,t){return!!e&&!(!e.identifier||e.value!==t)}function A(e,t){if(!t.reserved)return!1;var n=t.meta;if(n&&n.isFutureReservedWord){if(c.inES5()){if(!n.es5)return!1;if(t.isProperty)return!1}}else if(n&&n.es5&&!c.inES5())return!1;return!(n&&n.strictOnly&&c.inES5()&&!c.option.strict&&!c.isStrict())&&(!!("await"!==t.id||e&h.async||c.option.module)&&(!!("yield"!==t.id||e&h.yield)||c.isStrict()))}function D(e,t){return e.replace(/\{([^{}]*)\}/g,function(e,n){var i=t[n];return"string"==typeof i||"number"==typeof i?i:e})}function T(e,t){Object.keys(t).forEach(function(n){i.has(f.blacklist,n)||(e[n]=t[n])})}function I(){var e;!function(){if(c.option.enforceall){for(var e in d.bool.enforcing)void 0!==c.option[e]||d.noenforceall[e]||(c.option[e]=!0);for(var t in d.bool.relaxing)void 0===c.option[t]&&(c.option[t]=!1)}}(),(e=c.inferEsVersion())&&O("E059",c.tokens.next,"esversion",e),c.inES5()&&T(w,o.ecmaIdentifiers[5]),c.inES6()&&T(w,o.ecmaIdentifiers[6]),c.inES8()&&T(w,o.ecmaIdentifiers[8]),c.inES11()&&T(w,o.ecmaIdentifiers[11]),"global"===c.option.strict&&"globalstrict"in c.option&&O("E059",c.tokens.next,"strict","globalstrict"),c.option.module&&(c.inES6()||F("W134",c.tokens.next,"module",6)),c.option.regexpu&&(c.inES6()||F("W134",c.tokens.next,"regexpu",6)),c.option.couch&&T(w,o.couch),c.option.qunit&&T(w,o.qunit),c.option.rhino&&T(w,o.rhino),c.option.shelljs&&(T(w,o.shelljs),T(w,o.node)),c.option.typed&&T(w,o.typed),c.option.phantom&&T(w,o.phantom),c.option.prototypejs&&T(w,o.prototypejs),c.option.node&&(T(w,o.node),T(w,o.typed)),c.option.devel&&T(w,o.devel),c.option.dojo&&T(w,o.dojo),c.option.browser&&(T(w,o.browser),T(w,o.typed)),c.option.browserify&&(T(w,o.browser),T(w,o.typed),T(w,o.browserify)),c.option.nonstandard&&T(w,o.nonstandard),c.option.jasmine&&T(w,o.jasmine),c.option.jquery&&T(w,o.jquery),c.option.mootools&&T(w,o.mootools),c.option.worker&&T(w,o.worker),c.option.wsh&&T(w,o.wsh),c.option.yui&&T(w,o.yui),c.option.mocha&&T(w,o.mocha)}function O(e,t,n,i){var r=Math.floor(t.line/c.lines.length*100),o=a.errors[e].desc,s={name:"JSHintError",line:t.line,character:t.from,message:o+" ("+r+"% scanned).",raw:o,code:e,a:n,b:i};throw s.reason=D(o,s)+" ("+r+"% scanned).",s}function P(){var e=c.ignoredLines;i.isEmpty(e)||(f.errors=i.reject(f.errors,function(t){return e[t.line]}))}function F(e,t,n,i,r,o){var s,l,u,d;if(/^W\d{3}$/.test(e)){if(c.ignored[e])return;d=a.warnings[e]}else/E\d{3}/.test(e)?d=a.errors[e]:/I\d{3}/.test(e)&&(d=a.info[e]);return"(end)"===(t=t||c.tokens.next||{}).id&&(t=c.tokens.curr),l=t.line,s=t.from,(u={id:"(error)",raw:d.desc,code:d.code,evidence:c.lines[l-1]||"",line:l,character:s,scope:f.scope,a:n,b:i,c:r,d:o}).reason=D(d.desc,u),f.errors.push(u),P(),f.errors.filter(function(e){return/E\d{3}/.test(e.code)}).length>=c.option.maxerr&&O("E043",t),u}function $(e,t,n,i,r,o,a){return F(e,{line:t,from:n},i,r,o,a)}function M(e,t,n,i,r,o){F(e,t,n,i,r,o)}function L(e,t,n,i,r,o,a){return M(e,{line:t,from:n},i,r,o,a)}function N(e,t){f.internals.push({id:"(internal)",elem:e,token:t,code:t.value.replace(/([^\\])(\\*)\2\\n/g,"$1\n")})}function j(e,n){var r=e.body.split(",").map(function(e){return e.trim()}),o={};if("falls through"!==e.type){if("globals"===e.type)for(var a in r.forEach(function(t,n){var i=t.split(":"),a=i[0].trim();if("-"!==a&&a.length)"-"===a.charAt(0)?(a=a.slice(1),f.blacklist[a]=a,delete w[a]):o[a]=i.length>1&&"true"===i[1].trim();else{if(n>0&&n===r.length-1)return;M("E002",e)}}),T(w,o),o)i.has(o,a)&&(t[a]=e);"exported"===e.type&&r.forEach(function(t,n){if(t.length)c.funct["(scope)"].addExported(t);else{if(n>0&&n===r.length-1)return;M("E002",e)}}),"members"===e.type&&(k=k||{},r.forEach(function(e){var t=e.charAt(0);t!==e.charAt(e.length-1)||'"'!==t&&"'"!==t||(e=e.substr(1,e.length-2).replace('\\"','"')),k[e]=!1}));var s=["maxstatements","maxparams","maxdepth","maxcomplexity","maxerr","maxlen","indent"];"jshint"!==e.type&&"jslint"!==e.type&&"jshint.unstable"!==e.type||(r.forEach(function(t){var n,i=t.split(":"),r=i[0].trim(),o=i.length>1?i[1].trim():"";if(S(r,"jshint.unstable"!==e.type,e))if(s.indexOf(r)>=0)if("false"!==o){if("number"!=typeof(n=+o)||!isFinite(n)||n<=0||Math.floor(n)!==n)return void M("E032",e,o);c.option[r]=n}else c.option[r]="indent"===r&&4;else{if("validthis"===r)return c.funct["(global)"]?void M("E009"):"true"!==o&&"false"!==o?void M("E002",e):void(c.option.validthis="true"===o);if("quotmark"!==r)if("shadow"!==r)if("unused"!==r)if("latedef"!==r)if("ignore"!==r)if("strict"!==r)if("module"===r&&(Pe(c.funct)||M("E055",e,"module")),"esversion"!==r){var a,l=/^([+-])(W\d{3})$/g.exec(r);if(l)c.ignored[l[2]]="-"===l[1];else"true"!==o&&"false"!==o?M("E002",e):"jslint"===e.type?(a=d.renamed[r]||r,c.option[a]="true"===o,void 0!==d.inverted[a]&&(c.option[a]=!c.option[a])):"jshint.unstable"===e.type?c.option.unstable[r]="true"===o:c.option[r]="true"===o}else{switch(o){case"3":case"5":case"6":case"7":case"8":case"9":case"10":case"11":c.option.moz=!1,c.option.esversion=+o;break;case"2015":case"2016":case"2017":case"2018":case"2019":case"2020":c.option.moz=!1,c.option.esversion=+o-2009;break;default:M("E002",e)}Pe(c.funct)||M("E055",e,"esversion")}else switch(o){case"true":c.option.strict=!0;break;case"false":c.option.strict=!1;break;case"global":case"implied":c.option.strict=o;break;default:M("E002",e)}else if("line"===o)c.ignoredLines[e.line]=!0,P();else M("E002",e);else switch(o){case"true":c.option.latedef=!0;break;case"false":c.option.latedef=!1;break;case"nofunc":c.option.latedef="nofunc";break;default:M("E002",e)}else switch(o){case"true":c.option.unused=!0;break;case"false":c.option.unused=!1;break;case"vars":case"strict":c.option.unused=o;break;default:M("E002",e)}else switch(o){case"true":c.option.shadow=!0;break;case"outer":c.option.shadow="outer";break;case"false":case"inner":c.option.shadow="inner";break;default:M("E002",e)}else switch(o){case"true":case"false":c.option.quotmark="true"===o;break;case"double":case"single":c.option.quotmark=o;break;default:M("E002",e)}}}),I())}else n.caseFallsThrough=!0}function B(e){var t,n=e||0,i=v.length;if(n<i)return v[n];for(;i<=n;){if(!(t=y.token()))return v.length?v[i-1]:c.tokens.next;v[i]=t,i+=1}return t}function R(){var e,t=0;do{e=B(t++)}while("(endline)"===e.id);return e}function V(e,t){var n=c.tokens.next;for(e&&n.id!==e&&(t?"(end)"===n.id?M("E019",t,t.id):M("E020",n,e,t.id,t.line,n.value):"(identifier)"===n.type&&n.value===e||M("E021",n,e,n.value)),c.tokens.prev=c.tokens.curr,c.tokens.curr=c.tokens.next;;){if(c.tokens.next=v.shift()||y.token(),c.tokens.next||O("E041",c.tokens.curr),"(end)"===c.tokens.next.id||"(error)"===c.tokens.next.id)return;if(c.tokens.next.check&&c.tokens.next.check(),c.tokens.next.isSpecial)j(c.tokens.next,c.tokens.curr);else if("(endline)"!==c.tokens.next.id)break}}function q(e,t,n){return arguments.length<=1&&(t=c.tokens.curr,n=c.tokens.next),!!("in"===n.id&&e&h.noin)||(";"===n.id||"}"===n.id||":"===n.id||(n.infix===t.infix||"yield"===t.id&&t.rbp<n.rbp)&&!z(t,n))}function H(e,t){var n,i,r=!1,o=!1,a=e&h.initial;if(e&=~h.initial,c.nameStack.push(),"(end)"===c.tokens.next.id&&M("E006",c.tokens.curr),V(),a&&(c.funct["(verb)"]=c.tokens.curr.value,c.tokens.curr.beginsStmt=!0),i=c.tokens.curr,a&&i.fud&&(!i.useFud||i.useFud(e)))n=c.tokens.curr.fud(e);else for(c.tokens.curr.nud?n=c.tokens.curr.nud(e,t):M("E030",c.tokens.curr,c.tokens.curr.id);t<c.tokens.next.lbp&&!q(e);)r="Array"===c.tokens.curr.value,o="Object"===c.tokens.curr.value,n&&(n.value||n.first&&n.first.value)&&("new"!==n.value||n.first&&n.first.value&&"."===n.first.value)&&(r=!1,n.value!==c.tokens.curr.value&&(o=!1)),V(),r&&"("===c.tokens.curr.id&&")"===c.tokens.next.id&&F("W009",c.tokens.curr),o&&"("===c.tokens.curr.id&&")"===c.tokens.next.id&&F("W010",c.tokens.curr),n&&c.tokens.curr.led?n=c.tokens.curr.led(e,n):M("E033",c.tokens.curr,c.tokens.curr.id);return c.nameStack.pop(),n}function z(e,t){return e.line===(t.startLine||t.line)}function U(e,t){c.option.laxbreak||z(e,t)||F("W014",t,t.value)}function W(e){z(e,c.tokens.next)||F("E022",e,e.value)}function G(e){var t=c.tokens.prev,n=c.tokens.curr;if(e=e||{},z(t,n)||c.option.laxcomma||(G.first&&(F("I001",n),G.first=!1),F("W014",t,n.value)),c.tokens.next.identifier&&(!e.property||!c.inES5()))switch(c.tokens.next.value){case"break":case"case":case"catch":case"continue":case"default":case"do":case"else":case"finally":case"for":case"if":case"in":case"instanceof":case"return":case"switch":case"throw":case"try":case"var":case"let":case"while":case"with":return M("E024",c.tokens.next,c.tokens.next.value),!1}if("(punctuator)"===c.tokens.next.type)switch(c.tokens.next.value){case"}":case"]":case",":case")":return!!e.allowTrailing||(M("E024",c.tokens.next,c.tokens.next.value),!1)}return!0}function K(e,t){var n=c.syntax[e];return n&&"object"==typeof n||(c.syntax[e]=n={id:e,lbp:t,rbp:t,value:e}),n}function Q(e){var t=K(e,0);return t.delim=!0,t}function Y(e,t){var n=Q(e);return n.identifier=n.reserved=!0,n.fud=t,n}function J(e,t){var n=Y(e,t);return n.block=!0,n}function X(e){var t=e.id.charAt(0);return(t>="a"&&t<="z"||t>="A"&&t<="Z")&&(e.identifier=e.reserved=!0),e}function Z(e,t){var n=K(e,150);return X(n),n.nud="function"==typeof t?t:function(e){return this.arity="unary",this.right=H(e,150),"++"!==this.id&&"--"!==this.id||(c.option.plusplus&&F("W016",this,this.id),this.right&&ce(e,this.right,this)),this},n}function ee(e,t){var n=K(e,0);return n.type=e,n.nud=t,n}function te(e,t){var n=ee(e,t);return n.identifier=!0,n.reserved=!0,n}function ne(e,t){var n=ee(e,c.syntax["(identifier)"].nud);return(t=t||{}).isFutureReservedWord=!0,n.value=e,n.identifier=!0,n.reserved=!0,n.meta=t,n}function ie(e,t,n,i){var r=K(e,n);return X(r),r.infix=!0,r.led=function(r,o){return i||U(c.tokens.prev,c.tokens.curr),"in"!==e&&"instanceof"!==e||"!"!==o.id||F("W018",o,"!"),"function"==typeof t?t(r,o,this):(this.left=o,this.right=H(r,n),this)},r}function re(e,t){var n=K(e,100);return n.infix=!0,n.led=function(e,n){U(c.tokens.prev,c.tokens.curr),this.left=n;var i=this.right=H(e,100);return E(n,"NaN")||E(i,"NaN")?F("W019",this):t&&t.apply(this,[e,n,i]),n&&i||O("E041",c.tokens.curr),"!"===n.id&&F("W018",n,"!"),"!"===i.id&&F("W018",i,"!"),this},n}function oe(e){return"unary"===e.arity&&"++"!==e.id&&"--"!==e.id}var ae={};function se(e,t,n){var r;return!n.option.notypeof&&(!(!e||!t)&&(r=n.inES6()?ae.es6:ae.es3,"(identifier)"===t.type&&"typeof"===t.value&&"(string)"===e.type&&("bigint"===e.value?(n.inES11()||F("W119",e,"BigInt","11"),!1):!i.includes(r,e.value))))}function le(e,t){var n=!1;return"this"===e.type&&null===t.funct["(context)"]?n=!0:"(identifier)"===e.type&&(t.option.node&&"global"===e.value?n=!0:!t.option.browser||"window"!==e.value&&"document"!==e.value||(n=!0)),n}function ce(e,t,n,i){var r=i&&i.allowDestructuring;if(n=n||t,c.option.freeze){var o=function(e){var t=["Array","ArrayBuffer","Boolean","Collator","DataView","Date","DateTimeFormat","Error","EvalError","Float32Array","Float64Array","Function","Infinity","Intl","Int16Array","Int32Array","Int8Array","Iterator","Number","NumberFormat","Object","RangeError","ReferenceError","RegExp","StopIteration","String","SyntaxError","TypeError","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","URIError"],n=function e(t){if("object"==typeof t)return"prototype"===t.right?t:e(t.left)}(e);if(n)return function(e){for(;!e.identifier&&"object"==typeof e.left;)e=e.left;if(e.identifier&&t.indexOf(e.value)>=0&&c.funct["(scope)"].isPredefined(e.value))return e.value}(n)}(t);o&&F("W121",t,o)}if(t.identifier&&!t.isMetaProperty&&c.funct["(scope)"].block.reassign(t.value,t),"."===t.id)return t.left&&("arguments"!==t.left.value||c.isStrict())||F("W143",n),c.nameStack.set(c.tokens.prev),!0;if("{"===t.id||"["===t.id)return r&&t.destructAssign||("{"!==t.id&&t.left?"arguments"!==t.left.value||c.isStrict()||F("W143",n):F("E031",n)),"["===t.id&&c.nameStack.set(t.right),!0;if(t.identifier&&!A(e,t)&&!t.isMetaProperty){if("exception"===c.funct["(scope)"].bindingtype(t.value)&&F("W022",t),"eval"===t.value&&c.isStrict())return M("E031",n),!1;if("arguments"===t.value){if(c.isStrict())return M("E031",n),!1;F("W143",n)}return c.nameStack.set(t),!0}return M("E031",n),!1}function ue(e,t){var n=ie(e,"function"==typeof t?t:function(e,t,n){return n.left=t,ce(e,t,n,{allowDestructuring:!0}),n.right=H(e,10),n},20);return n.exps=!0,n.assign=!0,n}function de(e,t,n){var i=K(e,n);return X(i),i.infix=!0,i.led="function"==typeof t?t:function(e,t){return c.option.bitwise&&F("W016",this,this.id),this.left=t,this.right=H(e,n),this},i}function pe(e){return K(e,20).exps=!0,ie(e,function(e,t,n){return c.option.bitwise&&F("W016",n,n.id),ce(e,t,n),n.right=H(e,10),n},20)}function he(e){var t=K(e,150);return t.led=function(e,t){return c.option.plusplus&&F("W016",this,this.id),ce(e,t,this),this.left=t,this},t}function fe(e,t,n){if(c.tokens.next.identifier){n||V();var i=c.tokens.curr;return!A(e,i)||t&&c.inES5()||F("W024",c.tokens.curr,c.tokens.curr.id),i.value}}function me(e){if(!rt(c.tokens.next,"..."))return!1;if(c.inES6(!0)||F("W119",c.tokens.next,e+" operator","6"),V(),rt(c.tokens.next,"..."))for(F("E024",c.tokens.next,"...");rt(c.tokens.next,"...");)V();return!0}function ge(e,t){var n=fe(e,t,!1);if(n)return n;M("E030",c.tokens.next,c.tokens.next.value),";"!==c.tokens.next.id&&V()}function ve(e){var t,n=0;if(";"===c.tokens.next.id&&!e.inBracelessBlock)for(;;){do{t=B(n),n+=1}while("(end)"!==t.id&&"(comment)"===t.id);if(t.reach)return;if("(endline)"!==t.id){if(i(t,n)){!0===c.option.latedef&&F("W026",t);break}F("W027",t,t.value,e.value);break}}function i(e,t){return"function"===e.id||("async"===e.id?"function"===(e=B(t)).id:void 0)}}function ye(e){if(";"!==c.tokens.next.id){if(c.tokens.next.isUnclosed)return V();var t=z(c.tokens.curr,c.tokens.next)&&"(end)"!==c.tokens.next.id,n=rt(c.tokens.next,"}");!t||n||"do"===e.id&&c.inES6(!0)?c.option.asi||n&&t&&c.option.lastsemic||$("W033",c.tokens.curr.line,c.tokens.curr.character):L("E058",c.tokens.curr.line,c.tokens.curr.character)}else V(";")}function be(e){var t,n=g,i=c.tokens.next,r=!1;if(e|=h.initial,";"!==i.id){var o=A(e,i);return o&&i.meta&&i.meta.isFutureReservedWord&&!i.fud&&(F("W024",i,i.id),o=!1),i.identifier&&!o&&":"===B().id&&(V(),V(":"),r=!0,c.funct["(scope)"].stack(),c.funct["(scope)"].block.addLabel(i.value,{token:c.tokens.curr}),c.tokens.next.labelled||"{"===c.tokens.next.value||F("W028",c.tokens.next,i.value,c.tokens.next.value),i=c.tokens.next),"{"===i.id?(_e(e,!0,!0,!1,!1,"case"===c.funct["(verb)"]&&":"===c.tokens.curr.value),void(r&&c.funct["(scope)"].unstack())):(!(t=H(e,0))||t.identifier&&"function"===t.value||"(punctuator)"===t.type&&t.left&&t.left.identifier&&"function"===t.left.value||!c.isStrict()&&c.stmtMissingStrict()&&F("E007"),i.block||(c.option.expr||t&&t.exps?c.option.nonew&&t&&t.left&&"("===t.id&&"new"===t.left.id&&F("W031",i):F("W030",c.tokens.curr),ye(i)),g=n,r&&c.funct["(scope)"].unstack(),t)}V(";")}function ke(e){for(var t,n=[];!c.tokens.next.reach&&"(end)"!==c.tokens.next.id;)";"===c.tokens.next.id?((!(t=B())||"("!==t.id&&"["!==t.id)&&F("W032"),V(";")):n.push(be(e));return n}function we(){for(var e=c.tokens.next;"(string)"===c.tokens.next.id;){var t=R();if(!q(0,e,t))break;e=t,V();var n=c.tokens.curr.value;(c.directive[n]||"use strict"===n&&"implied"===c.option.strict)&&F("W034",c.tokens.curr,n),"use strict"===n&&c.inES7()&&!c.funct["(global)"]&&!1===c.funct["(hasSimpleParams)"]&&M("E065",c.tokens.curr),c.directive[n]=c.tokens.curr,ye(e)}c.isStrict()&&(c.option.undef=!0)}function _e(e,t,n,i,r,o){var a,s,l,u,d=m,p=g;m=t,l=c.tokens.next;var f=c.funct["(metrics)"];if(f.nestedBlockDepth+=1,f.verifyMaxNestedBlockDepthPerFunction(),"{"===c.tokens.next.id){if(V("{"),c.funct["(scope)"].stack(),"}"!==c.tokens.next.id){for(g+=c.option.indent;!t&&c.tokens.next.from>g;)g+=c.option.indent;if(i){for(u in s={},c.directive)s[u]=c.directive[u];we(),c.funct["(isStrict)"]=c.isStrict(),c.option.strict&&c.funct["(context)"]["(global)"]&&(s["use strict"]||c.isStrict()||F("E007"))}a=ke(e),f.statementCount+=a.length,g-=c.option.indent}else i&&(c.funct["(isStrict)"]=c.isStrict());V("}",l),i&&(c.funct["(scope)"].validateParams(r),s&&(c.directive=s)),c.funct["(scope)"].unstack(),g=p}else if(t){c.funct["(scope)"].stack(),n&&!c.option.curly||F("W116",c.tokens.next,"{",c.tokens.next.value);var v="if"===c.funct["(verb)"]||"else"===c.tokens.curr.id;c.tokens.next.inBracelessBlock=!0,g+=c.option.indent,a=[be(e)],g-=c.option.indent,!a[0]||!a[0].declaration||v&&"function"===a[0].id||M("E048",a[0],a[0].id[0].toUpperCase()+a[0].id.slice(1)),c.funct["(scope)"].unstack()}else if(i){c.funct["(scope)"].stack(),!n||r||c.inMoz()||M("W118",c.tokens.curr,"function closure expressions"),r&&c.funct["(scope)"].validateParams(!0);var y=H(e,10);c.option.noreturnawait&&e&h.async&&y.identifier&&"await"===y.value&&F("W146",y),c.option.strict&&c.funct["(context)"]["(global)"]&&(c.isStrict()||F("E007")),c.funct["(scope)"].unstack()}else M("E021",c.tokens.next,"{",c.tokens.next.value);switch(c.funct["(verb)"]){case"break":case"continue":case"return":case"throw":if(o)break;default:c.funct["(verb)"]=null}return m=d,!t||!c.option.noempty||a&&0!==a.length||F("W035",c.tokens.prev),f.nestedBlockDepth-=1,a}function Ce(e){k&&"boolean"!=typeof k[e]&&F("W036",c.tokens.curr,e),"number"==typeof b[e]?b[e]+=1:b[e]=1}ae.legacy=["xml","unknown"],ae.es3=["undefined","boolean","number","string","function","object"],ae.es3=ae.es3.concat(ae.legacy),ae.es6=ae.es3.concat("symbol","bigint"),ee("(number)",function(){return"."===c.tokens.next.id&&F("W005",this),this}),ee("(string)",function(){return this}),c.syntax["(identifier)"]={type:"(identifier)",lbp:0,identifier:!0,nud:function(e){var t=this.value,n="=>"===c.tokens.next.id;return A(e,this)?F("W024",this,t):n||c.funct["(comparray)"].check(t)||c.funct["(scope)"].block.use(t,c.tokens.curr),this},led:function(){M("E033",c.tokens.next,c.tokens.next.value)}};var xe,Se={identifier:!1,template:!0};c.syntax["(template)"]=i.extend({lbp:155,type:"(template)",nud:Fe,led:Fe,noSubst:!1},Se),c.syntax["(template middle)"]=i.extend({lbp:0,type:"(template middle)",noSubst:!1},Se),c.syntax["(template tail)"]=i.extend({lbp:0,type:"(template tail)",tail:!0,noSubst:!1},Se),c.syntax["(no subst template)"]=i.extend({lbp:155,type:"(template)",nud:Fe,led:Fe,noSubst:!0,tail:!0},Se),ee("(regexp)",function(){return this}),Q("(endline)"),(xe=Q("(begin)")).line=xe.from=0,Q("(end)").reach=!0,Q("(error)").reach=!0,Q("}").reach=!0,Q(")"),Q("]"),Q('"').reach=!0,Q("'").reach=!0,Q(";"),Q(":").reach=!0,Q("#"),te("else"),te("case").reach=!0,te("catch"),te("default").reach=!0,te("finally"),te("true",function(){return this}),te("false",function(){return this}),te("null",function(){return this}),te("this",function(){return c.isStrict()&&!c.funct["(method)"]&&!c.option.validthis&&(c.funct["(statement)"]&&c.funct["(name)"].charAt(0)>"Z"||c.funct["(global)"])&&F("W040",this),this}),te("super",function(){return Xe.call(c.tokens.curr,this),this}).rbp=161,ue("=","assign"),ue("+=","assignadd"),ue("-=","assignsub"),ue("*=","assignmult"),ue("/=","assigndiv").nud=function(){M("E014")},ue("%=","assignmod"),ue("**=",function(e,t,n){return c.inES7()||F("W119",n,"Exponentiation operator","7"),n.left=t,ce(e,t,n),n.right=H(e,10),n}),pe("&="),pe("|="),pe("^="),pe("<<="),pe(">>="),pe(">>>="),ie(",",function(e,t,n){return c.option.nocomma&&F("W127",n),n.left=t,G()?n.right=H(e,10):n.right=null,n},10,!0),ie("?",function(e,t,n){return Le(),n.left=t,n.right=H(e&~h.noin,10),V(":"),H(e,10),n},30),ie("||",function(e,t,n){return Le(),n.left=t,n.right=H(e,40),n},40);ie("&&",function(e,t,n){return Le(),n.left=t,n.right=H(e,50),n},50),ie("??",function(e,t,n){t.paren||"||"!==t.id&&"&&"!==t.id||M("E024",n,"??"),c.inES11()||F("W119",n,"nullish coalescing","11"),Le(),n.left=t;var i=n.right=H(e,39);return i?i.paren||"||"!==i.id&&"&&"!==i.id||M("E024",n.right,n.right.id):M("E024",c.tokens.next,c.tokens.next.id),n},39),ie("**",function(e,t,n){return c.inES7()||F("W119",n,"Exponentiation operator","7"),!t.paren&&oe(t)&&M("E024",n,"**"),n.left=t,n.right=H(e,n.rbp),n},150),c.syntax["**"].rbp=140,de("|","bitor",70),de("^","bitxor",80),de("&","bitand",90),re("==",function(e,t,n){switch(!0){case!(c.option.eqnull&&("null"===(t&&t.value)||"null"===(n&&n.value)))&&c.option.eqeqeq:this.from=this.character,F("W116",this,"===","==");break;case se(n,t,c):F("W122",this,n.value);break;case se(t,n,c):F("W122",this,t.value)}return this}),re("===",function(e,t,n){return se(n,t,c)?F("W122",this,n.value):se(t,n,c)&&F("W122",this,t.value),this}),re("!=",function(e,t,n){return!(c.option.eqnull&&("null"===(t&&t.value)||"null"===(n&&n.value)))&&c.option.eqeqeq?(this.from=this.character,F("W116",this,"!==","!=")):se(n,t,c)?F("W122",this,n.value):se(t,n,c)&&F("W122",this,t.value),this}),re("!==",function(e,t,n){return se(n,t,c)?F("W122",this,n.value):se(t,n,c)&&F("W122",this,t.value),this}),re("<"),re(">"),re("<="),re(">="),de("<<","shiftleft",120),de(">>","shiftright",120),de(">>>","shiftrightunsigned",120),ie("in","in",120),ie("instanceof",function(e,t,n){var i,r=c.funct["(scope)"];return n.left=t,n.right=i=H(e,120),i?(("(number)"===i.id||"(string)"===i.id||"null"===i.value||"undefined"===i.value&&!r.has("undefined")||"unary"===i.arity||"{"===i.id||"["===i.id&&!i.right||"(regexp)"===i.id||"(template)"===i.id&&!i.tag)&&M("E060"),"function"===i.id&&F("W139"),n):n},120),ie("+",function(e,t,n){var i,r=c.tokens.next;return n.left=t,n.right=i=H(e,130),t&&i&&"(string)"===t.id&&"(string)"===i.id?(t.value+=i.value,t.character=i.character,!c.option.scripturl&&l.javascriptURL.test(t.value)&&F("W050",t),t):("+"!==r.id&&"++"!==r.id||F("W007",n.right),n)},130),Z("+",function(e){var t=c.tokens.next;return this.arity="unary",this.right=H(e,150),"+"!==t.id&&"++"!==t.id||F("W007",this.right),this}),ie("-",function(e,t,n){var i=c.tokens.next;return n.left=t,n.right=H(e,130),"-"!==i.id&&"--"!==i.id||F("W006",n.right),n},130),Z("-",function(e){var t=c.tokens.next;return this.arity="unary",this.right=H(e,150),"-"!==t.id&&"--"!==t.id||F("W006",this.right),this}),ie("*","mult",140),ie("/","div",140),ie("%","mod",140),he("++"),Z("++","preinc"),c.syntax["++"].exps=!0,he("--"),Z("--","predec"),c.syntax["--"].exps=!0,Z("delete",function(e){this.arity="unary";var t=H(e,150);return t?("."!==t.id&&"["!==t.id&&F("W051"),this.first=t,t.identifier&&!c.isStrict()&&(t.forgiveUndef=!0),this):this}).exps=!0,Z("~",function(e){return c.option.bitwise&&F("W016",this,"~"),this.arity="unary",this.right=H(e,150),this}),ie("..."),Z("!",function(e){return this.arity="unary",this.right=H(e,150),this.right||O("E041",this),!0===_[this.right.id]&&F("W018",this,"!"),this}),Z("typeof",function(e){this.arity="unary";var t=H(e,150);return this.first=this.right=t,t||O("E041",this),t.identifier&&(t.forgiveUndef=!0),this}),Z("new",function(e){var t=Be(e,"target",function(){c.inES6(!0)||F("W119",c.tokens.prev,"new.target","6");for(var e,t=c.funct;t&&(e=!t["(global)"],t["(arrow)"]);)t=t["(context)"];e||F("W136",c.tokens.prev,"new.target")});if(t)return t;var n,i=c.tokens.next,r=H(e,155);if(!r)return this;if(!r.paren&&r.rbp>160&&M("E024",i,i.value),"function"!==r.id)if(r.identifier)switch(r.value){case"Number":case"String":case"Boolean":case"Math":case"JSON":F("W053",c.tokens.prev,r.value);break;case"Symbol":c.inES6()&&F("W053",c.tokens.prev,r.value);break;case"Function":c.option.evil||F("W054");break;case"Date":case"RegExp":case"this":break;default:n=r.value.substr(0,1),c.option.newcap&&(n<"A"||n>"Z")&&!c.funct["(scope)"].isPredefined(r.value)&&F("W055",c.tokens.curr)}else"?."!==r.id||r.paren?"."!==r.id&&"["!==r.id&&"("!==r.id&&F("W056",c.tokens.curr):M("E024",r,"?.");else c.option.supernew||F("W057",this);return"("===c.tokens.next.id||c.option.supernew||F("W058",c.tokens.curr,c.tokens.curr.value),this.first=this.right=r,this}),c.syntax.new.exps=!0;var Ee=J("class",function(e){var t,n;return c.inES6()||F("W104",c.tokens.curr,"class","6"),c.inClassBody=!0,c.tokens.next.identifier&&"extends"!==c.tokens.next.value&&(t=(n=c.tokens.next).value,ge(e),c.funct["(scope)"].addbinding(t,{type:"class",initialized:!1,token:n})),"extends"===c.tokens.next.value&&(V("extends"),H(e,0)),n?(this.name=n,c.funct["(scope)"].initialize(t)):this.name=null,c.funct["(scope)"].stack(),Ae(this,e),this});function Ae(e,t){var n,i,r,o,a,s,l=Object.create(null);for("{"===c.tokens.next.value?V("{"):(F("W116",c.tokens.curr,"identifier",c.tokens.next.type),V());"}"!==c.tokens.next.value;)switch(o=!1,a=!1,t&=~h.preAsync,"static"!==c.tokens.next.value||rt(B(),"(")||(o=!0,V()),"async"===c.tokens.next.value&&(rt(B(),"(")||(t|=h.preAsync,V(),W(c.tokens.curr),rt(c.tokens.next,"*")&&(a=!0,V("*"),c.inES9()||F("W119",c.tokens.next,"async generators","9")),c.inES8()||F("W119",c.tokens.curr,"async functions","8"))),"*"===c.tokens.next.value&&(a=!0,V()),"set"!==(r=c.tokens.next).value&&"get"!==r.value||rt(B(),"(")?i=null:(a&&M("E024",r,r.value),i=r.value,V(),r=c.tokens.next,o||"constructor"!==r.value?o&&"prototype"===r.value&&M("E049",r,"static class "+i+"ter method",r.value):M("E049",r,"class "+i+"ter method",r.value)),r.value){case";":F("W032",r),V();break;case"constructor":o?(et(l,n=Ie(t),r,!0,o),De(e,t,n,a)):(a||t&h.preAsync||s?M("E024",r,r.value):s=!i&&!o,V(),De(e,t,c.nameStack.infer()));break;case"[":De(e,t,n=nt(t),a);break;default:if(void 0===(n=Ie(t))){M("E024",r,r.value),V();break}i?(tt(i,l,n,r,!0,o),n=c.nameStack.infer()):(o&&"prototype"===n&&M("E049",r,"static class method",n),et(l,n,r,!0,o)),De(e,t,n,a)}V("}"),je(l),c.inClassBody=!1,c.funct["(scope)"].unstack()}function De(e,t,n,i){if(i&&(c.inES6()||F("W119",c.tokens.curr,"function*","6")),"("!==c.tokens.next.value){if(M("E054",c.tokens.next,c.tokens.next.value),V(),"{"===c.tokens.next.value)return V(),void("}"===c.tokens.next.value&&(F("W116",c.tokens.next,"(",c.tokens.next.value),V(),ge(t),V()));for(;"("!==c.tokens.next.value;)V()}$e(t,{name:n,type:i?"generator":null,isMethod:!0,statement:e})}function Te(e){var t,n=c.tokens.next,i=-1;do{"("===n.value?e+=1:")"===n.value&&(e-=1),t=n,n=B(i+=1)}while((0!==e||")"!==t.value)&&"(end)"!==n.type);return n}function Ie(e){var t=fe(e,!0);return t||("(string)"===c.tokens.next.id?(t=c.tokens.next.value,V()):"(number)"===c.tokens.next.id&&(t=c.tokens.next.value.toString(),V())),"hasOwnProperty"===t&&F("W001"),t}function Oe(e,t,n){var r={"(name)":e,"(breakage)":0,"(loopage)":0,"(isStrict)":"unknown","(global)":!1,"(line)":null,"(character)":null,"(metrics)":null,"(statement)":null,"(context)":null,"(scope)":null,"(comparray)":null,"(yielded)":null,"(arrow)":null,"(async)":null,"(params)":null};return t&&i.extend(r,{"(line)":t.line,"(character)":t.character,"(metrics)":Me(t)}),i.extend(r,n),r["(context)"]&&(r["(scope)"]=r["(context)"]["(scope)"],r["(comparray)"]=r["(context)"]["(comparray)"]),r}function Pe(e){return e["(global)"]&&!e["(verb)"]}function Fe(e,t){var n=this.context,i=this.noSubst,r=this.depth,o="number"==typeof t?null:t;if(!i)for(;!a();)!c.tokens.next.template||c.tokens.next.depth>r?H(e,0):V();return{id:"(template)",type:"(template)",tag:o};function a(){if(c.tokens.curr.template&&c.tokens.curr.tail&&c.tokens.curr.context===n)return!0;var e=c.tokens.next.template&&c.tokens.next.tail&&c.tokens.next.context===n;return e&&V(),e||c.tokens.next.isUnclosed}}function $e(e,t){var r,o,a,s,l,u,d,p,f,m=c.option,g=c.ignored,v=e&h.preAsync;t&&(a=t.name,s=t.statement,l=t.classExprBinding,u="generator"===t.type,d="arrow"===t.type,p=t.isMethod,f=t.ignoreLoopFunc),e&=~h.noin,e&=~h.tryClause,v?e|=h.async:e&=~h.async,u?e|=h.yield:d||(e&=~h.yield),e&=~h.preAsync,c.option=Object.create(c.option),c.ignored=Object.create(c.ignored),c.funct=Oe(a||c.nameStack.infer(),c.tokens.next,{"(statement)":s,"(context)":c.funct,"(arrow)":d,"(method)":p,"(async)":v}),r=c.funct,o=c.tokens.curr,n.push(c.funct),c.funct["(scope)"].stack("functionouter");var y=!p&&(a||l);y&&c.funct["(scope)"].block.add(y,l?"class":"function",c.tokens.curr,!1),d||c.funct["(scope)"].funct.add("arguments","var",o,!1),c.funct["(scope)"].stack("functionparams");var b=function(e,t){var n,r,o,a=[],s=[],l=!1,u=!1,d=0,p=t&&t.loneArg,h=!1;if(p&&!0===p.identifier)return c.funct["(scope)"].addParam(p.value,p),{arity:1,params:[p.value],isSimple:!0};if(n=c.tokens.next,t&&t.parsedOpening||V("("),")"!==c.tokens.next.id)for(;;){d++;var f=[];if(u=me("rest"),i.includes(["{","["],c.tokens.next.id))for(o in h=!0,s=Re(e))(o=s[o]).id&&(a.push(o.id),f.push([o.id,o.token]));else if(r=ge(e))a.push(r),f.push([r,c.tokens.curr]);else for(;!it(c.tokens.next,[",",")"]);)V();if(l&&"="!==c.tokens.next.id&&M("W138",c.tokens.curr),"="===c.tokens.next.id&&(c.inES6()||F("W119",c.tokens.next,"default parameters","6"),u&&M("E062",c.tokens.next),V("="),l=!0,H(e,10)),f.forEach(m),","===c.tokens.next.id&&(u&&F("W131",c.tokens.next),V(","),G({allowTrailing:!0})),")"===c.tokens.next.id)return","!==c.tokens.curr.id||c.inES8()||F("W119",c.tokens.curr,"Trailing comma in function parameters","8"),V(")",n),{arity:d,params:a,isSimple:!h&&!u&&!l}}else V(")");function m(e){c.funct["(scope)"].addParam.apply(c.funct["(scope)"],e)}}(e,t);return b?(c.funct["(params)"]=b.params,c.funct["(hasSimpleParams)"]=b.isSimple,c.funct["(metrics)"].arity=b.arity,c.funct["(metrics)"].verifyMaxParametersPerFunction()):(c.funct["(params)"]=[],c.funct["(metrics)"].arity=0,c.funct["(hasSimpleParams)"]=!0),d&&(e&=~h.yield,c.inES6(!0)||F("W119",c.tokens.curr,"arrow function syntax (=>)","6"),t.loneArg||V("=>")),_e(e,!1,!0,!0,d),c.option.noyield||!u||c.funct["(yielded)"]||F("W124",c.tokens.curr),c.funct["(metrics)"].verifyMaxStatementsPerFunction(),c.funct["(metrics)"].verifyMaxComplexityPerFunction(),c.funct["(unusedOption)"]=c.option.unused,c.option=m,c.ignored=g,c.funct["(last)"]=c.tokens.curr.line,c.funct["(lastcharacter)"]=c.tokens.curr.character,c.funct["(scope)"].unstack(),c.funct["(scope)"].unstack(),c.funct=c.funct["(context)"],f||c.option.loopfunc||!c.funct["(loopage)"]||r["(outerMutables)"]&&F("W083",o,r["(outerMutables)"].join(", ")),r}function Me(e){return{statementCount:0,nestedBlockDepth:-1,ComplexityCount:1,arity:0,verifyMaxStatementsPerFunction:function(){c.option.maxstatements&&this.statementCount>c.option.maxstatements&&F("W071",e,this.statementCount)},verifyMaxParametersPerFunction:function(){i.isNumber(c.option.maxparams)&&this.arity>c.option.maxparams&&F("W072",e,this.arity)},verifyMaxNestedBlockDepthPerFunction:function(){c.option.maxdepth&&this.nestedBlockDepth>0&&this.nestedBlockDepth===c.option.maxdepth+1&&F("W073",null,this.nestedBlockDepth)},verifyMaxComplexityPerFunction:function(){var t=c.option.maxcomplexity,n=this.ComplexityCount;t&&n>t&&F("W074",e,n)}}}function Le(){c.funct["(metrics)"].ComplexityCount+=1}function Ne(e){if(e&&!e.paren)if(","!==e.id)switch(e.id){case"=":case"+=":case"-=":case"*=":case"%=":case"&=":case"|=":case"^=":case"/=":c.option.boss||F("W084",e)}else Ne(e.right)}function je(e){if(c.inES5())for(var t in e)e[t]&&e[t].setterToken&&!e[t].getterToken&&!e[t].static&&F("W078",e[t].setterToken)}function Be(e,t,n){if(rt(c.tokens.next,".")){var i=c.tokens.curr.id;V(".");var r=ge(e);return c.tokens.curr.isMetaProperty=!0,t!==r?M("E057",c.tokens.prev,i,r):n(),c.tokens.curr}}function Re(e,t){var n=t&&t.assignment;return e&=~h.noin,c.inES6()||F("W104",c.tokens.curr,n?"destructuring assignment":"destructuring binding","6"),Ve(e,t)}function Ve(e,t){var n,i,r,o,a=[],s=t&&t.openingParsed,l=t&&t.assignment,u=l?{assignment:l}:null,d=s?c.tokens.curr:c.tokens.next,p=function(){var t;if(it(c.tokens.next,["[","{"]))for(n=Ve(e,u),i=0;i<n.length;i++)a.push({id:n[i].id,token:n[i].token});else if(rt(c.tokens.next,","))a.push({id:null,token:c.tokens.curr});else if(rt(c.tokens.next,"("))V("("),p(),V(")");else{if(l){var r=H(e,20);r&&(ce(e,r),r.identifier&&(t=r.value))}else t=ge(e);t&&a.push({id:t,token:c.tokens.curr})}},h=function(e){var t,n;if(rt(c.tokens.next,"["))V("["),H(e,10),V("]"),V(":"),p();else if("(string)"===c.tokens.next.id||"(number)"===c.tokens.next.id)V(),V(":"),p();else{var i=me("rest");i?(c.inES9()||F("W119",c.tokens.next,"object rest property","9"),"(identifier)"===c.tokens.next.type?t=ge(e):M("E030",n=H(e,10),n.value)):t=ge(e),!i&&rt(c.tokens.next,":")?(V(":"),p()):t&&(l&&ce(e,c.tokens.curr),a.push({id:t,token:c.tokens.curr})),i&&rt(c.tokens.next,",")&&F("W130",c.tokens.next)}};if(rt(d,"[")){s||V("["),rt(c.tokens.next,"]")&&F("W137",c.tokens.curr);for(var f=!1;!rt(c.tokens.next,"]");){var m=me("rest");p(),m&&!f&&rt(c.tokens.next,",")&&(F("W130",c.tokens.next),f=!0),!m&&rt(c.tokens.next,"=")&&(rt(c.tokens.prev,"...")?V("]"):V("="),r=c.tokens.prev,(o=H(e,10))&&o.identifier&&"undefined"===o.value&&F("W080",r,r.value)),rt(c.tokens.next,"]")||V(",")}V("]")}else if(rt(d,"{")){for(s||V("{"),rt(c.tokens.next,"}")&&F("W137",c.tokens.curr);!rt(c.tokens.next,"}")&&(h(e),rt(c.tokens.next,"=")&&(V("="),r=c.tokens.prev,(o=H(e,10))&&o.identifier&&"undefined"===o.value&&F("W080",r,r.value)),rt(c.tokens.next,"}")||(V(","),!rt(c.tokens.next,"}"))););V("}")}return a}function qe(e,t){var n=t.first;n&&i.zip(e,Array.isArray(n)?n:[n]).forEach(function(e){var t=e[0],n=e[1];t&&n?t.first=n:t&&t.first&&!n&&F("W080",t.first,t.first.value)})}function He(e,t,n){var r,o,a,s,l=n&h.noin,u="let"===e,d="const"===e;for(c.inES6()||F("W104",c.tokens.curr,e,"6"),u&&Ue()&&(V("("),c.funct["(scope)"].stack(),s=!0,t.declaration=!1),t.first=[];;){var p=[];for(var f in i.includes(["{","["],c.tokens.next.value)?(r=Re(n),o=!1):(r=[{id:ge(n),token:c.tokens.curr}],o=!0),!l&&d&&"="!==c.tokens.next.id&&F("E012",c.tokens.curr,c.tokens.curr.value),r)r.hasOwnProperty(f)&&("let"===(f=r[f]).id&&F("W024",f.token,f.id),c.funct["(scope)"].block.isGlobal()&&!1===w[f.id]&&F("W079",f.token,f.id),f.id&&(c.funct["(scope)"].addbinding(f.id,{type:e,token:f.token}),p.push(f.token)));if("="===c.tokens.next.id){t.hasInitializer=!0,V("="),!l&&"="===B(0).id&&c.tokens.next.identifier&&F("W120",c.tokens.next,c.tokens.next.value);var m=c.tokens.prev;(a=H(n,10))&&(!d&&a.identifier&&"undefined"===a.value&&F("W080",m,m.value),o||qe(p,a))}if("in"!==c.tokens.next.value&&"of"!==c.tokens.next.value)for(f in r)r.hasOwnProperty(f)&&(f=r[f],c.funct["(scope)"].initialize(f.id));if(t.first=t.first.concat(p),","!==c.tokens.next.id)break;t.hasComma=!0,V(","),G()}return s&&(V(")"),_e(n,!0,!0),t.block=!0,c.funct["(scope)"].unstack()),t}Ee.exps=!0,Ee.declaration=!0,Z("class",function(e){var t,n;return c.inES6()||F("W104",c.tokens.curr,"class","6"),c.inClassBody=!0,c.tokens.next.identifier&&"extends"!==c.tokens.next.value&&(t=(n=c.tokens.next).value,ge(e)),"extends"===c.tokens.next.value&&(V("extends"),H(e,0)),c.funct["(scope)"].stack(),n?(this.name=n,c.funct["(scope)"].addbinding(t,{type:"class",initialized:!0,token:n}),c.funct["(scope)"].block.use(t,n)):this.name=null,Ae(this,e),this}),Z("void").exps=!0,ie(".",function(e,t,n){var i=ge(e,!0);return"string"==typeof i&&Ce(i),n.left=t,n.right=i,i&&"hasOwnProperty"===i&&"="===c.tokens.next.value&&F("W001"),!t||"arguments"!==t.value||"callee"!==i&&"caller"!==i?c.option.evil||!t||"document"!==t.value||"write"!==i&&"writeln"!==i||F("W060",t):c.option.noarg?F("W059",t,i):c.isStrict()&&M("E008"),c.option.evil||"eval"!==i&&"execScript"!==i||le(t,c)&&F("W061"),n},160,!0),ie("?.",function(e,t,n){return c.inES11()||F("W119",c.tokens.curr,"Optional chaining","11"),rt(c.tokens.next,"[")?(n.left=t,V(),n.right=c.tokens.curr.led(e,t)):rt(c.tokens.next,"(")?(n.left=t,V(),n.right=c.tokens.curr.led(e,t),n.exps=!0):c.syntax["."].led.call(n,e,t),"(template)"===c.tokens.next.type&&M("E024",c.tokens.next,"`"),n},160,!0),ie("(",function(e,t,n){c.option.immed&&t&&!t.immed&&"function"===t.id&&F("W062"),c.option.asi&&it(c.tokens.prev,[")","]"])&&!z(c.tokens.prev,c.tokens.curr)&&F("W014",c.tokens.curr,c.tokens.curr.id);var i,r=0,o=[];if(t&&"(identifier)"===t.type){/^[A-Z]([A-Z0-9_$]*[a-z][A-Za-z0-9_$]*)?$/.test(t.value)&&-1===["Array","Boolean","Date","Error","Function","Number","Object","RegExp","String","Symbol"].indexOf(t.value)&&("Math"===t.value?F("W063",t):c.option.newcap&&F("W064",t))}if(")"!==c.tokens.next.id)for(;me("spread"),o[o.length]=H(e,10),r+=1,","===c.tokens.next.id;)if(V(","),G({allowTrailing:!0}),")"===c.tokens.next.id){c.inES8()||F("W119",c.tokens.curr,"Trailing comma in arguments lists","8");break}return V(")"),"object"==typeof t&&(c.inES5()||"parseInt"!==t.value||1!==r||F("W065",c.tokens.curr),c.option.evil||("eval"===t.value||"Function"===t.value||"execScript"===t.value?F("W061",t):(!o[0]||"(string)"!==o[0].id||"setTimeout"!==t.value&&"setInterval"!==t.value)&&(!o[0]||"(string)"!==o[0].id||"."!==t.value||"window"!==t.left.value||"setTimeout"!==t.right&&"setInterval"!==t.right)||(F("W066",t),N(t,o[0]))),(i=t).identifier||"."===i.id||"["===i.id||"=>"===i.id||"("===i.id||"&&"===i.id||"||"===i.id||"?"===i.id||"async"===i.id||"?."===i.id||c.inES6()&&i["(name)"]||F("W067",n)),n.left=t,n},155,!0).exps=!0,Z("(",function(e,t){var n,i,r,o,a=c.tokens.curr,s=c.tokens.prev,l=!c.option.singleGroups,u=Te(1);if("function"===c.tokens.next.id&&(i=c.tokens.next.immed=!0),"=>"===u.value)return u.funct=$e(e,{type:"arrow",parsedOpening:!0}),u;if(")"!==c.tokens.next.id){if(n=H(e,0),V(")",this),n){if(n.paren=!0,c.option.immed&&n&&"function"===n.id&&"("!==c.tokens.next.id&&"."!==c.tokens.next.id&&"["!==c.tokens.next.id&&F("W068",this),","===n.id){for(r=n.left;","===r.id;)r=r.left;o=n.right}else r=o=n,l||(i||(i="async"===n.id),l=a.beginsStmt&&("{"===n.id||i)||i&&(!q()||"}"!==c.tokens.prev.id)||"=>"===n.id&&!q()||"{"===n.id&&"=>"===s.id||oe(n)&&"**"===c.tokens.next.id||"??"===s.id&&("&&"===n.id||"||"===n.id)||"(number)"===n.type&&rt(u,".")&&/^\d+$/.test(n.value)||a.beginsStmt&&"="===n.id&&"{"===n.left.id||"?."===n.id&&("new"===s.id||"(template)"===c.tokens.next.type));var d;return!l&&((d=r).first||d.right||d.left||"yield"===d.id||"await"===d.id||r!==o)&&(l=t>r.lbp||t>0&&t===r.lbp||!q()&&o.rbp<c.tokens.next.lbp),l||F("W126",a),n}}else V(")")}),(function(e){var t=K(e,42);return t.infix=!0,t.led=function(e,t){return U(c.tokens.prev,c.tokens.curr),this.left=t,this.right=$e(e,{type:"arrow",loneArg:t}),this},t}("=>")).rbp=161,ie("[",function(e,t,n){var i,r;return c.option.asi&&it(c.tokens.prev,[")","]"])&&!z(c.tokens.prev,c.tokens.curr)&&F("W014",c.tokens.curr,c.tokens.curr.id),(i=H(e&~h.noin,0))&&"(string)"===i.type&&(c.option.evil||"eval"!==i.value&&"execScript"!==i.value||le(t,c)&&F("W061"),Ce(i.value),!c.option.sub&&l.identifier.test(i.value)&&((r=c.syntax[i.value])?!A(e,r):"eval"!==i.value&&"arguments"!==i.value)&&F("W069",c.tokens.prev,i.value)),V("]",n),i&&"hasOwnProperty"===i.value&&"="===c.tokens.next.value&&F("W001"),n.left=t,n.right=i,n},160,!0),Z("[",function(e){var t=Ze();if(t.isCompArray)return c.option.esnext||c.inMoz()||F("W118",c.tokens.curr,"array comprehension"),function(e){var t={exps:!0};c.funct["(comparray)"].stack();var n=!1;return"for"!==c.tokens.next.value&&(n=!0,c.inMoz()||F("W116",c.tokens.next,"for",c.tokens.next.value),c.funct["(comparray)"].setState("use"),t.right=H(e,10)),V("for"),"each"===c.tokens.next.value&&(V("each"),c.inMoz()||F("W118",c.tokens.curr,"for each")),V("("),c.funct["(comparray)"].setState("define"),t.left=H(e,130),i.includes(["in","of"],c.tokens.next.value)?V():M("E045",c.tokens.curr),c.funct["(comparray)"].setState("generate"),H(e,10),V(")"),"if"===c.tokens.next.value&&(V("if"),V("("),c.funct["(comparray)"].setState("filter"),H(e,10),V(")")),n||(c.funct["(comparray)"].setState("use"),t.right=H(e,10)),V("]"),c.funct["(comparray)"].unstack(),t}(e);if(t.isDestAssign)return this.destructAssign=Re(e,{openingParsed:!0,assignment:!0}),this;var n=!z(c.tokens.curr,c.tokens.next);for(this.first=[],n&&(g+=c.option.indent,c.tokens.next.from===g+c.option.indent&&(g+=c.option.indent));"(end)"!==c.tokens.next.id;){for(;","===c.tokens.next.id;){if(!c.option.elision){if(c.inES5()){F("W128");do{V(",")}while(","===c.tokens.next.id);continue}F("W070")}V(",")}if("]"===c.tokens.next.id)break;if(me("spread"),this.first.push(H(e,10)),","!==c.tokens.next.id){c.option.trailingcomma&&c.inES5()&&$("W140",c.tokens.curr.line,c.tokens.curr.character);break}if(V(","),G({allowTrailing:!0}),"]"===c.tokens.next.id&&!c.inES5()){F("W070",c.tokens.curr);break}}return n&&(g-=c.option.indent),V("]",this),this}),function(e){e.nud=function(e){var t,n,i,r,o,a,s=!1,l=Object.create(null),u=!1;if((t=!z(c.tokens.curr,c.tokens.next))&&(g+=c.option.indent,c.tokens.next.from===g+c.option.indent&&(g+=c.option.indent)),Ze().isDestAssign)return this.destructAssign=Re(e,{openingParsed:!0,assignment:!0}),this;for(c.inObjectBody=!0;"}"!==c.tokens.next.id;){if(a=c.tokens.next.value,!c.tokens.next.identifier||","!==R().id&&"}"!==R().id)if(":"===B().id||"get"!==a&&"set"!==a)if(me("spread"))c.inES9()||F("W119",c.tokens.next,"object spread property","9"),H(e,10);else{if("async"!==c.tokens.next.id||it(B(),["(",":"])?u=!1:(c.inES8()||F("W119",c.tokens.next,"async functions","8"),u=!0,V(),W(c.tokens.curr)),"*"===c.tokens.next.value&&"(punctuator)"===c.tokens.next.type?(u&&!c.inES9()?F("W119",c.tokens.next,"async generators","9"):c.inES6()||F("W104",c.tokens.next,"generator functions","6"),V("*"),s=!0):s=!1,"["===c.tokens.next.id)i=nt(e),c.nameStack.set(i);else if(c.nameStack.set(c.tokens.next),et(l,i=Ie(e),c.tokens.next),"string"!=typeof i)break;"("===c.tokens.next.value?(c.inES6()||F("W104",c.tokens.curr,"concise methods","6"),$e(u?e|h.preAsync:e,{isMethod:!0,type:s?"generator":null})):(V(":"),H(e,10))}else V(a),c.inES5()||M("E034"),"["===c.tokens.next.id?i=nt(e):(i=Ie(e))||c.inES6()||M("E035"),i&&tt(a,l,i,c.tokens.curr),o=c.tokens.next,r=(n=$e(e,{isMethod:!0}))["(params)"],"get"===a&&i&&r.length?F("W076",o,r[0],i):"set"===a&&i&&1!==n["(metrics)"].arity&&F("W077",o,i);else c.inES6()||F("W104",c.tokens.next,"object short notation","6"),i=(o=H(e,10))&&o.value,o&&et(l,i,o);if(Ce(i),","!==c.tokens.next.id){c.option.trailingcomma&&c.inES5()&&$("W140",c.tokens.curr.line,c.tokens.curr.character);break}V(","),G({allowTrailing:!0,property:!0}),","===c.tokens.next.id?F("W070",c.tokens.curr):"}"!==c.tokens.next.id||c.inES5()||F("W070",c.tokens.curr)}return t&&(g-=c.option.indent),V("}",this),je(l),c.inObjectBody=!1,this},e.fud=function(){M("E036",c.tokens.curr)}}(Q("{"));var ze=Y("const",function(e){return He("const",this,e)});function Ue(){return"("===c.tokens.next.id&&c.inMoz()}ze.exps=!0,ze.declaration=!0;var We,Ge,Ke=Y("let",function(e){return He("let",this,e)});Ke.nud=function(e,t){if(!Ue())return this.exps=!1,c.syntax["(identifier)"].nud.apply(this,arguments);c.funct["(scope)"].stack(),V("("),c.tokens.prev.fud(e),V(")"),H(e,t),c.funct["(scope)"].unstack()},Ke.meta={es5:!0,isFutureReservedWord:!1,strictOnly:!0},Ke.exps=!0,Ke.declaration=!0,Ke.useFud=function(e){var t=c.tokens.next;return!(this.line!==t.line&&!c.inES6())&&(t.identifier&&(!A(e,t)||"let"===t.id)||it(t,["{","["])||Ue())},Y("var",function(e){var t,n,r,a,s=e&h.noin;for(this.first=[];;){var l=[];for(var u in i.includes(["{","["],c.tokens.next.value)?(t=Re(e),n=!1):(t=[],(a=ge(e))&&t.push({id:a,token:c.tokens.curr}),n=!0),c.option.varstmt&&F("W132",this),t)t.hasOwnProperty(u)&&(u=t[u],c.funct["(global)"]&&!c.impliedClosure()&&(!1===w[u.id]?F("W079",u.token,u.id):!1===c.option.futurehostile&&(!c.inES5()&&!1===o.ecmaIdentifiers[5][u.id]||!c.inES6()&&!1===o.ecmaIdentifiers[6][u.id])&&F("W129",u.token,u.id)),u.id&&(c.funct["(scope)"].addbinding(u.id,{type:"var",token:u.token}),l.push(u.token)));if("="===c.tokens.next.id&&(this.hasInitializer=!0,c.nameStack.set(c.tokens.curr),V("="),"="===B(0).id&&c.tokens.next.identifier&&((s||c.funct["(params)"])&&-1!==c.funct["(params)"].indexOf(c.tokens.next.value)||F("W120",c.tokens.next,c.tokens.next.value)),a=c.tokens.prev,(r=H(e,10))&&(!c.funct["(loopage)"]&&r.identifier&&"undefined"===r.value&&F("W080",a,a.value),n||qe(l,r))),this.first=this.first.concat(l),","!==c.tokens.next.id)break;this.hasComma=!0,V(","),G()}return this}).exps=!0,J("function",function(e){var t=e&h.export,n=!1,i=e&h.preAsync,r="";i&&(r="async "),"*"===c.tokens.next.value&&(i&&!c.inES9()?F("W119",c.tokens.prev,"async generators","9"):i||c.inES6(!0)||F("W119",c.tokens.next,"function*","6"),V("*"),r+="generator ",n=!0),r+="function",m&&F("W082",c.tokens.curr),this.name=fe(e)?c.tokens.curr:null,this.name?c.funct["(scope)"].addbinding(this.name.value,{type:r,token:c.tokens.curr,initialized:!0}):t||F("W025");var o=$e(e,{name:this.name&&this.name.value,statement:this,type:n?"generator":null,ignoreLoopFunc:m}),a=o["(isStrict)"]&&!c.isStrict();return this.name&&("arguments"===o["(name)"]||"eval"===o["(name)"])&&a&&M("E008",this.name),"("===c.tokens.next.id&&")"===B().id&&"=>"!==B(1).id&&c.tokens.next.line===c.tokens.curr.line&&M("E039"),this}).declaration=!0,Z("function",function(e){var t=!1,n=e&h.preAsync;"*"===c.tokens.next.value&&(n&&!c.inES9()?F("W119",c.tokens.prev,"async generators","9"):n||c.inES6(!0)||F("W119",c.tokens.curr,"function*","6"),V("*"),t=!0),this.name=fe(n?e|h.async:e)?c.tokens.curr:null;var i=$e(e,{name:this.name&&this.name.value,type:t?"generator":null});return t&&this.name&&"yield"===this.name.value&&M("E024",this.name,"yield"),this.name&&("arguments"===i["(name)"]||"eval"===i["(name)"])&&i["(isStrict)"]&&M("E008",this.name),this}),J("if",function(e){var t=c.tokens.next;Le(),V("(");var n=H(e,0);n||O("E041",this),Ne(n);var i=null;c.option.forin&&c.forinifcheckneeded&&(c.forinifcheckneeded=!1,i=c.forinifchecks[c.forinifchecks.length-1],"(punctuator)"===n.type&&"!"===n.value?i.type="(negative)":i.type="(positive)"),V(")",t);var r=_e(e,!0,!0);return i&&"(negative)"===i.type&&r&&r[0]&&"(identifier)"===r[0].type&&"continue"===r[0].value&&(i.type="(negative-with-continue)"),"else"===c.tokens.next.id&&(V("else"),"if"===c.tokens.next.id||"switch"===c.tokens.next.id?be(e):_e(e,!0,!0)),this}),J("try",function(e){var t,n=!1;function r(){if(V("("),it(c.tokens.next,["[","{"])){var t=Re(e);i.each(t,function(e){e.id&&c.funct["(scope)"].addParam(e.id,e.token,"exception")})}else"(identifier)"!==c.tokens.next.type?F("E030",c.tokens.next,c.tokens.next.value):c.funct["(scope)"].addParam(ge(e),c.tokens.curr,"exception");"if"===c.tokens.next.value&&(c.inMoz()||F("W118",c.tokens.curr,"catch filter"),V("if"),H(e,0)),V(")")}for(_e(e|h.tryClause,!0);"catch"===c.tokens.next.id;)Le(),t&&!c.inMoz()&&F("W118",c.tokens.next,"multiple catch blocks"),V("catch"),"{"!==c.tokens.next.id?(c.funct["(scope)"].stack("catchparams"),n=!0,r()):c.inES10()||F("W119",c.tokens.curr,"optional catch binding","10"),_e(e,!1),n&&(c.funct["(scope)"].unstack(),n=!1),t=!0;return"finally"===c.tokens.next.id?(V("finally"),void _e(e,!0)):(t||M("E021",c.tokens.next,"catch",c.tokens.next.value),this)}),J("while",function(e){var t=c.tokens.next;return c.funct["(breakage)"]+=1,c.funct["(loopage)"]+=1,Le(),V("("),Ne(H(e,0)),V(")",t),_e(e,!0,!0),c.funct["(breakage)"]-=1,c.funct["(loopage)"]-=1,this}).labelled=!0,J("with",function(e){var t=c.tokens.next;return c.isStrict()?M("E010",c.tokens.curr):c.option.withstmt||F("W085",c.tokens.curr),V("("),H(e,0),V(")",t),_e(e,!0,!0),this}),J("switch",function(e){var t=c.tokens.next,n=!1,i=!1,r=!1;for(c.funct["(breakage)"]+=1,V("("),Ne(H(e,0)),V(")",t),t=c.tokens.next,V("{"),c.funct["(scope)"].stack(),c.tokens.next.from===g&&(i=!0),i||(g+=c.option.indent);;)switch(c.tokens.next.id){case"case":switch(c.funct["(verb)"]){case"yield":case"break":case"case":case"continue":case"return":case"switch":case"throw":break;case"default":c.option.leanswitch&&F("W145",c.tokens.next);break;default:c.tokens.curr.caseFallsThrough||F("W086",c.tokens.curr,"case")}V("case"),H(e,0),r=!0,Le(),n=!0,V(":"),c.funct["(verb)"]="case";break;case"default":switch(c.funct["(verb)"]){case"yield":case"break":case"continue":case"return":case"throw":break;case"case":c.option.leanswitch&&F("W145",c.tokens.curr);break;default:r&&!c.tokens.curr.caseFallsThrough&&F("W086",c.tokens.curr,"default")}V("default"),n=!0,V(":"),c.funct["(verb)"]="default";break;case"}":return i||(g-=c.option.indent),V("}",t),c.funct["(scope)"].unstack(),c.funct["(breakage)"]-=1,void(c.funct["(verb)"]=void 0);case"(end)":return void M("E023",c.tokens.next,"}");default:if(g+=c.option.indent,n)switch(c.tokens.curr.id){case",":return void M("E040");case":":n=!1,ke(e);break;default:return void M("E025",c.tokens.curr)}else{if(":"!==c.tokens.curr.id)return void M("E021",c.tokens.next,"case",c.tokens.next.value);V(":"),M("E024",c.tokens.curr,":"),ke(e)}g-=c.option.indent}}).labelled=!0,Y("debugger",function(){return c.option.debug||F("W087",this),this}).exps=!0,function(){var e=Y("do",function(e){c.funct["(breakage)"]+=1,c.funct["(loopage)"]+=1,Le(),this.first=_e(e,!0,!0),V("while");var t=c.tokens.next;return V("("),Ne(H(e,0)),V(")",t),c.funct["(breakage)"]-=1,c.funct["(loopage)"]-=1,this});e.labelled=!0,e.exps=!0}(),J("for",function(e){var t,n,r,o,a,s,l,u,d=c.tokens.next,p=!1,f=!1,m=null;"each"===d.value&&(m=d,V("each"),c.inMoz()||F("W118",c.tokens.curr,"for each")),c.tokens.next.identifier&&"await"===c.tokens.next.value&&(V("await"),f=!0,e&h.async?c.inES9()||F("W119",c.tokens.curr,"asynchronous iteration","9"):M("E024",c.tokens.curr,"await")),Le(),V("(");var g=B(),v=e|h.noin;if("var"===c.tokens.next.id)V("var"),r=(u=c.tokens.curr.fud(v)).hasComma?u:null,o=u.hasInitializer?u:null;else if("const"===c.tokens.next.id||"let"===c.tokens.next.id&&(g.identifier&&"in"!==g.id||it(g,["{","["])))V(c.tokens.next.id),p=!0,c.funct["(scope)"].stack(),r=(u=c.tokens.curr.fud(v)).hasComma?u:null,o=u.hasInitializer?u:null;else if(!rt(c.tokens.next,";")){for(s=[];"in"!==c.tokens.next.value&&"of"!==c.tokens.next.value&&!rt(c.tokens.next,";");)it(c.tokens.next,["{","["])?(Re(v,{assignment:!0}).forEach(function(e){this.push(e.token)},s),rt(c.tokens.next,"=")&&(V("="),o=c.tokens.curr,H(v,10))):(l=H(v,10))&&("(identifier)"===l.type?s.push(l):rt(l,"=")&&(o=l,s.push(l))),rt(c.tokens.next,",")&&(V(","),r||(r=c.tokens.curr));o||r||s.forEach(function(e){c.funct["(scope)"].has(e.value)||F("W088",e,e.value)})}if(n=c.tokens.next,f&&"of"!==n.value&&M("E066",n),i.includes(["in","of"],n.value)){if("of"===n.value?(a=20,c.inES6()||F("W104",n,"for of","6")):a=0,r&&M("W133",r,n.value,"more than one ForBinding"),o&&M("W133",o,n.value,"initializer is forbidden"),!l||r||o||ce(e,l,n),V(n.value),H(e,a),V(")",d),"in"===n.value&&c.option.forin&&(c.forinifcheckneeded=!0,void 0===c.forinifchecks&&(c.forinifchecks=[]),c.forinifchecks.push({type:"(none)"})),c.funct["(breakage)"]+=1,c.funct["(loopage)"]+=1,t=_e(e,!0,!0),"in"===n.value&&c.option.forin){if(c.forinifchecks&&c.forinifchecks.length>0){var y=c.forinifchecks.pop();(t&&t.length>0&&("object"!=typeof t[0]||"if"!==t[0].value)||"(positive)"===y.type&&t.length>1||"(negative)"===y.type)&&F("W089",this)}c.forinifcheckneeded=!1}c.funct["(breakage)"]-=1,c.funct["(loopage)"]-=1}else{if(m&&M("E045",m),V(";"),u&&u.first&&u.first[0]&&("const"!==u.value||u.hasInitializer||F("E012",u,u.first[0].value),u.first.forEach(function(e){c.funct["(scope)"].initialize(e.value)})),c.funct["(loopage)"]+=1,";"!==c.tokens.next.id&&Ne(H(e,0)),V(";"),";"===c.tokens.next.id&&M("E021",c.tokens.next,")",";"),")"!==c.tokens.next.id)for(;H(e,0),","===c.tokens.next.id;)V(","),G();V(")",d),c.funct["(breakage)"]+=1,_e(e,!0,!0),c.funct["(breakage)"]-=1,c.funct["(loopage)"]-=1}return p&&c.funct["(scope)"].unstack(),this}).labelled=!0,Y("break",function(){var e=c.tokens.next.value;return c.tokens.next.identifier&&z(c.tokens.curr,c.tokens.next)?(c.funct["(scope)"].funct.hasLabel(e)||F("W090",c.tokens.next,e),this.first=c.tokens.next,V()):0===c.funct["(breakage)"]&&F("W052",c.tokens.next,this.value),ve(this),this}).exps=!0,Y("continue",function(){var e=c.tokens.next.value;return 0!==c.funct["(breakage)"]&&c.funct["(loopage)"]||F("W052",c.tokens.next,this.value),c.tokens.next.identifier&&z(c.tokens.curr,c.tokens.next)&&(c.funct["(scope)"].funct.hasLabel(e)||F("W090",c.tokens.next,e),this.first=c.tokens.next,V()),ve(this),this}).exps=!0,Y("return",function(e){return z(this,c.tokens.next)?";"===c.tokens.next.id||c.tokens.next.reach||(this.first=H(e,0),!this.first||"(punctuator)"!==this.first.type||"="!==this.first.value||this.first.paren||c.option.boss||F("W093",this.first),c.option.noreturnawait&&e&h.async&&!(e&h.tryClause)&&this.first.identifier&&"await"===this.first.value&&F("W146",this.first)):"(punctuator)"===c.tokens.next.type&&["[","{","+","-"].indexOf(c.tokens.next.value)>-1&&W(this),ve(this),this}).exps=!0,Z("await",function(e){return e&h.async?(c.funct["(params)"]||M("E024",this,"await"),H(e,10),this):(this.exps=!1,c.syntax["(identifier)"].nud.apply(this,arguments))}).exps=!0,We=Z("async",function(e,t){return this.isFunc(e)?(c.inES8()||F("W119",this,"async functions","8"),e|=h.preAsync,this.func=H(e,t),this.identifier=!1,this):(this.exps=!1,c.syntax["(identifier)"].nud.apply(this,arguments))}),We.meta={es5:!0,isFutureReservedWord:!0,strictOnly:!0},We.isFunc=function(){var e=c.tokens.next;return this.line===e.line&&("function"===e.id||("("===e.id?"=>"===Te(0).id:!!e.identifier&&"=>"===B().id))},We.useFud=We.isFunc,We.fud=function(e){return c.inES8()||F("W119",this,"async functions","8"),e|=h.preAsync,e|=h.initial,this.func=H(e,0),this.block=this.func.block,this.exps=this.func.exps,this},We.exps=!0,delete We.reserved,Ge=Z("yield",function(e){if(c.inMoz())return Qe.call(this,e);if(!(e&h.yield))return this.exps=!1,c.syntax["(identifier)"].nud.apply(this,arguments);var t=c.tokens.prev;return c.funct["(params)"]||M("E024",this,"yield"),!this.beginsStmt&&t.lbp>30&&!it(t,["("])&&M("E061",this),c.inES6()||F("W104",c.tokens.curr,"yield","6"),c.funct["(yielded)"]=!0,"*"===c.tokens.next.value&&V("*"),("*"===c.tokens.curr.value||z(c.tokens.curr,c.tokens.next))&&(c.tokens.next.nud?(U(c.tokens.curr,c.tokens.next),this.first=H(e,10),"(punctuator)"!==this.first.type||"="!==this.first.value||this.first.paren||c.option.boss||F("W093",this.first)):c.tokens.next.led&&","!==c.tokens.next.id&&M("W017",c.tokens.next)),this}),Ge.rbp=Ge.lbp=25,Ge.exps=!0;var Qe=function(e){var t=c.tokens.prev;!c.inES6(!0)||e&h.yield||M("E046",c.tokens.curr,"yield"),c.funct["(yielded)"]=!0;var n=!1;return"*"===c.tokens.next.value&&(n=!0,V("*")),z(this,c.tokens.next)?((n||";"!==c.tokens.next.id&&!c.option.asi&&!c.tokens.next.reach&&c.tokens.next.nud)&&(U(c.tokens.curr,c.tokens.next),this.first=H(e,10),"(punctuator)"!==this.first.type||"="!==this.first.value||this.first.paren||c.option.boss||F("W093",this.first)),")"!==c.tokens.next.id&&(t.lbp>30||!t.assign&&!q())&&M("E050",this)):c.option.asi||W(this),this};Y("throw",function(e){return W(this),this.first=H(e,20),ve(this),this}).exps=!0,Z("import",function(e){var t=Be(e,"meta",function(){c.inES11(!0)||F("W119",c.tokens.prev,"import.meta","11"),c.option.module||M("E070",c.tokens.prev)});return t||(rt(c.tokens.next,"(")?(c.inES11()||F("W119",c.tokens.curr,"dynamic import","11"),V("("),H(e,10),V(")"),this):c.syntax["(identifier)"].nud.call(this,e))});var Ye=Y("import",function(e){if(c.funct["(scope)"].block.isGlobal()||M("E053",c.tokens.curr,"Import"),c.inES6()||F("W119",c.tokens.curr,"import","6"),"(string)"===c.tokens.next.type)return V("(string)"),this;if(c.tokens.next.identifier){if(this.name=ge(e),c.funct["(scope)"].addbinding(this.name,{type:"import",initialized:!0,token:c.tokens.curr}),","!==c.tokens.next.value)return V("from"),V("(string)"),this;V(",")}if("*"===c.tokens.next.id)V("*"),V("as"),c.tokens.next.identifier&&(this.name=ge(e),c.funct["(scope)"].addbinding(this.name,{type:"import",initialized:!0,token:c.tokens.curr}));else for(V("{");;){if("}"===c.tokens.next.value){V("}");break}var t;if("as"===B().value?(ge(e,!0),V("as"),t=ge(e)):t=ge(e),c.funct["(scope)"].addbinding(t,{type:"import",initialized:!0,token:c.tokens.curr}),","!==c.tokens.next.value){if("}"===c.tokens.next.value){V("}");break}M("E024",c.tokens.next,c.tokens.next.value);break}V(",")}return V("from"),V("(string)"),this});function Je(e,t){return("call"!==e||!t["(async)"])&&(!("property"!==e||!t["(method)"])||(!("call"!==e||!t["(statement)"]||"class"!==t["(statement)"].id)||!!t["(arrow)"]&&Je(e,t["(context)"])))}Ye.exps=!0,Ye.reserved=!0,Ye.meta={isFutureReservedWord:!0,es5:!0},Ye.useFud=function(){return!it(c.tokens.next,[".","("])},Ye.rbp=161,Y("export",function(e){var t,n,i=!0;if(e|=h.export,c.inES6()||(F("W119",c.tokens.curr,"export","6"),i=!1),c.funct["(scope)"].block.isGlobal()||(M("E053",c.tokens.curr,"Export"),i=!1),"*"===c.tokens.next.value)return V("*"),"as"===c.tokens.next.value&&(c.inES11()||F("W119",c.tokens.curr,"export * as ns from","11"),V("as"),ge(e,!0),c.funct["(scope)"].setExported(null,c.tokens.curr)),V("from"),V("(string)"),this;if("default"===c.tokens.next.type){c.nameStack.set(c.tokens.next),V("default");var r=c.tokens.curr,o=c.tokens.next.id;return"function"===o?(this.block=!0,V("function"),t=c.syntax.function.fud(e),c.funct["(scope)"].setExported(t.name,r)):"async"===o&&"function"===B().id?(this.block=!0,V("async"),V("function"),t=c.syntax.function.fud(e|h.preAsync),c.funct["(scope)"].setExported(t.name,r)):"class"===o?(this.block=!0,V("class"),t=c.syntax.class.fud(e),c.funct["(scope)"].setExported(t.name,r)):(H(e,10),c.funct["(scope)"].setExported(null,r)),this}if("{"===c.tokens.next.value){V("{");for(var a=[];!rt(c.tokens.next,"}");)c.tokens.next.identifier||M("E030",c.tokens.next,c.tokens.next.value),V(),"as"===c.tokens.next.value?(V("as"),c.tokens.next.identifier||M("E030",c.tokens.next,c.tokens.next.value),a.push({local:c.tokens.prev,export:c.tokens.next}),V()):a.push({local:c.tokens.curr,export:c.tokens.curr}),rt(c.tokens.next,"}")||V(",");return V("}"),"from"===c.tokens.next.value?(V("from"),n=c.tokens.next,V("(string)")):i&&a.forEach(function(e){c.funct["(scope)"].setExported(e.local,e.export)}),0===a.length&&(n?F("W142",this,"export",n.value):F("W141",this,"export")),this}return"var"===c.tokens.next.id?(V("var"),(t=c.tokens.curr.fud(e)).first.forEach(function(e){c.funct["(scope)"].setExported(e,e)})):"let"===c.tokens.next.id?(V("let"),(t=c.tokens.curr.fud(e)).first.forEach(function(e){c.funct["(scope)"].setExported(e,e)})):"const"===c.tokens.next.id?(V("const"),(t=c.tokens.curr.fud(e)).first.forEach(function(e){c.funct["(scope)"].setExported(e,e)})):"function"===c.tokens.next.id?(this.block=!0,V("function"),t=c.syntax.function.fud(e),c.funct["(scope)"].setExported(t.name,t.name)):"async"===c.tokens.next.id&&"function"===B().id?(this.block=!0,V("async"),V("function"),t=c.syntax.function.fud(e|h.preAsync),c.funct["(scope)"].setExported(t.name,t.name)):"class"===c.tokens.next.id?(this.block=!0,V("class"),t=c.syntax.class.fud(e),c.funct["(scope)"].setExported(t.name,t.name)):M("E024",c.tokens.next,c.tokens.next.value),this}).exps=!0;var Xe=function(){var e=c.tokens.next;return it(e,["[","."])?Je("property",c.funct)||M("E063",this):rt(e,"(")?Je("call",c.funct)||M("E064",this):M("E024",e,e.value||e.id),this};ne("abstract"),ne("boolean"),ne("byte"),ne("char"),ne("double"),ne("enum",{es5:!0}),ne("export",{es5:!0}),ne("extends",{es5:!0}),ne("final"),ne("float"),ne("goto"),ne("implements",{es5:!0,strictOnly:!0}),ne("int"),ne("interface",{es5:!0,strictOnly:!0}),ne("long"),ne("native"),ne("package",{es5:!0,strictOnly:!0}),ne("private",{es5:!0,strictOnly:!0}),ne("protected",{es5:!0,strictOnly:!0}),ne("public",{es5:!0,strictOnly:!0}),ne("short"),ne("static",{es5:!0,strictOnly:!0}),ne("synchronized"),ne("transient"),ne("volatile");var Ze=function(){var e,t,n,i=-1,r=0,o={};it(c.tokens.curr,["[","{"])&&(r+=1);do{if(n=-1===i?c.tokens.curr:e,e=-1===i?c.tokens.next:B(i),t=B(i+1),i+=1,it(e,["[","{"])?r+=1:it(e,["]","}"])&&(r-=1),1===r&&e.identifier&&"for"===e.value&&!rt(n,".")){o.isCompArray=!0,o.notJson=!0;break}if(0===r&&it(e,["}","]"])){if("="===t.value){o.isDestAssign=!0,o.notJson=!0;break}if("."===t.value){o.notJson=!0;break}}rt(e,";")&&(o.notJson=!0)}while(r>0&&"(end)"!==e.id);return o};function et(e,t,n,i,r,o){n.identifier&&(t=n.value);var a=t;if(i&&r&&(a="static "+t),e[a]&&"__proto__"!==t&&!o){var s=["key","class method","static class method"];s=s[(i||!1)+(r||!1)],F("W075",c.tokens.next,s,t)}else e[a]=Object.create(null);e[a].basic=!0,e[a].basictkn=n}function tt(e,t,n,i,r,o){var a="get"===e?"getterToken":"setterToken",s=n;if(c.tokens.curr.accessorType=e,c.nameStack.set(i),r&&o&&(s="static "+n),t[s]){if((t[s].basic||t[s][a])&&"__proto__"!==n){var l="";r?(o&&(l+="static "),l+=e+"ter method"):l="key",F("W075",c.tokens.next,l,n)}}else t[s]=Object.create(null);t[s][a]=i,o&&(t[s].static=!0)}function nt(e){V("["),c.tokens.curr.delim=!0,c.tokens.curr.lbp=0,c.inES6()||F("W119",c.tokens.curr,"computed property names","6");var t=H(e&~h.noin,10);return V("]"),t}function it(e,t){return"(punctuator)"===e.type&&i.includes(t,e.value)}function rt(e,t){return"(punctuator)"===e.type&&e.value===t}function ot(e){var t=Ze();t.notJson?(!c.inES6()&&t.isDestAssign&&F("W104",c.tokens.curr,"destructuring assignment","6"),ke(e)):(c.option.laxbreak=!0,c.jsonMode=!0,st())}var at=function(){var e,t=function(){this.mode="use",this.variables=[]},n=[];function r(t){return 0===e.variables.filter(function(e){if(e.value===t&&!e.undef)return!0===e.unused&&(e.unused=!1),t}).length}return{stack:function(){e=new t,n.push(e)},unstack:function(){e.variables.filter(function(e){e.unused&&F("W098",e.token,e.token.raw_text||e.value),e.undef&&c.funct["(scope)"].block.use(e.value,e.token)}),n.splice(-1,1),e=n[n.length-1]},setState:function(t){i.includes(["use","define","generate","filter"],t)&&(e.mode=t)},check:function(t){if(e)return e&&"use"===e.mode?(r(t)&&e.variables.push({token:c.tokens.curr,value:t,undef:!0,unused:!1}),!0):e&&"define"===e.mode?(function(t){return 0!==e.variables.filter(function(e){if(e.value===t)return e.undef=!1,t}).length}(t)||e.variables.push({token:c.tokens.curr,value:t,undef:!1,unused:!0}),!0):e&&"generate"===e.mode?(c.funct["(scope)"].block.use(t,c.tokens.curr),!0):!(!e||"filter"!==e.mode)&&(r(t)&&c.funct["(scope)"].block.use(t,c.tokens.curr),!0)}}};function st(){switch(c.tokens.next.id){case"{":!function(){var e={},t=c.tokens.next;if(V("{"),"}"!==c.tokens.next.id)for(;;){if("(end)"===c.tokens.next.id)M("E026",c.tokens.next,t.line);else{if("}"===c.tokens.next.id){F("W094",c.tokens.curr);break}","===c.tokens.next.id?M("E028",c.tokens.next):"(string)"!==c.tokens.next.id&&F("W095",c.tokens.next,c.tokens.next.value)}if(!0===e[c.tokens.next.value]?F("W075",c.tokens.next,"key",c.tokens.next.value):"__proto__"===c.tokens.next.value&&!c.option.proto||"__iterator__"===c.tokens.next.value&&!c.option.iterator?F("W096",c.tokens.next,c.tokens.next.value):e[c.tokens.next.value]=!0,V(),V(":"),st(),","!==c.tokens.next.id)break;V(",")}V("}")}();break;case"[":!function(){var e=c.tokens.next;if(V("["),"]"!==c.tokens.next.id)for(;;){if("(end)"===c.tokens.next.id)M("E027",c.tokens.next,e.line);else{if("]"===c.tokens.next.id){F("W094",c.tokens.curr);break}","===c.tokens.next.id&&M("E028",c.tokens.next)}if(st(),","!==c.tokens.next.id)break;V(",")}V("]")}();break;case"true":case"false":case"null":case"(number)":case"(string)":V();break;case"-":V("-"),V("(number)");break;default:M("E003",c.tokens.next)}}var lt=function(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},ct=function(r,a,l){var u,d,h,_,E,A;a=i.clone(a),c.reset(),E=c.option,A=c.ignored,a&&a.scope?f.scope=a.scope:(f.errors=[],f.internals=[],f.blacklist={},f.scope="(main)"),T(w=Object.create(null),o.ecmaIdentifiers[3]),T(w,o.reservedVars),t=Object.create(null);var D=Object.create(null);function P(e,t){e&&(Array.isArray(e)||"object"!=typeof e||(e=Object.keys(e)),e.forEach(t))}if(a)for(P([a.predef,a.globals],function(e){P(e,function(t){var n,i;"-"===t[0]?(n=t.slice(1),f.blacklist[n]=n,delete w[n]):(i=Object.getOwnPropertyDescriptor(e,t),w[t]=!!i&&i.value)})}),P(a.exported||null,function(e){D[e]=!0}),delete a.predef,delete a.exported,_=Object.keys(a),u=0;u<_.length;u++)if(/^-W\d{3}$/g.test(_[u]))A[_[u].slice(1)]=!0;else{var N=_[u];E[N]=a[N]}c.option=E,c.ignored=A,c.option.indent=c.option.indent||4,c.option.maxerr=c.option.maxerr||50,g=1;var j,B,R=p(c,w,D,t);if(R.on("warning",function(e){F.apply(null,[e.code,e.token].concat(e.data))}),R.on("error",function(e){M.apply(null,[e.code,e.token].concat(e.data))}),c.funct=Oe("(global)",null,{"(global)":!0,"(scope)":R,"(comparray)":at(),"(metrics)":Me(c.tokens.next)}),n=[c.funct],b={},k=null,m=!1,v=[],j=r,"[object String]"!==Object.prototype.toString.call(j)&&!Array.isArray(r))return L("E004",0),!1;for(B in e={get isJSON(){return c.jsonMode},getOption:function(e){return c.option[e]||null},getCache:function(e){return c.cache[e]},setCache:function(e,t){c.cache[e]=t},warn:function(e,t){$.apply(null,[e,t.line,t.char].concat(t.data))},on:function(e,t){e.split(" ").forEach(function(e){x.on(e,t)}.bind(this))}},x.removeAllListeners(),(C||[]).forEach(function(t){t(e)}),c.tokens.prev=c.tokens.curr=c.tokens.next=c.syntax["(begin)"],a&&a.ignoreDelimiters&&(Array.isArray(a.ignoreDelimiters)||(a.ignoreDelimiters=[a.ignoreDelimiters]),a.ignoreDelimiters.forEach(function(e){e.start&&e.end&&(d=lt(e.start)+"[\\s\\S]*?"+lt(e.end),h=new RegExp(d,"ig"),r=r.replace(h,function(e){return e.replace(/./g," ")}))})),(y=new s(r)).on("warning",function(e){$.apply(null,[e.code,e.line,e.character].concat(e.data))}),y.on("error",function(e){L.apply(null,[e.code,e.line,e.character].concat(e.data))}),y.on("fatal",function(e){O("E041",e)}),y.on("Identifier",function(e){x.emit("Identifier",e)}),y.on("String",function(e){x.emit("String",e)}),y.on("Number",function(e){x.emit("Number",e)}),a)i.has(a,B)&&S(B,!0,c.tokens.curr);if(a)for(B in a.unstable)i.has(a.unstable,B)&&S(B,!1,c.tokens.curr);try{switch(I(),T(w,l||{}),G.first=!0,V(),c.tokens.next.id){case"{":case"[":ot(0);break;default:we(),c.directive["use strict"]&&(c.allowsGlobalUsd()||F("W097",c.directive["use strict"])),ke(0)}"(end)"!==c.tokens.next.id&&O("E041",c.tokens.curr),c.funct["(scope)"].unstack()}catch(e){if(!e||"JSHintError"!==e.name)throw e;var q=c.tokens.next||{};f.errors.push({scope:"(main)",raw:e.raw,code:e.code,reason:e.reason,line:e.line||q.line,character:e.character||q.from})}return"(main)"===f.scope&&function(e,t,n){var i,r,o,a;for(r=0;r<e.length;r+=1)for(a=e[r],t.scope=a.elem,i=f.errors.length,ct(a.code,t,n),o=i;o<f.errors.length;o+=1)f.errors[o].line+=a.token.line-1}(f.internals,a||{},l),0===f.errors.length};return ct.addModule=function(e){C.push(e)},ct.addModule(u.register),ct.data=function(){var e,t,i,r,o,a={functions:[],options:c.option};ct.errors.length&&(a.errors=ct.errors),c.jsonMode&&(a.json=!0);var s=c.funct["(scope)"].getImpliedGlobals();for(s.length>0&&(a.implieds=s),(o=c.funct["(scope)"].getUsedOrDefinedGlobals()).length>0&&(a.globals=o),i=1;i<n.length;i+=1)t=n[i],(e={}).name=t["(name)"],e.param=t["(params)"],e.line=t["(line)"],e.character=t["(character)"],e.last=t["(last)"],e.lastcharacter=t["(lastcharacter)"],e.metrics={complexity:t["(metrics)"].ComplexityCount,parameters:t["(metrics)"].arity,statements:t["(metrics)"].statementCount},a.functions.push(e);var l=c.funct["(scope)"].getUnuseds();for(r in l.length>0&&(a.unused=l),b)if("number"==typeof b[r]){a.member=b;break}return a},ct.jshint=ct,ct}());t&&(t.JSHINT=f)},73677:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M16.629 23.25a1.5 1.5 0 0 0 1.06-.439l5.122-5.122a1.5 1.5 0 0 0 .439-1.06V2.25a1.5 1.5 0 0 0-1.5-1.5H7.371a1.5 1.5 0 0 0-1.06.439L1.189 6.311a1.5 1.5 0 0 0-.439 1.06V21.75a1.5 1.5 0 0 0 1.5 1.5z" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M17.25 23.115V6.75" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M6.75 17.25h16.365" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M1.189 22.811 6.75 17.25" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m17.25 6.75 5.561-5.561" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M17.25 6.75H.885" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M6.75.885V17.25" stroke-width="2"/></svg>'},74104:function(){},74465:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"attr-value-double-quotes",description:"Attribute values must be in double quotes.",init(e,t){e.addListener("tagstart",e=>{const n=e.attrs;let i;const r=e.col+e.tagName.length+1;for(let o=0,a=n.length;o<a;o++)i=n[o],(""!==i.value&&'"'!==i.quote||""===i.value&&"'"===i.quote)&&t.error(`The value of attribute [ ${i.name} ] must be in double quotes.`,e.line,r+i.index,this,i.raw)})}}},74810:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="bricks-svg"><path d="M430.11 347.9c-6.6-6.1-16.3-7.6-24.6-9-11.5-1.9-15.9-4-22.6-10-14.3-12.7-14.3-31.1 0-43.8l30.3-26.9c46.4-41 46.4-108.2 0-149.2-34.2-30.1-80.1-45-127.8-45-55.7 0-113.9 20.3-158.8 60.1-83.5 73.8-83.5 194.7 0 268.5 41.5 36.7 97.5 55 152.9 55.4h1.7c55.4 0 110-17.9 148.8-52.4 14.4-12.7 11.99-36.6.1-47.7z" fill="none" stroke="currentColor" stroke-miterlimit="10" stroke-width="32"/><circle cx="144" cy="208" r="32"/><circle cx="152" cy="311" r="32"/><circle cx="224" cy="144" r="32"/><circle cx="256" cy="367" r="48"/><circle cx="328" cy="144" r="32"/></svg>'},74853:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"tag-pair",description:"Tag must be paired.",init(e,t){const n=[],i=e.makeMap("area,base,basefont,br,col,frame,hr,img,input,isindex,link,meta,param,embed,track,command,source,keygen,wbr");e.addListener("tagstart",e=>{const t=e.tagName.toLowerCase();void 0!==i[t]||e.close||n.push({tagName:t,line:e.line,col:e.col,raw:e.raw})}),e.addListener("tagend",e=>{const i=e.tagName.toLowerCase();let r;for(r=n.length-1;r>=0&&n[r].tagName!==i;r--);if(r>=0){const i=[];for(let e=n.length-1;e>r;e--)i.push(`</${n[e].tagName}>`);if(i.length>0){const r=n[n.length-1];t.error(`Tag must be paired, missing: [ ${i.join("")} ], start tag match failed [ ${r.raw} ] on line ${r.line}.`,r.line||e.line,r.col||e.col,this,e.raw)}n.length=r}else t.error(`Tag must be paired, no start tag: [ ${e.raw} ]`,e.line,e.col,this,e.raw)}),e.addListener("end",e=>{const i=[];for(let e=n.length-1;e>=0;e--)i.push(`</${n[e].tagName}>`);if(i.length>0){const r=n[n.length-1];t.error(`Tag must be paired, missing: [ ${i.join("")} ], open tag match failed [ ${r.raw} ] on line ${r.line}.`,e.line,e.col,this,"")}})}}},75220:function(e,t,n){"use strict";e.exports=o;var i=n(37388),r=n(13573);function o(e,t,n,o){i.call(this,e,n,o,r.SELECTOR_SUB_PART_TYPE),this.type=t,this.args=[]}o.prototype=new i,o.prototype.constructor=o},75634:function(e,t){"use strict";t.reservedVars={NaN:!1,undefined:!1},t.ecmaIdentifiers={3:{Array:!1,Boolean:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,isFinite:!1,isNaN:!1,Math:!1,Number:!1,Object:!1,parseInt:!1,parseFloat:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,TypeError:!1,URIError:!1},5:{JSON:!1},6:{ArrayBuffer:!1,DataView:!1,Float32Array:!1,Float64Array:!1,Int8Array:!1,Int16Array:!1,Int32Array:!1,Map:!1,Promise:!1,Proxy:!1,Reflect:!1,Set:!1,Symbol:!1,Uint8Array:!1,Uint16Array:!1,Uint32Array:!1,Uint8ClampedArray:!1,WeakMap:!1,WeakSet:!1},8:{Atomics:!1,SharedArrayBuffer:!1},11:{BigInt:!1,globalThis:!1}},t.browser={Audio:!1,Blob:!1,addEventListener:!1,applicationCache:!1,atob:!1,blur:!1,btoa:!1,cancelAnimationFrame:!1,CanvasGradient:!1,CanvasPattern:!1,CanvasRenderingContext2D:!1,CSS:!1,CSSImportRule:!1,CSSGroupingRule:!1,CSSMarginRule:!1,CSSMediaRule:!1,CSSNamespaceRule:!1,CSSPageRule:!1,CSSRule:!1,CSSRuleList:!1,CSSStyleDeclaration:!1,CSSStyleRule:!1,CSSStyleSheet:!1,clearInterval:!1,clearTimeout:!1,close:!1,closed:!1,Comment:!1,CompositionEvent:!1,createImageBitmap:!1,CustomEvent:!1,DOMParser:!1,defaultStatus:!1,dispatchEvent:!1,Document:!1,document:!1,DocumentFragment:!1,Element:!1,ElementTimeControl:!1,Event:!1,event:!1,fetch:!1,File:!1,FileList:!1,FileReader:!1,FormData:!1,focus:!1,frames:!1,getComputedStyle:!1,Headers:!1,HTMLAnchorElement:!1,HTMLAreaElement:!1,HTMLAudioElement:!1,HTMLBaseElement:!1,HTMLBlockquoteElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLCollection:!1,HTMLDataElement:!1,HTMLDataListElement:!1,HTMLDetailsElement:!1,HTMLDialogElement:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLElement:!1,HTMLEmbedElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLIsIndexElement:!1,HTMLLabelElement:!1,HTMLLayerElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMarqueeElement:!1,HTMLMediaElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLMeterElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPictureElement:!1,HTMLPreElement:!1,HTMLProgressElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLSlotElement:!1,HTMLSourceElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTemplateElement:!1,HTMLTextAreaElement:!1,HTMLTimeElement:!1,HTMLTitleElement:!1,HTMLTrackElement:!1,HTMLUListElement:!1,HTMLVideoElement:!1,history:!1,Image:!1,IntersectionObserver:!1,Intl:!1,length:!1,localStorage:!1,location:!1,matchMedia:!1,MediaList:!1,MediaRecorder:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,MouseEvent:!1,moveBy:!1,moveTo:!1,MutationObserver:!1,name:!1,Node:!1,NodeFilter:!1,NodeList:!1,Notification:!1,navigator:!1,onbeforeunload:!0,onblur:!0,onerror:!0,onfocus:!0,onload:!0,onresize:!0,onunload:!0,open:!1,openDatabase:!1,opener:!1,Option:!1,origin:!1,parent:!1,performance:!1,print:!1,queueMicrotask:!1,Range:!1,requestAnimationFrame:!1,removeEventListener:!1,Request:!1,resizeBy:!1,resizeTo:!1,Response:!1,screen:!1,scroll:!1,scrollBy:!1,scrollTo:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,SharedWorker:!1,status:!1,Storage:!1,StyleSheet:!1,SVGAElement:!1,SVGAltGlyphDefElement:!1,SVGAltGlyphElement:!1,SVGAltGlyphItemElement:!1,SVGAngle:!1,SVGAnimateColorElement:!1,SVGAnimateElement:!1,SVGAnimateMotionElement:!1,SVGAnimateTransformElement:!1,SVGAnimatedAngle:!1,SVGAnimatedBoolean:!1,SVGAnimatedEnumeration:!1,SVGAnimatedInteger:!1,SVGAnimatedLength:!1,SVGAnimatedLengthList:!1,SVGAnimatedNumber:!1,SVGAnimatedNumberList:!1,SVGAnimatedPathData:!1,SVGAnimatedPoints:!1,SVGAnimatedPreserveAspectRatio:!1,SVGAnimatedRect:!1,SVGAnimatedString:!1,SVGAnimatedTransformList:!1,SVGAnimationElement:!1,SVGCSSRule:!1,SVGCircleElement:!1,SVGClipPathElement:!1,SVGColor:!1,SVGColorProfileElement:!1,SVGColorProfileRule:!1,SVGComponentTransferFunctionElement:!1,SVGCursorElement:!1,SVGDefsElement:!1,SVGDescElement:!1,SVGDocument:!1,SVGElement:!1,SVGElementInstance:!1,SVGElementInstanceList:!1,SVGEllipseElement:!1,SVGExternalResourcesRequired:!1,SVGFEBlendElement:!1,SVGFEColorMatrixElement:!1,SVGFEComponentTransferElement:!1,SVGFECompositeElement:!1,SVGFEConvolveMatrixElement:!1,SVGFEDiffuseLightingElement:!1,SVGFEDisplacementMapElement:!1,SVGFEDistantLightElement:!1,SVGFEFloodElement:!1,SVGFEFuncAElement:!1,SVGFEFuncBElement:!1,SVGFEFuncGElement:!1,SVGFEFuncRElement:!1,SVGFEGaussianBlurElement:!1,SVGFEImageElement:!1,SVGFEMergeElement:!1,SVGFEMergeNodeElement:!1,SVGFEMorphologyElement:!1,SVGFEOffsetElement:!1,SVGFEPointLightElement:!1,SVGFESpecularLightingElement:!1,SVGFESpotLightElement:!1,SVGFETileElement:!1,SVGFETurbulenceElement:!1,SVGFilterElement:!1,SVGFilterPrimitiveStandardAttributes:!1,SVGFitToViewBox:!1,SVGFontElement:!1,SVGFontFaceElement:!1,SVGFontFaceFormatElement:!1,SVGFontFaceNameElement:!1,SVGFontFaceSrcElement:!1,SVGFontFaceUriElement:!1,SVGForeignObjectElement:!1,SVGGElement:!1,SVGGlyphElement:!1,SVGGlyphRefElement:!1,SVGGradientElement:!1,SVGHKernElement:!1,SVGICCColor:!1,SVGImageElement:!1,SVGLangSpace:!1,SVGLength:!1,SVGLengthList:!1,SVGLineElement:!1,SVGLinearGradientElement:!1,SVGLocatable:!1,SVGMPathElement:!1,SVGMarkerElement:!1,SVGMaskElement:!1,SVGMatrix:!1,SVGMetadataElement:!1,SVGMissingGlyphElement:!1,SVGNumber:!1,SVGNumberList:!1,SVGPaint:!1,SVGPathElement:!1,SVGPathSeg:!1,SVGPathSegArcAbs:!1,SVGPathSegArcRel:!1,SVGPathSegClosePath:!1,SVGPathSegCurvetoCubicAbs:!1,SVGPathSegCurvetoCubicRel:!1,SVGPathSegCurvetoCubicSmoothAbs:!1,SVGPathSegCurvetoCubicSmoothRel:!1,SVGPathSegCurvetoQuadraticAbs:!1,SVGPathSegCurvetoQuadraticRel:!1,SVGPathSegCurvetoQuadraticSmoothAbs:!1,SVGPathSegCurvetoQuadraticSmoothRel:!1,SVGPathSegLinetoAbs:!1,SVGPathSegLinetoHorizontalAbs:!1,SVGPathSegLinetoHorizontalRel:!1,SVGPathSegLinetoRel:!1,SVGPathSegLinetoVerticalAbs:!1,SVGPathSegLinetoVerticalRel:!1,SVGPathSegList:!1,SVGPathSegMovetoAbs:!1,SVGPathSegMovetoRel:!1,SVGPatternElement:!1,SVGPoint:!1,SVGPointList:!1,SVGPolygonElement:!1,SVGPolylineElement:!1,SVGPreserveAspectRatio:!1,SVGRadialGradientElement:!1,SVGRect:!1,SVGRectElement:!1,SVGRenderingIntent:!1,SVGSVGElement:!1,SVGScriptElement:!1,SVGSetElement:!1,SVGStopElement:!1,SVGStringList:!1,SVGStylable:!1,SVGStyleElement:!1,SVGSwitchElement:!1,SVGSymbolElement:!1,SVGTRefElement:!1,SVGTSpanElement:!1,SVGTests:!1,SVGTextContentElement:!1,SVGTextElement:!1,SVGTextPathElement:!1,SVGTextPositioningElement:!1,SVGTitleElement:!1,SVGTransform:!1,SVGTransformList:!1,SVGTransformable:!1,SVGURIReference:!1,SVGUnitTypes:!1,SVGUseElement:!1,SVGVKernElement:!1,SVGViewElement:!1,SVGViewSpec:!1,SVGZoomAndPan:!1,Text:!1,TextDecoder:!1,TextEncoder:!1,TimeEvent:!1,top:!1,URL:!1,URLSearchParams:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLProgram:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLTexture:!1,WebGLUniformLocation:!1,WebSocket:!1,window:!1,Window:!1,Worker:!1,XDomainRequest:!1,XMLDocument:!1,XMLHttpRequest:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathException:!1,XPathExpression:!1,XPathNamespace:!1,XPathNSResolver:!1,XPathResult:!1},t.devel={alert:!1,confirm:!1,console:!1,Debug:!1,opera:!1,prompt:!1},t.worker={addEventListener:!0,atob:!0,btoa:!0,clearInterval:!0,clearTimeout:!0,createImageBitmap:!0,dispatchEvent:!0,importScripts:!0,onmessage:!0,origin:!0,postMessage:!0,queueMicrotask:!0,removeEventListener:!0,self:!0,setInterval:!0,setTimeout:!0,FileReaderSync:!0},t.nonstandard={escape:!1,unescape:!1},t.couch={require:!1,respond:!1,getRow:!1,emit:!1,send:!1,start:!1,sum:!1,log:!1,exports:!1,module:!1,provides:!1},t.node={__filename:!1,__dirname:!1,arguments:!1,GLOBAL:!1,global:!1,module:!1,require:!1,Intl:!1,Buffer:!0,console:!0,exports:!0,process:!0,setTimeout:!0,clearTimeout:!0,setInterval:!0,clearInterval:!0,setImmediate:!0,clearImmediate:!0,URL:!0,URLSearchParams:!0},t.browserify={__filename:!1,__dirname:!1,global:!1,module:!1,require:!1,Buffer:!0,exports:!0,process:!0},t.phantom={phantom:!0,require:!0,WebPage:!0,console:!0,exports:!0},t.qunit={asyncTest:!1,deepEqual:!1,equal:!1,expect:!1,module:!1,notDeepEqual:!1,notEqual:!1,notOk:!1,notPropEqual:!1,notStrictEqual:!1,ok:!1,propEqual:!1,QUnit:!1,raises:!1,start:!1,stop:!1,strictEqual:!1,test:!1,throws:!1},t.rhino={arguments:!1,defineClass:!1,deserialize:!1,gc:!1,help:!1,importClass:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,Packages:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},t.shelljs={target:!1,echo:!1,exit:!1,cd:!1,pwd:!1,ls:!1,find:!1,cp:!1,rm:!1,mv:!1,mkdir:!1,test:!1,cat:!1,sed:!1,grep:!1,which:!1,dirs:!1,pushd:!1,popd:!1,env:!1,exec:!1,chmod:!1,config:!1,error:!1,tempdir:!1},t.typed={ArrayBuffer:!1,ArrayBufferView:!1,DataView:!1,Float32Array:!1,Float64Array:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1},t.wsh={ActiveXObject:!0,Enumerator:!0,GetObject:!0,ScriptEngine:!0,ScriptEngineBuildVersion:!0,ScriptEngineMajorVersion:!0,ScriptEngineMinorVersion:!0,VBArray:!0,WSH:!0,WScript:!0,XDomainRequest:!0},t.dojo={dojo:!1,dijit:!1,dojox:!1,define:!1,require:!1},t.jquery={$:!1,jQuery:!1},t.mootools={$:!1,$$:!1,Asset:!1,Browser:!1,Chain:!1,Class:!1,Color:!1,Cookie:!1,Core:!1,Document:!1,DomReady:!1,DOMEvent:!1,DOMReady:!1,Drag:!1,Element:!1,Elements:!1,Event:!1,Events:!1,Fx:!1,Group:!1,Hash:!1,HtmlTable:!1,IFrame:!1,IframeShim:!1,InputValidator:!1,instanceOf:!1,Keyboard:!1,Locale:!1,Mask:!1,MooTools:!1,Native:!1,Options:!1,OverText:!1,Request:!1,Scroller:!1,Slick:!1,Slider:!1,Sortables:!1,Spinner:!1,Swiff:!1,Tips:!1,Type:!1,typeOf:!1,URI:!1,Window:!1},t.prototypejs={$:!1,$$:!1,$A:!1,$F:!1,$H:!1,$R:!1,$break:!1,$continue:!1,$w:!1,Abstract:!1,Ajax:!1,Class:!1,Enumerable:!1,Element:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Selector:!1,Template:!1,Toggle:!1,Try:!1,Autocompleter:!1,Builder:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Scriptaculous:!1},t.yui={YUI:!1,Y:!1,YUI_config:!1},t.mocha={mocha:!1,describe:!1,xdescribe:!1,context:!1,xcontext:!1,it:!1,xit:!1,specify:!1,xspecify:!1,before:!1,after:!1,beforeEach:!1,afterEach:!1,suite:!1,test:!1,setup:!1,teardown:!1,suiteSetup:!1,suiteTeardown:!1},t.jasmine={jasmine:!1,describe:!1,xdescribe:!1,it:!1,xit:!1,beforeEach:!1,afterEach:!1,setFixtures:!1,loadFixtures:!1,spyOn:!1,expect:!1,runs:!1,waitsFor:!1,waits:!1,beforeAll:!1,afterAll:!1,fail:!1,fdescribe:!1,fit:!1,pending:!1,spyOnProperty:!1}},75795:function(e,t,n){"use strict";var i=n(6549);if(i)try{i([],"length")}catch(e){i=null}e.exports=i},75834:function(e,t,n){const i=n(55248);class r{static testing=!1;static fakedLogs=[];static info(e,t="default"){r.testing?r.fakedLogs.push(e):(console.log(r.colors()[t],e),r.reset())}static message(e){if(r.testing)return void r.fakedLogs.push(e.text);let t="";"info"===e.type?t=" INFO ":"warn"===e.type?t=" WARN ":"error"===e.type&&(t=" ERR ");const n=e.text.replace(/\n/g,"\n"+" ".repeat(t.length+1));"info"===e.type?console.warn(`${i.bgBlue.white(t)} ${i.white(n)}`):"warn"===e.type?console.warn(`${i.bgYellow.black(t)} ${i.yellow(n)}`):"error"===e.type&&console.warn(`${i.bgRed.white(t)} ${i.red(n)}`)}static feedback(e,t="green"){r.line("\t"+e,t)}static error(e,t="red"){r.line(e,t)}static line(e,t="default"){r.info(e,t)}static reset(){console.log(r.colors().default,"")}static fake(){r.testing=!0}static restore(){r.testing=!1,r.fakedLogs=[]}static received(e){let t=(e=Array.isArray(e)?e:[e]).every(e=>this.fakedLogs.some(t=>t.includes(e)));return this.restore(),t}static colors(){return{default:"[0m",green:"[32m",red:"[31m"}}}e.exports=r},75880:function(e){"use strict";e.exports=Math.pow},76258:function(){},76493:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="m6.64.975 10.505 10.506a.734.734 0 0 1 0 1.038L6.64 23.025" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},76798:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n}).join("")},t.i=function(e,n,i){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(i)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(r[a]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);i&&r[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},76891:function(){},77071:function(){},77138:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M13.5 22a9.75 9.75 0 1 0-9.75-9.75V13" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m.75 9.997 3 3 3-3" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M12.75 6.247v6.75H18" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},77211:function(){},77329:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"alt-require",description:"The alt attribute of an <img> element must be present and alt attribute of area[href] and input[type=image] must have a value.",init(e,t){e.addListener("tagstart",n=>{const i=n.tagName.toLowerCase(),r=e.getMapAttrs(n.attrs),o=n.col+i.length+1;let a;"img"!==i||"alt"in r?("area"===i&&"href"in r||"input"===i&&"image"===r.type)&&("alt"in r&&""!==r.alt||(a="area"===i?"area[href]":"input[type=image]",t.warn(`The alt attribute of ${a} must have a value.`,n.line,o,this,n.raw))):t.warn("An alt attribute must be present on <img> elements.",n.line,o,this,n.raw)})}}},77395:function(){},77532:function(){},77723:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="bricks-svg"><path d="M1.219 9.184a7.965 7.965 0 1 0 15.93 0 7.965 7.965 0 1 0-15.93 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M6.851 14.816a7.965 7.965 0 1 0 15.93 0 7.965 7.965 0 1 0-15.93 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m7.71 11.785 4.583 4.584" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m9.557 9.668 4.83 4.829" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m11.886 7.63 4.468 4.468" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},77889:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><text font-size="80" font-weight="bold">\n <tspan x="8" y="89">AA</tspan>\n </text></svg>'},77952:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M.75 5.251c0 1.193 1.185 2.338 3.295 3.182S9.016 9.751 12 9.751s5.845-.474 7.955-1.318 3.295-1.989 3.295-3.182c0-1.194-1.185-2.338-3.295-3.182S14.984.751 12 .751s-5.845.474-7.955 1.318S.75 4.058.75 5.251" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M.75 5.251V12c0 2.485 5.037 4.5 11.25 4.5s11.25-2.014 11.25-4.5V5.251" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M.75 12v6.75c0 2.485 5.037 4.5 11.25 4.5s11.25-2.015 11.25-4.5V12" stroke-width="2"/></svg>'},78041:function(e,t,n){var i; /** * @license * Lodash <https://lodash.com/> * Copyright OpenJS Foundation and other contributors <https://openjsf.org/> * Released under MIT license <https://lodash.com/license> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */e=n.nmd(e),function(){var r,o="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",l=16,c=32,u=64,d=128,p=256,h=1/0,f=9007199254740991,m=NaN,g=4294967295,v=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",c],["partialRight",u],["rearg",p]],y="[object Arguments]",b="[object Array]",k="[object Boolean]",w="[object Date]",_="[object Error]",C="[object Function]",x="[object GeneratorFunction]",S="[object Map]",E="[object Number]",A="[object Object]",D="[object Promise]",T="[object RegExp]",I="[object Set]",O="[object String]",P="[object Symbol]",F="[object WeakMap]",$="[object ArrayBuffer]",M="[object DataView]",L="[object Float32Array]",N="[object Float64Array]",j="[object Int8Array]",B="[object Int16Array]",R="[object Int32Array]",V="[object Uint8Array]",q="[object Uint8ClampedArray]",H="[object Uint16Array]",z="[object Uint32Array]",U=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,Q=/[&<>"']/g,Y=RegExp(K.source),J=RegExp(Q.source),X=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,ie=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,re=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(re.source),ae=/^\s+/,se=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pe=/[()=,{}\[\]\/\s]/,he=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,ge=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,ke=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_e=/($^)/,Ce=/['\n\r\u2028\u2029\\]/g,xe="\\ud800-\\udfff",Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ee="\\u2700-\\u27bf",Ae="a-z\\xdf-\\xf6\\xf8-\\xff",De="A-Z\\xc0-\\xd6\\xd8-\\xde",Te="\\ufe0e\\ufe0f",Ie="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Oe="['’]",Pe="["+xe+"]",Fe="["+Ie+"]",$e="["+Se+"]",Me="\\d+",Le="["+Ee+"]",Ne="["+Ae+"]",je="[^"+xe+Ie+Me+Ee+Ae+De+"]",Be="\\ud83c[\\udffb-\\udfff]",Re="[^"+xe+"]",Ve="(?:\\ud83c[\\udde6-\\uddff]){2}",qe="[\\ud800-\\udbff][\\udc00-\\udfff]",He="["+De+"]",ze="\\u200d",Ue="(?:"+Ne+"|"+je+")",We="(?:"+He+"|"+je+")",Ge="(?:['’](?:d|ll|m|re|s|t|ve))?",Ke="(?:['’](?:D|LL|M|RE|S|T|VE))?",Qe="(?:"+$e+"|"+Be+")"+"?",Ye="["+Te+"]?",Je=Ye+Qe+("(?:"+ze+"(?:"+[Re,Ve,qe].join("|")+")"+Ye+Qe+")*"),Xe="(?:"+[Le,Ve,qe].join("|")+")"+Je,Ze="(?:"+[Re+$e+"?",$e,Ve,qe,Pe].join("|")+")",et=RegExp(Oe,"g"),tt=RegExp($e,"g"),nt=RegExp(Be+"(?="+Be+")|"+Ze+Je,"g"),it=RegExp([He+"?"+Ne+"+"+Ge+"(?="+[Fe,He,"$"].join("|")+")",We+"+"+Ke+"(?="+[Fe,He+Ue,"$"].join("|")+")",He+"?"+Ue+"+"+Ge,He+"+"+Ke,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Me,Xe].join("|"),"g"),rt=RegExp("["+ze+xe+Se+Te+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],st=-1,lt={};lt[L]=lt[N]=lt[j]=lt[B]=lt[R]=lt[V]=lt[q]=lt[H]=lt[z]=!0,lt[y]=lt[b]=lt[$]=lt[k]=lt[M]=lt[w]=lt[_]=lt[C]=lt[S]=lt[E]=lt[A]=lt[T]=lt[I]=lt[O]=lt[F]=!1;var ct={};ct[y]=ct[b]=ct[$]=ct[M]=ct[k]=ct[w]=ct[L]=ct[N]=ct[j]=ct[B]=ct[R]=ct[S]=ct[E]=ct[A]=ct[T]=ct[I]=ct[O]=ct[P]=ct[V]=ct[q]=ct[H]=ct[z]=!0,ct[_]=ct[C]=ct[F]=!1;var ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,pt=parseInt,ht="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ft="object"==typeof self&&self&&self.Object===Object&&self,mt=ht||ft||Function("return this")(),gt=t&&!t.nodeType&&t,vt=gt&&e&&!e.nodeType&&e,yt=vt&&vt.exports===gt,bt=yt&&ht.process,kt=function(){try{var e=vt&&vt.require&&vt.require("util").types;return e||bt&&bt.binding&&bt.binding("util")}catch(e){}}(),wt=kt&&kt.isArrayBuffer,_t=kt&&kt.isDate,Ct=kt&&kt.isMap,xt=kt&&kt.isRegExp,St=kt&&kt.isSet,Et=kt&&kt.isTypedArray;function At(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Dt(e,t,n,i){for(var r=-1,o=null==e?0:e.length;++r<o;){var a=e[r];t(i,a,n(a),e)}return i}function Tt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}function It(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Ot(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(!t(e[n],n,e))return!1;return!0}function Pt(e,t){for(var n=-1,i=null==e?0:e.length,r=0,o=[];++n<i;){var a=e[n];t(a,n,e)&&(o[r++]=a)}return o}function Ft(e,t){return!!(null==e?0:e.length)&&Ht(e,t,0)>-1}function $t(e,t,n){for(var i=-1,r=null==e?0:e.length;++i<r;)if(n(t,e[i]))return!0;return!1}function Mt(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}function Lt(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}function Nt(e,t,n,i){var r=-1,o=null==e?0:e.length;for(i&&o&&(n=e[++r]);++r<o;)n=t(n,e[r],r,e);return n}function jt(e,t,n,i){var r=null==e?0:e.length;for(i&&r&&(n=e[--r]);r--;)n=t(n,e[r],r,e);return n}function Bt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}var Rt=Gt("length");function Vt(e,t,n){var i;return n(e,function(e,n,r){if(t(e,n,r))return i=n,!1}),i}function qt(e,t,n,i){for(var r=e.length,o=n+(i?1:-1);i?o--:++o<r;)if(t(e[o],o,e))return o;return-1}function Ht(e,t,n){return t==t?function(e,t,n){var i=n-1,r=e.length;for(;++i<r;)if(e[i]===t)return i;return-1}(e,t,n):qt(e,Ut,n)}function zt(e,t,n,i){for(var r=n-1,o=e.length;++r<o;)if(i(e[r],t))return r;return-1}function Ut(e){return e!=e}function Wt(e,t){var n=null==e?0:e.length;return n?Yt(e,t)/n:m}function Gt(e){return function(t){return null==t?r:t[e]}}function Kt(e){return function(t){return null==e?r:e[t]}}function Qt(e,t,n,i,r){return r(e,function(e,r,o){n=i?(i=!1,e):t(n,e,r,o)}),n}function Yt(e,t){for(var n,i=-1,o=e.length;++i<o;){var a=t(e[i]);a!==r&&(n=n===r?a:n+a)}return n}function Jt(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function Xt(e){return e?e.slice(0,gn(e)+1).replace(ae,""):e}function Zt(e){return function(t){return e(t)}}function en(e,t){return Mt(t,function(t){return e[t]})}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,i=e.length;++n<i&&Ht(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&Ht(t,e[n],0)>-1;);return n}var on=Kt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),an=Kt({"&":"&","<":"<",">":">",'"':""","'":"'"});function sn(e){return"\\"+ut[e]}function ln(e){return rt.test(e)}function cn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,i){n[++t]=[i,e]}),n}function un(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,i=e.length,r=0,o=[];++n<i;){var a=e[n];a!==t&&a!==s||(e[n]=s,o[r++]=n)}return o}function pn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function hn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function fn(e){return ln(e)?function(e){var t=nt.lastIndex=0;for(;nt.test(e);)++t;return t}(e):Rt(e)}function mn(e){return ln(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function gn(e){for(var t=e.length;t--&&se.test(e.charAt(t)););return t}var vn=Kt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var yn=function e(t){var n,i=(t=null==t?mt:yn.defaults(mt.Object(),t,yn.pick(mt,at))).Array,se=t.Date,xe=t.Error,Se=t.Function,Ee=t.Math,Ae=t.Object,De=t.RegExp,Te=t.String,Ie=t.TypeError,Oe=i.prototype,Pe=Se.prototype,Fe=Ae.prototype,$e=t["__core-js_shared__"],Me=Pe.toString,Le=Fe.hasOwnProperty,Ne=0,je=(n=/[^.]+$/.exec($e&&$e.keys&&$e.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Be=Fe.toString,Re=Me.call(Ae),Ve=mt._,qe=De("^"+Me.call(Le).replace(re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),He=yt?t.Buffer:r,ze=t.Symbol,Ue=t.Uint8Array,We=He?He.allocUnsafe:r,Ge=un(Ae.getPrototypeOf,Ae),Ke=Ae.create,Qe=Fe.propertyIsEnumerable,Ye=Oe.splice,Je=ze?ze.isConcatSpreadable:r,Xe=ze?ze.iterator:r,Ze=ze?ze.toStringTag:r,nt=function(){try{var e=ho(Ae,"defineProperty");return e({},"",{}),e}catch(e){}}(),rt=t.clearTimeout!==mt.clearTimeout&&t.clearTimeout,ut=se&&se.now!==mt.Date.now&&se.now,ht=t.setTimeout!==mt.setTimeout&&t.setTimeout,ft=Ee.ceil,gt=Ee.floor,vt=Ae.getOwnPropertySymbols,bt=He?He.isBuffer:r,kt=t.isFinite,Rt=Oe.join,Kt=un(Ae.keys,Ae),bn=Ee.max,kn=Ee.min,wn=se.now,_n=t.parseInt,Cn=Ee.random,xn=Oe.reverse,Sn=ho(t,"DataView"),En=ho(t,"Map"),An=ho(t,"Promise"),Dn=ho(t,"Set"),Tn=ho(t,"WeakMap"),In=ho(Ae,"create"),On=Tn&&new Tn,Pn={},Fn=Bo(Sn),$n=Bo(En),Mn=Bo(An),Ln=Bo(Dn),Nn=Bo(Tn),jn=ze?ze.prototype:r,Bn=jn?jn.valueOf:r,Rn=jn?jn.toString:r;function Vn(e){if(ns(e)&&!Ua(e)&&!(e instanceof Un)){if(e instanceof zn)return e;if(Le.call(e,"__wrapped__"))return Ro(e)}return new zn(e)}var qn=function(){function e(){}return function(t){if(!ts(t))return{};if(Ke)return Ke(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function Hn(){}function zn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function Un(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Qn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Kn;++t<n;)this.add(e[t])}function Yn(e){var t=this.__data__=new Gn(e);this.size=t.size}function Jn(e,t){var n=Ua(e),i=!n&&za(e),r=!n&&!i&&Qa(e),o=!n&&!i&&!r&&us(e),a=n||i||r||o,s=a?Jt(e.length,Te):[],l=s.length;for(var c in e)!t&&!Le.call(e,c)||a&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ko(c,l))||s.push(c);return s}function Xn(e){var t=e.length;return t?e[Qi(0,t-1)]:r}function Zn(e,t){return Lo(Ir(e),li(t,0,e.length))}function ei(e){return Lo(Ir(e))}function ti(e,t,n){(n!==r&&!Va(e[t],n)||n===r&&!(t in e))&&ai(e,t,n)}function ni(e,t,n){var i=e[t];Le.call(e,t)&&Va(i,n)&&(n!==r||t in e)||ai(e,t,n)}function ii(e,t){for(var n=e.length;n--;)if(Va(e[n][0],t))return n;return-1}function ri(e,t,n,i){return hi(e,function(e,r,o){t(i,e,n(e),o)}),i}function oi(e,t){return e&&Or(t,Ps(t),e)}function ai(e,t,n){"__proto__"==t&&nt?nt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function si(e,t){for(var n=-1,o=t.length,a=i(o),s=null==e;++n<o;)a[n]=s?r:As(e,t[n]);return a}function li(e,t,n){return e==e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function ci(e,t,n,i,o,a){var s,l=1&t,c=2&t,u=4&t;if(n&&(s=o?n(e,i,o,a):n(e)),s!==r)return s;if(!ts(e))return e;var d=Ua(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Le.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Ir(e,s)}else{var p=go(e),h=p==C||p==x;if(Qa(e))return xr(e,l);if(p==A||p==y||h&&!o){if(s=c||h?{}:yo(e),!l)return c?function(e,t){return Or(e,mo(e),t)}(e,function(e,t){return e&&Or(t,Fs(t),e)}(s,e)):function(e,t){return Or(e,fo(e),t)}(e,oi(s,e))}else{if(!ct[p])return o?e:{};s=function(e,t,n){var i=e.constructor;switch(t){case $:return Sr(e);case k:case w:return new i(+e);case M:return function(e,t){var n=t?Sr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case L:case N:case j:case B:case R:case V:case q:case H:case z:return Er(e,n);case S:return new i;case E:case O:return new i(e);case T:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case I:return new i;case P:return r=e,Bn?Ae(Bn.call(r)):{}}var r}(e,p,l)}}a||(a=new Yn);var f=a.get(e);if(f)return f;a.set(e,s),ss(e)?e.forEach(function(i){s.add(ci(i,t,n,i,e,a))}):is(e)&&e.forEach(function(i,r){s.set(r,ci(i,t,n,r,e,a))});var m=d?r:(u?c?oo:ro:c?Fs:Ps)(e);return Tt(m||e,function(i,r){m&&(i=e[r=i]),ni(s,r,ci(i,t,n,r,e,a))}),s}function ui(e,t,n){var i=n.length;if(null==e)return!i;for(e=Ae(e);i--;){var o=n[i],a=t[o],s=e[o];if(s===r&&!(o in e)||!a(s))return!1}return!0}function di(e,t,n){if("function"!=typeof e)throw new Ie(o);return Po(function(){e.apply(r,n)},t)}function pi(e,t,n,i){var r=-1,o=Ft,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=Mt(t,Zt(n))),i?(o=$t,a=!1):t.length>=200&&(o=tn,a=!1,t=new Qn(t));e:for(;++r<s;){var u=e[r],d=null==n?u:n(u);if(u=i||0!==u?u:0,a&&d==d){for(var p=c;p--;)if(t[p]===d)continue e;l.push(u)}else o(t,d,i)||l.push(u)}return l}Vn.templateSettings={escape:X,evaluate:Z,interpolate:ee,variable:"",imports:{_:Vn}},Vn.prototype=Hn.prototype,Vn.prototype.constructor=Vn,zn.prototype=qn(Hn.prototype),zn.prototype.constructor=zn,Un.prototype=qn(Hn.prototype),Un.prototype.constructor=Un,Wn.prototype.clear=function(){this.__data__=In?In(null):{},this.size=0},Wn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Wn.prototype.get=function(e){var t=this.__data__;if(In){var n=t[e];return n===a?r:n}return Le.call(t,e)?t[e]:r},Wn.prototype.has=function(e){var t=this.__data__;return In?t[e]!==r:Le.call(t,e)},Wn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=In&&t===r?a:t,this},Gn.prototype.clear=function(){this.__data__=[],this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=ii(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ye.call(t,n,1),--this.size,!0)},Gn.prototype.get=function(e){var t=this.__data__,n=ii(t,e);return n<0?r:t[n][1]},Gn.prototype.has=function(e){return ii(this.__data__,e)>-1},Gn.prototype.set=function(e,t){var n=this.__data__,i=ii(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},Kn.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(En||Gn),string:new Wn}},Kn.prototype.delete=function(e){var t=uo(this,e).delete(e);return this.size-=t?1:0,t},Kn.prototype.get=function(e){return uo(this,e).get(e)},Kn.prototype.has=function(e){return uo(this,e).has(e)},Kn.prototype.set=function(e,t){var n=uo(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},Qn.prototype.add=Qn.prototype.push=function(e){return this.__data__.set(e,a),this},Qn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.clear=function(){this.__data__=new Gn,this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Yn.prototype.get=function(e){return this.__data__.get(e)},Yn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var i=n.__data__;if(!En||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kn(i)}return n.set(e,t),this.size=n.size,this};var hi=$r(wi),fi=$r(_i,!0);function mi(e,t){var n=!0;return hi(e,function(e,i,r){return n=!!t(e,i,r)}),n}function gi(e,t,n){for(var i=-1,o=e.length;++i<o;){var a=e[i],s=t(a);if(null!=s&&(l===r?s==s&&!cs(s):n(s,l)))var l=s,c=a}return c}function vi(e,t){var n=[];return hi(e,function(e,i,r){t(e,i,r)&&n.push(e)}),n}function yi(e,t,n,i,r){var o=-1,a=e.length;for(n||(n=bo),r||(r=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?yi(s,t-1,n,i,r):Lt(r,s):i||(r[r.length]=s)}return r}var bi=Mr(),ki=Mr(!0);function wi(e,t){return e&&bi(e,t,Ps)}function _i(e,t){return e&&ki(e,t,Ps)}function Ci(e,t){return Pt(t,function(t){return Xa(e[t])})}function xi(e,t){for(var n=0,i=(t=kr(t,e)).length;null!=e&&n<i;)e=e[jo(t[n++])];return n&&n==i?e:r}function Si(e,t,n){var i=t(e);return Ua(e)?i:Lt(i,n(e))}function Ei(e){return null==e?e===r?"[object Undefined]":"[object Null]":Ze&&Ze in Ae(e)?function(e){var t=Le.call(e,Ze),n=e[Ze];try{e[Ze]=r;var i=!0}catch(e){}var o=Be.call(e);i&&(t?e[Ze]=n:delete e[Ze]);return o}(e):function(e){return Be.call(e)}(e)}function Ai(e,t){return e>t}function Di(e,t){return null!=e&&Le.call(e,t)}function Ti(e,t){return null!=e&&t in Ae(e)}function Ii(e,t,n){for(var o=n?$t:Ft,a=e[0].length,s=e.length,l=s,c=i(s),u=1/0,d=[];l--;){var p=e[l];l&&t&&(p=Mt(p,Zt(t))),u=kn(p.length,u),c[l]=!n&&(t||a>=120&&p.length>=120)?new Qn(l&&p):r}p=e[0];var h=-1,f=c[0];e:for(;++h<a&&d.length<u;){var m=p[h],g=t?t(m):m;if(m=n||0!==m?m:0,!(f?tn(f,g):o(d,g,n))){for(l=s;--l;){var v=c[l];if(!(v?tn(v,g):o(e[l],g,n)))continue e}f&&f.push(g),d.push(m)}}return d}function Oi(e,t,n){var i=null==(e=To(e,t=kr(t,e)))?e:e[jo(Jo(t))];return null==i?r:At(i,e,n)}function Pi(e){return ns(e)&&Ei(e)==y}function Fi(e,t,n,i,o){return e===t||(null==e||null==t||!ns(e)&&!ns(t)?e!=e&&t!=t:function(e,t,n,i,o,a){var s=Ua(e),l=Ua(t),c=s?b:go(e),u=l?b:go(t),d=(c=c==y?A:c)==A,p=(u=u==y?A:u)==A,h=c==u;if(h&&Qa(e)){if(!Qa(t))return!1;s=!0,d=!1}if(h&&!d)return a||(a=new Yn),s||us(e)?no(e,t,n,i,o,a):function(e,t,n,i,r,o,a){switch(n){case M:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case $:return!(e.byteLength!=t.byteLength||!o(new Ue(e),new Ue(t)));case k:case w:case E:return Va(+e,+t);case _:return e.name==t.name&&e.message==t.message;case T:case O:return e==t+"";case S:var s=cn;case I:var l=1&i;if(s||(s=pn),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;i|=2,a.set(e,t);var u=no(s(e),s(t),i,r,o,a);return a.delete(e),u;case P:if(Bn)return Bn.call(e)==Bn.call(t)}return!1}(e,t,c,n,i,o,a);if(!(1&n)){var f=d&&Le.call(e,"__wrapped__"),m=p&&Le.call(t,"__wrapped__");if(f||m){var g=f?e.value():e,v=m?t.value():t;return a||(a=new Yn),o(g,v,n,i,a)}}if(!h)return!1;return a||(a=new Yn),function(e,t,n,i,o,a){var s=1&n,l=ro(e),c=l.length,u=ro(t),d=u.length;if(c!=d&&!s)return!1;var p=c;for(;p--;){var h=l[p];if(!(s?h in t:Le.call(t,h)))return!1}var f=a.get(e),m=a.get(t);if(f&&m)return f==t&&m==e;var g=!0;a.set(e,t),a.set(t,e);var v=s;for(;++p<c;){var y=e[h=l[p]],b=t[h];if(i)var k=s?i(b,y,h,t,e,a):i(y,b,h,e,t,a);if(!(k===r?y===b||o(y,b,n,i,a):k)){g=!1;break}v||(v="constructor"==h)}if(g&&!v){var w=e.constructor,_=t.constructor;w==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(g=!1)}return a.delete(e),a.delete(t),g}(e,t,n,i,o,a)}(e,t,n,i,Fi,o))}function $i(e,t,n,i){var o=n.length,a=o,s=!i;if(null==e)return!a;for(e=Ae(e);o--;){var l=n[o];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<a;){var c=(l=n[o])[0],u=e[c],d=l[1];if(s&&l[2]){if(u===r&&!(c in e))return!1}else{var p=new Yn;if(i)var h=i(u,d,c,e,t,p);if(!(h===r?Fi(d,u,3,i,p):h))return!1}}return!0}function Mi(e){return!(!ts(e)||(t=e,je&&je in t))&&(Xa(e)?qe:ye).test(Bo(e));var t}function Li(e){return"function"==typeof e?e:null==e?rl:"object"==typeof e?Ua(e)?qi(e[0],e[1]):Vi(e):hl(e)}function Ni(e){if(!So(e))return Kt(e);var t=[];for(var n in Ae(e))Le.call(e,n)&&"constructor"!=n&&t.push(n);return t}function ji(e){if(!ts(e))return function(e){var t=[];if(null!=e)for(var n in Ae(e))t.push(n);return t}(e);var t=So(e),n=[];for(var i in e)("constructor"!=i||!t&&Le.call(e,i))&&n.push(i);return n}function Bi(e,t){return e<t}function Ri(e,t){var n=-1,r=Ga(e)?i(e.length):[];return hi(e,function(e,i,o){r[++n]=t(e,i,o)}),r}function Vi(e){var t=po(e);return 1==t.length&&t[0][2]?Ao(t[0][0],t[0][1]):function(n){return n===e||$i(n,e,t)}}function qi(e,t){return _o(e)&&Eo(t)?Ao(jo(e),t):function(n){var i=As(n,e);return i===r&&i===t?Ds(n,e):Fi(t,i,3)}}function Hi(e,t,n,i,o){e!==t&&bi(t,function(a,s){if(o||(o=new Yn),ts(a))!function(e,t,n,i,o,a,s){var l=Io(e,n),c=Io(t,n),u=s.get(c);if(u)return void ti(e,n,u);var d=a?a(l,c,n+"",e,t,s):r,p=d===r;if(p){var h=Ua(c),f=!h&&Qa(c),m=!h&&!f&&us(c);d=c,h||f||m?Ua(l)?d=l:Ka(l)?d=Ir(l):f?(p=!1,d=xr(c,!0)):m?(p=!1,d=Er(c,!0)):d=[]:os(c)||za(c)?(d=l,za(l)?d=ys(l):ts(l)&&!Xa(l)||(d=yo(c))):p=!1}p&&(s.set(c,d),o(d,c,i,a,s),s.delete(c));ti(e,n,d)}(e,t,s,n,Hi,i,o);else{var l=i?i(Io(e,s),a,s+"",e,t,o):r;l===r&&(l=a),ti(e,s,l)}},Fs)}function zi(e,t){var n=e.length;if(n)return ko(t+=t<0?n:0,n)?e[t]:r}function Ui(e,t,n){t=t.length?Mt(t,function(e){return Ua(e)?function(t){return xi(t,1===e.length?e[0]:e)}:e}):[rl];var i=-1;t=Mt(t,Zt(co()));var r=Ri(e,function(e,n,r){var o=Mt(t,function(t){return t(e)});return{criteria:o,index:++i,value:e}});return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(r,function(e,t){return function(e,t,n){var i=-1,r=e.criteria,o=t.criteria,a=r.length,s=n.length;for(;++i<a;){var l=Ar(r[i],o[i]);if(l)return i>=s?l:l*("desc"==n[i]?-1:1)}return e.index-t.index}(e,t,n)})}function Wi(e,t,n){for(var i=-1,r=t.length,o={};++i<r;){var a=t[i],s=xi(e,a);n(s,a)&&er(o,kr(a,e),s)}return o}function Gi(e,t,n,i){var r=i?zt:Ht,o=-1,a=t.length,s=e;for(e===t&&(t=Ir(t)),n&&(s=Mt(e,Zt(n)));++o<a;)for(var l=0,c=t[o],u=n?n(c):c;(l=r(s,u,l,i))>-1;)s!==e&&Ye.call(s,l,1),Ye.call(e,l,1);return e}function Ki(e,t){for(var n=e?t.length:0,i=n-1;n--;){var r=t[n];if(n==i||r!==o){var o=r;ko(r)?Ye.call(e,r,1):pr(e,r)}}return e}function Qi(e,t){return e+gt(Cn()*(t-e+1))}function Yi(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=gt(t/2))&&(e+=e)}while(t);return n}function Ji(e,t){return Fo(Do(e,t,rl),e+"")}function Xi(e){return Xn(Vs(e))}function Zi(e,t){var n=Vs(e);return Lo(n,li(t,0,n.length))}function er(e,t,n,i){if(!ts(e))return e;for(var o=-1,a=(t=kr(t,e)).length,s=a-1,l=e;null!=l&&++o<a;){var c=jo(t[o]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=s){var d=l[c];(u=i?i(d,c,l):r)===r&&(u=ts(d)?d:ko(t[o+1])?[]:{})}ni(l,c,u),l=l[c]}return e}var tr=On?function(e,t){return On.set(e,t),e}:rl,nr=nt?function(e,t){return nt(e,"toString",{configurable:!0,enumerable:!1,value:tl(t),writable:!0})}:rl;function ir(e){return Lo(Vs(e))}function rr(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=i(o);++r<o;)a[r]=e[r+t];return a}function or(e,t){var n;return hi(e,function(e,i,r){return!(n=t(e,i,r))}),!!n}function ar(e,t,n){var i=0,r=null==e?i:e.length;if("number"==typeof t&&t==t&&r<=2147483647){for(;i<r;){var o=i+r>>>1,a=e[o];null!==a&&!cs(a)&&(n?a<=t:a<t)?i=o+1:r=o}return r}return sr(e,t,rl,n)}function sr(e,t,n,i){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,l=null===t,c=cs(t),u=t===r;o<a;){var d=gt((o+a)/2),p=n(e[d]),h=p!==r,f=null===p,m=p==p,g=cs(p);if(s)var v=i||m;else v=u?m&&(i||h):l?m&&h&&(i||!f):c?m&&h&&!f&&(i||!g):!f&&!g&&(i?p<=t:p<t);v?o=d+1:a=d}return kn(a,4294967294)}function lr(e,t){for(var n=-1,i=e.length,r=0,o=[];++n<i;){var a=e[n],s=t?t(a):a;if(!n||!Va(s,l)){var l=s;o[r++]=0===a?0:a}}return o}function cr(e){return"number"==typeof e?e:cs(e)?m:+e}function ur(e){if("string"==typeof e)return e;if(Ua(e))return Mt(e,ur)+"";if(cs(e))return Rn?Rn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function dr(e,t,n){var i=-1,r=Ft,o=e.length,a=!0,s=[],l=s;if(n)a=!1,r=$t;else if(o>=200){var c=t?null:Yr(e);if(c)return pn(c);a=!1,r=tn,l=new Qn}else l=t?[]:s;e:for(;++i<o;){var u=e[i],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(u)}else r(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}function pr(e,t){var n=-1,i=(t=kr(t,e)).length;if(!i)return!0;for(var r=null==e||"object"!=typeof e&&"function"!=typeof e;++n<i;){var o=t[n];if("string"==typeof o){if("__proto__"===o&&!Le.call(e,"__proto__"))return!1;if("constructor"===o&&n+1<i&&"string"==typeof t[n+1]&&"prototype"===t[n+1]){if(r&&0===n)continue;return!1}}}var a=To(e,t);return null==a||delete a[jo(Jo(t))]}function hr(e,t,n,i){return er(e,t,n(xi(e,t)),i)}function fr(e,t,n,i){for(var r=e.length,o=i?r:-1;(i?o--:++o<r)&&t(e[o],o,e););return n?rr(e,i?0:o,i?o+1:r):rr(e,i?o+1:0,i?r:o)}function mr(e,t){var n=e;return n instanceof Un&&(n=n.value()),Nt(t,function(e,t){return t.func.apply(t.thisArg,Lt([e],t.args))},n)}function gr(e,t,n){var r=e.length;if(r<2)return r?dr(e[0]):[];for(var o=-1,a=i(r);++o<r;)for(var s=e[o],l=-1;++l<r;)l!=o&&(a[o]=pi(a[o]||s,e[l],t,n));return dr(yi(a,1),t,n)}function vr(e,t,n){for(var i=-1,o=e.length,a=t.length,s={};++i<o;){var l=i<a?t[i]:r;n(s,e[i],l)}return s}function yr(e){return Ka(e)?e:[]}function br(e){return"function"==typeof e?e:rl}function kr(e,t){return Ua(e)?e:_o(e,t)?[e]:No(bs(e))}var wr=Ji;function _r(e,t,n){var i=e.length;return n=n===r?i:n,!t&&n>=i?e:rr(e,t,n)}var Cr=rt||function(e){return mt.clearTimeout(e)};function xr(e,t){if(t)return e.slice();var n=e.length,i=We?We(n):new e.constructor(n);return e.copy(i),i}function Sr(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function Er(e,t){var n=t?Sr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ar(e,t){if(e!==t){var n=e!==r,i=null===e,o=e==e,a=cs(e),s=t!==r,l=null===t,c=t==t,u=cs(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||i&&s&&c||!n&&c||!o)return 1;if(!i&&!a&&!u&&e<t||u&&n&&o&&!i&&!a||l&&n&&o||!s&&o||!c)return-1}return 0}function Dr(e,t,n,r){for(var o=-1,a=e.length,s=n.length,l=-1,c=t.length,u=bn(a-s,0),d=i(c+u),p=!r;++l<c;)d[l]=t[l];for(;++o<s;)(p||o<a)&&(d[n[o]]=e[o]);for(;u--;)d[l++]=e[o++];return d}function Tr(e,t,n,r){for(var o=-1,a=e.length,s=-1,l=n.length,c=-1,u=t.length,d=bn(a-l,0),p=i(d+u),h=!r;++o<d;)p[o]=e[o];for(var f=o;++c<u;)p[f+c]=t[c];for(;++s<l;)(h||o<a)&&(p[f+n[s]]=e[o++]);return p}function Ir(e,t){var n=-1,r=e.length;for(t||(t=i(r));++n<r;)t[n]=e[n];return t}function Or(e,t,n,i){var o=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],c=i?i(n[l],e[l],l,n,e):r;c===r&&(c=e[l]),o?ai(n,l,c):ni(n,l,c)}return n}function Pr(e,t){return function(n,i){var r=Ua(n)?Dt:ri,o=t?t():{};return r(n,e,co(i,2),o)}}function Fr(e){return Ji(function(t,n){var i=-1,o=n.length,a=o>1?n[o-1]:r,s=o>2?n[2]:r;for(a=e.length>3&&"function"==typeof a?(o--,a):r,s&&wo(n[0],n[1],s)&&(a=o<3?r:a,o=1),t=Ae(t);++i<o;){var l=n[i];l&&e(t,l,i,a)}return t})}function $r(e,t){return function(n,i){if(null==n)return n;if(!Ga(n))return e(n,i);for(var r=n.length,o=t?r:-1,a=Ae(n);(t?o--:++o<r)&&!1!==i(a[o],o,a););return n}}function Mr(e){return function(t,n,i){for(var r=-1,o=Ae(t),a=i(t),s=a.length;s--;){var l=a[e?s:++r];if(!1===n(o[l],l,o))break}return t}}function Lr(e){return function(t){var n=ln(t=bs(t))?mn(t):r,i=n?n[0]:t.charAt(0),o=n?_r(n,1).join(""):t.slice(1);return i[e]()+o}}function Nr(e){return function(t){return Nt(Xs(zs(t).replace(et,"")),e,"")}}function jr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=qn(e.prototype),i=e.apply(n,t);return ts(i)?i:n}}function Br(e){return function(t,n,i){var o=Ae(t);if(!Ga(t)){var a=co(n,3);t=Ps(t),n=function(e){return a(o[e],e,o)}}var s=e(t,n,i);return s>-1?o[a?t[s]:s]:r}}function Rr(e){return io(function(t){var n=t.length,i=n,a=zn.prototype.thru;for(e&&t.reverse();i--;){var s=t[i];if("function"!=typeof s)throw new Ie(o);if(a&&!l&&"wrapper"==so(s))var l=new zn([],!0)}for(i=l?i:n;++i<n;){var c=so(s=t[i]),u="wrapper"==c?ao(s):r;l=u&&Co(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[so(u[0])].apply(l,u[3]):1==s.length&&Co(s)?l[c]():l.thru(s)}return function(){var e=arguments,i=e[0];if(l&&1==e.length&&Ua(i))return l.plant(i).value();for(var r=0,o=n?t[r].apply(this,e):i;++r<n;)o=t[r].call(this,o);return o}})}function Vr(e,t,n,o,a,s,l,c,u,p){var h=t&d,f=1&t,m=2&t,g=24&t,v=512&t,y=m?r:jr(e);return function d(){for(var b=arguments.length,k=i(b),w=b;w--;)k[w]=arguments[w];if(g)var _=lo(d),C=function(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&++i;return i}(k,_);if(o&&(k=Dr(k,o,a,g)),s&&(k=Tr(k,s,l,g)),b-=C,g&&b<p){var x=dn(k,_);return Kr(e,t,Vr,d.placeholder,n,k,x,c,u,p-b)}var S=f?n:this,E=m?S[e]:e;return b=k.length,c?k=function(e,t){var n=e.length,i=kn(t.length,n),o=Ir(e);for(;i--;){var a=t[i];e[i]=ko(a,n)?o[a]:r}return e}(k,c):v&&b>1&&k.reverse(),h&&u<b&&(k.length=u),this&&this!==mt&&this instanceof d&&(E=y||jr(E)),E.apply(S,k)}}function qr(e,t){return function(n,i){return function(e,t,n,i){return wi(e,function(e,r,o){t(i,n(e),r,o)}),i}(n,e,t(i),{})}}function Hr(e,t){return function(n,i){var o;if(n===r&&i===r)return t;if(n!==r&&(o=n),i!==r){if(o===r)return i;"string"==typeof n||"string"==typeof i?(n=ur(n),i=ur(i)):(n=cr(n),i=cr(i)),o=e(n,i)}return o}}function zr(e){return io(function(t){return t=Mt(t,Zt(co())),Ji(function(n){var i=this;return e(t,function(e){return At(e,i,n)})})})}function Ur(e,t){var n=(t=t===r?" ":ur(t)).length;if(n<2)return n?Yi(t,e):t;var i=Yi(t,ft(e/fn(t)));return ln(t)?_r(mn(i),0,e).join(""):i.slice(0,e)}function Wr(e){return function(t,n,o){return o&&"number"!=typeof o&&wo(t,n,o)&&(n=o=r),t=fs(t),n===r?(n=t,t=0):n=fs(n),function(e,t,n,r){for(var o=-1,a=bn(ft((t-e)/(n||1)),0),s=i(a);a--;)s[r?a:++o]=e,e+=n;return s}(t,n,o=o===r?t<n?1:-1:fs(o),e)}}function Gr(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=vs(t),n=vs(n)),e(t,n)}}function Kr(e,t,n,i,o,a,s,l,d,p){var h=8&t;t|=h?c:u,4&(t&=~(h?u:c))||(t&=-4);var f=[e,t,o,h?a:r,h?s:r,h?r:a,h?r:s,l,d,p],m=n.apply(r,f);return Co(e)&&Oo(m,f),m.placeholder=i,$o(m,e,t)}function Qr(e){var t=Ee[e];return function(e,n){if(e=vs(e),(n=null==n?0:kn(ms(n),292))&&kt(e)){var i=(bs(e)+"e").split("e");return+((i=(bs(t(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return t(e)}}var Yr=Dn&&1/pn(new Dn([,-0]))[1]==h?function(e){return new Dn(e)}:cl;function Jr(e){return function(t){var n=go(t);return n==S?cn(t):n==I?hn(t):function(e,t){return Mt(t,function(t){return[t,e[t]]})}(t,e(t))}}function Xr(e,t,n,a,h,f,m,g){var v=2&t;if(!v&&"function"!=typeof e)throw new Ie(o);var y=a?a.length:0;if(y||(t&=-97,a=h=r),m=m===r?m:bn(ms(m),0),g=g===r?g:ms(g),y-=h?h.length:0,t&u){var b=a,k=h;a=h=r}var w=v?r:ao(e),_=[e,t,n,a,h,b,k,f,m,g];if(w&&function(e,t){var n=e[1],i=t[1],r=n|i,o=r<131,a=i==d&&8==n||i==d&&n==p&&e[7].length<=t[8]||384==i&&t[7].length<=t[8]&&8==n;if(!o&&!a)return e;1&i&&(e[2]=t[2],r|=1&n?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?Dr(c,l,t[4]):l,e[4]=c?dn(e[3],s):t[4]}(l=t[5])&&(c=e[5],e[5]=c?Tr(c,l,t[6]):l,e[6]=c?dn(e[5],s):t[6]);(l=t[7])&&(e[7]=l);i&d&&(e[8]=null==e[8]?t[8]:kn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=r}(_,w),e=_[0],t=_[1],n=_[2],a=_[3],h=_[4],!(g=_[9]=_[9]===r?v?0:e.length:bn(_[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)C=8==t||t==l?function(e,t,n){var o=jr(e);return function a(){for(var s=arguments.length,l=i(s),c=s,u=lo(a);c--;)l[c]=arguments[c];var d=s<3&&l[0]!==u&&l[s-1]!==u?[]:dn(l,u);return(s-=d.length)<n?Kr(e,t,Vr,a.placeholder,r,l,d,r,r,n-s):At(this&&this!==mt&&this instanceof a?o:e,this,l)}}(e,t,g):t!=c&&33!=t||h.length?Vr.apply(r,_):function(e,t,n,r){var o=1&t,a=jr(e);return function t(){for(var s=-1,l=arguments.length,c=-1,u=r.length,d=i(u+l),p=this&&this!==mt&&this instanceof t?a:e;++c<u;)d[c]=r[c];for(;l--;)d[c++]=arguments[++s];return At(p,o?n:this,d)}}(e,t,n,a);else var C=function(e,t,n){var i=1&t,r=jr(e);return function t(){return(this&&this!==mt&&this instanceof t?r:e).apply(i?n:this,arguments)}}(e,t,n);return $o((w?tr:Oo)(C,_),e,t)}function Zr(e,t,n,i){return e===r||Va(e,Fe[n])&&!Le.call(i,n)?t:e}function eo(e,t,n,i,o,a){return ts(e)&&ts(t)&&(a.set(t,e),Hi(e,t,r,eo,a),a.delete(t)),e}function to(e){return os(e)?r:e}function no(e,t,n,i,o,a){var s=1&n,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var p=-1,h=!0,f=2&n?new Qn:r;for(a.set(e,t),a.set(t,e);++p<l;){var m=e[p],g=t[p];if(i)var v=s?i(g,m,p,t,e,a):i(m,g,p,e,t,a);if(v!==r){if(v)continue;h=!1;break}if(f){if(!Bt(t,function(e,t){if(!tn(f,t)&&(m===e||o(m,e,n,i,a)))return f.push(t)})){h=!1;break}}else if(m!==g&&!o(m,g,n,i,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function io(e){return Fo(Do(e,r,Wo),e+"")}function ro(e){return Si(e,Ps,fo)}function oo(e){return Si(e,Fs,mo)}var ao=On?function(e){return On.get(e)}:cl;function so(e){for(var t=e.name+"",n=Pn[t],i=Le.call(Pn,t)?n.length:0;i--;){var r=n[i],o=r.func;if(null==o||o==e)return r.name}return t}function lo(e){return(Le.call(Vn,"placeholder")?Vn:e).placeholder}function co(){var e=Vn.iteratee||ol;return e=e===ol?Li:e,arguments.length?e(arguments[0],arguments[1]):e}function uo(e,t){var n,i,r=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function po(e){for(var t=Ps(e),n=t.length;n--;){var i=t[n],r=e[i];t[n]=[i,r,Eo(r)]}return t}function ho(e,t){var n=function(e,t){return null==e?r:e[t]}(e,t);return Mi(n)?n:r}var fo=vt?function(e){return null==e?[]:(e=Ae(e),Pt(vt(e),function(t){return Qe.call(e,t)}))}:gl,mo=vt?function(e){for(var t=[];e;)Lt(t,fo(e)),e=Ge(e);return t}:gl,go=Ei;function vo(e,t,n){for(var i=-1,r=(t=kr(t,e)).length,o=!1;++i<r;){var a=jo(t[i]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++i!=r?o:!!(r=null==e?0:e.length)&&es(r)&&ko(a,r)&&(Ua(e)||za(e))}function yo(e){return"function"!=typeof e.constructor||So(e)?{}:qn(Ge(e))}function bo(e){return Ua(e)||za(e)||!!(Je&&e&&e[Je])}function ko(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&ke.test(e))&&e>-1&&e%1==0&&e<t}function wo(e,t,n){if(!ts(n))return!1;var i=typeof t;return!!("number"==i?Ga(n)&&ko(t,n.length):"string"==i&&t in n)&&Va(n[t],e)}function _o(e,t){if(Ua(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!cs(e))||(ne.test(e)||!te.test(e)||null!=t&&e in Ae(t))}function Co(e){var t=so(e),n=Vn[t];if("function"!=typeof n||!(t in Un.prototype))return!1;if(e===n)return!0;var i=ao(n);return!!i&&e===i[0]}(Sn&&go(new Sn(new ArrayBuffer(1)))!=M||En&&go(new En)!=S||An&&go(An.resolve())!=D||Dn&&go(new Dn)!=I||Tn&&go(new Tn)!=F)&&(go=function(e){var t=Ei(e),n=t==A?e.constructor:r,i=n?Bo(n):"";if(i)switch(i){case Fn:return M;case $n:return S;case Mn:return D;case Ln:return I;case Nn:return F}return t});var xo=$e?Xa:vl;function So(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Fe)}function Eo(e){return e==e&&!ts(e)}function Ao(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==r||e in Ae(n)))}}function Do(e,t,n){return t=bn(t===r?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=bn(r.length-t,0),s=i(a);++o<a;)s[o]=r[t+o];o=-1;for(var l=i(t+1);++o<t;)l[o]=r[o];return l[t]=n(s),At(e,this,l)}}function To(e,t){return t.length<2?e:xi(e,rr(t,0,-1))}function Io(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Oo=Mo(tr),Po=ht||function(e,t){return mt.setTimeout(e,t)},Fo=Mo(nr);function $o(e,t,n){var i=t+"";return Fo(e,function(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return Tt(v,function(n){var i="_."+n[0];t&n[1]&&!Ft(e,i)&&e.push(i)}),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(ue):[]}(i),n)))}function Mo(e){var t=0,n=0;return function(){var i=wn(),o=16-(i-n);if(n=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Lo(e,t){var n=-1,i=e.length,o=i-1;for(t=t===r?i:t;++n<t;){var a=Qi(n,o),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var No=function(e){var t=Ma(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ie,function(e,n,i,r){t.push(i?r.replace(he,"$1"):n||e)}),t});function jo(e){if("string"==typeof e||cs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Bo(e){if(null!=e){try{return Me.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ro(e){if(e instanceof Un)return e.clone();var t=new zn(e.__wrapped__,e.__chain__);return t.__actions__=Ir(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Vo=Ji(function(e,t){return Ka(e)?pi(e,yi(t,1,Ka,!0)):[]}),qo=Ji(function(e,t){var n=Jo(t);return Ka(n)&&(n=r),Ka(e)?pi(e,yi(t,1,Ka,!0),co(n,2)):[]}),Ho=Ji(function(e,t){var n=Jo(t);return Ka(n)&&(n=r),Ka(e)?pi(e,yi(t,1,Ka,!0),r,n):[]});function zo(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:ms(n);return r<0&&(r=bn(i+r,0)),qt(e,co(t,3),r)}function Uo(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var o=i-1;return n!==r&&(o=ms(n),o=n<0?bn(i+o,0):kn(o,i-1)),qt(e,co(t,3),o,!0)}function Wo(e){return(null==e?0:e.length)?yi(e,1):[]}function Go(e){return e&&e.length?e[0]:r}var Ko=Ji(function(e){var t=Mt(e,yr);return t.length&&t[0]===e[0]?Ii(t):[]}),Qo=Ji(function(e){var t=Jo(e),n=Mt(e,yr);return t===Jo(n)?t=r:n.pop(),n.length&&n[0]===e[0]?Ii(n,co(t,2)):[]}),Yo=Ji(function(e){var t=Jo(e),n=Mt(e,yr);return(t="function"==typeof t?t:r)&&n.pop(),n.length&&n[0]===e[0]?Ii(n,r,t):[]});function Jo(e){var t=null==e?0:e.length;return t?e[t-1]:r}var Xo=Ji(Zo);function Zo(e,t){return e&&e.length&&t&&t.length?Gi(e,t):e}var ea=io(function(e,t){var n=null==e?0:e.length,i=si(e,t);return Ki(e,Mt(t,function(e){return ko(e,n)?+e:e}).sort(Ar)),i});function ta(e){return null==e?e:xn.call(e)}var na=Ji(function(e){return dr(yi(e,1,Ka,!0))}),ia=Ji(function(e){var t=Jo(e);return Ka(t)&&(t=r),dr(yi(e,1,Ka,!0),co(t,2))}),ra=Ji(function(e){var t=Jo(e);return t="function"==typeof t?t:r,dr(yi(e,1,Ka,!0),r,t)});function oa(e){if(!e||!e.length)return[];var t=0;return e=Pt(e,function(e){if(Ka(e))return t=bn(e.length,t),!0}),Jt(t,function(t){return Mt(e,Gt(t))})}function aa(e,t){if(!e||!e.length)return[];var n=oa(e);return null==t?n:Mt(n,function(e){return At(t,r,e)})}var sa=Ji(function(e,t){return Ka(e)?pi(e,t):[]}),la=Ji(function(e){return gr(Pt(e,Ka))}),ca=Ji(function(e){var t=Jo(e);return Ka(t)&&(t=r),gr(Pt(e,Ka),co(t,2))}),ua=Ji(function(e){var t=Jo(e);return t="function"==typeof t?t:r,gr(Pt(e,Ka),r,t)}),da=Ji(oa);var pa=Ji(function(e){var t=e.length,n=t>1?e[t-1]:r;return n="function"==typeof n?(e.pop(),n):r,aa(e,n)});function ha(e){var t=Vn(e);return t.__chain__=!0,t}function fa(e,t){return t(e)}var ma=io(function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,o=function(t){return si(t,e)};return!(t>1||this.__actions__.length)&&i instanceof Un&&ko(n)?((i=i.slice(n,+n+(t?1:0))).__actions__.push({func:fa,args:[o],thisArg:r}),new zn(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(r),e})):this.thru(o)});var ga=Pr(function(e,t,n){Le.call(e,n)?++e[n]:ai(e,n,1)});var va=Br(zo),ya=Br(Uo);function ba(e,t){return(Ua(e)?Tt:hi)(e,co(t,3))}function ka(e,t){return(Ua(e)?It:fi)(e,co(t,3))}var wa=Pr(function(e,t,n){Le.call(e,n)?e[n].push(t):ai(e,n,[t])});var _a=Ji(function(e,t,n){var r=-1,o="function"==typeof t,a=Ga(e)?i(e.length):[];return hi(e,function(e){a[++r]=o?At(t,e,n):Oi(e,t,n)}),a}),Ca=Pr(function(e,t,n){ai(e,n,t)});function xa(e,t){return(Ua(e)?Mt:Ri)(e,co(t,3))}var Sa=Pr(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var Ea=Ji(function(e,t){if(null==e)return[];var n=t.length;return n>1&&wo(e,t[0],t[1])?t=[]:n>2&&wo(t[0],t[1],t[2])&&(t=[t[0]]),Ui(e,yi(t,1),[])}),Aa=ut||function(){return mt.Date.now()};function Da(e,t,n){return t=n?r:t,t=e&&null==t?e.length:t,Xr(e,d,r,r,r,r,t)}function Ta(e,t){var n;if("function"!=typeof t)throw new Ie(o);return e=ms(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var Ia=Ji(function(e,t,n){var i=1;if(n.length){var r=dn(n,lo(Ia));i|=c}return Xr(e,i,t,n,r)}),Oa=Ji(function(e,t,n){var i=3;if(n.length){var r=dn(n,lo(Oa));i|=c}return Xr(t,i,e,n,r)});function Pa(e,t,n){var i,a,s,l,c,u,d=0,p=!1,h=!1,f=!0;if("function"!=typeof e)throw new Ie(o);function m(t){var n=i,o=a;return i=a=r,d=t,l=e.apply(o,n)}function g(e){var n=e-u;return u===r||n>=t||n<0||h&&e-d>=s}function v(){var e=Aa();if(g(e))return y(e);c=Po(v,function(e){var n=t-(e-u);return h?kn(n,s-(e-d)):n}(e))}function y(e){return c=r,f&&i?m(e):(i=a=r,l)}function b(){var e=Aa(),n=g(e);if(i=arguments,a=this,u=e,n){if(c===r)return function(e){return d=e,c=Po(v,t),p?m(e):l}(u);if(h)return Cr(c),c=Po(v,t),m(u)}return c===r&&(c=Po(v,t)),l}return t=vs(t)||0,ts(n)&&(p=!!n.leading,s=(h="maxWait"in n)?bn(vs(n.maxWait)||0,t):s,f="trailing"in n?!!n.trailing:f),b.cancel=function(){c!==r&&Cr(c),d=0,i=u=a=c=r},b.flush=function(){return c===r?l:y(Aa())},b}var Fa=Ji(function(e,t){return di(e,1,t)}),$a=Ji(function(e,t,n){return di(e,vs(t)||0,n)});function Ma(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ie(o);var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=e.apply(this,i);return n.cache=o.set(r,a)||o,a};return n.cache=new(Ma.Cache||Kn),n}function La(e){if("function"!=typeof e)throw new Ie(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ma.Cache=Kn;var Na=wr(function(e,t){var n=(t=1==t.length&&Ua(t[0])?Mt(t[0],Zt(co())):Mt(yi(t,1),Zt(co()))).length;return Ji(function(i){for(var r=-1,o=kn(i.length,n);++r<o;)i[r]=t[r].call(this,i[r]);return At(e,this,i)})}),ja=Ji(function(e,t){var n=dn(t,lo(ja));return Xr(e,c,r,t,n)}),Ba=Ji(function(e,t){var n=dn(t,lo(Ba));return Xr(e,u,r,t,n)}),Ra=io(function(e,t){return Xr(e,p,r,r,r,t)});function Va(e,t){return e===t||e!=e&&t!=t}var qa=Gr(Ai),Ha=Gr(function(e,t){return e>=t}),za=Pi(function(){return arguments}())?Pi:function(e){return ns(e)&&Le.call(e,"callee")&&!Qe.call(e,"callee")},Ua=i.isArray,Wa=wt?Zt(wt):function(e){return ns(e)&&Ei(e)==$};function Ga(e){return null!=e&&es(e.length)&&!Xa(e)}function Ka(e){return ns(e)&&Ga(e)}var Qa=bt||vl,Ya=_t?Zt(_t):function(e){return ns(e)&&Ei(e)==w};function Ja(e){if(!ns(e))return!1;var t=Ei(e);return t==_||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!os(e)}function Xa(e){if(!ts(e))return!1;var t=Ei(e);return t==C||t==x||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Za(e){return"number"==typeof e&&e==ms(e)}function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ns(e){return null!=e&&"object"==typeof e}var is=Ct?Zt(Ct):function(e){return ns(e)&&go(e)==S};function rs(e){return"number"==typeof e||ns(e)&&Ei(e)==E}function os(e){if(!ns(e)||Ei(e)!=A)return!1;var t=Ge(e);if(null===t)return!0;var n=Le.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Me.call(n)==Re}var as=xt?Zt(xt):function(e){return ns(e)&&Ei(e)==T};var ss=St?Zt(St):function(e){return ns(e)&&go(e)==I};function ls(e){return"string"==typeof e||!Ua(e)&&ns(e)&&Ei(e)==O}function cs(e){return"symbol"==typeof e||ns(e)&&Ei(e)==P}var us=Et?Zt(Et):function(e){return ns(e)&&es(e.length)&&!!lt[Ei(e)]};var ds=Gr(Bi),ps=Gr(function(e,t){return e<=t});function hs(e){if(!e)return[];if(Ga(e))return ls(e)?mn(e):Ir(e);if(Xe&&e[Xe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Xe]());var t=go(e);return(t==S?cn:t==I?pn:Vs)(e)}function fs(e){return e?(e=vs(e))===h||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ms(e){var t=fs(e),n=t%1;return t==t?n?t-n:t:0}function gs(e){return e?li(ms(e),0,g):0}function vs(e){if("number"==typeof e)return e;if(cs(e))return m;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Xt(e);var n=ve.test(e);return n||be.test(e)?pt(e.slice(2),n?2:8):ge.test(e)?m:+e}function ys(e){return Or(e,Fs(e))}function bs(e){return null==e?"":ur(e)}var ks=Fr(function(e,t){if(So(t)||Ga(t))Or(t,Ps(t),e);else for(var n in t)Le.call(t,n)&&ni(e,n,t[n])}),ws=Fr(function(e,t){Or(t,Fs(t),e)}),_s=Fr(function(e,t,n,i){Or(t,Fs(t),e,i)}),Cs=Fr(function(e,t,n,i){Or(t,Ps(t),e,i)}),xs=io(si);var Ss=Ji(function(e,t){e=Ae(e);var n=-1,i=t.length,o=i>2?t[2]:r;for(o&&wo(t[0],t[1],o)&&(i=1);++n<i;)for(var a=t[n],s=Fs(a),l=-1,c=s.length;++l<c;){var u=s[l],d=e[u];(d===r||Va(d,Fe[u])&&!Le.call(e,u))&&(e[u]=a[u])}return e}),Es=Ji(function(e){return e.push(r,eo),At(Ms,r,e)});function As(e,t,n){var i=null==e?r:xi(e,t);return i===r?n:i}function Ds(e,t){return null!=e&&vo(e,t,Ti)}var Ts=qr(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Be.call(t)),e[t]=n},tl(rl)),Is=qr(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Be.call(t)),Le.call(e,t)?e[t].push(n):e[t]=[n]},co),Os=Ji(Oi);function Ps(e){return Ga(e)?Jn(e):Ni(e)}function Fs(e){return Ga(e)?Jn(e,!0):ji(e)}var $s=Fr(function(e,t,n){Hi(e,t,n)}),Ms=Fr(function(e,t,n,i){Hi(e,t,n,i)}),Ls=io(function(e,t){var n={};if(null==e)return n;var i=!1;t=Mt(t,function(t){return t=kr(t,e),i||(i=t.length>1),t}),Or(e,oo(e),n),i&&(n=ci(n,7,to));for(var r=t.length;r--;)pr(n,t[r]);return n});var Ns=io(function(e,t){return null==e?{}:function(e,t){return Wi(e,t,function(t,n){return Ds(e,n)})}(e,t)});function js(e,t){if(null==e)return{};var n=Mt(oo(e),function(e){return[e]});return t=co(t),Wi(e,n,function(e,n){return t(e,n[0])})}var Bs=Jr(Ps),Rs=Jr(Fs);function Vs(e){return null==e?[]:en(e,Ps(e))}var qs=Nr(function(e,t,n){return t=t.toLowerCase(),e+(n?Hs(t):t)});function Hs(e){return Js(bs(e).toLowerCase())}function zs(e){return(e=bs(e))&&e.replace(we,on).replace(tt,"")}var Us=Nr(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Ws=Nr(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Gs=Lr("toLowerCase");var Ks=Nr(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var Qs=Nr(function(e,t,n){return e+(n?" ":"")+Js(t)});var Ys=Nr(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Js=Lr("toUpperCase");function Xs(e,t,n){return e=bs(e),(t=n?r:t)===r?function(e){return ot.test(e)}(e)?function(e){return e.match(it)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var Zs=Ji(function(e,t){try{return At(e,r,t)}catch(e){return Ja(e)?e:new xe(e)}}),el=io(function(e,t){return Tt(t,function(t){t=jo(t),ai(e,t,Ia(e[t],e))}),e});function tl(e){return function(){return e}}var nl=Rr(),il=Rr(!0);function rl(e){return e}function ol(e){return Li("function"==typeof e?e:ci(e,1))}var al=Ji(function(e,t){return function(n){return Oi(n,e,t)}}),sl=Ji(function(e,t){return function(n){return Oi(e,n,t)}});function ll(e,t,n){var i=Ps(t),r=Ci(t,i);null!=n||ts(t)&&(r.length||!i.length)||(n=t,t=e,e=this,r=Ci(t,Ps(t)));var o=!(ts(n)&&"chain"in n&&!n.chain),a=Xa(e);return Tt(r,function(n){var i=t[n];e[n]=i,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Ir(this.__actions__)).push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,Lt([this.value()],arguments))})}),e}function cl(){}var ul=zr(Mt),dl=zr(Ot),pl=zr(Bt);function hl(e){return _o(e)?Gt(jo(e)):function(e){return function(t){return xi(t,e)}}(e)}var fl=Wr(),ml=Wr(!0);function gl(){return[]}function vl(){return!1}var yl=Hr(function(e,t){return e+t},0),bl=Qr("ceil"),kl=Hr(function(e,t){return e/t},1),wl=Qr("floor");var _l,Cl=Hr(function(e,t){return e*t},1),xl=Qr("round"),Sl=Hr(function(e,t){return e-t},0);return Vn.after=function(e,t){if("function"!=typeof t)throw new Ie(o);return e=ms(e),function(){if(--e<1)return t.apply(this,arguments)}},Vn.ary=Da,Vn.assign=ks,Vn.assignIn=ws,Vn.assignInWith=_s,Vn.assignWith=Cs,Vn.at=xs,Vn.before=Ta,Vn.bind=Ia,Vn.bindAll=el,Vn.bindKey=Oa,Vn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ua(e)?e:[e]},Vn.chain=ha,Vn.chunk=function(e,t,n){t=(n?wo(e,t,n):t===r)?1:bn(ms(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,l=i(ft(o/t));a<o;)l[s++]=rr(e,a,a+=t);return l},Vn.compact=function(e){for(var t=-1,n=null==e?0:e.length,i=0,r=[];++t<n;){var o=e[t];o&&(r[i++]=o)}return r},Vn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=i(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Lt(Ua(n)?Ir(n):[n],yi(t,1))},Vn.cond=function(e){var t=null==e?0:e.length,n=co();return e=t?Mt(e,function(e){if("function"!=typeof e[1])throw new Ie(o);return[n(e[0]),e[1]]}):[],Ji(function(n){for(var i=-1;++i<t;){var r=e[i];if(At(r[0],this,n))return At(r[1],this,n)}})},Vn.conforms=function(e){return function(e){var t=Ps(e);return function(n){return ui(n,e,t)}}(ci(e,1))},Vn.constant=tl,Vn.countBy=ga,Vn.create=function(e,t){var n=qn(e);return null==t?n:oi(n,t)},Vn.curry=function e(t,n,i){var o=Xr(t,8,r,r,r,r,r,n=i?r:n);return o.placeholder=e.placeholder,o},Vn.curryRight=function e(t,n,i){var o=Xr(t,l,r,r,r,r,r,n=i?r:n);return o.placeholder=e.placeholder,o},Vn.debounce=Pa,Vn.defaults=Ss,Vn.defaultsDeep=Es,Vn.defer=Fa,Vn.delay=$a,Vn.difference=Vo,Vn.differenceBy=qo,Vn.differenceWith=Ho,Vn.drop=function(e,t,n){var i=null==e?0:e.length;return i?rr(e,(t=n||t===r?1:ms(t))<0?0:t,i):[]},Vn.dropRight=function(e,t,n){var i=null==e?0:e.length;return i?rr(e,0,(t=i-(t=n||t===r?1:ms(t)))<0?0:t):[]},Vn.dropRightWhile=function(e,t){return e&&e.length?fr(e,co(t,3),!0,!0):[]},Vn.dropWhile=function(e,t){return e&&e.length?fr(e,co(t,3),!0):[]},Vn.fill=function(e,t,n,i){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&wo(e,t,n)&&(n=0,i=o),function(e,t,n,i){var o=e.length;for((n=ms(n))<0&&(n=-n>o?0:o+n),(i=i===r||i>o?o:ms(i))<0&&(i+=o),i=n>i?0:gs(i);n<i;)e[n++]=t;return e}(e,t,n,i)):[]},Vn.filter=function(e,t){return(Ua(e)?Pt:vi)(e,co(t,3))},Vn.flatMap=function(e,t){return yi(xa(e,t),1)},Vn.flatMapDeep=function(e,t){return yi(xa(e,t),h)},Vn.flatMapDepth=function(e,t,n){return n=n===r?1:ms(n),yi(xa(e,t),n)},Vn.flatten=Wo,Vn.flattenDeep=function(e){return(null==e?0:e.length)?yi(e,h):[]},Vn.flattenDepth=function(e,t){return(null==e?0:e.length)?yi(e,t=t===r?1:ms(t)):[]},Vn.flip=function(e){return Xr(e,512)},Vn.flow=nl,Vn.flowRight=il,Vn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,i={};++t<n;){var r=e[t];i[r[0]]=r[1]}return i},Vn.functions=function(e){return null==e?[]:Ci(e,Ps(e))},Vn.functionsIn=function(e){return null==e?[]:Ci(e,Fs(e))},Vn.groupBy=wa,Vn.initial=function(e){return(null==e?0:e.length)?rr(e,0,-1):[]},Vn.intersection=Ko,Vn.intersectionBy=Qo,Vn.intersectionWith=Yo,Vn.invert=Ts,Vn.invertBy=Is,Vn.invokeMap=_a,Vn.iteratee=ol,Vn.keyBy=Ca,Vn.keys=Ps,Vn.keysIn=Fs,Vn.map=xa,Vn.mapKeys=function(e,t){var n={};return t=co(t,3),wi(e,function(e,i,r){ai(n,t(e,i,r),e)}),n},Vn.mapValues=function(e,t){var n={};return t=co(t,3),wi(e,function(e,i,r){ai(n,i,t(e,i,r))}),n},Vn.matches=function(e){return Vi(ci(e,1))},Vn.matchesProperty=function(e,t){return qi(e,ci(t,1))},Vn.memoize=Ma,Vn.merge=$s,Vn.mergeWith=Ms,Vn.method=al,Vn.methodOf=sl,Vn.mixin=ll,Vn.negate=La,Vn.nthArg=function(e){return e=ms(e),Ji(function(t){return zi(t,e)})},Vn.omit=Ls,Vn.omitBy=function(e,t){return js(e,La(co(t)))},Vn.once=function(e){return Ta(2,e)},Vn.orderBy=function(e,t,n,i){return null==e?[]:(Ua(t)||(t=null==t?[]:[t]),Ua(n=i?r:n)||(n=null==n?[]:[n]),Ui(e,t,n))},Vn.over=ul,Vn.overArgs=Na,Vn.overEvery=dl,Vn.overSome=pl,Vn.partial=ja,Vn.partialRight=Ba,Vn.partition=Sa,Vn.pick=Ns,Vn.pickBy=js,Vn.property=hl,Vn.propertyOf=function(e){return function(t){return null==e?r:xi(e,t)}},Vn.pull=Xo,Vn.pullAll=Zo,Vn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Gi(e,t,co(n,2)):e},Vn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Gi(e,t,r,n):e},Vn.pullAt=ea,Vn.range=fl,Vn.rangeRight=ml,Vn.rearg=Ra,Vn.reject=function(e,t){return(Ua(e)?Pt:vi)(e,La(co(t,3)))},Vn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,r=[],o=e.length;for(t=co(t,3);++i<o;){var a=e[i];t(a,i,e)&&(n.push(a),r.push(i))}return Ki(e,r),n},Vn.rest=function(e,t){if("function"!=typeof e)throw new Ie(o);return Ji(e,t=t===r?t:ms(t))},Vn.reverse=ta,Vn.sampleSize=function(e,t,n){return t=(n?wo(e,t,n):t===r)?1:ms(t),(Ua(e)?Zn:Zi)(e,t)},Vn.set=function(e,t,n){return null==e?e:er(e,t,n)},Vn.setWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:er(e,t,n,i)},Vn.shuffle=function(e){return(Ua(e)?ei:ir)(e)},Vn.slice=function(e,t,n){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&wo(e,t,n)?(t=0,n=i):(t=null==t?0:ms(t),n=n===r?i:ms(n)),rr(e,t,n)):[]},Vn.sortBy=Ea,Vn.sortedUniq=function(e){return e&&e.length?lr(e):[]},Vn.sortedUniqBy=function(e,t){return e&&e.length?lr(e,co(t,2)):[]},Vn.split=function(e,t,n){return n&&"number"!=typeof n&&wo(e,t,n)&&(t=n=r),(n=n===r?g:n>>>0)?(e=bs(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=ur(t))&&ln(e)?_r(mn(e),0,n):e.split(t,n):[]},Vn.spread=function(e,t){if("function"!=typeof e)throw new Ie(o);return t=null==t?0:bn(ms(t),0),Ji(function(n){var i=n[t],r=_r(n,0,t);return i&&Lt(r,i),At(e,this,r)})},Vn.tail=function(e){var t=null==e?0:e.length;return t?rr(e,1,t):[]},Vn.take=function(e,t,n){return e&&e.length?rr(e,0,(t=n||t===r?1:ms(t))<0?0:t):[]},Vn.takeRight=function(e,t,n){var i=null==e?0:e.length;return i?rr(e,(t=i-(t=n||t===r?1:ms(t)))<0?0:t,i):[]},Vn.takeRightWhile=function(e,t){return e&&e.length?fr(e,co(t,3),!1,!0):[]},Vn.takeWhile=function(e,t){return e&&e.length?fr(e,co(t,3)):[]},Vn.tap=function(e,t){return t(e),e},Vn.throttle=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new Ie(o);return ts(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),Pa(e,t,{leading:i,maxWait:t,trailing:r})},Vn.thru=fa,Vn.toArray=hs,Vn.toPairs=Bs,Vn.toPairsIn=Rs,Vn.toPath=function(e){return Ua(e)?Mt(e,jo):cs(e)?[e]:Ir(No(bs(e)))},Vn.toPlainObject=ys,Vn.transform=function(e,t,n){var i=Ua(e),r=i||Qa(e)||us(e);if(t=co(t,4),null==n){var o=e&&e.constructor;n=r?i?new o:[]:ts(e)&&Xa(o)?qn(Ge(e)):{}}return(r?Tt:wi)(e,function(e,i,r){return t(n,e,i,r)}),n},Vn.unary=function(e){return Da(e,1)},Vn.union=na,Vn.unionBy=ia,Vn.unionWith=ra,Vn.uniq=function(e){return e&&e.length?dr(e):[]},Vn.uniqBy=function(e,t){return e&&e.length?dr(e,co(t,2)):[]},Vn.uniqWith=function(e,t){return t="function"==typeof t?t:r,e&&e.length?dr(e,r,t):[]},Vn.unset=function(e,t){return null==e||pr(e,t)},Vn.unzip=oa,Vn.unzipWith=aa,Vn.update=function(e,t,n){return null==e?e:hr(e,t,br(n))},Vn.updateWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:hr(e,t,br(n),i)},Vn.values=Vs,Vn.valuesIn=function(e){return null==e?[]:en(e,Fs(e))},Vn.without=sa,Vn.words=Xs,Vn.wrap=function(e,t){return ja(br(t),e)},Vn.xor=la,Vn.xorBy=ca,Vn.xorWith=ua,Vn.zip=da,Vn.zipObject=function(e,t){return vr(e||[],t||[],ni)},Vn.zipObjectDeep=function(e,t){return vr(e||[],t||[],er)},Vn.zipWith=pa,Vn.entries=Bs,Vn.entriesIn=Rs,Vn.extend=ws,Vn.extendWith=_s,ll(Vn,Vn),Vn.add=yl,Vn.attempt=Zs,Vn.camelCase=qs,Vn.capitalize=Hs,Vn.ceil=bl,Vn.clamp=function(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=(n=vs(n))==n?n:0),t!==r&&(t=(t=vs(t))==t?t:0),li(vs(e),t,n)},Vn.clone=function(e){return ci(e,4)},Vn.cloneDeep=function(e){return ci(e,5)},Vn.cloneDeepWith=function(e,t){return ci(e,5,t="function"==typeof t?t:r)},Vn.cloneWith=function(e,t){return ci(e,4,t="function"==typeof t?t:r)},Vn.conformsTo=function(e,t){return null==t||ui(e,t,Ps(t))},Vn.deburr=zs,Vn.defaultTo=function(e,t){return null==e||e!=e?t:e},Vn.divide=kl,Vn.endsWith=function(e,t,n){e=bs(e),t=ur(t);var i=e.length,o=n=n===r?i:li(ms(n),0,i);return(n-=t.length)>=0&&e.slice(n,o)==t},Vn.eq=Va,Vn.escape=function(e){return(e=bs(e))&&J.test(e)?e.replace(Q,an):e},Vn.escapeRegExp=function(e){return(e=bs(e))&&oe.test(e)?e.replace(re,"\\$&"):e},Vn.every=function(e,t,n){var i=Ua(e)?Ot:mi;return n&&wo(e,t,n)&&(t=r),i(e,co(t,3))},Vn.find=va,Vn.findIndex=zo,Vn.findKey=function(e,t){return Vt(e,co(t,3),wi)},Vn.findLast=ya,Vn.findLastIndex=Uo,Vn.findLastKey=function(e,t){return Vt(e,co(t,3),_i)},Vn.floor=wl,Vn.forEach=ba,Vn.forEachRight=ka,Vn.forIn=function(e,t){return null==e?e:bi(e,co(t,3),Fs)},Vn.forInRight=function(e,t){return null==e?e:ki(e,co(t,3),Fs)},Vn.forOwn=function(e,t){return e&&wi(e,co(t,3))},Vn.forOwnRight=function(e,t){return e&&_i(e,co(t,3))},Vn.get=As,Vn.gt=qa,Vn.gte=Ha,Vn.has=function(e,t){return null!=e&&vo(e,t,Di)},Vn.hasIn=Ds,Vn.head=Go,Vn.identity=rl,Vn.includes=function(e,t,n,i){e=Ga(e)?e:Vs(e),n=n&&!i?ms(n):0;var r=e.length;return n<0&&(n=bn(r+n,0)),ls(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&Ht(e,t,n)>-1},Vn.indexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:ms(n);return r<0&&(r=bn(i+r,0)),Ht(e,t,r)},Vn.inRange=function(e,t,n){return t=fs(t),n===r?(n=t,t=0):n=fs(n),function(e,t,n){return e>=kn(t,n)&&e<bn(t,n)}(e=vs(e),t,n)},Vn.invoke=Os,Vn.isArguments=za,Vn.isArray=Ua,Vn.isArrayBuffer=Wa,Vn.isArrayLike=Ga,Vn.isArrayLikeObject=Ka,Vn.isBoolean=function(e){return!0===e||!1===e||ns(e)&&Ei(e)==k},Vn.isBuffer=Qa,Vn.isDate=Ya,Vn.isElement=function(e){return ns(e)&&1===e.nodeType&&!os(e)},Vn.isEmpty=function(e){if(null==e)return!0;if(Ga(e)&&(Ua(e)||"string"==typeof e||"function"==typeof e.splice||Qa(e)||us(e)||za(e)))return!e.length;var t=go(e);if(t==S||t==I)return!e.size;if(So(e))return!Ni(e).length;for(var n in e)if(Le.call(e,n))return!1;return!0},Vn.isEqual=function(e,t){return Fi(e,t)},Vn.isEqualWith=function(e,t,n){var i=(n="function"==typeof n?n:r)?n(e,t):r;return i===r?Fi(e,t,r,n):!!i},Vn.isError=Ja,Vn.isFinite=function(e){return"number"==typeof e&&kt(e)},Vn.isFunction=Xa,Vn.isInteger=Za,Vn.isLength=es,Vn.isMap=is,Vn.isMatch=function(e,t){return e===t||$i(e,t,po(t))},Vn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:r,$i(e,t,po(t),n)},Vn.isNaN=function(e){return rs(e)&&e!=+e},Vn.isNative=function(e){if(xo(e))throw new xe("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Mi(e)},Vn.isNil=function(e){return null==e},Vn.isNull=function(e){return null===e},Vn.isNumber=rs,Vn.isObject=ts,Vn.isObjectLike=ns,Vn.isPlainObject=os,Vn.isRegExp=as,Vn.isSafeInteger=function(e){return Za(e)&&e>=-9007199254740991&&e<=f},Vn.isSet=ss,Vn.isString=ls,Vn.isSymbol=cs,Vn.isTypedArray=us,Vn.isUndefined=function(e){return e===r},Vn.isWeakMap=function(e){return ns(e)&&go(e)==F},Vn.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==Ei(e)},Vn.join=function(e,t){return null==e?"":Rt.call(e,t)},Vn.kebabCase=Us,Vn.last=Jo,Vn.lastIndexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var o=i;return n!==r&&(o=(o=ms(n))<0?bn(i+o,0):kn(o,i-1)),t==t?function(e,t,n){for(var i=n+1;i--;)if(e[i]===t)return i;return i}(e,t,o):qt(e,Ut,o,!0)},Vn.lowerCase=Ws,Vn.lowerFirst=Gs,Vn.lt=ds,Vn.lte=ps,Vn.max=function(e){return e&&e.length?gi(e,rl,Ai):r},Vn.maxBy=function(e,t){return e&&e.length?gi(e,co(t,2),Ai):r},Vn.mean=function(e){return Wt(e,rl)},Vn.meanBy=function(e,t){return Wt(e,co(t,2))},Vn.min=function(e){return e&&e.length?gi(e,rl,Bi):r},Vn.minBy=function(e,t){return e&&e.length?gi(e,co(t,2),Bi):r},Vn.stubArray=gl,Vn.stubFalse=vl,Vn.stubObject=function(){return{}},Vn.stubString=function(){return""},Vn.stubTrue=function(){return!0},Vn.multiply=Cl,Vn.nth=function(e,t){return e&&e.length?zi(e,ms(t)):r},Vn.noConflict=function(){return mt._===this&&(mt._=Ve),this},Vn.noop=cl,Vn.now=Aa,Vn.pad=function(e,t,n){e=bs(e);var i=(t=ms(t))?fn(e):0;if(!t||i>=t)return e;var r=(t-i)/2;return Ur(gt(r),n)+e+Ur(ft(r),n)},Vn.padEnd=function(e,t,n){e=bs(e);var i=(t=ms(t))?fn(e):0;return t&&i<t?e+Ur(t-i,n):e},Vn.padStart=function(e,t,n){e=bs(e);var i=(t=ms(t))?fn(e):0;return t&&i<t?Ur(t-i,n)+e:e},Vn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),_n(bs(e).replace(ae,""),t||0)},Vn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&wo(e,t,n)&&(t=n=r),n===r&&("boolean"==typeof t?(n=t,t=r):"boolean"==typeof e&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=fs(e),t===r?(t=e,e=0):t=fs(t)),e>t){var i=e;e=t,t=i}if(n||e%1||t%1){var o=Cn();return kn(e+o*(t-e+dt("1e-"+((o+"").length-1))),t)}return Qi(e,t)},Vn.reduce=function(e,t,n){var i=Ua(e)?Nt:Qt,r=arguments.length<3;return i(e,co(t,4),n,r,hi)},Vn.reduceRight=function(e,t,n){var i=Ua(e)?jt:Qt,r=arguments.length<3;return i(e,co(t,4),n,r,fi)},Vn.repeat=function(e,t,n){return t=(n?wo(e,t,n):t===r)?1:ms(t),Yi(bs(e),t)},Vn.replace=function(){var e=arguments,t=bs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Vn.result=function(e,t,n){var i=-1,o=(t=kr(t,e)).length;for(o||(o=1,e=r);++i<o;){var a=null==e?r:e[jo(t[i])];a===r&&(i=o,a=n),e=Xa(a)?a.call(e):a}return e},Vn.round=xl,Vn.runInContext=e,Vn.sample=function(e){return(Ua(e)?Xn:Xi)(e)},Vn.size=function(e){if(null==e)return 0;if(Ga(e))return ls(e)?fn(e):e.length;var t=go(e);return t==S||t==I?e.size:Ni(e).length},Vn.snakeCase=Ks,Vn.some=function(e,t,n){var i=Ua(e)?Bt:or;return n&&wo(e,t,n)&&(t=r),i(e,co(t,3))},Vn.sortedIndex=function(e,t){return ar(e,t)},Vn.sortedIndexBy=function(e,t,n){return sr(e,t,co(n,2))},Vn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var i=ar(e,t);if(i<n&&Va(e[i],t))return i}return-1},Vn.sortedLastIndex=function(e,t){return ar(e,t,!0)},Vn.sortedLastIndexBy=function(e,t,n){return sr(e,t,co(n,2),!0)},Vn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=ar(e,t,!0)-1;if(Va(e[n],t))return n}return-1},Vn.startCase=Qs,Vn.startsWith=function(e,t,n){return e=bs(e),n=null==n?0:li(ms(n),0,e.length),t=ur(t),e.slice(n,n+t.length)==t},Vn.subtract=Sl,Vn.sum=function(e){return e&&e.length?Yt(e,rl):0},Vn.sumBy=function(e,t){return e&&e.length?Yt(e,co(t,2)):0},Vn.template=function(e,t,n){var i=Vn.templateSettings;n&&wo(e,t,n)&&(t=r),e=bs(e),t=_s({},t,i,Zr);var o,a,s=_s({},t.imports,i.imports,Zr),l=Ps(s),c=en(s,l),u=0,d=t.interpolate||_e,p="__p += '",h=De((t.escape||_e).source+"|"+d.source+"|"+(d===ee?fe:_e).source+"|"+(t.evaluate||_e).source+"|$","g"),f="//# sourceURL="+(Le.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++st+"]")+"\n";e.replace(h,function(t,n,i,r,s,l){return i||(i=r),p+=e.slice(u,l).replace(Ce,sn),n&&(o=!0,p+="' +\n__e("+n+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),i&&(p+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),u=l+t.length,t}),p+="';\n";var m=Le.call(t,"variable")&&t.variable;if(m){if(pe.test(m))throw new xe("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(U,""):p).replace(W,"$1").replace(G,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=Zs(function(){return Se(l,f+"return "+p).apply(r,c)});if(g.source=p,Ja(g))throw g;return g},Vn.times=function(e,t){if((e=ms(e))<1||e>f)return[];var n=g,i=kn(e,g);t=co(t),e-=g;for(var r=Jt(i,t);++n<e;)t(n);return r},Vn.toFinite=fs,Vn.toInteger=ms,Vn.toLength=gs,Vn.toLower=function(e){return bs(e).toLowerCase()},Vn.toNumber=vs,Vn.toSafeInteger=function(e){return e?li(ms(e),-9007199254740991,f):0===e?e:0},Vn.toString=bs,Vn.toUpper=function(e){return bs(e).toUpperCase()},Vn.trim=function(e,t,n){if((e=bs(e))&&(n||t===r))return Xt(e);if(!e||!(t=ur(t)))return e;var i=mn(e),o=mn(t);return _r(i,nn(i,o),rn(i,o)+1).join("")},Vn.trimEnd=function(e,t,n){if((e=bs(e))&&(n||t===r))return e.slice(0,gn(e)+1);if(!e||!(t=ur(t)))return e;var i=mn(e);return _r(i,0,rn(i,mn(t))+1).join("")},Vn.trimStart=function(e,t,n){if((e=bs(e))&&(n||t===r))return e.replace(ae,"");if(!e||!(t=ur(t)))return e;var i=mn(e);return _r(i,nn(i,mn(t))).join("")},Vn.truncate=function(e,t){var n=30,i="...";if(ts(t)){var o="separator"in t?t.separator:o;n="length"in t?ms(t.length):n,i="omission"in t?ur(t.omission):i}var a=(e=bs(e)).length;if(ln(e)){var s=mn(e);a=s.length}if(n>=a)return e;var l=n-fn(i);if(l<1)return i;var c=s?_r(s,0,l).join(""):e.slice(0,l);if(o===r)return c+i;if(s&&(l+=c.length-l),as(o)){if(e.slice(l).search(o)){var u,d=c;for(o.global||(o=De(o.source,bs(me.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var p=u.index;c=c.slice(0,p===r?l:p)}}else if(e.indexOf(ur(o),l)!=l){var h=c.lastIndexOf(o);h>-1&&(c=c.slice(0,h))}return c+i},Vn.unescape=function(e){return(e=bs(e))&&Y.test(e)?e.replace(K,vn):e},Vn.uniqueId=function(e){var t=++Ne;return bs(e)+t},Vn.upperCase=Ys,Vn.upperFirst=Js,Vn.each=ba,Vn.eachRight=ka,Vn.first=Go,ll(Vn,(_l={},wi(Vn,function(e,t){Le.call(Vn.prototype,t)||(_l[t]=e)}),_l),{chain:!1}),Vn.VERSION="4.17.23",Tt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Vn[e].placeholder=Vn}),Tt(["drop","take"],function(e,t){Un.prototype[e]=function(n){n=n===r?1:bn(ms(n),0);var i=this.__filtered__&&!t?new Un(this):this.clone();return i.__filtered__?i.__takeCount__=kn(n,i.__takeCount__):i.__views__.push({size:kn(n,g),type:e+(i.__dir__<0?"Right":"")}),i},Un.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Tt(["filter","map","takeWhile"],function(e,t){var n=t+1,i=1==n||3==n;Un.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:co(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}}),Tt(["head","last"],function(e,t){var n="take"+(t?"Right":"");Un.prototype[e]=function(){return this[n](1).value()[0]}}),Tt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Un.prototype[e]=function(){return this.__filtered__?new Un(this):this[n](1)}}),Un.prototype.compact=function(){return this.filter(rl)},Un.prototype.find=function(e){return this.filter(e).head()},Un.prototype.findLast=function(e){return this.reverse().find(e)},Un.prototype.invokeMap=Ji(function(e,t){return"function"==typeof e?new Un(this):this.map(function(n){return Oi(n,e,t)})}),Un.prototype.reject=function(e){return this.filter(La(co(e)))},Un.prototype.slice=function(e,t){e=ms(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Un(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(n=(t=ms(t))<0?n.dropRight(-t):n.take(t-e)),n)},Un.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Un.prototype.toArray=function(){return this.take(g)},wi(Un.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=Vn[i?"take"+("last"==t?"Right":""):t],a=i||/^find/.test(t);o&&(Vn.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,l=t instanceof Un,c=s[0],u=l||Ua(t),d=function(e){var t=o.apply(Vn,Lt([e],s));return i&&p?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var p=this.__chain__,h=!!this.__actions__.length,f=a&&!p,m=l&&!h;if(!a&&u){t=m?t:new Un(this);var g=e.apply(t,s);return g.__actions__.push({func:fa,args:[d],thisArg:r}),new zn(g,p)}return f&&m?e.apply(this,s):(g=this.thru(d),f?i?g.value()[0]:g.value():g)})}),Tt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Oe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);Vn.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var r=this.value();return t.apply(Ua(r)?r:[],e)}return this[n](function(n){return t.apply(Ua(n)?n:[],e)})}}),wi(Un.prototype,function(e,t){var n=Vn[t];if(n){var i=n.name+"";Le.call(Pn,i)||(Pn[i]=[]),Pn[i].push({name:t,func:n})}}),Pn[Vr(r,2).name]=[{name:"wrapper",func:r}],Un.prototype.clone=function(){var e=new Un(this.__wrapped__);return e.__actions__=Ir(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ir(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ir(this.__views__),e},Un.prototype.reverse=function(){if(this.__filtered__){var e=new Un(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Un.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ua(e),i=t<0,r=n?e.length:0,o=function(e,t,n){var i=-1,r=n.length;for(;++i<r;){var o=n[i],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=kn(t,e+a);break;case"takeRight":e=bn(e,t-a)}}return{start:e,end:t}}(0,r,this.__views__),a=o.start,s=o.end,l=s-a,c=i?s:a-1,u=this.__iteratees__,d=u.length,p=0,h=kn(l,this.__takeCount__);if(!n||!i&&r==l&&h==l)return mr(e,this.__actions__);var f=[];e:for(;l--&&p<h;){for(var m=-1,g=e[c+=t];++m<d;){var v=u[m],y=v.iteratee,b=v.type,k=y(g);if(2==b)g=k;else if(!k){if(1==b)continue e;break e}}f[p++]=g}return f},Vn.prototype.at=ma,Vn.prototype.chain=function(){return ha(this)},Vn.prototype.commit=function(){return new zn(this.value(),this.__chain__)},Vn.prototype.next=function(){this.__values__===r&&(this.__values__=hs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?r:this.__values__[this.__index__++]}},Vn.prototype.plant=function(e){for(var t,n=this;n instanceof Hn;){var i=Ro(n);i.__index__=0,i.__values__=r,t?o.__wrapped__=i:t=i;var o=i;n=n.__wrapped__}return o.__wrapped__=e,t},Vn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Un){var t=e;return this.__actions__.length&&(t=new Un(this)),(t=t.reverse()).__actions__.push({func:fa,args:[ta],thisArg:r}),new zn(t,this.__chain__)}return this.thru(ta)},Vn.prototype.toJSON=Vn.prototype.valueOf=Vn.prototype.value=function(){return mr(this.__wrapped__,this.__actions__)},Vn.prototype.first=Vn.prototype.head,Xe&&(Vn.prototype[Xe]=function(){return this}),Vn}();mt._=yn,(i=function(){return yn}.call(t,n,t,e))===r||(e.exports=i)}.call(this)},78103:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"attr-whitespace",description:"All attributes should be separated by only one space and not have leading/trailing whitespace.",init(e,t,n){const i=Array.isArray(n)?n:[];e.addListener("tagstart",e=>{const n=e.attrs;let r;const o=e.col+e.tagName.length+1;n.forEach(n=>{r=n;const a=n.name;-1===i.indexOf(a)&&(n.value.trim()!==n.value&&t.error(`The attributes of [ ${a} ] must not have leading or trailing whitespace.`,e.line,o+r.index,this,r.raw),n.value.replace(/ +(?= )/g,"")!==n.value&&t.error(`The attributes of [ ${a} ] must be separated by only one space.`,e.line,o+r.index,this,r.raw))})})}}},78312:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M48 16h64v20H48zM16 54h96v20H16zm32 36h64v20H48z"/></svg>'},78345:function(e,t,n){var i={"./add.svg":25102,"./api.svg":31799,"./arrow-down.svg":35541,"./arrow-left.svg":68494,"./arrow-right.svg":76493,"./arrow-up.svg":23834,"./b.svg":64333,"./box.svg":70488,"./brush.svg":8063,"./check.svg":69187,"./clipboard.svg":35997,"./clone.svg":28420,"./close-box.svg":25011,"./close.svg":72439,"./cmd.svg":16239,"./code-brackets.svg":93084,"./collapse.svg":16428,"./color.svg":8690,"./columns.svg":18382,"./conditions.svg":1603,"./controls/align-items/auto-y.svg":3838,"./controls/align-items/auto.svg":45304,"./controls/align-items/baseline-y.svg":59858,"./controls/align-items/baseline.svg":88036,"./controls/align-items/center-y.svg":23448,"./controls/align-items/center.svg":80194,"./controls/align-items/flex-end-y.svg":70094,"./controls/align-items/flex-end.svg":8488,"./controls/align-items/flex-start-y.svg":6509,"./controls/align-items/flex-start.svg":46451,"./controls/align-items/stretch-y.svg":57286,"./controls/align-items/stretch.svg":35392,"./controls/direction/column.svg":20966,"./controls/direction/reverse.svg":94002,"./controls/direction/row.svg":48420,"./controls/display/block.svg":42310,"./controls/display/flex.svg":16758,"./controls/display/grid.svg":18275,"./controls/display/inline-block.svg":15276,"./controls/display/inline.svg":37004,"./controls/display/none.svg":78609,"./controls/display/none_.svg":33444,"./controls/justify-content/center-y.svg":98212,"./controls/justify-content/center.svg":40822,"./controls/justify-content/flex-end-y.svg":82466,"./controls/justify-content/flex-end.svg":31732,"./controls/justify-content/flex-start-y.svg":58937,"./controls/justify-content/flex-start.svg":40039,"./controls/justify-content/space-around-y.svg":30119,"./controls/justify-content/space-around.svg":33821,"./controls/justify-content/space-between-y.svg":80284,"./controls/justify-content/space-between.svg":11310,"./controls/justify-content/space-evenly-y.svg":92401,"./controls/justify-content/space-evenly.svg":34687,"./controls/text-align/center.svg":46749,"./controls/text-align/justify.svg":8086,"./controls/text-align/left.svg":48101,"./controls/text-align/right.svg":78312,"./controls/text-decoration/line-through.svg":87755,"./controls/text-decoration/none.svg":94771,"./controls/text-decoration/overline.svg":28765,"./controls/text-decoration/underline.svg":44147,"./controls/text-transform/capitalize.svg":49801,"./controls/text-transform/lowercase.svg":65562,"./controls/text-transform/none.svg":69905,"./controls/text-transform/uppercase.svg":77889,"./convert.svg":60494,"./css3.svg":60585,"./curly-brackets.svg":78910,"./cursor.svg":49743,"./deprecated.svg":73146,"./design-palette.svg":5621,"./desktop-2.svg":79954,"./desktop-3.svg":83267,"./desktop.svg":43079,"./dropdown.svg":37090,"./edit.svg":72649,"./equal.svg":28263,"./exit.svg":84661,"./expand.svg":58965,"./export.svg":97135,"./filter-by.svg":91499,"./filter.svg":77723,"./flash.svg":55573,"./folder.svg":29009,"./globe.svg":51076,"./grid.svg":91113,"./hash.svg":17605,"./heart.svg":52503,"./height.svg":93400,"./help.svg":68564,"./html.svg":15158,"./image.svg":94044,"./import.svg":54978,"./info-fill.svg":41477,"./info.svg":5569,"./interactions.svg":9406,"./laptop.svg":281,"./link-all.svg":23155,"./link.svg":35033,"./locked.svg":67243,"./loop.svg":43591,"./moon.svg":63642,"./more.svg":63982,"./move.svg":69466,"./new-tab.svg":97239,"./no-results.svg":19241,"./notifications.svg":43339,"./opacity.svg":86644,"./package.svg":3607,"./page.svg":53036,"./pages.svg":12103,"./palette.svg":74810,"./phone-landscape.svg":15767,"./phone-portrait.svg":52585,"./pin.svg":94154,"./preview.svg":52203,"./pseudo-colon-square.svg":58103,"./pseudo-colon.svg":97381,"./publish.svg":26538,"./redo.svg":93521,"./redo2.svg":54545,"./redo3.svg":13984,"./redo4.svg":27007,"./refresh.svg":28486,"./revision.svg":77138,"./save.svg":6414,"./search.svg":64245,"./settings.svg":28982,"./sort-a-to-z.svg":49926,"./square-fill.svg":86266,"./square.svg":11664,"./star.svg":62281,"./structure-hidden.svg":58257,"./structure.svg":59628,"./sun.svg":78957,"./tab-attributes-2.svg":88973,"./tab-attributes.svg":77952,"./tab-background.svg":4227,"./tab-border.svg":36753,"./tab-gradient.svg":81259,"./tab-layout.svg":33825,"./tab-transform.svg":73677,"./tab-typography.svg":39112,"./tablet-landscape.svg":65777,"./tablet-portrait.svg":71207,"./tag.svg":67367,"./target.svg":45094,"./toggle.svg":35321,"./touch-id.svg":66524,"./trash.svg":14737,"./undo.svg":67019,"./undo2.svg":12819,"./undo3.svg":50178,"./undo4.svg":8493,"./unlinked.svg":9299,"./unlocked.svg":83386,"./user.svg":27732,"./video.svg":6646,"./vim-logo.svg":32657,"./width.svg":46979,"./width_.svg":11102,"./wordpress.svg":67374};function r(e){var t=o(e);return n(t)}function o(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id=78345},78609:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="bricks-svg"><g id="invisible-1--disable-eye-eyeball-hide-off-view"><path id="Intersect" stroke="currentColor" d="M5.793 6.26C7.373 4.495 9.173 3.39 12 3.39c5.262 0 6.964 3.827 10.313 8.61-1.724 2.463-3.012 4.672-4.574 6.235" stroke-width="2"/><path id="Intersect_2" stroke="currentColor" d="M15.827 19.704c-1.059.58-2.291.906-3.826.906-5.262 0-6.965-3.827-10.313-8.61.964-1.378 1.792-2.676 2.608-3.827" stroke-width="2"/><path id="Vector 1349" stroke="currentColor" d="m1.197 1.197 21.606 21.606" stroke-width="2"/><path id="Ellipse 20" stroke="currentColor" d="M14.03 14.03a2.87 2.87 0 1 0-4.06-4.06" stroke-width="2"/></g></svg>'},78712:function(){},78727:function(){},78910:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="bricks-svg"><path fill="currentColor" fill-rule="evenodd" d="M7.029 2.242a1 1 0 1 0 0-2h-.484a3 3 0 0 0-3 2.999l-.002 6.77a1 1 0 0 1-.816.983 3 3 0 0 0-.184-.005H1.95a1 1 0 0 0-1 1v.022a1 1 0 0 0 1 1h.594q.093 0 .184-.005a1 1 0 0 1 .816.983l.002 6.77a3 3 0 0 0 3 3h.484a1 1 0 1 0 0-2h-.484a1 1 0 0 1-1-1l-.002-6.77c0-.764-.285-1.46-.754-1.989.47-.53.754-1.225.754-1.988l.002-6.77a1 1 0 0 1 1-1zm9.946 0a1 1 0 0 1 0-2h.484a3 3 0 0 1 3 2.999l.001 6.77a1 1 0 0 0 .817.983q.09-.005.183-.005h.595a1 1 0 0 1 1 1v.022a1 1 0 0 1-1 1h-.595q-.091 0-.183-.005a1 1 0 0 0-.817.983l-.001 6.77a3 3 0 0 1-3 3h-.484a1 1 0 0 1 0-2h.484a1 1 0 0 0 1-1l.001-6.77c0-.763.285-1.46.754-1.989a3 3 0 0 1-.754-1.988l-.001-6.77a1 1 0 0 0-1-1z" clip-rule="evenodd" stroke-width="1"/></svg>'},78957:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" class="bricks-svg"><path d="M15 2h2v5h-2Z" fill="currentColor"/><path d="m21.687 8.9 3.506-3.506 1.414 1.414-3.506 3.506Z" fill="currentColor"/><path d="M25 15h5v2h-5Z" fill="currentColor"/><path d="m21.687 23.1 1.414-1.413 3.506 3.506-1.414 1.414Z" fill="currentColor"/><path d="M15 25h2v5h-2Z" fill="currentColor"/><path d="M5.394 25.192 8.9 21.686l1.414 1.414-3.506 3.506Z" fill="currentColor"/><path d="M2 15h5v2H2Z" fill="currentColor"/><path d="m5.394 6.808 1.414-1.414L10.314 8.9 8.9 10.314Z" fill="currentColor"/><path d="M16 12a4 4 0 1 1-4 4 4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6 6 6 0 0 0-6-6" fill="currentColor"/><path d="M0 0h32v32H0Z" fill="none"/></svg>'},79032:function(){},79290:function(e){"use strict";e.exports=RangeError},79367:function(){},79538:function(e){"use strict";e.exports=ReferenceError},79612:function(e){"use strict";e.exports=Object},79954:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14" class="bricks-svg"><g id="screen-curve--screen-curved-device-electronics-monitor-diplay-computer"><path id="Vector" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M12.93 10.847a42 42 0 0 0-11.86 0 .5.5 0 0 1-.57-.49v-8.36a.49.49 0 0 1 .57-.49c3.934.55 7.926.55 11.86 0a.49.49 0 0 1 .57.48v8.36a.498.498 0 0 1-.57.5" stroke-width="1"/><path id="Vector_2" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M7 10.43v2.07" stroke-width="1"/><path id="Vector_3" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.5h5" stroke-width="1"/></g></svg>'},80194:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M60 0h8v24h-8zm0 104h8v24h-8zM16 28h96v32H16zm0 40h96v32H16z"/></svg>'},80284:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M120 0h8v128h-8zM0 0h8v128H0zm12 16h32v96H12zm72 0h32v96H84z"/></svg>'},80422:function(){},80604:function(e,t,n){"use strict";e.exports=o;var i=n(37131),r=n(70482);function o(e,t,n,i){this.a=e,this.b=t,this.c=n,this.d=i}o.prototype={constructor:o,compare:function(e){var t,n,i=["a","b","c","d"];for(t=0,n=i.length;t<n;t++){if(this[i[t]]<e[i[t]])return-1;if(this[i[t]]>e[i[t]])return 1}return 0},valueOf:function(){return 1e3*this.a+100*this.b+10*this.c+this.d},toString:function(){return this.a+","+this.b+","+this.c+","+this.d}},o.calculate=function(e){var t,n,a,s=0,l=0,c=0;function u(e){var t,n,r,o,a,d=e.elementName?e.elementName.text:"";for(d&&"*"!==d.charAt(d.length-1)&&c++,t=0,r=e.modifiers.length;t<r;t++)switch((a=e.modifiers[t]).type){case"class":case"attribute":l++;break;case"id":s++;break;case"pseudo":i.isElement(a.text)?c++:l++;break;case"not":for(n=0,o=a.args.length;n<o;n++)u(a.args[n])}}for(t=0,n=e.parts.length;t<n;t++)(a=e.parts[t])instanceof r&&u(a);return new o(0,s,l,c)}},81135:function(e){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},81259:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M.881 3.486a2.573 2.573 0 1 0 5.146 0 2.573 2.573 0 0 0-5.146 0" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M.881 12a2.573 2.573 0 1 0 5.146 0 2.573 2.573 0 0 0-5.146 0" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M.881 20.514a2.573 2.573 0 1 0 5.146 0 2.573 2.573 0 0 0-5.146 0" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M9.279 3.486a1.934 1.934 0 1 0 3.868 0 1.934 1.934 0 0 0-3.868 0" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M9.279 12a1.934 1.934 0 1 0 3.867 0 1.934 1.934 0 0 0-3.867 0" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M9.279 20.514a1.934 1.934 0 1 0 3.869 0 1.934 1.934 0 0 0-3.869 0" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M16.398 3.486a1.34 1.34 0 1 0 2.682 0 1.34 1.34 0 0 0-2.682 0" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M16.398 12a1.34 1.34 0 1 0 2.681 0 1.34 1.34 0 0 0-2.681 0" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M16.398 20.514a1.341 1.341 0 1 0 2.682 0 1.341 1.341 0 0 0-2.682 0" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M22.726 3.093c-.197 0-.394.197-.394.394s.197.393.394.393" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M22.725 3.093c.197 0 .394.197.394.394s-.197.393-.394.393" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M22.726 11.606a.42.42 0 0 0-.394.394c0 .197.197.393.394.393" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M22.725 11.606c.197 0 .394.197.394.394a.42.42 0 0 1-.394.393" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M22.726 20.12c-.197 0-.394.197-.394.394s.197.393.394.393" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M22.725 20.12c.197 0 .394.197.394.394s-.197.393-.394.393" stroke-width="2"/></svg>'},81363:function(){},82417:function(){},82466:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><g fill="none" fill-rule="evenodd"><path fill="#23282D" d="M120 0h8v128h-8z"/><path fill="#23282D" d="M80 112h32V16H80zm-40 0h32V16H40z"/></g></svg>'},83256:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"attr-unsafe-chars",description:"Attribute values cannot contain unsafe chars.",init(e,t){e.addListener("tagstart",e=>{const n=e.attrs;let i;const r=e.col+e.tagName.length+1,o=/[\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/;let a;for(let s=0,l=n.length;s<l;s++)if(i=n[s],a=o.exec(i.value),null!==a){const n=escape(a[0]).replace(/%u/,"\\u").replace(/%/,"\\x");t.warn(`The value of attribute [ ${i.name} ] cannot contain an unsafe char [ ${n} ].`,e.line,r+i.index,this,i.raw)}})}}},83267:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14" class="bricks-svg"><g id="screen-2--screen-device-electronics-monitor-diplay-computer"><path id="Vector" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M4.09 12.5a2.943 2.943 0 0 1 5.82 0" stroke-width="1"/><path id="Vector_2" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M13 1.5H1a.5.5 0 0 0-.5.5v7.5a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5V2a.5.5 0 0 0-.5-.5" stroke-width="1"/></g></svg>'},83386:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M.75 9.75V6a5.25 5.25 0 1 1 10.5 0v3.75" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M21.75 9.75H8.25a1.5 1.5 0 0 0-1.5 1.5v10.5a1.5 1.5 0 0 0 1.5 1.5h13.5a1.5 1.5 0 0 0 1.5-1.5v-10.5a1.5 1.5 0 0 0-1.5-1.5" stroke-width="2"/><path stroke="currentColor" d="M15 16.5a.375.375 0 0 1 0-.75" stroke-width="2"/><path stroke="currentColor" d="M15 16.5a.375.375 0 0 0 0-.75" stroke-width="2"/></svg>'},83574:function(){},83756:function(e,t,n){"use strict";var i={};n.r(i),n.d(i,{BaseTransition:function(){return Pi},BaseTransitionPropsValidators:function(){return Di},Comment:function(){return Sa},DeprecationTypes:function(){return Ns},EffectScope:function(){return be},ErrorCodes:function(){return wn},ErrorTypeStrings:function(){return Os},Fragment:function(){return Ca},KeepAlive:function(){return pr},ReactiveEffect:function(){return xe},Static:function(){return Ea},Suspense:function(){return va},Teleport:function(){return wi},Text:function(){return xa},TrackOpTypes:function(){return dn},Transition:function(){return Ys},TransitionGroup:function(){return Yl},TriggerOpTypes:function(){return pn},VueElement:function(){return Rl},assertNumber:function(){return kn},callWithAsyncErrorHandling:function(){return xn},callWithErrorHandling:function(){return Cn},camelize:function(){return N},capitalize:function(){return R},cloneVNode:function(){return Wa},compatUtils:function(){return Ls},computed:function(){return xs},createApp:function(){return Tc},createBlock:function(){return La},createCommentVNode:function(){return Qa},createElementBlock:function(){return Ma},createElementVNode:function(){return qa},createHydrationRenderer:function(){return oa},createPropsRestProxy:function(){return co},createRenderer:function(){return ra},createSSRApp:function(){return Ic},createSlots:function(){return Vr},createStaticVNode:function(){return Ka},createTextVNode:function(){return Ga},createVNode:function(){return Ha},customRef:function(){return rn},defineAsyncComponent:function(){return lr},defineComponent:function(){return Bi},defineCustomElement:function(){return Nl},defineEmits:function(){return Jr},defineExpose:function(){return Xr},defineModel:function(){return to},defineOptions:function(){return Zr},defineProps:function(){return Yr},defineSSRCustomElement:function(){return jl},defineSlots:function(){return eo},devtools:function(){return Ps},effect:function(){return Ne},effectScope:function(){return ke},getCurrentInstance:function(){return os},getCurrentScope:function(){return we},getCurrentWatcher:function(){return gn},getTransitionRawChildren:function(){return ji},guardReactiveProps:function(){return Ua},h:function(){return Ss},handleError:function(){return Sn},hasInjectionContext:function(){return ni},hydrate:function(){return Dc},hydrateOnIdle:function(){return ir},hydrateOnInteraction:function(){return ar},hydrateOnMediaQuery:function(){return or},hydrateOnVisible:function(){return rr},initCustomFormatter:function(){return Es},initDirectivesForSSR:function(){return $c},inject:function(){return ti},isMemoSame:function(){return Ds},isProxy:function(){return Vt},isReactive:function(){return jt},isReadonly:function(){return Bt},isRef:function(){return Wt},isRuntimeOnly:function(){return vs},isShallow:function(){return Rt},isVNode:function(){return Na},markRaw:function(){return Ht},mergeDefaults:function(){return so},mergeModels:function(){return lo},mergeProps:function(){return Za},nextTick:function(){return Fn},nodeOps:function(){return Hs},normalizeClass:function(){return te},normalizeProps:function(){return ne},normalizeStyle:function(){return Y},onActivated:function(){return fr},onBeforeMount:function(){return _r},onBeforeUnmount:function(){return Er},onBeforeUpdate:function(){return xr},onDeactivated:function(){return mr},onErrorCaptured:function(){return Or},onMounted:function(){return Cr},onRenderTracked:function(){return Ir},onRenderTriggered:function(){return Tr},onScopeDispose:function(){return _e},onServerPrefetch:function(){return Dr},onUnmounted:function(){return Ar},onUpdated:function(){return Sr},onWatcherCleanup:function(){return vn},openBlock:function(){return Ta},patchProp:function(){return Ml},popScopeId:function(){return Qn},provide:function(){return ei},proxyRefs:function(){return tn},pushScopeId:function(){return Kn},queuePostFlushCb:function(){return Ln},reactive:function(){return Ft},readonly:function(){return Mt},ref:function(){return Gt},registerRuntimeCompiler:function(){return gs},render:function(){return Ac},renderList:function(){return Rr},renderSlot:function(){return qr},resolveComponent:function(){return $r},resolveDirective:function(){return Nr},resolveDynamicComponent:function(){return Lr},resolveFilter:function(){return Ms},resolveTransitionHooks:function(){return $i},setBlockTracking:function(){return Fa},setDevtoolsHook:function(){return Fs},setTransitionHooks:function(){return Ni},shallowReactive:function(){return $t},shallowReadonly:function(){return Lt},shallowRef:function(){return Kt},ssrContextKey:function(){return ii},ssrUtils:function(){return $s},stop:function(){return je},toDisplayString:function(){return he},toHandlerKey:function(){return V},toHandlers:function(){return zr},toRaw:function(){return qt},toRef:function(){return ln},toRefs:function(){return on},toValue:function(){return Zt},transformVNodeArgs:function(){return Ba},triggerRef:function(){return Jt},unref:function(){return Xt},useAttrs:function(){return ro},useCssModule:function(){return Hl},useCssVars:function(){return ml},useHost:function(){return Vl},useId:function(){return Ri},useModel:function(){return Do},useSSRContext:function(){return ri},useShadowRoot:function(){return ql},useSlots:function(){return io},useTemplateRef:function(){return qi},useTransitionState:function(){return Ei},vModelCheckbox:function(){return sc},vModelDynamic:function(){return fc},vModelRadio:function(){return cc},vModelSelect:function(){return uc},vModelText:function(){return ac},vShow:function(){return pl},version:function(){return Ts},warn:function(){return Is},watch:function(){return li},watchEffect:function(){return oi},watchPostEffect:function(){return ai},watchSyncEffect:function(){return si},withAsyncContext:function(){return uo},withCtx:function(){return Jn},withDefaults:function(){return no},withDirectives:function(){return Xn},withKeys:function(){return wc},withMemo:function(){return As},withModifiers:function(){return bc},withScopeId:function(){return Yn}});var r={};n.r(r),n.d(r,{activeClass:function(){return nf},activeComponent:function(){return of},activeElement:function(){return af},components:function(){return Zh},dynamicArea:function(){return sf},dynamicElements:function(){return lf},globalClasses:function(){return tf},globalVariables:function(){return rf},headerClasses:function(){return ff},headerPosition:function(){return hf},headerSettings:function(){return pf},importHasDnDSupport:function(){return df},isMobileFirst:function(){return mf},previewScale:function(){return uf},rootElements:function(){return cf},selectedElementSettings:function(){return ef}});var o={};n.r(o),n.d(o,{addNewChildren:function(){return yy},addNewElement:function(){return vy},addToStore:function(){return gy},backToTooltip:function(){return ob},cleanupCategoryImportFlags:function(){return sb},cloneElement:function(){return ky},cloneElements:function(){return by},convertEmptySettings:function(){return My},copyElements:function(){return Ly},copyStylesFromClass:function(){return Ny},copyStylesFromElement:function(){return jy},createElement:function(){return my},createPseudoSelectors:function(){return qy},deleteConfirmation:function(){return Cy},deleteElement:function(){return xy},elementHasCssGrid:function(){return Oy},filterPopupItems:function(){return nb},generatePreviewOnHoverCSS:function(){return Ab},getComponentChildren:function(){return Iy},getDynamicElementById:function(){return Dy},getElementAttributes:function(){return fy},getElementChildren:function(){return Ty},getElementId:function(){return Ay},getElementNode:function(){return $y},getHtmlTagFromElementSettings:function(){return hy},getIframeDoc:function(){return Fy},getIframeWindow:function(){return Py},getInheritedSettings:function(){return cb},getLoopElements:function(){return xb},getSelectedElementSettingsIntersection:function(){return gb},getTemplateElements:function(){return tb},hasInheritedFrom:function(){return ub},hideElements:function(){return wy},importClassConflict:function(){return ib},isBulkEditing:function(){return _b},isCloneable:function(){return Sy},isDeletable:function(){return Ey},isLoopElement:function(){return Eb},isNavMenuInsideDropdown:function(){return Zy},isSearchingControls:function(){return eb},isShortcutModifier:function(){return Xy},isValidCssSelector:function(){return Jy},pasteElements:function(){return zy},pasteStyles:function(){return By},processClassesForImport:function(){return rb},processImportedCategories:function(){return ab},refreshSelectedElementSettings:function(){return vb},rerenderComponent:function(){return Sb},selectElements:function(){return bb},selectedElementsSetClasses:function(){return kb},selectedElementsSetSettings:function(){return wb},setSelectorDetector:function(){return Cb},unlinkGlobalElement:function(){return Uy},updateElementClassReferences:function(){return lb},wrapInNestable:function(){return _y}});var a={}; /** * @vue/shared v3.5.34 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ function s(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}n.r(a),n.d(a,{breakpointHasStyles:function(){return IC},generateAllUtilityClassesCss:function(){return kC},generateCss:function(){return TC},generateCssFromSelectors:function(){return DC},generateScaleUtilityClassesCss:function(){return bC},generateUtilityClassesCss:function(){return yC},hasStyleManagerAccess:function(){return vC}});const l={},c=[],u=()=>{},d=()=>!1,p=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),h=e=>e.startsWith("onUpdate:"),f=Object.assign,m=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},g=Object.prototype.hasOwnProperty,v=(e,t)=>g.call(e,t),y=Array.isArray,b=e=>"[object Map]"===T(e),k=e=>"[object Set]"===T(e),w=e=>"[object Date]"===T(e),C=e=>"function"==typeof e,x=e=>"string"==typeof e,S=e=>"symbol"==typeof e,E=e=>null!==e&&"object"==typeof e,A=e=>(E(e)||C(e))&&C(e.then)&&C(e.catch),D=Object.prototype.toString,T=e=>D.call(e),I=e=>T(e).slice(8,-1),O=e=>"[object Object]"===T(e),P=e=>x(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,F=s(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),$=s("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),M=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},L=/-\w/g,N=M(e=>e.replace(L,e=>e.slice(1).toUpperCase())),j=/\B([A-Z])/g,B=M(e=>e.replace(j,"-$1").toLowerCase()),R=M(e=>e.charAt(0).toUpperCase()+e.slice(1)),V=M(e=>e?`on${R(e)}`:""),q=(e,t)=>!Object.is(e,t),H=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},z=(e,t,n,i=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:n})},U=e=>{const t=parseFloat(e);return isNaN(t)?e:t},W=e=>{const t=x(e)?Number(e):NaN;return isNaN(t)?e:t};let G;const K=()=>G||(G="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{});const Q=s("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol");function Y(e){if(y(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],r=x(i)?ee(i):Y(i);if(r)for(const e in r)t[e]=r[e]}return t}if(x(e)||E(e))return e}const J=/;(?![^(]*\))/g,X=/:([^]+)/,Z=/\/\*[^]*?\*\//g;function ee(e){const t={};return e.replace(Z,"").split(J).forEach(e=>{if(e){const n=e.split(X);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function te(e){let t="";if(x(e))t=e;else if(y(e))for(let n=0;n<e.length;n++){const i=te(e[n]);i&&(t+=i+" ")}else if(E(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function ne(e){if(!e)return null;let{class:t,style:n}=e;return t&&!x(t)&&(e.class=te(t)),n&&(e.style=Y(n)),e}const ie=s("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),re=s("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),oe=s("annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics"),ae=s("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"),se="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",le=s(se);function ce(e){return!!e||""===e}function ue(e,t){if(e===t)return!0;let n=w(e),i=w(t);if(n||i)return!(!n||!i)&&e.getTime()===t.getTime();if(n=S(e),i=S(t),n||i)return e===t;if(n=y(e),i=y(t),n||i)return!(!n||!i)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let i=0;n&&i<e.length;i++)n=ue(e[i],t[i]);return n}(e,t);if(n=E(e),i=E(t),n||i){if(!n||!i)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const i=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(i&&!r||!i&&r||!ue(e[n],t[n]))return!1}}return String(e)===String(t)}function de(e,t){return e.findIndex(e=>ue(e,t))}const pe=e=>!(!e||!0!==e.__v_isRef),he=e=>x(e)?e:null==e?"":y(e)||E(e)&&(e.toString===D||!C(e.toString))?pe(e)?he(e.value):JSON.stringify(e,fe,2):String(e),fe=(e,t)=>pe(t)?fe(e,t.value):b(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],i)=>(e[me(t,i)+" =>"]=n,e),{})}:k(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>me(e))}:S(t)?me(t):!E(t)||y(t)||O(t)?t:String(t),me=(e,t="")=>{var n;return S(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};function ge(e){return null==e?"initial":"string"==typeof e?""===e?" ":e:("number"==typeof e&&Number.isFinite(e),String(e))}let ve,ye;class be{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&ve&&(ve.active?(this.parent=ve,this.index=(ve.scopes||(ve.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=ve;try{return ve=this,e()}finally{ve=t}}else 0}on(){1===++this._on&&(this.prevScope=ve,ve=this)}off(){if(this._on>0&&0===--this._on){if(ve===this)ve=this.prevScope;else{let e=ve;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){let t,n;for(this._active=!1,t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}function ke(e){return new be(e)}function we(){return ve}function _e(e,t=!1){ve&&ve.cleanups.push(e)}const Ce=new WeakSet;class xe{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ve&&(ve.active?ve.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,Ce.has(this)&&(Ce.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||De(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,He(this),Oe(this);const e=ye,t=Be;ye=this,Be=!0;try{return this.fn()}finally{0,Pe(this),ye=e,Be=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)Me(e);this.deps=this.depsTail=void 0,He(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?Ce.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Fe(this)&&this.run()}get dirty(){return Fe(this)}}let Se,Ee,Ae=0;function De(e,t=!1){if(e.flags|=8,t)return e.next=Ee,void(Ee=e);e.next=Se,Se=e}function Te(){Ae++}function Ie(){if(--Ae>0)return;if(Ee){let e=Ee;for(Ee=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Se;){let t=Se;for(Se=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=n}}if(e)throw e}function Oe(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Pe(e){let t,n=e.depsTail,i=n;for(;i;){const e=i.prevDep;-1===i.version?(i===n&&(n=e),Me(i),Le(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=e}e.deps=t,e.depsTail=n}function Fe(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&($e(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function $e(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===ze)return;if(e.globalVersion=ze,!e.isSSR&&128&e.flags&&(!e.deps&&!e._dirty||!Fe(e)))return;e.flags|=2;const t=e.dep,n=ye,i=Be;ye=e,Be=!0;try{Oe(e);const n=e.fn(e._value);(0===t.version||q(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{ye=n,Be=i,Pe(e),e.flags&=-3}}function Me(e,t=!1){const{dep:n,prevSub:i,nextSub:r}=e;if(i&&(i.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=i,e.nextSub=void 0),n.subs===e&&(n.subs=i,!i&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)Me(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function Le(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function Ne(e,t){e.effect instanceof xe&&(e=e.effect.fn);const n=new xe(e);t&&f(n,t);try{n.run()}catch(e){throw n.stop(),e}const i=n.run.bind(n);return i.effect=n,i}function je(e){e.effect.stop()}let Be=!0;const Re=[];function Ve(){Re.push(Be),Be=!1}function qe(){const e=Re.pop();Be=void 0===e||e}function He(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=ye;ye=void 0;try{t()}finally{ye=e}}}let ze=0;class Ue{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class We{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!ye||!Be||ye===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==ye)t=this.activeLink=new Ue(ye,this),ye.deps?(t.prevDep=ye.depsTail,ye.depsTail.nextDep=t,ye.depsTail=t):ye.deps=ye.depsTail=t,Ge(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=ye.depsTail,t.nextDep=void 0,ye.depsTail.nextDep=t,ye.depsTail=t,ye.deps===t&&(ye.deps=e)}return t}trigger(e){this.version++,ze++,this.notify(e)}notify(e){Te();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Ie()}}}function Ge(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Ge(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Ke=new WeakMap,Qe=Symbol(""),Ye=Symbol(""),Je=Symbol("");function Xe(e,t,n){if(Be&&ye){let t=Ke.get(e);t||Ke.set(e,t=new Map);let i=t.get(n);i||(t.set(n,i=new We),i.map=t,i.key=n),i.track()}}function Ze(e,t,n,i,r,o){const a=Ke.get(e);if(!a)return void ze++;const s=e=>{e&&e.trigger()};if(Te(),"clear"===t)a.forEach(s);else{const r=y(e),o=r&&P(n);if(r&&"length"===n){const e=Number(i);a.forEach((t,n)=>{("length"===n||n===Je||!S(n)&&n>=e)&&s(t)})}else switch((void 0!==n||a.has(void 0))&&s(a.get(n)),o&&s(a.get(Je)),t){case"add":r?o&&s(a.get("length")):(s(a.get(Qe)),b(e)&&s(a.get(Ye)));break;case"delete":r||(s(a.get(Qe)),b(e)&&s(a.get(Ye)));break;case"set":b(e)&&s(a.get(Qe))}}Ie()}function et(e){const t=qt(e);return t===e?t:(Xe(t,0,Je),Rt(e)?t:t.map(zt))}function tt(e){return Xe(e=qt(e),0,Je),e}function nt(e,t){return Bt(e)?jt(e)?Ut(zt(t)):Ut(t):zt(t)}const it={__proto__:null,[Symbol.iterator](){return rt(this,Symbol.iterator,e=>nt(this,e))},concat(...e){return et(this).concat(...e.map(e=>y(e)?et(e):e))},entries(){return rt(this,"entries",e=>(e[1]=nt(this,e[1]),e))},every(e,t){return at(this,"every",e,t,void 0,arguments)},filter(e,t){return at(this,"filter",e,t,e=>e.map(e=>nt(this,e)),arguments)},find(e,t){return at(this,"find",e,t,e=>nt(this,e),arguments)},findIndex(e,t){return at(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return at(this,"findLast",e,t,e=>nt(this,e),arguments)},findLastIndex(e,t){return at(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return at(this,"forEach",e,t,void 0,arguments)},includes(...e){return lt(this,"includes",e)},indexOf(...e){return lt(this,"indexOf",e)},join(e){return et(this).join(e)},lastIndexOf(...e){return lt(this,"lastIndexOf",e)},map(e,t){return at(this,"map",e,t,void 0,arguments)},pop(){return ct(this,"pop")},push(...e){return ct(this,"push",e)},reduce(e,...t){return st(this,"reduce",e,t)},reduceRight(e,...t){return st(this,"reduceRight",e,t)},shift(){return ct(this,"shift")},some(e,t){return at(this,"some",e,t,void 0,arguments)},splice(...e){return ct(this,"splice",e)},toReversed(){return et(this).toReversed()},toSorted(e){return et(this).toSorted(e)},toSpliced(...e){return et(this).toSpliced(...e)},unshift(...e){return ct(this,"unshift",e)},values(){return rt(this,"values",e=>nt(this,e))}};function rt(e,t,n){const i=tt(e),r=i[t]();return i===e||Rt(e)||(r._next=r.next,r.next=()=>{const e=r._next();return e.done||(e.value=n(e.value)),e}),r}const ot=Array.prototype;function at(e,t,n,i,r,o){const a=tt(e),s=a!==e&&!Rt(e),l=a[t];if(l!==ot[t]){const t=l.apply(e,o);return s?zt(t):t}let c=n;a!==e&&(s?c=function(t,i){return n.call(this,nt(e,t),i,e)}:n.length>2&&(c=function(t,i){return n.call(this,t,i,e)}));const u=l.call(a,c,i);return s&&r?r(u):u}function st(e,t,n,i){const r=tt(e),o=r!==e&&!Rt(e);let a=n,s=!1;r!==e&&(o?(s=0===i.length,a=function(t,i,r){return s&&(s=!1,t=nt(e,t)),n.call(this,t,nt(e,i),r,e)}):n.length>3&&(a=function(t,i,r){return n.call(this,t,i,r,e)}));const l=r[t](a,...i);return s?nt(e,l):l}function lt(e,t,n){const i=qt(e);Xe(i,0,Je);const r=i[t](...n);return-1!==r&&!1!==r||!Vt(n[0])?r:(n[0]=qt(n[0]),i[t](...n))}function ct(e,t,n=[]){Ve(),Te();const i=qt(e)[t].apply(e,n);return Ie(),qe(),i}const ut=s("__proto__,__v_isRef,__isVue"),dt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(S));function pt(e){S(e)||(e=String(e));const t=qt(this);return Xe(t,0,e),t.hasOwnProperty(e)}class ht{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if("__v_skip"===t)return e.__v_skip;const i=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!i;if("__v_isReadonly"===t)return i;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(i?r?Pt:Ot:r?It:Tt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=y(e);if(!i){let e;if(o&&(e=it[t]))return e;if("hasOwnProperty"===t)return pt}const a=Reflect.get(e,t,Wt(e)?e:n);if(S(t)?dt.has(t):ut(t))return a;if(i||Xe(e,0,t),r)return a;if(Wt(a)){const e=o&&P(t)?a:a.value;return i&&E(e)?Mt(e):e}return E(a)?i?Mt(a):Ft(a):a}}class ft extends ht{constructor(e=!1){super(!1,e)}set(e,t,n,i){let r=e[t];const o=y(e)&&P(t);if(!this._isShallow){const e=Bt(r);if(Rt(n)||Bt(n)||(r=qt(r),n=qt(n)),!o&&Wt(r)&&!Wt(n))return e||(r.value=n),!0}const a=o?Number(t)<e.length:v(e,t),s=Reflect.set(e,t,n,Wt(e)?e:i);return e===qt(i)&&(a?q(n,r)&&Ze(e,"set",t,n):Ze(e,"add",t,n)),s}deleteProperty(e,t){const n=v(e,t),i=(e[t],Reflect.deleteProperty(e,t));return i&&n&&Ze(e,"delete",t,void 0),i}has(e,t){const n=Reflect.has(e,t);return S(t)&&dt.has(t)||Xe(e,0,t),n}ownKeys(e){return Xe(e,0,y(e)?"length":Qe),Reflect.ownKeys(e)}}class mt extends ht{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const gt=new ft,vt=new mt,yt=new ft(!0),bt=new mt(!0),kt=e=>e,wt=e=>Reflect.getPrototypeOf(e);function _t(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function Ct(e,t){const n={get(n){const i=this.__v_raw,r=qt(i),o=qt(n);e||(q(n,o)&&Xe(r,0,n),Xe(r,0,o));const{has:a}=wt(r),s=t?kt:e?Ut:zt;return a.call(r,n)?s(i.get(n)):a.call(r,o)?s(i.get(o)):void(i!==r&&i.get(n))},get size(){const t=this.__v_raw;return!e&&Xe(qt(t),0,Qe),t.size},has(t){const n=this.__v_raw,i=qt(n),r=qt(t);return e||(q(t,r)&&Xe(i,0,t),Xe(i,0,r)),t===r?n.has(t):n.has(t)||n.has(r)},forEach(n,i){const r=this,o=r.__v_raw,a=qt(o),s=t?kt:e?Ut:zt;return!e&&Xe(a,0,Qe),o.forEach((e,t)=>n.call(i,s(e),s(t),r))}};f(n,e?{add:_t("add"),set:_t("set"),delete:_t("delete"),clear:_t("clear")}:{add(e){const n=qt(this),i=wt(n),r=qt(e),o=t||Rt(e)||Bt(e)?e:r;return i.has.call(n,o)||q(e,o)&&i.has.call(n,e)||q(r,o)&&i.has.call(n,r)||(n.add(o),Ze(n,"add",o,o)),this},set(e,n){t||Rt(n)||Bt(n)||(n=qt(n));const i=qt(this),{has:r,get:o}=wt(i);let a=r.call(i,e);a||(e=qt(e),a=r.call(i,e));const s=o.call(i,e);return i.set(e,n),a?q(n,s)&&Ze(i,"set",e,n):Ze(i,"add",e,n),this},delete(e){const t=qt(this),{has:n,get:i}=wt(t);let r=n.call(t,e);r||(e=qt(e),r=n.call(t,e));i&&i.call(t,e);const o=t.delete(e);return r&&Ze(t,"delete",e,void 0),o},clear(){const e=qt(this),t=0!==e.size,n=e.clear();return t&&Ze(e,"clear",void 0,void 0),n}});return["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=function(e,t,n){return function(...i){const r=this.__v_raw,o=qt(r),a=b(o),s="entries"===e||e===Symbol.iterator&&a,l="keys"===e&&a,c=r[e](...i),u=n?kt:t?Ut:zt;return!t&&Xe(o,0,l?Ye:Qe),f(Object.create(c),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}}})}}(i,e,t)}),n}function xt(e,t){const n=Ct(e,t);return(t,i,r)=>"__v_isReactive"===i?!e:"__v_isReadonly"===i?e:"__v_raw"===i?t:Reflect.get(v(n,i)&&i in t?n:t,i,r)}const St={get:xt(!1,!1)},Et={get:xt(!1,!0)},At={get:xt(!0,!1)},Dt={get:xt(!0,!0)};const Tt=new WeakMap,It=new WeakMap,Ot=new WeakMap,Pt=new WeakMap;function Ft(e){return Bt(e)?e:Nt(e,!1,gt,St,Tt)}function $t(e){return Nt(e,!1,yt,Et,It)}function Mt(e){return Nt(e,!0,vt,At,Ot)}function Lt(e){return Nt(e,!0,bt,Dt,Pt)}function Nt(e,t,n,i,r){if(!E(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=(a=e).__v_skip||!Object.isExtensible(a)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(I(a));var a;if(0===o)return e;const s=r.get(e);if(s)return s;const l=new Proxy(e,2===o?i:n);return r.set(e,l),l}function jt(e){return Bt(e)?jt(e.__v_raw):!(!e||!e.__v_isReactive)}function Bt(e){return!(!e||!e.__v_isReadonly)}function Rt(e){return!(!e||!e.__v_isShallow)}function Vt(e){return!!e&&!!e.__v_raw}function qt(e){const t=e&&e.__v_raw;return t?qt(t):e}function Ht(e){return!v(e,"__v_skip")&&Object.isExtensible(e)&&z(e,"__v_skip",!0),e}const zt=e=>E(e)?Ft(e):e,Ut=e=>E(e)?Mt(e):e;function Wt(e){return!!e&&!0===e.__v_isRef}function Gt(e){return Qt(e,!1)}function Kt(e){return Qt(e,!0)}function Qt(e,t){return Wt(e)?e:new Yt(e,t)}class Yt{constructor(e,t){this.dep=new We,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:qt(e),this._value=t?e:zt(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this.__v_isShallow||Rt(e)||Bt(e);e=n?e:qt(e),q(e,t)&&(this._rawValue=e,this._value=n?e:zt(e),this.dep.trigger())}}function Jt(e){e.dep&&e.dep.trigger()}function Xt(e){return Wt(e)?e.value:e}function Zt(e){return C(e)?e():Xt(e)}const en={get:(e,t,n)=>"__v_raw"===t?e:Xt(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const r=e[t];return Wt(r)&&!Wt(n)?(r.value=n,!0):Reflect.set(e,t,n,i)}};function tn(e){return jt(e)?e:new Proxy(e,en)}class nn{constructor(e){this.__v_isRef=!0,this._value=void 0;const t=this.dep=new We,{get:n,set:i}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=i}get value(){return this._value=this._get()}set value(e){this._set(e)}}function rn(e){return new nn(e)}function on(e){const t=y(e)?new Array(e.length):{};for(const n in e)t[n]=cn(e,n);return t}class an{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=S(t)?t:String(t),this._raw=qt(e);let i=!0,r=e;if(!y(e)||S(this._key)||!P(this._key))do{i=!Vt(r)||Rt(r)}while(i&&(r=r.__v_raw));this._shallow=i}get value(){let e=this._object[this._key];return this._shallow&&(e=Xt(e)),this._value=void 0===e?this._defaultValue:e}set value(e){if(this._shallow&&Wt(this._raw[this._key])){const t=this._object[this._key];if(Wt(t))return void(t.value=e)}this._object[this._key]=e}get dep(){return function(e,t){const n=Ke.get(e);return n&&n.get(t)}(this._raw,this._key)}}class sn{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ln(e,t,n){return Wt(e)?e:C(e)?new sn(e):E(e)&&arguments.length>1?cn(e,t,n):Gt(e)}function cn(e,t,n){return new an(e,t,n)}class un{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new We(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ze-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags||ye===this))return De(this,!0),!0}get value(){const e=this.dep.track();return $e(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}const dn={GET:"get",HAS:"has",ITERATE:"iterate"},pn={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},hn={},fn=new WeakMap;let mn;function gn(){return mn}function vn(e,t=!1,n=mn){if(n){let t=fn.get(n);t||fn.set(n,t=[]),t.push(e)}else 0}function yn(e,t=1/0,n){if(t<=0||!E(e)||e.__v_skip)return e;if(((n=n||new Map).get(e)||0)>=t)return e;if(n.set(e,t),t--,Wt(e))yn(e.value,t,n);else if(y(e))for(let i=0;i<e.length;i++)yn(e[i],t,n);else if(k(e)||b(e))e.forEach(e=>{yn(e,t,n)});else if(O(e)){for(const i in e)yn(e[i],t,n);for(const i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&yn(e[i],t,n)}return e} /** * @vue/runtime-core v3.5.34 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ const bn=[];function kn(e,t){}const wn={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},_n={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function Cn(e,t,n,i){try{return i?e(...i):e()}catch(e){Sn(e,t,n)}}function xn(e,t,n,i){if(C(e)){const r=Cn(e,t,n,i);return r&&A(r)&&r.catch(e=>{Sn(e,t,n)}),r}if(y(e)){const r=[];for(let o=0;o<e.length;o++)r.push(xn(e[o],t,n,i));return r}}function Sn(e,t,n,i=!0){t&&t.vnode;const{errorHandler:r,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||l;if(t){let i=t.parent;const o=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const t=i.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,o,a))return;i=i.parent}if(r)return Ve(),Cn(r,null,10,[e,o,a]),void qe()}!function(e,t,n,i=!0,r=!1){if(r)throw e;console.error(e)}(e,0,0,i,o)}const En=[];let An=-1;const Dn=[];let Tn=null,In=0;const On=Promise.resolve();let Pn=null;function Fn(e){const t=Pn||On;return e?t.then(this?e.bind(this):e):t}function $n(e){if(!(1&e.flags)){const t=Bn(e),n=En[En.length-1];!n||!(2&e.flags)&&t>=Bn(n)?En.push(e):En.splice(function(e){let t=An+1,n=En.length;for(;t<n;){const i=t+n>>>1,r=En[i],o=Bn(r);o<e||o===e&&2&r.flags?t=i+1:n=i}return t}(t),0,e),e.flags|=1,Mn()}}function Mn(){Pn||(Pn=On.then(Rn))}function Ln(e){y(e)?Dn.push(...e):Tn&&-1===e.id?Tn.splice(In+1,0,e):1&e.flags||(Dn.push(e),e.flags|=1),Mn()}function Nn(e,t,n=An+1){for(0;n<En.length;n++){const t=En[n];if(t&&2&t.flags){if(e&&t.id!==e.uid)continue;0,En.splice(n,1),n--,4&t.flags&&(t.flags&=-2),t(),4&t.flags||(t.flags&=-2)}}}function jn(e){if(Dn.length){const e=[...new Set(Dn)].sort((e,t)=>Bn(e)-Bn(t));if(Dn.length=0,Tn)return void Tn.push(...e);for(Tn=e,In=0;In<Tn.length;In++){const e=Tn[In];0,4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2}Tn=null,In=0}}const Bn=e=>null==e.id?2&e.flags?-1:1/0:e.id;function Rn(e){try{for(An=0;An<En.length;An++){const e=En[An];!e||8&e.flags||(4&e.flags&&(e.flags&=-2),Cn(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2))}}finally{for(;An<En.length;An++){const e=En[An];e&&(e.flags&=-2)}An=-1,En.length=0,jn(),Pn=null,(En.length||Dn.length)&&Rn(e)}}let Vn=!1;let qn,Hn=[],zn=!1;let Un=null,Wn=null;function Gn(e){const t=Un;return Un=e,Wn=e&&e.type.__scopeId||null,t}function Kn(e){Wn=e}function Qn(){Wn=null}const Yn=e=>Jn;function Jn(e,t=Un,n){if(!t)return e;if(e._n)return e;const i=(...n)=>{i._d&&Fa(-1);const r=Gn(t);let o;try{o=e(...n)}finally{Gn(r),i._d&&Fa(1)}return o};return i._n=!0,i._c=!0,i._d=!0,i}function Xn(e,t){if(null===Un)return e;const n=ws(Un),i=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[r,o,a,s=l]=t[e];r&&(C(r)&&(r={mounted:r,updated:r}),r.deep&&yn(o),i.push({dir:r,instance:n,value:o,oldValue:void 0,arg:a,modifiers:s}))}return e}function Zn(e,t,n,i){const r=e.dirs,o=t&&t.dirs;for(let a=0;a<r.length;a++){const s=r[a];o&&(s.oldValue=o[a].value);let l=s.dir[i];l&&(Ve(),xn(l,n,8,[e.el,s,e,t]),qe())}}function ei(e,t){if(rs){let n=rs.provides;const i=rs.parent&&rs.parent.provides;i===n&&(n=rs.provides=Object.create(i)),n[e]=t}}function ti(e,t,n=!1){const i=os();if(i||Ao){let r=Ao?Ao._context.provides:i?null==i.parent||i.ce?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&C(t)?t.call(i&&i.proxy):t}else 0}function ni(){return!(!os()&&!Ao)}const ii=Symbol.for("v-scx"),ri=()=>{{const e=ti(ii);return e}};function oi(e,t){return ci(e,null,t)}function ai(e,t){return ci(e,null,{flush:"post"})}function si(e,t){return ci(e,null,{flush:"sync"})}function li(e,t,n){return ci(e,t,n)}function ci(e,t,n=l){const{immediate:i,deep:r,flush:o,once:a}=n;const s=f({},n);const c=t&&i||!t&&"post"!==o;let d;if(hs)if("sync"===o){const e=ri();d=e.__watcherHandles||(e.__watcherHandles=[])}else if(!c){const e=()=>{};return e.stop=u,e.resume=u,e.pause=u,e}const p=rs;s.call=(e,t,n)=>xn(e,p,t,n);let h=!1;"post"===o?s.scheduler=e=>{ia(e,p&&p.suspense)}:"sync"!==o&&(h=!0,s.scheduler=(e,t)=>{t?e():$n(e)}),s.augmentJob=e=>{t&&(e.flags|=4),h&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};const g=function(e,t,n=l){const{immediate:i,deep:r,once:o,scheduler:a,augmentJob:s,call:c}=n,d=e=>r?e:Rt(e)||!1===r||0===r?yn(e,1):yn(e);let p,h,f,g,v=!1,b=!1;if(Wt(e)?(h=()=>e.value,v=Rt(e)):jt(e)?(h=()=>d(e),v=!0):y(e)?(b=!0,v=e.some(e=>jt(e)||Rt(e)),h=()=>e.map(e=>Wt(e)?e.value:jt(e)?d(e):C(e)?c?c(e,2):e():void 0)):h=C(e)?t?c?()=>c(e,2):e:()=>{if(f){Ve();try{f()}finally{qe()}}const t=mn;mn=p;try{return c?c(e,3,[g]):e(g)}finally{mn=t}}:u,t&&r){const e=h,t=!0===r?1/0:r;h=()=>yn(e(),t)}const k=we(),w=()=>{p.stop(),k&&k.active&&m(k.effects,p)};if(o&&t){const e=t;t=(...t)=>{e(...t),w()}}let _=b?new Array(e.length).fill(hn):hn;const x=e=>{if(1&p.flags&&(p.dirty||e))if(t){const e=p.run();if(r||v||(b?e.some((e,t)=>q(e,_[t])):q(e,_))){f&&f();const n=mn;mn=p;try{const n=[e,_===hn?void 0:b&&_[0]===hn?[]:_,g];_=e,c?c(t,3,n):t(...n)}finally{mn=n}}}else p.run()};return s&&s(x),p=new xe(h),p.scheduler=a?()=>a(x,!1):x,g=e=>vn(e,!1,p),f=p.onStop=()=>{const e=fn.get(p);if(e){if(c)c(e,4);else for(const t of e)t();fn.delete(p)}},t?i?x(!0):_=p.run():a?a(x.bind(null,!0),!0):p.run(),w.pause=p.pause.bind(p),w.resume=p.resume.bind(p),w.stop=w,w}(e,t,s);return hs&&(d?d.push(g):c&&g()),g}function ui(e,t,n){const i=this.proxy,r=x(e)?e.includes(".")?di(i,e):()=>i[e]:e.bind(i,i);let o;C(t)?o=t:(o=t.handler,n=t);const a=ls(this),s=ci(r,o.bind(i),n);return a(),s}function di(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}const pi=new WeakMap,hi=Symbol("_vte"),fi=e=>e.__isTeleport,mi=e=>e&&(e.disabled||""===e.disabled),gi=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,vi=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,yi=(e,t)=>{const n=e&&e.to;if(x(n)){if(t){return t(n)}return null}return n},bi={name:"Teleport",__isTeleport:!0,process(e,t,n,i,r,o,a,s,l,c){const{mc:u,pc:d,pbc:p,o:{insert:h,querySelector:f,createText:m,createComment:g,parentNode:v}}=c,y=mi(t.props);let{dynamicChildren:b}=t;const k=(e,t,n)=>{16&e.shapeFlag&&u(e.children,t,n,r,o,a,s,l)},w=(e=t)=>{const n=mi(e.props),i=e.target=yi(e.props,f),o=Ci(i,e,m,h);i&&("svg"!==a&&gi(i)?a="svg":"mathml"!==a&&vi(i)&&(a="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(i),n||(k(e,i,o),_i(e,!1)))},_=e=>{const t=()=>{if(pi.get(e)===t){if(pi.delete(e),mi(e.props)){const t=v(e.el)||n;k(e,t,e.anchor),_i(e,!0)}w(e)}};pi.set(e,t),ia(t,o)};if(null==e){const e=t.el=m(""),r=t.anchor=m("");if(h(e,n,i),h(r,n,i),(e=>e&&(e.defer||""===e.defer))(t.props)||o&&o.pendingBranch)return void _(t);y&&(k(t,n,r),_i(t,!0)),w()}else{t.el=e.el;const i=t.anchor=e.anchor,u=pi.get(e);if(u)return u.flags|=8,pi.delete(e),void _(t);t.targetStart=e.targetStart;const h=t.target=e.target,m=t.targetAnchor=e.targetAnchor,g=mi(e.props),v=g?n:h,k=g?i:m;if("svg"===a||gi(h)?a="svg":("mathml"===a||vi(h))&&(a="mathml"),b?(p(e.dynamicChildren,b,v,r,o,a,s),ua(e,t,!0)):l||d(e,t,v,k,r,o,a,s,!1),y)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ki(t,n,i,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=yi(t.props,f);e&&ki(t,e,null,c,0)}else g&&ki(t,h,m,c,1);_i(t,y)}},remove(e,t,n,{um:i,o:{remove:r}},o){const{shapeFlag:a,children:s,anchor:l,targetStart:c,targetAnchor:u,target:d,props:p}=e;let h=o||!mi(p);const f=pi.get(e);if(f&&(f.flags|=8,pi.delete(e),h=!1),d&&(r(c),r(u)),o&&r(l),16&a)for(let e=0;e<s.length;e++){const r=s[e];i(r,t,n,h,!!r.dynamicChildren)}},move:ki,hydrate:function(e,t,n,i,r,o,{o:{nextSibling:a,parentNode:s,querySelector:l,insert:c,createText:u}},d){function p(e,n){let i=n;for(;i;){if(i&&8===i.nodeType)if("teleport start anchor"===i.data)t.targetStart=i;else if("teleport anchor"===i.data){t.targetAnchor=i,e._lpa=t.targetAnchor&&a(t.targetAnchor);break}i=a(i)}}function h(e,t){t.anchor=d(a(e),t,s(e),n,i,r,o)}const f=t.target=yi(t.props,l),m=mi(t.props);if(f){const l=f._lpa||f.firstChild;16&t.shapeFlag&&(m?(h(e,t),p(f,l),t.targetAnchor||Ci(f,t,u,c,s(e)===f?e:null)):(t.anchor=a(e),p(f,l),t.targetAnchor||Ci(f,t,u,c),d(l&&a(l),t,f,n,i,r,o))),_i(t,m)}else m&&16&t.shapeFlag&&(h(e,t),t.targetStart=e,t.targetAnchor=a(e));return t.anchor&&a(t.anchor)}};function ki(e,t,n,{o:{insert:i},m:r},o=2){0===o&&i(e.targetAnchor,t,n);const{el:a,anchor:s,shapeFlag:l,children:c,props:u}=e,d=2===o;if(d&&i(a,t,n),!pi.has(e)&&(!d||mi(u))&&16&l)for(let e=0;e<c.length;e++)r(c[e],t,n,2);d&&i(s,t,n)}const wi=bi;function _i(e,t){const n=e.ctx;if(n&&n.ut){let i,r;for(t?(i=e.el,r=e.anchor):(i=e.targetStart,r=e.targetAnchor);i&&i!==r;)1===i.nodeType&&i.setAttribute("data-v-owner",n.uid),i=i.nextSibling;n.ut()}}function Ci(e,t,n,i,r=null){const o=t.targetStart=n(""),a=t.targetAnchor=n("");return o[hi]=a,e&&(i(o,e,r),i(a,e,r)),a}const xi=Symbol("_leaveCb"),Si=Symbol("_enterCb");function Ei(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Cr(()=>{e.isMounted=!0}),Er(()=>{e.isUnmounting=!0}),e}const Ai=[Function,Array],Di={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ai,onEnter:Ai,onAfterEnter:Ai,onEnterCancelled:Ai,onBeforeLeave:Ai,onLeave:Ai,onAfterLeave:Ai,onLeaveCancelled:Ai,onBeforeAppear:Ai,onAppear:Ai,onAfterAppear:Ai,onAppearCancelled:Ai},Ti=e=>{const t=e.subTree;return t.component?Ti(t.component):t},Ii={name:"BaseTransition",props:Di,setup(e,{slots:t}){const n=os(),i=Ei();return()=>{const r=t.default&&ji(t.default(),!0),o=r&&r.length?Oi(r):n.subTree?Qa():void 0;if(!o)return;const a=qt(e),{mode:s}=a;if(i.isLeaving)return Mi(o);const l=Li(o);if(!l)return Mi(o);let c=$i(l,a,i,n,e=>c=e);l.type!==Sa&&Ni(l,c);let u=n.subTree&&Li(n.subTree);if(u&&u.type!==Sa&&!ja(u,l)&&Ti(n).type!==Sa){let e=$i(u,a,i,n);if(Ni(u,e),"out-in"===s&&l.type!==Sa)return i.isLeaving=!0,e.afterLeave=()=>{i.isLeaving=!1,8&n.job.flags||n.update(),delete e.afterLeave,u=void 0},Mi(o);"in-out"===s&&l.type!==Sa?e.delayLeave=(e,t,n)=>{Fi(i,u)[String(u.key)]=u,e[xi]=()=>{t(),e[xi]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{n(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return o}}};function Oi(e){let t=e[0];if(e.length>1){let n=!1;for(const i of e)if(i.type!==Sa){0,t=i,n=!0;break}}return t}const Pi=Ii;function Fi(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function $i(e,t,n,i,r){const{appear:o,mode:a,persisted:s=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:p,onLeave:h,onAfterLeave:f,onLeaveCancelled:m,onBeforeAppear:g,onAppear:v,onAfterAppear:b,onAppearCancelled:k}=t,w=String(e.key),_=Fi(n,e),C=(e,t)=>{e&&xn(e,i,9,t)},x=(e,t)=>{const n=t[1];C(e,t),y(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},S={mode:a,persisted:s,beforeEnter(t){let i=l;if(!n.isMounted){if(!o)return;i=g||l}t[xi]&&t[xi](!0);const r=_[w];r&&ja(e,r)&&r.el[xi]&&r.el[xi](),C(i,[t])},enter(t){if(!Vn&&_[w]===e)return;let i=c,r=u,a=d;if(!n.isMounted){if(!o)return;i=v||c,r=b||u,a=k||d}let s=!1;t[Si]=e=>{s||(s=!0,C(e?a:r,[t]),S.delayedLeave&&S.delayedLeave(),t[Si]=void 0)};const l=t[Si].bind(null,!1);i?x(i,[t,l]):l()},leave(t,i){const r=String(e.key);if(t[Si]&&t[Si](!0),n.isUnmounting)return i();C(p,[t]);let o=!1;t[xi]=n=>{o||(o=!0,i(),C(n?m:f,[t]),t[xi]=void 0,_[r]===e&&delete _[r])};const a=t[xi].bind(null,!1);_[r]=e,h?x(h,[t,a]):a()},clone(e){const o=$i(e,t,n,i,r);return r&&r(o),o}};return S}function Mi(e){if(ur(e))return(e=Wa(e)).children=null,e}function Li(e){if(!ur(e))return fi(e.type)&&e.children?Oi(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&C(n.default))return n.default()}}function Ni(e,t){6&e.shapeFlag&&e.component?(e.transition=t,Ni(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ji(e,t=!1,n){let i=[],r=0;for(let o=0;o<e.length;o++){let a=e[o];const s=null==n?a.key:String(n)+String(null!=a.key?a.key:o);a.type===Ca?(128&a.patchFlag&&r++,i=i.concat(ji(a.children,t,s))):(t||a.type!==Sa)&&i.push(null!=s?Wa(a,{key:s}):a)}if(r>1)for(let e=0;e<i.length;e++)i[e].patchFlag=-2;return i}function Bi(e,t){return C(e)?(()=>f({name:e.name},t,{setup:e}))():e}function Ri(){const e=os();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Vi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function qi(e){const t=os(),n=Kt(null);if(t){const i=t.refs===l?t.refs={}:t.refs;Object.defineProperty(i,e,{enumerable:!0,get:()=>n.value,set:e=>n.value=e})}else 0;return n}function Hi(e,t){let n;return!(!(n=Object.getOwnPropertyDescriptor(e,t))||n.configurable)}const zi=new WeakMap;function Ui(e,t,n,i,r=!1){if(y(e))return void e.forEach((e,o)=>Ui(e,t&&(y(t)?t[o]:t),n,i,r));if(sr(i)&&!r)return void(512&i.shapeFlag&&i.type.__asyncResolved&&i.component.subTree.component&&Ui(e,t,n,i.component.subTree));const o=4&i.shapeFlag?ws(i.component):i.el,a=r?null:o,{i:s,r:c}=e;const u=t&&t.r,p=s.refs===l?s.refs={}:s.refs,h=s.setupState,f=qt(h),g=h===l?d:e=>!Hi(p,e)&&v(f,e),b=(e,t)=>!t||!Hi(p,t);if(null!=u&&u!==c)if(Wi(t),x(u))p[u]=null,g(u)&&(h[u]=null);else if(Wt(u)){const e=t;b(0,e.k)&&(u.value=null),e.k&&(p[e.k]=null)}if(C(c))Cn(c,s,12,[a,p]);else{const t=x(c),i=Wt(c);if(t||i){const s=()=>{if(e.f){const n=t?g(c)?h[c]:p[c]:b()||!e.k?c.value:p[e.k];if(r)y(n)&&m(n,o);else if(y(n))n.includes(o)||n.push(o);else if(t)p[c]=[o],g(c)&&(h[c]=p[c]);else{const t=[o];b(0,e.k)&&(c.value=t),e.k&&(p[e.k]=t)}}else t?(p[c]=a,g(c)&&(h[c]=a)):i&&(b(0,e.k)&&(c.value=a),e.k&&(p[e.k]=a))};if(a){const t=()=>{s(),zi.delete(e)};t.id=-1,zi.set(e,t),ia(t,n)}else Wi(e),s()}else 0}}function Wi(e){const t=zi.get(e);t&&(t.flags|=8,zi.delete(e))}let Gi=!1;const Ki=()=>{Gi||(console.error("Hydration completed but contains mismatches."),Gi=!0)},Qi=e=>{if(1===e.nodeType)return(e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName)(e)?"svg":(e=>e.namespaceURI.includes("MathML"))(e)?"mathml":void 0},Yi=e=>8===e.nodeType;function Ji(e){const{mt:t,p:n,o:{patchProp:i,createText:r,nextSibling:o,parentNode:a,remove:s,insert:l,createComment:c}}=e,u=(n,i,s,c,p,b=!1)=>{b=b||!!i.dynamicChildren;const k=Yi(n)&&"["===n.data,w=()=>m(n,i,s,c,p,k),{type:_,ref:C,shapeFlag:x,patchFlag:S}=i;let E=n.nodeType;i.el=n,-2===S&&(b=!1,i.dynamicChildren=null);let A=null;switch(_){case xa:3!==E?""===i.children?(l(i.el=r(""),a(n),n),A=n):A=w():(n.data!==i.children&&(Ki(),n.data=i.children),A=o(n));break;case Sa:y(n)?(A=o(n),v(i.el=n.content.firstChild,n,s)):A=8!==E||k?w():o(n);break;case Ea:if(k&&(E=(n=o(n)).nodeType),1===E||3===E){A=n;const e=!i.children.length;for(let t=0;t<i.staticCount;t++)e&&(i.children+=1===A.nodeType?A.outerHTML:A.data),t===i.staticCount-1&&(i.anchor=A),A=o(A);return k?o(A):A}w();break;case Ca:A=k?f(n,i,s,c,p,b):w();break;default:if(1&x)A=1===E&&i.type.toLowerCase()===n.tagName.toLowerCase()||y(n)?d(n,i,s,c,p,b):w();else if(6&x){i.slotScopeIds=p;const e=a(n);if(A=k?g(n):Yi(n)&&"teleport start"===n.data?g(n,n.data,"teleport end"):o(n),t(i,e,null,s,c,Qi(e),b),sr(i)&&!i.type.__asyncResolved){let t;k?(t=Ha(Ca),t.anchor=A?A.previousSibling:e.lastChild):t=3===n.nodeType?Ga(""):Ha("div"),t.el=n,i.component.subTree=t}}else 64&x?A=8!==E?w():i.type.hydrate(n,i,s,c,p,b,e,h):128&x&&(A=i.type.hydrate(n,i,s,c,Qi(a(n)),p,b,e,u))}return null!=C&&Ui(C,null,c,i),A},d=(e,t,n,r,o,a)=>{a=a||!!t.dynamicChildren;const{type:l,props:c,patchFlag:u,shapeFlag:d,dirs:f,transition:m}=t,g="input"===l||"option"===l;if(g||-1!==u){f&&Zn(t,null,n,"created");let l,b=!1;if(y(e)){b=ca(null,m)&&n&&n.vnode.props&&n.vnode.props.appear;const i=e.content.firstChild;if(b){const e=i.getAttribute("class");e&&(i.$cls=e),m.beforeEnter(i)}v(i,e,n),t.el=e=i}if(16&d&&(!c||!c.innerHTML&&!c.textContent)){let i=h(e.firstChild,t,e,n,r,o,a);for(;i;){er(e,1)||Ki();const t=i;i=i.nextSibling,s(t)}}else if(8&d){let n=t.children;"\n"!==n[0]||"PRE"!==e.tagName&&"TEXTAREA"!==e.tagName||(n=n.slice(1));const{textContent:i}=e;i!==n&&i!==n.replace(/\r\n|\r/g,"\n")&&(er(e,0)||Ki(),e.textContent=t.children)}if(c)if(g||!a||48&u){const t=e.tagName.includes("-");for(const r in c)(g&&(r.endsWith("value")||"indeterminate"===r)||p(r)&&!F(r)||"."===r[0]||t&&!F(r))&&i(e,r,null,c[r],void 0,n)}else if(c.onClick)i(e,"onClick",null,c.onClick,void 0,n);else if(4&u&&jt(c.style))for(const e in c.style)c.style[e];(l=c&&c.onVnodeBeforeMount)&&es(l,n,t),f&&Zn(t,null,n,"beforeMount"),((l=c&&c.onVnodeMounted)||f||b)&&wa(()=>{l&&es(l,n,t),b&&m.enter(e),f&&Zn(t,null,n,"mounted")},r)}return e.nextSibling},h=(e,t,i,a,s,c,d)=>{d=d||!!t.dynamicChildren;const p=t.children,h=p.length;for(let t=0;t<h;t++){const f=d?p[t]:p[t]=Ya(p[t]),m=f.type===xa;e?(m&&!d&&t+1<h&&Ya(p[t+1]).type===xa&&(l(r(e.data.slice(f.children.length)),i,o(e)),e.data=f.children),e=u(e,f,a,s,c,d)):m&&!f.children?l(f.el=r(""),i):(er(i,1)||Ki(),n(null,f,i,null,a,s,Qi(i),c))}return e},f=(e,t,n,i,r,s)=>{const{slotScopeIds:u}=t;u&&(r=r?r.concat(u):u);const d=a(e),p=h(o(e),t,d,n,i,r,s);return p&&Yi(p)&&"]"===p.data?o(t.anchor=p):(Ki(),l(t.anchor=c("]"),d,p),p)},m=(e,t,i,r,l,c)=>{if(er(e.parentElement,1)||Ki(),t.el=null,c){const t=g(e);for(;;){const n=o(e);if(!n||n===t)break;s(n)}}const u=o(e),d=a(e);return s(e),n(null,t,d,u,i,r,Qi(d),l),i&&(i.vnode.el=t.el,Ro(i,t.el)),u},g=(e,t="[",n="]")=>{let i=0;for(;e;)if((e=o(e))&&Yi(e)&&(e.data===t&&i++,e.data===n)){if(0===i)return o(e);i--}return e},v=(e,t,n)=>{const i=t.parentNode;i&&i.replaceChild(e,t);let r=n;for(;r;)r.vnode.el===t&&(r.vnode.el=r.subTree.el=e),r=r.parent},y=e=>1===e.nodeType&&"TEMPLATE"===e.tagName;return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),jn(),void(t._vnode=e);u(t.firstChild,e,null,null,null),jn(),t._vnode=e},u]}const Xi="data-allow-mismatch",Zi={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function er(e,t){if(0===t||1===t)for(;e&&!e.hasAttribute(Xi);)e=e.parentElement;const n=e&&e.getAttribute(Xi);if(null==n)return!1;if(""===n)return!0;{const e=n.split(",");return!(0!==t||!e.includes("children"))||e.includes(Zi[t])}}const tr=K().requestIdleCallback||(e=>setTimeout(e,1)),nr=K().cancelIdleCallback||(e=>clearTimeout(e)),ir=(e=1e4)=>t=>{const n=tr(t,{timeout:e});return()=>nr(n)};const rr=e=>(t,n)=>{const i=new IntersectionObserver(e=>{for(const n of e)if(n.isIntersecting){i.disconnect(),t();break}},e);return n(e=>{if(e instanceof Element)return function(e){const{top:t,left:n,bottom:i,right:r}=e.getBoundingClientRect(),{innerHeight:o,innerWidth:a}=window;return(t>0&&t<o||i>0&&i<o)&&(n>0&&n<a||r>0&&r<a)}(e)?(t(),i.disconnect(),!1):void i.observe(e)}),()=>i.disconnect()},or=e=>t=>{if(e){const n=matchMedia(e);if(!n.matches)return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t);t()}},ar=(e=[])=>(t,n)=>{x(e)&&(e=[e]);let i=!1;const r=e=>{i||(i=!0,o(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},o=()=>{n(t=>{for(const n of e)t.removeEventListener(n,r)})};return n(t=>{for(const n of e)t.addEventListener(n,r,{once:!0})}),o};const sr=e=>!!e.type.__asyncLoader;function lr(e){C(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:i,delay:r=200,hydrate:o,timeout:a,suspensible:s=!0,onError:l}=e;let c,u=null,d=0;const p=()=>{let e;return u||(e=u=t().catch(e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise((t,n)=>{l(e,()=>t((d++,u=null,p())),()=>n(e),d+1)});throw e}).then(t=>e!==u&&u?u:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),c=t,t)))};return Bi({name:"AsyncComponentWrapper",__asyncLoader:p,__asyncHydrate(e,t,n){let i=!1;(t.bu||(t.bu=[])).push(()=>i=!0);const r=()=>{i||n()},a=o?()=>{const n=o(r,t=>function(e,t){if(Yi(e)&&"["===e.data){let n=1,i=e.nextSibling;for(;i;){if(1===i.nodeType){if(!1===t(i))break}else if(Yi(i))if("]"===i.data){if(0===--n)break}else"["===i.data&&n++;i=i.nextSibling}}else t(e)}(e,t));n&&(t.bum||(t.bum=[])).push(n)}:r;c?a():p().then(()=>!t.isUnmounted&&a())},get __asyncResolved(){return c},setup(){const e=rs;if(Vi(e),c)return()=>cr(c,e);const t=t=>{u=null,Sn(t,e,13,!i)};if(s&&e.suspense||hs)return p().then(t=>()=>cr(t,e)).catch(e=>(t(e),()=>i?Ha(i,{error:e}):null));const o=Gt(!1),l=Gt(),d=Gt(!!r);return r&&setTimeout(()=>{d.value=!1},r),null!=a&&setTimeout(()=>{if(!o.value&&!l.value){const e=new Error(`Async component timed out after ${a}ms.`);t(e),l.value=e}},a),p().then(()=>{o.value=!0,e.parent&&ur(e.parent.vnode)&&e.parent.update()}).catch(e=>{t(e),l.value=e}),()=>o.value&&c?cr(c,e):l.value&&i?Ha(i,{error:l.value}):n&&!d.value?cr(n,e):void 0}})}function cr(e,t){const{ref:n,props:i,children:r,ce:o}=t.vnode,a=Ha(e,i,r);return a.ref=n,a.ce=o,delete t.vnode.ce,a}const ur=e=>e.type.__isKeepAlive,dr={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=os(),i=n.ctx;if(!i.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const r=new Map,o=new Set;let a=null;const s=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:d}}}=i,p=d("div");function h(e){yr(e),u(e,n,s,!0)}function f(e){r.forEach((t,n)=>{const i=_s(sr(t)?t.type.__asyncResolved||{}:t.type);i&&!e(i)&&m(n)})}function m(e){const t=r.get(e);!t||a&&ja(t,a)?a&&yr(a):h(t),r.delete(e),o.delete(e)}i.activate=(e,t,n,i,r)=>{const o=e.component;c(e,t,n,0,s),l(o.vnode,e,t,n,o,s,i,e.slotScopeIds,r),ia(()=>{o.isDeactivated=!1,o.a&&H(o.a);const t=e.props&&e.props.onVnodeMounted;t&&es(t,o.parent,e)},s)},i.deactivate=e=>{const t=e.component;pa(t.m),pa(t.a),c(e,p,null,1,s),ia(()=>{t.da&&H(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&es(n,t.parent,e),t.isDeactivated=!0},s)},li(()=>[e.include,e.exclude],([e,t])=>{e&&f(t=>hr(e,t)),t&&f(e=>!hr(t,e))},{flush:"post",deep:!0});let g=null;const v=()=>{null!=g&&(fa(n.subTree.type)?ia(()=>{r.set(g,br(n.subTree))},n.subTree.suspense):r.set(g,br(n.subTree)))};return Cr(v),Sr(v),Er(()=>{r.forEach(e=>{const{subTree:t,suspense:i}=n,r=br(t);if(e.type===r.type&&e.key===r.key){yr(r);const e=r.component.da;return void(e&&ia(e,i))}h(e)})}),()=>{if(g=null,!t.default)return a=null;const n=t.default(),i=n[0];if(n.length>1)return a=null,n;if(!(Na(i)&&(4&i.shapeFlag||128&i.shapeFlag)))return a=null,i;let s=br(i);if(s.type===Sa)return a=null,s;const l=s.type,c=_s(sr(s)?s.type.__asyncResolved||{}:l),{include:u,exclude:d,max:p}=e;if(u&&(!c||!hr(u,c))||d&&c&&hr(d,c))return s.shapeFlag&=-257,a=s,i;const h=null==s.key?l:s.key,f=r.get(h);return s.el&&(s=Wa(s),128&i.shapeFlag&&(i.ssContent=s)),g=h,f?(s.el=f.el,s.component=f.component,s.transition&&Ni(s,s.transition),s.shapeFlag|=512,o.delete(h),o.add(h)):(o.add(h),p&&o.size>parseInt(p,10)&&m(o.values().next().value)),s.shapeFlag|=256,a=s,fa(i.type)?i:s}}},pr=dr;function hr(e,t){return y(e)?e.some(e=>hr(e,t)):x(e)?e.split(",").includes(t):"[object RegExp]"===T(e)&&(e.lastIndex=0,e.test(t))}function fr(e,t){gr(e,"a",t)}function mr(e,t){gr(e,"da",t)}function gr(e,t,n=rs){const i=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(kr(t,i,n),n){let e=n.parent;for(;e&&e.parent;)ur(e.parent.vnode)&&vr(i,t,n,e),e=e.parent}}function vr(e,t,n,i){const r=kr(t,e,i,!0);Ar(()=>{m(i[t],r)},n)}function yr(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function br(e){return 128&e.shapeFlag?e.ssContent:e}function kr(e,t,n=rs,i=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{Ve();const r=ls(n),o=xn(t,n,e,i);return r(),qe(),o});return i?r.unshift(o):r.push(o),o}}const wr=e=>(t,n=rs)=>{hs&&"sp"!==e||kr(e,(...e)=>t(...e),n)},_r=wr("bm"),Cr=wr("m"),xr=wr("bu"),Sr=wr("u"),Er=wr("bum"),Ar=wr("um"),Dr=wr("sp"),Tr=wr("rtg"),Ir=wr("rtc");function Or(e,t=rs){kr("ec",e,t)}const Pr="components",Fr="directives";function $r(e,t){return jr(Pr,e,!0,t)||e}const Mr=Symbol.for("v-ndc");function Lr(e){return x(e)?jr(Pr,e,!1)||e:e||Mr}function Nr(e){return jr(Fr,e)}function jr(e,t,n=!0,i=!1){const r=Un||rs;if(r){const n=r.type;if(e===Pr){const e=_s(n,!1);if(e&&(e===t||e===N(t)||e===R(N(t))))return n}const o=Br(r[e]||n[e],t)||Br(r.appContext[e],t);return!o&&i?n:o}}function Br(e,t){return e&&(e[t]||e[N(t)]||e[R(N(t))])}function Rr(e,t,n,i){let r;const o=n&&n[i],a=y(e);if(a||x(e)){let n=!1,i=!1;a&&jt(e)&&(n=!Rt(e),i=Bt(e),e=tt(e)),r=new Array(e.length);for(let a=0,s=e.length;a<s;a++)r[a]=t(n?i?Ut(zt(e[a])):zt(e[a]):e[a],a,void 0,o&&o[a])}else if("number"==typeof e){r=new Array(e);for(let n=0;n<e;n++)r[n]=t(n+1,n,void 0,o&&o[n])}else if(E(e))if(e[Symbol.iterator])r=Array.from(e,(e,n)=>t(e,n,void 0,o&&o[n]));else{const n=Object.keys(e);r=new Array(n.length);for(let i=0,a=n.length;i<a;i++){const a=n[i];r[i]=t(e[a],a,i,o&&o[i])}}else r=[];return n&&(n[i]=r),r}function Vr(e,t){for(let n=0;n<t.length;n++){const i=t[n];if(y(i))for(let t=0;t<i.length;t++)e[i[t].name]=i[t].fn;else i&&(e[i.name]=i.key?(...e)=>{const t=i.fn(...e);return t&&(t.key=i.key),t}:i.fn)}return e}function qr(e,t,n={},i,r){if(Un.ce||Un.parent&&sr(Un.parent)&&Un.parent.ce){const e=Object.keys(n).length>0;return"default"!==t&&(n.name=t),Ta(),La(Ca,null,[Ha("slot",n,i&&i())],e?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),Ta();const a=o&&Hr(o(n)),s=n.key||a&&a.key,l=La(Ca,{key:(s&&!S(s)?s:`_${t}`)+(!a&&i?"_fb":"")},a||(i?i():[]),a&&1===e._?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function Hr(e){return e.some(e=>!Na(e)||e.type!==Sa&&!(e.type===Ca&&!Hr(e.children)))?e:null}function zr(e,t){const n={};for(const i in e)n[t&&/[A-Z]/.test(i)?`on:${i}`:V(i)]=e[i];return n}const Ur=e=>e?us(e)?ws(e):Ur(e.parent):null,Wr=f(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ur(e.parent),$root:e=>Ur(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>go(e),$forceUpdate:e=>e.f||(e.f=()=>{$n(e.update)}),$nextTick:e=>e.n||(e.n=Fn.bind(e.proxy)),$watch:e=>ui.bind(e)}),Gr=(e,t)=>e!==l&&!e.__isScriptSetup&&v(e,t),Kr={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:i,data:r,props:o,accessCache:a,type:s,appContext:c}=e;if("$"!==t[0]){const e=a[t];if(void 0!==e)switch(e){case 1:return i[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(Gr(i,t))return a[t]=1,i[t];if(r!==l&&v(r,t))return a[t]=2,r[t];if(v(o,t))return a[t]=3,o[t];if(n!==l&&v(n,t))return a[t]=4,n[t];po&&(a[t]=0)}}const u=Wr[t];let d,p;return u?("$attrs"===t&&Xe(e.attrs,0,""),u(e)):(d=s.__cssModules)&&(d=d[t])?d:n!==l&&v(n,t)?(a[t]=4,n[t]):(p=c.config.globalProperties,v(p,t)?p[t]:void 0)},set({_:e},t,n){const{data:i,setupState:r,ctx:o}=e;return Gr(r,t)?(r[t]=n,!0):i!==l&&v(i,t)?(i[t]=n,!0):!v(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(o[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:r,props:o,type:a}},s){let c;return!!(n[s]||e!==l&&"$"!==s[0]&&v(e,s)||Gr(t,s)||v(o,s)||v(i,s)||v(Wr,s)||v(r.config.globalProperties,s)||(c=a.__cssModules)&&c[s])},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:v(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};const Qr=f({},Kr,{get(e,t){if(t!==Symbol.unscopables)return Kr.get(e,t,e)},has(e,t){return"_"!==t[0]&&!Q(t)}});function Yr(){return null}function Jr(){return null}function Xr(e){0}function Zr(e){0}function eo(){return null}function to(){0}function no(e,t){return null}function io(){return oo("useSlots").slots}function ro(){return oo("useAttrs").attrs}function oo(e){const t=os();return t.setupContext||(t.setupContext=ks(t))}function ao(e){return y(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function so(e,t){const n=ao(e);for(const e in t){if(e.startsWith("__skip"))continue;let i=n[e];i?y(i)||C(i)?i=n[e]={type:i,default:t[e]}:i.default=t[e]:null===i&&(i=n[e]={default:t[e]}),i&&t[`__skip_${e}`]&&(i.skipFactory=!0)}return n}function lo(e,t){return e&&t?y(e)&&y(t)?e.concat(t):f({},ao(e),ao(t)):e||t}function co(e,t){const n={};for(const i in e)t.includes(i)||Object.defineProperty(n,i,{enumerable:!0,get:()=>e[i]});return n}function uo(e){const t=os(),n=hs;let i=e();cs(),n&&ss(!1);const r=()=>{ls(t),n&&ss(!0)},o=()=>{os()!==t&&t.scope.off(),cs(),n&&ss(!1)};return A(i)&&(i=i.catch(e=>{throw r(),Promise.resolve().then(()=>Promise.resolve().then(o)),e})),[i,()=>{r(),Promise.resolve().then(o)}]}let po=!0;function ho(e){const t=go(e),n=e.proxy,i=e.ctx;po=!1,t.beforeCreate&&fo(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:a,watch:s,provide:l,inject:c,created:d,beforeMount:p,mounted:h,beforeUpdate:f,updated:m,activated:g,deactivated:v,beforeDestroy:b,beforeUnmount:k,destroyed:w,unmounted:_,render:x,renderTracked:S,renderTriggered:A,errorCaptured:D,serverPrefetch:T,expose:I,inheritAttrs:O,components:P,directives:F,filters:$}=t;if(c&&function(e,t){y(e)&&(e=ko(e));for(const n in e){const i=e[n];let r;r=E(i)?"default"in i?ti(i.from||n,i.default,!0):ti(i.from||n):ti(i),Wt(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[n]=r}}(c,i,null),a)for(const e in a){const t=a[e];C(t)&&(i[e]=t.bind(n))}if(r){0;const t=r.call(n,n);0,E(t)&&(e.data=Ft(t))}if(po=!0,o)for(const e in o){const t=o[e],r=C(t)?t.bind(n,n):C(t.get)?t.get.bind(n,n):u;0;const a=!C(t)&&C(t.set)?t.set.bind(n):u,s=xs({get:r,set:a});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e})}if(s)for(const e in s)mo(s[e],i,n,e);if(l){const e=C(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{ei(t,e[t])})}function M(e,t){y(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(d&&fo(d,e,"c"),M(_r,p),M(Cr,h),M(xr,f),M(Sr,m),M(fr,g),M(mr,v),M(Or,D),M(Ir,S),M(Tr,A),M(Er,k),M(Ar,_),M(Dr,T),y(I))if(I.length){const t=e.exposed||(e.exposed={});I.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||(e.exposed={});x&&e.render===u&&(e.render=x),null!=O&&(e.inheritAttrs=O),P&&(e.components=P),F&&(e.directives=F),T&&Vi(e)}function fo(e,t,n){xn(y(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function mo(e,t,n,i){let r=i.includes(".")?di(n,i):()=>n[i];if(x(e)){const n=t[e];C(n)&&li(r,n)}else if(C(e))li(r,e.bind(n));else if(E(e))if(y(e))e.forEach(e=>mo(e,t,n,i));else{const i=C(e.handler)?e.handler.bind(n):t[e.handler];C(i)&&li(r,i,e)}else 0}function go(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,s=o.get(t);let l;return s?l=s:r.length||n||i?(l={},r.length&&r.forEach(e=>vo(l,e,a,!0)),vo(l,t,a)):l=t,E(t)&&o.set(t,l),l}function vo(e,t,n,i=!1){const{mixins:r,extends:o}=t;o&&vo(e,o,n,!0),r&&r.forEach(t=>vo(e,t,n,!0));for(const r in t)if(i&&"expose"===r);else{const i=yo[r]||n&&n[r];e[r]=i?i(e[r],t[r]):t[r]}return e}const yo={data:bo,props:Co,emits:Co,methods:_o,computed:_o,beforeCreate:wo,created:wo,beforeMount:wo,mounted:wo,beforeUpdate:wo,updated:wo,beforeDestroy:wo,beforeUnmount:wo,destroyed:wo,unmounted:wo,activated:wo,deactivated:wo,errorCaptured:wo,serverPrefetch:wo,components:_o,directives:_o,watch:function(e,t){if(!e)return t;if(!t)return e;const n=f(Object.create(null),e);for(const i in t)n[i]=wo(e[i],t[i]);return n},provide:bo,inject:function(e,t){return _o(ko(e),ko(t))}};function bo(e,t){return t?e?function(){return f(C(e)?e.call(this,this):e,C(t)?t.call(this,this):t)}:t:e}function ko(e){if(y(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function wo(e,t){return e?[...new Set([].concat(e,t))]:t}function _o(e,t){return e?f(Object.create(null),e,t):t}function Co(e,t){return e?y(e)&&y(t)?[...new Set([...e,...t])]:f(Object.create(null),ao(e),ao(null!=t?t:{})):t}function xo(){return{app:null,config:{isNativeTag:d,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let So=0;function Eo(e,t){return function(n,i=null){C(n)||(n=f({},n)),null==i||E(i)||(i=null);const r=xo(),o=new WeakSet,a=[];let s=!1;const l=r.app={_uid:So++,_component:n,_props:i,_container:null,_context:r,_instance:null,version:Ts,get config(){return r.config},set config(e){0},use(e,...t){return o.has(e)||(e&&C(e.install)?(o.add(e),e.install(l,...t)):C(e)&&(o.add(e),e(l,...t))),l},mixin(e){return r.mixins.includes(e)||r.mixins.push(e),l},component(e,t){return t?(r.components[e]=t,l):r.components[e]},directive(e,t){return t?(r.directives[e]=t,l):r.directives[e]},mount(o,a,c){if(!s){0;const u=l._ceVNode||Ha(n,i);return u.appContext=r,!0===c?c="svg":!1===c&&(c=void 0),a&&t?t(u,o):e(u,o,c),s=!0,l._container=o,o.__vue_app__=l,ws(u.component)}},onUnmount(e){a.push(e)},unmount(){s&&(xn(a,l._instance,16),e(null,l._container),delete l._container.__vue_app__)},provide(e,t){return r.provides[e]=t,l},runWithContext(e){const t=Ao;Ao=l;try{return e()}finally{Ao=t}}};return l}}let Ao=null;function Do(e,t,n=l){const i=os();const r=N(t);const o=B(t),a=To(e,r),s=rn((a,s)=>{let c,u,d=l;return si(()=>{const t=e[r];q(c,t)&&(c=t,s())}),{get(){return a(),n.get?n.get(c):c},set(e){const a=n.set?n.set(e):e;if(!(q(a,c)||d!==l&&q(e,d)))return;const p=i.vnode.props;p&&(t in p||r in p||o in p)&&(`onUpdate:${t}`in p||`onUpdate:${r}`in p||`onUpdate:${o}`in p)||(c=e,s()),i.emit(`update:${t}`,a),q(e,a)&&q(e,d)&&!q(a,u)&&s(),d=e,u=a}}});return s[Symbol.iterator]=()=>{let e=0;return{next(){return e<2?{value:e++?a||l:s,done:!1}:{done:!0}}}},s}const To=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${N(t)}Modifiers`]||e[`${B(t)}Modifiers`];function Io(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||l;let r=n;const o=t.startsWith("update:"),a=o&&To(i,t.slice(7));let s;a&&(a.trim&&(r=n.map(e=>x(e)?e.trim():e)),a.number&&(r=n.map(U)));let c=i[s=V(t)]||i[s=V(N(t))];!c&&o&&(c=i[s=V(B(t))]),c&&xn(c,e,6,r);const u=i[s+"Once"];if(u){if(e.emitted){if(e.emitted[s])return}else e.emitted={};e.emitted[s]=!0,xn(u,e,6,r)}}const Oo=new WeakMap;function Po(e,t,n=!1){const i=n?Oo:t.emitsCache,r=i.get(e);if(void 0!==r)return r;const o=e.emits;let a={},s=!1;if(!C(e)){const i=e=>{const n=Po(e,t,!0);n&&(s=!0,f(a,n))};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}return o||s?(y(o)?o.forEach(e=>a[e]=null):f(a,o),E(e)&&i.set(e,a),a):(E(e)&&i.set(e,null),null)}function Fo(e,t){return!(!e||!p(t))&&(t=t.slice(2).replace(/Once$/,""),v(e,t[0].toLowerCase()+t.slice(1))||v(e,B(t))||v(e,t))}function $o(e){const{type:t,vnode:n,proxy:i,withProxy:r,propsOptions:[o],slots:a,attrs:s,emit:l,render:c,renderCache:u,props:d,data:p,setupState:f,ctx:m,inheritAttrs:g}=e,v=Gn(e);let y,b;try{if(4&n.shapeFlag){const e=r||i,t=e;y=Ya(c.call(t,e,u,d,f,p,m)),b=s}else{const e=t;0,y=Ya(e.length>1?e(d,{attrs:s,slots:a,emit:l}):e(d,null)),b=t.props?s:Lo(s)}}catch(t){Aa.length=0,Sn(t,e,1),y=Ha(Sa)}let k=y;if(b&&!1!==g){const e=Object.keys(b),{shapeFlag:t}=k;e.length&&7&t&&(o&&e.some(h)&&(b=No(b,o)),k=Wa(k,b,!1,!0))}return n.dirs&&(k=Wa(k,null,!1,!0),k.dirs=k.dirs?k.dirs.concat(n.dirs):n.dirs),n.transition&&Ni(k,n.transition),y=k,Gn(v),y}function Mo(e,t=!0){let n;for(let t=0;t<e.length;t++){const i=e[t];if(!Na(i))return;if(i.type!==Sa||"v-if"===i.children){if(n)return;n=i}}return n}const Lo=e=>{let t;for(const n in e)("class"===n||"style"===n||p(n))&&((t||(t={}))[n]=e[n]);return t},No=(e,t)=>{const n={};for(const i in e)h(i)&&i.slice(9)in t||(n[i]=e[i]);return n};function jo(e,t,n){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let r=0;r<i.length;r++){const o=i[r];if(Bo(t,e,o)&&!Fo(n,o))return!0}return!1}function Bo(e,t,n){const i=e[n],r=t[n];return"style"===n&&E(i)&&E(r)?!ue(i,r):i!==r}function Ro({vnode:e,parent:t,suspense:n},i){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=i,e=n),n!==e)break;(e=t.vnode).el=i,t=t.parent}n&&n.activeBranch===e&&(n.vnode.el=i)}const Vo={},qo=()=>Object.create(Vo),Ho=e=>Object.getPrototypeOf(e)===Vo;function zo(e,t,n,i){const[r,o]=e.propsOptions;let a,s=!1;if(t)for(let l in t){if(F(l))continue;const c=t[l];let u;r&&v(r,u=N(l))?o&&o.includes(u)?(a||(a={}))[u]=c:n[u]=c:Fo(e.emitsOptions,l)||l in i&&c===i[l]||(i[l]=c,s=!0)}if(o){const t=qt(n),i=a||l;for(let a=0;a<o.length;a++){const s=o[a];n[s]=Uo(r,t,s,i[s],e,!v(i,s))}}return s}function Uo(e,t,n,i,r,o){const a=e[n];if(null!=a){const e=v(a,"default");if(e&&void 0===i){const e=a.default;if(a.type!==Function&&!a.skipFactory&&C(e)){const{propsDefaults:o}=r;if(n in o)i=o[n];else{const a=ls(r);i=o[n]=e.call(null,t),a()}}else i=e;r.ce&&r.ce._setProp(n,i)}a[0]&&(o&&!e?i=!1:!a[1]||""!==i&&i!==B(n)||(i=!0))}return i}const Wo=new WeakMap;function Go(e,t,n=!1){const i=n?Wo:t.propsCache,r=i.get(e);if(r)return r;const o=e.props,a={},s=[];let u=!1;if(!C(e)){const i=e=>{u=!0;const[n,i]=Go(e,t,!0);f(a,n),i&&s.push(...i)};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}if(!o&&!u)return E(e)&&i.set(e,c),c;if(y(o))for(let e=0;e<o.length;e++){0;const t=N(o[e]);Ko(t)&&(a[t]=l)}else if(o){0;for(const e in o){const t=N(e);if(Ko(t)){const n=o[e],i=a[t]=y(n)||C(n)?{type:n}:f({},n),r=i.type;let l=!1,c=!0;if(y(r))for(let e=0;e<r.length;++e){const t=r[e],n=C(t)&&t.name;if("Boolean"===n){l=!0;break}"String"===n&&(c=!1)}else l=C(r)&&"Boolean"===r.name;i[0]=l,i[1]=c,(l||v(i,"default"))&&s.push(t)}}}const d=[a,s];return E(e)&&i.set(e,d),d}function Ko(e){return"$"!==e[0]&&!F(e)}const Qo=e=>"_"===e||"_ctx"===e||"$stable"===e,Yo=e=>y(e)?e.map(Ya):[Ya(e)],Jo=(e,t,n)=>{if(t._n)return t;const i=Jn((...e)=>Yo(t(...e)),n);return i._c=!1,i},Xo=(e,t,n)=>{const i=e._ctx;for(const n in e){if(Qo(n))continue;const r=e[n];if(C(r))t[n]=Jo(0,r,i);else if(null!=r){0;const e=Yo(r);t[n]=()=>e}}},Zo=(e,t)=>{const n=Yo(t);e.slots.default=()=>n},ea=(e,t,n)=>{for(const i in t)!n&&Qo(i)||(e[i]=t[i])},ta=(e,t,n)=>{const i=e.slots=qo();if(32&e.vnode.shapeFlag){const e=t._;e?(ea(i,t,n),n&&z(i,"_",e,!0)):Xo(t,i)}else t&&Zo(e,t)},na=(e,t,n)=>{const{vnode:i,slots:r}=e;let o=!0,a=l;if(32&i.shapeFlag){const e=t._;e?n&&1===e?o=!1:ea(r,t,n):(o=!t.$stable,Xo(t,r)),a=t}else t&&(Zo(e,t),a={default:1});if(o)for(const e in r)Qo(e)||null!=a[e]||delete r[e]};const ia=wa;function ra(e){return aa(e)}function oa(e){return aa(e,Ji)}function aa(e,t){K().__VUE__=!0;const{insert:n,remove:i,patchProp:r,createElement:o,createText:a,createComment:s,setText:d,setElementText:p,parentNode:h,nextSibling:f,setScopeId:m=u,insertStaticContent:g}=e,y=(e,t,n,i=null,r=null,o=null,a=void 0,s=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!ja(e,t)&&(i=Y(e),z(e,r,o,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case xa:b(e,t,n,i);break;case Sa:k(e,t,n,i);break;case Ea:null==e&&w(t,n,i,a);break;case Ca:I(e,t,n,i,r,o,a,s,l);break;default:1&d?C(e,t,n,i,r,o,a,s,l):6&d?O(e,t,n,i,r,o,a,s,l):(64&d||128&d)&&c.process(e,t,n,i,r,o,a,s,l,Z)}null!=u&&r?Ui(u,e&&e.ref,o,t||e,!t):null==u&&e&&null!=e.ref&&Ui(e.ref,null,o,e,!0)},b=(e,t,i,r)=>{if(null==e)n(t.el=a(t.children),i,r);else{const n=t.el=e.el;t.children!==e.children&&d(n,t.children)}},k=(e,t,i,r)=>{null==e?n(t.el=s(t.children||""),i,r):t.el=e.el},w=(e,t,n,i)=>{[e.el,e.anchor]=g(e.children,t,n,i,e.el,e.anchor)},_=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=f(e),i(e),e=n;i(t)},C=(e,t,n,i,r,o,a,s,l)=>{if("svg"===t.type?a="svg":"math"===t.type&&(a="mathml"),null==e)x(t,n,i,r,o,a,s,l);else{const n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),A(e,t,r,o,a,s,l)}finally{n&&n._endPatch()}}},x=(e,t,i,a,s,l,c,u)=>{let d,h;const{props:f,shapeFlag:m,transition:g,dirs:v}=e;if(d=e.el=o(e.type,l,f&&f.is,f),8&m?p(d,e.children):16&m&&E(e.children,d,null,a,s,sa(e,l),c,u),v&&Zn(e,null,a,"created"),S(d,e,e.scopeId,c,a),f){for(const e in f)"value"===e||F(e)||r(d,e,null,f[e],l,a);"value"in f&&r(d,"value",null,f.value,l),(h=f.onVnodeBeforeMount)&&es(h,a,e)}v&&Zn(e,null,a,"beforeMount");const y=ca(s,g);if(y&&g.beforeEnter(d),n(d,t,i),(h=f&&f.onVnodeMounted)||y||v){ia(()=>{try{h&&es(h,a,e),y&&g.enter(d),v&&Zn(e,null,a,"mounted")}finally{0}},s)}},S=(e,t,n,i,r)=>{if(n&&m(e,n),i)for(let t=0;t<i.length;t++)m(e,i[t]);if(r){let n=r.subTree;if(t===n||fa(n.type)&&(n.ssContent===t||n.ssFallback===t)){const t=r.vnode;S(e,t,t.scopeId,t.slotScopeIds,r.parent)}}},E=(e,t,n,i,r,o,a,s,l=0)=>{for(let c=l;c<e.length;c++){const l=e[c]=s?Ja(e[c]):Ya(e[c]);y(null,l,t,n,i,r,o,a,s)}},A=(e,t,n,i,o,a,s)=>{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:h}=t;u|=16&e.patchFlag;const f=e.props||l,m=t.props||l;let g;if(n&&la(n,!1),(g=m.onVnodeBeforeUpdate)&&es(g,n,t,e),h&&Zn(t,e,n,"beforeUpdate"),n&&la(n,!0),(f.innerHTML&&null==m.innerHTML||f.textContent&&null==m.textContent)&&p(c,""),d?D(e.dynamicChildren,d,c,n,i,sa(t,o),a):s||j(e,t,c,null,n,i,sa(t,o),a,!1),u>0){if(16&u)T(c,f,m,n,o);else if(2&u&&f.class!==m.class&&r(c,"class",null,m.class,o),4&u&&r(c,"style",f.style,m.style,o),8&u){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const i=e[t],a=f[i],s=m[i];s===a&&"value"!==i||r(c,i,a,s,o,n)}}1&u&&e.children!==t.children&&p(c,t.children)}else s||null!=d||T(c,f,m,n,o);((g=m.onVnodeUpdated)||h)&&ia(()=>{g&&es(g,n,t,e),h&&Zn(t,e,n,"updated")},i)},D=(e,t,n,i,r,o,a)=>{for(let s=0;s<t.length;s++){const l=e[s],c=t[s],u=l.el&&(l.type===Ca||!ja(l,c)||198&l.shapeFlag)?h(l.el):n;y(l,c,u,null,i,r,o,a,!0)}},T=(e,t,n,i,o)=>{if(t!==n){if(t!==l)for(const a in t)F(a)||a in n||r(e,a,t[a],null,o,i);for(const a in n){if(F(a))continue;const s=n[a],l=t[a];s!==l&&"value"!==a&&r(e,a,l,s,o,i)}"value"in n&&r(e,"value",t.value,n.value,o)}},I=(e,t,i,r,o,s,l,c,u)=>{const d=t.el=e?e.el:a(""),p=t.anchor=e?e.anchor:a("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:m}=t;m&&(c=c?c.concat(m):m),null==e?(n(d,i,r),n(p,i,r),E(t.children||[],i,p,o,s,l,c,u)):h>0&&64&h&&f&&e.dynamicChildren&&e.dynamicChildren.length===f.length?(D(e.dynamicChildren,f,i,o,s,l,c),(null!=t.key||o&&t===o.subTree)&&ua(e,t,!0)):j(e,t,i,p,o,s,l,c,u)},O=(e,t,n,i,r,o,a,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?r.ctx.activate(t,n,i,a,l):P(t,n,i,r,o,a,l):$(e,t,l)},P=(e,t,n,i,r,o,a)=>{const s=e.component=is(e,i,r);if(ur(e)&&(s.ctx.renderer=Z),fs(s,!1,a),s.asyncDep){if(r&&r.registerDep(s,M,a),!e.el){const i=s.subTree=Ha(Sa);k(null,i,t,n),e.placeholder=i.el}}else M(s,e,t,n,r,o,a)},$=(e,t,n)=>{const i=t.component=e.component;if(function(e,t,n){const{props:i,children:r,component:o}=e,{props:a,children:s,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!r&&!s||s&&s.$stable)||i!==a&&(i?!a||jo(i,a,c):!!a);if(1024&l)return!0;if(16&l)return i?jo(i,a,c):!!a;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(Bo(a,i,n)&&!Fo(c,n))return!0}}return!1}(e,t,n)){if(i.asyncDep&&!i.asyncResolved)return void L(i,t,n);i.next=t,i.update()}else t.el=e.el,i.vnode=t},M=(e,t,n,i,r,o,a)=>{e.scope.on();const s=e.effect=new xe(()=>{if(e.isMounted){let{next:t,bu:n,u:i,parent:s,vnode:c}=e;{const n=da(e);if(n)return t&&(t.el=c.el,L(e,t,a)),void n.asyncDep.then(()=>{ia(()=>{e.isUnmounted||l()},r)})}let u,d=t;0,la(e,!1),t?(t.el=c.el,L(e,t,a)):t=c,n&&H(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&es(u,s,t,c),la(e,!0);const p=$o(e);0;const f=e.subTree;e.subTree=p,y(f,p,h(f.el),Y(f),e,r,o),t.el=p.el,null===d&&Ro(e,p.el),i&&ia(i,r),(u=t.props&&t.props.onVnodeUpdated)&&ia(()=>es(u,s,t,c),r)}else{let a;const{el:s,props:l}=t,{bm:c,m:u,parent:d,root:p,type:h}=e,f=sr(t);if(la(e,!1),c&&H(c),!f&&(a=l&&l.onVnodeBeforeMount)&&es(a,d,t),la(e,!0),s&&te){const t=()=>{e.subTree=$o(e),te(s,e.subTree,e,r,null)};f&&h.__asyncHydrate?h.__asyncHydrate(s,e,t):t()}else{p.ce&&p.ce._hasShadowRoot()&&p.ce._injectChildStyle(h,e.parent?e.parent.type:void 0);const a=e.subTree=$o(e);0,y(null,a,n,i,e,r,o),t.el=a.el}if(u&&ia(u,r),!f&&(a=l&&l.onVnodeMounted)){const e=t;ia(()=>es(a,d,e),r)}(256&t.shapeFlag||d&&sr(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&ia(e.a,r),e.isMounted=!0,t=n=i=null}});e.scope.off();const l=e.update=s.run.bind(s),c=e.job=s.runIfDirty.bind(s);c.i=e,c.id=e.uid,s.scheduler=()=>$n(c),la(e,!0),l()},L=(e,t,n)=>{t.component=e;const i=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,i){const{props:r,attrs:o,vnode:{patchFlag:a}}=e,s=qt(r),[l]=e.propsOptions;let c=!1;if(!(i||a>0)||16&a){let i;zo(e,t,r,o)&&(c=!0);for(const o in s)t&&(v(t,o)||(i=B(o))!==o&&v(t,i))||(l?!n||void 0===n[o]&&void 0===n[i]||(r[o]=Uo(l,s,o,void 0,e,!0)):delete r[o]);if(o!==s)for(const e in o)t&&v(t,e)||(delete o[e],c=!0)}else if(8&a){const n=e.vnode.dynamicProps;for(let i=0;i<n.length;i++){let a=n[i];if(Fo(e.emitsOptions,a))continue;const u=t[a];if(l)if(v(o,a))u!==o[a]&&(o[a]=u,c=!0);else{const t=N(a);r[t]=Uo(l,s,t,u,e,!1)}else u!==o[a]&&(o[a]=u,c=!0)}}c&&Ze(e.attrs,"set","")}(e,t.props,i,n),na(e,t.children,n),Ve(),Nn(e),qe()},j=(e,t,n,i,r,o,a,s,l=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void V(c,d,n,i,r,o,a,s,l);if(256&h)return void R(c,d,n,i,r,o,a,s,l)}8&f?(16&u&&Q(c,r,o),d!==c&&p(n,d)):16&u?16&f?V(c,d,n,i,r,o,a,s,l):Q(c,r,o,!0):(8&u&&p(n,""),16&f&&E(d,n,i,r,o,a,s,l))},R=(e,t,n,i,r,o,a,s,l)=>{t=t||c;const u=(e=e||c).length,d=t.length,p=Math.min(u,d);let h;for(h=0;h<p;h++){const i=t[h]=l?Ja(t[h]):Ya(t[h]);y(e[h],i,n,null,r,o,a,s,l)}u>d?Q(e,r,o,!0,!1,p):E(t,n,i,r,o,a,s,l,p)},V=(e,t,n,i,r,o,a,s,l)=>{let u=0;const d=t.length;let p=e.length-1,h=d-1;for(;u<=p&&u<=h;){const i=e[u],c=t[u]=l?Ja(t[u]):Ya(t[u]);if(!ja(i,c))break;y(i,c,n,null,r,o,a,s,l),u++}for(;u<=p&&u<=h;){const i=e[p],c=t[h]=l?Ja(t[h]):Ya(t[h]);if(!ja(i,c))break;y(i,c,n,null,r,o,a,s,l),p--,h--}if(u>p){if(u<=h){const e=h+1,c=e<d?t[e].el:i;for(;u<=h;)y(null,t[u]=l?Ja(t[u]):Ya(t[u]),n,c,r,o,a,s,l),u++}}else if(u>h)for(;u<=p;)z(e[u],r,o,!0),u++;else{const f=u,m=u,g=new Map;for(u=m;u<=h;u++){const e=t[u]=l?Ja(t[u]):Ya(t[u]);null!=e.key&&g.set(e.key,u)}let v,b=0;const k=h-m+1;let w=!1,_=0;const C=new Array(k);for(u=0;u<k;u++)C[u]=0;for(u=f;u<=p;u++){const i=e[u];if(b>=k){z(i,r,o,!0);continue}let c;if(null!=i.key)c=g.get(i.key);else for(v=m;v<=h;v++)if(0===C[v-m]&&ja(i,t[v])){c=v;break}void 0===c?z(i,r,o,!0):(C[c-m]=u+1,c>=_?_=c:w=!0,y(i,t[c],n,null,r,o,a,s,l),b++)}const x=w?function(e){const t=e.slice(),n=[0];let i,r,o,a,s;const l=e.length;for(i=0;i<l;i++){const l=e[i];if(0!==l){if(r=n[n.length-1],e[r]<l){t[i]=r,n.push(i);continue}for(o=0,a=n.length-1;o<a;)s=o+a>>1,e[n[s]]<l?o=s+1:a=s;l<e[n[o]]&&(o>0&&(t[i]=n[o-1]),n[o]=i)}}o=n.length,a=n[o-1];for(;o-- >0;)n[o]=a,a=t[a];return n}(C):c;for(v=x.length-1,u=k-1;u>=0;u--){const e=m+u,c=t[e],p=t[e+1],h=e+1<d?p.el||ha(p):i;0===C[u]?y(null,c,n,h,r,o,a,s,l):w&&(v<0||u!==x[v]?q(c,n,h,2):v--)}}},q=(e,t,r,o,a=null)=>{const{el:s,type:l,transition:c,children:u,shapeFlag:d}=e;if(6&d)return void q(e.component.subTree,t,r,o);if(128&d)return void e.suspense.move(t,r,o);if(64&d)return void l.move(e,t,r,Z);if(l===Ca){n(s,t,r);for(let e=0;e<u.length;e++)q(u[e],t,r,o);return void n(e.anchor,t,r)}if(l===Ea)return void(({el:e,anchor:t},i,r)=>{let o;for(;e&&e!==t;)o=f(e),n(e,i,r),e=o;n(t,i,r)})(e,t,r);if(2!==o&&1&d&&c)if(0===o)c.beforeEnter(s),n(s,t,r),ia(()=>c.enter(s),a);else{const{leave:o,delayLeave:a,afterLeave:l}=c,u=()=>{e.ctx.isUnmounted?i(s):n(s,t,r)},d=()=>{s._isLeaving&&s[xi](!0),o(s,()=>{u(),l&&l()})};a?a(s,u,d):d()}else n(s,t,r)},z=(e,t,n,i=!1,r=!1)=>{const{type:o,props:a,ref:s,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:p,cacheIndex:h,memo:f}=e;if(-2===d&&(r=!1),null!=s&&(Ve(),Ui(s,null,n,e,!0),qe()),null!=h&&(t.renderCache[h]=void 0),256&u)return void t.ctx.deactivate(e);const m=1&u&&p,g=!sr(e);let v;if(g&&(v=a&&a.onVnodeBeforeUnmount)&&es(v,t,e),6&u)G(e.component,n,i);else{if(128&u)return void e.suspense.unmount(n,i);m&&Zn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,Z,i):c&&!c.hasOnce&&(o!==Ca||d>0&&64&d)?Q(c,t,n,!1,!0):(o===Ca&&384&d||!r&&16&u)&&Q(l,t,n),i&&U(e)}const y=null!=f&&null==h;(g&&(v=a&&a.onVnodeUnmounted)||m||y)&&ia(()=>{v&&es(v,t,e),m&&Zn(e,null,t,"unmounted"),y&&(e.el=null)},n)},U=e=>{const{type:t,el:n,anchor:r,transition:o}=e;if(t===Ca)return void W(n,r);if(t===Ea)return void _(e);const a=()=>{i(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:i}=o,r=()=>t(n,a);i?i(e.el,a,r):r()}else a()},W=(e,t)=>{let n;for(;e!==t;)n=f(e),i(e),e=n;i(t)},G=(e,t,n)=>{const{bum:i,scope:r,job:o,subTree:a,um:s,m:l,a:c}=e;pa(l),pa(c),i&&H(i),r.stop(),o&&(o.flags|=8,z(a,e,t,n)),s&&ia(s,t),ia(()=>{e.isUnmounted=!0},t)},Q=(e,t,n,i=!1,r=!1,o=0)=>{for(let a=o;a<e.length;a++)z(e[a],t,n,i,r)},Y=e=>{if(6&e.shapeFlag)return Y(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=f(e.anchor||e.el),n=t&&t[hi];return n?f(n):t};let J=!1;const X=(e,t,n)=>{let i;null==e?t._vnode&&(z(t._vnode,null,null,!0),i=t._vnode.component):y(t._vnode||null,e,t,null,null,null,n),t._vnode=e,J||(J=!0,Nn(i),jn(),J=!1)},Z={p:y,um:z,m:q,r:U,mt:P,mc:E,pc:j,pbc:D,n:Y,o:e};let ee,te;return t&&([ee,te]=t(Z)),{render:X,hydrate:ee,createApp:Eo(X,ee)}}function sa({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function la({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ca(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ua(e,t,n=!1){const i=e.children,r=t.children;if(y(i)&&y(r))for(let e=0;e<i.length;e++){const t=i[e];let o=r[e];1&o.shapeFlag&&!o.dynamicChildren&&((o.patchFlag<=0||32===o.patchFlag)&&(o=r[e]=Ja(r[e]),o.el=t.el),n||-2===o.patchFlag||ua(t,o)),o.type===xa&&(-1===o.patchFlag&&(o=r[e]=Ja(o)),o.el=t.el),o.type!==Sa||o.el||(o.el=t.el)}}function da(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:da(t)}function pa(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function ha(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?ha(t.subTree):null}const fa=e=>e.__isSuspense;let ma=0;const ga={name:"Suspense",__isSuspense:!0,process(e,t,n,i,r,o,a,s,l,c){if(null==e)!function(e,t,n,i,r,o,a,s,l){const{p:c,o:{createElement:u}}=l,d=u("div"),p=e.suspense=ba(e,r,i,t,d,n,o,a,s,l);c(null,p.pendingBranch=e.ssContent,d,null,i,p,o,a),p.deps>0?(ya(e,"onPending"),ya(e,"onFallback"),c(null,e.ssFallback,t,n,i,null,o,a),_a(p,e.ssFallback)):p.resolve(!1,!0)}(t,n,i,r,o,a,s,l,c);else{if(o&&o.deps>0&&!e.suspense.isInFallback)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);!function(e,t,n,i,r,o,a,s,{p:l,um:c,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,h=t.ssFallback,{activeBranch:f,pendingBranch:m,isInFallback:g,isHydrating:v}=d;if(m)d.pendingBranch=p,ja(m,p)?(l(m,p,d.hiddenContainer,null,r,d,o,a,s),d.deps<=0?d.resolve():g&&(v||(l(f,h,n,i,r,null,o,a,s),_a(d,h)))):(d.pendingId=ma++,v?(d.isHydrating=!1,d.activeBranch=m):c(m,r,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),g?(l(null,p,d.hiddenContainer,null,r,d,o,a,s),d.deps<=0?d.resolve():(l(f,h,n,i,r,null,o,a,s),_a(d,h))):f&&ja(f,p)?(l(f,p,n,i,r,d,o,a,s),d.resolve(!0)):(l(null,p,d.hiddenContainer,null,r,d,o,a,s),d.deps<=0&&d.resolve()));else if(f&&ja(f,p))l(f,p,n,i,r,d,o,a,s),_a(d,p);else if(ya(t,"onPending"),d.pendingBranch=p,512&p.shapeFlag?d.pendingId=p.component.suspenseId:d.pendingId=ma++,l(null,p,d.hiddenContainer,null,r,d,o,a,s),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(h)},e):0===e&&d.fallback(h)}}(e,t,n,i,r,a,s,l,c)}},hydrate:function(e,t,n,i,r,o,a,s,l){const c=t.suspense=ba(t,i,n,e.parentNode,document.createElement("div"),null,r,o,a,s,!0),u=l(e,c.pendingBranch=t.ssContent,n,c,o,a);0===c.deps&&c.resolve(!1,!0);return u},normalize:function(e){const{shapeFlag:t,children:n}=e,i=32&t;e.ssContent=ka(i?n.default:n),e.ssFallback=i?ka(n.fallback):Ha(Sa)}},va=ga;function ya(e,t){const n=e.props&&e.props[t];C(n)&&n()}function ba(e,t,n,i,r,o,a,s,l,c,u=!1){const{p:d,m:p,um:h,n:f,o:{parentNode:m,remove:g}}=c;let v;const y=function(e){const t=e.props&&e.props.suspensible;return null!=t&&!1!==t}(e);y&&t&&t.pendingBranch&&(v=t.pendingId,t.deps++);const b=e.props?W(e.props.timeout):void 0;const k=o,w={vnode:e,parent:t,parentComponent:n,namespace:a,container:i,hiddenContainer:r,deps:0,pendingId:ma++,timeout:"number"==typeof b?b:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:i,activeBranch:r,pendingBranch:a,pendingId:s,effects:l,parentComponent:c,container:u,isInFallback:d}=w;let g=!1;if(w.isHydrating)w.isHydrating=!1;else if(!e){g=r&&a.transition&&"out-in"===a.transition.mode;let e=!1;g&&(r.transition.afterLeave=()=>{s===w.pendingId&&(p(a,u,o!==k||e?o:f(r),0),Ln(l),d&&i.ssFallback&&(i.ssFallback.el=null))}),r&&!w.isFallbackMountPending&&(m(r.el)===u&&(o=f(r),e=!0),h(r,c,w,!0),!g&&d&&i.ssFallback&&ia(()=>i.ssFallback.el=null,w)),g||p(a,u,o,0)}w.isFallbackMountPending=!1,_a(w,a),w.pendingBranch=null,w.isInFallback=!1;let b=w.parent,_=!1;for(;b;){if(b.pendingBranch){b.effects.push(...l),_=!0;break}b=b.parent}_||g||Ln(l),w.effects=[],y&&t&&t.pendingBranch&&v===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),ya(i,"onResolve")},fallback(e){if(!w.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:i,container:r,namespace:o}=w;ya(t,"onFallback");const a=f(n),c=()=>{w.isFallbackMountPending=!1,w.isInFallback&&(d(null,e,r,a,i,null,o,s,l),_a(w,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(w.isFallbackMountPending=!0,n.transition.afterLeave=c),w.isInFallback=!0,h(n,i,null,!0),u||c()},move(e,t,n){w.activeBranch&&p(w.activeBranch,e,t,n),w.container=e},next(){return w.activeBranch&&f(w.activeBranch)},registerDep(e,t,n){const i=!!w.pendingBranch;i&&w.deps++;const r=e.vnode.el;e.asyncDep.catch(t=>{Sn(t,e,0)}).then(o=>{if(e.isUnmounted||w.isUnmounted||w.pendingId!==e.suspenseId)return;cs(),e.asyncResolved=!0;const{vnode:s}=e;ms(e,o,!1),r&&(s.el=r);const l=!r&&e.subTree.el;t(e,s,m(r||e.subTree.el),r?null:f(e.subTree),w,a,n),l&&(s.placeholder=null,g(l)),Ro(e,s.el),i&&0===--w.deps&&w.resolve()})},unmount(e,t){w.isUnmounted=!0,w.activeBranch&&h(w.activeBranch,n,e,t),w.pendingBranch&&h(w.pendingBranch,n,e,t)}};return w}function ka(e){let t;if(C(e)){const n=Pa&&e._c;n&&(e._d=!1,Ta()),e=e(),n&&(e._d=!0,t=Da,Ia())}if(y(e)){const t=Mo(e);0,e=t}return e=Ya(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function wa(e,t){t&&t.pendingBranch?y(e)?t.effects.push(...e):t.effects.push(e):Ln(e)}function _a(e,t){e.activeBranch=t;const{vnode:n,parentComponent:i}=e;let r=t.el;for(;!r&&t.component;)r=(t=t.component.subTree).el;n.el=r,i&&i.subTree===n&&(i.vnode.el=r,Ro(i,r))}const Ca=Symbol.for("v-fgt"),xa=Symbol.for("v-txt"),Sa=Symbol.for("v-cmt"),Ea=Symbol.for("v-stc"),Aa=[];let Da=null;function Ta(e=!1){Aa.push(Da=e?null:[])}function Ia(){Aa.pop(),Da=Aa[Aa.length-1]||null}let Oa,Pa=1;function Fa(e,t=!1){Pa+=e,e<0&&Da&&t&&(Da.hasOnce=!0)}function $a(e){return e.dynamicChildren=Pa>0?Da||c:null,Ia(),Pa>0&&Da&&Da.push(e),e}function Ma(e,t,n,i,r,o){return $a(qa(e,t,n,i,r,o,!0))}function La(e,t,n,i,r){return $a(Ha(e,t,n,i,r,!0))}function Na(e){return!!e&&!0===e.__v_isVNode}function ja(e,t){return e.type===t.type&&e.key===t.key}function Ba(e){Oa=e}const Ra=({key:e})=>null!=e?e:null,Va=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?x(e)||Wt(e)||C(e)?{i:Un,r:e,k:t,f:!!n}:e:null);function qa(e,t=null,n=null,i=0,r=null,o=(e===Ca?0:1),a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ra(t),ref:t&&Va(t),scopeId:Wn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:i,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Un};return s?(Xa(l,n),128&o&&e.normalize(l)):n&&(l.shapeFlag|=x(n)?8:16),Pa>0&&!a&&Da&&(l.patchFlag>0||6&o)&&32!==l.patchFlag&&Da.push(l),l}const Ha=za;function za(e,t=null,n=null,i=0,r=null,o=!1){if(e&&e!==Mr||(e=Sa),Na(e)){const i=Wa(e,t,!0);return n&&Xa(i,n),Pa>0&&!o&&Da&&(6&i.shapeFlag?Da[Da.indexOf(e)]=i:Da.push(i)),i.patchFlag=-2,i}if(Cs(e)&&(e=e.__vccOpts),t){t=Ua(t);let{class:e,style:n}=t;e&&!x(e)&&(t.class=te(e)),E(n)&&(Vt(n)&&!y(n)&&(n=f({},n)),t.style=Y(n))}return qa(e,t,n,i,r,x(e)?1:fa(e)?128:fi(e)?64:E(e)?4:C(e)?2:0,o,!0)}function Ua(e){return e?Vt(e)||Ho(e)?f({},e):e:null}function Wa(e,t,n=!1,i=!1){const{props:r,ref:o,patchFlag:a,children:s,transition:l}=e,c=t?Za(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Ra(c),ref:t&&t.ref?n&&o?y(o)?o.concat(Va(t)):[o,Va(t)]:Va(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ca?-1===a?16:16|a:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Wa(e.ssContent),ssFallback:e.ssFallback&&Wa(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&i&&Ni(u,l.clone(u)),u}function Ga(e=" ",t=0){return Ha(xa,null,e,t)}function Ka(e,t){const n=Ha(Ea,null,e);return n.staticCount=t,n}function Qa(e="",t=!1){return t?(Ta(),La(Sa,null,e)):Ha(Sa,null,e)}function Ya(e){return null==e||"boolean"==typeof e?Ha(Sa):y(e)?Ha(Ca,null,e.slice()):Na(e)?Ja(e):Ha(xa,null,String(e))}function Ja(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:Wa(e)}function Xa(e,t){let n=0;const{shapeFlag:i}=e;if(null==t)t=null;else if(y(t))n=16;else if("object"==typeof t){if(65&i){const n=t.default;return void(n&&(n._c&&(n._d=!1),Xa(e,n()),n._c&&(n._d=!0)))}{n=32;const i=t._;i||Ho(t)?3===i&&Un&&(1===Un.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Un}}else C(t)?(t={default:t,_ctx:Un},n=32):(t=String(t),64&i?(n=16,t=[Ga(t)]):n=8);e.children=t,e.shapeFlag|=n}function Za(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const e in i)if("class"===e)t.class!==i.class&&(t.class=te([t.class,i.class]));else if("style"===e)t.style=Y([t.style,i.style]);else if(p(e)){const n=t[e],r=i[e];!r||n===r||y(n)&&n.includes(r)?null!=r||null!=n||h(e)||(t[e]=r):t[e]=n?[].concat(n,r):r}else""!==e&&(t[e]=i[e])}return t}function es(e,t,n,i=null){xn(e,t,7,[n,i])}const ts=xo();let ns=0;function is(e,t,n){const i=e.type,r=(t?t.appContext:e.appContext)||ts,o={uid:ns++,vnode:e,type:i,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new be(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Go(i,r),emitsOptions:Po(i,r),emit:null,emitted:null,propsDefaults:l,inheritAttrs:i.inheritAttrs,ctx:l,data:l,props:l,attrs:l,slots:l,refs:l,setupState:l,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Io.bind(null,o),e.ce&&e.ce(o),o}let rs=null;const os=()=>rs||Un;let as,ss;{const e=K(),t=(t,n)=>{let i;return(i=e[t])||(i=e[t]=[]),i.push(n),e=>{i.length>1?i.forEach(t=>t(e)):i[0](e)}};as=t("__VUE_INSTANCE_SETTERS__",e=>rs=e),ss=t("__VUE_SSR_SETTERS__",e=>hs=e)}const ls=e=>{const t=rs;return as(e),e.scope.on(),()=>{e.scope.off(),as(t)}},cs=()=>{rs&&rs.scope.off(),as(null)};function us(e){return 4&e.vnode.shapeFlag}let ds,ps,hs=!1;function fs(e,t=!1,n=!1){t&&ss(t);const{props:i,children:r}=e.vnode,o=us(e);!function(e,t,n,i=!1){const r={},o=qo();e.propsDefaults=Object.create(null),zo(e,t,r,o);for(const t in e.propsOptions[0])t in r||(r[t]=void 0);n?e.props=i?r:$t(r):e.type.props?e.props=r:e.props=o,e.attrs=o}(e,i,o,t),ta(e,r,n||t);const a=o?function(e,t){const n=e.type;0;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Kr),!1;const{setup:i}=n;if(i){Ve();const n=e.setupContext=i.length>1?ks(e):null,r=ls(e),o=Cn(i,e,0,[e.props,n]),a=A(o);if(qe(),r(),!a&&!e.sp||sr(e)||Vi(e),a){if(o.then(cs,cs),t)return o.then(n=>{ms(e,n,t)}).catch(t=>{Sn(t,e,0)});e.asyncDep=o}else ms(e,o,t)}else ys(e,t)}(e,t):void 0;return t&&ss(!1),a}function ms(e,t,n){C(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:E(t)&&(e.setupState=tn(t)),ys(e,n)}function gs(e){ds=e,ps=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Qr))}}const vs=()=>!ds;function ys(e,t,n){const i=e.type;if(!e.render){if(!t&&ds&&!i.render){const t=i.template||go(e).template;if(t){0;const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:o,compilerOptions:a}=i,s=f(f({isCustomElement:n,delimiters:o},r),a);i.render=ds(t,s)}}e.render=i.render||u,ps&&ps(e)}{const t=ls(e);Ve();try{ho(e)}finally{qe(),t()}}}const bs={get(e,t){return Xe(e,0,""),e[t]}};function ks(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,bs),slots:e.slots,emit:e.emit,expose:t}}function ws(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(tn(Ht(e.exposed)),{get(t,n){return n in t?t[n]:n in Wr?Wr[n](e):void 0},has(e,t){return t in e||t in Wr}})):e.proxy}function _s(e,t=!0){return C(e)?e.displayName||e.name:e.name||t&&e.__name}function Cs(e){return C(e)&&"__vccOpts"in e}const xs=(e,t)=>{const n=function(e,t,n=!1){let i,r;return C(e)?i=e:(i=e.get,r=e.set),new un(i,r,n)}(e,0,hs);return n};function Ss(e,t,n){try{Fa(-1);const i=arguments.length;return 2===i?E(t)&&!y(t)?Na(t)?Ha(e,null,[t]):Ha(e,t):Ha(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):3===i&&Na(n)&&(n=[n]),Ha(e,t,n))}finally{Fa(1)}}function Es(){return void 0}function As(e,t,n,i){const r=n[i];if(r&&Ds(r,e))return r;const o=t();return o.memo=e.slice(),o.cacheIndex=i,n[i]=o}function Ds(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e<n.length;e++)if(q(n[e],t[e]))return!1;return Pa>0&&Da&&Da.push(e),!0}const Ts="3.5.34",Is=u,Os=_n,Ps=qn,Fs=function e(t,n){var i,r;if(qn=t,qn)qn.enabled=!0,Hn.forEach(({event:e,args:t})=>qn.emit(e,...t)),Hn=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null==(r=null==(i=window.navigator)?void 0:i.userAgent)?void 0:r.includes("jsdom"))){(n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(t=>{e(t,n)}),setTimeout(()=>{qn||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,zn=!0,Hn=[])},3e3)}else zn=!0,Hn=[]},$s={createComponentInstance:is,setupComponent:fs,renderComponentRoot:$o,setCurrentRenderingInstance:Gn,isVNode:Na,normalizeVNode:Ya,getComponentPublicInstance:ws,ensureValidVNode:Hr,pushWarningContext:function(e){bn.push(e)},popWarningContext:function(){bn.pop()}},Ms=null,Ls=null,Ns=null; /** * @vue/runtime-dom v3.5.34 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ let js;const Bs="undefined"!=typeof window&&window.trustedTypes;if(Bs)try{js=Bs.createPolicy("vue",{createHTML:e=>e})}catch(e){}const Rs=js?e=>js.createHTML(e):e=>e,Vs="undefined"!=typeof document?document:null,qs=Vs&&Vs.createElement("template"),Hs={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const r="svg"===t?Vs.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?Vs.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?Vs.createElement(e,{is:n}):Vs.createElement(e);return"select"===e&&i&&null!=i.multiple&&r.setAttribute("multiple",i.multiple),r},createText:e=>Vs.createTextNode(e),createComment:e=>Vs.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Vs.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,r,o){const a=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==o&&(r=r.nextSibling););else{qs.innerHTML=Rs("svg"===i?`<svg>${e}</svg>`:"mathml"===i?`<math>${e}</math>`:e);const r=qs.content;if("svg"===i||"mathml"===i){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},zs="transition",Us="animation",Ws=Symbol("_vtc"),Gs={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ks=f({},Di,Gs),Qs=e=>(e.displayName="Transition",e.props=Ks,e),Ys=Qs((e,{slots:t})=>Ss(Pi,Zs(e),t)),Js=(e,t=[])=>{y(e)?e.forEach(e=>e(...t)):e&&e(...t)},Xs=e=>!!e&&(y(e)?e.some(e=>e.length>1):e.length>1);function Zs(e){const t={};for(const n in e)n in Gs||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:i,duration:r,enterFromClass:o=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:c=a,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,m=function(e){if(null==e)return null;if(E(e))return[el(e.enter),el(e.leave)];{const t=el(e);return[t,t]}}(r),g=m&&m[0],v=m&&m[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:k,onLeave:w,onLeaveCancelled:_,onBeforeAppear:C=y,onAppear:x=b,onAppearCancelled:S=k}=t,A=(e,t,n,i)=>{e._enterCancelled=i,nl(e,t?u:s),nl(e,t?c:a),n&&n()},D=(e,t)=>{e._isLeaving=!1,nl(e,d),nl(e,h),nl(e,p),t&&t()},T=e=>(t,n)=>{const r=e?x:b,a=()=>A(t,e,n);Js(r,[t,a]),il(()=>{nl(t,e?l:o),tl(t,e?u:s),Xs(r)||ol(t,i,g,a)})};return f(t,{onBeforeEnter(e){Js(y,[e]),tl(e,o),tl(e,a)},onBeforeAppear(e){Js(C,[e]),tl(e,l),tl(e,c)},onEnter:T(!1),onAppear:T(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>D(e,t);tl(e,d),e._enterCancelled?(tl(e,p),cl(e)):(cl(e),tl(e,p)),il(()=>{e._isLeaving&&(nl(e,d),tl(e,h),Xs(w)||ol(e,i,v,n))}),Js(w,[e,n])},onEnterCancelled(e){A(e,!1,void 0,!0),Js(k,[e])},onAppearCancelled(e){A(e,!0,void 0,!0),Js(S,[e])},onLeaveCancelled(e){D(e),Js(_,[e])}})}function el(e){return W(e)}function tl(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[Ws]||(e[Ws]=new Set)).add(t)}function nl(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));const n=e[Ws];n&&(n.delete(t),n.size||(e[Ws]=void 0))}function il(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let rl=0;function ol(e,t,n,i){const r=e._endId=++rl,o=()=>{r===e._endId&&i()};if(null!=n)return setTimeout(o,n);const{type:a,timeout:s,propCount:l}=al(e,t);if(!a)return i();const c=a+"end";let u=0;const d=()=>{e.removeEventListener(c,p),o()},p=t=>{t.target===e&&++u>=l&&d()};setTimeout(()=>{u<l&&d()},s+1),e.addEventListener(c,p)}function al(e,t){const n=window.getComputedStyle(e),i=e=>(n[e]||"").split(", "),r=i(`${zs}Delay`),o=i(`${zs}Duration`),a=sl(r,o),s=i(`${Us}Delay`),l=i(`${Us}Duration`),c=sl(s,l);let u=null,d=0,p=0;t===zs?a>0&&(u=zs,d=a,p=o.length):t===Us?c>0&&(u=Us,d=c,p=l.length):(d=Math.max(a,c),u=d>0?a>c?zs:Us:null,p=u?u===zs?o.length:l.length:0);return{type:u,timeout:d,propCount:p,hasTransform:u===zs&&/\b(?:transform|all)(?:,|$)/.test(i(`${zs}Property`).toString())}}function sl(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>ll(t)+ll(e[n])))}function ll(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function cl(e){return(e?e.ownerDocument:document).body.offsetHeight}const ul=Symbol("_vod"),dl=Symbol("_vsh"),pl={name:"show",beforeMount(e,{value:t},{transition:n}){e[ul]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):hl(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:i}){!t!=!n&&(i?t?(i.beforeEnter(e),hl(e,!0),i.enter(e)):i.leave(e,()=>{hl(e,!1)}):hl(e,t))},beforeUnmount(e,{value:t}){hl(e,t)}};function hl(e,t){e.style.display=t?e[ul]:"none",e[dl]=!t}const fl=Symbol("");function ml(e){const t=os();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>vl(e,n))};const i=()=>{const i=e(t.proxy);t.ce?vl(t.ce,i):gl(t.subTree,i),n(i)};xr(()=>{Ln(i)}),Cr(()=>{li(i,u,{flush:"post"});const e=new MutationObserver(i);e.observe(t.subTree.el.parentNode,{childList:!0}),Ar(()=>e.disconnect())})}function gl(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{gl(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)vl(e.el,t);else if(e.type===Ca)e.children.forEach(e=>gl(e,t));else if(e.type===Ea){let{el:n,anchor:i}=e;for(;n&&(vl(n,t),n!==i);)n=n.nextSibling}}function vl(e,t){if(1===e.nodeType){const n=e.style;let i="";for(const e in t){const r=ge(t[e]);n.setProperty(`--${e}`,r),i+=`--${e}: ${r};`}n[fl]=i}}const yl=/(?:^|;)\s*display\s*:/;const bl=/\s*!important$/;function kl(e,t,n){if(y(n))n.forEach(n=>kl(e,t,n));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=function(e,t){const n=_l[t];if(n)return n;let i=N(t);if("filter"!==i&&i in e)return _l[t]=i;i=R(i);for(let n=0;n<wl.length;n++){const r=wl[n]+i;if(r in e)return _l[t]=r}return t}(e,t);bl.test(n)?e.setProperty(B(i),n.replace(bl,""),"important"):e[i]=n}}const wl=["Webkit","Moz","ms"],_l={};function Cl(e,t,n,i){return"TEXTAREA"===e.tagName&&("width"===t||"height"===t)&&x(i)&&n===i}const xl="http://www.w3.org/1999/xlink";function Sl(e,t,n,i,r,o=le(t)){i&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(xl,t.slice(6,t.length)):e.setAttributeNS(xl,t,n):null==n||o&&!ce(n)?e.removeAttribute(t):e.setAttribute(t,o?"":S(n)?String(n):n)}function El(e,t,n,i,r){if("innerHTML"===t||"textContent"===t)return void(null!=n&&(e[t]="innerHTML"===t?Rs(n):n));const o=e.tagName;if("value"===t&&"PROGRESS"!==o&&!o.includes("-")){const i="OPTION"===o?e.getAttribute("value")||"":e.value,r=null==n?"checkbox"===e.type?"on":"":String(n);return i===r&&"_value"in e||(e.value=r),null==n&&e.removeAttribute(t),void(e._value=n)}let a=!1;if(""===n||null==n){const i=typeof e[t];"boolean"===i?n=ce(n):null==n&&"string"===i?(n="",a=!0):"number"===i&&(n=0,a=!0)}try{e[t]=n}catch(e){0}a&&e.removeAttribute(r||t)}function Al(e,t,n,i){e.addEventListener(t,n,i)}const Dl=Symbol("_vei");function Tl(e,t,n,i,r=null){const o=e[Dl]||(e[Dl]={}),a=o[t];if(i&&a)a.value=i;else{const[n,s]=function(e){let t;if(Il.test(e)){let n;for(t={};n=e.match(Il);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):B(e.slice(2));return[n,t]}(t);if(i){const a=o[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();xn(function(e,t){if(y(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Fl(),n}(i,r);Al(e,n,a,s)}else a&&(!function(e,t,n,i){e.removeEventListener(t,n,i)}(e,n,a,s),o[t]=void 0)}}const Il=/(?:Once|Passive|Capture)$/;let Ol=0;const Pl=Promise.resolve(),Fl=()=>Ol||(Pl.then(()=>Ol=0),Ol=Date.now());const $l=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ml=(e,t,n,i,r,o)=>{const a="svg"===r;"class"===t?function(e,t,n){const i=e[Ws];i&&(t=(t?[t,...i]:[...i]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,i,a):"style"===t?function(e,t,n){const i=e.style,r=x(n);let o=!1;if(n&&!r){if(t)if(x(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&kl(i,t,"")}else for(const e in t)null==n[e]&&kl(i,e,"");for(const r in n){"display"===r&&(o=!0);const a=n[r];null!=a?Cl(e,r,!x(t)&&t?t[r]:void 0,a)||kl(i,r,a):kl(i,r,"")}}else if(r){if(t!==n){const e=i[fl];e&&(n+=";"+e),i.cssText=n,o=yl.test(n)}}else t&&e.removeAttribute("style");ul in e&&(e[ul]=o?i.display:"",e[dl]&&(i.display="none"))}(e,n,i):p(t)?h(t)||Tl(e,t,0,i,o):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,i){if(i)return"innerHTML"===t||"textContent"===t||!!(t in e&&$l(t)&&C(n));if("spellcheck"===t||"draggable"===t||"translate"===t||"autocorrect"===t)return!1;if("sandbox"===t&&"IFRAME"===e.tagName)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}if($l(t)&&x(n))return!1;return t in e}(e,t,i,a))?(El(e,t,i),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||Sl(e,t,i,a,0,"value"!==t)):e._isVueCE&&(function(e,t){const n=e._def.props;if(!n)return!1;const i=N(t);return Array.isArray(n)?n.some(e=>N(e)===i):Object.keys(n).some(e=>N(e)===i)}(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!x(i)))?El(e,N(t),i,0,t):("true-value"===t?e._trueValue=i:"false-value"===t&&(e._falseValue=i),Sl(e,t,i,a))};const Ll={};function Nl(e,t,n){let i=Bi(e,t);O(i)&&(i=f({},i,t));class r extends Rl{constructor(e){super(i,e,n)}}return r.def=i,r}const jl=(e,t)=>Nl(e,t,Ic),Bl="undefined"!=typeof HTMLElement?HTMLElement:class{};class Rl extends Bl{constructor(e,t={},n=Tc){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==Tc?this._root=this.shadowRoot:!1!==e.shadowRoot?(this.attachShadow(f({},e.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._resolved||this._parseSlots(),this._connected=!0;let e=this;for(;e=e&&(e.assignedSlot||e.parentNode||e.host);)if(e instanceof Rl){this._parent=e;break}this._instance||(this._resolved?this._mount(this._def):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,Fn(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(e){for(const t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:n,styles:i}=e;let r;if(n&&!y(n))for(const e in n){const t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=W(this._props[e])),(r||(r=Object.create(null)))[N(e)]=!0)}this._numberProps=r,this._resolveProps(e),this.shadowRoot&&this._applyStyles(i),this._mount(e)},t=this._def.__asyncLoader;t?this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const t=this._instance&&this._instance.exposed;if(t)for(const e in t)v(this,e)||Object.defineProperty(this,e,{get:()=>Xt(t[e])})}_resolveProps(e){const{props:t}=e,n=y(t)?t:Object.keys(t||{});for(const e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e]);for(const e of n.map(N))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!this._patching)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const t=this.hasAttribute(e);let n=t?this.getAttribute(e):Ll;const i=N(e);t&&this._numberProps&&this._numberProps[i]&&(n=W(n)),this._setProp(i,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,i=!1){if(t!==this._props[e]&&(this._dirty=!0,t===Ll?delete this._props[e]:(this._props[e]=t,"key"===e&&this._app&&(this._app._ceVNode.key=t)),i&&this._instance&&this._update(),n)){const n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),!0===t?this.setAttribute(B(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(B(e),t+""):t||this.removeAttribute(B(e)),n&&n.observe(this,{attributes:!0})}}_update(){const e=this._createVNode();this._app&&(e.appContext=this._app._context),Ac(e,this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const t=Ha(this._def,f(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,O(t[0])?f({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),B(e)!==e&&t(B(e),n)},this._setParent()}),t}_applyStyles(e,t,n){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}const i=this._nonce,r=this.shadowRoot,o=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(r);let a=null;for(let s=e.length-1;s>=0;s--){const l=document.createElement("style");i&&l.setAttribute("nonce",i),l.textContent=e[s],r.insertBefore(l,a||o),a=l,0===s&&(n||this._styleAnchors.set(this._def,l),t&&this._styleAnchors.set(t,l))}}_getStyleAnchor(e){if(!e)return null;const t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t<e.childNodes.length;t++){const n=e.childNodes[t];if(!(n instanceof HTMLStyleElement))return n}return null}_parseSlots(){const e=this._slots={};let t;for(;t=this.firstChild;){const n=1===t.nodeType&&t.getAttribute("slot")||"default";(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){const e=this._getSlots(),t=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){const i=e[n],r=i.getAttribute("name")||"default",o=this._slots[r],a=i.parentNode;if(o)for(const e of o){if(t&&1===e.nodeType){const n=t+"-s",i=document.createTreeWalker(e,1);let r;for(e.setAttribute(n,"");r=i.nextNode();)r.setAttribute(n,"")}a.insertBefore(e,i)}else for(;i.firstChild;)a.insertBefore(i.firstChild,i);a.removeChild(i)}}_getSlots(){const e=[this];this._teleportTargets&&e.push(...this._teleportTargets);const t=new Set;for(const n of e){const e=n.querySelectorAll("slot");for(let n=0;n<e.length;n++)t.add(e[n])}return Array.from(t)}_injectChildStyle(e,t){this._applyStyles(e.styles,e,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return!1!==this._def.shadowRoot}_removeChildStyle(e){0}}function Vl(e){const t=os(),n=t&&t.ce;return n||null}function ql(){const e=Vl();return e&&e.shadowRoot}function Hl(e="$style"){{const t=os();if(!t)return l;const n=t.type.__cssModules;if(!n)return l;const i=n[e];return i||l}}const zl=new WeakMap,Ul=new WeakMap,Wl=Symbol("_moveCb"),Gl=Symbol("_enterCb"),Kl=e=>(delete e.props.mode,e),Ql=Kl({name:"TransitionGroup",props:f({},Ks,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=os(),i=Ei();let r,o;return Sr(()=>{if(!r.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const i=e.cloneNode(),r=e[Ws];r&&r.forEach(e=>{e.split(/\s+/).forEach(e=>e&&i.classList.remove(e))});n.split(/\s+/).forEach(e=>e&&i.classList.add(e)),i.style.display="none";const o=1===t.nodeType?t:t.parentNode;o.appendChild(i);const{hasTransform:a}=al(i);return o.removeChild(i),a}(r[0].el,n.vnode.el,t))return void(r=[]);r.forEach(Jl),r.forEach(Xl);const i=r.filter(Zl);cl(n.vnode.el),i.forEach(e=>{const n=e.el,i=n.style;tl(n,t),i.transform=i.webkitTransform=i.transitionDuration="";const r=n[Wl]=e=>{e&&e.target!==n||e&&!e.propertyName.endsWith("transform")||(n.removeEventListener("transitionend",r),n[Wl]=null,nl(n,t))};n.addEventListener("transitionend",r)}),r=[]}),()=>{const a=qt(e),s=Zs(a);let l=a.tag||Ca;if(r=[],o)for(let e=0;e<o.length;e++){const t=o[e];t.el&&t.el instanceof Element&&(r.push(t),Ni(t,$i(t,s,i,n)),zl.set(t,ec(t.el)))}o=t.default?ji(t.default()):[];for(let e=0;e<o.length;e++){const t=o[e];null!=t.key&&Ni(t,$i(t,s,i,n))}return Ha(l,null,o)}}}),Yl=Ql;function Jl(e){const t=e.el;t[Wl]&&t[Wl](),t[Gl]&&t[Gl]()}function Xl(e){Ul.set(e,ec(e.el))}function Zl(e){const t=zl.get(e),n=Ul.get(e),i=t.left-n.left,r=t.top-n.top;if(i||r){const t=e.el,n=t.style,o=t.getBoundingClientRect();let a=1,s=1;return t.offsetWidth&&(a=o.width/t.offsetWidth),t.offsetHeight&&(s=o.height/t.offsetHeight),Number.isFinite(a)&&0!==a||(a=1),Number.isFinite(s)&&0!==s||(s=1),Math.abs(a-1)<.01&&(a=1),Math.abs(s-1)<.01&&(s=1),n.transform=n.webkitTransform=`translate(${i/a}px,${r/s}px)`,n.transitionDuration="0s",e}}function ec(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}const tc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return y(t)?e=>H(t,e):t};function nc(e){e.target.composing=!0}function ic(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const rc=Symbol("_assign");function oc(e,t,n){return t&&(e=e.trim()),n&&(e=U(e)),e}const ac={created(e,{modifiers:{lazy:t,trim:n,number:i}},r){e[rc]=tc(r);const o=i||r.props&&"number"===r.props.type;Al(e,t?"change":"input",t=>{t.target.composing||e[rc](oc(e.value,n,o))}),(n||o)&&Al(e,"change",()=>{e.value=oc(e.value,n,o)}),t||(Al(e,"compositionstart",nc),Al(e,"compositionend",ic),Al(e,"change",ic))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:i,trim:r,number:o}},a){if(e[rc]=tc(a),e.composing)return;const s=null==t?"":t;if((!o&&"number"!==e.type||/^0\d/.test(e.value)?e.value:U(e.value))===s)return;const l=e.getRootNode();if((l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&"range"!==e.type){if(i&&t===n)return;if(r&&e.value.trim()===s)return}e.value=s}},sc={deep:!0,created(e,t,n){e[rc]=tc(n),Al(e,"change",()=>{const t=e._modelValue,n=pc(e),i=e.checked,r=e[rc];if(y(t)){const e=de(t,n),o=-1!==e;if(i&&!o)r(t.concat(n));else if(!i&&o){const n=[...t];n.splice(e,1),r(n)}}else if(k(t)){const e=new Set(t);i?e.add(n):e.delete(n),r(e)}else r(hc(e,i))})},mounted:lc,beforeUpdate(e,t,n){e[rc]=tc(n),lc(e,t,n)}};function lc(e,{value:t,oldValue:n},i){let r;if(e._modelValue=t,y(t))r=de(t,i.props.value)>-1;else if(k(t))r=t.has(i.props.value);else{if(t===n)return;r=ue(t,hc(e,!0))}e.checked!==r&&(e.checked=r)}const cc={created(e,{value:t},n){e.checked=ue(t,n.props.value),e[rc]=tc(n),Al(e,"change",()=>{e[rc](pc(e))})},beforeUpdate(e,{value:t,oldValue:n},i){e[rc]=tc(i),t!==n&&(e.checked=ue(t,i.props.value))}},uc={deep:!0,created(e,{value:t,modifiers:{number:n}},i){const r=k(t);Al(e,"change",()=>{const t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?U(pc(e)):pc(e));e[rc](e.multiple?r?new Set(t):t:t[0]),e._assigning=!0,Fn(()=>{e._assigning=!1})}),e[rc]=tc(i)},mounted(e,{value:t}){dc(e,t)},beforeUpdate(e,t,n){e[rc]=tc(n)},updated(e,{value:t}){e._assigning||dc(e,t)}};function dc(e,t){const n=e.multiple,i=y(t);if(!n||i||k(t)){for(let r=0,o=e.options.length;r<o;r++){const o=e.options[r],a=pc(o);if(n)if(i){const e=typeof a;o.selected="string"===e||"number"===e?t.some(e=>String(e)===String(a)):de(t,a)>-1}else o.selected=t.has(a);else if(ue(pc(o),t))return void(e.selectedIndex!==r&&(e.selectedIndex=r))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function pc(e){return"_value"in e?e._value:e.value}function hc(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const fc={created(e,t,n){gc(e,t,n,null,"created")},mounted(e,t,n){gc(e,t,n,null,"mounted")},beforeUpdate(e,t,n,i){gc(e,t,n,i,"beforeUpdate")},updated(e,t,n,i){gc(e,t,n,i,"updated")}};function mc(e,t){switch(e){case"SELECT":return uc;case"TEXTAREA":return ac;default:switch(t){case"checkbox":return sc;case"radio":return cc;default:return ac}}}function gc(e,t,n,i,r){const o=mc(e.tagName,n.props&&n.props.type)[r];o&&o(e,t,n,i)}const vc=["ctrl","shift","alt","meta"],yc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>vc.some(n=>e[`${n}Key`]&&!t.includes(n))},bc=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),i=t.join(".");return n[i]||(n[i]=(n,...i)=>{for(let e=0;e<t.length;e++){const i=yc[t[e]];if(i&&i(n,t))return}return e(n,...i)})},kc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},wc=(e,t)=>{const n=e._withKeys||(e._withKeys={}),i=t.join(".");return n[i]||(n[i]=n=>{if(!("key"in n))return;const i=B(n.key);return t.some(e=>e===i||kc[e]===i)?e(n):void 0})},_c=f({patchProp:Ml},Hs);let Cc,xc=!1;function Sc(){return Cc||(Cc=ra(_c))}function Ec(){return Cc=xc?Cc:oa(_c),xc=!0,Cc}const Ac=(...e)=>{Sc().render(...e)},Dc=(...e)=>{Ec().hydrate(...e)},Tc=(...e)=>{const t=Sc().createApp(...e);const{mount:n}=t;return t.mount=e=>{const i=Pc(e);if(!i)return;const r=t._component;C(r)||r.render||r.template||(r.template=i.innerHTML),1===i.nodeType&&(i.textContent="");const o=n(i,!1,Oc(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t},Ic=(...e)=>{const t=Ec().createApp(...e);const{mount:n}=t;return t.mount=e=>{const t=Pc(e);if(t)return n(t,!0,Oc(t))},t};function Oc(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function Pc(e){if(x(e)){return document.querySelector(e)}return e}let Fc=!1;const $c=()=>{Fc||(Fc=!0,ac.getSSRProps=({value:e})=>({value:e}),cc.getSSRProps=({value:e},t)=>{if(t.props&&ue(t.props.value,e))return{checked:!0}},sc.getSSRProps=({value:e},t)=>{if(y(e)){if(t.props&&de(e,t.props.value)>-1)return{checked:!0}}else if(k(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},fc.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=mc(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},pl.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})},Mc=Symbol(""),Lc=Symbol(""),Nc=Symbol(""),jc=Symbol(""),Bc=Symbol(""),Rc=Symbol(""),Vc=Symbol(""),qc=Symbol(""),Hc=Symbol(""),zc=Symbol(""),Uc=Symbol(""),Wc=Symbol(""),Gc=Symbol(""),Kc=Symbol(""),Qc=Symbol(""),Yc=Symbol(""),Jc=Symbol(""),Xc=Symbol(""),Zc=Symbol(""),eu=Symbol(""),tu=Symbol(""),nu=Symbol(""),iu=Symbol(""),ru=Symbol(""),ou=Symbol(""),au=Symbol(""),su=Symbol(""),lu=Symbol(""),cu=Symbol(""),uu=Symbol(""),du=Symbol(""),pu=Symbol(""),hu=Symbol(""),fu=Symbol(""),mu=Symbol(""),gu=Symbol(""),vu=Symbol(""),yu=Symbol(""),bu=Symbol(""),ku={[Mc]:"Fragment",[Lc]:"Teleport",[Nc]:"Suspense",[jc]:"KeepAlive",[Bc]:"BaseTransition",[Rc]:"openBlock",[Vc]:"createBlock",[qc]:"createElementBlock",[Hc]:"createVNode",[zc]:"createElementVNode",[Uc]:"createCommentVNode",[Wc]:"createTextVNode",[Gc]:"createStaticVNode",[Kc]:"resolveComponent",[Qc]:"resolveDynamicComponent",[Yc]:"resolveDirective",[Jc]:"resolveFilter",[Xc]:"withDirectives",[Zc]:"renderList",[eu]:"renderSlot",[tu]:"createSlots",[nu]:"toDisplayString",[iu]:"mergeProps",[ru]:"normalizeClass",[ou]:"normalizeStyle",[au]:"normalizeProps",[su]:"guardReactiveProps",[lu]:"toHandlers",[cu]:"camelize",[uu]:"capitalize",[du]:"toHandlerKey",[pu]:"setBlockTracking",[hu]:"pushScopeId",[fu]:"popScopeId",[mu]:"withCtx",[gu]:"unref",[vu]:"isRef",[yu]:"withMemo",[bu]:"isMemoSame"};const wu={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function _u(e,t,n,i,r,o,a,s=!1,l=!1,c=!1,u=wu){return e&&(s?(e.helper(Rc),e.helper(Pu(e.inSSR,c))):e.helper(Ou(e.inSSR,c)),a&&e.helper(Xc)),{type:13,tag:t,props:n,children:i,patchFlag:r,dynamicProps:o,directives:a,isBlock:s,disableTracking:l,isComponent:c,loc:u}}function Cu(e,t=wu){return{type:17,loc:t,elements:e}}function xu(e,t=wu){return{type:15,loc:t,properties:e}}function Su(e,t){return{type:16,loc:wu,key:x(e)?Eu(e,!0):e,value:t}}function Eu(e,t=!1,n=wu,i=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:i}}function Au(e,t=wu){return{type:8,loc:t,children:e}}function Du(e,t=[],n=wu){return{type:14,loc:n,callee:e,arguments:t}}function Tu(e,t=void 0,n=!1,i=!1,r=wu){return{type:18,params:e,returns:t,newline:n,isSlot:i,loc:r}}function Iu(e,t,n,i=!0){return{type:19,test:e,consequent:t,alternate:n,newline:i,loc:wu}}function Ou(e,t){return e||t?Hc:zc}function Pu(e,t){return e||t?Vc:qc}function Fu(e,{helper:t,removeHelper:n,inSSR:i}){e.isBlock||(e.isBlock=!0,n(Ou(i,e.isComponent)),t(Rc),t(Pu(i,e.isComponent)))}const $u=new Uint8Array([123,123]),Mu=new Uint8Array([125,125]);function Lu(e){return e>=97&&e<=122||e>=65&&e<=90}function Nu(e){return 32===e||10===e||9===e||12===e||13===e}function ju(e){return 47===e||62===e||Nu(e)}function Bu(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const Ru={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};function Vu(e,{compatConfig:t}){const n=t&&t[e];return"MODE"===e?n||3:n}function qu(e,t){const n=Vu("MODE",t),i=Vu(e,t);return 3===n?!0===i:!1!==i}function Hu(e,t,n,...i){return qu(e,t)}function zu(e){throw e}function Uu(e){}function Wu(e,t,n,i){const r=new SyntaxError(String(`https://vuejs.org/error-reference/#compiler-${e}`));return r.code=e,r.loc=t,r}const Gu=e=>4===e.type&&e.isStatic;function Ku(e){switch(e){case"Teleport":case"teleport":return Lc;case"Suspense":case"suspense":return Nc;case"KeepAlive":case"keep-alive":return jc;case"BaseTransition":case"base-transition":return Bc}}const Qu=/^$|^\d|[^\$\w\xA0-\uFFFF]/,Yu=e=>!Qu.test(e),Ju=/[A-Za-z_$\xA0-\uFFFF]/,Xu=/[\.\?\w$\xA0-\uFFFF]/,Zu=/\s+[.[]\s*|\s*[.[]\s+/g,ed=e=>4===e.type?e.content:e.loc.source,td=e=>{const t=ed(e).trim().replace(Zu,e=>e.trim());let n=0,i=[],r=0,o=0,a=null;for(let e=0;e<t.length;e++){const s=t.charAt(e);switch(n){case 0:if("["===s)i.push(n),n=1,r++;else if("("===s)i.push(n),n=2,o++;else if(!(0===e?Ju:Xu).test(s))return!1;break;case 1:"'"===s||'"'===s||"`"===s?(i.push(n),n=3,a=s):"["===s?r++:"]"===s&&(--r||(n=i.pop()));break;case 2:if("'"===s||'"'===s||"`"===s)i.push(n),n=3,a=s;else if("("===s)o++;else if(")"===s){if(e===t.length-1)return!1;--o||(n=i.pop())}break;case 3:s===a&&(n=i.pop(),a=null)}}return!r&&!o},nd=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,id=e=>nd.test(ed(e));function rd(e,t,n=!1){for(let i=0;i<e.props.length;i++){const r=e.props[i];if(7===r.type&&(n||r.exp)&&(x(t)?r.name===t:t.test(r.name)))return r}}function od(e,t,n=!1,i=!1){for(let r=0;r<e.props.length;r++){const o=e.props[r];if(6===o.type){if(n)continue;if(o.name===t&&(o.value||i))return o}else if("bind"===o.name&&(o.exp||i)&&ad(o.arg,t))return o}}function ad(e,t){return!(!e||!Gu(e)||e.content!==t)}function sd(e){return 5===e.type||2===e.type}function ld(e){return 7===e.type&&"pre"===e.name}function cd(e){return 7===e.type&&"slot"===e.name}function ud(e){return 1===e.type&&3===e.tagType}function dd(e){return 1===e.type&&2===e.tagType}const pd=new Set([au,su]);function hd(e,t=[]){if(e&&!x(e)&&14===e.type){const n=e.callee;if(!x(n)&&pd.has(n))return hd(e.arguments[0],t.concat(e))}return[e,t]}function fd(e,t,n){let i,r,o=13===e.type?e.props:e.arguments[2],a=[];if(o&&!x(o)&&14===o.type){const e=hd(o);o=e[0],a=e[1],r=a[a.length-1]}if(null==o||x(o))i=xu([t]);else if(14===o.type){const e=o.arguments[0];x(e)||15!==e.type?o.callee===lu?i=Du(n.helper(iu),[xu([t]),o]):o.arguments.unshift(xu([t])):md(t,e)||e.properties.unshift(t),!i&&(i=o)}else 15===o.type?(md(t,o)||o.properties.unshift(t),i=o):(i=Du(n.helper(iu),[xu([t]),o]),r&&r.callee===su&&(r=a[a.length-2]));13===e.type?r?r.arguments[0]=i:e.props=i:r?r.arguments[0]=i:e.arguments[2]=i}function md(e,t){let n=!1;if(4===e.key.type){const i=e.key.content;n=t.properties.some(e=>4===e.key.type&&e.key.content===i)}return n}function gd(e,t){return`_${t}_${e.replace(/[^\w]/g,(t,n)=>"-"===t?"_":e.charCodeAt(n).toString())}`}const vd=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;function yd(e){for(let t=0;t<e.length;t++)if(!Nu(e.charCodeAt(t)))return!1;return!0}function bd(e){return 2===e.type&&yd(e.content)||12===e.type&&bd(e.content)}function kd(e){return 3===e.type||bd(e)}const wd={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:d,isPreTag:d,isIgnoreNewlineTag:d,isCustomElement:d,onError:zu,onWarn:Uu,comments:!1,prefixIdentifiers:!1};let _d=wd,Cd=null,xd="",Sd=null,Ed=null,Ad="",Dd=-1,Td=-1,Id=0,Od=!1,Pd=null;const Fd=[],$d=new class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=$u,this.delimiterClose=Mu,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=$u,this.delimiterClose=Mu}getPos(e){let t=1,n=e+1;const i=this.newlines.length;let r=-1;if(i>100){let t=-1,n=i;for(;t+1<n;){const i=t+n>>>1;this.newlines[i]<e?t=i:n=i}r=t}else for(let t=i-1;t>=0;t--)if(e>this.newlines[t]){r=t;break}return r>=0&&(t=r+2,n=e-this.newlines[r]),{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){60===e?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?ju(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||Nu(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart<t){const e=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=e}return this.sectionStart=t+2,this.stateInClosingTagName(e),void(this.inRCDATA=!1)}this.sequenceIndex=0}(32|e)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===Ru.TitleEnd||this.currentSequence===Ru.TextareaEnd&&!this.inSFCRoot?this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=Number(60===e)}stateCDATASequence(e){e===Ru.Cdata[this.sequenceIndex]?++this.sequenceIndex===Ru.Cdata.length&&(this.state=28,this.currentSequence=Ru.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length;){const t=this.buffer.charCodeAt(this.index);if(10===t&&this.newlines.push(this.index),t===e)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Ru.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(e,t){this.enterRCDATA(e,t),this.state=31}enterRCDATA(e,t){this.inRCDATA=!0,this.currentSequence=e,this.sequenceIndex=t}stateBeforeTagName(e){33===e?(this.state=22,this.sectionStart=this.index+1):63===e?(this.state=24,this.sectionStart=this.index+1):Lu(e)?(this.sectionStart=this.index,0===this.mode?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:this.state=116===e?30:115===e?29:6):47===e?this.state=8:(this.state=1,this.stateText(e))}stateInTagName(e){ju(e)&&this.handleTagName(e)}stateInSFCRootTagName(e){if(ju(e)){const t=this.buffer.slice(this.sectionStart,this.index);"template"!==t&&this.enterRCDATA(Bu("</"+t),0),this.handleTagName(e)}}handleTagName(e){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)}stateBeforeClosingTagName(e){Nu(e)||(62===e?(this.state=1,this.sectionStart=this.index+1):(this.state=Lu(e)?9:27,this.sectionStart=this.index))}stateInClosingTagName(e){(62===e||Nu(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){62===e&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(e){62===e?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):47===e?this.state=7:60===e&&47===this.peek()?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):Nu(e)||this.handleAttrStart(e)}handleAttrStart(e){118===e&&45===this.peek()?(this.state=13,this.sectionStart=this.index):46===e||58===e||64===e||35===e?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(e){62===e?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):Nu(e)||(this.state=11,this.stateBeforeAttrName(e))}stateInAttrName(e){(61===e||ju(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(e))}stateInDirName(e){61===e||ju(e)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(e)):58===e?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):46===e&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(e){61===e||ju(e)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(e)):91===e?this.state=15:46===e&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(e){93===e?this.state=14:(61===e||ju(e))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(e))}stateInDirModifier(e){61===e||ju(e)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(e)):46===e&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(e){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(e)}stateAfterAttrName(e){61===e?this.state=18:47===e||62===e?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)):Nu(e)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(e))}stateBeforeAttrValue(e){34===e?(this.state=19,this.sectionStart=this.index+1):39===e?(this.state=20,this.sectionStart=this.index+1):Nu(e)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(e))}handleInAttrValue(e,t){(e===t||this.fastForwardTo(t))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(34===t?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(e){this.handleInAttrValue(e,34)}stateInAttrValueSingleQuotes(e){this.handleInAttrValue(e,39)}stateInAttrValueNoQuotes(e){Nu(e)||62===e?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(e)):39!==e&&60!==e&&61!==e&&96!==e||this.cbs.onerr(18,this.index)}stateBeforeDeclaration(e){91===e?(this.state=26,this.sequenceIndex=0):this.state=45===e?25:23}stateInDeclaration(e){(62===e||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(62===e||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(e){45===e?(this.state=28,this.currentSequence=Ru.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(e){(62===e||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){e===Ru.ScriptEnd[3]?this.startSpecial(Ru.ScriptEnd,4):e===Ru.StyleEnd[3]?this.startSpecial(Ru.StyleEnd,4):(this.state=6,this.stateInTagName(e))}stateBeforeSpecialT(e){e===Ru.TitleEnd[3]?this.startSpecial(Ru.TitleEnd,4):e===Ru.TextareaEnd[3]?this.startSpecial(Ru.TextareaEnd,4):(this.state=6,this.stateInTagName(e))}startEntity(){}stateInEntity(){}parse(e){for(this.buffer=e;this.index<this.buffer.length;){const e=this.buffer.charCodeAt(this.index);switch(10===e&&33!==this.state&&this.newlines.push(this.index),this.state){case 1:this.stateText(e);break;case 2:this.stateInterpolationOpen(e);break;case 3:this.stateInterpolation(e);break;case 4:this.stateInterpolationClose(e);break;case 31:this.stateSpecialStartSequence(e);break;case 32:this.stateInRCDATA(e);break;case 26:this.stateCDATASequence(e);break;case 19:this.stateInAttrValueDoubleQuotes(e);break;case 12:this.stateInAttrName(e);break;case 13:this.stateInDirName(e);break;case 14:this.stateInDirArg(e);break;case 15:this.stateInDynamicDirArg(e);break;case 16:this.stateInDirModifier(e);break;case 28:this.stateInCommentLike(e);break;case 27:this.stateInSpecialComment(e);break;case 11:this.stateBeforeAttrName(e);break;case 6:this.stateInTagName(e);break;case 34:this.stateInSFCRootTagName(e);break;case 9:this.stateInClosingTagName(e);break;case 5:this.stateBeforeTagName(e);break;case 17:this.stateAfterAttrName(e);break;case 20:this.stateInAttrValueSingleQuotes(e);break;case 18:this.stateBeforeAttrValue(e);break;case 8:this.stateBeforeClosingTagName(e);break;case 10:this.stateAfterClosingTagName(e);break;case 29:this.stateBeforeSpecialS(e);break;case 30:this.stateBeforeSpecialT(e);break;case 21:this.stateInAttrValueNoQuotes(e);break;case 7:this.stateInSelfClosingTag(e);break;case 23:this.stateInDeclaration(e);break;case 22:this.stateBeforeDeclaration(e);break;case 25:this.stateBeforeComment(e);break;case 24:this.stateInProcessingInstruction(e);break;case 33:this.stateInEntity()}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(1===this.state||32===this.state&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):19!==this.state&&20!==this.state&&21!==this.state||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const e=this.buffer.length;this.sectionStart>=e||(28===this.state?this.currentSequence===Ru.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}}(Fd,{onerr:ep,ontext(e,t){Bd(Nd(e,t),e,t)},ontextentity(e,t,n){Bd(e,t,n)},oninterpolation(e,t){if(Od)return Bd(Nd(e,t),e,t);let n=e+$d.delimiterOpen.length,i=t-$d.delimiterClose.length;for(;Nu(xd.charCodeAt(n));)n++;for(;Nu(xd.charCodeAt(i-1));)i--;let r=Nd(n,i);r.includes("&")&&(r=_d.decodeEntities(r,!1)),Kd({type:5,content:Zd(r,!1,Qd(n,i)),loc:Qd(e,t)})},onopentagname(e,t){const n=Nd(e,t);Sd={type:1,tag:n,ns:_d.getNamespace(n,Fd[0],_d.ns),tagType:0,props:[],children:[],loc:Qd(e-1,t),codegenNode:void 0}},onopentagend(e){jd(e)},onclosetag(e,t){const n=Nd(e,t);if(!_d.isVoidTag(n)){let i=!1;for(let e=0;e<Fd.length;e++){if(Fd[e].tag.toLowerCase()===n.toLowerCase()){i=!0,e>0&&ep(24,Fd[0].loc.start.offset);for(let n=0;n<=e;n++){Rd(Fd.shift(),t,n<e)}break}}i||ep(23,Vd(e,60))}},onselfclosingtag(e){const t=Sd.tag;Sd.isSelfClosing=!0,jd(e),Fd[0]&&Fd[0].tag===t&&Rd(Fd.shift(),e)},onattribname(e,t){Ed={type:6,name:Nd(e,t),nameLoc:Qd(e,t),value:void 0,loc:Qd(e)}},ondirname(e,t){const n=Nd(e,t),i="."===n||":"===n?"bind":"@"===n?"on":"#"===n?"slot":n.slice(2);if(Od||""!==i||ep(26,e),Od||""===i)Ed={type:6,name:n,nameLoc:Qd(e,t),value:void 0,loc:Qd(e)};else if(Ed={type:7,name:i,rawName:n,exp:void 0,arg:void 0,modifiers:"."===n?[Eu("prop")]:[],loc:Qd(e)},"pre"===i){Od=$d.inVPre=!0,Pd=Sd;const e=Sd.props;for(let t=0;t<e.length;t++)7===e[t].type&&(e[t]=Xd(e[t]))}},ondirarg(e,t){if(e===t)return;const n=Nd(e,t);if(Od&&!ld(Ed))Ed.name+=n,Jd(Ed.nameLoc,t);else{const i="["!==n[0];Ed.arg=Zd(i?n:n.slice(1,-1),i,Qd(e,t),i?3:0)}},ondirmodifier(e,t){const n=Nd(e,t);if(Od&&!ld(Ed))Ed.name+="."+n,Jd(Ed.nameLoc,t);else if("slot"===Ed.name){const e=Ed.arg;e&&(e.content+="."+n,Jd(e.loc,t))}else{const i=Eu(n,!0,Qd(e,t));Ed.modifiers.push(i)}},onattribdata(e,t){Ad+=Nd(e,t),Dd<0&&(Dd=e),Td=t},onattribentity(e,t,n){Ad+=e,Dd<0&&(Dd=t),Td=n},onattribnameend(e){const t=Ed.loc.start.offset,n=Nd(t,e);7===Ed.type&&(Ed.rawName=n),Sd.props.some(e=>(7===e.type?e.rawName:e.name)===n)&&ep(2,t)},onattribend(e,t){if(Sd&&Ed){if(Jd(Ed.loc,t),0!==e)if(Ad.includes("&")&&(Ad=_d.decodeEntities(Ad,!0)),6===Ed.type)"class"===Ed.name&&(Ad=Gd(Ad).trim()),1!==e||Ad||ep(13,t),Ed.value={type:2,content:Ad,loc:1===e?Qd(Dd,Td):Qd(Dd-1,Td+1)},$d.inSFCRoot&&"template"===Sd.tag&&"lang"===Ed.name&&Ad&&"html"!==Ad&&$d.enterRCDATA(Bu("</template"),0);else{let e=0;Ed.exp=Zd(Ad,!1,Qd(Dd,Td),0,e),"for"===Ed.name&&(Ed.forParseResult=function(e){const t=e.loc,n=e.content,i=n.match(vd);if(!i)return;const[,r,o]=i,a=(e,n,i=!1)=>{const r=t.start.offset+n;return Zd(e,!1,Qd(r,r+e.length),0,i?1:0)},s={source:a(o.trim(),n.indexOf(o,r.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=r.trim().replace(Ld,"").trim();const c=r.indexOf(l),u=l.match(Md);if(u){l=l.replace(Md,"").trim();const e=u[1].trim();let t;if(e&&(t=n.indexOf(e,c+l.length),s.key=a(e,t,!0)),u[2]){const i=u[2].trim();i&&(s.index=a(i,n.indexOf(i,s.key?t+e.length:c+l.length),!0))}}l&&(s.value=a(l,c,!0));return s}(Ed.exp));let t=-1;"bind"===Ed.name&&(t=Ed.modifiers.findIndex(e=>"sync"===e.content))>-1&&Hu("COMPILER_V_BIND_SYNC",_d,Ed.loc,Ed.arg.loc.source)&&(Ed.name="model",Ed.modifiers.splice(t,1))}7===Ed.type&&"pre"===Ed.name||Sd.props.push(Ed)}Ad="",Dd=Td=-1},oncomment(e,t){_d.comments&&Kd({type:3,content:Nd(e,t),loc:Qd(e-4,t+3)})},onend(){const e=xd.length;for(let t=0;t<Fd.length;t++)Rd(Fd[t],e-1),ep(24,Fd[t].loc.start.offset)},oncdata(e,t){0!==Fd[0].ns?Bd(Nd(e,t),e,t):ep(1,e-9)},onprocessinginstruction(e){0===(Fd[0]?Fd[0].ns:_d.ns)&&ep(21,e-1)}}),Md=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ld=/^\(|\)$/g;function Nd(e,t){return xd.slice(e,t)}function jd(e){$d.inSFCRoot&&(Sd.innerLoc=Qd(e+1,e+1)),Kd(Sd);const{tag:t,ns:n}=Sd;0===n&&_d.isPreTag(t)&&Id++,_d.isVoidTag(t)?Rd(Sd,e):(Fd.unshift(Sd),1!==n&&2!==n||($d.inXML=!0)),Sd=null}function Bd(e,t,n){{const t=Fd[0]&&Fd[0].tag;"script"!==t&&"style"!==t&&e.includes("&")&&(e=_d.decodeEntities(e,!1))}const i=Fd[0]||Cd,r=i.children[i.children.length-1];r&&2===r.type?(r.content+=e,Jd(r.loc,n)):i.children.push({type:2,content:e,loc:Qd(t,n)})}function Rd(e,t,n=!1){Jd(e.loc,n?Vd(t,60):function(e,t){let n=e;for(;xd.charCodeAt(n)!==t&&n<xd.length-1;)n++;return n}(t,62)+1),$d.inSFCRoot&&(e.children.length?e.innerLoc.end=f({},e.children[e.children.length-1].loc.end):e.innerLoc.end=f({},e.innerLoc.start),e.innerLoc.source=Nd(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:i,ns:r,children:o}=e;if(Od||("slot"===i?e.tagType=2:Hd(e)?e.tagType=3:function({tag:e,props:t}){if(_d.isCustomElement(e))return!1;if("component"===e||(n=e.charCodeAt(0),n>64&&n<91)||Ku(e)||_d.isBuiltInComponent&&_d.isBuiltInComponent(e)||_d.isNativeTag&&!_d.isNativeTag(e))return!0;var n;for(let e=0;e<t.length;e++){const n=t[e];if(6===n.type){if("is"===n.name&&n.value){if(n.value.content.startsWith("vue:"))return!0;if(Hu("COMPILER_IS_ON_ELEMENT",_d,n.loc))return!0}}else if("bind"===n.name&&ad(n.arg,"is")&&Hu("COMPILER_IS_ON_ELEMENT",_d,n.loc))return!0}return!1}(e)&&(e.tagType=1)),$d.inRCDATA||(e.children=Ud(o)),0===r&&_d.isIgnoreNewlineTag(i)){const e=o[0];e&&2===e.type&&(e.content=e.content.replace(/^\r?\n/,""))}0===r&&_d.isPreTag(i)&&Id--,Pd===e&&(Od=$d.inVPre=!1,Pd=null),$d.inXML&&0===(Fd[0]?Fd[0].ns:_d.ns)&&($d.inXML=!1);{const t=e.props;if(!$d.inSFCRoot&&qu("COMPILER_NATIVE_TEMPLATE",_d)&&"template"===e.tag&&!Hd(e)){const t=Fd[0]||Cd,n=t.children.indexOf(e);t.children.splice(n,1,...e.children)}const n=t.find(e=>6===e.type&&"inline-template"===e.name);n&&Hu("COMPILER_INLINE_TEMPLATE",_d,n.loc)&&e.children.length&&(n.value={type:2,content:Nd(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function Vd(e,t){let n=e;for(;xd.charCodeAt(n)!==t&&n>=0;)n--;return n}const qd=new Set(["if","else","else-if","for","slot"]);function Hd({tag:e,props:t}){if("template"===e)for(let e=0;e<t.length;e++)if(7===t[e].type&&qd.has(t[e].name))return!0;return!1}const zd=/\r\n/g;function Ud(e){const t="preserve"!==_d.whitespace;let n=!1;for(let i=0;i<e.length;i++){const r=e[i];if(2===r.type)if(Id)r.content=r.content.replace(zd,"\n");else if(yd(r.content)){const o=e[i-1]&&e[i-1].type,a=e[i+1]&&e[i+1].type;!o||!a||t&&(3===o&&(3===a||1===a)||1===o&&(3===a||1===a&&Wd(r.content)))?(n=!0,e[i]=null):r.content=" "}else t&&(r.content=Gd(r.content))}return n?e.filter(Boolean):e}function Wd(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(10===n||13===n)return!0}return!1}function Gd(e){let t="",n=!1;for(let i=0;i<e.length;i++)Nu(e.charCodeAt(i))?n||(t+=" ",n=!0):(t+=e[i],n=!1);return t}function Kd(e){(Fd[0]||Cd).children.push(e)}function Qd(e,t){return{start:$d.getPos(e),end:null==t?t:$d.getPos(t),source:null==t?t:Nd(e,t)}}function Yd(e){return Qd(e.start.offset,e.end.offset)}function Jd(e,t){e.end=$d.getPos(t),e.source=Nd(e.start.offset,t)}function Xd(e){const t={type:6,name:e.rawName,nameLoc:Qd(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function Zd(e,t=!1,n,i=0,r=0){return Eu(e,t,n,i)}function ep(e,t,n){_d.onError(Wu(e,Qd(t,t)))}function tp(e,t){if($d.reset(),Sd=null,Ed=null,Ad="",Dd=-1,Td=-1,Fd.length=0,xd=e,_d=f({},wd),t){let e;for(e in t)null!=t[e]&&(_d[e]=t[e])}$d.mode="html"===_d.parseMode?1:"sfc"===_d.parseMode?2:0,$d.inXML=1===_d.ns||2===_d.ns;const n=t&&t.delimiters;n&&($d.delimiterOpen=Bu(n[0]),$d.delimiterClose=Bu(n[1]));const i=Cd=function(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:wu}}([],e);return $d.parse(xd),i.loc=Qd(0,e.length),i.children=Ud(i.children),Cd=null,i}function np(e,t){rp(e,void 0,t,!!ip(e))}function ip(e){const t=e.children.filter(e=>3!==e.type);return 1!==t.length||1!==t[0].type||dd(t[0])?null:t[0]}function rp(e,t,n,i=!1,r=!1){const{children:o}=e,a=[];for(let t=0;t<o.length;t++){const s=o[t];if(1===s.type&&0===s.tagType){const e=i?0:op(s,n);if(e>0){if(e>=2){s.codegenNode.patchFlag=-1,a.push(s);continue}}else{const e=s.codegenNode;if(13===e.type){const t=e.patchFlag;if((void 0===t||512===t||1===t)&&lp(s,n)>=2){const t=cp(s);t&&(e.props=n.hoist(t))}e.dynamicProps&&(e.dynamicProps=n.hoist(e.dynamicProps))}}}else if(12===s.type){if((i?0:op(s,n))>=2){14===s.codegenNode.type&&s.codegenNode.arguments.length>0&&s.codegenNode.arguments.push("-1"),a.push(s);continue}}if(1===s.type){const t=1===s.tagType;t&&n.scopes.vSlot++,rp(s,e,n,!1,r),t&&n.scopes.vSlot--}else if(11===s.type)rp(s,e,n,1===s.children.length,!0);else if(9===s.type)for(let t=0;t<s.branches.length;t++)rp(s.branches[t],e,n,1===s.branches[t].children.length,r)}let s=!1;if(a.length===o.length&&1===e.type)if(0===e.tagType&&e.codegenNode&&13===e.codegenNode.type&&y(e.codegenNode.children))e.codegenNode.children=l(Cu(e.codegenNode.children)),s=!0;else if(1===e.tagType&&e.codegenNode&&13===e.codegenNode.type&&e.codegenNode.children&&!y(e.codegenNode.children)&&15===e.codegenNode.children.type){const t=c(e.codegenNode,"default");t&&(t.returns=l(Cu(t.returns)),s=!0)}else if(3===e.tagType&&t&&1===t.type&&1===t.tagType&&t.codegenNode&&13===t.codegenNode.type&&t.codegenNode.children&&!y(t.codegenNode.children)&&15===t.codegenNode.children.type){const n=rd(e,"slot",!0),i=n&&n.arg&&c(t.codegenNode,n.arg);i&&(i.returns=l(Cu(i.returns)),s=!0)}if(!s)for(const e of a)e.codegenNode=n.cache(e.codegenNode);function l(e){const t=n.cache(e);return t.needArraySpread=!0,t}function c(e,t){if(e.children&&!y(e.children)&&15===e.children.type){const n=e.children.properties.find(e=>e.key===t||e.key.content===t);return n&&n.value}}a.length&&n.transformHoist&&n.transformHoist(o,n,e)}function op(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(0!==e.tagType)return 0;const i=n.get(e);if(void 0!==i)return i;const r=e.codegenNode;if(13!==r.type)return 0;if(r.isBlock&&"svg"!==e.tag&&"foreignObject"!==e.tag&&"math"!==e.tag)return 0;if(void 0===r.patchFlag){let i=3;const o=lp(e,t);if(0===o)return n.set(e,0),0;o<i&&(i=o);for(let r=0;r<e.children.length;r++){const o=op(e.children[r],t);if(0===o)return n.set(e,0),0;o<i&&(i=o)}if(i>1)for(let r=0;r<e.props.length;r++){const o=e.props[r];if(7===o.type&&"bind"===o.name&&o.exp){const r=op(o.exp,t);if(0===r)return n.set(e,0),0;r<i&&(i=r)}}if(r.isBlock){for(let t=0;t<e.props.length;t++){if(7===e.props[t].type)return n.set(e,0),0}t.removeHelper(Rc),t.removeHelper(Pu(t.inSSR,r.isComponent)),r.isBlock=!1,t.helper(Ou(t.inSSR,r.isComponent))}return n.set(e,i),i}return n.set(e,0),0;case 2:case 3:return 3;case 9:case 11:case 10:default:return 0;case 5:case 12:return op(e.content,t);case 4:return e.constType;case 8:let o=3;for(let n=0;n<e.children.length;n++){const i=e.children[n];if(x(i)||S(i))continue;const r=op(i,t);if(0===r)return 0;r<o&&(o=r)}return o;case 20:return 2}}const ap=new Set([ru,ou,au,su]);function sp(e,t){if(14===e.type&&!x(e.callee)&&ap.has(e.callee)){const n=e.arguments[0];if(4===n.type)return op(n,t);if(14===n.type)return sp(n,t)}return 0}function lp(e,t){let n=3;const i=cp(e);if(i&&15===i.type){const{properties:e}=i;for(let i=0;i<e.length;i++){const{key:r,value:o}=e[i],a=op(r,t);if(0===a)return a;let s;if(a<n&&(n=a),s=4===o.type?op(o,t):14===o.type?sp(o,t):0,0===s)return s;s<n&&(n=s)}}return n}function cp(e){const t=e.codegenNode;if(13===t.type)return t.props}function up(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:i=!1,hmr:r=!1,cacheHandlers:o=!1,nodeTransforms:a=[],directiveTransforms:s={},transformHoist:c=null,isBuiltInComponent:d=u,isCustomElement:p=u,expressionPlugins:h=[],scopeId:f=null,slotted:m=!0,ssr:g=!1,inSSR:v=!1,ssrCssVars:y="",bindingMetadata:b=l,inline:k=!1,isTS:w=!1,onError:_=zu,onWarn:C=Uu,compatConfig:S}){const E=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),A={filename:t,selfName:E&&R(N(E[1])),prefixIdentifiers:n,hoistStatic:i,hmr:r,cacheHandlers:o,nodeTransforms:a,directiveTransforms:s,transformHoist:c,isBuiltInComponent:d,isCustomElement:p,expressionPlugins:h,scopeId:f,slotted:m,ssr:g,inSSR:v,ssrCssVars:y,bindingMetadata:b,inline:k,isTS:w,onError:_,onWarn:C,compatConfig:S,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(e){const t=A.helpers.get(e)||0;return A.helpers.set(e,t+1),e},removeHelper(e){const t=A.helpers.get(e);if(t){const n=t-1;n?A.helpers.set(e,n):A.helpers.delete(e)}},helperString(e){return`_${ku[A.helper(e)]}`},replaceNode(e){A.parent.children[A.childIndex]=A.currentNode=e},removeNode(e){const t=A.parent.children,n=e?t.indexOf(e):A.currentNode?A.childIndex:-1;e&&e!==A.currentNode?A.childIndex>n&&(A.childIndex--,A.onNodeRemoved()):(A.currentNode=null,A.onNodeRemoved()),A.parent.children.splice(n,1)},onNodeRemoved:u,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){x(e)&&(e=Eu(e)),A.hoists.push(e);const t=Eu(`_hoisted_${A.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache(e,t=!1,n=!1){const i=function(e,t,n=!1,i=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:i,needArraySpread:!1,loc:wu}}(A.cached.length,e,t,n);return A.cached.push(i),i}};return A.filters=new Set,A}function dp(e,t){const n=up(e,t);pp(e,n),t.hoistStatic&&np(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:i}=e;if(1===i.length){const n=ip(e);if(n&&n.codegenNode){const i=n.codegenNode;13===i.type&&Fu(i,t),e.codegenNode=i}else e.codegenNode=i[0]}else if(i.length>1){let i=64;0,e.codegenNode=_u(t,n(Mc),void 0,e.children,i,void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function pp(e,t){t.currentNode=e;const{nodeTransforms:n}=t,i=[];for(let r=0;r<n.length;r++){const o=n[r](e,t);if(o&&(y(o)?i.push(...o):i.push(o)),!t.currentNode)return;e=t.currentNode}switch(e.type){case 3:t.ssr||t.helper(Uc);break;case 5:t.ssr||t.helper(nu);break;case 9:for(let n=0;n<e.branches.length;n++)pp(e.branches[n],t);break;case 10:case 11:case 1:case 0:!function(e,t){let n=0;const i=()=>{n--};for(;n<e.children.length;n++){const r=e.children[n];x(r)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=i,pp(r,t))}}(e,t)}t.currentNode=e;let r=i.length;for(;r--;)i[r]()}function hp(e,t){const n=x(e)?t=>t===e:t=>e.test(t);return(e,i)=>{if(1===e.type){const{props:r}=e;if(3===e.tagType&&r.some(cd))return;const o=[];for(let a=0;a<r.length;a++){const s=r[a];if(7===s.type&&n(s.name)){r.splice(a,1),a--;const n=t(e,s,i);n&&o.push(n)}}return o}}}const fp="/*@__PURE__*/",mp=e=>`${ku[e]}: _${ku[e]}`;function gp(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:i=!1,filename:r="template.vue.html",scopeId:o=null,optimizeImports:a=!1,runtimeGlobalName:s="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:u=!1,isTS:d=!1,inSSR:p=!1}){const h={mode:t,prefixIdentifiers:n,sourceMap:i,filename:r,scopeId:o,optimizeImports:a,runtimeGlobalName:s,runtimeModuleName:l,ssrRuntimeModuleName:c,ssr:u,isTS:d,inSSR:p,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(e){return`_${ku[e]}`},push(e,t=-2,n){h.code+=e},indent(){f(++h.indentLevel)},deindent(e=!1){e?--h.indentLevel:f(--h.indentLevel)},newline(){f(h.indentLevel)}};function f(e){h.push("\n"+" ".repeat(e),0)}return h}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:i,push:r,prefixIdentifiers:o,indent:a,deindent:s,newline:l,scopeId:c,ssr:u}=n,d=Array.from(e.helpers),p=d.length>0,h=!o&&"module"!==i;!function(e,t){const{ssr:n,prefixIdentifiers:i,push:r,newline:o,runtimeModuleName:a,runtimeGlobalName:s,ssrRuntimeModuleName:l}=t,c=s,u=Array.from(e.helpers);if(u.length>0&&(r(`const _Vue = ${c}\n`,-1),e.hoists.length)){r(`const { ${[Hc,zc,Uc,Wc,Gc].filter(e=>u.includes(e)).map(mp).join(", ")} } = _Vue\n`,-1)}(function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:i}=t;i();for(let r=0;r<e.length;r++){const o=e[r];o&&(n(`const _hoisted_${r+1} = `),kp(o,t),i())}t.pure=!1})(e.hoists,t),o(),r("return ")}(e,n);if(r(`function ${u?"ssrRender":"render"}(${(u?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ")}) {`),a(),h&&(r("with (_ctx) {"),a(),p&&(r(`const { ${d.map(mp).join(", ")} } = _Vue\n`,-1),l())),e.components.length&&(vp(e.components,"component",n),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(vp(e.directives,"directive",n),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),vp(e.filters,"filter",n),l()),e.temps>0){r("let ");for(let t=0;t<e.temps;t++)r(`${t>0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(r("\n",0),l()),u||r("return "),e.codegenNode?kp(e.codegenNode,n):r("null"),h&&(s(),r("}")),s(),r("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function vp(e,t,{helper:n,push:i,newline:r,isTS:o}){const a=n("filter"===t?Jc:"component"===t?Kc:Yc);for(let n=0;n<e.length;n++){let s=e[n];const l=s.endsWith("__self");l&&(s=s.slice(0,-6)),i(`const ${gd(s,t)} = ${a}(${JSON.stringify(s)}${l?", true":""})${o?"!":""}`),n<e.length-1&&r()}}function yp(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),bp(e,t,n),n&&t.deindent(),t.push("]")}function bp(e,t,n=!1,i=!0){const{push:r,newline:o}=t;for(let a=0;a<e.length;a++){const s=e[a];x(s)?r(s,-3):y(s)?yp(s,t):kp(s,t),a<e.length-1&&(n?(i&&r(","),o()):i&&r(", "))}}function kp(e,t){if(x(e))t.push(e,-3);else if(S(e))t.push(t.helper(e));else switch(e.type){case 1:case 9:case 11:case 12:kp(e.codegenNode,t);break;case 2:!function(e,t){t.push(JSON.stringify(e.content),-3,e)}(e,t);break;case 4:_p(e,t);break;case 5:!function(e,t){const{push:n,helper:i,pure:r}=t;r&&n(fp);n(`${i(nu)}(`),kp(e.content,t),n(")")}(e,t);break;case 8:Cp(e,t);break;case 3:!function(e,t){const{push:n,helper:i,pure:r}=t;r&&n(fp);n(`${i(Uc)}(${JSON.stringify(e.content)})`,-3,e)}(e,t);break;case 13:!function(e,t){const{push:n,helper:i,pure:r}=t,{tag:o,props:a,children:s,patchFlag:l,dynamicProps:c,directives:u,isBlock:d,disableTracking:p,isComponent:h}=e;let f;l&&(f=String(l));u&&n(i(Xc)+"(");d&&n(`(${i(Rc)}(${p?"true":""}), `);r&&n(fp);const m=d?Pu(t.inSSR,h):Ou(t.inSSR,h);n(i(m)+"(",-2,e),bp(function(e){let t=e.length;for(;t--&&null==e[t];);return e.slice(0,t+1).map(e=>e||"null")}([o,a,s,f,c]),t),n(")"),d&&n(")");u&&(n(", "),kp(u,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:i,pure:r}=t,o=x(e.callee)?e.callee:i(e.callee);r&&n(fp);n(o+"(",-2,e),bp(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:i,deindent:r,newline:o}=t,{properties:a}=e;if(!a.length)return void n("{}",-2,e);const s=a.length>1||!1;n(s?"{":"{ "),s&&i();for(let e=0;e<a.length;e++){const{key:i,value:r}=a[e];xp(i,t),n(": "),kp(r,t),e<a.length-1&&(n(","),o())}s&&r(),n(s?"}":" }")}(e,t);break;case 17:!function(e,t){yp(e.elements,t)}(e,t);break;case 18:!function(e,t){const{push:n,indent:i,deindent:r}=t,{params:o,returns:a,body:s,newline:l,isSlot:c}=e;c&&n(`_${ku[mu]}(`);n("(",-2,e),y(o)?bp(o,t):o&&kp(o,t);n(") => "),(l||s)&&(n("{"),i());a?(l&&n("return "),y(a)?yp(a,t):kp(a,t)):s&&kp(s,t);(l||s)&&(r(),n("}"));c&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}(e,t);break;case 19:!function(e,t){const{test:n,consequent:i,alternate:r,newline:o}=e,{push:a,indent:s,deindent:l,newline:c}=t;if(4===n.type){const e=!Yu(n.content);e&&a("("),_p(n,t),e&&a(")")}else a("("),kp(n,t),a(")");o&&s(),t.indentLevel++,o||a(" "),a("? "),kp(i,t),t.indentLevel--,o&&c(),o||a(" "),a(": ");const u=19===r.type;u||t.indentLevel++;kp(r,t),u||t.indentLevel--;o&&l(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:i,indent:r,deindent:o,newline:a}=t,{needPauseTracking:s,needArraySpread:l}=e;l&&n("[...(");n(`_cache[${e.index}] || (`),s&&(r(),n(`${i(pu)}(-1`),e.inVOnce&&n(", true"),n("),"),a(),n("("));n(`_cache[${e.index}] = `),kp(e.value,t),s&&(n(`).cacheIndex = ${e.index},`),a(),n(`${i(pu)}(1),`),a(),n(`_cache[${e.index}]`),o());n(")"),l&&n(")]")}(e,t);break;case 21:bp(e.body,t,!0,!1)}}function _p(e,t){const{content:n,isStatic:i}=e;t.push(i?JSON.stringify(n):n,-3,e)}function Cp(e,t){for(let n=0;n<e.children.length;n++){const i=e.children[n];x(i)?t.push(i,-3):kp(i,t)}}function xp(e,t){const{push:n}=t;if(8===e.type)n("["),Cp(e,t),n("]");else if(e.isStatic){n(Yu(e.content)?e.content:JSON.stringify(e.content),-2,e)}else n(`[${e.content}]`,-3,e)}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const Sp=hp(/^(?:if|else|else-if)$/,(e,t,n)=>function(e,t,n,i){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const i=t.exp?t.exp.loc:e.loc;n.onError(Wu(28,t.loc)),t.exp=Eu("true",!1,i)}0;if("if"===t.name){const r=Ep(e,t),o={type:9,loc:Yd(e.loc),branches:[r]};if(n.replaceNode(o),i)return i(o,r,!0)}else{const r=n.parent.children;let o=r.indexOf(e);for(;o-- >=-1;){const a=r[o];if(!a||!kd(a)){if(a&&9===a.type){"else-if"!==t.name&&"else"!==t.name||void 0!==a.branches[a.branches.length-1].condition||n.onError(Wu(30,e.loc)),n.removeNode();const r=Ep(e,t);0,a.branches.push(r);const o=i&&i(a,r,!1);pp(r,n),o&&o(),n.currentNode=null}else n.onError(Wu(30,e.loc));break}n.removeNode(a)}}}(e,t,n,(e,t,i)=>{const r=n.parent.children;let o=r.indexOf(e),a=0;for(;o-- >=0;){const e=r[o];e&&9===e.type&&(a+=e.branches.length)}return()=>{if(i)e.codegenNode=Ap(t,a,n);else{const i=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);i.alternate=Ap(t,a+e.branches.length-1,n)}}}));function Ep(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!rd(e,"for")?e.children:[e],userKey:od(e,"key"),isTemplateIf:n}}function Ap(e,t,n){return e.condition?Iu(e.condition,Dp(e,t,n),Du(n.helper(Uc),['""',"true"])):Dp(e,t,n)}function Dp(e,t,n){const{helper:i}=n,r=Su("key",Eu(`${t}`,!1,wu,2)),{children:o}=e,a=o[0];if(1!==o.length||1!==a.type){if(1===o.length&&11===a.type){const e=a.codegenNode;return fd(e,r,n),e}{let t=64;return _u(n,i(Mc),xu([r]),o,t,void 0,void 0,!0,!1,!1,e.loc)}}{const e=a.codegenNode,t=14===(s=e).type&&s.callee===yu?s.arguments[1].returns:s;return 13===t.type&&Fu(t,n),fd(t,r,n),e}var s}const Tp=hp("for",(e,t,n)=>{const{helper:i,removeHelper:r}=n;return function(e,t,n,i){if(!t.exp)return void n.onError(Wu(31,t.loc));const r=t.forParseResult;if(!r)return void n.onError(Wu(32,t.loc));Ip(r,n);const{addIdentifiers:o,removeIdentifiers:a,scopes:s}=n,{source:l,value:c,key:u,index:d}=r,p={type:11,loc:t.loc,source:l,valueAlias:c,keyAlias:u,objectIndexAlias:d,parseResult:r,children:ud(e)?e.children:[e]};n.replaceNode(p),s.vFor++;const h=i&&i(p);return()=>{s.vFor--,h&&h()}}(e,t,n,t=>{const o=Du(i(Zc),[t.source]),a=ud(e),s=rd(e,"memo"),l=od(e,"key",!1,!0);l&&l.type;let c=l&&(6===l.type?l.value?Eu(l.value.content,!0):void 0:l.exp);const u=l&&c?Su("key",c):null,d=4===t.source.type&&t.source.constType>0,p=d?64:l?128:256;return t.codegenNode=_u(n,i(Mc),void 0,o,p,void 0,void 0,!0,!d,!1,e.loc),()=>{let l;const{children:p}=t;const h=1!==p.length||1!==p[0].type,f=dd(e)?e:a&&1===e.children.length&&dd(e.children[0])?e.children[0]:null;if(f?(l=f.codegenNode,a&&u&&fd(l,u,n)):h?l=_u(n,i(Mc),u?xu([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(l=p[0].codegenNode,a&&u&&fd(l,u,n),l.isBlock!==!d&&(l.isBlock?(r(Rc),r(Pu(n.inSSR,l.isComponent))):r(Ou(n.inSSR,l.isComponent))),l.isBlock=!d,l.isBlock?(i(Rc),i(Pu(n.inSSR,l.isComponent))):i(Ou(n.inSSR,l.isComponent))),s){const e=Tu(Op(t.parseResult,[Eu("_cached")]));e.body={type:21,body:[Au(["const _memo = (",s.exp,")"]),Au(["if (_cached && _cached.el",...c?[" && _cached.key === ",c]:[],` && ${n.helperString(bu)}(_cached, _memo)) return _cached`]),Au(["const _item = ",l]),Eu("_item.memo = _memo"),Eu("return _item")],loc:wu},o.arguments.push(e,Eu("_cache"),Eu(String(n.cached.length))),n.cached.push(null)}else o.arguments.push(Tu(Op(t.parseResult),l,!0))}})});function Ip(e,t){e.finalized||(e.finalized=!0)}function Op({value:e,key:t,index:n},i=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((e,t)=>e||Eu("_".repeat(t+1),!1))}([e,t,n,...i])}const Pp=Eu("undefined",!1),Fp=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=rd(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},$p=(e,t,n,i)=>Tu(e,n,!1,!0,n.length?n[0].loc:i);function Mp(e,t,n=$p){t.helper(mu);const{children:i,loc:r}=e,o=[],a=[];let s=t.scopes.vSlot>0||t.scopes.vFor>0;const l=rd(e,"slot",!0);if(l){const{arg:e,exp:t}=l;e&&!Gu(e)&&(s=!0),o.push(Su(e||Eu("default",!0),n(t,void 0,i,r)))}let c=!1,u=!1;const d=[],p=new Set;let h=0;for(let e=0;e<i.length;e++){const r=i[e];let f;if(!ud(r)||!(f=rd(r,"slot",!0))){3!==r.type&&d.push(r);continue}if(l){t.onError(Wu(37,f.loc));break}c=!0;const{children:m,loc:g}=r,{arg:v=Eu("default",!0),exp:y,loc:b}=f;let k;Gu(v)?k=v?v.content:"default":s=!0;const w=rd(r,"for"),_=n(y,w,m,g);let C,x;if(C=rd(r,"if"))s=!0,a.push(Iu(C.exp,Lp(v,_,h++),Pp));else if(x=rd(r,/^else(?:-if)?$/,!0)){let n,r=e;for(;r--&&(n=i[r],kd(n)););if(n&&ud(n)&&rd(n,/^(?:else-)?if$/)){let e=a[a.length-1];for(;19===e.alternate.type;)e=e.alternate;e.alternate=x.exp?Iu(x.exp,Lp(v,_,h++),Pp):Lp(v,_,h++)}else t.onError(Wu(30,x.loc))}else if(w){s=!0;const e=w.forParseResult;e?(Ip(e),a.push(Du(t.helper(Zc),[e.source,Tu(Op(e),Lp(v,_),!0)]))):t.onError(Wu(32,w.loc))}else{if(k){if(p.has(k)){t.onError(Wu(38,b));continue}p.add(k),"default"===k&&(u=!0)}o.push(Su(v,_))}}if(!l){const e=(e,i)=>{const o=n(e,void 0,i,r);return t.compatConfig&&(o.isNonScopedSlot=!0),Su("default",o)};c?d.length&&!d.every(bd)&&(u?t.onError(Wu(39,d[0].loc)):o.push(e(void 0,d))):o.push(e(void 0,i))}const f=s?2:Np(e.children)?3:1;let m=xu(o.concat(Su("_",Eu(f+"",!1))),r);return a.length&&(m=Du(t.helper(tu),[m,Cu(a)])),{slots:m,hasDynamicSlots:s}}function Lp(e,t,n){const i=[Su("name",e),Su("fn",t)];return null!=n&&i.push(Su("key",Eu(String(n),!0))),xu(i)}function Np(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(2===n.tagType||Np(n.children))return!0;break;case 9:if(Np(n.branches))return!0;break;case 10:case 11:if(Np(n.children))return!0}}return!1}const jp=new WeakMap,Bp=(e,t)=>function(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:i}=e,r=1===e.tagType;let o=r?function(e,t,n=!1){let{tag:i}=e;const r=Hp(i),o=od(e,"is",!1,!0);if(o)if(r||qu("COMPILER_IS_ON_ELEMENT",t)){let e;if(6===o.type?e=o.value&&Eu(o.value.content,!0):(e=o.exp,e||(e=Eu("is",!1,o.arg.loc))),e)return Du(t.helper(Qc),[e])}else 6===o.type&&o.value.content.startsWith("vue:")&&(i=o.value.content.slice(4));const a=Ku(i)||t.isBuiltInComponent(i);if(a)return n||t.helper(a),a;return t.helper(Kc),t.components.add(i),gd(i,"component")}(e,t):`"${n}"`;const a=E(o)&&o.callee===Qc;let s,l,c,u,d,p=0,h=a||o===Lc||o===Nc||!r&&("svg"===n||"foreignObject"===n||"math"===n);if(i.length>0){const n=Rp(e,t,void 0,r,a);s=n.props,p=n.patchFlag,u=n.dynamicPropNames;const i=n.directives;d=i&&i.length?Cu(i.map(e=>function(e,t){const n=[],i=jp.get(e);i?n.push(t.helperString(i)):(t.helper(Yc),t.directives.add(e.name),n.push(gd(e.name,"directive")));const{loc:r}=e;e.exp&&n.push(e.exp);e.arg&&(e.exp||n.push("void 0"),n.push(e.arg));if(Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=Eu("true",!1,r);n.push(xu(e.modifiers.map(e=>Su(e,t)),r))}return Cu(n,e.loc)}(e,t))):void 0,n.shouldUseBlock&&(h=!0)}if(e.children.length>0){o===jc&&(h=!0,p|=1024);if(r&&o!==Lc&&o!==jc){const{slots:n,hasDynamicSlots:i}=Mp(e,t);l=n,i&&(p|=1024)}else if(1===e.children.length&&o!==Lc){const n=e.children[0],i=n.type,r=5===i||8===i;r&&0===op(n,t)&&(p|=1),l=r||2===i?n:e.children}else l=e.children}u&&u.length&&(c=function(e){let t="[";for(let n=0,i=e.length;n<i;n++)t+=JSON.stringify(e[n]),n<i-1&&(t+=", ");return t+"]"}(u)),e.codegenNode=_u(t,o,s,l,0===p?void 0:p,c,d,!!h,!1,r,e.loc)};function Rp(e,t,n=e.props,i,r,o=!1){const{tag:a,loc:s,children:l}=e;let c=[];const u=[],d=[],h=l.length>0;let f=!1,m=0,g=!1,v=!1,y=!1,b=!1,k=!1,w=!1;const _=[],C=e=>{c.length&&(u.push(xu(Vp(c),s)),c=[]),e&&u.push(e)},x=()=>{t.scopes.vFor>0&&c.push(Su(Eu("ref_for",!0),Eu("true")))},E=({key:e,value:n})=>{if(Gu(e)){const o=e.content,a=p(o);if(!a||i&&!r||"onclick"===o.toLowerCase()||"onUpdate:modelValue"===o||F(o)||(b=!0),a&&F(o)&&(w=!0),a&&14===n.type&&(n=n.arguments[0]),20===n.type||(4===n.type||8===n.type)&&op(n,t)>0)return;"ref"===o?g=!0:"class"===o?v=!0:"style"===o?y=!0:"key"===o||_.includes(o)||_.push(o),!i||"class"!==o&&"style"!==o||_.includes(o)||_.push(o)}else k=!0};for(let r=0;r<n.length;r++){const l=n[r];if(6===l.type){const{loc:e,name:n,nameLoc:i,value:r}=l;let o=!0;if("ref"===n&&(g=!0,x()),"is"===n&&(Hp(a)||r&&r.content.startsWith("vue:")||qu("COMPILER_IS_ON_ELEMENT",t)))continue;c.push(Su(Eu(n,!0,i),Eu(r?r.content:"",o,r?r.loc:e)))}else{const{name:n,arg:r,exp:p,loc:g,modifiers:v}=l,y="bind"===n,b="on"===n;if("slot"===n){i||t.onError(Wu(40,g));continue}if("once"===n||"memo"===n)continue;if("is"===n||y&&ad(r,"is")&&(Hp(a)||qu("COMPILER_IS_ON_ELEMENT",t)))continue;if(b&&o)continue;if((y&&ad(r,"key")||b&&h&&ad(r,"vue:before-update"))&&(f=!0),y&&ad(r,"ref")&&x(),!r&&(y||b)){if(k=!0,p)if(y){if(C(),qu("COMPILER_V_BIND_OBJECT_ORDER",t)){u.unshift(p);continue}x(),C(),u.push(p)}else C({type:14,loc:g,callee:t.helper(lu),arguments:i?[p]:[p,"true"]});else t.onError(Wu(y?34:35,g));continue}y&&v.some(e=>"prop"===e.content)&&(m|=32);const w=t.directiveTransforms[n];if(w){const{props:n,needRuntime:i}=w(l,e,t);!o&&n.forEach(E),b&&r&&!Gu(r)?C(xu(n,s)):c.push(...n),i&&(d.push(l),S(i)&&jp.set(l,i))}else $(n)||(d.push(l),h&&(f=!0))}}let A;if(u.length?(C(),A=u.length>1?Du(t.helper(iu),u,s):u[0]):c.length&&(A=xu(Vp(c),s)),k?m|=16:(v&&!i&&(m|=2),y&&!i&&(m|=4),_.length&&(m|=8),b&&(m|=32)),f||0!==m&&32!==m||!(g||w||d.length>0)||(m|=512),!t.inSSR&&A)switch(A.type){case 15:let e=-1,n=-1,i=!1;for(let t=0;t<A.properties.length;t++){const r=A.properties[t].key;Gu(r)?"class"===r.content?e=t:"style"===r.content&&(n=t):r.isHandlerKey||(i=!0)}const r=A.properties[e],o=A.properties[n];i?A=Du(t.helper(au),[A]):(r&&!Gu(r.value)&&(r.value=Du(t.helper(ru),[r.value])),o&&(y||4===o.value.type&&"["===o.value.content.trim()[0]||17===o.value.type)&&(o.value=Du(t.helper(ou),[o.value])));break;case 14:break;default:A=Du(t.helper(au),[Du(t.helper(su),[A])])}return{props:A,directives:d,patchFlag:m,dynamicPropNames:_,shouldUseBlock:f}}function Vp(e){const t=new Map,n=[];for(let i=0;i<e.length;i++){const r=e[i];if(8===r.key.type||!r.key.isStatic){n.push(r);continue}const o=r.key.content,a=t.get(o);a?("style"===o||"class"===o||p(o))&&qp(a,r):(t.set(o,r),n.push(r))}return n}function qp(e,t){17===e.value.type?e.value.elements.push(t.value):e.value=Cu([e.value,t.value],e.loc)}function Hp(e){return"component"===e||"Component"===e}const zp=(e,t)=>{if(dd(e)){const{children:n,loc:i}=e,{slotName:r,slotProps:o}=function(e,t){let n,i='"default"';const r=[];for(let t=0;t<e.props.length;t++){const n=e.props[t];if(6===n.type)n.value&&("name"===n.name?i=JSON.stringify(n.value.content):(n.name=N(n.name),r.push(n)));else if("bind"===n.name&&ad(n.arg,"name")){if(n.exp)i=n.exp;else if(n.arg&&4===n.arg.type){const e=N(n.arg.content);i=n.exp=Eu(e,!1,n.arg.loc)}}else"bind"===n.name&&n.arg&&Gu(n.arg)&&(n.arg.content=N(n.arg.content)),r.push(n)}if(r.length>0){const{props:i,directives:o}=Rp(e,t,r,!1,!1);n=i,o.length&&t.onError(Wu(36,o[0].loc))}return{slotName:i,slotProps:n}}(e,t),a=[t.prefixIdentifiers?"_ctx.$slots":"$slots",r,"{}","undefined","true"];let s=2;o&&(a[2]=o,s=3),n.length&&(a[3]=Tu([],n,!1,!1,i),s=4),t.scopeId&&!t.slotted&&(s=5),a.splice(s),e.codegenNode=Du(t.helper(eu),a,i)}};const Up=(e,t,n,i)=>{const{loc:r,modifiers:o,arg:a}=e;let s;if(e.exp||o.length||n.onError(Wu(35,r)),4===a.type)if(a.isStatic){let e=a.content;0,e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`);s=Eu(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?V(N(e)):`on:${e}`,!0,a.loc)}else s=Au([`${n.helperString(du)}(`,a,")"]);else s=a,s.children.unshift(`${n.helperString(du)}(`),s.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let c=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const e=td(l),t=!(e||id(l)),n=l.content.includes(";");0,(t||c&&e)&&(l=Au([`${t?"$event":"(...args)"} => ${n?"{":"("}`,l,n?"}":")"]))}let u={props:[Su(s,l||Eu("() => {}",!1,r))]};return i&&(u=i(u)),c&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach(e=>e.key.isHandlerKey=!0),u},Wp=(e,t,n)=>{const{modifiers:i,loc:r}=e,o=e.arg;let{exp:a}=e;return a&&4===a.type&&!a.content.trim()&&(a=void 0),4!==o.type?(o.children.unshift("("),o.children.push(') || ""')):o.isStatic||(o.content=o.content?`${o.content} || ""`:'""'),i.some(e=>"camel"===e.content)&&(4===o.type?o.isStatic?o.content=N(o.content):o.content=`${n.helperString(cu)}(${o.content})`:(o.children.unshift(`${n.helperString(cu)}(`),o.children.push(")"))),n.inSSR||(i.some(e=>"prop"===e.content)&&Gp(o,"."),i.some(e=>"attr"===e.content)&&Gp(o,"^")),{props:[Su(o,a)]}},Gp=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},Kp=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let i,r=!1;for(let e=0;e<n.length;e++){const t=n[e];if(sd(t)){r=!0;for(let r=e+1;r<n.length;r++){const o=n[r];if(!sd(o)){i=void 0;break}i||(i=n[e]=Au([t],t.loc)),i.children.push(" + ",o),n.splice(r,1),r--}}}if(r&&(1!==n.length||0!==e.type&&(1!==e.type||0!==e.tagType||e.props.find(e=>7===e.type&&!t.directiveTransforms[e.name])||"template"===e.tag)))for(let e=0;e<n.length;e++){const i=n[e];if(sd(i)||8===i.type){const r=[];2===i.type&&" "===i.content||r.push(i),t.ssr||0!==op(i,t)||r.push("1"),n[e]={type:12,content:i,loc:i.loc,codegenNode:Du(t.helper(Wc),r)}}}}},Qp=new WeakSet,Yp=(e,t)=>{if(1===e.type&&rd(e,"once",!0)){if(Qp.has(e)||t.inVOnce||t.inSSR)return;return Qp.add(e),t.inVOnce=!0,t.helper(pu),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0,!0))}}},Jp=(e,t,n)=>{const{exp:i,arg:r}=e;if(!i)return n.onError(Wu(41,e.loc)),Xp();const o=i.loc.source.trim(),a=4===i.type?i.content:o,s=n.bindingMetadata[o];if("props"===s||"props-aliased"===s)return n.onError(Wu(44,i.loc)),Xp();if("literal-const"===s||"setup-const"===s)return n.onError(Wu(45,i.loc)),Xp();if(!a.trim()||!td(i))return n.onError(Wu(42,i.loc)),Xp();const l=r||Eu("modelValue",!0),c=r?Gu(r)?`onUpdate:${N(r.content)}`:Au(['"onUpdate:" + ',r]):"onUpdate:modelValue";let u;u=Au([`${n.isTS?"($event: any)":"$event"} => ((`,i,") = $event)"]);const d=[Su(l,e.exp),Su(c,u)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map(e=>e.content).map(e=>(Yu(e)?e:JSON.stringify(e))+": true").join(", "),n=r?Gu(r)?`${r.content}Modifiers`:Au([r,' + "Modifiers"']):"modelModifiers";d.push(Su(n,Eu(`{ ${t} }`,!1,e.loc,2)))}return Xp(d)};function Xp(e=[]){return{props:e}}const Zp=/[\w).+\-_$\]]/,eh=(e,t)=>{qu("COMPILER_FILTERS",t)&&(5===e.type?th(e.content,t):1===e.type&&e.props.forEach(e=>{7===e.type&&"for"!==e.name&&e.exp&&th(e.exp,t)}))};function th(e,t){if(4===e.type)nh(e,t);else for(let n=0;n<e.children.length;n++){const i=e.children[n];"object"==typeof i&&(4===i.type?nh(i,t):8===i.type?th(e,t):5===i.type&&th(i.content,t))}}function nh(e,t){const n=e.content;let i,r,o,a,s=!1,l=!1,c=!1,u=!1,d=0,p=0,h=0,f=0,m=[];for(o=0;o<n.length;o++)if(r=i,i=n.charCodeAt(o),s)39===i&&92!==r&&(s=!1);else if(l)34===i&&92!==r&&(l=!1);else if(c)96===i&&92!==r&&(c=!1);else if(u)47===i&&92!==r&&(u=!1);else if(124!==i||124===n.charCodeAt(o+1)||124===n.charCodeAt(o-1)||d||p||h){switch(i){case 34:l=!0;break;case 39:s=!0;break;case 96:c=!0;break;case 40:h++;break;case 41:h--;break;case 91:p++;break;case 93:p--;break;case 123:d++;break;case 125:d--}if(47===i){let e,t=o-1;for(;t>=0&&(e=n.charAt(t)," "===e);t--);e&&Zp.test(e)||(u=!0)}}else void 0===a?(f=o+1,a=n.slice(0,o).trim()):g();function g(){m.push(n.slice(f,o).trim()),f=o+1}if(void 0===a?a=n.slice(0,o).trim():0!==f&&g(),m.length){for(o=0;o<m.length;o++)a=ih(a,m[o],t);e.content=a,e.ast=void 0}}function ih(e,t,n){n.helper(Jc);const i=t.indexOf("(");if(i<0)return n.filters.add(t),`${gd(t,"filter")}(${e})`;{const r=t.slice(0,i),o=t.slice(i+1);return n.filters.add(r),`${gd(r,"filter")}(${e}${")"!==o?","+o:o}`}}const rh=new WeakSet,oh=(e,t)=>{if(1===e.type){const n=rd(e,"memo");if(!n||rh.has(e)||t.inSSR)return;return rh.add(e),()=>{const i=e.codegenNode||t.currentNode.codegenNode;i&&13===i.type&&(1!==e.tagType&&Fu(i,t),e.codegenNode=Du(t.helper(yu),[n.exp,Tu(void 0,i),"_cache",String(t.cached.length)]),t.cached.push(null))}}},ah=(e,t)=>{if(1===e.type)for(const n of e.props)if(7===n.type&&"bind"===n.name&&(!n.exp||4===n.exp.type&&!n.exp.content.trim())&&n.arg){const e=n.arg;if(4===e.type&&e.isStatic){const t=N(e.content);(Ju.test(t[0])||"-"===t[0])&&(n.exp=Eu(t,!1,e.loc))}else t.onError(Wu(53,e.loc)),n.exp=Eu("",!0,e.loc)}};function sh(e,t={}){const n=t.onError||zu,i="module"===t.mode;!0===t.prefixIdentifiers?n(Wu(48)):i&&n(Wu(49));t.cacheHandlers&&n(Wu(50)),t.scopeId&&!i&&n(Wu(51));const r=f({},t,{prefixIdentifiers:!1}),o=x(e)?tp(e,r):e,[a,s]=[[ah,Yp,Sp,oh,Tp,eh,zp,Bp,Fp,Kp],{on:Up,bind:Wp,model:Jp}];return dp(o,f({},r,{nodeTransforms:[...a,...t.nodeTransforms||[]],directiveTransforms:f({},s,t.directiveTransforms||{})})),gp(o,r)}const lh=Symbol(""),ch=Symbol(""),uh=Symbol(""),dh=Symbol(""),ph=Symbol(""),hh=Symbol(""),fh=Symbol(""),mh=Symbol(""),gh=Symbol(""),vh=Symbol("");var yh;let bh;yh={[lh]:"vModelRadio",[ch]:"vModelCheckbox",[uh]:"vModelText",[dh]:"vModelSelect",[ph]:"vModelDynamic",[hh]:"withModifiers",[fh]:"withKeys",[mh]:"vShow",[gh]:"Transition",[vh]:"TransitionGroup"},Object.getOwnPropertySymbols(yh).forEach(e=>{ku[e]=yh[e]});const kh={parseMode:"html",isVoidTag:ae,isNativeTag:e=>ie(e)||re(e)||oe(e),isPreTag:e=>"pre"===e,isIgnoreNewlineTag:e=>"pre"===e||"textarea"===e,decodeEntities:function(e,t=!1){return bh||(bh=document.createElement("div")),t?(bh.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,bh.children[0].getAttribute("foo")):(bh.innerHTML=e,bh.textContent)},isBuiltInComponent:e=>"Transition"===e||"transition"===e?gh:"TransitionGroup"===e||"transition-group"===e?vh:void 0,getNamespace(e,t,n){let i=t?t.ns:n;if(t&&2===i)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some(e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content))&&(i=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(i=0);else t&&1===i&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(i=0));if(0===i){if("svg"===e)return 1;if("math"===e)return 2}return i}},wh=(e,t)=>{const n=ee(e);return Eu(JSON.stringify(n),!1,t,3)};function _h(e,t){return Wu(e,t)}const Ch=s("passive,once,capture"),xh=s("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),Sh=s("left,right"),Eh=s("onkeyup,onkeydown,onkeypress"),Ah=(e,t)=>Gu(e)&&"onclick"===e.content.toLowerCase()?Eu(t,!0):4!==e.type?Au(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e;const Dh=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()};const Th=[e=>{1===e.type&&e.props.forEach((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:Eu("style",!0,t.loc),exp:wh(t.value.content,t.loc),modifiers:[],loc:t.loc})})}],Ih={cloak:()=>({props:[]}),html:(e,t,n)=>{const{exp:i,loc:r}=e;return i||n.onError(_h(54,r)),t.children.length&&(n.onError(_h(55,r)),t.children.length=0),{props:[Su(Eu("innerHTML",!0,r),i||Eu("",!0))]}},text:(e,t,n)=>{const{exp:i,loc:r}=e;return i||n.onError(_h(56,r)),t.children.length&&(n.onError(_h(57,r)),t.children.length=0),{props:[Su(Eu("textContent",!0),i?op(i,n)>0?i:Du(n.helperString(nu),[i],r):Eu("",!0))]}},model:(e,t,n)=>{const i=Jp(e,t,n);if(!i.props.length||1===t.tagType)return i;e.arg&&n.onError(_h(59,e.arg.loc));const{tag:r}=t,o=n.isCustomElement(r);if("input"===r||"textarea"===r||"select"===r||o){let a=uh,s=!1;if("input"===r||o){const i=od(t,"type");if(i){if(7===i.type)a=ph;else if(i.value)switch(i.value.content){case"radio":a=lh;break;case"checkbox":a=ch;break;case"file":s=!0,n.onError(_h(60,e.loc))}}else(function(e){return e.props.some(e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic))})(t)&&(a=ph)}else"select"===r&&(a=dh);s||(i.needRuntime=n.helper(a))}else n.onError(_h(58,e.loc));return i.props=i.props.filter(e=>!(4===e.key.type&&"modelValue"===e.key.content)),i},on:(e,t,n)=>Up(e,t,n,t=>{const{modifiers:i}=e;if(!i.length)return t;let{key:r,value:o}=t.props[0];const{keyModifiers:a,nonKeyModifiers:s,eventOptionModifiers:l}=((e,t,n)=>{const i=[],r=[],o=[];for(let a=0;a<t.length;a++){const s=t[a].content;"native"===s&&Hu("COMPILER_V_ON_NATIVE",n)||Ch(s)?o.push(s):Sh(s)?Gu(e)?Eh(e.content.toLowerCase())?i.push(s):r.push(s):(i.push(s),r.push(s)):xh(s)?r.push(s):i.push(s)}return{keyModifiers:i,nonKeyModifiers:r,eventOptionModifiers:o}})(r,i,n,e.loc);if(s.includes("right")&&(r=Ah(r,"onContextmenu")),s.includes("middle")&&(r=Ah(r,"onMouseup")),s.length&&(o=Du(n.helper(hh),[o,JSON.stringify(s)])),!a.length||Gu(r)&&!Eh(r.content.toLowerCase())||(o=Du(n.helper(fh),[o,JSON.stringify(a)])),l.length){const e=l.map(R).join("");r=Gu(r)?Eu(`${r.content}${e}`,!0):Au(["(",r,`) + "${e}"`])}return{props:[Su(r,o)]}}),show:(e,t,n)=>{const{exp:i,loc:r}=e;return i||n.onError(_h(62,r)),{props:[],needRuntime:n.helper(mh)}}};const Oh=Object.create(null);var Ph,Fh,$h,Mh,Lh,Nh,jh,Bh,Rh,Vh,qh,Hh,zh,Uh,Wh,Gh,Kh,Qh;function Yh(e){return Yh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yh(e)}gs(function(e,t){if(!x(e)){if(!e.nodeType)return u;e=e.innerHTML}const n=function(e,t){return e+JSON.stringify(t,(e,t)=>"function"==typeof t?t.toString():t)}(e,t),r=Oh[n];if(r)return r;if("#"===e[0]){const t=document.querySelector(e);0,e=t?t.innerHTML:""}const o=f({hoistStatic:!0,onError:void 0,onWarn:u},t);o.isCustomElement||"undefined"==typeof customElements||(o.isCustomElement=e=>!!customElements.get(e));const{code:a}=function(e,t={}){return sh(e,f({},kh,t,{nodeTransforms:[Dh,...Th,...t.nodeTransforms||[]],directiveTransforms:f({},Ih,t.directiveTransforms||{}),transformHoist:null}))}(e,o),s=new Function("Vue",a)(i);return s._rc=!0,Oh[n]=s});var Jh="brx_builder_control_spacing_link_states",Xh=Ft({styleManager:{},mode:"",cssPreviewOnHover:"",classPreviewOnHover:null,codeExecutionEnabled:!1,unsignedCodeIds:[],activeUnsignedCodeId:void 0,vimMode:!1,activeCodeEditor:null,activeControlKey:void 0,_addedClasses:{},debounceIds:{},sendPostMessage:!0,clipboardData:void 0,fonts:window.bricksData.fonts,fontFavorites:[],fontChanges:{families:{added:[],deleted:[],modified:[]},variants:{added:{},deleted:{},modified:{}}},rememberSpacingLinkState:!1,debounceCallIds:{},pendingCalls:{},activeCalls:{},ajaxAnimIds:[],iconSets:[],customIcons:[],editingIcon:null,disabledIconSets:[],iconManagerSource:null,editingFont:!1,selectionSource:null,messageOrigin:"main",iframeLoaded:!1,isBroadcasting:!1,isMac:!1,isSaving:!1,userCan:{},breakpoints:[],breakpointActive:"",breakpointActiveIndex:0,breakpointManager:!1,defaultUnit:"px",header:[],content:[],footer:[],components:[],componentNavigationStack:[],componentInstanceId:!1,activeComponent:!1,activeProperty:!1,activeInstanceId:!1,componentVariants:[],componentVariantActive:"",dynamicData:{},dynamicBackgroundImages:{},dynamicDataActiveGroups:[],dynamicDataTagsPinned:[],loopingDynamicData:{},unsavedChanges:[],globalChanges:{added:[],deleted:[],modified:[]},isReloadingCanvas:!1,forceRender:!1,rerenderControls:void 0,rerenderClassNames:0,rerenderElementIds:[],rerenderLoopIds:[],rerenderCids:[],rerenderGlobalQueryIds:[],selectedElementSettings:{},selectedElements:[],isChangingSelection:!1,selectorDetector:!1,elementsCatFirst:null===(Ph=window.bricksData)||void 0===Ph?void 0:Ph.elementsCatFirst,postId:null===(Fh=window.bricksData)||void 0===Fh?void 0:Fh.postId,postType:null===($h=window.bricksData)||void 0===$h?void 0:$h.postType,isTemplate:"bricks_template"===(null===(Mh=window.bricksData)||void 0===Mh?void 0:Mh.postType),postStatus:null===(Lh=window.bricksData)||void 0===Lh?void 0:Lh.postStatus,previewUrl:null===(Nh=window.bricksData)||void 0===Nh?void 0:Nh.previewUrl,templatePreview:(null===(jh=window.bricksData)||void 0===jh||null===(jh=jh.template)||void 0===jh?void 0:jh.preview)||{},editPostUrl:null===(Bh=window.bricksData)||void 0===Bh?void 0:Bh.editPostUrl,editHeaderUrl:null===(Rh=window.bricksData)||void 0===Rh?void 0:Rh.editHeaderUrl,editContentUrl:null===(Vh=window.bricksData)||void 0===Vh?void 0:Vh.editContentUrl,editFooterUrl:null===(qh=window.bricksData)||void 0===qh?void 0:qh.editFooterUrl,editHeaderId:null===(Hh=window.bricksData)||void 0===Hh?void 0:Hh.editHeaderId,editContentId:null===(zh=window.bricksData)||void 0===zh?void 0:zh.editContentId,editFooterId:null===(Uh=window.bricksData)||void 0===Uh?void 0:Uh.editFooterId,activeId:void 0,activeElement:void 0,activeVirtualSlot:null,deleteElement:!1,deleteItem:!1,showStructure:!1,message:void 0,showContainerLayouts:void 0,showCssGridLayout:void 0,css:{},orphanedElementIds:[],renameMode:!1,colorPalette:[],colorPaletteInlineCssVars:"",globalElements:[],globalSettings:{},controls:null===(Wh=window.bricksData)||void 0===Wh?void 0:Wh.controls,globalQueries:[],globalQueriesCategories:[],activeClass:!1,activeClassIsLocked:!1,skipNextActiveClassDirty:!1,globalClassIndexById:{},globalClasses:[],globalClassesNew:"",globalClassesLocked:[],globalClassesSelected:{},globalClassesTimestamp:0,globalClassesUser:0,globalClassesTrash:[],globalClassesCategories:[],globalClassesCategoriesExpanded:[],globalVariables:[],globalVariablesUi:localStorage.getItem("brx_builder_control_spacing_view")||"variables-ui",globalSpacingLinkStates:function(){var e={};try{e=JSON.parse(localStorage.getItem(Jh))||{}}catch(t){e={}}return e&&"object"===Yh(e)&&!Array.isArray(e)?e:{}}(),globalVariableSuggestions:[],globalVariablesCategories:[],globalVariablesCategoriesExpanded:[],globalVariablesInlineCssVars:"",globalVariablesRenamed:[],globalVariablesOriginalNames:{},pseudoClasses:[],pseudoClassActive:"",activeSelector:void 0,pageSettings:{},outerPostContentTemplatePageSettings:{},popup:!1,popupTab:"",popupView:!1,popupFilters:{categories:[],include:"",exclude:"",sort:"",by:""},popupFilteredItems:[],popupSelectedItems:[],popupIsLoadingItems:!1,popupCloseDialog:!1,popupFullScreen:!1,activePanel:"elements",activePanelGroup:void 0,activePanelGroupParent:void 0,pinnedControlGroups:[],pinnedSectionHeight:300,activePanelTab:"content",highlightId:void 0,highlightInstanceId:void 0,elementQuickAccessHover:!1,elementQuickAccessIndex:-1,isPanelExpanded:!1,isPreviewing:!1,isInlineEditing:!1,insertAfter:!1,draggingId:!1,draggingElement:!1,draggingPosition:!1,draggingOldParentId:!1,draggingOldIndex:!1,draggingNewParentId:!1,draggingNewIndex:!1,revisionData:void 0,templateElements:{},templateType:void 0,templateSettings:{},templateHeaderSettings:{},saveAsTemplate:void 0,generatingScreenshots:!1,generatingScreenshotsProgress:0,generatingScreenshotsTotal:0,themeStyles:{},themeStyleActiveId:void 0,themeStyleActiveIds:[],themeStyleSettings:{},history:[],historyIndex:0,historyInProgress:!1,scrollToElementId:!1,scrolled:0,scrollDirection:"down",scrollToPanelTop:!1,copiedElement:null,copiedElements:null,notifications:[],notification:void 0,lockedUser:!1,pinnedElements:[],ajaxCache:{},isResizing:!1,searchControlKeyword:"",searchControlFocus:!0,searchControlModified:!1,panelWidth:parseInt(null===(Gh=window.bricksData)||void 0===Gh?void 0:Gh.panelWidth)||300,previewWidth:0,previewHeight:0,previewWrapperWidth:0,previewWrapperHeight:0,previewScaleMax:1,previewScaleActive:!window.bricksData.scaleOff,previewWidthLocked:!!window.bricksData.widthLocked&&window.bricksData.widthLocked,revisions:[],revisionId:void 0,currentRevisionId:void 0,structureWidth:parseInt(null===(Kh=window.bricksData)||void 0===Kh?void 0:Kh.structureWidth)||300,structureExpandAll:null===(Qh=window.bricksData)||void 0===Qh||!Qh.structureCollapsed,activeCustomFonts:[],activeGoogleFonts:{},loopPreviewText:{},activeLoopId:!1,queryMaxResults:!1,queryApiElementId:null,queryApiData:{},elementsHtml:{},clonedElementsHtml:{},isResizingElement:!1,isSpacingElement:!1,renderCommandPalette:!1,showCommandPalette:!1,showContextMenu:!1,showDynamicTagPicker:!1,showElementClasses:!1,showElementQuickAccess:!0,showConditions:!1,showInteractions:!1,showHideElement:!1,showNotifications:!1,hasConflicts:!1,toolbar:!1,importImages:!1,imagesToImport:[],classesImportData:null,importClassIdMappings:{},permissions:[]}),Zh=xs(function(){return Xh.components}),ef=xs(function(){return JSON.parse(JSON.stringify(Xh.selectedElementSettings))}),tf=xs(function(){return Xh.globalClasses}),nf=xs(function(){var e,t=null===(e=Xh.activeClass)||void 0===e?void 0:e.id;return t?tf.value.find(function(e){return e.id===t}):void 0}),rf=xs(function(){return Xh.globalVariables}),of=xs(function(){var e,t=null===(e=Xh.activeComponent)||void 0===e?void 0:e.id;return t?Xh.components.find(function(e){return e.id===t}):void 0}),af=xs(function(){var e,t=(null===(e=of.value)||void 0===e?void 0:e.elements)||lf.value;return Xh.activeId&&Array.isArray(t)&&t.find(function(e){return e.id===Xh.activeId})||{}}),sf=xs(function(){var e;switch(Xh.templateType){case"header":return"header";case"footer":return"footer";default:return null!==(e=Xh.bricks)&&void 0!==e&&null!==(e=e.loadData)&&void 0!==e&&e.staticContent?null:"content"}}),lf=xs(function(){return Xh.revisionData?Xh.revisionData:Xh[sf.value]}),cf=xs(function(){var e=Xh.revisionData?Xh.revisionData:Xh[sf.value];return e?e.filter(function(e){return!(null!=e&&e.parent)||0==e.parent}):[]}),uf=xs(function(){return Math.min(Xh.previewWrapperWidth/Xh.previewWidth,Xh.previewScaleMax)}),df=xs(function(){var e=document.createElement("div");return("draggable"in e||"ondragstart"in e&&"ondrop"in e)&&"FormData"in window&&"FileReader"in window}),pf=xs(function(){return"header"!==Xh.templateType&&Object.keys(Xh.templateHeaderSettings).length?Xh.templateHeaderSettings:Object.keys(Xh.templateSettings).length?Xh.templateSettings:{}}),hf=xs(function(){return pf.value.headerPosition?pf.value.headerPosition:""}),ff=xs(function(){if(hf.value||!pf.value.headerSticky)return[];var e=["brx-sticky"];Xh.scrolled>0&&(e.push("fixed"),e.push("scrolling")),pf.value.headerStickyOnScroll&&e.push("on-scroll");var t=pf.value.headerStickySlideUpAfter?parseInt(pf.value.headerStickySlideUpAfter):0;return"down"===Xh.scrollDirection&&t&&Xh.scrolled>t&&e.push("slide-up"),e}),mf=xs(function(){var e,t,n=null===(e=Xh.breakpoints)||void 0===e?void 0:e[0],i=null===(t=Xh.breakpoints)||void 0===t?void 0:t[1];return!(null==n||!n.base||!i)&&(null==n?void 0:n.width)<(null==i?void 0:i.width)});function gf(e){return gf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gf(e)}function vf(e){return function(e){if(Array.isArray(e))return yf(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return yf(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yf(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function bf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function kf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bf(Object(n),!0).forEach(function(t){wf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wf(e,t,n){return(t=Cf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _f(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Cf(i.key),i)}}function Cf(e){var t=function(e,t){if("object"!=gf(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=gf(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==gf(t)?t:t+""}var xf="PARSE_ERROR",Sf="INVALID_HTML",Ef="EMPTY_INPUT",Af="CONVERSION_FAILED",Df="DEEP_NESTING";function Tf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i="[Bricks HTML Import]";n?console.error("".concat(i," ").concat(t),n):console.error("".concat(i," ").concat(t))}var If=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.errors=[],this.warnings=[]}return t=e,n=[{key:"addError",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.errors.push(kf({code:e,message:t},n))}},{key:"addWarning",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.warnings.push(kf({code:e,message:t},n))}},{key:"hasErrors",value:function(){return this.errors.length>0}},{key:"getErrors",value:function(){return vf(this.errors)}},{key:"getWarnings",value:function(){return vf(this.warnings)}},{key:"merge",value:function(t){var n,i;t instanceof e&&((n=this.errors).push.apply(n,vf(t.errors)),(i=this.warnings).push.apply(i,vf(t.warnings)))}},{key:"logErrors",value:function(){this.errors.forEach(function(e){Tf(e.code,e.message,e.reason||null)})}},{key:"clear",value:function(){this.errors=[],this.warnings=[]}}],n&&_f(t.prototype,n),i&&_f(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,i}();function Of(e){var t=new If,n={success:!1,bodyContent:null,styles:[],scripts:[],externalStylesheets:[],externalScripts:[],errors:t};if(!e||"string"!=typeof e)return t.addError(Ef,"htmlImportParseError",{reason:"Input is empty or not a string"}),n;var i=e.trim();if(0===i.length)return t.addError(Ef,"htmlImportParseError",{reason:"Input is empty"}),n;try{var r=(new DOMParser).parseFromString(e,"text/html"),o=r.querySelector("parsererror");if(o)return t.addError(xf,"htmlImportParseError",{reason:o.textContent}),n;r.querySelectorAll("style").forEach(function(e){var t=e.textContent.trim();t&&n.styles.push(t),e.remove()}),r.querySelectorAll('link[rel="stylesheet"]').forEach(function(e){var t=e.getAttribute("href");t&&n.externalStylesheets.push(t),e.remove()}),r.querySelectorAll("script").forEach(function(e){var t=e.getAttribute("src"),i=e.getAttribute("type")||"text/javascript";if(!i||i.includes("javascript")||"module"===i)if(t)n.externalScripts.push(t),e.remove();else{var o=e.textContent.trim();if(o){n.scripts.push({content:o,type:i});var a=r.createElement("bricks-script-placeholder");a.setAttribute("data-script-content",o),e.parentNode.replaceChild(a,e)}else e.remove()}else e.remove()});var a=r.head;a&&a.querySelectorAll('title, meta, link:not([rel="stylesheet"]), base').forEach(function(e){return e.remove()});var s=r.body;if(!s||0===s.children.length){var l=function(e){try{var t=document.createElement("template");return t.innerHTML=e.trim(),t.content}catch(e){return null}}(i);if(l&&l.childNodes.length>0)return n.bodyContent=l,n.success=!0,n}if(s&&s.childNodes.length>0){for(var c=document.createDocumentFragment();s.firstChild;)c.appendChild(s.firstChild);n.bodyContent=c,n.success=!0}else t.addError(Sf,"htmlImportParseError",{reason:"No content found in HTML"})}catch(e){t.addError(xf,"htmlImportParseError",{reason:e.message})}return n}function Pf(e){var t=e.getAttribute("class");return t?t.trim().split(/\s+/).filter(function(e){return e.length>0}):[]}function Ff(e){var t=e.getAttribute("id");return t?t.trim():null}function $f(e){var t="";return e.childNodes.forEach(function(e){e.nodeType===Node.TEXT_NODE&&(t+=e.textContent)}),t.trim()}function Mf(e){return e.innerHTML.trim()}var Lf=JSON.parse('{"qj":{"section":{"bricksElement":"section","phpClass":"Element_Section","file":"includes/elements/section.php","nestable":true,"defaultTag":"section","supportedTags":["section","header","footer","article","aside","div","custom"],"settings":{"tag":{"type":"select","default":"section"},"customTag":{"type":"text","requiredWhen":{"tag":"custom"}}}},"div":{"bricksElement":"div","phpClass":"Element_Div","file":"includes/elements/div.php","nestable":true,"defaultTag":"div","supportedTags":["div","nav","ul","ol","li","figure","address","custom"],"settings":{"tag":{"type":"select","default":"div"},"customTag":{"type":"text","requiredWhen":{"tag":"custom"}}}},"heading":{"bricksElement":"heading","phpClass":"Element_Heading","file":"includes/elements/heading.php","nestable":false,"defaultTag":"h3","supportedTags":["h1","h2","h3","h4","h5","h6","custom"],"settings":{"text":{"type":"text"},"tag":{"type":"select","default":"h3"}}},"text-basic":{"bricksElement":"text-basic","phpClass":"Element_Text_Basic","file":"includes/elements/text-basic.php","nestable":false,"defaultTag":"div","supportedTags":["div","p","span","figcaption","address","figure","custom"],"settings":{"text":{"type":"text"},"tag":{"type":"select","default":"div"}}},"text-link":{"bricksElement":"text-link","phpClass":"Element_Text_Link","file":"includes/elements/text-link.php","nestable":false,"defaultTag":"a","supportedTags":["a","span"],"settings":{"text":{"type":"text"},"link":{"type":"link"}}},"icon":{"bricksElement":"icon","phpClass":"Element_Icon","file":"includes/elements/icon.php","nestable":false,"settings":{"icon":{"type":"icon"}}},"button":{"bricksElement":"button","phpClass":"Element_Button","file":"includes/elements/button.php","nestable":false,"defaultTag":"button","supportedTags":["button","a","span","custom"],"settings":{"text":{"type":"text"},"link":{"type":"link"}}},"image":{"bricksElement":"image","phpClass":"Element_Image","file":"includes/elements/image.php","nestable":false,"settings":{"image":{"type":"image"},"altText":{"type":"text"}},"note":"Uses existing pasteAndImportImage logic for media library import"},"svg":{"bricksElement":"svg","phpClass":"Element_Svg","file":"includes/elements/svg.php","nestable":false,"settings":{"source":{"type":"select","default":"","forHtmlImport":"code"},"code":{"type":"code","mode":"text/html"}}},"video":{"bricksElement":"video","phpClass":"Element_Video","file":"includes/elements/video.php","nestable":false,"settings":{"videoType":{"type":"select"},"fileVideo":{"type":"video"}}},"audio":{"bricksElement":"audio","phpClass":"Element_Audio","file":"includes/elements/audio.php","nestable":false,"settings":{"audio":{"type":"audio"}}},"code":{"bricksElement":"code","phpClass":"Element_Code","file":"includes/elements/code.php","nestable":false,"settings":{"executeCode":{"type":"checkbox","default":false},"code":{"type":"code"},"cssCode":{"type":"code","mode":"css"},"javascriptCode":{"type":"code","mode":"javascript"}},"note":"Used for global CSS/JS and unsupported elements as fallback"},"divider":{"bricksElement":"divider","phpClass":"Element_Divider","file":"includes/elements/divider.php","nestable":false,"settings":{}},"form":{"bricksElement":"form","phpClass":"Element_Form","file":"includes/elements/form.php","nestable":false,"settings":{"fields":{"type":"repeater"}},"note":"Complex element - form fields need to be extracted into fields array"}},"fc":{"section":{"element":"section"},"header":{"element":"section","settings":{"tag":"header"}},"footer":{"element":"section","settings":{"tag":"footer"}},"article":{"element":"section","settings":{"tag":"article"}},"aside":{"element":"section","settings":{"tag":"aside"}},"div":{"element":"div"},"nav":{"element":"div","settings":{"tag":"nav"}},"main":{"element":"div","settings":{"tag":"custom","customTag":"main"}},"span":{"element":"div","settings":{"tag":"custom","customTag":"span"}},"ul":{"element":"div","settings":{"tag":"ul"}},"ol":{"element":"div","settings":{"tag":"ol"}},"li":{"element":"div","settings":{"tag":"li"}},"figure":{"element":"div","settings":{"tag":"figure"}},"figcaption":{"element":"div","settings":{"tag":"custom","customTag":"figcaption"}},"address":{"element":"div","settings":{"tag":"address"}},"blockquote":{"element":"div","settings":{"tag":"custom","customTag":"blockquote"}},"h1":{"element":"heading","settings":{"tag":"h1"}},"h2":{"element":"heading","settings":{"tag":"h2"}},"h3":{"element":"heading","settings":{"tag":"h3"}},"h4":{"element":"heading","settings":{"tag":"h4"}},"h5":{"element":"heading","settings":{"tag":"h5"}},"h6":{"element":"heading","settings":{"tag":"h6"}},"p":{"element":"text-basic","settings":{"tag":"p"}},"label":{"element":"text-basic","settings":{"tag":"custom","customTag":"label"}},"a":{"element":"text-link"},"button":{"element":"button"},"img":{"element":"image"},"svg":{"element":"svg","settings":{"source":"code"}},"video":{"element":"video"},"audio":{"element":"audio"},"hr":{"element":"divider"},"form":{"element":"form"},"pre":{"element":"code","fallback":true},"code":{"element":"code","fallback":true},"iframe":{"element":"code","fallback":true},"canvas":{"element":"code","fallback":true},"table":{"element":"code","fallback":true},"thead":{"element":"code","fallback":true},"tbody":{"element":"code","fallback":true},"tfoot":{"element":"code","fallback":true},"tr":{"element":"code","fallback":true},"td":{"element":"code","fallback":true},"th":{"element":"code","fallback":true}},"Hb":["strong","b","em","i","u","s","strike","del","ins","mark","small","sub","sup","abbr","cite","dfn","kbd","samp","var","time","q"],"B5":["br","wbr","script","style","link","meta","title","noscript"]}'),Nf=["ti-arrow-up","ti-arrow-right","ti-arrow-left","ti-arrow-down","ti-arrows-vertical","ti-arrows-horizontal","ti-angle-up","ti-angle-right","ti-angle-left","ti-angle-down","ti-angle-double-up","ti-angle-double-right","ti-angle-double-left","ti-angle-double-down","ti-move","ti-fullscreen","ti-arrow-top-right","ti-arrow-top-left","ti-arrow-circle-up","ti-arrow-circle-right","ti-arrow-circle-left","ti-arrow-circle-down","ti-arrows-corner","ti-split-v","ti-split-v-alt","ti-split-h","ti-hand-point-up","ti-hand-point-right","ti-hand-point-left","ti-hand-point-down","ti-back-right","ti-back-left","ti-exchange-vertical","ti-wand","ti-save","ti-save-alt","ti-direction","ti-direction-alt","ti-user","ti-link","ti-unlink","ti-trash","ti-target","ti-tag","ti-desktop","ti-tablet","ti-mobile","ti-email","ti-star","ti-spray","ti-signal","ti-shopping-cart","ti-shopping-cart-full","ti-settings","ti-search","ti-zoom-in","ti-zoom-out","ti-cut","ti-ruler","ti-ruler-alt-2","ti-ruler-pencil","ti-ruler-alt","ti-bookmark","ti-bookmark-alt","ti-reload","ti-plus","ti-minus","ti-close","ti-pin","ti-pencil","ti-pencil-alt","ti-paint-roller","ti-paint-bucket","ti-na","ti-medall","ti-medall-alt","ti-marker","ti-marker-alt","ti-lock","ti-unlock","ti-location-arrow","ti-layout","ti-layers","ti-layers-alt","ti-key","ti-image","ti-heart","ti-heart-broken","ti-hand-stop","ti-hand-open","ti-hand-drag","ti-flag","ti-flag-alt","ti-flag-alt-2","ti-eye","ti-import","ti-export","ti-cup","ti-crown","ti-comments","ti-comment","ti-comment-alt","ti-thought","ti-clip","ti-check","ti-check-box","ti-camera","ti-announcement","ti-brush","ti-brush-alt","ti-palette","ti-briefcase","ti-bolt","ti-bolt-alt","ti-blackboard","ti-bag","ti-world","ti-wheelchair","ti-car","ti-truck","ti-timer","ti-ticket","ti-thumb-up","ti-thumb-down","ti-stats-up","ti-stats-down","ti-shine","ti-shift-right","ti-shift-left","ti-shift-right-alt","ti-shift-left-alt","ti-shield","ti-notepad","ti-server","ti-pulse","ti-printer","ti-power-off","ti-plug","ti-pie-chart","ti-panel","ti-package","ti-music","ti-music-alt","ti-mouse","ti-mouse-alt","ti-money","ti-microphone","ti-menu","ti-menu-alt","ti-map","ti-map-alt","ti-location-pin","ti-light-bulb","ti-info","ti-infinite","ti-id-badge","ti-hummer","ti-home","ti-help","ti-headphone","ti-harddrives","ti-harddrive","ti-gift","ti-game","ti-filter","ti-files","ti-file","ti-zip","ti-folder","ti-envelope","ti-dashboard","ti-cloud","ti-cloud-up","ti-cloud-down","ti-clipboard","ti-calendar","ti-book","ti-bell","ti-basketball","ti-bar-chart","ti-bar-chart-alt","ti-archive","ti-anchor","ti-alert","ti-alarm-clock","ti-agenda","ti-write","ti-wallet","ti-video-clapper","ti-video-camera","ti-vector","ti-support","ti-stamp","ti-slice","ti-shortcode","ti-receipt","ti-pin2","ti-pin-alt","ti-pencil-alt2","ti-eraser","ti-more","ti-more-alt","ti-microphone-alt","ti-magnet","ti-line-double","ti-line-dotted","ti-line-dashed","ti-ink-pen","ti-info-alt","ti-help-alt","ti-headphone-alt","ti-gallery","ti-face-smile","ti-face-sad","ti-credit-card","ti-comments-smiley","ti-time","ti-share","ti-share-alt","ti-rocket","ti-new-window","ti-rss","ti-rss-alt","ti-control-stop","ti-control-shuffle","ti-control-play","ti-control-pause","ti-control-forward","ti-control-backward","ti-volume","ti-control-skip-forward","ti-control-skip-backward","ti-control-record","ti-control-eject","ti-paragraph","ti-uppercase","ti-underline","ti-text","ti-Italic","ti-smallcap","ti-list","ti-list-ol","ti-align-right","ti-align-left","ti-align-justify","ti-align-center","ti-quote-right","ti-quote-left","ti-layout-width-full","ti-layout-width-default","ti-layout-width-default-alt","ti-layout-tab","ti-layout-tab-window","ti-layout-tab-v","ti-layout-tab-min","ti-layout-slider","ti-layout-slider-alt","ti-layout-sidebar-right","ti-layout-sidebar-none","ti-layout-sidebar-left","ti-layout-placeholder","ti-layout-menu","ti-layout-menu-v","ti-layout-menu-separated","ti-layout-menu-full","ti-layout-media-right","ti-layout-media-right-alt","ti-layout-media-overlay","ti-layout-media-overlay-alt","ti-layout-media-overlay-alt-2","ti-layout-media-left","ti-layout-media-left-alt","ti-layout-media-center","ti-layout-media-center-alt","ti-layout-list-thumb","ti-layout-list-thumb-alt","ti-layout-list-post","ti-layout-list-large-image","ti-layout-line-solid","ti-layout-grid4","ti-layout-grid3","ti-layout-grid2","ti-layout-grid2-thumb","ti-layout-cta-right","ti-layout-cta-left","ti-layout-cta-center","ti-layout-cta-btn-right","ti-layout-cta-btn-left","ti-layout-column4","ti-layout-column3","ti-layout-column2","ti-layout-accordion-separated","ti-layout-accordion-merged","ti-layout-accordion-list","ti-widgetized","ti-widget","ti-widget-alt","ti-view-list","ti-view-list-alt","ti-view-grid","ti-upload","ti-download","ti-loop","ti-layout-sidebar-2","ti-layout-grid4-alt","ti-layout-grid3-alt","ti-layout-grid2-alt","ti-layout-column4-alt","ti-layout-column3-alt","ti-layout-column2-alt","ti-flickr","ti-flickr-alt","ti-instagram","ti-google","ti-github","ti-facebook","ti-dropbox","ti-dropbox-alt","ti-dribbble","ti-apple","ti-android","ti-yahoo","ti-trello","ti-stack-overflow","ti-soundcloud","ti-sharethis","ti-sharethis-alt","ti-reddit","ti-microsoft","ti-microsoft-alt","ti-linux","ti-jsfiddle","ti-joomla","ti-html5","ti-css3","ti-drupal","ti-wordpress","ti-tumblr","ti-tumblr-alt","ti-skype","ti-youtube","ti-vimeo","ti-vimeo-alt","ti-twitter","ti-twitter-alt","ti-linkedin","ti-pinterest","ti-pinterest-alt","ti-themify-logo","ti-themify-favicon","ti-themify-favicon-alt"],jf=["ion-ios-add","ion-ios-add-circle","ion-ios-add-circle-outline","ion-ios-airplane","ion-ios-alarm","ion-ios-albums","ion-ios-alert","ion-ios-american-football","ion-ios-analytics","ion-ios-aperture","ion-ios-apps","ion-ios-appstore","ion-ios-archive","ion-ios-arrow-back","ion-ios-arrow-down","ion-ios-arrow-dropdown","ion-ios-arrow-dropdown-circle","ion-ios-arrow-dropleft","ion-ios-arrow-dropleft-circle","ion-ios-arrow-dropright","ion-ios-arrow-dropright-circle","ion-ios-arrow-dropup","ion-ios-arrow-dropup-circle","ion-ios-arrow-forward","ion-ios-arrow-round-back","ion-ios-arrow-round-down","ion-ios-arrow-round-forward","ion-ios-arrow-round-up","ion-ios-arrow-up","ion-ios-at","ion-ios-attach","ion-ios-backspace","ion-ios-barcode","ion-ios-baseball","ion-ios-basket","ion-ios-basketball","ion-ios-battery-charging","ion-ios-battery-dead","ion-ios-battery-full","ion-ios-beaker","ion-ios-bed","ion-ios-beer","ion-ios-bicycle","ion-ios-bluetooth","ion-ios-boat","ion-ios-body","ion-ios-bonfire","ion-ios-book","ion-ios-bookmark","ion-ios-bookmarks","ion-ios-bowtie","ion-ios-briefcase","ion-ios-browsers","ion-ios-brush","ion-ios-bug","ion-ios-build","ion-ios-bulb","ion-ios-bus","ion-ios-business","ion-ios-cafe","ion-ios-calculator","ion-ios-calendar","ion-ios-call","ion-ios-camera","ion-ios-car","ion-ios-card","ion-ios-cart","ion-ios-cash","ion-ios-cellular","ion-ios-chatboxes","ion-ios-chatbubbles","ion-ios-checkbox","ion-ios-checkbox-outline","ion-ios-checkmark","ion-ios-checkmark-circle","ion-ios-checkmark-circle-outline","ion-ios-clipboard","ion-ios-clock","ion-ios-close","ion-ios-close-circle","ion-ios-close-circle-outline","ion-ios-cloud","ion-ios-cloud-circle","ion-ios-cloud-done","ion-ios-cloud-download","ion-ios-cloud-outline","ion-ios-cloud-upload","ion-ios-cloudy","ion-ios-cloudy-night","ion-ios-code","ion-ios-code-download","ion-ios-code-working","ion-ios-cog","ion-ios-color-fill","ion-ios-color-filter","ion-ios-color-palette","ion-ios-color-wand","ion-ios-compass","ion-ios-construct","ion-ios-contact","ion-ios-contacts","ion-ios-contract","ion-ios-contrast","ion-ios-copy","ion-ios-create","ion-ios-crop","ion-ios-cube","ion-ios-cut","ion-ios-desktop","ion-ios-disc","ion-ios-document","ion-ios-done-all","ion-ios-download","ion-ios-easel","ion-ios-egg","ion-ios-exit","ion-ios-expand","ion-ios-eye","ion-ios-eye-off","ion-ios-fastforward","ion-ios-female","ion-ios-filing","ion-ios-film","ion-ios-finger-print","ion-ios-fitness","ion-ios-flag","ion-ios-flame","ion-ios-flash","ion-ios-flash-off","ion-ios-flashlight","ion-ios-flask","ion-ios-flower","ion-ios-folder","ion-ios-folder-open","ion-ios-football","ion-ios-funnel","ion-ios-gift","ion-ios-git-branch","ion-ios-git-commit","ion-ios-git-compare","ion-ios-git-merge","ion-ios-git-network","ion-ios-git-pull-request","ion-ios-glasses","ion-ios-globe","ion-ios-grid","ion-ios-hammer","ion-ios-hand","ion-ios-happy","ion-ios-headset","ion-ios-heart","ion-ios-heart-dislike","ion-ios-heart-empty","ion-ios-heart-half","ion-ios-help","ion-ios-help-buoy","ion-ios-help-circle","ion-ios-help-circle-outline","ion-ios-home","ion-ios-hourglass","ion-ios-ice-cream","ion-ios-image","ion-ios-images","ion-ios-infinite","ion-ios-information","ion-ios-information-circle","ion-ios-information-circle-outline","ion-ios-jet","ion-ios-journal","ion-ios-key","ion-ios-keypad","ion-ios-laptop","ion-ios-leaf","ion-ios-link","ion-ios-list","ion-ios-list-box","ion-ios-locate","ion-ios-lock","ion-ios-log-in","ion-ios-log-out","ion-ios-magnet","ion-ios-mail","ion-ios-mail-open","ion-ios-mail-unread","ion-ios-male","ion-ios-man","ion-ios-map","ion-ios-medal","ion-ios-medical","ion-ios-medkit","ion-ios-megaphone","ion-ios-menu","ion-ios-mic","ion-ios-mic-off","ion-ios-microphone","ion-ios-moon","ion-ios-more","ion-ios-move","ion-ios-musical-note","ion-ios-musical-notes","ion-ios-navigate","ion-ios-notifications","ion-ios-notifications-off","ion-ios-notifications-outline","ion-ios-nuclear","ion-ios-nutrition","ion-ios-open","ion-ios-options","ion-ios-outlet","ion-ios-paper","ion-ios-paper-plane","ion-ios-partly-sunny","ion-ios-pause","ion-ios-paw","ion-ios-people","ion-ios-person","ion-ios-person-add","ion-ios-phone-landscape","ion-ios-phone-portrait","ion-ios-photos","ion-ios-pie","ion-ios-pin","ion-ios-pint","ion-ios-pizza","ion-ios-planet","ion-ios-play","ion-ios-play-circle","ion-ios-podium","ion-ios-power","ion-ios-pricetag","ion-ios-pricetags","ion-ios-print","ion-ios-pulse","ion-ios-qr-scanner","ion-ios-quote","ion-ios-radio","ion-ios-radio-button-off","ion-ios-radio-button-on","ion-ios-rainy","ion-ios-recording","ion-ios-redo","ion-ios-refresh","ion-ios-refresh-circle","ion-ios-remove","ion-ios-remove-circle","ion-ios-remove-circle-outline","ion-ios-reorder","ion-ios-repeat","ion-ios-resize","ion-ios-restaurant","ion-ios-return-left","ion-ios-return-right","ion-ios-reverse-camera","ion-ios-rewind","ion-ios-ribbon","ion-ios-rocket","ion-ios-rose","ion-ios-sad","ion-ios-save","ion-ios-school","ion-ios-search","ion-ios-send","ion-ios-settings","ion-ios-share","ion-ios-share-alt","ion-ios-shirt","ion-ios-shuffle","ion-ios-skip-backward","ion-ios-skip-forward","ion-ios-snow","ion-ios-speedometer","ion-ios-square","ion-ios-square-outline","ion-ios-star","ion-ios-star-half","ion-ios-star-outline","ion-ios-stats","ion-ios-stopwatch","ion-ios-subway","ion-ios-sunny","ion-ios-swap","ion-ios-switch","ion-ios-sync","ion-ios-tablet-landscape","ion-ios-tablet-portrait","ion-ios-tennisball","ion-ios-text","ion-ios-thermometer","ion-ios-thumbs-down","ion-ios-thumbs-up","ion-ios-thunderstorm","ion-ios-time","ion-ios-timer","ion-ios-today","ion-ios-train","ion-ios-transgender","ion-ios-trash","ion-ios-trending-down","ion-ios-trending-up","ion-ios-trophy","ion-ios-tv","ion-ios-umbrella","ion-ios-undo","ion-ios-unlock","ion-ios-videocam","ion-ios-volume-high","ion-ios-volume-low","ion-ios-volume-mute","ion-ios-volume-off","ion-ios-walk","ion-ios-wallet","ion-ios-warning","ion-ios-watch","ion-ios-water","ion-ios-wifi","ion-ios-wine","ion-ios-woman","ion-logo-android","ion-logo-angular","ion-logo-apple","ion-logo-bitbucket","ion-logo-bitcoin","ion-logo-buffer","ion-logo-chrome","ion-logo-closed-captioning","ion-logo-codepen","ion-logo-css3","ion-logo-designernews","ion-logo-dribbble","ion-logo-dropbox","ion-logo-euro","ion-logo-facebook","ion-logo-flickr","ion-logo-foursquare","ion-logo-freebsd-devil","ion-logo-game-controller-a","ion-logo-game-controller-b","ion-logo-github","ion-logo-google","ion-logo-googleplus","ion-logo-hackernews","ion-logo-html5","ion-logo-instagram","ion-logo-ionic","ion-logo-ionitron","ion-logo-javascript","ion-logo-linkedin","ion-logo-markdown","ion-logo-model-s","ion-logo-no-smoking","ion-logo-nodejs","ion-logo-npm","ion-logo-octocat","ion-logo-pinterest","ion-logo-playstation","ion-logo-polymer","ion-logo-python","ion-logo-reddit","ion-logo-rss","ion-logo-sass","ion-logo-skype","ion-logo-slack","ion-logo-snapchat","ion-logo-steam","ion-logo-tumblr","ion-logo-tux","ion-logo-twitch","ion-logo-twitter","ion-logo-usd","ion-logo-vimeo","ion-logo-vk","ion-logo-whatsapp","ion-logo-windows","ion-logo-wordpress","ion-logo-xbox","ion-logo-xing","ion-logo-yahoo","ion-logo-yen","ion-logo-youtube","ion-md-add","ion-md-add-circle","ion-md-add-circle-outline","ion-md-airplane","ion-md-alarm","ion-md-albums","ion-md-alert","ion-md-american-football","ion-md-analytics","ion-md-aperture","ion-md-apps","ion-md-appstore","ion-md-archive","ion-md-arrow-back","ion-md-arrow-down","ion-md-arrow-dropdown","ion-md-arrow-dropdown-circle","ion-md-arrow-dropleft","ion-md-arrow-dropleft-circle","ion-md-arrow-dropright","ion-md-arrow-dropright-circle","ion-md-arrow-dropup","ion-md-arrow-dropup-circle","ion-md-arrow-forward","ion-md-arrow-round-back","ion-md-arrow-round-down","ion-md-arrow-round-forward","ion-md-arrow-round-up","ion-md-arrow-up","ion-md-at","ion-md-attach","ion-md-backspace","ion-md-barcode","ion-md-baseball","ion-md-basket","ion-md-basketball","ion-md-battery-charging","ion-md-battery-dead","ion-md-battery-full","ion-md-beaker","ion-md-bed","ion-md-beer","ion-md-bicycle","ion-md-bluetooth","ion-md-boat","ion-md-body","ion-md-bonfire","ion-md-book","ion-md-bookmark","ion-md-bookmarks","ion-md-bowtie","ion-md-briefcase","ion-md-browsers","ion-md-brush","ion-md-bug","ion-md-build","ion-md-bulb","ion-md-bus","ion-md-business","ion-md-cafe","ion-md-calculator","ion-md-calendar","ion-md-call","ion-md-camera","ion-md-car","ion-md-card","ion-md-cart","ion-md-cash","ion-md-cellular","ion-md-chatboxes","ion-md-chatbubbles","ion-md-checkbox","ion-md-checkbox-outline","ion-md-checkmark","ion-md-checkmark-circle","ion-md-checkmark-circle-outline","ion-md-clipboard","ion-md-clock","ion-md-close","ion-md-close-circle","ion-md-close-circle-outline","ion-md-cloud","ion-md-cloud-circle","ion-md-cloud-done","ion-md-cloud-download","ion-md-cloud-outline","ion-md-cloud-upload","ion-md-cloudy","ion-md-cloudy-night","ion-md-code","ion-md-code-download","ion-md-code-working","ion-md-cog","ion-md-color-fill","ion-md-color-filter","ion-md-color-palette","ion-md-color-wand","ion-md-compass","ion-md-construct","ion-md-contact","ion-md-contacts","ion-md-contract","ion-md-contrast","ion-md-copy","ion-md-create","ion-md-crop","ion-md-cube","ion-md-cut","ion-md-desktop","ion-md-disc","ion-md-document","ion-md-done-all","ion-md-download","ion-md-easel","ion-md-egg","ion-md-exit","ion-md-expand","ion-md-eye","ion-md-eye-off","ion-md-fastforward","ion-md-female","ion-md-filing","ion-md-film","ion-md-finger-print","ion-md-fitness","ion-md-flag","ion-md-flame","ion-md-flash","ion-md-flash-off","ion-md-flashlight","ion-md-flask","ion-md-flower","ion-md-folder","ion-md-folder-open","ion-md-football","ion-md-funnel","ion-md-gift","ion-md-git-branch","ion-md-git-commit","ion-md-git-compare","ion-md-git-merge","ion-md-git-network","ion-md-git-pull-request","ion-md-glasses","ion-md-globe","ion-md-grid","ion-md-hammer","ion-md-hand","ion-md-happy","ion-md-headset","ion-md-heart","ion-md-heart-dislike","ion-md-heart-empty","ion-md-heart-half","ion-md-help","ion-md-help-buoy","ion-md-help-circle","ion-md-help-circle-outline","ion-md-home","ion-md-hourglass","ion-md-ice-cream","ion-md-image","ion-md-images","ion-md-infinite","ion-md-information","ion-md-information-circle","ion-md-information-circle-outline","ion-md-jet","ion-md-journal","ion-md-key","ion-md-keypad","ion-md-laptop","ion-md-leaf","ion-md-link","ion-md-list","ion-md-list-box","ion-md-locate","ion-md-lock","ion-md-log-in","ion-md-log-out","ion-md-magnet","ion-md-mail","ion-md-mail-open","ion-md-mail-unread","ion-md-male","ion-md-man","ion-md-map","ion-md-medal","ion-md-medical","ion-md-medkit","ion-md-megaphone","ion-md-menu","ion-md-mic","ion-md-mic-off","ion-md-microphone","ion-md-moon","ion-md-more","ion-md-move","ion-md-musical-note","ion-md-musical-notes","ion-md-navigate","ion-md-notifications","ion-md-notifications-off","ion-md-notifications-outline","ion-md-nuclear","ion-md-nutrition","ion-md-open","ion-md-options","ion-md-outlet","ion-md-paper","ion-md-paper-plane","ion-md-partly-sunny","ion-md-pause","ion-md-paw","ion-md-people","ion-md-person","ion-md-person-add","ion-md-phone-landscape","ion-md-phone-portrait","ion-md-photos","ion-md-pie","ion-md-pin","ion-md-pint","ion-md-pizza","ion-md-planet","ion-md-play","ion-md-play-circle","ion-md-podium","ion-md-power","ion-md-pricetag","ion-md-pricetags","ion-md-print","ion-md-pulse","ion-md-qr-scanner","ion-md-quote","ion-md-radio","ion-md-radio-button-off","ion-md-radio-button-on","ion-md-rainy","ion-md-recording","ion-md-redo","ion-md-refresh","ion-md-refresh-circle","ion-md-remove","ion-md-remove-circle","ion-md-remove-circle-outline","ion-md-reorder","ion-md-repeat","ion-md-resize","ion-md-restaurant","ion-md-return-left","ion-md-return-right","ion-md-reverse-camera","ion-md-rewind","ion-md-ribbon","ion-md-rocket","ion-md-rose","ion-md-sad","ion-md-save","ion-md-school","ion-md-search","ion-md-send","ion-md-settings","ion-md-share","ion-md-share-alt","ion-md-shirt","ion-md-shuffle","ion-md-skip-backward","ion-md-skip-forward","ion-md-snow","ion-md-speedometer","ion-md-square","ion-md-square-outline","ion-md-star","ion-md-star-half","ion-md-star-outline","ion-md-stats","ion-md-stopwatch","ion-md-subway","ion-md-sunny","ion-md-swap","ion-md-switch","ion-md-sync","ion-md-tablet-landscape","ion-md-tablet-portrait","ion-md-tennisball","ion-md-text","ion-md-thermometer","ion-md-thumbs-down","ion-md-thumbs-up","ion-md-thunderstorm","ion-md-time","ion-md-timer","ion-md-today","ion-md-train","ion-md-transgender","ion-md-trash","ion-md-trending-down","ion-md-trending-up","ion-md-trophy","ion-md-tv","ion-md-umbrella","ion-md-undo","ion-md-unlock","ion-md-videocam","ion-md-volume-high","ion-md-volume-low","ion-md-volume-mute","ion-md-volume-off","ion-md-walk","ion-md-wallet","ion-md-warning","ion-md-watch","ion-md-water","ion-md-wifi","ion-md-wine","ion-md-woman"],Bf=["fa-0","fa-1","fa-2","fa-3","fa-4","fa-5","fa-6","fa-7","fa-8","fa-9","fa-a","fa-address-book","fa-address-card","fa-align-center","fa-align-justify","fa-align-left","fa-align-right","fa-anchor-circle-check","fa-anchor-circle-exclamation","fa-anchor-circle-xmark","fa-anchor-lock","fa-anchor","fa-angle-down","fa-angle-left","fa-angle-right","fa-angle-up","fa-angles-down","fa-angles-left","fa-angles-right","fa-angles-up","fa-ankh","fa-apple-whole","fa-archway","fa-arrow-down-1-9","fa-arrow-down-9-1","fa-arrow-down-a-z","fa-arrow-down-long","fa-arrow-down-short-wide","fa-arrow-down-up-across-line","fa-arrow-down-up-lock","fa-arrow-down-wide-short","fa-arrow-down-z-a","fa-arrow-down","fa-arrow-left-long","fa-arrow-left","fa-arrow-pointer","fa-arrow-right-arrow-left","fa-arrow-right-from-bracket","fa-arrow-right-long","fa-arrow-right-to-bracket","fa-arrow-right-to-city","fa-arrow-right","fa-arrow-rotate-left","fa-arrow-rotate-right","fa-arrow-trend-down","fa-arrow-trend-up","fa-arrow-turn-down","fa-arrow-turn-up","fa-arrow-up-1-9","fa-arrow-up-9-1","fa-arrow-up-a-z","fa-arrow-up-from-bracket","fa-arrow-up-from-ground-water","fa-arrow-up-from-water-pump","fa-arrow-up-long","fa-arrow-up-right-dots","fa-arrow-up-right-from-square","fa-arrow-up-short-wide","fa-arrow-up-wide-short","fa-arrow-up-z-a","fa-arrow-up","fa-arrows-down-to-line","fa-arrows-down-to-people","fa-arrows-left-right-to-line","fa-arrows-left-right","fa-arrows-rotate","fa-arrows-spin","fa-arrows-split-up-and-left","fa-arrows-to-circle","fa-arrows-to-dot","fa-arrows-to-eye","fa-arrows-turn-right","fa-arrows-turn-to-dots","fa-arrows-up-down-left-right","fa-arrows-up-down","fa-arrows-up-to-line","fa-asterisk","fa-at","fa-atom","fa-audio-description","fa-austral-sign","fa-award","fa-b","fa-baby-carriage","fa-baby","fa-backward-fast","fa-backward-step","fa-backward","fa-bacon","fa-bacteria","fa-bacterium","fa-bag-shopping","fa-bahai","fa-baht-sign","fa-ban-smoking","fa-ban","fa-bandage","fa-bangladeshi-taka-sign","fa-barcode","fa-bars-progress","fa-bars-staggered","fa-bars","fa-baseball-bat-ball","fa-baseball","fa-basket-shopping","fa-basketball","fa-bath","fa-battery-empty","fa-battery-full","fa-battery-half","fa-battery-quarter","fa-battery-three-quarters","fa-bed-pulse","fa-bed","fa-beer-mug-empty","fa-bell-concierge","fa-bell-slash","fa-bell","fa-bezier-curve","fa-bicycle","fa-binoculars","fa-biohazard","fa-bitcoin-sign","fa-blender-phone","fa-blender","fa-blog","fa-bold","fa-bolt-lightning","fa-bolt","fa-bomb","fa-bone","fa-bong","fa-book-atlas","fa-book-bible","fa-book-bookmark","fa-book-journal-whills","fa-book-medical","fa-book-open-reader","fa-book-open","fa-book-quran","fa-book-skull","fa-book-tanakh","fa-book","fa-bookmark","fa-border-all","fa-border-none","fa-border-top-left","fa-bore-hole","fa-bottle-droplet","fa-bottle-water","fa-bowl-food","fa-bowl-rice","fa-bowling-ball","fa-box-archive","fa-box-open","fa-box-tissue","fa-box","fa-boxes-packing","fa-boxes-stacked","fa-braille","fa-brain","fa-brazilian-real-sign","fa-bread-slice","fa-bridge-circle-check","fa-bridge-circle-exclamation","fa-bridge-circle-xmark","fa-bridge-lock","fa-bridge-water","fa-bridge","fa-briefcase-medical","fa-briefcase","fa-broom-ball","fa-broom","fa-brush","fa-bucket","fa-bug-slash","fa-bug","fa-bugs","fa-building-circle-arrow-right","fa-building-circle-check","fa-building-circle-exclamation","fa-building-circle-xmark","fa-building-columns","fa-building-flag","fa-building-lock","fa-building-ngo","fa-building-shield","fa-building-un","fa-building-user","fa-building-wheat","fa-building","fa-bullhorn","fa-bullseye","fa-burger","fa-burst","fa-bus-simple","fa-bus","fa-business-time","fa-c","fa-cable-car","fa-cake-candles","fa-calculator","fa-calendar-check","fa-calendar-day","fa-calendar-days","fa-calendar-minus","fa-calendar-plus","fa-calendar-week","fa-calendar-xmark","fa-calendar","fa-camera-retro","fa-camera-rotate","fa-camera","fa-campground","fa-candy-cane","fa-cannabis","fa-capsules","fa-car-battery","fa-car-burst","fa-car-on","fa-car-rear","fa-car-side","fa-car-tunnel","fa-car","fa-caravan","fa-caret-down","fa-caret-left","fa-caret-right","fa-caret-up","fa-carrot","fa-cart-arrow-down","fa-cart-flatbed-suitcase","fa-cart-flatbed","fa-cart-plus","fa-cart-shopping","fa-cash-register","fa-cat","fa-cedi-sign","fa-cent-sign","fa-certificate","fa-chair","fa-chalkboard-user","fa-chalkboard","fa-champagne-glasses","fa-charging-station","fa-chart-area","fa-chart-bar","fa-chart-column","fa-chart-gantt","fa-chart-line","fa-chart-pie","fa-chart-simple","fa-check-double","fa-check-to-slot","fa-check","fa-cheese","fa-chess-bishop","fa-chess-board","fa-chess-king","fa-chess-knight","fa-chess-pawn","fa-chess-queen","fa-chess-rook","fa-chess","fa-chevron-down","fa-chevron-left","fa-chevron-right","fa-chevron-up","fa-child-combatant","fa-child-dress","fa-child-reaching","fa-child","fa-children","fa-church","fa-circle-arrow-down","fa-circle-arrow-left","fa-circle-arrow-right","fa-circle-arrow-up","fa-circle-check","fa-circle-chevron-down","fa-circle-chevron-left","fa-circle-chevron-right","fa-circle-chevron-up","fa-circle-dollar-to-slot","fa-circle-dot","fa-circle-down","fa-circle-exclamation","fa-circle-h","fa-circle-half-stroke","fa-circle-info","fa-circle-left","fa-circle-minus","fa-circle-nodes","fa-circle-notch","fa-circle-pause","fa-circle-play","fa-circle-plus","fa-circle-question","fa-circle-radiation","fa-circle-right","fa-circle-stop","fa-circle-up","fa-circle-user","fa-circle-xmark","fa-circle","fa-city","fa-clapperboard","fa-clipboard-check","fa-clipboard-list","fa-clipboard-question","fa-clipboard-user","fa-clipboard","fa-clock-rotate-left","fa-clock","fa-clone","fa-closed-captioning","fa-cloud-arrow-down","fa-cloud-arrow-up","fa-cloud-bolt","fa-cloud-meatball","fa-cloud-moon-rain","fa-cloud-moon","fa-cloud-rain","fa-cloud-showers-heavy","fa-cloud-showers-water","fa-cloud-sun-rain","fa-cloud-sun","fa-cloud","fa-clover","fa-code-branch","fa-code-commit","fa-code-compare","fa-code-fork","fa-code-merge","fa-code-pull-request","fa-code","fa-coins","fa-colon-sign","fa-comment-dollar","fa-comment-dots","fa-comment-medical","fa-comment-slash","fa-comment-sms","fa-comment","fa-comments-dollar","fa-comments","fa-compact-disc","fa-compass-drafting","fa-compass","fa-compress","fa-computer-mouse","fa-computer","fa-cookie-bite","fa-cookie","fa-copy","fa-copyright","fa-couch","fa-cow","fa-credit-card","fa-crop-simple","fa-crop","fa-cross","fa-crosshairs","fa-crow","fa-crown","fa-crutch","fa-cruzeiro-sign","fa-cube","fa-cubes-stacked","fa-cubes","fa-d","fa-database","fa-delete-left","fa-democrat","fa-desktop","fa-dharmachakra","fa-diagram-next","fa-diagram-predecessor","fa-diagram-project","fa-diagram-successor","fa-diamond-turn-right","fa-diamond","fa-dice-d20","fa-dice-d6","fa-dice-five","fa-dice-four","fa-dice-one","fa-dice-six","fa-dice-three","fa-dice-two","fa-dice","fa-disease","fa-display","fa-divide","fa-dna","fa-dog","fa-dollar-sign","fa-dolly","fa-dong-sign","fa-door-closed","fa-door-open","fa-dove","fa-down-left-and-up-right-to-center","fa-down-long","fa-download","fa-dragon","fa-draw-polygon","fa-droplet-slash","fa-droplet","fa-drum-steelpan","fa-drum","fa-drumstick-bite","fa-dumbbell","fa-dumpster-fire","fa-dumpster","fa-dungeon","fa-e","fa-ear-deaf","fa-ear-listen","fa-earth-africa","fa-earth-americas","fa-earth-asia","fa-earth-europe","fa-earth-oceania","fa-egg","fa-eject","fa-elevator","fa-ellipsis-vertical","fa-ellipsis","fa-envelope-circle-check","fa-envelope-open-text","fa-envelope-open","fa-envelope","fa-envelopes-bulk","fa-equals","fa-eraser","fa-ethernet","fa-euro-sign","fa-exclamation","fa-expand","fa-explosion","fa-eye-dropper","fa-eye-low-vision","fa-eye-slash","fa-eye","fa-f","fa-face-angry","fa-face-dizzy","fa-face-flushed","fa-face-frown-open","fa-face-frown","fa-face-grimace","fa-face-grin-beam-sweat","fa-face-grin-beam","fa-face-grin-hearts","fa-face-grin-squint-tears","fa-face-grin-squint","fa-face-grin-stars","fa-face-grin-tears","fa-face-grin-tongue-squint","fa-face-grin-tongue-wink","fa-face-grin-tongue","fa-face-grin-wide","fa-face-grin-wink","fa-face-grin","fa-face-kiss-beam","fa-face-kiss-wink-heart","fa-face-kiss","fa-face-laugh-beam","fa-face-laugh-squint","fa-face-laugh-wink","fa-face-laugh","fa-face-meh-blank","fa-face-meh","fa-face-rolling-eyes","fa-face-sad-cry","fa-face-sad-tear","fa-face-smile-beam","fa-face-smile-wink","fa-face-smile","fa-face-surprise","fa-face-tired","fa-fan","fa-faucet-drip","fa-faucet","fa-fax","fa-feather-pointed","fa-feather","fa-ferry","fa-file-arrow-down","fa-file-arrow-up","fa-file-audio","fa-file-circle-check","fa-file-circle-exclamation","fa-file-circle-minus","fa-file-circle-plus","fa-file-circle-question","fa-file-circle-xmark","fa-file-code","fa-file-contract","fa-file-csv","fa-file-excel","fa-file-export","fa-file-image","fa-file-import","fa-file-invoice-dollar","fa-file-invoice","fa-file-lines","fa-file-medical","fa-file-pdf","fa-file-pen","fa-file-powerpoint","fa-file-prescription","fa-file-shield","fa-file-signature","fa-file-video","fa-file-waveform","fa-file-word","fa-file-zipper","fa-file","fa-fill-drip","fa-fill","fa-film","fa-filter-circle-dollar","fa-filter-circle-xmark","fa-filter","fa-fingerprint","fa-fire-burner","fa-fire-extinguisher","fa-fire-flame-curved","fa-fire-flame-simple","fa-fire","fa-fish-fins","fa-fish","fa-flag-checkered","fa-flag-usa","fa-flag","fa-flask-vial","fa-flask","fa-floppy-disk","fa-florin-sign","fa-folder-closed","fa-folder-minus","fa-folder-open","fa-folder-plus","fa-folder-tree","fa-folder","fa-font-awesome","fa-font","fa-football","fa-forward-fast","fa-forward-step","fa-forward","fa-franc-sign","fa-frog","fa-futbol","fa-g","fa-gamepad","fa-gas-pump","fa-gauge-high","fa-gauge-simple-high","fa-gauge-simple","fa-gauge","fa-gavel","fa-gear","fa-gears","fa-gem","fa-genderless","fa-ghost","fa-gift","fa-gifts","fa-glass-water-droplet","fa-glass-water","fa-glasses","fa-globe","fa-golf-ball-tee","fa-gopuram","fa-graduation-cap","fa-greater-than-equal","fa-greater-than","fa-grip-lines-vertical","fa-grip-lines","fa-grip-vertical","fa-grip","fa-group-arrows-rotate","fa-guarani-sign","fa-guitar","fa-gun","fa-h","fa-hammer","fa-hamsa","fa-hand-back-fist","fa-hand-dots","fa-hand-fist","fa-hand-holding-dollar","fa-hand-holding-droplet","fa-hand-holding-hand","fa-hand-holding-heart","fa-hand-holding-medical","fa-hand-holding","fa-hand-lizard","fa-hand-middle-finger","fa-hand-peace","fa-hand-point-down","fa-hand-point-left","fa-hand-point-right","fa-hand-point-up","fa-hand-pointer","fa-hand-scissors","fa-hand-sparkles","fa-hand-spock","fa-hand","fa-handcuffs","fa-hands-asl-interpreting","fa-hands-bound","fa-hands-bubbles","fa-hands-clapping","fa-hands-holding-child","fa-hands-holding-circle","fa-hands-holding","fa-hands-praying","fa-hands","fa-handshake-angle","fa-handshake-simple-slash","fa-handshake-simple","fa-handshake-slash","fa-handshake","fa-hanukiah","fa-hard-drive","fa-hashtag","fa-hat-cowboy-side","fa-hat-cowboy","fa-hat-wizard","fa-head-side-cough-slash","fa-head-side-cough","fa-head-side-mask","fa-head-side-virus","fa-heading","fa-headphones-simple","fa-headphones","fa-headset","fa-heart-circle-bolt","fa-heart-circle-check","fa-heart-circle-exclamation","fa-heart-circle-minus","fa-heart-circle-plus","fa-heart-circle-xmark","fa-heart-crack","fa-heart-pulse","fa-heart","fa-helicopter-symbol","fa-helicopter","fa-helmet-safety","fa-helmet-un","fa-highlighter","fa-hill-avalanche","fa-hill-rockslide","fa-hippo","fa-hockey-puck","fa-holly-berry","fa-horse-head","fa-horse","fa-hospital-user","fa-hospital","fa-hot-tub-person","fa-hotdog","fa-hotel","fa-hourglass-end","fa-hourglass-half","fa-hourglass-start","fa-hourglass","fa-house-chimney-crack","fa-house-chimney-medical","fa-house-chimney-user","fa-house-chimney-window","fa-house-chimney","fa-house-circle-check","fa-house-circle-exclamation","fa-house-circle-xmark","fa-house-crack","fa-house-fire","fa-house-flag","fa-house-flood-water-circle-arrow-right","fa-house-flood-water","fa-house-laptop","fa-house-lock","fa-house-medical-circle-check","fa-house-medical-circle-exclamation","fa-house-medical-circle-xmark","fa-house-medical-flag","fa-house-medical","fa-house-signal","fa-house-tsunami","fa-house-user","fa-house","fa-hryvnia-sign","fa-hurricane","fa-i-cursor","fa-i","fa-ice-cream","fa-icicles","fa-icons","fa-id-badge","fa-id-card-clip","fa-id-card","fa-igloo","fa-image-portrait","fa-image","fa-images","fa-inbox","fa-indent","fa-indian-rupee-sign","fa-industry","fa-infinity","fa-info","fa-italic","fa-j","fa-jar-wheat","fa-jar","fa-jedi","fa-jet-fighter-up","fa-jet-fighter","fa-joint","fa-jug-detergent","fa-k","fa-kaaba","fa-key","fa-keyboard","fa-khanda","fa-kip-sign","fa-kit-medical","fa-kitchen-set","fa-kiwi-bird","fa-l","fa-land-mine-on","fa-landmark-dome","fa-landmark-flag","fa-landmark","fa-language","fa-laptop-code","fa-laptop-file","fa-laptop-medical","fa-laptop","fa-lari-sign","fa-layer-group","fa-leaf","fa-left-long","fa-left-right","fa-lemon","fa-less-than-equal","fa-less-than","fa-life-ring","fa-lightbulb","fa-lines-leaning","fa-link-slash","fa-link","fa-lira-sign","fa-list-check","fa-list-ol","fa-list-ul","fa-list","fa-litecoin-sign","fa-location-arrow","fa-location-crosshairs","fa-location-dot","fa-location-pin-lock","fa-location-pin","fa-lock-open","fa-lock","fa-locust","fa-lungs-virus","fa-lungs","fa-m","fa-magnet","fa-magnifying-glass-arrow-right","fa-magnifying-glass-chart","fa-magnifying-glass-dollar","fa-magnifying-glass-location","fa-magnifying-glass-minus","fa-magnifying-glass-plus","fa-magnifying-glass","fa-manat-sign","fa-map-location-dot","fa-map-location","fa-map-pin","fa-map","fa-marker","fa-mars-and-venus-burst","fa-mars-and-venus","fa-mars-double","fa-mars-stroke-right","fa-mars-stroke-up","fa-mars-stroke","fa-mars","fa-martini-glass-citrus","fa-martini-glass-empty","fa-martini-glass","fa-mask-face","fa-mask-ventilator","fa-mask","fa-masks-theater","fa-mattress-pillow","fa-maximize","fa-medal","fa-memory","fa-menorah","fa-mercury","fa-message","fa-meteor","fa-microchip","fa-microphone-lines-slash","fa-microphone-lines","fa-microphone-slash","fa-microphone","fa-microscope","fa-mill-sign","fa-minimize","fa-minus","fa-mitten","fa-mobile-button","fa-mobile-retro","fa-mobile-screen-button","fa-mobile-screen","fa-mobile","fa-money-bill-1-wave","fa-money-bill-1","fa-money-bill-transfer","fa-money-bill-trend-up","fa-money-bill-wave","fa-money-bill-wheat","fa-money-bill","fa-money-bills","fa-money-check-dollar","fa-money-check","fa-monument","fa-moon","fa-mortar-pestle","fa-mosque","fa-mosquito-net","fa-mosquito","fa-motorcycle","fa-mound","fa-mountain-city","fa-mountain-sun","fa-mountain","fa-mug-hot","fa-mug-saucer","fa-music","fa-n","fa-naira-sign","fa-network-wired","fa-neuter","fa-newspaper","fa-not-equal","fa-notdef","fa-note-sticky","fa-notes-medical","fa-o","fa-object-group","fa-object-ungroup","fa-oil-can","fa-oil-well","fa-om","fa-otter","fa-outdent","fa-p","fa-pager","fa-paint-roller","fa-paintbrush","fa-palette","fa-pallet","fa-panorama","fa-paper-plane","fa-paperclip","fa-parachute-box","fa-paragraph","fa-passport","fa-paste","fa-pause","fa-paw","fa-peace","fa-pen-clip","fa-pen-fancy","fa-pen-nib","fa-pen-ruler","fa-pen-to-square","fa-pen","fa-pencil","fa-people-arrows","fa-people-carry-box","fa-people-group","fa-people-line","fa-people-pulling","fa-people-robbery","fa-people-roof","fa-pepper-hot","fa-percent","fa-person-arrow-down-to-line","fa-person-arrow-up-from-line","fa-person-biking","fa-person-booth","fa-person-breastfeeding","fa-person-burst","fa-person-cane","fa-person-chalkboard","fa-person-circle-check","fa-person-circle-exclamation","fa-person-circle-minus","fa-person-circle-plus","fa-person-circle-question","fa-person-circle-xmark","fa-person-digging","fa-person-dots-from-line","fa-person-dress-burst","fa-person-dress","fa-person-drowning","fa-person-falling-burst","fa-person-falling","fa-person-half-dress","fa-person-harassing","fa-person-hiking","fa-person-military-pointing","fa-person-military-rifle","fa-person-military-to-person","fa-person-praying","fa-person-pregnant","fa-person-rays","fa-person-rifle","fa-person-running","fa-person-shelter","fa-person-skating","fa-person-skiing-nordic","fa-person-skiing","fa-person-snowboarding","fa-person-swimming","fa-person-through-window","fa-person-walking-arrow-loop-left","fa-person-walking-arrow-right","fa-person-walking-dashed-line-arrow-right","fa-person-walking-luggage","fa-person-walking-with-cane","fa-person-walking","fa-person","fa-peseta-sign","fa-peso-sign","fa-phone-flip","fa-phone-slash","fa-phone-volume","fa-phone","fa-photo-film","fa-piggy-bank","fa-pills","fa-pizza-slice","fa-place-of-worship","fa-plane-arrival","fa-plane-circle-check","fa-plane-circle-exclamation","fa-plane-circle-xmark","fa-plane-departure","fa-plane-lock","fa-plane-slash","fa-plane-up","fa-plane","fa-plant-wilt","fa-plate-wheat","fa-play","fa-plug-circle-bolt","fa-plug-circle-check","fa-plug-circle-exclamation","fa-plug-circle-minus","fa-plug-circle-plus","fa-plug-circle-xmark","fa-plug","fa-plus-minus","fa-plus","fa-podcast","fa-poo-storm","fa-poo","fa-poop","fa-power-off","fa-prescription-bottle-medical","fa-prescription-bottle","fa-prescription","fa-print","fa-pump-medical","fa-pump-soap","fa-puzzle-piece","fa-q","fa-qrcode","fa-question","fa-quote-left","fa-quote-right","fa-r","fa-radiation","fa-radio","fa-rainbow","fa-ranking-star","fa-receipt","fa-record-vinyl","fa-rectangle-ad","fa-rectangle-list","fa-rectangle-xmark","fa-recycle","fa-registered","fa-repeat","fa-reply-all","fa-reply","fa-republican","fa-restroom","fa-retweet","fa-ribbon","fa-right-from-bracket","fa-right-left","fa-right-long","fa-right-to-bracket","fa-ring","fa-road-barrier","fa-road-bridge","fa-road-circle-check","fa-road-circle-exclamation","fa-road-circle-xmark","fa-road-lock","fa-road-spikes","fa-road","fa-robot","fa-rocket","fa-rotate-left","fa-rotate-right","fa-rotate","fa-route","fa-rss","fa-ruble-sign","fa-rug","fa-ruler-combined","fa-ruler-horizontal","fa-ruler-vertical","fa-ruler","fa-rupee-sign","fa-rupiah-sign","fa-s","fa-sack-dollar","fa-sack-xmark","fa-sailboat","fa-satellite-dish","fa-satellite","fa-scale-balanced","fa-scale-unbalanced-flip","fa-scale-unbalanced","fa-school-circle-check","fa-school-circle-exclamation","fa-school-circle-xmark","fa-school-flag","fa-school-lock","fa-school","fa-scissors","fa-screwdriver-wrench","fa-screwdriver","fa-scroll-torah","fa-scroll","fa-sd-card","fa-section","fa-seedling","fa-server","fa-shapes","fa-share-from-square","fa-share-nodes","fa-share","fa-sheet-plastic","fa-shekel-sign","fa-shield-cat","fa-shield-dog","fa-shield-halved","fa-shield-heart","fa-shield-virus","fa-shield","fa-ship","fa-shirt","fa-shoe-prints","fa-shop-lock","fa-shop-slash","fa-shop","fa-shower","fa-shrimp","fa-shuffle","fa-shuttle-space","fa-sign-hanging","fa-signal","fa-signature","fa-signs-post","fa-sim-card","fa-sink","fa-sitemap","fa-skull-crossbones","fa-skull","fa-slash","fa-sleigh","fa-sliders","fa-smog","fa-smoking","fa-snowflake","fa-snowman","fa-snowplow","fa-soap","fa-socks","fa-solar-panel","fa-sort-down","fa-sort-up","fa-sort","fa-spa","fa-spaghetti-monster-flying","fa-spell-check","fa-spider","fa-spinner","fa-splotch","fa-spoon","fa-spray-can-sparkles","fa-spray-can","fa-square-arrow-up-right","fa-square-caret-down","fa-square-caret-left","fa-square-caret-right","fa-square-caret-up","fa-square-check","fa-square-envelope","fa-square-full","fa-square-h","fa-square-minus","fa-square-nfi","fa-square-parking","fa-square-pen","fa-square-person-confined","fa-square-phone-flip","fa-square-phone","fa-square-plus","fa-square-poll-horizontal","fa-square-poll-vertical","fa-square-root-variable","fa-square-rss","fa-square-share-nodes","fa-square-up-right","fa-square-virus","fa-square-xmark","fa-square","fa-staff-snake","fa-stairs","fa-stamp","fa-stapler","fa-star-and-crescent","fa-star-half-stroke","fa-star-half","fa-star-of-david","fa-star-of-life","fa-star","fa-sterling-sign","fa-stethoscope","fa-stop","fa-stopwatch-20","fa-stopwatch","fa-store-slash","fa-store","fa-street-view","fa-strikethrough","fa-stroopwafel","fa-subscript","fa-suitcase-medical","fa-suitcase-rolling","fa-suitcase","fa-sun-plant-wilt","fa-sun","fa-superscript","fa-swatchbook","fa-synagogue","fa-syringe","fa-t","fa-table-cells-large","fa-table-cells","fa-table-columns","fa-table-list","fa-table-tennis-paddle-ball","fa-table","fa-tablet-button","fa-tablet-screen-button","fa-tablet","fa-tablets","fa-tachograph-digital","fa-tag","fa-tags","fa-tape","fa-tarp-droplet","fa-tarp","fa-taxi","fa-teeth-open","fa-teeth","fa-temperature-arrow-down","fa-temperature-arrow-up","fa-temperature-empty","fa-temperature-full","fa-temperature-half","fa-temperature-high","fa-temperature-low","fa-temperature-quarter","fa-temperature-three-quarters","fa-tenge-sign","fa-tent-arrow-down-to-line","fa-tent-arrow-left-right","fa-tent-arrow-turn-left","fa-tent-arrows-down","fa-tent","fa-tents","fa-terminal","fa-text-height","fa-text-slash","fa-text-width","fa-thermometer","fa-thumbs-down","fa-thumbs-up","fa-thumbtack","fa-ticket-simple","fa-ticket","fa-timeline","fa-toggle-off","fa-toggle-on","fa-toilet-paper-slash","fa-toilet-paper","fa-toilet-portable","fa-toilet","fa-toilets-portable","fa-toolbox","fa-tooth","fa-torii-gate","fa-tornado","fa-tower-broadcast","fa-tower-cell","fa-tower-observation","fa-tractor","fa-trademark","fa-traffic-light","fa-trailer","fa-train-subway","fa-train-tram","fa-train","fa-transgender","fa-trash-arrow-up","fa-trash-can-arrow-up","fa-trash-can","fa-trash","fa-tree-city","fa-tree","fa-triangle-exclamation","fa-trophy","fa-trowel-bricks","fa-trowel","fa-truck-arrow-right","fa-truck-droplet","fa-truck-fast","fa-truck-field-un","fa-truck-field","fa-truck-front","fa-truck-medical","fa-truck-monster","fa-truck-moving","fa-truck-pickup","fa-truck-plane","fa-truck-ramp-box","fa-truck","fa-tty","fa-turkish-lira-sign","fa-turn-down","fa-turn-up","fa-tv","fa-u","fa-umbrella-beach","fa-umbrella","fa-underline","fa-universal-access","fa-unlock-keyhole","fa-unlock","fa-up-down-left-right","fa-up-down","fa-up-long","fa-up-right-and-down-left-from-center","fa-up-right-from-square","fa-upload","fa-user-astronaut","fa-user-check","fa-user-clock","fa-user-doctor","fa-user-gear","fa-user-graduate","fa-user-group","fa-user-injured","fa-user-large-slash","fa-user-large","fa-user-lock","fa-user-minus","fa-user-ninja","fa-user-nurse","fa-user-pen","fa-user-plus","fa-user-secret","fa-user-shield","fa-user-slash","fa-user-tag","fa-user-tie","fa-user-xmark","fa-user","fa-users-between-lines","fa-users-gear","fa-users-line","fa-users-rays","fa-users-rectangle","fa-users-slash","fa-users-viewfinder","fa-users","fa-utensils","fa-v","fa-van-shuttle","fa-vault","fa-vector-square","fa-venus-double","fa-venus-mars","fa-venus","fa-vest-patches","fa-vest","fa-vial-circle-check","fa-vial-virus","fa-vial","fa-vials","fa-video-slash","fa-video","fa-vihara","fa-virus-covid-slash","fa-virus-covid","fa-virus-slash","fa-virus","fa-viruses","fa-voicemail","fa-volcano","fa-volleyball","fa-volume-high","fa-volume-low","fa-volume-off","fa-volume-xmark","fa-vr-cardboard","fa-w","fa-walkie-talkie","fa-wallet","fa-wand-magic-sparkles","fa-wand-magic","fa-wand-sparkles","fa-warehouse","fa-water-ladder","fa-water","fa-wave-square","fa-weight-hanging","fa-weight-scale","fa-wheat-awn-circle-exclamation","fa-wheat-awn","fa-wheelchair-move","fa-wheelchair","fa-whiskey-glass","fa-wifi","fa-wind","fa-window-maximize","fa-window-minimize","fa-window-restore","fa-wine-bottle","fa-wine-glass-empty","fa-wine-glass","fa-won-sign","fa-worm","fa-wrench","fa-x-ray","fa-x","fa-xmark","fa-xmarks-lines","fa-y","fa-yen-sign","fa-yin-yang","fa-z"],Rf=["fa-address-book","fa-address-card","fa-bell-slash","fa-bell","fa-bookmark","fa-building","fa-calendar-check","fa-calendar-days","fa-calendar-minus","fa-calendar-plus","fa-calendar-xmark","fa-calendar","fa-chart-bar","fa-chess-bishop","fa-chess-king","fa-chess-knight","fa-chess-pawn","fa-chess-queen","fa-chess-rook","fa-circle-check","fa-circle-dot","fa-circle-down","fa-circle-left","fa-circle-pause","fa-circle-play","fa-circle-question","fa-circle-right","fa-circle-stop","fa-circle-up","fa-circle-user","fa-circle-xmark","fa-circle","fa-clipboard","fa-clock","fa-clone","fa-closed-captioning","fa-comment-dots","fa-comment","fa-comments","fa-compass","fa-copy","fa-copyright","fa-credit-card","fa-envelope-open","fa-envelope","fa-eye-slash","fa-eye","fa-face-angry","fa-face-dizzy","fa-face-flushed","fa-face-frown-open","fa-face-frown","fa-face-grimace","fa-face-grin-beam-sweat","fa-face-grin-beam","fa-face-grin-hearts","fa-face-grin-squint-tears","fa-face-grin-squint","fa-face-grin-stars","fa-face-grin-tears","fa-face-grin-tongue-squint","fa-face-grin-tongue-wink","fa-face-grin-tongue","fa-face-grin-wide","fa-face-grin-wink","fa-face-grin","fa-face-kiss-beam","fa-face-kiss-wink-heart","fa-face-kiss","fa-face-laugh-beam","fa-face-laugh-squint","fa-face-laugh-wink","fa-face-laugh","fa-face-meh-blank","fa-face-meh","fa-face-rolling-eyes","fa-face-sad-cry","fa-face-sad-tear","fa-face-smile-beam","fa-face-smile-wink","fa-face-smile","fa-face-surprise","fa-face-tired","fa-file-audio","fa-file-code","fa-file-excel","fa-file-image","fa-file-lines","fa-file-pdf","fa-file-powerpoint","fa-file-video","fa-file-word","fa-file-zipper","fa-file","fa-flag","fa-floppy-disk","fa-folder-closed","fa-folder-open","fa-folder","fa-font-awesome","fa-futbol","fa-gem","fa-hand-back-fist","fa-hand-lizard","fa-hand-peace","fa-hand-point-down","fa-hand-point-left","fa-hand-point-right","fa-hand-point-up","fa-hand-pointer","fa-hand-scissors","fa-hand-spock","fa-hand","fa-handshake","fa-hard-drive","fa-heart","fa-hospital","fa-hourglass-half","fa-hourglass","fa-id-badge","fa-id-card","fa-image","fa-images","fa-keyboard","fa-lemon","fa-life-ring","fa-lightbulb","fa-map","fa-message","fa-money-bill-1","fa-moon","fa-newspaper","fa-note-sticky","fa-object-group","fa-object-ungroup","fa-paper-plane","fa-paste","fa-pen-to-square","fa-rectangle-list","fa-rectangle-xmark","fa-registered","fa-share-from-square","fa-snowflake","fa-square-caret-down","fa-square-caret-left","fa-square-caret-right","fa-square-caret-up","fa-square-check","fa-square-full","fa-square-minus","fa-square-plus","fa-square","fa-star-half-stroke","fa-star-half","fa-star","fa-sun","fa-thumbs-down","fa-thumbs-up","fa-trash-can","fa-user","fa-window-maximize","fa-window-minimize","fa-window-restore"],Vf=["fa-42-group","fa-500px","fa-accessible-icon","fa-accusoft","fa-adn","fa-adversal","fa-affiliatetheme","fa-airbnb","fa-algolia","fa-alipay","fa-amazon-pay","fa-amazon","fa-amilia","fa-android","fa-angellist","fa-angrycreative","fa-angular","fa-app-store-ios","fa-app-store","fa-apper","fa-apple-pay","fa-apple","fa-artstation","fa-asymmetrik","fa-atlassian","fa-audible","fa-autoprefixer","fa-avianex","fa-aviato","fa-aws","fa-bandcamp","fa-battle-net","fa-behance-square","fa-behance","fa-bilibili","fa-bimobject","fa-bitbucket","fa-bitcoin","fa-bity","fa-black-tie","fa-blackberry","fa-blogger-b","fa-blogger","fa-bluetooth-b","fa-bluetooth","fa-bootstrap","fa-bots","fa-btc","fa-buffer","fa-buromobelexperte","fa-buy-n-large","fa-buysellads","fa-canadian-maple-leaf","fa-cc-amazon-pay","fa-cc-amex","fa-cc-apple-pay","fa-cc-diners-club","fa-cc-discover","fa-cc-jcb","fa-cc-mastercard","fa-cc-paypal","fa-cc-stripe","fa-cc-visa","fa-centercode","fa-centos","fa-chrome","fa-chromecast","fa-cloudflare","fa-cloudscale","fa-cloudsmith","fa-cloudversify","fa-cmplid","fa-codepen","fa-codiepie","fa-confluence","fa-connectdevelop","fa-contao","fa-cotton-bureau","fa-cpanel","fa-creative-commons-by","fa-creative-commons-nc-eu","fa-creative-commons-nc-jp","fa-creative-commons-nc","fa-creative-commons-nd","fa-creative-commons-pd-alt","fa-creative-commons-pd","fa-creative-commons-remix","fa-creative-commons-sa","fa-creative-commons-sampling-plus","fa-creative-commons-sampling","fa-creative-commons-share","fa-creative-commons-zero","fa-creative-commons","fa-critical-role","fa-css3-alt","fa-css3","fa-cuttlefish","fa-d-and-d-beyond","fa-d-and-d","fa-dailymotion","fa-dashcube","fa-debian","fa-deezer","fa-delicious","fa-deploydog","fa-deskpro","fa-dev","fa-deviantart","fa-dhl","fa-diaspora","fa-digg","fa-digital-ocean","fa-discord","fa-discourse","fa-dochub","fa-docker","fa-draft2digital","fa-dribbble-square","fa-dribbble","fa-dropbox","fa-drupal","fa-dyalog","fa-earlybirds","fa-ebay","fa-edge-legacy","fa-edge","fa-elementor","fa-ello","fa-ember","fa-empire","fa-envira","fa-erlang","fa-ethereum","fa-etsy","fa-evernote","fa-expeditedssl","fa-facebook-f","fa-facebook-messenger","fa-facebook-square","fa-facebook","fa-fantasy-flight-games","fa-fedex","fa-fedora","fa-figma","fa-firefox-browser","fa-firefox","fa-first-order-alt","fa-first-order","fa-firstdraft","fa-flickr","fa-flipboard","fa-fly","fa-font-awesome-alt","fa-font-awesome-flag","fa-font-awesome-logo-full","fa-font-awesome","fa-fonticons-fi","fa-fonticons","fa-fort-awesome-alt","fa-fort-awesome","fa-forumbee","fa-foursquare","fa-free-code-camp","fa-freebsd","fa-fulcrum","fa-galactic-republic","fa-galactic-senate","fa-get-pocket","fa-gg-circle","fa-gg","fa-git-alt","fa-git-square","fa-git","fa-github-alt","fa-github-square","fa-github","fa-gitkraken","fa-gitlab-square","fa-gitlab","fa-gitter","fa-glide-g","fa-glide","fa-gofore","fa-golang","fa-goodreads-g","fa-goodreads","fa-google-drive","fa-google-pay","fa-google-play","fa-google-plus-g","fa-google-plus-square","fa-google-plus","fa-google-wallet","fa-google","fa-gratipay","fa-grav","fa-gripfire","fa-grunt","fa-guilded","fa-gulp","fa-hacker-news-square","fa-hacker-news","fa-hackerrank","fa-hashnode","fa-hips","fa-hire-a-helper","fa-hive","fa-hooli","fa-hornbill","fa-hotjar","fa-houzz","fa-html5","fa-hubspot","fa-ideal","fa-imdb","fa-innosoft","fa-instagram-square","fa-instagram","fa-instalod","fa-intercom","fa-internet-explorer","fa-invision","fa-ioxhost","fa-itch-io","fa-itunes-note","fa-itunes","fa-java","fa-jedi-order","fa-jenkins","fa-jira","fa-joget","fa-joomla","fa-js-square","fa-js","fa-jsfiddle","fa-kaggle","fa-keybase","fa-keycdn","fa-kickstarter-k","fa-kickstarter","fa-korvue","fa-laravel","fa-lastfm-square","fa-lastfm","fa-leanpub","fa-less","fa-line","fa-linkedin-in","fa-linkedin","fa-linode","fa-linux","fa-lyft","fa-magento","fa-mailchimp","fa-mandalorian","fa-markdown","fa-mastodon","fa-maxcdn","fa-mdb","fa-medapps","fa-medium-m","fa-medium","fa-medrt","fa-meetup","fa-megaport","fa-mendeley","fa-meta","fa-microblog","fa-microsoft","fa-mix","fa-mixcloud","fa-mixer","fa-mizuni","fa-modx","fa-monero","fa-napster","fa-neos","fa-nfc-directional","fa-nfc-symbol","fa-nimblr","fa-node-js","fa-node","fa-npm","fa-ns8","fa-nutritionix","fa-octopus-deploy","fa-odnoklassniki-square","fa-odnoklassniki","fa-odysee","fa-old-republic","fa-opencart","fa-openid","fa-opera","fa-optin-monster","fa-orcid","fa-osi","fa-padlet","fa-page4","fa-pagelines","fa-palfed","fa-patreon","fa-paypal","fa-perbyte","fa-periscope","fa-phabricator","fa-phoenix-framework","fa-phoenix-squadron","fa-php","fa-pied-piper-alt","fa-pied-piper-hat","fa-pied-piper-pp","fa-pied-piper-square","fa-pied-piper","fa-pinterest-p","fa-pinterest-square","fa-pinterest","fa-pix","fa-playstation","fa-product-hunt","fa-pushed","fa-python","fa-qq","fa-quinscape","fa-quora","fa-r-project","fa-raspberry-pi","fa-ravelry","fa-react","fa-reacteurope","fa-readme","fa-rebel","fa-red-river","fa-reddit-alien","fa-reddit-square","fa-reddit","fa-redhat","fa-rendact","fa-renren","fa-replyd","fa-researchgate","fa-resolving","fa-rev","fa-rocketchat","fa-rockrms","fa-rust","fa-safari","fa-salesforce","fa-sass","fa-schlix","fa-screenpal","fa-scribd","fa-searchengin","fa-sellcast","fa-sellsy","fa-servicestack","fa-shirtsinbulk","fa-shopify","fa-shopware","fa-simplybuilt","fa-sistrix","fa-sith","fa-sitrox","fa-sketch","fa-skyatlas","fa-skype","fa-slack-hash","fa-slack","fa-slideshare","fa-snapchat-ghost","fa-snapchat-square","fa-snapchat","fa-soundcloud","fa-sourcetree","fa-space-awesome","fa-speakap","fa-speaker-deck","fa-spotify","fa-square-behance","fa-square-dribbble","fa-square-facebook","fa-square-font-awesome-stroke","fa-square-font-awesome","fa-square-git","fa-square-github","fa-square-gitlab","fa-square-google-plus","fa-square-hacker-news","fa-square-instagram","fa-square-js","fa-square-lastfm","fa-square-odnoklassniki","fa-square-pied-piper","fa-square-pinterest","fa-square-reddit","fa-square-snapchat","fa-square-steam","fa-square-threads","fa-square-tumblr","fa-square-twitter","fa-square-viadeo","fa-square-vimeo","fa-square-whatsapp","fa-square-x-twitter","fa-square-xing","fa-square-youtube","fa-squarespace","fa-stack-exchange","fa-stack-overflow","fa-stackpath","fa-staylinked","fa-steam-square","fa-steam-symbol","fa-steam","fa-sticker-mule","fa-strava","fa-stripe-s","fa-stripe","fa-stubber","fa-studiovinari","fa-stumbleupon-circle","fa-stumbleupon","fa-superpowers","fa-supple","fa-suse","fa-swift","fa-symfony","fa-teamspeak","fa-telegram-plane","fa-telegram","fa-tencent-weibo","fa-the-red-yeti","fa-themeco","fa-themeisle","fa-think-peaks","fa-threads","fa-tiktok","fa-trade-federation","fa-trello","fa-tumblr-square","fa-tumblr","fa-twitch","fa-twitter-square","fa-twitter","fa-typo3","fa-uber","fa-ubuntu","fa-uikit","fa-umbraco","fa-uncharted","fa-uniregistry","fa-unity","fa-unsplash","fa-untappd","fa-ups","fa-usb","fa-usps","fa-ussunnah","fa-vaadin","fa-viacoin","fa-viadeo-square","fa-viadeo","fa-viber","fa-vimeo-square","fa-vimeo-v","fa-vimeo","fa-vine","fa-vk","fa-vnv","fa-vuejs","fa-watchman-monitoring","fa-waze","fa-weebly","fa-weibo","fa-weixin","fa-whatsapp-square","fa-whatsapp","fa-whmcs","fa-wikipedia-w","fa-windows","fa-wirsindhandwerk","fa-wix","fa-wizards-of-the-coast","fa-wodu","fa-wolf-pack-battalion","fa-wordpress-simple","fa-wordpress","fa-wpbeginner","fa-wpexplorer","fa-wpforms","fa-wpressr","fa-wsh","fa-x-twitter","fa-xbox","fa-xing-square","fa-xing","fa-y-combinator","fa-yahoo","fa-yammer","fa-yandex-international","fa-yandex","fa-yarn","fa-yelp","fa-yoast","fa-youtube-square","fa-youtube","fa-zhihu"];function qf(e){return qf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qf(e)}function Hf(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Qf(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function zf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||Qf(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Uf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Wf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uf(Object(n),!0).forEach(function(t){Gf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Gf(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=qf(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=qf(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==qf(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kf(e){return function(e){if(Array.isArray(e))return Yf(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Qf(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qf(e,t){if(e){if("string"==typeof e)return Yf(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yf(e,t):void 0}}function Yf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var Jf=Lf.Hb||["strong","b","em","i","u","s","strike","del","ins","mark","small","sub","sup","abbr","cite","dfn","kbd","samp","var","time","q"],Xf=Lf.B5||["br","wbr","script","style","link","meta","title","noscript"],Zf=new Set(["nav","main","article","aside","ul","ol","li","figure"]),em=new Set(Nf),tm=new Set(jf),nm=new Set([].concat(Kf(Bf),Kf(Rf),Kf(Vf))),im={fontawesomeSolid:new Set(["fas","fa-solid"]),fontawesomeRegular:new Set(["fa","far","fa-regular"]),fontawesomeBrands:new Set(["fab","fa-brands"])},rm={fontawesomeSolid:"fas",fontawesomeRegular:"fa",fontawesomeBrands:"fab"};function om(){for(var e="abcdefghijklmnopqrstuvwxyz0123456789",t="",n=0;n<6;n++)t+=e.charAt(Math.floor(36*Math.random()));return t}function am(e){return Jf.includes(e.toLowerCase())}function sm(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.parentId,r=void 0===i?null:i,o=n.errors,a=(void 0===o&&new If,e.tagName.toLowerCase());if(e.nodeType===Node.TEXT_NODE)return null;if(e.nodeType===Node.COMMENT_NODE)return null;if(function(e){return Xf.includes(e.toLowerCase())}(a))return null;if("bricks-script-placeholder"===a){var s=e.getAttribute("data-script-content");return s?{id:om(),name:"code",parent:r||0,settings:{executeCode:!0,javascriptCode:s}}:null}var l=Pf(e),c=pm(l);if("i"===a&&c){var u={id:om(),name:"icon",parent:r||0,settings:{icon:c.icon}},d=l.filter(function(e){return!c.consumedClasses.has(e)});d.length&&(u.settings._cssClasses=d.join(" "));var p=Ff(e);return p&&(u.settings._cssId=p),u}if(am(a))return null;var h=function(e){var t=e.toLowerCase();return Lf.fc[t]||null}(a),f=!1;h||(h={element:"div",settings:{tag:"custom",customTag:a},fallback:!0},f=!0),h.fallback&&(f=!0);var m=Array.from(e.childNodes).some(function(e){return e.nodeType===Node.ELEMENT_NODE});"button"===h.element&&m&&(h={element:"div",settings:{tag:"custom",customTag:"button"},nestable:!0}),"label"===a&&m&&(h={element:"div",settings:{tag:"custom",customTag:"label"},nestable:!0});var g=!Array.from(e.childNodes).some(function(e){return e.nodeType===Node.ELEMENT_NODE&&!am(e.tagName.toLowerCase())}),v=$f(e),y=Mf(e);if(g&&(v||y)&&"div"===h.element&&!Zf.has(a)){var b=["span","figcaption","address","blockquote","label","p"].includes(a)?a:"div";h={element:"text-basic",settings:"div"===b?{tag:"div"}:{tag:"custom",customTag:b}}}g&&(v||y)&&"li"===a&&(h={element:"text-basic",settings:{tag:"custom",customTag:"li"}});var k=om(),w=h.element,_=function(e){var t=Lf.qj[e];return!!t&&!0===t.nestable}(w),C={id:k,name:w,parent:r||0,settings:{}};_&&(C.children=[]),h.settings&&Object.assign(C.settings,h.settings);var x=Ff(e);x&&(C.settings._cssId=x),l.length>0&&"svg"!==w&&(C.settings._cssClasses=l.join(" "));var S=function(e){var t=e.getAttribute("style");return t?t.trim():null}(e);S&&"svg"!==w&&(C.settings._inlineStyle=S);var E=function(e){var t={};return Array.from(e.attributes).forEach(function(e){e.name.startsWith("data-")&&(t[e.name]=e.value)}),t}(e),A=function(e){var t={};return["onclick","onchange","onsubmit","onmouseover","onmouseout","onmouseenter","onmouseleave","onfocus","onblur","onkeydown","onkeyup","onkeypress","onload","onerror","onscroll","onresize"].forEach(function(n){e.hasAttribute(n)&&(t[n]=e.getAttribute(n))}),t}(e),D=function(e){var t=new Set(["id","class","style","src","alt","width","height","loading","href","target","rel","autoplay","loop","muted","controls","poster","type","name","placeholder","required","pattern","rows","accept","multiple","checked","min","max","step","value","for","action","method"]),n={};return Array.from(e.attributes).forEach(function(e){e.name.startsWith("data-")||e.name.startsWith("on")||t.has(e.name)||(n[e.name]=e.value)}),n}(e),T="svg"===w?{}:Wf(Wf(Wf({},E),A),D);switch(Object.keys(T).length>0&&(C.settings._attributes=Object.entries(T).map(function(e){var t=zf(e,2),n=t[0],i=t[1];return{id:om(),name:n,value:i}})),w){case"heading":case"text-basic":C.settings.text=Mf(e);break;case"text-link":!function(e,t){var n=function(e){var t=dm(e);if(!t||t.nodeType!==Node.ELEMENT_NODE)return null;if("i"!==t.tagName.toLowerCase())return null;return pm(Pf(t))}(e),i=Mf(e);if(n){var r=e.cloneNode(!0),o=dm(r);o&&o.nodeType===Node.ELEMENT_NODE&&o.remove(),t.settings.icon=n.icon,i=Mf(r).replace(/^\s+/,"")}t.settings.text=i;var a=e.getAttribute("href");if(a){t.settings.link={type:"external",url:a},"_blank"===e.getAttribute("target")&&(t.settings.link.newTab=!0);var s=e.getAttribute("rel");s&&s.includes("nofollow")&&(t.settings.link.rel=s)}}(e,C);break;case"button":!function(e,t){t.settings.text=$f(e)||Mf(e);var n=e.closest("a");if(n){var i=n.getAttribute("href");i&&(t.settings.link={type:"external",url:i})}}(e,C);break;case"image":!function(e,t){var n=e.getAttribute("src"),i=e.getAttribute("alt"),r=e.getAttribute("width"),o=e.getAttribute("height"),a=e.getAttribute("loading");n&&(t.settings._importImage={url:n,alt:i||""},t.settings.image={url:n,isPlaceholder:!0});i&&(t.settings.altText=i);r&&(t.settings._width=r+(r.includes("%")?"":"px"));o&&(t.settings._height=o+(o.includes("%")?"":"px"));a&&(t.settings.loading=a)}(e,C);break;case"svg":!function(e,t){t.settings.source="code",t.settings.code=e.outerHTML}(e,C);break;case"video":!function(e,t){var n=e.getAttribute("src");if(!n){var i=e.querySelector("source");i&&(n=i.getAttribute("src"))}n&&(t.settings.videoType="file",t.settings.fileVideo={url:n});e.hasAttribute("autoplay")&&(t.settings.autoplay=!0);e.hasAttribute("loop")&&(t.settings.loop=!0);e.hasAttribute("muted")&&(t.settings.muted=!0);e.hasAttribute("controls")&&(t.settings.controls=!0);var r=e.getAttribute("poster");r&&(t.settings.poster={url:r})}(e,C);break;case"audio":!function(e,t){var n=e.getAttribute("src");if(!n){var i=e.querySelector("source");i&&(n=i.getAttribute("src"))}n&&(t.settings.audio={url:n});e.hasAttribute("autoplay")&&(t.settings.autoplay=!0);e.hasAttribute("loop")&&(t.settings.loop=!0);e.hasAttribute("controls")&&(t.settings.controls=!0)}(e,C);break;case"code":f&&(C.settings.code=e.outerHTML,C.settings.executeCode=!0);break;case"form":var I=function(e){var t,n=[],i=e.querySelectorAll("input, select, textarea"),r=null,o=Hf(i);try{for(o.s();!(t=o.n()).done;){var a=t.value,s=a.tagName.toLowerCase(),l=a.getAttribute("type")||("textarea"===s?"textarea":"text");if(["submit","button"].includes(l))r={text:a.value||a.textContent||""};else if(!["reset","image"].includes(l)){var c=lm(l,s),u=cm(a,e),d={id:om(),type:c,label:u||a.getAttribute("placeholder")||""},p=a.getAttribute("name");p&&(d.name=p);var h=a.getAttribute("placeholder");h&&(d.placeholder=h),a.hasAttribute("required")&&(d.required=!0);var f=a.getAttribute("pattern");if(f&&(d.pattern=f),"select"===s){var m=um(a);m.length>0&&(d.options=m.join("\n"))}if("textarea"===s){var g=a.getAttribute("rows");g&&(d.rows=parseInt(g,10))}if("file"===l){var v=a.getAttribute("accept");v&&(d.fileAccept=v),a.hasAttribute("multiple")&&(d.fileMultiple=!0)}if(["checkbox","radio"].includes(l)&&a.hasAttribute("checked")&&(d.checked=!0),"number"===l){var y=a.getAttribute("min"),b=a.getAttribute("max"),k=a.getAttribute("step");null!==y&&(d.min=y),null!==b&&(d.max=b),null!==k&&(d.step=k)}n.push(d)}}}catch(e){o.e(e)}finally{o.f()}var w,_=Hf(e.querySelectorAll("button"));try{for(_.s();!(w=_.n()).done;){var C=w.value;if("submit"===(C.getAttribute("type")||"submit")){var x;r={text:(null===(x=C.textContent)||void 0===x?void 0:x.trim())||""};break}}}catch(e){_.e(e)}finally{_.f()}if(!r){var S,E=Hf(e.querySelectorAll("a"));try{for(E.s();!(S=E.n()).done;){var A,D=S.value,T=null===(A=D.textContent)||void 0===A?void 0:A.trim();if(T&&(D.className.includes("btn")||D.className.includes("submit")||T.toLowerCase().includes("submit")||T.toLowerCase().includes("send")||T.toLowerCase().includes("inquiry"))){r={text:T};break}}}catch(e){E.e(e)}finally{E.f()}}return{fields:n,submitButton:r}}(e);I.fields.length>0&&(C.settings.fields=I.fields),null!==(t=I.submitButton)&&void 0!==t&&t.text&&(C.settings.submitButtonText=I.submitButton.text)}return"heading"!==w&&"text-basic"!==w||C.settings.text&&""!==C.settings.text.trim()?C:null}function lm(e,t){return"select"===t?"select":"textarea"===t?"textarea":{email:"email",text:"text",password:"password",textarea:"textarea",tel:"tel",number:"number",url:"url",checkbox:"checkbox",radio:"radio",file:"file",date:"datepicker",datetime:"datepicker","datetime-local":"datepicker",hidden:"hidden",search:"text",color:"text",range:"number",time:"text",week:"text",month:"text"}[e]||"text"}function cm(e,t){var n=e.getAttribute("id");if(n){var i=t.querySelector('label[for="'.concat(n,'"]'));if(i)return i.textContent.trim()}var r=e.closest("label");if(r){var o=r.cloneNode(!0);return o.querySelectorAll("input, select, textarea").forEach(function(e){return e.remove()}),o.textContent.trim()||null}var a=e.previousElementSibling;return a&&"LABEL"===a.tagName?a.textContent.trim():null}function um(e){var t,n=[],i=Hf(e.querySelectorAll("option"));try{for(i.s();!(t=i.n()).done;){var r=t.value,o=r.getAttribute("value")||r.textContent.trim(),a=r.textContent.trim();a&&(o!==a?n.push("".concat(o," : ").concat(a)):n.push(a))}}catch(e){i.e(e)}finally{i.f()}return n}function dm(e){return Array.from(e.childNodes).find(function(e){return e.nodeType===Node.TEXT_NODE?""!==e.textContent.trim():e.nodeType===Node.ELEMENT_NODE})}function pm(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!Array.isArray(e)||!e.length)return null;var t=e.find(function(e){return em.has(e)});if(t)return{icon:{library:"themify",icon:t},consumedClasses:new Set([t])};var n=e.find(function(e){return tm.has(e)});if(n)return{icon:{library:"ionicons",icon:n},consumedClasses:new Set([n])};var i=e.find(function(e){return nm.has(e)});if(!i)return null;var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=new Set(e);if(Array.from(im.fontawesomeBrands).some(function(e){return t.has(e)}))return"fontawesomeBrands";if(Array.from(im.fontawesomeSolid).some(function(e){return t.has(e)}))return"fontawesomeSolid";if(Array.from(im.fontawesomeRegular).some(function(e){return t.has(e)}))return"fontawesomeRegular";return null}(e);if(!r)return null;var o=new Set([i]);return im[r].forEach(function(t){e.includes(t)&&o.add(t)}),{icon:{library:r,icon:"".concat(rm[r]," ").concat(i)},consumedClasses:o}}function hm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.parentId,i=void 0===n?null:n,r=t.elements,o=void 0===r?[]:r,a=t.errors,s=void 0===a?new If:a,l=t.depth,c=void 0===l?0:l;if(c>20&&s.addWarning(Df,"htmlImportDeepNesting",{depth:c}),e.nodeType===Node.TEXT_NODE){var u=e.textContent.trim();if(u&&i){var d={id:om(),name:"text-basic",parent:i,settings:{tag:"div",text:u}};return o.push(d),d.id}return null}if(e.nodeType!==Node.ELEMENT_NODE)return null;var p=sm(e,{parentId:i,errors:s});return p?(o.push(p),void 0!==p.children&&Array.from(e.childNodes).forEach(function(e){if((e.nodeType!==Node.ELEMENT_NODE||!am(e.tagName))&&(e.nodeType!==Node.TEXT_NODE||e.textContent.trim())){var t=hm(e,{parentId:p.id,elements:o,errors:s,depth:c+1});t&&p.children.push(t)}}),p.id):(Array.from(e.childNodes).forEach(function(e){hm(e,{parentId:i,elements:o,errors:s,depth:c+1})}),null)}function fm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new If,n=[];return Array.from(e.childNodes).forEach(function(e){hm(e,{parentId:null,elements:n,errors:t,depth:0})}),n}function mm(e){return mm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mm(e)}function gm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return vm(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vm(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function ym(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function bm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ym(Object(n),!0).forEach(function(t){km(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ym(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function km(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=mm(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=mm(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==mm(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wm(e){if(!e||"string"!=typeof e)return[];var t=[];try{for(var n,i=e.replace(/\/\*[\s\S]*?\*\//g,""),r=/@(media|keyframes|font-face|supports|import|property)[^{]*\{(?:[^{}]|\{[^{}]*\})*\}/gi;null!==(n=r.exec(i));){var o;t.push({selectors:[],declarations:{},raw:n[0],isAtRule:!0,atRuleName:n[1],atRuleParams:(null===(o=n[0].match(/@\w+\s*([^{]*)/))||void 0===o||null===(o=o[1])||void 0===o?void 0:o.trim())||""})}i=i.replace(r,"");for(var a,s=/([^{]+)\{([^}]*)\}/g;null!==(a=s.exec(i));){var l=a[1].trim(),c=a[2].trim();if(l&&c){var u=l.split(",").map(function(e){return e.trim()}),d=_m(c);t.push({selectors:u,declarations:d,raw:a[0],isAtRule:!1})}}}catch(e){console.warn("CSS parsing error:",e)}return t}function _m(e){var t={};return e?(e.split(";").forEach(function(e){var n=e.trim();if(n){var i=n.indexOf(":");if(-1!==i){var r=n.substring(0,i).trim(),o=n.substring(i+1).trim();r&&o&&(t[r]=o)}}}),t):t}function Cm(e,t){var n={};t.forEach(function(e){n[e]={base:{},pseudo:{},targets:[]}});var i=function(){return String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim().replace(/\s+/g," ").replace(/\s*([>+~])\s*/g,"$1")};return e.forEach(function(e){e.isAtRule||e.selectors.forEach(function(r){var o=i(r);t.forEach(function(t){var r=".".concat(t);if(function(e,t){if(!e.startsWith(t))return!1;var n=e.charAt(t.length);return!n||!/[a-zA-Z0-9_-]/.test(n)}(o,r)){var a=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="",n=/(::?[a-z-]+(?:\([^)]*\))?)$/i;;){var r=e.match(n);if(!r)break;t="".concat(r[1]).concat(t),e=e.slice(0,-r[1].length)}return{base:i(e),pseudo:t}}(o),s=a.base,l=a.pseudo;n[t].targets.push({selector:o,selectorBase:s,pseudo:l,declarations:bm({},e.declarations)}),s!==r||l?s===r&&l&&(n[t].pseudo[l]||(n[t].pseudo[l]={}),Object.assign(n[t].pseudo[l],e.declarations)):Object.assign(n[t].base,e.declarations)}})})}),n}function xm(e,t){var n={};t.forEach(function(e){n[e]={base:{},pseudo:{},targets:[]}});var i=function(){return String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim().replace(/\s+/g," ").replace(/\s*([>+~])\s*/g,"$1")};return e.forEach(function(e){e.isAtRule||e.selectors.forEach(function(r){var o=i(r);t.forEach(function(t){var r="#".concat(t);if(function(e,t){if(!e.startsWith(t))return!1;var n=e.charAt(t.length);return!n||!/[a-zA-Z0-9_-]/.test(n)}(o,r)){var a=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="",n=/(::?[a-z-]+(?:\([^)]*\))?)$/i;;){var r=e.match(n);if(!r)break;t="".concat(r[1]).concat(t),e=e.slice(0,-r[1].length)}return{base:i(e),pseudo:t}}(o),s=a.base,l=a.pseudo;n[t].targets.push({selector:o,selectorBase:s,pseudo:l,declarations:bm({},e.declarations)}),s!==r||l?s===r&&l&&(n[t].pseudo[l]||(n[t].pseudo[l]={}),Object.assign(n[t].pseudo[l],e.declarations)):Object.assign(n[t].base,e.declarations)}})})}),n}function Sm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return e.filter(function(e){return!!e.isAtRule||e.selectors.some(function(e){var i=t.some(function(t){var n=".".concat(t);if(!e.startsWith(n))return!1;var i=e.charAt(n.length);return!i||!/[a-zA-Z0-9_-]/.test(i)}),r=n.some(function(t){var n="#".concat(t);if(!e.startsWith(n))return!1;var i=e.charAt(n.length);return!i||!/[a-zA-Z0-9_-]/.test(i)});return!i&&!r})})}function Em(e){return e.map(function(e){if(e.isAtRule)return e.raw;var t=e.selectors.join(", "),n=Object.entries(e.declarations).map(function(e){var t=gm(e,2),n=t[0],i=t[1];return" ".concat(n,": ").concat(i,";")}).join("\n");return"".concat(t," {\n").concat(n,"\n}")}).join("\n\n")}function Am(e){return Am="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Am(e)}function Dm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Tm(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Am(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Am(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Am(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Im={_margin:{type:"spacing",css:[{property:"margin"}]},_padding:{type:"spacing",css:[{property:"padding"}]},_width:{type:"number",css:[{property:"width"}]},_widthMin:{type:"number",css:[{property:"min-width"}]},_widthMax:{type:"number",css:[{property:"max-width"}]},_height:{type:"number",css:[{property:"height"}]},_heightMin:{type:"number",css:[{property:"min-height"}]},_heightMax:{type:"number",css:[{property:"max-height"}]},_aspectRatio:{type:"text",css:[{property:"aspect-ratio"}]},_position:{type:"select",css:[{property:"position"}]},_top:{type:"number",css:[{property:"top"}]},_right:{type:"number",css:[{property:"right"}]},_bottom:{type:"number",css:[{property:"bottom"}]},_left:{type:"number",css:[{property:"left"}]},_zIndex:{type:"number",css:[{property:"z-index"}]},_order:{type:"number",css:[{property:"order"}],elementScope:"nonLayout"},_display:{type:"select",css:[{property:"display"}],elementScope:"nonLayout"},_visibility:{type:"select",css:[{property:"visibility"}]},_overflow:{type:"text",css:[{property:"overflow"}]},_opacity:{type:"number",css:[{property:"opacity"}]},_cursor:{type:"select",css:[{property:"cursor"}]},_isolation:{type:"select",css:[{property:"isolation"}]},_mixBlendMode:{type:"select",css:[{property:"mix-blend-mode"}]},_pointerEvents:{type:"text",css:[{property:"pointer-events"}]},_perspective:{type:"number",css:[{property:"perspective"}]},_perspectiveOrigin:{type:"text",css:[{property:"perspective-origin"}]},_gridItemJustifySelf:{type:"align-items",css:[{property:"justify-self"}],elementScope:"nonLayout"},_flexDirection:{type:"direction",css:[{property:"flex-direction"}],elementScope:"nonLayout"},_alignSelf:{type:"align-items",css:[{property:"align-self"}],elementScope:"nonLayout"},_justifyContent:{type:"justify-content",css:[{property:"justify-content"}],elementScope:"nonLayout"},_alignItems:{type:"align-items",css:[{property:"align-items"}],elementScope:"nonLayout"},_gap:{type:"number",css:[{property:"gap"}],elementScope:"nonLayout"},_flexGrow:{type:"number",css:[{property:"flex-grow"}],elementScope:"nonLayout"},_flexShrink:{type:"number",css:[{property:"flex-shrink"}],elementScope:"nonLayout"},_flexBasis:{type:"text",css:[{property:"flex-basis"}],elementScope:"nonLayout"},_masonryColumn:{type:"number",css:[{property:"--columns"}]},_masonryGutter:{type:"number",css:[{property:"--gutter"}]},_typography:{type:"typography",css:[{property:"font"}]},_background:{type:"background",css:[{property:"background"}]},_gradient:{type:"gradient",css:[{property:"background-image"}]},_border:{type:"border",css:[{property:"border"}]},_boxShadow:{type:"box-shadow",css:[{property:"box-shadow"}]},_transform:{type:"transform",css:[{property:"transform"}]},_transformOrigin:{type:"text",css:[{property:"transform-origin"}]},_motionElementParallaxSpeedX:{type:"number",css:[{property:"--brx-motion-parallax-speed-x"}]},_motionElementParallaxSpeedY:{type:"number",css:[{property:"--brx-motion-parallax-speed-y"}]},_motionBackgroundParallaxSpeed:{type:"number",css:[{property:"--brx-motion-background-speed"}]},_cssFilters:{type:"filters",css:[{property:"filter"}]},_cssTransition:{type:"text",css:[{property:"transition"}]},_scrollSnapType:{type:"select",css:[{property:"scroll-snap-type",selector:"html"}]},_scrollSnapAlign:{type:"select",css:[{property:"scroll-snap-align",selector:".brxe-section"}]},_scrollSnapStop:{type:"select",css:[{property:"scroll-snap-stop",selector:".brxe-section"}]}},Om={section:{_gridItemColumnSpan:{type:"text",css:[{property:"grid-column"}]},_gridItemRowSpan:{type:"text",css:[{property:"grid-row"}]},_gridItemJustifySelf:{type:"align-items",css:[{property:"justify-self"}]},_display:{type:"select",css:[{property:"display"}]},_gridGap:{type:"number",css:[{property:"grid-gap"}],hasRequired:!0},_gridTemplateColumns:{type:"text",css:[{property:"grid-template-columns"}],hasRequired:!0},_gridTemplateRows:{type:"text",css:[{property:"grid-template-rows"}],hasRequired:!0},_gridAutoColumns:{type:"text",css:[{property:"grid-auto-columns"}],hasRequired:!0},_gridAutoRows:{type:"text",css:[{property:"grid-auto-rows"}],hasRequired:!0},_gridAutoFlow:{type:"select",css:[{property:"grid-auto-flow"}],hasRequired:!0},_justifyItemsGrid:{type:"justify-content",css:[{property:"justify-items"}],hasRequired:!0},_alignItemsGrid:{type:"align-items",css:[{property:"align-items"}],hasRequired:!0},_justifyContentGrid:{type:"justify-content",css:[{property:"justify-content"}],hasRequired:!0},_alignContentGrid:{type:"align-items",css:[{property:"align-content"}],hasRequired:!0},_flexWrap:{type:"select",css:[{property:"flex-wrap"}],hasRequired:!0},_direction:{type:"direction",css:[{property:"flex-direction"}],hasRequired:!0},_alignSelf:{type:"align-items",css:[{property:"align-self"}],hasRequired:!0},_justifyContent:{type:"justify-content",css:[{property:"justify-content"}],hasRequired:!0},_alignItems:{type:"align-items",css:[{property:"align-items"}],hasRequired:!0},_columnGap:{type:"number",css:[{property:"column-gap"}],hasRequired:!0},_rowGap:{type:"number",css:[{property:"row-gap"}],hasRequired:!0},_flexGrow:{type:"number",css:[{property:"flex-grow"}],hasRequired:!0},_flexShrink:{type:"number",css:[{property:"flex-shrink"}],hasRequired:!0},_flexBasis:{type:"text",css:[{property:"flex-basis"}],hasRequired:!0},_order:{type:"number",css:[{property:"order"}],hasRequired:!0}},div:{_gridItemColumnSpan:{type:"text",css:[{property:"grid-column"}]},_gridItemRowSpan:{type:"text",css:[{property:"grid-row"}]},_gridItemJustifySelf:{type:"align-items",css:[{property:"justify-self"}]},_display:{type:"select",css:[{property:"display"}]},_gridGap:{type:"number",css:[{property:"grid-gap"}],hasRequired:!0},_gridTemplateColumns:{type:"text",css:[{property:"grid-template-columns"}],hasRequired:!0},_gridTemplateRows:{type:"text",css:[{property:"grid-template-rows"}],hasRequired:!0},_gridAutoColumns:{type:"text",css:[{property:"grid-auto-columns"}],hasRequired:!0},_gridAutoRows:{type:"text",css:[{property:"grid-auto-rows"}],hasRequired:!0},_gridAutoFlow:{type:"select",css:[{property:"grid-auto-flow"}],hasRequired:!0},_justifyItemsGrid:{type:"justify-content",css:[{property:"justify-items"}],hasRequired:!0},_alignItemsGrid:{type:"align-items",css:[{property:"align-items"}],hasRequired:!0},_justifyContentGrid:{type:"justify-content",css:[{property:"justify-content"}],hasRequired:!0},_alignContentGrid:{type:"align-items",css:[{property:"align-content"}],hasRequired:!0},_flexWrap:{type:"select",css:[{property:"flex-wrap"}],hasRequired:!0},_direction:{type:"direction",css:[{property:"flex-direction"}],hasRequired:!0},_alignSelf:{type:"align-items",css:[{property:"align-self"}],hasRequired:!0},_justifyContent:{type:"justify-content",css:[{property:"justify-content"}],hasRequired:!0},_alignItems:{type:"align-items",css:[{property:"align-items"}],hasRequired:!0},_columnGap:{type:"number",css:[{property:"column-gap"}],hasRequired:!0},_rowGap:{type:"number",css:[{property:"row-gap"}],hasRequired:!0},_flexGrow:{type:"number",css:[{property:"flex-grow"}],hasRequired:!0},_flexShrink:{type:"number",css:[{property:"flex-shrink"}],hasRequired:!0},_flexBasis:{type:"text",css:[{property:"flex-basis"}],hasRequired:!0},_order:{type:"number",css:[{property:"order"}],hasRequired:!0}},heading:{separatorWidth:{type:"number",css:[{property:"width",selector:".separator"},{property:"flex-grow",selector:".separator"}]},separatorHeight:{type:"number",css:[{property:"border-top-width",selector:".separator"},{property:"height",selector:".separator"}]},separatorSpacing:{type:"number",css:[{property:"gap",selector:"&.has-separator"}]},separatorStyle:{type:"select",css:[{property:"border-top-style",selector:".separator"}]},separatorAlignItems:{type:"align-items",css:[{property:"align-items",selector:"&.has-separator"}]},separatorColor:{type:"color",css:[{property:"border-top-color",selector:".separator"}]}},"text-link":{icon:{type:"icon",css:[{selector:".icon > svg"}]},iconSize:{type:"number",css:[{property:"font-size",selector:".icon > i"},{property:"width",selector:".icon > svg"},{property:"height",selector:".icon > svg"}],hasRequired:!0},iconWidth:{type:"number",css:[{property:"width",selector:".icon"}],hasRequired:!0},iconHeight:{type:"number",css:[{property:"height",selector:".icon"}],hasRequired:!0},iconColor:{type:"color",css:[{property:"color",selector:".icon"},{property:"fill",selector:".icon"}],hasRequired:!0},iconBackground:{type:"color",css:[{property:"background-color",selector:".icon"}],hasRequired:!0},iconBorder:{type:"border",css:[{property:"border",selector:".icon"}],hasRequired:!0},gap:{type:"number",css:[{property:"gap"}],hasRequired:!0}},icon:{iconColor:{type:"color",css:[{property:"color"},{property:"fill"}],hasRequired:!0},iconSize:{type:"number",css:[{property:"font-size"}],hasRequired:!0},accordionTitleIconTransform:{type:"transform",css:[{property:"--brx-icon-transform"}],hasRequired:!0},accordionTitleIconTransition:{type:"text",css:[{property:"transition"}],hasRequired:!0}},button:{iconTypography:{type:"typography",css:[{property:"font",selector:"i"}],hasRequired:!0},iconGap:{type:"number",css:[{property:"gap"}],hasRequired:!0}},image:{popupIconBackgroundColor:{type:"color",css:[{property:"background-color",selector:"&{pseudo} .icon"}],hasRequired:!0},popupIconBorder:{type:"border",css:[{property:"border",selector:"&{pseudo} .icon"}],hasRequired:!0},popupIconBoxShadow:{type:"box-shadow",css:[{property:"box-shadow",selector:"&{pseudo} .icon"}],hasRequired:!0},popupIconTypography:{type:"typography",css:[{property:"font",selector:"&{pseudo} .icon"}],hasRequired:!0},popupIconHeight:{type:"number",css:[{property:"line-height",selector:"&{pseudo} .icon"}],hasRequired:!0},popupIconWidth:{type:"number",css:[{property:"width",selector:"&{pseudo} .icon"}],hasRequired:!0},popupIconTransition:{type:"text",css:[{property:"transition",selector:"&{pseudo} .icon"}],hasRequired:!0}},svg:{height:{type:"number",css:[{property:"height"}]},width:{type:"number",css:[{property:"width"}]},strokeWidth:{type:"number",css:[{property:"stroke-width",selector:"*"}]},stroke:{type:"color",css:[{property:"stroke",selector:':not([stroke="none"])'}]},fill:{type:"color",css:[{property:"fill",selector:':not([fill="none"])'}]}},video:{aspectRatio:{type:"select",css:[{property:"aspect-ratio"}]},objectFit:{type:"select",css:[{property:"object-fit",selector:"video"}],hasRequired:!0},overlay:{type:"background",css:[{property:"background",selector:".bricks-video-overlay"}]},overlayIconTypography:{type:"typography",css:[{property:"font",selector:".bricks-video-overlay-icon"}],hasRequired:!0},overlayIconPadding:{type:"spacing",css:[{property:"padding",selector:".bricks-video-overlay-icon"}],hasRequired:!0},overlayIconBackgroundColor:{type:"color",css:[{property:"background-color",selector:".bricks-video-overlay-icon"}],hasRequired:!0},overlayIconBorder:{type:"border",css:[{property:"border",selector:".bricks-video-overlay-icon"}],hasRequired:!0},overlayIconBoxShadow:{type:"box-shadow",css:[{property:"box-shadow",selector:".bricks-video-overlay-icon"}],hasRequired:!0}},divider:{height:{type:"number",css:[{property:"height",selector:".line"},{property:"border-top-width",selector:"&.horizontal .line"}]},width:{type:"number",css:[{property:"width",selector:"&.horizontal .line"},{property:"border-right-width",selector:"&.vertical .line"}]},style:{type:"select",css:[{property:"border-top-style",selector:"&.horizontal .line"},{property:"border-right-style",selector:"&.vertical .line"}]},justifyContent:{type:"justify-content",css:[{property:"justify-content",selector:"&.horizontal"},{property:"align-self",selector:"&.vertical"}]},color:{type:"color",css:[{property:"border-top-color",selector:"&.horizontal .line"},{property:"border-right-color",selector:"&.vertical .line"},{property:"color",selector:".icon"}]},iconTypography:{type:"typography",css:[{property:"font",selector:".icon"}],hasRequired:!0},iconAlignItems:{type:"align-items",css:[{property:"align-items"}],hasRequired:!0},iconSpacing:{type:"number",css:[{property:"gap"}],hasRequired:!0}},form:{fields:{type:"repeater",css:[{property:"font",selector:".password-toggle .show-password i"}],hasRequired:!0},labelTypography:{type:"typography",css:[{property:"font",selector:"label"},{property:"font",selector:".label"}],hasRequired:!0},placeholderTypography:{type:"typography",css:[{property:"font",selector:"::placeholder"},{property:"font",selector:"select"}]},fieldMargin:{type:"spacing",css:[{property:"padding",selector:".form-group:not(.submit-button-wrapper):not(.message):not(.captcha)"}]},fieldPadding:{type:"spacing",css:[{property:"padding",selector:".form-group input"},{property:"padding",selector:".flatpickr"},{property:"padding",selector:"select"},{property:"padding",selector:"textarea"}]},horizontalAlignFields:{type:"justify-content",css:[{property:"justify-content"}]},fieldBackgroundColor:{type:"color",css:[{property:"background-color",selector:".form-group input"},{property:"background-color",selector:".flatpickr"},{property:"background-color",selector:"select"},{property:"background-color",selector:"textarea"}]},fieldBorder:{type:"border",css:[{property:"border",selector:".form-group input"},{property:"border",selector:".flatpickr"},{property:"border",selector:"select"},{property:"border",selector:"textarea"},{property:"border",selector:".bricks-button:not([type=submit])"},{property:"border",selector:".choose-files"}]},fieldTypography:{type:"typography",css:[{property:"font",selector:".form-group input"},{property:"font",selector:"select"},{property:"font",selector:"textarea"}]},submitButtonWidth:{type:"number",css:[{property:"width",selector:".submit-button-wrapper"}],hasRequired:!0},submitButtonMargin:{type:"spacing",css:[{property:"margin",selector:".submit-button-wrapper"}]},submitButtonTypography:{type:"typography",css:[{property:"font",selector:".bricks-button"}]},submitButtonBackgroundColor:{type:"color",css:[{property:"background-color",selector:".bricks-button"}]},submitButtonBorder:{type:"border",css:[{property:"border",selector:"button[type=submit].bricks-button"}]}}},Pm=new Set(["section","container","block","div"]);function Fm(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dm(Object(n),!0).forEach(function(t){Tm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},Om[e]||{}),n=Pm.has(e);for(var i in Im)if(!t[i]){var r=Im[i];"nonLayout"===r.elementScope&&n||("layout"!==r.elementScope||n)&&(t[i]=r)}return t}function $m(e){if(!e||"string"!=typeof e)return null;var t=e.trim();if(/^-?[\d.]+$/.test(t))return{value:parseFloat(t),unit:""};var n=t.match(/^(-?[\d.]+)(px|em|rem|%|vw|vh|vmin|vmax|ch|ex|pt|pc|cm|mm|in)$/i);return n?{value:parseFloat(n[1]),unit:n[2].toLowerCase()}:/^(calc|var|clamp|min|max)\(/.test(t)?{value:t,unit:"function"}:null}function Mm(e){if(!e||"string"!=typeof e)return null;var t=e.trim().toLowerCase();if(t.startsWith("var("))return{raw:t};if(t.startsWith("#"))return{hex:t};if(t.startsWith("rgb"))return{raw:t};if(t.startsWith("hsl"))return{raw:t};return["transparent","inherit","currentcolor","black","white","red","green","blue","yellow","orange","purple","pink","gray","grey"].includes(t)?{raw:t}:null}function Lm(e){if(!e||"string"!=typeof e)return null;var t=e.trim().split(/\s+/),n=t.map(function(e){return $m(e)||{value:e,unit:""}});if(0===n.length)return null;var i=function(e){return"function"===e.unit?e.value:""===e.unit?String(e.value):"".concat(e.value).concat(e.unit)};switch(t.length){case 1:return{top:i(n[0]),right:i(n[0]),bottom:i(n[0]),left:i(n[0])};case 2:return{top:i(n[0]),right:i(n[1]),bottom:i(n[0]),left:i(n[1])};case 3:return{top:i(n[0]),right:i(n[1]),bottom:i(n[2]),left:i(n[1])};case 4:return{top:i(n[0]),right:i(n[1]),bottom:i(n[2]),left:i(n[3])};default:return null}}function Nm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return jm(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jm(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function Bm(e){return Bm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bm(e)}var Rm=["font-family","font-size","font-weight","font-style","line-height","letter-spacing","text-align","text-transform","text-decoration","color"];function Vm(e){if(!e||"object"!==Bm(e))return null;var t={};return Object.entries(e).forEach(function(e){var n=Nm(e,2),i=n[0],r=n[1],o=i.toLowerCase();if(Rm.includes(o))switch(o){case"font-family":var a=function(e){return e&&"string"==typeof e?e.trim():null}(r);a&&(t["font-family"]=a);break;case"font-size":var s=$m(r);s&&(t["font-size"]="function"===s.unit?s.value:"".concat(s.value).concat(s.unit||"px"));break;case"font-weight":var l=function(e){if(!e)return null;var t=String(e).trim().toLowerCase(),n={thin:100,hairline:100,extralight:200,ultralight:200,light:300,normal:400,regular:400,medium:500,semibold:600,demibold:600,bold:700,extrabold:800,ultrabold:800,black:900,heavy:900};if(n[t])return n[t];var i=parseInt(t,10);return!isNaN(i)&&i>=100&&i<=900?i:null}(r);null!==l&&(t["font-weight"]=l);break;case"font-style":["normal","italic","oblique"].includes(r.toLowerCase())&&(t["font-style"]=r.toLowerCase());break;case"line-height":var c=$m(r);c&&(t["line-height"]=""===c.unit?c.value:"".concat(c.value).concat(c.unit));break;case"letter-spacing":var u=$m(r);u&&(t["letter-spacing"]="function"===u.unit?u.value:"".concat(u.value).concat(u.unit||"px"));break;case"text-align":var d=function(e){if(!e||"string"!=typeof e)return null;var t=e.trim().toLowerCase();return["left","center","right","justify","start","end"].includes(t)?t:null}(r);d&&(t["text-align"]=d);break;case"text-transform":["none","uppercase","lowercase","capitalize"].includes(r.toLowerCase())&&(t["text-transform"]=r.toLowerCase());break;case"text-decoration":t["text-decoration"]=r;break;case"color":var p=Mm(r);p&&(t.color=p)}}),Object.keys(t).length>0?t:null}function qm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Hm(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hm(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function zm(e){if(!e)return null;var t,n={};if(e.border){var i=function(e){if(!e||"string"!=typeof e)return null;if("none"===e)return null;var t=e.trim().split(/\s+/);if(t.length<1)return null;var n={},i=["none","solid","dashed","dotted","double","groove","ridge","inset","outset"];return t.forEach(function(e){if(i.includes(e.toLowerCase()))n.style=e.toLowerCase();else{var t=$m(e);if(t)n.width="function"===t.unit?t.value:"".concat(t.value).concat(t.unit||"px");else{var r=Mm(e);r&&(n.color=r)}}}),Object.keys(n).length>0?n:null}(e.border);i&&(i.width&&(n.width=i.width),i.style&&(n.style=i.style),i.color&&(n.color=i.color))}if(e["border-width"]){var r=$m(e["border-width"]);r&&(n.width="function"===r.unit?r.value:"".concat(r.value).concat(r.unit||"px"))}if(e["border-style"]&&(n.style=e["border-style"]),e["border-color"]){var o=Mm(e["border-color"]);o&&(n.color=o)}if(e["border-radius"]){var a=(t=e["border-radius"])&&"string"==typeof t?Lm(t):null;a&&(n.radius=a)}return Object.entries({"border-top-left-radius":"topLeft","border-top-right-radius":"topRight","border-bottom-right-radius":"bottomRight","border-bottom-left-radius":"bottomLeft"}).forEach(function(t){var i=qm(t,2),r=i[0],o=i[1];if(e[r]){var a=$m(e[r]);a&&(n.radius||(n.radius={}),n.radius[o]="function"===a.unit?a.value:"".concat(a.value).concat(a.unit||"px"))}}),Object.keys(n).length>0?n:null}function Um(e){return function(e){if(Array.isArray(e))return Xm(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Jm(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Gm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wm(Object(n),!0).forEach(function(t){Km(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Km(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Qm(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Qm(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Qm(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qm(e){return Qm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qm(e)}function Ym(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||Jm(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jm(e,t){if(e){if("string"==typeof e)return Xm(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xm(e,t):void 0}}function Xm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var Zm=new Map,eg=new Set(["number","text","select","direction","align-items","justify-content"]),tg={"margin-top":["margin","top"],"margin-right":["margin","right"],"margin-bottom":["margin","bottom"],"margin-left":["margin","left"],"padding-top":["padding","top"],"padding-right":["padding","right"],"padding-bottom":["padding","bottom"],"padding-left":["padding","left"]};function ng(){return String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim().replace(/\s+/g," ").replace(/\s*([>+~])\s*/g,"$1")}function ig(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="",n=/(::?[a-z-]+(?:\([^)]*\))?)$/i;;){var i=e.match(n);if(!i)break;t="".concat(i[1]).concat(t),e=e.slice(0,-i[1].length)}return{base:ng(e),pseudo:t}}function rg(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.toLowerCase(),r=Gm({},n||{});if("margin"===i){var o=function(e){if(!e)return null;var t={};if(e.margin){var n=Lm(e.margin);n&&Object.assign(t,n)}return["top","right","bottom","left"].forEach(function(n){var i="margin-".concat(n);if(e[i]){var r=$m(e[i]);r&&(t[n]="function"===r.unit?r.value:"".concat(r.value).concat(r.unit||"px"))}}),Object.keys(t).length>0?t:null}({margin:t});return o?Gm(Gm({},r),o):null}if("padding"===i){var a=function(e){if(!e)return null;var t={};if(e.padding){var n=Lm(e.padding);n&&Object.assign(t,n)}return["top","right","bottom","left"].forEach(function(n){var i="padding-".concat(n);if(e[i]){var r=$m(e[i]);r&&(t[n]="function"===r.unit?r.value:"".concat(r.value).concat(r.unit||"px"))}}),Object.keys(t).length>0?t:null}({padding:t});return a?Gm(Gm({},r),a):null}var s=tg[i];return s?(r[s[1]]=t,r):null}function og(e,t,n,i){return"color"===e?Mm(n):"spacing"===e?rg(t,n,i):"typography"===e?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Vm(Km({},e,t));return i?Gm(Gm({},n||{}),i):null}(t,n,i):"background"===e?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.toLowerCase(),r=Gm({},n||{});if("background-color"===i){var o=Mm(t);return o?(r.color=o,r):null}if("background-image"===i){var a=function(e){if(!e||"string"!=typeof e)return null;if("none"===e)return null;var t=e.trim();if(t.includes("gradient("))return{gradient:t};var n=t.match(/url\(["']?([^"')]+)["']?\)/);return n?{url:n[1]}:null}(t);return null!=a&&a.url?(r.image={url:a.url},r):null}return"background-size"===i?(r.size=t,r):"background-position"===i?(r.position=t,r):"background-repeat"===i?(r.repeat=t,r):"background-attachment"===i?(r.attachment=t,r):null}(t,n,i):"border"===e?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=zm(Km({},e,t));return i?Gm(Gm({},n||{}),i):null}(t,n,i):eg.has(e)?n:null}function ag(e){var t=e.elementName,n=e.rootSelector,i=e.targets,r=void 0===i?[]:i,o=e.initialSettings,a=void 0===o?{}:o,s=function(e){if(!e)return[];if(Zm.has(e))return Zm.get(e);var t=Fm(e),n=[],i=0;return Object.entries(t||{}).forEach(function(e){var t=Ym(e,2),r=t[0],o=t[1];(Array.isArray(null==o?void 0:o.css)?o.css:[]).forEach(function(e){var t;null!=e&&e.property&&n.push({controlKey:r,controlType:null==o?void 0:o.type,property:String(e.property).toLowerCase(),selector:null!==(t=null==e?void 0:e.selector)&&void 0!==t?t:"",order:i++})})}),Zm.set(e,n),n}(t),l=Gm({},a),c=[];return s.length&&n?(r.forEach(function(e){var t=(null==e?void 0:e.declarations)||{},i={},r=(null==e?void 0:e.pseudo)||"",o=ng((null==e?void 0:e.selectorBase)||(null==e?void 0:e.selector)||""),a=ng((null==e?void 0:e.selector)||"");Object.entries(t).forEach(function(e){var t=Ym(e,2),c=t[0],u=t[1],d=String(c).toLowerCase(),p=[];s.forEach(function(e){if(function(e,t,n){var i=(null==e?void 0:e.type)||(null==e?void 0:e.controlType);return t===n||("typography"===i&&"font"===t?"color"===n||n.startsWith("font-")||["line-height","letter-spacing","text-align","text-transform","text-decoration"].includes(n):"spacing"===i&&["margin","padding"].includes(t)?n===t||n.startsWith("".concat(t,"-")):"background"===i&&t.startsWith("background")?n===t||["background-color","background-image","background-size","background-position","background-repeat","background-attachment"].includes(n):!("border"!==i||!t.startsWith("border"))&&(n===t||n.startsWith("border")))}(e,e.property,d)){var t=String(e.selector||"").includes("{pseudo}"),i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!t)return ng(e);var i=String(t);return i.includes("{pseudo}")&&(i=i.replaceAll("{pseudo}",n)),i.startsWith("&")?ng("".concat(e).concat(i.slice(1))):ng("".concat(e," ").concat(i))}(n,e.selector,t?r:"");i===(t?a:o)&&p.push(Gm(Gm({},e),{},{rank:e.property===d?0:1}))}});var h=function(e){if(!e.length)return null;var t=Um(e).sort(function(e,t){return e.rank!==t.rank?e.rank-t.rank:e.order-t.order}),n=t[0].rank,i=t.filter(function(e){return e.rank===n});if(Array.from(new Set(i.map(function(e){return e.controlKey}))).length>1){var r=i.filter(function(e){return!String(e.controlKey||"").startsWith("_")});if(1===r.length)return r[0];if(r.length>1)return r.sort(function(e,t){return e.order-t.order})[0];var o=i.filter(function(e){return String(e.controlKey||"").startsWith("_")}).filter(function(e){return!String(e.controlKey||"").endsWith("Grid")});return 1===o.length?o[0]:o.length>1?o.sort(function(e,t){return e.order-t.order})[0]:null}return i[0]}(p);if(h){var f="".concat(h.controlKey).concat(r),m=og(h.controlType,d,u,l[f]);null!=m?function(e,t,n){null!=n&&("object"!==Qm(n)||Array.isArray(n)||"object"!==Qm(e[t])||null===e[t]||Array.isArray(e[t])?e[t]=n:e[t]=Gm(Gm({},e[t]),n))}(l,f,m):i[c]=u}else i[c]=u}),Object.keys(i).length&&c.push(Gm(Gm({},e),{},{declarations:i}))}),{settings:l,unmappedTargets:c}):{settings:l,unmappedTargets:r}}function sg(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(function(e){var t=Object.entries(e.declarations||{}).map(function(e){var t=Ym(e,2),n=t[0],i=t[1];return"".concat(n,": ").concat(i,";")}).join("\n ");return t&&e.selector?"".concat(e.selector," {\n ").concat(t,"\n}"):""}).filter(Boolean).join("\n")}function lg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=ng(e),i=ig(n);return{selector:n,selectorBase:i.base,pseudo:i.pseudo,declarations:t}}function cg(e){var t=e.elementName,n=e.rootSelector,i=e.targets,r=void 0===i?[]:i,o=e.initialSettings,a=void 0===o?{}:o;return ag({elementName:t,rootSelector:ng(n),targets:r,initialSettings:a})}function ug(e){return ug="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ug(e)}function dg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||hg(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pg(e){return function(e){if(Array.isArray(e))return fg(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||hg(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hg(e,t){if(e){if("string"==typeof e)return fg(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fg(e,t):void 0}}function fg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function mg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function gg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mg(Object(n),!0).forEach(function(t){vg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vg(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=ug(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=ug(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ug(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yg(){var e=gg({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});return"string"==typeof e._cssCustom&&(e._cssCustom=e._cssCustom.replace(/\s+/g," ").replace(/\s*([{}:;(),>+~])\s*/g,"$1").trim()),e}function bg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={id:om(),name:e},i=".".concat(e),r=Array.isArray(t.targets)?t.targets:[],o=r.length>0?r.filter(function(e){return ig(e.selector||"").base===i}):[].concat(pg(Object.keys(t.base||{}).length?[lg(i,t.base||{})]:[]),pg(Object.entries(t.pseudo||{}).map(function(e){var t=dg(e,2),n=t[0],r=t[1];return lg("".concat(i).concat(n),r||{})}))),a=cg({elementName:"div",rootSelector:i,targets:o,initialSettings:{}}),s=r.filter(function(e){return ig(e.selector||"").base!==i}),l=sg([].concat(pg(a.unmappedTargets||[]),pg(s))),c=Object.keys(a.settings||{}).length>0,u=Boolean(l);return(c||u)&&(n.settings=gg({},a.settings),u&&(n.settings._cssCustom=l.trim())),n}function kg(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:[])||[],i=Cm(t,e),r=[],o=[],a={};return e.forEach(function(e){var t=n.find(function(t){return t.name===e}),s=i[e]||{base:{},pseudo:{}},l=Object.keys(s.base||{}).length>0||Object.keys(s.pseudo||{}).length>0||Array.isArray(s.targets)&&s.targets.length>0;if(!t||l){var c=bg(e,s);if(t){var u=!(null!=t&&t.settings)||0===Object.keys(t.settings).length,d=(null==c?void 0:c.settings)&&Object.keys(c.settings).length>0;if(u&&d)return o.push(c),void(a[e]=c.id);if(u)return void(a[e]=t.id);JSON.stringify(yg((null==t?void 0:t.settings)||{}))===JSON.stringify(yg((null==c?void 0:c.settings)||{}))?a[e]=t.id:(o.push(c),a[e]=c.id)}else r.push(c),a[e]=c.id}else a[e]=t.id}),{newClasses:r,conflictingClasses:o,classMap:a}}function wg(e,t){return e.map(function(e){var n=gg(gg({},e),{},{settings:gg({},e.settings)});if(n.settings._cssClasses){var i=n.settings._cssClasses.split(/\s+/).filter(function(e){return e.length>0}),r=[],o=[];i.forEach(function(e){t[e]?r.push(t[e]):o.push(e)}),r.length>0&&(n.settings._cssGlobalClasses=r),o.length>0?n.settings._cssClasses=o.join(" "):delete n.settings._cssClasses}return n})}function _g(e){var t=new Set;return e.forEach(function(e){e.settings&&e.settings._cssClasses&&e.settings._cssClasses.split(/\s+/).filter(function(e){return e.length>0}).forEach(function(e){return t.add(e)})}),Array.from(t)}function Cg(e,t){if(!e||"string"!=typeof e)return"";var n=e.trim();return n?n.startsWith(t)?n:"".concat(t,"\n").concat(n):""}function xg(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.jsCode,n=void 0===t?"":t,i=e.cssCode,r=void 0===i?"":i,o=e.htmlCode,a=void 0===o?"":o,s={id:om(),name:"code",parent:0,settings:{executeCode:!0}};return a&&(s.settings.code=Cg(a,"\x3c!-- Extracted from pasted content that could not be mapped to a specific element or class. --\x3e")),r&&(s.settings.cssCode=Cg(r,"/* Extracted from pasted content that could not be mapped to a specific element or class. */")),n&&(s.settings.javascriptCode=Cg(n,"// Extracted from pasted content. Enable execution only if you trust this code.")),s}function Sg(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)&&0!==e.length?e.map(function(e){return function(e){if("string"!=typeof e)return"";var t=e.trim();if(!t)return"";if(/^(javascript|data)\s*:/i.test(t))return"";return Eg(t)}(e)}).filter(Boolean).map(function(e){return'<link rel="stylesheet" href="'.concat(e,'">')}).join("\n"):""}function Eg(e){return String(e).replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function Ag(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)&&0!==e.length?e.map(function(e){return function(e){if("string"!=typeof e)return"";var t=e.trim();if(!t)return"";if(/^(javascript|data)\s*:/i.test(t))return"";return Eg(t)}(e)}).filter(Boolean).map(function(e){return'<script src="'.concat(e,'"><\/script>')}).join("\n"):""}function Dg(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=Sg(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]);return e||t?xg({cssCode:e,htmlCode:t}):null}function Tg(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!Array.isArray(e)||0===e.length)return null;var t=Ag(e);return t?xg({htmlCode:t}):null}function Ig(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=[],r=[],o=Sg(arguments.length>3&&void 0!==arguments[3]?arguments[3]:[]);o&&r.push(o);var a=Ag(t);a&&r.push(a),e&&e.length>0&&e.forEach(function(t,n){t.content&&(e.length>1&&i.push("// --- Script ".concat(n+1," ---")),i.push(t.content),i.push(""))});var s=i.join("\n").trim(),l=r.join("\n").trim();return s||n||l?xg({jsCode:s,cssCode:n,htmlCode:l}):null}function Og(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Pg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Og(Object(n),!0).forEach(function(t){Fg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Og(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fg(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=$g(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=$g(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==$g(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $g(e){return $g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$g(e)}function Mg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Lg(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lg(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function Ng(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=function(e){var t=[];return e.forEach(function(e){var n;e.isAtRule||(null===(n=e.selectors)||void 0===n?void 0:n.some(function(e){return":root"===e||"html"===e||":host"===e}))&&Object.entries(e.declarations||{}).forEach(function(e){var n=Mg(e,2),i=n[0],r=n[1];i.startsWith("--")&&t.push({name:i.substring(2),value:r})})}),t}(e);return function(e){var t=new Set((arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).map(function(e){return e.name})),n=[],i=[];return e.forEach(function(e){t.has(e.name)?i.push(e):n.push({id:om(),name:e.name,value:e.value})}),{newVariables:n,skippedVariables:i,totalExtracted:e.length}}(n,t)}function jg(e){return Array.isArray(e)?e.map(function(e){if(null!=e&&e.isAtRule||!Array.isArray(null==e?void 0:e.selectors))return e;if(!e.selectors.some(function(e){return":root"===e||"html"===e||":host"===e})||null==e||!e.declarations||"object"!==$g(e.declarations))return e;var t=Object.fromEntries(Object.entries(e.declarations).filter(function(e){return!Mg(e,1)[0].startsWith("--")}));return 0===Object.keys(t).length?null:Pg(Pg({},e),{},{declarations:t})}).filter(Boolean):[]}var Bg=["section","container","block","div","heading","text","text-basic","text-link","button","icon","image","video","audio","code","html","list","accordion","accordion-nested","tabs","tabs-nested","alert","divider","form","map","map-leaflet","map-connector","social-icons","svg","shortcode","template","sidebar","wordpress","image-gallery","carousel","slider","slider-nested","counter","countdown","progress-bar","pie-chart","rating","animated-typing","toggle","toggle-mode","offcanvas","dropdown","nav-menu","nav-nested","breadcrumbs","search","pagination","back-to-top","posts","related-posts","post-title","post-content","post-excerpt","post-meta","post-author","post-taxonomy","post-comments","post-navigation","post-sharing","post-reading-time","post-reading-progress-bar","post-toc","query-results-summary","filter-checkbox","filter-radio","filter-select","filter-range","filter-datepicker","filter-search","filter-submit","filter-active-filters","facebook-page","instagram-feed","testimonials","team-members","pricing-tables","icon-box","logo","slot"],Rg=["section","container","block","div","accordion","accordion-nested","tabs","tabs-nested","slider","slider-nested","offcanvas","dropdown","nav-nested","toggle"],Vg={section:["section","div","article","header","footer","aside","custom"],container:["div","section","article","nav","aside","header","footer","main","figure","a","ul","ol","li","address","custom"],div:["div","section","article","nav","aside","header","footer","main","figure","a","ul","ol","li","address","custom"],block:["div","section","article","nav","aside","header","footer","main","figure","a","ul","ol","li","address","custom"],heading:["h1","h2","h3","h4","h5","h6","custom"],"text-basic":["div","p","span","figcaption","address","figure","custom"],"text-link":["a","span"],button:["button","a","span","custom"],image:["figure","div","picture","custom"]},qg=(Bg.filter(function(e){return!Rg.includes(e)}),["id","name"]),Hg=["brxe-","bricks-","brx-"],zg=/^[a-zA-Z_-][a-zA-Z0-9_-]*$/;function Ug(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Gg(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Wg(e){return function(e){if(Array.isArray(e))return Kg(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Gg(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gg(e,t){if(e){if("string"==typeof e)return Kg(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Kg(e,t):void 0}}function Kg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function Qg(e){return Qg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qg(e)}function Yg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Jg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yg(Object(n),!0).forEach(function(t){Xg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xg(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Qg(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Qg(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Qg(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zg="INVALID_ID",ev="INVALID_ELEMENT_TYPE",tv="INVALID_SETTINGS",nv="INVALID_CHILDREN",iv="INVALID_PARENT",rv="INVALID_TAG",ov="ORPHAN_ELEMENT",av="MISSING_CHILD",sv="CIRCULAR_REFERENCE",lv="DUPLICATE_ID",cv="INVALID_CLASS_ID",uv="INVALID_CLASS_NAME",dv="RESERVED_CLASS_NAME",pv="INVALID_CLASS_SETTINGS",hv="CLASS_NAME_TOO_LONG",fv="UNEXPECTED_CHILDREN",mv="EMPTY_CHILDREN";function gv(e,t){return Jg({code:e,message:t},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})}function vv(e,t){return Jg({code:e,message:t},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})}function yv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],i=[],r=[];if(!Array.isArray(e))return n.push(gv(tv,"Elements must be an array",{received:Qg(e)})),{isValid:!1,errors:n,warnings:i,elements:e,results:r};var o=new Set,a=new Set;return e.forEach(function(e){e&&e.id&&(o.has(e.id)&&a.add(e.id),o.add(e.id))}),a.size>0&&n.push(gv(lv,"Duplicate element IDs found",{duplicateIds:Array.from(a)})),e.forEach(function(e,o){var a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.strict,i=void 0!==n&&n,r=t.allowUnknownTypes,o=void 0!==r&&r,a=[],s=[];if(!e||"object"!==Qg(e)||Array.isArray(e))return a.push(gv(tv,"Element must be a non-null object")),{isValid:!1,errors:a,warnings:s,element:e};if(e.id&&"string"==typeof e.id?0===e.id.length&&a.push(gv(Zg,"Element id cannot be empty")):a.push(gv(Zg,"Element must have a string id",{received:Qg(e.id),value:e.id})),e.name&&"string"==typeof e.name?o||Bg.includes(e.name)||a.push(gv(ev,"Unknown element type: ".concat(e.name),{elementType:e.name,validTypes:Bg})):a.push(gv(ev,"Element must have a string name",{received:Qg(e.name)})),void 0!==e.settings)if("object"!==Qg(e.settings)||Array.isArray(e.settings))a.push(gv(tv,"Settings must be an object",{received:Qg(e.settings)}));else if(null!==e.settings){var l=Vg[e.name];l&&e.settings.tag&&(l.includes(e.settings.tag)||s.push(vv(rv,"Tag '".concat(e.settings.tag,"' may not be valid for element type '").concat(e.name,"'"),{tag:e.settings.tag,elementType:e.name,validTags:l})))}return void 0!==e.children&&(Array.isArray(e.children)?(e.name&&!Rg.includes(e.name)&&s.push(vv(fv,"Element type '".concat(e.name,"' is not nestable but has children"),{elementType:e.name,childrenCount:e.children.length})),e.children.forEach(function(e,t){"string"!=typeof e&&a.push(gv(nv,"Child at index ".concat(t," must be a string id"),{index:t,received:Qg(e)}))}),0===e.children.length&&Rg.includes(e.name)&&s.push(vv(mv,"Nestable element has empty children array",{elementType:e.name}))):a.push(gv(nv,"Children must be an array",{received:Qg(e.children)}))),void 0!==e.parent&&null!==e.parent&&0!==e.parent&&"string"!=typeof e.parent&&a.push(gv(iv,"Parent must be a string id, 0, null, or undefined",{received:Qg(e.parent),value:e.parent})),i&&s.length>0&&(a.push.apply(a,s),s.length=0),{isValid:0===a.length,errors:a,warnings:s,element:e}}(e,t);r.push(a),a.isValid||a.errors.forEach(function(t){n.push(Jg(Jg({},t),{},{elementIndex:o,elementId:null==e?void 0:e.id}))}),a.warnings.forEach(function(t){i.push(Jg(Jg({},t),{},{elementIndex:o,elementId:null==e?void 0:e.id}))})}),{isValid:0===n.length,errors:n,warnings:i,elements:e,results:r}}function bv(e){var t=[],n=[];if(!Array.isArray(e))return t.push(gv(tv,"Elements must be an array",{received:Qg(e)})),{isValid:!1,errors:t,warnings:n};var i=new Map;e.forEach(function(e){e&&e.id&&i.set(e.id,e)}),e.forEach(function(e){e&&e.id&&(e.parent&&0!==e.parent&&(i.has(e.parent)||t.push(gv(ov,"Element '".concat(e.id,"' references non-existent parent '").concat(e.parent,"'"),{elementId:e.id,parentId:e.parent}))),Array.isArray(e.children)&&e.children.forEach(function(r){if(i.has(r)){var o=i.get(r);o&&o.parent!==e.id&&n.push(vv(iv,"Child '".concat(r,"' parent does not match. Expected '").concat(e.id,"', got '").concat(o.parent,"'"),{childId:r,expectedParent:e.id,actualParent:o.parent}))}else t.push(gv(av,"Element '".concat(e.id,"' references non-existent child '").concat(r,"'"),{elementId:e.id,childId:r}))}))});var r=new Set,o=new Set;function a(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(o.has(e))return t.push(gv(sv,"Circular reference detected: ".concat([].concat(Wg(n),[e]).join(" -> ")),{cycle:[].concat(Wg(n),[e])})),!0;if(r.has(e))return!1;r.add(e),o.add(e);var s=i.get(e);if(s&&Array.isArray(s.children)){var l,c=Ug(s.children);try{for(c.s();!(l=c.n()).done;){if(a(l.value,[].concat(Wg(n),[e])))return!0}}catch(e){c.e(e)}finally{c.f()}}return o.delete(e),!1}return e.forEach(function(e){!e||!e.id||e.parent&&0!==e.parent||a(e.id)}),{isValid:0===t.length,errors:t,warnings:n}}function kv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],i=[],r=[];if(!Array.isArray(e))return n.push(gv(pv,"Global classes must be an array",{received:Qg(e)})),{isValid:!1,errors:n,warnings:i,globalClasses:e,results:r};var o=new Set,a=new Set,s=new Set,l=new Set;return e.forEach(function(e){e&&e.id&&(o.has(e.id)&&s.add(e.id),o.add(e.id)),e&&e.name&&(a.has(e.name)&&l.add(e.name),a.add(e.name))}),s.size>0&&n.push(gv(lv,"Duplicate global class IDs found",{duplicateIds:Array.from(s)})),l.size>0&&i.push(vv(uv,"Duplicate global class names found",{duplicateNames:Array.from(l)})),e.forEach(function(e,o){var a=function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).strict,n=void 0!==t&&t,i=[],r=[];if(!e||"object"!==Qg(e)||Array.isArray(e))return i.push(gv(pv,"Global class must be an object")),{isValid:!1,errors:i,warnings:r,globalClass:e};if(qg.forEach(function(t){e[t]||i.push(gv("id"===t?cv:uv,"Global class must have a '".concat(t,"' property"),{property:t}))}),e.id&&"string"!=typeof e.id&&i.push(gv(cv,"Global class id must be a string",{received:Qg(e.id)})),e.name)if("string"!=typeof e.name)i.push(gv(uv,"Global class name must be a string",{received:Qg(e.name)}));else{e.name.length>100&&i.push(gv(hv,"Class name exceeds maximum length of ".concat(100),{length:e.name.length,maxLength:100}));var o,a=Ug(Hg);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(e.name.startsWith(s)){r.push(vv(dv,"Class name starts with reserved prefix '".concat(s,"'"),{className:e.name,prefix:s}));break}}}catch(e){a.e(e)}finally{a.f()}zg.test(e.name)||r.push(vv(uv,"Class name contains unusual characters that may cause issues",{className:e.name}))}return void 0!==e.settings&&("object"!==Qg(e.settings)||Array.isArray(e.settings))&&i.push(gv(pv,"Global class settings must be an object",{received:Qg(e.settings)})),void 0!==e.selectors&&(Array.isArray(e.selectors)?n&&e.selectors.forEach(function(e,t){e&&"object"===Qg(e)?e.selector&&"string"==typeof e.selector||i.push(gv(pv,"Selector at index ".concat(t," must have a string 'selector' property"),{index:t})):i.push(gv(pv,"Selector at index ".concat(t," must be an object"),{index:t}))}):i.push(gv(pv,"Global class selectors must be an array",{received:Qg(e.selectors)}))),{isValid:0===i.length,errors:i,warnings:r,globalClass:e}}(e,t);r.push(a),a.isValid||a.errors.forEach(function(t){n.push(Jg(Jg({},t),{},{classIndex:o,classId:null==e?void 0:e.id,className:null==e?void 0:e.name}))}),a.warnings.forEach(function(t){i.push(Jg(Jg({},t),{},{classIndex:o,classId:null==e?void 0:e.id,className:null==e?void 0:e.name}))})}),{isValid:0===n.length,errors:n,warnings:i,globalClasses:e,results:r}}function wv(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var l=i&&i.prototype instanceof s?i:s,c=Object.create(l.prototype);return _v(c,"_invoke",function(n,i,r){var o,s,l,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return o=t,s=0,l=e,p.n=n,a}};function h(n,i){for(s=n,l=i,t=0;!d&&c&&!r&&t<u.length;t++){var r,o=u[t],h=p.p,f=o[2];n>3?(r=f===i)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=h&&((r=n<2&&h<o[1])?(s=0,p.v=i,p.n=o[1]):h<f&&(r=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,p.n=f,s=0))}if(r||n>1)return a;throw d=!0,i}return function(r,u,f){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,f),s=u,l=f;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(p.n=-1),h(s,l)):p.n=l:p.v=l);try{if(c=2,o){if(s||(r="next"),t=o[r]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=e}else if((t=(d=p.n<0)?l:n.call(i,p))!==a)break}catch(t){o=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,r,o),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][i]?t(t([][i]())):(_v(t={},i,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,_v(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,_v(d,"constructor",c),_v(c,"constructor",l),l.displayName="GeneratorFunction",_v(c,r,"GeneratorFunction"),_v(d),_v(d,r,"Generator"),_v(d,i,function(){return this}),_v(d,"toString",function(){return"[object Generator]"}),(wv=function(){return{w:o,m:p}})()}function _v(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}_v=function(e,t,n,i){function o(t,n){_v(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},_v(e,t,n,i)}function Cv(e){return Cv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cv(e)}function xv(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Iv(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Sv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||Iv(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ev(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Av(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ev(Object(n),!0).forEach(function(t){Dv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ev(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Dv(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Cv(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Cv(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Cv(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tv(e){return function(e){if(Array.isArray(e))return Ov(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Iv(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Iv(e,t){if(e){if("string"==typeof e)return Ov(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ov(e,t):void 0}}function Ov(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function Pv(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,r)}function Fv(e){return $v.apply(this,arguments)}function $v(){var e;return e=wv().m(function e(t){var n,i,r,o,a,s,l,c,u,d,p,h,f,m,g,v,y,b,k,w,_,C,x,S,E,A=arguments;return wv().w(function(e){for(;;)switch(e.n){case 0:if(i=(n=A.length>1&&void 0!==A[1]?A[1]:{}).validate,r=void 0===i||i,o=n.existingClasses,a=void 0===o?null:o,s=n.existingVariables,l=void 0===s?null:s,c=new If,u={success:!1,elements:[],globalClasses:[],globalVariables:[],hasExecutableJs:!1,classMapping:{},errors:c,validation:null},d=Of(t),c.merge(d.errors),p=d.scripts&&d.scripts.length>0||d.externalScripts&&d.externalScripts.length>0||d.styles&&d.styles.length>0||d.externalStylesheets&&d.externalStylesheets.length>0,d.success||p){e.n=1;break}return Tf(xf,"Failed to parse HTML content"),e.a(2,u);case 1:if(0!==(h=d.bodyContent?fm(d.bodyContent,c):[]).length||p){e.n=2;break}return Tf(Af,"No elements were created from HTML"),e.a(2,u);case 2:return f=d.styles.join("\n\n"),m=wm(f),g=_g(h),v=h.filter(function(e){return e.settings&&e.settings._cssId}).map(function(e){return e.settings._cssId}),y=kg(g,m,a),u.globalClasses=[].concat(Tv(y.newClasses),Tv(y.conflictingClasses||[])),u.classMapping=y.classMap,b=Ng(m,l),u.globalVariables=b.newVariables,k=jg(m),w=wg(h,u.classMapping),_=xm(m,v),w=Bv(w=jv(w,_)),C=Sm(k,g,v),x=Em(C),S=Dg(x,d.externalStylesheets),E=Tg(d.externalScripts),u.hasExecutableJs=(d.scripts||[]).length>0,S&&w.unshift(S),E&&w.push(E),u.elements=w,r&&(u.validation=Rv(u.elements,u.globalClasses)),u.success=u.elements.length>0,e.a(2,u)}},e)}),$v=function(){var t=this,n=arguments;return new Promise(function(i,r){var o=e.apply(t,n);function a(e){Pv(o,i,r,a,s,"next",e)}function s(e){Pv(o,i,r,a,s,"throw",e)}a(void 0)})},$v.apply(this,arguments)}function Mv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.existingClasses,i=void 0===n?[]:n,r=t.existingElements,o=void 0===r?[]:r,a=t.existingVariables,s=void 0===a?[]:a,l={success:!1,globalClasses:[],globalVariables:[],classMap:{},elementsToUpdate:[],generatedElements:[],classKeyframeCssByClass:{},remainingCssForCodeElement:"",errors:new If},c=wm(e);if(0===c.length)return Tf(xf,"No valid CSS rules found"),l;var u=Ng(c,s);l.globalVariables=u.newVariables;var d,p,h=jg(c),f=(d=c,p=new Set,d.forEach(function(e){e.selectors&&e.selectors.forEach(function(e){var t=e.match(/\.([a-zA-Z_-][\w-]*)/g);t&&t.forEach(function(e){return p.add(e.slice(1))})})}),Array.from(p));if(0===f.length){var m=Em(h).trim(),g=Ig([],[],m,[]);return g?(l.generatedElements=[g],l.remainingCssForCodeElement=m,l.success=!0,l):l.globalVariables.length>0?(l.success=!0,l):(Tf(xf,"No class selectors found in CSS"),l)}var v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=t.filter(function(e){return(null==e?void 0:e.isAtRule)&&"keyframes"===(null==e?void 0:e.atRuleName)});if(0===n.length)return{classKeyframeCssByClass:{},assignedKeyframeNames:new Set};var i=new Map;Object.entries(e||{}).forEach(function(e){var t=Sv(e,2),n=t[0],r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new Set,n=Array.isArray(e.targets)?e.targets:[];return n.forEach(function(e){(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new Set,n=e["animation-name"];n&&Lv(n).forEach(function(e){var n=Nv(e);n&&"none"!==n&&t.add(n)});var i=e.animation;i&&Lv(i).forEach(function(e){var n=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=String(t).trim().split(/\s+/).filter(Boolean),i=new Set(["normal","reverse","alternate","alternate-reverse","forwards","backwards","both","running","paused","infinite","linear","ease","ease-in","ease-out","ease-in-out","step-start","step-end","initial","inherit","unset","revert","revert-layer"]),r=xv(n);try{for(r.s();!(e=r.n()).done;){var o=Nv(e.value);if(o&&!(i.has(o)||/^-?\d*\.?\d+m?s$/i.test(o)||/^-?\d*\.?\d+$/.test(o)||o.includes("(")))return o}}catch(e){r.e(e)}finally{r.f()}return""}(e);n&&"none"!==n&&t.add(n)});return t})((null==e?void 0:e.declarations)||{}).forEach(function(e){return t.add(e)})}),t}(t[1]);r.forEach(function(e){i.has(e)||i.set(e,new Set),i.get(e).add(n)})});var r={},o=new Set;return n.forEach(function(e){var t=Nv(null==e?void 0:e.atRuleParams);if(t){var n=i.get(t);if(n&&1===n.size){var a=Sv(Array.from(n),1)[0];r[a]||(r[a]=[]),r[a].push(e.raw),o.add(t)}}}),Object.keys(r).forEach(function(e){r[e]=r[e].join("\n\n").trim()}),{classKeyframeCssByClass:r,assignedKeyframeNames:o}}(Cm(c,f),c),y=kg(f,c,i);l.globalClasses=[].concat(Tv(y.newClasses),Tv(y.conflictingClasses||[])),l.classKeyframeCssByClass=v.classKeyframeCssByClass,l.globalClasses=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Array.isArray(e)||0===e.length)return e;return e.map(function(e){var n=t[null==e?void 0:e.name];if(!n)return e;var i=Av(Av({},e),{},{settings:Av({},e.settings||{})}),r=i.settings._cssCustom||"";return i.settings._cssCustom=[r,n].filter(Boolean).join("\n").trim(),i})}(l.globalClasses,v.classKeyframeCssByClass);var b=i.reduce(function(e,t){return e[t.name]=t.id,e},{});l.classMap=Av(Av({},y.classMap),b),l.elementsToUpdate=function(e,t){var n=[],i=new Set(t);return e.forEach(function(e){var t;if(null!==(t=e.settings)&&void 0!==t&&t._cssClasses){var r=e.settings._cssClasses.split(/\s+/).filter(function(e){return e.length>0}).filter(function(e){return i.has(e)});r.length>0&&n.push({elementId:e.id,matchingClasses:r})}}),n}(o,f);var k=Sm(h,f,[]).filter(function(e){if(null==e||!e.isAtRule||"keyframes"!==(null==e?void 0:e.atRuleName))return!0;var t=Nv(null==e?void 0:e.atRuleParams);return!v.assignedKeyframeNames.has(t)});l.remainingCssForCodeElement=Em(k).trim();var w=Ig([],[],l.remainingCssForCodeElement,[]);return w&&(l.generatedElements=[w]),l.success=!0,l}function Lv(){var e,t=[],n="",i=0,r=xv(String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:""));try{for(r.s();!(e=r.n()).done;){var o=e.value;"("!==o?")"!==o?","!==o||0!==i?n+=o:(n.trim()&&t.push(n.trim()),n=""):(i=Math.max(0,i-1),n+=o):(i++,n+=o)}}catch(e){r.e(e)}finally{r.f()}return n.trim()&&t.push(n.trim()),t}function Nv(){return String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim().replace(/^['"]|['"]$/g,"")}function jv(e,t){return e.map(function(e){var n=e.settings&&e.settings._cssId;if(!n||!t[n])return e;var i=t[n];if(0===Object.keys(i.base).length&&0===Object.keys(i.pseudo).length&&(!Array.isArray(i.targets)||0===i.targets.length))return e;var r=Av(Av({},e),{},{settings:Av({},e.settings)}),o="#".concat(n),a=Array.isArray(i.targets)&&i.targets.length?i.targets:[].concat(Tv(Object.keys(i.base||{}).length?[lg(o,i.base||{})]:[]),Tv(Object.entries(i.pseudo||{}).map(function(e){var t=Sv(e,2),n=t[0],i=t[1];return lg("".concat(o).concat(n),i||{})}))),s=cg({elementName:e.name,rootSelector:o,targets:a,initialSettings:r.settings});r.settings=s.settings;var l=sg(s.unmappedTargets||[]);if(l){var c=r.settings._cssCustom||"";r.settings._cssCustom="".concat(c,"\n").concat(l).trim()}return r})}function Bv(e){return e.map(function(e){if(!e.settings||!e.settings._inlineStyle)return e;var t=Av(Av({},e),{},{settings:Av({},e.settings)}),n=t.settings._inlineStyle,i=t.settings._cssId,r=i?"#".concat(i):"#brxe-".concat(e.id),o=_m(n),a=cg({elementName:e.name,rootSelector:r,targets:[lg(r,o)],initialSettings:t.settings});t.settings=a.settings;var s=sg(a.unmappedTargets||[]);if(s){var l=t.settings._cssCustom||"";t.settings._cssCustom="".concat(l,"\n").concat(s).trim()}return delete t.settings._inlineStyle,t})}function Rv(e,t){var n=yv(e),i=bv(e),r=kv(t);return{isValid:n.isValid&&i.isValid&&r.isValid,elements:n,tree:i,classes:r,errors:[].concat(Tv(n.errors),Tv(i.errors),Tv(r.errors)),warnings:[].concat(Tv(n.warnings),Tv(i.warnings),Tv(r.warnings))}}function Vv(e){if(!e||"string"!=typeof e)return!1;var t=e.trim();return!!/<[a-z][^>]*>/i.test(t)&&(/<([a-z][a-z0-9]*)\b[^>]*>[\s\S]*<\/\1>/i.test(t)||/<[a-z][^>]*\/\s*>/i.test(t)||/<(br|hr|img|input|meta|link|area|base|col|embed|param|source|track|wbr)\b[^>]*>/i.test(t))}function qv(e){if(!e||"string"!=typeof e)return!1;var t=e.trim();if(!/[.#\w[\]:,\s-]+\s*\{[^}]+\}/.test(t))return!1;var n=t.replace(/"<[a-z-]+>(?:\s*\|\s*<[a-z-]+>)*(?:\s*#)?(?:\s*\+)?"/gi,"");if(/<\/?[a-z][\s\S]*>/i.test(n))return!1;return[/^\s*\/\*.*\*\/\s*/m,/\.[a-zA-Z_-][\w-]*\s*\{/,/#[a-zA-Z_-][\w-]*\s*\{/,/[a-z-][\w-]*\s*:\s*[^;:]+;/,/@media\s*\(/,/@keyframes\s+/,/@property\s+/,/(?:^|[\s;{}])(body|html|:root)\s*\{/].some(function(e){return e.test(t)})}function Hv(e){return function(e){if(Array.isArray(e))return Wv(e)}(e)||Uv(e)||zv(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zv(e,t){if(e){if("string"==typeof e)return Wv(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wv(e,t):void 0}}function Uv(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Wv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var Gv=["caption","col","colgroup","tbody","td","tfoot","th","thead","tr"],Kv=function(){return String((arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")||"").split("-")[0]},Qv=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Gv.includes(function(){return String((arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")||"").toLowerCase()}(t))?"table":"div",i=document.createElement(n);return i.innerHTML=e,i},Yv=function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=Qv(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",arguments.length>2&&void 0!==arguments[2]?arguments[2]:""),n=[e,Kv(e)].filter(Boolean).map(function(e){return".brxe-".concat((t=e,null!==(n=window.CSS)&&void 0!==n&&n.escape?window.CSS.escape(t):String(t).replace(/([!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~])/g,"\\$1")));var t,n}),i=n.length?Array.from(t.querySelectorAll(Hv(new Set(n)).join(","))):[];return{wrapper:t,nodes:i,firstNode:i[0],otherNodes:i.slice(1)}};function Jv(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var l=i&&i.prototype instanceof s?i:s,c=Object.create(l.prototype);return Xv(c,"_invoke",function(n,i,r){var o,s,l,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return o=t,s=0,l=e,p.n=n,a}};function h(n,i){for(s=n,l=i,t=0;!d&&c&&!r&&t<u.length;t++){var r,o=u[t],h=p.p,f=o[2];n>3?(r=f===i)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=h&&((r=n<2&&h<o[1])?(s=0,p.v=i,p.n=o[1]):h<f&&(r=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,p.n=f,s=0))}if(r||n>1)return a;throw d=!0,i}return function(r,u,f){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,f),s=u,l=f;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(p.n=-1),h(s,l)):p.n=l:p.v=l);try{if(c=2,o){if(s||(r="next"),t=o[r]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=e}else if((t=(d=p.n<0)?l:n.call(i,p))!==a)break}catch(t){o=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,r,o),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][i]?t(t([][i]())):(Xv(t={},i,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Xv(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,Xv(d,"constructor",c),Xv(c,"constructor",l),l.displayName="GeneratorFunction",Xv(c,r,"GeneratorFunction"),Xv(d),Xv(d,r,"Generator"),Xv(d,i,function(){return this}),Xv(d,"toString",function(){return"[object Generator]"}),(Jv=function(){return{w:o,m:p}})()}function Xv(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}Xv=function(e,t,n,i){function o(t,n){Xv(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},Xv(e,t,n,i)}function Zv(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,r)}function ey(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var o=e.apply(t,n);function a(e){Zv(o,i,r,a,s,"next",e)}function s(e){Zv(o,i,r,a,s,"throw",e)}a(void 0)})}}function ty(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||iy(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ny(e){return function(e){if(Array.isArray(e))return ry(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||iy(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function iy(e,t){if(e){if("string"==typeof e)return ry(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ry(e,t):void 0}}function ry(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function oy(e){return oy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oy(e)}function ay(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function sy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ay(Object(n),!0).forEach(function(t){ly(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ay(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ly(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=oy(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=oy(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==oy(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cy=window.bricksData.i18n,uy=function(e){return Fy().querySelector('script[id="tmpl-bricks-element-'.concat(null==e?void 0:e.name,'"]'))},dy=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!t||!Array.isArray(e))return!1;n=Array.isArray(n)?n:[];var i=new Map;n.forEach(function(e){return i.set(e.id,e)}),Xh.components.forEach(function(e){return i.set(e.id,e)});for(var r=e.map(function(e){return null==e?void 0:e.cid}).filter(Boolean),o=new Set;r.length;){var a=r.pop();if(a===t)return!0;if(!o.has(a)){o.add(a);var s=i.get(a);Array.isArray(null==s?void 0:s.elements)&&s.elements.forEach(function(e){null!=e&&e.cid&&r.push(e.cid)})}}return!1},py=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!Array.isArray(e)||n>10)return[];var i=[];return e.forEach(function(e){if(null!=e&&e.cid&&!t.has(e.cid)){var r=d_.getComponentById(e.cid);if(Array.isArray(null==r?void 0:r.elements)){var o=r.elements;i=i.concat(o);var a=new Set(t);a.add(e.cid),i=i.concat(py(o,a,n+1))}}}),i},hy=function(e,t){var n=null==e?void 0:e.tag,i=null==e?void 0:e.customTag;return"custom"===n&&i&&!i.includes("{")&&(i=i.trim().split(" ")[0])&&(n=i),window.bricksData.allowedHtmlTags.includes(n)||(n=t),n},fy=function(){var e,t,n,i,r,o,a,s,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},p=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],h=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,f=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,m=d_.clone(d),g=null!==(e=d)&&void 0!==e&&e.cid?d_.getComponentElementById(d.cid):null;g&&(d=g);var v,y=null!==(t=d)&&void 0!==t&&t.instanceId?"".concat(d.id,"-").concat(d.instanceId):d.id,b=(null===(n=window.bricksData.loadData.htmlAttributes)||void 0===n||null===(n=n[y])||void 0===n?void 0:n._root)||null;if(b){var k,w=Array.isArray(null==b?void 0:b.class)?b.class:[];if(w.length){var _,C=d_.getElementGlobalClassNames(null===(_=d)||void 0===_?void 0:_.settings);C.length&&C.forEach(function(e){var t=w.indexOf(e);-1!==t&&(w.splice(t,1),b.class=w)})}var x=(null===(k=window.bricksData.loadData.htmlAttributes)||void 0===k||null===(k=k[y])||void 0===k||null===(k=k._original)||void 0===k||null===(k=k._root)||void 0===k?void 0:k.class)||[];for(var S in x.length&&x.forEach(function(e){var t=w.indexOf(e);-1!==t&&(w.splice(t,1),b.class=w)}),b)(S.startsWith("data-brx-")||S.startsWith("data-bricks-")||"data-layout"===S||"data-expand-item"===S||"data-open-tab"===S)&&delete b[S];l=sy(sy({},l),b)}if("image-gallery"===d.name&&("masonry"!==(null===(v=d)||void 0===v||null===(v=v.settings)||void 0===v?void 0:v.layout)&&Array.isArray(l.class))){var E=l.class.indexOf("isotope");-1!==E&&l.class.splice(E,1)}var A=null===(i=d)||void 0===i||null===(i=i.settings)||void 0===i?void 0:i._attributes,D=[];if(Array.isArray(A)){if(null!=m&&m.cid){var T=d_.getComponentById(m.cid),I=d_.getComponentSettings(T,m);null!=I&&I._attributes&&(A=I._attributes)}A=A.reduce(function(e,t){var n,i="string"==typeof(null==t?void 0:t.id)?t.id:null,r="string"==typeof(null==t?void 0:t.name)?t.name:null,o=null==t?void 0:t.value;o||(o=null===(n=d)||void 0===n||null===(n=n.settings)||void 0===n?void 0:n["_attributes|".concat(i,"|value")]);if(r&&(r=(r=r.trim()).replace(/\s+/g,"-"))){var a,s=null!==(a=d)&&void 0!==a&&a.instanceId?"".concat(f,"-").concat(d.instanceId):f;r=d_.getDynamicDataTagValue(r,s),o=d_.getDynamicDataTagValue(o,s),r&&(e[r]=null!=o?o:"")}return e},{}),D=Object.keys(A),l=sy(sy({},l),A)}var O,P=null===(r=window.bricksData.loadData.htmlAttributes)||void 0===r||null===(r=r[y])||void 0===r?void 0:r._customAttrNames;if(Array.isArray(P)&&P.length&&P.forEach(function(e){D.includes(e)||delete l[e]}),p.length){l.class&&(Array.isArray(l.class)?l.class=l.class.join(" "):"object"===oy(l.class)&&(l.class=Object.values(l.class).join(" ")));var F=l.class?l.class.split(" "):[];F=p.concat(F),F=ny(new Set(F)),l.class=F.join(" ")}if(null===(o=window.bricksData.elements[d.name])||void 0===o?void 0:o.supportMasonry){var $,M,L,N=["isotope","bricks-masonry","bricks-layout-wrapper"],j=[];if(l.class&&(Array.isArray(l.class)?j=ny(l.class):"string"==typeof l.class?j=l.class.split(" ").filter(function(e){return""!==e.trim()}):"object"===oy(l.class)&&(j=Object.values(l.class).join(" ").split(" ").filter(function(e){return""!==e.trim()}))),null!==($=d)&&void 0!==$&&null!==($=$.settings)&&void 0!==$&&$._useMasonry)N.forEach(function(e){j.includes(e)||j.push(e)}),null!==(M=d)&&void 0!==M&&null!==(M=M.settings)&&void 0!==M&&M._masonryHorizontalOrder&&(l["data-brx-masonry-json"]=JSON.stringify({horizontalOrder:!0}));else if(j=j.filter(function(e){return!N.includes(e)}),null!==(L=window.bricksData)&&void 0!==L&&null!==(L=L.isotopeInstances)&&void 0!==L&&L[d.id])try{window.bricksData.isotopeInstances[d.id].instance.destroy(),delete window.bricksData.isotopeInstances[d.id]}catch(e){delete window.bricksData.isotopeInstances[d.id]}j.length>0?(j=ny(new Set(j.filter(function(e){return e&&""!==e.trim()}))),l.class=j):delete l.class}(l.id=Ay(m),l["data-id"]=Xh.activeComponent&&null!=g&&g.id&&(null===(a=Xh.activeComponent)||void 0===a?void 0:a.id)===(null==m?void 0:m.cid)?g.id:m.id,l["data-parent-id"]=d.parent,l["data-script-id"]=d.id,l["data-index"]=c,l["data-query-loop-index"]=u,l["data-animation"]=null===(s=d)||void 0===s||null===(s=s.settings)||void 0===s?void 0:s._animation,l["data-direct-loop-id"]=f||null,null!=m&&m.cid&&d_.isComponentRoot(m))?(l["data-component"]=m.cid,(null===(O=Xh.activeComponent)||void 0===O?void 0:O.id)!==m.cid&&(l["data-component"]=m.id),null!=m&&m.slotChildren&&(l["data-has-slots"]="true")):null!=h&&h.id&&(l["data-parent-component"]=h.id);var B=null;for(var R in Xh.componentVariantActive&&Xh.activeComponent&&null!=m&&m.cid&&Xh.activeComponent.id===m.cid&&d_.isComponentRoot(m)&&Xh.componentInstanceId&&Xh.componentInstanceId===m.id?B=Xh.componentVariantActive:null!=m&&m.cid&&null!=m&&m.variant&&(B=m.variant),B&&(l["data-brx-variant"]=B.replace("variant-","")),l)"string"!=typeof R||/^(?:[:A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD40-\uDD59\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDD4A-\uDD65\uDD6F-\uDD85\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC7\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDB0-\uDDDB\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDE40-\uDE7F\uDEA0-\uDEB8\uDEBB-\uDED3\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3\uDFF2\uDFF3]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDDD0-\uDDED\uDDF0\uDEC0-\uDEDE\uDEE0-\uDEE2\uDEE4\uDEE5\uDEE7-\uDEED\uDEF0-\uDEF4\uDEFE\uDEFF\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79])(?:[\x2D\.0-:A-Z\\_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD40-\uDD59\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDD4A-\uDD65\uDD6F-\uDD85\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC7\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDB0-\uDDDB\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDE40-\uDE7F\uDEA0-\uDEB8\uDEBB-\uDED3\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3\uDFF2\uDFF3]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDDD0-\uDDED\uDDF0\uDEC0-\uDEDE\uDEE0-\uDEE2\uDEE4\uDEE5\uDEE7-\uDEED\uDEF0-\uDEF4\uDEFE\uDEFF\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79])*$/.test(R)||(window.bricksData.debug&&console.warn("ERROR: getElementAttributes:delete:attribute.name",R,d),delete l[R]);return l},my=function(e){var t={id:d_.generateId(),name:e.name,parent:e.parent?e.parent:0,children:Array.isArray(null==e?void 0:e.children)?e.children:[],settings:e.settings?e.settings:{}};null!=e&&e.selectors&&(t.selectors=e.selectors),null!=e&&e.attributes&&(t.attributes=e.attributes),null!=e&&e.label&&(t.label=e.label),null!=e&&e.global&&(t.global=e.global),e.hasOwnProperty("cloneable")&&(t.cloneable=e.cloneable),e.hasOwnProperty("deletable")&&(t.deletable=e.deletable);var n=d_.clone(d_.getElementConfig(e.name)),i=(null==n?void 0:n.controls)||{};if(!Object.keys(t.settings).length||Xh.showCommandPalette&&Object.keys(t.settings).length)for(var r in i){var o;null!==(o=i[r])&&void 0!==o&&o.default&&!t.settings.hasOwnProperty(r)&&(t.settings[r]=i[r].default)}return null!=e&&e.cid&&(t.cid=e.cid,t.children=[]),t},gy=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!(!(arguments.length>3&&void 0!==arguments[3])||arguments[3])||d_.userCanAddAnyElements()||d_.userHasPermission("duplicate_elements")||d_.userHasPermission("insert_components")){var o=(null===(e=Xh.activeComponent)||void 0===e?void 0:e.elements)||lf.value;if(o=d_.clone(o),null!==(t=Xh.activeComponent)&&void 0!==t&&t.id&&null!=n&&n.cid&&dy([n],Xh.activeComponent.id))alert(cy.insertSameComponentError);else{i=Number.isInteger(i)?i:o.length-1;var a=!1,s=null,l=r,c=!1;if(Xh.activeVirtualSlot&&!r){var u=Xh.activeVirtualSlot,d=u.slotId,p=u.instanceId,h=o.find(function(e){return e.id===p&&e.cid});if(h){var f,m=d_.getComponent(h);null!=m&&null!==(f=m.elements)&&void 0!==f&&f.some(function(e){return e.id===d&&"slot"===e.name})&&(a=!0,s=h,l=d,i=-1)}}if(!a&&r&&String(r).startsWith("vslot-")){var g=String(r).split("-");if(3===g.length){var v=ty(g,3),y=v[1],b=v[2],k=o.find(function(e){return e.id===y&&e.cid});if(k){var w,_=d_.getComponent(k);null!=_&&null!==(w=_.elements)&&void 0!==w&&w.some(function(e){return e.id===b&&"slot"===e.name})&&(a=!0,s=k,l=b)}}}if(a&&s){if(null!=n&&n.cid&&s.cid===n.cid)return;d_.addElementToSlot(n,l,s,i),c=!0,n.parent=s.id,o.push(n)}else if(0!=r&&r){var C=o.findIndex(function(e){return e.id===r}),x=!1;if(-1!==C&&Xh.activeId&&!Xh.selectedElements.length){var S=o[C];if(S.slotChildren)for(var E=0,A=Object.entries(S.slotChildren);E<A.length;E++){var D=ty(A[E],2),T=D[0],I=D[1].indexOf(Xh.activeId);if(-1!==I){if(null!=n&&n.cid&&S.cid===n.cid)return;d_.addElementToSlot(n,T,S,I+1),c=!0,n.parent=S.id,x=!0;break}}}if(!x){if(-1!==C){var O=o[C];if(null!=O&&O.cid&&null!=O&&O.slotChildren){var P,F=d_.getComponent(O),$=null==F||null===(P=F.elements)||void 0===P?void 0:P.find(function(e){return"slot"===e.name});if($){if(null!=n&&n.cid&&O.cid===n.cid)return;d_.addElementToSlot(n,$.id,O,i),n.parent=O.id,x=!0}}var M=Array.isArray(O.children)?O.children:[];if(!x&&Xh.activeId&&!Xh.selectedElements.length){var L=M.findIndex(function(e){return Xh.activeId===e});-1!==L&&(i=L+1)}x||(M.splice(i,0,n.id),O.children=M)}else console.warn({message:"addToStore: Parent element not found",parentId:r,element:n,elements:o});n.parent=r}o.push(n)}else if(n.parent=0,Array.isArray(o)){var N=!!cf.value[i]&&cf.value[i].id;N?(i=o.findIndex(function(e){return e.id===N}),o.splice(i,0,n)):o.push(n)}else o=[n];var j=d_.loopingComponentChangedCids(n);Xh.activeComponent?Xh.activeComponent.elements=o:Xh[sf.value]=o,Fn(function(){if(Xh.activeElement&&Xh.sendPostMessage){var e=o.find(function(e){var t;return e.id===(null===(t=Xh.activeElement)||void 0===t?void 0:t.id)});e&&(Xh.activeElement=e)}j.length>0&&j.forEach(function(e){d_.rerenderCid(e)}),c||d_.rerenderSlotComponentInstanceForElement(n,o)})}}},vy=function(){var e,t,n,i,r,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!s||d_.userCanAddAnyElements()||d_.userHasPermission("insert_components")){Xh.sendPostMessage=!0;var l,c,u=af.value,d=(null===(e=Xh.activeComponent)||void 0===e?void 0:e.elements)||lf.value,p=(null==o?void 0:o.element)||{},h=(null==o?void 0:o.index)||0,f=(null==o?void 0:o.parent)||0;if(p=d_.clone(p),null!=o&&o.keepLabel||delete p.label,"section"===(null===(t=p)||void 0===t?void 0:t.name))f=0,h="section"===(null==u?void 0:u.name)?d.findIndex(function(e){return e.id===u.id}):d.length;else if(!f){var m,g=!1,v=null;if(Xh.activeId&&!Xh.activeComponent&&d.forEach(function(e){if(null!=e&&e.cid){var t=d_.getComponent(e);if(null!=t&&t.elements)t.elements.find(function(e){return"slot"===e.name&&e.id===Xh.activeId})&&(g=!0,v=e)}}),g&&v)f=Xh.activeId,h=(null===(m=v.slotChildren)||void 0===m||null===(m=m[Xh.activeId])||void 0===m?void 0:m.length)||0;else if(f=d_.isNestable(u)?u.id:null==u?void 0:u.parent)h=u.children?u.children.length:0;else{var y=u.parent||null;if(y){var b=d.find(function(e){return e.id===y});if(b){f=y;var k=b.children?b.children.indexOf(u.id):b.children.length;-1!==k&&(h=k+1)}}else h||(h=cf.value.length)}}if(Xh.activeComponent&&!f)if(d_.isNestable(Xh.activeElement))f=null===(l=Xh.activeElement)||void 0===l?void 0:l.id,h=Xh.activeElement.children.length;else f=null===(c=Xh.activeElement)||void 0===c?void 0:c.parent;if(Xh.activeComponent&&null!==(n=Xh.activeElement)&&void 0!==n&&n.cid){f=Xh.activeElement.parent;var w=d.find(function(e){return e.id===f});h=Array.isArray(w.children)?w.children.length:0}if(!Xh.activeComponent&&null!==(i=Xh.activeElement)&&void 0!==i&&i.cid&&(null==o||!o.parent)){var _;f=null===(_=Xh.activeElement)||void 0===_?void 0:_.parent;var C=d.find(function(e){return e.id===f});h=C?C.children.indexOf(Xh.activeElement.id):d.findIndex(function(e){return e.id===Xh.activeElement.id})+1}p=my(p);var x=!1;if(Array.isArray(null===(r=p)||void 0===r?void 0:r.children)&&p.children.some(function(e){return"object"===oy(e)})&&(x=p.children,p.children=[]),Xh.insertAfter){var S=0!=f&&Dy(f);S&&(f=null==S?void 0:S.parent),0==f&&(h=cf.value.findIndex(function(e){return e.id===u.id}),-1!==h&&(h+=1))}gy(p,h,f,s,!0);var E=d_.getElementConfig(p.name);return!Array.isArray(null==E?void 0:E.nestableChildren)||o.hasOwnProperty("nestableChildrenSkip")||p.cid||(x=E.nestableChildren),x&&yy({children:x,parentId:p.id}),null!=a&&a.shiftKey&&Fn(function(){var e=p.id;if("section"===p.name){var t,n=null===(t=d[lf.value.length-1])||void 0===t?void 0:t.id;n&&(e=n)}setTimeout(function(){Xh.activeId=e,Xh.activePanel="element",Xh.scrollToElementId=e},0)}),p}},yy=function(e){e.children.forEach(function(t,n){var i=my(t);i.children&&(i.children=[]),t.settings&&(i.settings=t.settings),gy(i,n,e.parentId),Array.isArray(null==t?void 0:t.children)&&yy({children:null==t?void 0:t.children,parentId:i.id})})},by=function(e){Xh.selectedElements.length>1?Xh.selectedElements.forEach(function(e){var t=d_.getElementIndex(e);ky({element:e,index:t})}):ky({element:e})},ky=function(e){var t;if(d_.userHasPermission("duplicate_elements")){var n=(null===(t=Xh.activeComponent)||void 0===t?void 0:t.elements)||lf.value,i=(null==e?void 0:e.element)||Xh.activeElement,r=null==e?void 0:e.index;if(null!=i&&i.cid&&d_.isComponentRoot(i)&&d_.forceRender(0),"number"!=typeof r)if(i.parent){var o=n.find(function(e){return e.id===i.parent});o&&(r=o.children.indexOf(i.id))}else{var a=cf.value.findIndex(function(e){return e.id===i.id});-1!==a&&(r=a)}i&&"number"==typeof r&&function(e,t){var n=[];!function e(t,i,r){var o,a,s,l,c=t.id,u=$y(t,"iframe");t=d_.clone(t);var d=d_.generateId();t.id=d,null!==(o=t)&&void 0!==o&&null!==(o=o.settings)&&void 0!==o&&o._interactions&&(t.settings._interactions=t.settings._interactions.map(function(e){return e.id=d_.generateId(),e})),c!==t.id&&Object.keys(t.settings).forEach(function(e){e.startsWith("_cssCustom")&&(t.settings[e]=t.settings[e].replace(new RegExp(c,"g"),d))}),null!==(a=t)&&void 0!==a&&null!==(a=a.settings)&&void 0!==a&&a._cssId&&delete t.settings._cssId;var p=t.children||[];t.children=[];var h=Fy().querySelector('script[id="tmpl-bricks-element-'.concat(null===(s=t)||void 0===s?void 0:s.name,'"]')),f=d_.isNestable(t);if(u&&!h&&!f){var m=u.outerHTML,g=new RegExp(c,"g"),v=m.replace(g,d);v=v.replace(/class="([^"]*)"/g,function(e,t){var n=t.split(/\s+/).filter(function(e){return"is-active-element"!==e}).join(" ");return'class="'.concat(n,'"')}),Xh.clonedElementsHtml[d]=v}n.push({element:t,index:i,parentId:r});var y=(null===(l=Xh.activeComponent)||void 0===l?void 0:l.elements)||lf.value;if(p.forEach(function(t,n){var i=y.find(function(e){return e.id===t});i&&e(d_.clone(i),n,d)}),t.slotChildren){var b={};Object.keys(t.slotChildren).forEach(function(n){var i=t.slotChildren[n],r=[];Array.isArray(i)&&i.forEach(function(t,n){var i=y.find(function(e){return e.id===t});if(i){var o=e(d_.clone(i),n,d);o&&r.push(o.id)}}),b[n]=r}),t.slotChildren=b}return t}(e,t,e.parent||0),n.forEach(function(e){var t=e.element,n=e.index,i=e.parentId;gy(t,n,i,!0,!0)})}(i,r+1)}},wy=function(e,t){Array.isArray(e)&&0!==e.length&&e.forEach(function(e){"both"!==t&&"builder"!==t||(e.settings._hideElementBuilder=!e.settings._hideElementBuilder),"both"!==t&&"frontend"!==t||(e.settings._hideElementFrontend=!e.settings._hideElementFrontend)})},_y=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"block";if((d_.userHasPermission("add_element_block")||d_.userHasPermission("add_element_container")||d_.userHasPermission("add_element_section")||d_.userHasPermission("add_element_div"))&&(e=e||Xh.activeElement)){var i=(null===(t=Xh.activeComponent)||void 0===t?void 0:t.elements)||lf.value,r=e.parent,o=d_.getElementIndex(e),a=null,s=null;i.forEach(function(t){null!=t&&t.cid&&null!=t&&t.slotChildren&&Object.keys(t.slotChildren).forEach(function(n){t.slotChildren[n].includes(e.id)&&(a=n,s=t,o=t.slotChildren[n].indexOf(e.id))})}),a&&s&&(r="vslot-".concat(s.id,"-").concat(a));var l=my({name:n});gy(l,o,r,!0);var c=Xh.selectedElements.length?Xh.selectedElements:[e];(c=d_.clone(c)).forEach(function(e,t){d_.moveElement({element:e,parentId:l.id,index:0+t})}),Fn(function(){setTimeout(function(){Xh.selectedElements.length||(Xh.activeId=l.id)},0)})}},Cy=function(e){Xh.deleteItem=e,setTimeout(function(){Xh.deleteItem=!1},2e3)},xy=function(e){d_.userHasPermission("delete_elements")&&d_.deleteElement(e)},Sy=function(e){var t;return null===(t=null==e?void 0:e.cloneable)||void 0===t||t},Ey=function(e){var t;return null===(t=null==e?void 0:e.deletable)||void 0===t||t},Ay=function(e){var t,n=null!=e&&e.id?"brxe-".concat(e.id):"brxe-".concat(Xh.activeId);return null!=e&&null!==(t=e.settings)&&void 0!==t&&t._cssId&&(n=d_.getParsedDynamicCssId(e.settings._cssId,{loopId:null==e?void 0:e.loopId,fetchMissing:!(null!=e&&e.loopId),rerender:!0})),n},Dy=function(e){var t=lf.value.find(function(t){return t.id===e});return t||(Xh.components.forEach(function(n){if(!t&&Array.isArray(null==n?void 0:n.elements)){var i=n.elements.find(function(t){return t.id===e});i&&(t=i)}}),t)},Ty=function(e){if(null!=e&&e.cid){var t=d_.getComponent(e);if(t){var n=d_.getComponentElementById(e.cid);return Iy(t,n,null==e?void 0:e.properties)}}var i=Array.isArray(null==e?void 0:e.children)?e.children:[],r=[];return e.hasOwnProperty("parent")||(e.parent=0,console.table({problem:"No parent property found",action:"Set parent to 0 (root)",parentElement:e})),e.id===(null==e?void 0:e.parent)&&(e.parent=0,console.table({problem:"element.id === parent",action:"Element moved to the root",parentElement:e})),i&&-1!==i.indexOf(e.id)&&(i.splice(i.indexOf(e.id),1),e.children=i,console.table({problem:"element.id is also in element.children array",action:"Removed element.id from element.children",parentElement:e})),i.forEach(function(t){var n=Dy(t);if(Xh.iframeLoaded&&!Xh.orphanedElementIds.length)if(n){if(n.id===(null==n?void 0:n.parent)&&(n.parent=e.id,console.table({problem:'element child ID "'.concat(t,'" is same as parent ID'),action:"Set the parent ID",element:n,parentElement:e})),(null==n?void 0:n.parent)!==e.id){n.parent=0;var i=e.children.indexOf(n.id);-1!==i&&e.children.splice(i,1),console.table({problem:"element ".concat(t," has a different parent ID"),action:"Moved element to the root",element:n,parentElement:e})}}else{var o=e.children.indexOf(t);-1!==o&&e.children.splice(o,1),console.table({problem:'element.id "'.concat(t,'" does not exist'),action:"Removed from element.children",parentElement:e})}n&&(null==n?void 0:n.parent)===e.id&&r.push(n)}),r},Iy=function(e,t,n){var i,r,o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Set,s=(null===(i=e=d_.clone(e))||void 0===i?void 0:i.elements)||[],l=(null===(r=e)||void 0===r?void 0:r.properties)||[];n||(n=(null==t?void 0:t.properties)||{});var c=ny(s),u=null===(o=e)||void 0===o?void 0:o.id;if(u){if(a.has(u))return window.bricksData.debug&&console.warn("Circular component reference detected:",u),[];a.add(u)}var d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t>10?window.bricksData.debug&&console.warn("Maximum component nesting depth (10) exceeded"):e.forEach(function(e){if(null!=e&&e.cid){if(a.has(e.cid))return void(window.bricksData.debug&&console.warn("Skipping already processed component:",e.cid));var n=d_.getComponent(e);if(null!=n&&n.elements){a.add(e.cid);var i=d_.clone(n.elements),r=(null==e?void 0:e.properties)||{},o=(null==n?void 0:n.properties)||[];i.forEach(function(e,t){o.forEach(function(n){var o;((null==n||null===(o=n.connections)||void 0===o?void 0:o[null==e?void 0:e.id])||[]).forEach(function(e){var o;null!==(o=i[t])&&void 0!==o&&o.settings&&!Array.isArray(i[t].settings)||(i[t].settings={});var a=null==r?void 0:r[null==n?void 0:n.id];i[t].settings=d_.applyComponentPropertyLogic(n,e,a,i[t].settings)})})}),c=c.concat(i),d(i,t+1)}}})};d(s,0),c.forEach(function(e,t){l.forEach(function(i){var r;((null==i||null===(r=i.connections)||void 0===r?void 0:r[null==e?void 0:e.id])||[]).forEach(function(e){var r,o;null!==(r=c[t])&&void 0!==r&&r.settings&&!Array.isArray(c[t].settings)||(c[t].settings={});var a=null===(o=n)||void 0===o?void 0:o[null==i?void 0:i.id];c[t].settings=d_.applyComponentPropertyLogic(i,e,a,c[t].settings)})})});var p=(null==t?void 0:t.children)||[],h=[];return p.forEach(function(e){var t=c.find(function(t){return t.id===e});t&&h.push(t)}),h.forEach(function(e){e.cid||(e._resolvedInstanceProperties=n)}),h},Oy=function(e){var t=Dy(e),n=!!t&&$y(t,"iframe");if(n)return"grid"===window.getComputedStyle(n).display},Py=function(){return window.self==window.top?document.getElementById("bricks-builder-iframe").contentWindow:window},Fy=function(){return Py().document},$y=function(e,t){var n=t||document;if("iframe"===t&&(n=Fy()),e||(e=!!Xh.activeId&&d_.clone(af.value)),e){var i=Ay(e),r=n.getElementById(i);return r||(r=n.querySelector(".".concat(i))),r||(r=n.querySelector('div[data-id="'.concat(Xh.activeId,'"]'))),r}},My=function(e){null!=e&&e.settings&&!Array.isArray(null==e?void 0:e.settings)||(Xh.historyInProgress=!0,Xh.isBroadcasting=Date.now(),e.settings={},Fn(function(){Xh.isBroadcasting=!1,Xh.historyInProgress=!1}))},Ly=function(e,t){if(d_.userHasPermission("copy_paste_elements")){if(!e&&Xh.activeId){var n,i=d_.clone(Xh.activeElement);if(!i||!Sy(i)||!Ey(i))return;e=[];var r=function(t){Array.isArray(null==t?void 0:t.children)&&t.children.forEach(function(t){var n=o.find(function(e){return e.id===t});n&&(e.push(n),r(n))}),null!=t&&t.slotChildren&&Object.values(t.slotChildren).forEach(function(t){Array.isArray(t)&&t.forEach(function(t){var n=o.find(function(e){return e.id===t});n&&(e.push(n),r(n))})})},o=(null===(n=Xh.activeComponent)||void 0===n?void 0:n.elements)||lf.value;(Xh.selectedElements.length?Xh.selectedElements:[i]).forEach(function(t){var n=o.find(function(e){return e.id===t.id});n&&(e.push(n),r(n))})}t||(Xh.selectedElements.length>1?t="".concat(cy.copied,": ").concat(cy.selectedElements," (").concat(Xh.selectedElements.length,")"):e.length&&(t="".concat(cy.copied,": ").concat(d_.escapeHTML(d_.getElementLabel(Xh.activeElement))))),e.length?e=e.filter(function(e,t,n){return t===n.findIndex(function(t){return t.id===e.id&&t.name===e.name})}):t="".concat(cy.copied,": ").concat(cy.nothingToCopy),d_.writeToClipboard("bricksCopiedElements",e,t)}},Ny=function(e){var t,n,i,r=d_.getGlobalClass(e,!0),o=null===(t=r)||void 0===t?void 0:t.name;if(r){var a=(null===(n=r=d_.clone(r))||void 0===n?void 0:n.selectors)||[],s=(null===(i=r)||void 0===i?void 0:i.settings)||{};Object.keys(s).length||a.length?(Object.keys(s).forEach(function(e){e.startsWith("_cssCustom")&&(s[e]=s[e].replaceAll(".".concat(o),"%root%"))}),d_.writeToClipboard("bricksCopiedGlobalClassStyles",{styles:s,selectors:a},"".concat(cy.copied,": ").concat(cy.styles))):d_.showMessage(cy.nothingToCopy)}},jy=function(e){var t=d_.clone(e),n=Array.isArray(null==t?void 0:t.settings)?{}:null==t?void 0:t.settings,i=(null==t?void 0:t.selectors)||[],r=d_.getElementConfig(e.name).controls||{};Object.keys(n).forEach(function(t){var i=d_.getControlKeyPlain(t),o=(null==r?void 0:r[i])||!1;if(t.startsWith("_cssCustom")){var a=Ay(e);n[t]=n[t].replaceAll("#".concat(a),"%root%")}null!=o&&o.css||null!=o&&o.pasteStyles||i.startsWith("_cssCustom")||"repeater"===(null==o?void 0:o.type)||"_cssGlobalClasses"===t||delete n[t],"icon"===(null==o?void 0:o.type)&&delete n[t],"_cssGlobalClasses"===t&&n[t]&&delete n[t]}),Object.keys(n).length||i.length?d_.writeToClipboard("bricksCopiedElementStyles",t,"".concat(cy.copied,": ").concat(cy.styles)):d_.showMessage(cy.nothingToCopy)},By=function(e){(Xh.selectedElements.length?Xh.selectedElements:[Xh.activeElement]).forEach(function(t){Ry(e,t),Vy(e,t)})},Ry=function(e,t){d_.readFromClipboard("bricksCopiedGlobalClassStyles").then(function(n){var i,r,o=(null==n||null===(i=n.content)||void 0===i?void 0:i.styles)||{},a=(null==n||null===(r=n.content)||void 0===r?void 0:r.selectors)||[];if(Object.keys(o).length||a.length){var s=Ay(t),l=e?".".concat(d_.getGlobalClassName(e)):"#".concat(s);Object.keys(o).forEach(function(e){e.startsWith("_cssCustom")&&(o[e]=o[e].replaceAll("%root%",l))});var c,u,d=Xh.globalClassIndexById[e],p=Xh.globalClasses[d];if(p)p.settings=o,a.length&&(Array.isArray(null==p?void 0:p.selectors)?a.forEach(function(e){var t=p.selectors.find(function(t){return t.selector===e.selector});t?t.settings=sy(sy({},t.settings),e.settings):p.selectors.push(selector)}):p.selectors=a),null!==(c=Xh.activeClass)&&void 0!==c&&c.id&&Xh.activeClass.id===(null===(u=Xh.globalClasses[d])||void 0===u?void 0:u.id)&&(Xh.activeClass=p);else Object.keys(o).forEach(function(e){t.settings[e]=o[e]});Fn(function(){d_.rerenderControls(),d_.showMessage("".concat(cy.pasted,": ").concat(cy.styles))})}})},Vy=function(e,t){d_.readFromClipboard("bricksCopiedElementStyles").then(function(n){var i,r=(null==n?void 0:n.content)||{},o=(null==n?void 0:n.globalClasses)||[],a=(null==r?void 0:r.selectors)||[],s=Array.isArray(null==r?void 0:r.settings)?{}:r.settings;if(Object.keys(s).length||a.length)if(e){if(d_.isLocked())return;var l,c,u=Xh.globalClassIndexById[e],d=d_.clone(Xh.globalClasses[u]);d&&(Object.keys(s).forEach(function(e){e.startsWith("_cssCustom")&&(s[e]=s[e].replaceAll("%root%",".".concat(d.name))),Array.isArray(d.settings)&&(d.settings={}),d.settings[e]=s[e]}),a.length&&(Array.isArray(null==d?void 0:d.selectors)?a.forEach(function(e){var t=d.selectors.find(function(t){return t.selector===e.selector});t?t.settings=sy(sy({},t.settings),e.settings):d.selectors.push(selector)}):d.selectors=a),Xh.globalClasses[u]=d,(null===(l=Xh.globalClasses[u])||void 0===l?void 0:l.id)===(null===(c=Xh.activeClass)||void 0===c?void 0:c.id)&&(Xh.activeClass=Xh.globalClasses[u]),Fn(function(){d_.rerenderControls(),d_.showMessage("".concat(cy.pasted,": ").concat(cy.styles))}))}else{a.length&&(Array.isArray(null==t?void 0:t.selectors)?a.forEach(function(e){var n=t.selectors.find(function(t){return t.selector===e.selector});n?n.settings=sy(sy({},n.settings),e.settings):t.selectors.push(selector)}):t.selectors=a,Xh.activeElement.selectors=t.selectors),null!=t&&t.settings&&!Array.isArray(t.settings)||(t.settings={});var p=(null===(i=d_.getElementConfig(t.name))||void 0===i?void 0:i.controls)||{};Object.keys(s).forEach(function(e){var n=s[e],i=d_.getControlKeyPlain(e),r=(null==p?void 0:p[i])||{},a=!1;if(r){if(null!=r&&r.css)a=!0;else if("repeater"===(null==r?void 0:r.type))a=!0;else if(null!=r&&r.pasteStyles)a=r.pasteStyles;else if("_cssGlobalClasses"===i){var l,c=Xh.globalClasses.map(function(e){return e.id}),u=[];n.forEach(function(e){if(-1===c.indexOf(e)){var t=o.find(function(t){return t.id===e});t&&(Xh.globalClasses.push(t),c.push(e),u.push(e))}else u.push(e)}),a=!(null===(l=n=u)||void 0===l||!l.length)}}else a=!1;if(!1!==a)if("repeater"===r.type){var d=p[i].fields;n.forEach(function(n,i){Object.keys(n).forEach(function(r){var o=d[d_.getControlKeyPlain(r)];o&&o.hasOwnProperty("css")&&t.settings[e][i]&&(t.settings[e][i][r]=n[r])})})}else if(e.startsWith("_cssCustom")){var h=Ay(t);n=n.replaceAll("%root%","#".concat(h)),t.settings[e]=n}else t.settings[e]=n}),Xh.activeElement.settings=t.settings,Fn(function(){d_.rerenderControls(),d_.showMessage("".concat(cy.pasted,": ").concat(cy.styles))})}})},qy=function(e){var t=[].concat(ny(window.bricksData.validPseudoClasses||[]),ny(window.bricksData.validPseudoElements||[]));e&&Object.keys(e).forEach(function(e){var n=e.lastIndexOf("::");-1===n&&(n=e.lastIndexOf(":"));var i,r=-1!==n?e.slice(n):"";r&&((i=r)&&t.some(function(e){return i.startsWith(e)}))&&!Xh.pseudoClasses.includes(r)&&Xh.pseudoClasses.push(r)})},Hy=function(e){e&&"object"===oy(e)&&Object.keys(e).forEach(function(t){var n,i;if("_background"===t||t.startsWith("_background:")){var r=null===(n=e[t])||void 0===n?void 0:n.image,o=(null==r||null===(i=r.useDynamicData)||void 0===i?void 0:i.name)||(null==r?void 0:r.useDynamicData);if(o&&"string"==typeof o)(Object.prototype.hasOwnProperty.call(r,"url")||Object.prototype.hasOwnProperty.call(r,"filename")||Object.prototype.hasOwnProperty.call(r,"full"))&&(delete r.id,delete r.url,delete r.filename,delete r.full)}})},zy=function(e){if(d_.userHasPermission("copy_paste_elements")&&navigator.clipboard&&window.isSecureContext){navigator.clipboard.readText().then(function(){var n=ey(Jv().m(function n(i){var r,o,a,s,l,c,u,d,p,h,f,m,g,v,y,b,k,w,_,C,x,S,E;return Jv().w(function(n){for(;;)switch(n.p=n.n){case 0:if(i&&i.trim()){n.n=1;break}return n.a(2);case 1:if(u={},d=!1,p=!1,n.p=2,u=JSON.parse(i),"bricksCopiedElements"===(null===(h=u)||void 0===h?void 0:h.source)){n.n=5;break}if(!Vv(i)){n.n=3;break}d=!0,n.n=5;break;case 3:if(!qv(i)){n.n=4;break}p=!0,n.n=5;break;case 4:return n.a(2);case 5:n.n=9;break;case 6:if(n.p=6,n.v,!Vv(i)){n.n=7;break}d=!0,n.n=9;break;case 7:if(!qv(i)){n.n=8;break}p=!0,n.n=9;break;case 8:return n.a(2);case 9:if(!d&&!p){n.n=12;break}if("disabled"!==(m=(null===(f=window.bricksData)||void 0===f?void 0:f.builderHtmlCssConverter)||"confirm")){n.n=10;break}return n.a(2);case 10:if("confirm"!==m){n.n=11;break}if(window.confirm(cy.htmlCssConverterConfirm)){n.n=11;break}return n.a(2);case 11:if(d_.userHasPermission("create_global_classes")){n.n=12;break}return n.a(2);case 12:if(!d){n.n=15;break}return n.n=13,Fv(i,{existingClasses:Xh.globalClasses,existingVariables:Xh.globalVariables});case 13:if((g=n.v).success){n.n=14;break}return g.errors.getErrors().length>0&&d_.showMessage(cy.htmlImportFailed||"HTML import failed",4e3),n.a(2);case 14:g.elements=Yy(g.elements,"JavaScript",cy.htmlCssCodeLabel),g.globalVariables&&g.globalVariables.length>0&&g.globalVariables.forEach(function(e){Xh.globalVariables.find(function(t){return t.name===e.name})||Xh.globalVariables.push(e)}),g.elements.forEach(function(e){var t;if("image"===e.name&&null!==(t=e.settings)&&void 0!==t&&t._importImage){var n=e.settings._importImage;e.settings.image={url:n.url,external:!0,filename:n.url.split("/").pop().split("?")[0]||""},delete e.settings._importImage}}),u={source:"htmlImport",content:g.elements,globalClasses:g.globalClasses,components:[],globalElements:[],sourceUrl:""},e||(e=cy.htmlImport||"HTML");case 15:if(!p){n.n=17;break}if((v=Mv(i,{existingClasses:Xh.globalClasses,existingElements:lf.value,existingVariables:Xh.globalVariables})).success){n.n=16;break}return d_.showMessage(cy.cssImportFailed||"CSS import failed",4e3),n.a(2);case 16:return y=new Set(Xh.globalClasses.map(function(e){return e.id})),b=rb(v.globalClasses),k=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];v.globalVariables&&v.globalVariables.length>0&&v.globalVariables.forEach(function(e){Xh.globalVariables.find(function(t){return t.name===e.name})||Xh.globalVariables.push(e)}),n.forEach(function(e){Xh.globalClasses.some(function(t){return t.id===e.id||t.name===e.name})||Xh.globalClasses.push(e)});var i=sy({},v.classMap),r=Xh.importClassIdMappings||{};Object.keys(i).forEach(function(e){var t=i[e];r[t]&&(i[e]=r[t])}),n.forEach(function(e){i[e.name]=e.id}),v.elementsToUpdate.forEach(function(e){var t=e.elementId,n=e.matchingClasses,r=lf.value.find(function(e){return e.id===t});if(r){var o=n.map(function(e){return i[e]}).filter(Boolean);if(r.settings._cssGlobalClasses||(r.settings._cssGlobalClasses=[]),o.forEach(function(e){r.settings._cssGlobalClasses.includes(e)||r.settings._cssGlobalClasses.push(e)}),r.settings._cssClasses){var a=r.settings._cssClasses.split(/\s+/).filter(function(e){return!n.includes(e)});a.length>0?r.settings._cssClasses=a.join(" "):delete r.settings._cssClasses}}});var o=Yy(v.generatedElements||[],"JavaScript",cy.htmlCssCodeLabel);o.length>0&&t(o,n,[],e,"",{showBuilderMessage:!1});var a=Xh.globalClasses.filter(function(e){return!y.has(e.id)}).length,s=v.elementsToUpdate.length,l=v.globalVariables?v.globalVariables.length:0,c=cy.cssImportSuccess||"Created ".concat(a," global class(es)");(c=c.replace("{count}",a),l>0)&&(c+=(cy.cssImportVariables||", ".concat(l," variable(s)")).replace("{count}",l));s>0&&(c+=(cy.cssImportLinked||", linked to ".concat(s," element(s)")).replace("{count}",s));d_.showMessage(c,3e3)},b.length>0?(Xh.popup="styles",Xh.popupTab="classes",Xh.classesImportData={classes:b,onImport:function(e){k(e),Xh.popup=!1},onCancel:function(){k([]),Xh.popup=!1}}):k([]),n.a(2);case 17:if(w=(null===(r=u)||void 0===r?void 0:r.content)||[],_=(null===(o=u)||void 0===o?void 0:o.components)||[],C=(null===(a=u)||void 0===a?void 0:a.globalClasses)||[],x=(null===(s=u)||void 0===s?void 0:s.globalElements)||[],S=(null===(l=u)||void 0===l?void 0:l.sourceUrl)||"",_=Array.isArray(_)?_:[],Array.isArray(w)&&0!==w.length){n.n=18;break}return n.a(2);case 18:if(null===(c=Xh.activeComponent)||void 0===c||!c.id||!dy(w,Xh.activeComponent.id,_)){n.n=19;break}return alert(cy.insertSameComponentError),n.a(2);case 19:_.length&&_.forEach(function(e){var t;if(!Xh.components.find(function(t){return t.id===e.id})){var n=d_.clone(e);t=null==n?void 0:n.elements,Array.isArray(t)&&t.forEach(function(e){return Hy(null==e?void 0:e.settings)}),Xh.components.push(n),Xh.notifications.push({action:"component-imported",desc:"[".concat(cy.component,"] ").concat(cy.imported,": ").concat(d_.escapeHTML(d_.getElementLabel(d_.getComponentElementById(e.id))))})}}),C.forEach(function(e){qy(e.settings)}),E=[],C.forEach(function(e){var t=Xh.globalClasses.find(function(t){return t.id===e.id||t.name===e.name});(!t||t&&ib(e))&&E.push(sy(sy({},e),{},{_exists:!!t}))}),(E=rb(E)).length>0?(Xh.popup="styles",Xh.popupTab="classes",Xh.classesImportData={classes:E,onImport:function(n){t(w,n,x,e,S),Xh.popup=!1},onCancel:function(){t(w,[],x,e,S),Xh.popup=!1}}):t(w,[],x,e,S);case 20:return n.a(2)}},n,null,[[2,6]])}));return function(e){return n.apply(this,arguments)}}()).catch(function(){});var t=function(e,t,n,i,r){var o,a,s=(arguments.length>5&&void 0!==arguments[5]?arguments[5]:{}).showBuilderMessage,l=void 0===s||s,c=Xh.globalClasses.map(function(e){return e.id}),u=Xh.globalElements.map(function(e){return e.global}),d=[],p={},h=-1,f={};if(Object.values((null===(o=window.bricksData)||void 0===o?void 0:o.elements)||{}).forEach(function(e){var t=(null==e?void 0:e.controls)||{};null!=e&&e.name&&null!=e&&e.controls&&-1!==["image","image-gallery","svg"].indexOf(e.name)&&Object.keys(t).forEach(function(n){var i=t[n];"image"!==(null==i?void 0:i.type)&&"svg"!==(null==i?void 0:i.type)&&"image-gallery"!==(null==i?void 0:i.type)||(f[e.name]?f[e.name].push(n):f[e.name]=[n])})}),Xh.importClassIdMappings&&Object.keys(Xh.importClassIdMappings).length){var m,g=(null===(m=window.bricksData)||void 0===m?void 0:m.builderGlobalClassesImport)||"conflicts";e=lb(e,Xh.importClassIdMappings,g)}e.forEach(function(e){var o,a,s,l,h,m,g,v,y,b,k,w=e.id,_=d_.generateId();(e=d_.clone(e),e=(e=JSON.stringify(e)).replaceAll(w,_),e=JSON.parse(e),p[w]=_,e.id=p[w],Hy(null===(o=e)||void 0===o?void 0:o.settings),function(e){e&&"object"===oy(e)&&!Array.isArray(e)&&Object.values(e).forEach(function(e){var t,n=(null==e||null===(t=e.useDynamicData)||void 0===t?void 0:t.name)||(null==e?void 0:e.useDynamicData);n&&"string"==typeof n&&(Object.prototype.hasOwnProperty.call(e,"url")||Object.prototype.hasOwnProperty.call(e,"filename")||Object.prototype.hasOwnProperty.call(e,"full"))&&(delete e.id,delete e.url,delete e.filename,delete e.full)})}(null===(a=e)||void 0===a?void 0:a.properties),i||(i=d_.escapeHTML(d_.getElementLabel(e))),Xh.userCan.executeCode)||("code"===(null===(v=e)||void 0===v?void 0:v.name)&&null!==(y=e)&&void 0!==y&&null!==(y=y.settings)&&void 0!==y&&y.executeCode&&delete e.settings.executeCode,null!==(b=e)&&void 0!==b&&null!==(b=b.settings)&&void 0!==b&&null!==(b=b.query)&&void 0!==b&&b.queryEditor&&delete e.settings.query.queryEditor,null!==(k=e)&&void 0!==k&&null!==(k=k.settings)&&void 0!==k&&null!==(k=k.query)&&void 0!==k&&k.useQueryEditor&&delete e.settings.query.useQueryEditor);var C=null===(s=e)||void 0===s||null===(s=s.settings)||void 0===s?void 0:s._cssId;if(C){var x=document.getElementById("bricks-builder-iframe");(x?x.contentWindow.document.getElementById(C):document.getElementById(C))&&delete e.settings._cssId}if(null!==(l=e)&&void 0!==l&&null!==(l=l.settings)&&void 0!==l&&l._cssGlobalClasses){var S=[];e.settings._cssGlobalClasses.forEach(function(e){var n;t.find(function(t){return t.id===e})||-1!==c.indexOf(e)?S.push(e):null!==(n=Xh.importClassIdMappings)&&void 0!==n&&n[e]&&S.push(Xh.importClassIdMappings[e])}),0===S.length?delete e.settings._cssGlobalClasses:e.settings._cssGlobalClasses=S}if(null!==(h=e)&&void 0!==h&&h.global&&-1===u.indexOf(e.global)){var E=n.find(function(t){return t.global===e.global});E?(Xh.globalElements.push(E),u.push(E.global)):delete e.global}null!==(m=e)&&void 0!==m&&m.settings&&qy(e.settings);var A=r&&r!==window.bricksData.siteUrl;if(f[e.name]&&null!==(g=e)&&void 0!==g&&g.settings&&A){var D,T=(null===(D=window.bricksData)||void 0===D?void 0:D.pasteAndImportImage)||!1,I=function(e){var t={url:window.bricksData.placeholderImage.img,full:window.bricksData.placeholderImage.img,isPlaceholder:!0};return null!=e&&e.url&&e.url.endsWith(".svg")&&(t.url=window.bricksData.placeholderImage.svg,t.full=window.bricksData.placeholderImage.svg,t.path=window.bricksData.placeholderImage.svgPath),t};f[e.name].forEach(function(t){if(e.settings[t]){var n=e.settings[t];if("image-gallery"===e.name){if(n.useDynamicData)return;var i={images:[]};null!=n&&n.size&&(i.size=n.size),null==n||n.images.forEach(function(e){i.images.push(I(e))}),e.settings[t]=i}else{if(null==n||!n.id)return;var r=I(n);e.settings[t]=r}T&&Xh.imagesToImport.push({elementId:e.id,elementName:e.name,settingKey:t,settings:n})}})}d.push(e)});var v,y=lf.value,b=Xh.activeElement,k=Xh.activeComponent,w=d_.isComponentRoot(b);k&&(y=k.elements,b=!w||null!==(v=b)&&void 0!==v&&v.cid?y.find(function(e){return e.id===Xh.activeId}):Xh.activeComponent);d.forEach(function(e,t){if(null!=p&&p[e.parent])d[t].parent=p[e.parent];else if(Xh.activeId){var n;if(!d_.isNestable(b)||w&&!k||k&&(!k||null!==(n=b)&&void 0!==n&&n.cid)){if(e.parent=b.parent,e.parent){var i=k&&k.id===e.parent?k:y.find(function(t){return t.id===e.parent}),r=i.children.findIndex(function(e){return e===Xh.activeId});i.children.splice(r+1,0,e.id)}}else b.children.push(e.id),e.parent=Xh.activeId}else e.parent=0;if(d[t].parent=e.parent,0===t){var o=y.findIndex(function(e){return e.id===Xh.activeId});h=o>-1?o+1:y.length}Array.isArray(e.children)&&e.children.forEach(function(e,n){p.hasOwnProperty(e)&&(d[t].children[n]=p[e])}),null!=e&&e.slotChildren&&Object.keys(e.slotChildren).forEach(function(n){var i=e.slotChildren[n];Array.isArray(i)&&(d[t].slotChildren[n]=i.map(function(e){return Object.prototype.hasOwnProperty.call(p,e)?p[e]:e}))})}),(a=y).splice.apply(a,[h,0].concat(d)),Xh.imagesToImport.length>0&&Object.keys(p).length>0&&(Xh.imagesToImport=Xh.imagesToImport.map(function(e){var t=null==p?void 0:p[e.elementId];return t?sy(sy({},e),{},{elementId:t}):e})),l&&d_.showMessage("".concat(cy.pasted,": ").concat(i),2e3),Xh.imagesToImport.length>0&&(Xh.importImages=!0)}}},Uy=function(){var e=!!Xh.activeId&&af.value,t=d_.getGlobalElement(e);t&&e&&(e.settings=d_.clone(t.settings),delete e.global,Fn(function(){d_.rerenderControls(),d_.showMessage("".concat(cy.unlinked,": ").concat(cy.globalElement))}))},Wy="// Extracted from pasted content. Enable execution only if you trust this code.",Gy="/* Extracted from pasted content that could not be mapped to a specific element or class. */",Ky="\x3c!-- Extracted from pasted content that could not be mapped to a specific element or class. --\x3e";function Qy(e,t){if(!e||"string"!=typeof e)return"";var n=e.trim();return n?n.startsWith(t)?n:"".concat(t,"\n").concat(n):""}function Yy(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"JavaScript",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"HTML && CSS";if(!Array.isArray(e)||0===e.length)return e;var i=[];return e.forEach(function(e){var r;if("code"===(null==e?void 0:e.name)){var o=null==e||null===(r=e.settings)||void 0===r?void 0:r.javascriptCode;if(o&&String(o).trim()){var a=sy({},e.settings||{});delete a.javascriptCode;var s=!(!a.cssCode||!String(a.cssCode).trim()),l=!(!a.code||!String(a.code).trim());(s||l)&&(a.cssCode&&(a.cssCode=Qy(String(a.cssCode),Gy)),a.code&&(a.code=Qy(String(a.code),Ky)),i.push(sy(sy({},e),{},{label:n||"HTML && CSS",settings:a}))),i.push({id:d_.generateId(),name:"code",parent:e.parent||0,label:t||"JavaScript",settings:{executeCode:!1,javascriptCode:Qy(String(o),Wy)}})}else{var c,u,d=!(null==e||null===(c=e.settings)||void 0===c||!c.cssCode||!String(e.settings.cssCode).trim()),p=!(null==e||null===(u=e.settings)||void 0===u||!u.code||!String(e.settings.code).trim());if(d||p){var h=sy({},e.settings||{});return h.cssCode&&(h.cssCode=Qy(String(h.cssCode),Gy)),h.code&&(h.code=Qy(String(h.code),Ky)),void i.push(sy(sy({},e),{},{label:n||"HTML && CSS",settings:h}))}i.push(e)}}else i.push(e)}),i}var Jy=function(e){try{e.startsWith("> ")&&(e=e.replace("> ","")),document.createDocumentFragment().querySelector(e)}catch(e){return!1}return!0},Xy=function(e){return Xh.isMac&&e.metaKey||!Xh.isMac&&e.ctrlKey},Zy=function(e){var t,n="nav-menu"===(null==e?void 0:e.name)&&Dy(null==e?void 0:e.parent);return"brx-dropdown-content"===(null==n||null===(t=n.settings)||void 0===t||null===(t=t._hidden)||void 0===t?void 0:t._cssClasses)},eb=function(){return Xh.searchControlKeyword||Xh.searchControlModified},tb=function(){var e=[];document.querySelectorAll("[data-template-id]").forEach(function(t){e.push(t.dataset.templateId)}),e.length&&d_.http({data:{action:"bricks_get_template_elements_by_id",templateIds:JSON.stringify(e)},success:function(e){var t=Object.keys(e.data);window.bricksData.debug.includes("templateElements")&&console.log("templateElements",t,e.data),t.length&&t.forEach(function(t){Xh.templateElements[t]=e.data[t]})}})},nb=function(){var e=ey(Jv().m(function e(){var t,n,i,r,o,a,s,l,c,u,d;return Jv().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t=[],n=[],"queries"===Xh.popup?(t=Xh.globalQueries,n=Xh.globalQueriesCategories):"classes"===Xh.popupTab?(t="trash"===Xh.popupView?Xh.globalClassesTrash:Xh.globalClasses,n=Xh.globalClassesCategories):"variables"===Xh.popupTab&&(t=Xh.globalVariables,n=Xh.globalVariablesCategories),(t=d_.clone(t)).length){e.n=1;break}return e.a(2,t);case 1:if((i=Xh.popupFilters.categories).length&&(i.includes("uncategorized")?(r=n.map(function(e){return e.id}),t=t.filter(function(e){return!e.category||!r.includes(e.category)})):t=t.filter(function(e){return i.includes(e.category)})),(o=Xh.popupFilters.include)&&(t=o.startsWith(".")?t.filter(function(e){return".".concat(e.name).startsWith(o)}):o.endsWith(".")?t.filter(function(e){return"".concat(e.name,".").endsWith(o)}):t.filter(function(e){return e.name.includes(o)})),(a=Xh.popupFilters.exclude)&&(t=a.startsWith(".")?t.filter(function(e){return!".".concat(e.name).startsWith(a)}):a.endsWith(".")?t.filter(function(e){return!"".concat(e.name,".").endsWith(a)}):t.filter(function(e){return!e.name.includes(a)})),"alphabetically"===Xh.popupFilters.sort&&t.sort(function(e,t){return e.name.localeCompare(t.name)}),s=function(){var e=[];return["content","header","footer"].forEach(function(t){Array.isArray(Xh[t])&&(e=e.concat(Xh[t],py(Xh[t])))}),JSON.stringify(e)},l=function(e){var n=s();if("variables"===Xh.popupTab){var i="";Xh.globalClasses.forEach(function(e){n.includes(e.id)&&(i+=JSON.stringify(e.settings||{}))});var r=n+i;"usedOnPage"===e?t=t.filter(function(e){return new RegExp("var\\(\\s*--\\s*".concat(e.name.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"\\s*\\)")).test(r)}):"unusedOnPage"===e&&(t=t.filter(function(e){return!new RegExp("var\\(\\s*--\\s*".concat(e.name.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"\\s*\\)")).test(r)}))}else"usedOnPage"===e?t=t.filter(function(e){return n.includes(e.id)}):"unusedOnPage"===e&&(t=t.filter(function(e){return!n.includes(e.id)}))},c=Xh.popupFilters.by,!Array.isArray(c)){e.n=6;break}if(c.includes("usedOnPage")&&l("usedOnPage"),c.includes("unusedOnPage")&&l("unusedOnPage"),c.includes("hasStyles")&&(t=t.filter(function(e){return Object.keys(e.settings).length})),c.includes("hasNoStyles")&&(t=t.filter(function(e){return!Object.keys(e.settings).length})),c.includes("locked")&&(t=t.filter(function(e){return Xh.globalClassesLocked.includes(e.id)})),c.includes("unlocked")&&(t=t.filter(function(e){return!Xh.globalClassesLocked.includes(e.id)})),c.includes("hasConflict")&&(t=t.filter(function(e){return Xh.globalClasses.some(function(t){return t.id===e.id||t.name===e.name})})),c.includes("noConflict")&&(t=t.filter(function(e){return!Xh.globalClasses.some(function(t){return t.id===e.id||t.name===e.name})})),!c.includes("usedOnThisSite")&&!c.includes("unusedOnThisSite")){e.n=6;break}return Xh.popupIsLoadingItems=!0,e.p=2,e.n=3,new Promise(function(e,t){d_.http({fetch:!0,method:"GET",endpoint:"get-global-classes-site-usage",headers:{"X-Bricks-Nonce":window.bricksData.nonce},error:function(e){console.error(cy.errorFetchingSiteClasses,e),d_.showMessage(cy.errorFetchingSiteClasses,"error"),t(e)},success:function(t){return e(t)}})});case 3:u=e.v,c.includes("usedOnThisSite")&&(t=t.filter(function(e){return u.data.usedClasses.includes(e.id)})),c.includes("unusedOnThisSite")&&(t=t.filter(function(e){return u.data.unusedClasses.includes(e.id)})),e.n=5;break;case 4:e.p=4,d=e.v,console.error("Error in site-wide usage filter:",d);case 5:return e.p=5,Xh.popupIsLoadingItems=!1,e.f(5);case 6:return t.forEach(function(e){e._locked=Xh.globalClassesLocked.includes(e.id)}),e.a(2,t)}},e,null,[[2,4,5,6]])}));return function(){return e.apply(this,arguments)}}(),ib=function(e){if(null!=e&&e._override)return!1;var t={by:!1,class:!1};return Xh.globalClasses.forEach(function(n){if(n.id===e.id){var i=n.name!==e.name,r=JSON.stringify(null==n?void 0:n.settings)!==JSON.stringify(null==e?void 0:e.settings);(i||r)&&(t.by="id",t.class=n)}else n.name===e.name&&(t.by="name",t.class=n)}),!(!t.by||!t.class)&&t},rb=function(e){var t;if(!Array.isArray(e)||!e.length)return[];e=ab(e);var n=(null===(t=window.bricksData)||void 0===t?void 0:t.builderGlobalClassesImport)||"conflicts",i={},r=e.reduce(function(e,t){var n=ib(t);n?("name"===n.by&&(i[t.id]=n.class.id),e.conflictingClasses.push(sy(sy({},t),{},{_exists:!0,_mappedId:n.class.id}))):Xh.globalClasses.some(function(e){return e.id===t.id||e.name===t.name})||e.newClasses.push(t);return e},{newClasses:[],conflictingClasses:[]}),o=r.newClasses,a=r.conflictingClasses;switch(Xh.importClassIdMappings=i,n){case"conflicts":return o.length&&(Xh.globalClasses=[].concat(ny(Xh.globalClasses),ny(o))),a;case"new":return o;case"never":return o.length&&(Xh.globalClasses=[].concat(ny(Xh.globalClasses),ny(o))),[];case"always":return[].concat(ny(o),ny(a))}},ob=function(){var e,t="".concat(cy.components);Xh.componentInstanceId&&(t=null!==(e=Dy(Xh.componentInstanceId))&&void 0!==e&&e.cid?cy.instance:cy.element);return"".concat(cy.back," (").concat(t,")")},ab=function(e){var t=new Set;return e.forEach(function(e){e._categoryData&&(t.add(e._categoryData),delete e._categoryData)}),t.forEach(function(t){if(!Xh.globalClassesCategories.find(function(e){return e.id===t.id||e.name===t.name})){var n=Xh.globalClassesCategories.some(function(e){return e.id===t.id}),i={id:n?d_.generateId():t.id,name:t.name,_isNew:!0};Xh.globalClassesCategories.push(i),e.forEach(function(e){var r;(null===(r=e._categoryData)||void 0===r?void 0:r.id)===t.id&&n&&(e.category=i.id)})}}),e},sb=function(){var e=Xh.globalClassesCategories.map(function(e){var t=sy({},e);return delete t._isNew,t});Xh.globalClassesCategories=d_.clone(e)},lb=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"conflicts";return e&&Array.isArray(e)?e.map(function(e){var i,r=sy({},e);return null!=r&&null!==(i=r.settings)&&void 0!==i&&i._cssGlobalClasses&&(["new","never"].includes(n)?r.settings._cssGlobalClasses=r.settings._cssGlobalClasses.map(function(e){return t[e]||e}):r.settings._cssGlobalClasses=r.settings._cssGlobalClasses.map(function(e){return t[e]?t[e]:e}),0===r.settings._cssGlobalClasses.length&&delete r.settings._cssGlobalClasses),r.content&&(r.content=lb(r.content,t,n)),r}):e},cb=function(e,t,n){var i,r,o,a,s=null===(i=t)||void 0===i?void 0:i.settings,l=null!==(r=Xh.activeClass)&&void 0!==r&&r.id&&(null===(o=t)||void 0===o?void 0:o.id)===Xh.activeClass.id?Xh.activeClass:null;if(Xh.pseudoClassActive&&"object"===oy(s)&&(s=Object.keys(s).reduce(function(e,t){t.endsWith(Xh.pseudoClassActive)&&(e[t]=s[t],e[t.replace(Xh.pseudoClassActive,"")]=s[t]);return e},{})),Xh.activeClass&&(Xh.activeSelector||Xh.pseudoClassActive)){Xh.activeClass&&!Xh.activeSelector&&(t=Xh.activeClass,s=Xh.activeClass.settings);var c=ub(t,n,null==e?void 0:e.controlKey,s,Xh.activeClass);if(c)return c}var u,d=s&&!Array.isArray(s)?ub(t,n,null==e?void 0:e.controlKey,s,l):null;if(d)return d;var p=Array.isArray(null===(a=t)||void 0===a||null===(a=a.settings)||void 0===a?void 0:a._cssGlobalClasses)?t.settings._cssGlobalClasses:null;return p?(p.forEach(function(i){var r=Xh.globalClassIndexById[i],o=Xh.globalClasses[r],a=null==o?void 0:o.settings;if(a){var s=a&&!Array.isArray(a)?ub(t,n,null==e?void 0:e.controlKey,a,o):null;s&&(u=s)}}),u):void 0},ub=function(e,t,n,i,r){var o,a=!(null==r||!r.id),s=Object.keys(i).filter(function(e){return d_.getControlKeyPlain(e)===t});if(n&&(s=[],Object.keys(i).forEach(function(e){d_.getControlKeyPlain(e)===n&&i[e][t]&&s.push(e)})),s.length)return s.sort(function(e,t){var n=e.includes(":")?e.match(/:(.+)$/)[1]:e,i=t.includes(":")?t.match(/:(.+)$/)[1]:t;return Xh.breakpoints.findIndex(function(e){return e.key===n})-Xh.breakpoints.findIndex(function(e){return e.key===i})}),s.forEach(function(n){var i=n.split(":"),s=i.length>1?i[1]:"desktop";Xh.pseudoClassActive&&Xh.pseudoClassActive===":".concat(s)&&(s="desktop");var l=Xh.breakpoints.findIndex(function(e){return e.key===s});-1!==l&&l<=Xh.breakpointActiveIndex&&(o={breakpoint:Xh.breakpoints[l],name:a?".".concat(r.name||r.id):"#".concat(Ay(e)),type:a?"class":"id",controlKey:t,settingMatch:n},null!=r&&r.id&&(o.class=r))}),o},db=function(e){if(void 0!==e)return JSON.parse(JSON.stringify(e))},pb=function(e){return null!==e&&"object"===oy(e)&&!Array.isArray(e)},hb=function(e,t){return Array.isArray(e)&&Array.isArray(t)?JSON.stringify(e)===JSON.stringify(t):e===t},fb=function(e,t){var n;if("string"!=typeof e)return e;var i=[];null!=t&&null!==(n=t.settings)&&void 0!==n&&n._cssId&&i.push("#".concat(t.settings._cssId));var r=Ay(t);return r&&i.push("#".concat(r)),null!=t&&t.id&&i.push(".brxe-".concat(t.id)),null!=t&&t.cid&&i.push(".brxe-".concat(t.cid)),i.reduce(function(e,t){return d_.replaceCustomCssRoot(t,"%root%",e)},e)},mb=function(e){if(e.length){var t=e[0];if(Array.isArray(t))return e.every(function(e){return Array.isArray(e)&&hb(t,e)})?db(t):void 0;if(pb(t)){if(!e.every(function(e){return pb(e)}))return;var n={};return Object.keys(t).forEach(function(t){if(e.every(function(e){return Object.prototype.hasOwnProperty.call(e,t)})){var i=mb(e.map(function(e){return e[t]}));void 0!==i&&(n[t]=i)}}),Object.keys(n).length?n:void 0}return e.every(function(e){return hb(t,e)})?t:void 0}},gb=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xh.selectedElements;if(!Array.isArray(e)||!e.length)return{};var t=e.map(function(e){return pb(null==e?void 0:e.settings)?e.settings:{}}),n=mb(t)||{};return(t.length?Object.keys(t[0]).filter(function(e){return e.startsWith("_cssCustom")}):[]).forEach(function(i){if(t.every(function(e){return Object.prototype.hasOwnProperty.call(e,i)})){var r=t.map(function(t,n){return fb(t[i],e[n])});r.every(function(e){return hb(r[0],e)})&&(n[i]=db(r[0]))}}),n},vb=function(){var e=Array.isArray(Xh.selectedElements)?Xh.selectedElements.map(function(e){return Dy(null==e?void 0:e.id)}).filter(Boolean):[],t=e.map(function(e){return e.id}),n=Array.isArray(Xh.selectedElements)?Xh.selectedElements.map(function(e){return null==e?void 0:e.id}):[];JSON.stringify(t)!==JSON.stringify(n)&&(Xh.selectedElements=e);var i=gb(e);return JSON.stringify(i)!==JSON.stringify(Xh.selectedElementSettings)&&(Xh.selectedElementSettings=i),Xh.selectedElementSettings},yb=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];n=Array.isArray(n)?n:[];var i=e.map(function(e){return null==e?void 0:e.id}).filter(Boolean);if(!i.length)return[];var r,o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=iy(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(n);try{for(o.s();!(r=o.n()).done;){var a=r.value;if(null!=a&&a.slotChildren&&"object"===oy(a.slotChildren))for(var s,l=function(){var e=u[c];if(Array.isArray(e)&&i.every(function(t){return e.includes(t)}))return{v:e}},c=0,u=Object.values(a.slotChildren);c<u.length;c++)if(s=l())return s.v}}catch(e){o.e(e)}finally{o.f()}var d=(null===(t=e[0])||void 0===t?void 0:t.parent)||0,p=e.every(function(e){return((null==e?void 0:e.parent)||0)===d});if(!p)return[];if(0==d)return cf.value.map(function(e){return e.id});var h=n.find(function(e){return e.id===d});return Array.isArray(null==h?void 0:h.children)?h.children:[]},bb=function(e,t,n){var i,r=Xh.isMac?"metaKey":"ctrlKey",o=null!==(i=Xh.activeComponent)&&void 0!==i&&i.elements?Xh.activeComponent.elements:lf.value;if(!(e[r]||null!=e&&e.shiftKey))return Xh.selectedElements=[],void vb();var a=Dy(t);if(a){e.stopPropagation();var s=Xh.selectedElements.findIndex(function(e){return e.id===t}),l=!1;if(-1===s?(Xh.selectedElements.push(a),l=!0):(Xh.selectedElements.splice(s,1),l=!1,s>0?Xh.activeId=Xh.selectedElements[s-1].id:Xh.selectedElements.length&&(Xh.activeId=Xh.selectedElements[0].id)),l&&n&&n!==t&&1===Xh.selectedElements.length){var c=o.find(function(e){return e.id===n});c&&Xh.selectedElements.push(c)}if(null!=e&&e.shiftKey&&Xh.selectedElements.length>1){var u=yb(Xh.selectedElements,o),d=Xh.selectedElements.map(function(e){return e.id}),p=d.map(function(e){return u.indexOf(e)});if(p.every(function(e){return-1!==e}))for(var h=Math.min.apply(Math,ny(p)),f=Math.max.apply(Math,ny(p)),m=function(){var e=u[g],t=o.find(function(t){return t.id===e});t&&!d.includes(e)&&Xh.selectedElements.push(t)},g=h;g<=f;g++)m()}if(Xh.selectedElements.length>1){var v=yb(Xh.selectedElements,o);Xh.selectedElements.every(function(e){return v.includes(e.id)})&&(Xh.selectedElements=Xh.selectedElements.sort(function(e,t){return v.indexOf(e.id)-v.indexOf(t.id)}))}vb()}},kb=function(e,t){var n=Xh.selectedElements;if(n&&n.length){var i=e.filter(function(e){return!t.includes(e)}),r=t.filter(function(t){return!e.includes(t)}),o=!1;if(i.length||r.length){var a=[];n.forEach(function(e){var t;(e=Dy(e.id)).settings||(e.settings={});var n=null===(t=e.settings)||void 0===t?void 0:t._cssGlobalClasses;Array.isArray(n)||(n=[]),i.forEach(function(e){n.includes(e)||n.push(e)}),r.forEach(function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1)}),e.settings._cssGlobalClasses=n,a.push(e),uy(e)||(o=!0,d_.rerenderElementId(e.id))}),Xh.selectedElements=a,vb(),o&&d_.forceRender(100)}}},wb=function(e,t){if(JSON.stringify(null==e?void 0:e._cssGlobalClasses)===JSON.stringify(null==t?void 0:t._cssGlobalClasses)){var n=Xh.selectedElements;if(n&&n.length){var i=!1;n.forEach(function(n){var r;if(n=Dy(n.id)){for(var o in null!==(r=n)&&void 0!==r&&r.settings||(n.settings={}),e){var a=!!e.hasOwnProperty(o)&&d_.clone(e[o]);if("object"!==oy(a)||Array.isArray(a)){if(o.startsWith("_cssCustom")&&"string"==typeof(a=fb(a,af.value))){var s=Ay(n);a=a.replaceAll("%root%","#".concat(s))}""===a?delete n.settings[o]:n.settings[o]=a}else for(var l in a)""===a[l]?delete n.settings[o][l]:(n.settings[o]||(n.settings[o]={}),n.settings[o][l]=a[l])}for(var c in t){var u=!!t.hasOwnProperty(c)&&d_.clone(t[c]),d=Object.prototype.hasOwnProperty.call(e,c),p=d?e[c]:void 0;if(Array.isArray(u))d&&Array.isArray(p)||delete n.settings[c];else if(pb(u)){if(!d||!pb(p)){delete n.settings[c];continue}for(var h in u)Object.prototype.hasOwnProperty.call(p,h)||n.settings[c]&&delete n.settings[c][h];n.settings[c]&&!Object.keys(n.settings[c]).length&&delete n.settings[c]}else t[c]&&!d&&n.settings[c]&&delete n.settings[c]}uy(n)||(i=!0,d_.rerenderElementId(n.id))}}),i&&d_.forceRender(100),vb()}}},_b=function(){return Xh.selectedElements.length},Cb=function(e,t,n){var i=[],r=function(e){if(e&&e.dataset.id!==n){var t=[];e.id&&t.push("#".concat(e.id));var o=Array.from(e.classList);o.length&&(o=(o=(o=(o=o.filter(function(e){return!e.startsWith("bricks-draggable-")})).filter(function(e){return"undefined"!==e})).filter(function(e){return"bricks-selector-detector"!==e})).filter(function(e){return"brx-child-node"!==e})).forEach(function(e){t.push(".".concat(e))}),e.tagName&&t.push(e.tagName.toLowerCase()),i.push({selectors:t,selector:t[0],active:!1}),e.parentNode&&r(e.parentNode)}};r(e.target),(i=i.reverse()).forEach(function(e,t){e.index=t,t===i.length-1&&(e.active=!0)}),Xh.messageOrigin="iframe",Fn(function(){Xh.selectorDetector=!i.length||i})},xb=function(e,t){var n,i,r=this,o=[],a=new Set,s=function(e){null!=e&&e.id&&!a.has(e.id)&&(a.add(e.id),o.push(e))},l=function(e,t){var n,i,o,a=Array.isArray(r.$_dynamicElements.value)?r.$_dynamicElements.value.find(function(t){return t.id===e}):null,c=r.$_clone(r.component);if(Array.isArray(null===(n=c)||void 0===n?void 0:n.elements)){var u=c.elements.find(function(t){return t.id===e});if(!u){var d=r.$_getComponentById(e);d&&(c=r.$_clone(d),u=d.elements.find(function(t){return t.id===e}),d.elements.forEach(function(t){t.id!==e&&s(r.$_clone(t))}))}if(u){var p,h,f,m=null===(p=u=r.$_clone(u))||void 0===p||null===(p=p.settings)||void 0===p?void 0:p.hasLoop,g=(null===(h=r.element)||void 0===h?void 0:h.properties)||r.instanceProperties;!g||null!==(f=u)&&void 0!==f&&f.cid||(u.properties=g),u.settings=r.$_getComponentSettings(c,u),m&&(u.settings.hasLoop=m),a=u}}a&&(null!==(i=a.settings)&&void 0!==i&&i._hideElementBuilder||(a=r.$_clone(a),t&&"0"!=a.parent&&(a.parent=0),s(a),a.children&&a.children.forEach(function(e){l(e,!1)}),null!==(o=a)&&void 0!==o&&o.slotChildren&&Object.values(a.slotChildren).forEach(function(e){Array.isArray(e)&&e.forEach(function(e){l(e,!1)})})))};return l(e,t),null!==(n=this.element)&&void 0!==n&&n.cid&&null!==(i=this.element)&&void 0!==i&&i.slotChildren&&e===this.element.cid&&Object.values(this.element.slotChildren).forEach(function(e){Array.isArray(e)&&e.forEach(function(e){l(e,!1)})}),o},Sb=function(){var e,t,n,i=this;if(null!==(e=this.element)&&void 0!==e&&e.cid){var r=this.hasLoop||!1;this.$_ajaxAnimStart(this.element.cid,r);var o=this.$_getLoopElements(this.element.cid,!0),a=this.parentLoopElements,s=this.element,l=(null===(t=this.element)||void 0===t?void 0:t.cid)&&this.instanceId&&this.$_dynamicElements.value.some(function(e){return e.id===i.element.id&&e.cid===i.element.cid})&&function(e){if(!e)return!1;var t=new Map,n=new Set;i.$_dynamicElements.value.forEach(function(e){null!=e&&e.id&&t.set(e.id,e),null!=e&&e.cid&&null!=e&&e.slotChildren&&Object.values(e.slotChildren).forEach(function(e){Array.isArray(e)&&e.forEach(function(e){n.add(e)})})});for(var r=t.get(e)||i.element,o=new Set;null!==(a=r)&&void 0!==a&&a.id&&!o.has(r.id);){var a;if(n.has(r.id))return!0;if(o.add(r.id),!r.parent||0===r.parent)return!1;r=t.get(r.parent)}return!1}(this.element.id);l&&(s=sy(sy({},this.element),{},{slotInstanceId:this.element.id})),null!==(n=this.element)&&void 0!==n&&n.id&&o.forEach(function(e){e.instanceId=i.element.id,e.parentComponent=i.element.cid,e.ajaxLocalId="".concat(i.element.id,"-").concat(e.id)}),this.$_removeRerenderCid(this.id),this.$_smartDebouncedHttp({requestKey:this.element.id,data:{action:"bricks_render_data",isRenderComponent:this.element.id,element:JSON.stringify(s),elements:JSON.stringify(o),parentLoops:JSON.stringify(a),components:JSON.stringify(this.$_components.value),globalClasses:JSON.stringify(this.$_state.globalClasses),globalQueries:JSON.stringify(this.$_state.globalQueries),globalElements:this.$_state.globalElements},error:function(e){0!==e.status&&(i.error="".concat(i.i18n.error,": ").concat(e.statusText),i.$_ajaxAnimEnd(i.element.cid,r))},success:function(e){var t,n,a,s,l;i.error=null;var c=e.data.html?e.data.html:"",u=Yv(c,i.element.cid,i.tag).firstNode;if(i.getLoopId){var d=o.map(function(e){return e.instanceId?"".concat(e.id,"-").concat(e.instanceId):e.id});Object.keys(i.$_state.loopPreviewText).forEach(function(e){d.includes(e)&&(i.$_state.loopPreviewText[e]="")}),Object.keys(i.$_state.loopingDynamicData).forEach(function(e){var t=!1;d.forEach(function(n){e.includes("||".concat(n))&&(t=!0)}),t&&(i.$_state.loopingDynamicData[e]="")})}var p={},h=(null===(t=e.data)||void 0===t?void 0:t.loopingHtml)||{},f=o.some(function(e){var t;return(null==e?void 0:e.id)===i.element.cid&&(null==e?void 0:e.instanceId)===i.element.id&&(null==e||null===(t=e.settings)||void 0===t?void 0:t.hasLoop)}),m=function(e){var t=i.$_elementBelongsToLoopId(e,o);return!t&&f&&e.instanceId===i.element.id&&(t=i.element.cid),t};o.forEach(function(t){if(u){var n=t.id,r=n===i.element.cid?u:u.querySelector(".brxe-".concat(n));if(r&&"bricks-element"===i.$_getElementComponent(t)){var o=t.instanceId?"".concat(n,"-").concat(t.instanceId):"".concat(n),a=m(t);a?(a="".concat(a,"-").concat(t.instanceId),h[a]&&(p[o]=r.innerHTML)):p[o]=r.innerHTML}else if(r){var s,l=m(t),c=(null===(s=e.data)||void 0===s?void 0:s.loopingDynamicData)||{};if(l&&(l="".concat(l,"-").concat(t.instanceId),h[l])){var d={};Object.keys(c).forEach(function(e){var t=e.replace(/\|\|.+$/,"||".concat(l));d[t]=c[e]}),i.$_state.loopingDynamicData=sy(sy({},i.$_state.loopingDynamicData),d)}}}}),Object.keys(p).length&&(i.$_state.loopPreviewText=sy(sy({},i.$_state.loopPreviewText),p)),document.dispatchEvent(new CustomEvent("bricks/builder-component/complete/".concat(i.id),{detail:{html:c,styles:(null===(n=e.data)||void 0===n?void 0:n.styles)||"",elementsHtml:(null===(a=e.data)||void 0===a?void 0:a.elementsHtml)||{},previewTexts:(null===(s=e.data)||void 0===s?void 0:s.previewTexts)||{},loopingHtml:h,templatesData:(null===(l=e.data)||void 0===l?void 0:l.templatesData)||{},firstNode:u}})),i.$nextTick(function(){"function"==typeof i.runElementScriptsForNestableParent?i.runElementScriptsForNestableParent():i.$_runElementScripts(i.name),i.$_ajaxAnimEnd(i.element.cid,r)})}})}else this.$_removeRerenderCid(this.id)},Eb=function(e){var t;return(null===(t=$y(e,"iframe"))||void 0===t?void 0:t.getAttribute("data-direct-loop-id"))||null},Ab=function(e){var t,n,i=this,r=this.$_clone(this.$_state.activeElement),o=this.controlKey,a="settings-template"===this.$_state.activePanel&&"popup"===this.$_state.templateType;if((r||a)&&e){var s,l,c=this.parentKey,u=null===(t=this.$parent)||void 0===t?void 0:t.repeaterKey,d=c,p={},h=a?this.$_clone(this.$_state.templateSettings||{}):(null===(n=this.$_state.activeElement)||void 0===n?void 0:n.settings)||{};if(!a)null!==(s=this.$_state.activeSelector)&&void 0!==s&&s.settings?h=this.$_state.activeSelector.settings:null!==(l=this.$_state.activeClass)&&void 0!==l&&l.settings&&(h=this.$_state.activeClass.settings);if(c&&"icon"!==c&&"function"==typeof this.$_getControlKeyActive&&(d=this.$_getControlKeyActive(c)),c&&u){var f,m,g,v=this.$_clone(h[d]||h[c]||{}),y=null===(f=this.$parent)||void 0===f||null===(f=f.$parent)||void 0===f?void 0:f.value,b=this.$_clone(Array.isArray(y)?y:v[u]||h[u]||[]),k="number"==typeof(null===(m=this.$parent)||void 0===m?void 0:m.repeaterIndex)?this.$parent.repeaterIndex:-1;if(!Array.isArray(b))return void(this.$_state.cssPreviewOnHover="");if(null!==(g=this.$parent)&&void 0!==g&&g.repeaterId){var w=b.findIndex(function(e){return(null==e?void 0:e.id)===i.$parent.repeaterId});-1!==w&&(k=w)}if(!b[k])return void(this.$_state.cssPreviewOnHover="");if(Array.isArray(v[u])||Array.isArray(y))b[k]=sy(sy({},b[k]),{},ly({},o,e)),v[u]=b,p=ly({},d,v);else{var _=b[k][d]||b[k][c]||{};b[k]=sy(sy({},b[k]),{},ly({},d,sy(sy({},_),{},ly({},o,e)))),p=ly({},u,b)}}else if(c)if("box-shadow"===this.parentType){var C=h[d]||h[c]||{};null!=C&&C[o]||(C[o]={}),"values"===o&&(C[o][this.spacingDirection]=e),"color"===o&&(C[o]=e),p=ly({},d,C)}else p=ly({},d,ly({},o,e));else p=ly({},o,e);if(a){var x=sy(sy({},h),p),S=this.$_generateCss("templateSettings",{settings:x});this.$_state.cssPreviewOnHover="string"==typeof S?S:""}else{if(r.settings=p,this.$_state.activeSelector){var E=this.$_clone(this.$_state.activeSelector);E.settings=r.settings,r.selectors=[E],r.settings={}}this.$_state.activeLoopId&&(r.loopId=this.$_state.activeLoopId);var A=this.$_generateCss("element",r);A&&(this.$_state.activeLoopId||this.$_state.activeComponent)&&(A=A.replace("#",".")),this.$_state.cssPreviewOnHover="string"==typeof A?A:""}}else this.$_state.cssPreviewOnHover=""};function Db(e){return Db="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Db(e)}function Tb(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var l=i&&i.prototype instanceof s?i:s,c=Object.create(l.prototype);return Ib(c,"_invoke",function(n,i,r){var o,s,l,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return o=t,s=0,l=e,p.n=n,a}};function h(n,i){for(s=n,l=i,t=0;!d&&c&&!r&&t<u.length;t++){var r,o=u[t],h=p.p,f=o[2];n>3?(r=f===i)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=h&&((r=n<2&&h<o[1])?(s=0,p.v=i,p.n=o[1]):h<f&&(r=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,p.n=f,s=0))}if(r||n>1)return a;throw d=!0,i}return function(r,u,f){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,f),s=u,l=f;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(p.n=-1),h(s,l)):p.n=l:p.v=l);try{if(c=2,o){if(s||(r="next"),t=o[r]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=e}else if((t=(d=p.n<0)?l:n.call(i,p))!==a)break}catch(t){o=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,r,o),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][i]?t(t([][i]())):(Ib(t={},i,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Ib(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,Ib(d,"constructor",c),Ib(c,"constructor",l),l.displayName="GeneratorFunction",Ib(c,r,"GeneratorFunction"),Ib(d),Ib(d,r,"Generator"),Ib(d,i,function(){return this}),Ib(d,"toString",function(){return"[object Generator]"}),(Tb=function(){return{w:o,m:p}})()}function Ib(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}Ib=function(e,t,n,i){function o(t,n){Ib(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},Ib(e,t,n,i)}function Ob(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,r)}function Pb(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var o=e.apply(t,n);function a(e){Ob(o,i,r,a,s,"next",e)}function s(e){Ob(o,i,r,a,s,"throw",e)}a(void 0)})}}function Fb(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,$b(i.key),i)}}function $b(e){var t=function(e,t){if("object"!=Db(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Db(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Db(t)?t:t+""}var Mb=function(){return e=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.dbName=t,this.storeName=n,this.db=null},t=[{key:"openDB",value:(o=Pb(Tb().m(function e(){var t=this;return Tb().w(function(e){for(;;)switch(e.n){case 0:if(!this.db){e.n=1;break}return e.a(2,this.db);case 1:return e.a(2,new Promise(function(e,n){var i=indexedDB.open(t.dbName,1);i.onerror=function(e){console.error("Database error: ",e.target.errorCode),n(e.target.errorCode)},i.onsuccess=function(n){t.db=n.target.result,e(t.db)},i.onupgradeneeded=function(e){e.target.result.createObjectStore(t.storeName,{keyPath:"id"})}}))}},e,this)})),function(){return o.apply(this,arguments)})},{key:"getCachedData",value:(r=Pb(Tb().m(function e(t){var n,i,r=this,o=arguments;return Tb().w(function(e){for(;;)switch(e.n){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:6048e5,e.n=1,this.openDB();case 1:return i=e.v,e.a(2,new Promise(function(e,o){var a=i.transaction([r.storeName],"readonly").objectStore(r.storeName).get(t);a.onerror=function(e){console.error("Error fetching data from DB",e.target.errorCode),o(e.target.errorCode)},a.onsuccess=function(){var t=a.result,i=(new Date).getTime();t&&"timestamp"in t&&i-t.timestamp<n?e(t.data):e(null)}}))}},e,this)})),function(e){return r.apply(this,arguments)})},{key:"cacheData",value:(i=Pb(Tb().m(function e(t,n){var i,r,o,a=this;return Tb().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this.openDB();case 1:return i=e.v,r=(new Date).getTime(),o={id:t,data:n,timestamp:r},e.a(2,new Promise(function(e,t){var n=i.transaction([a.storeName],"readwrite").objectStore(a.storeName).put(o);n.onerror=function(e){console.error("Error saving data to DB",e.target.errorCode),t(e.target.errorCode)},n.onsuccess=function(){e()}}))}},e,this)})),function(e,t){return i.apply(this,arguments)})}],t&&Fb(e.prototype,t),n&&Fb(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,i,r,o}();"p".charCodeAt(0),"H".charCodeAt(0),"Y".charCodeAt(0),"s".charCodeAt(0);const Lb="[modern-screenshot]",Nb="undefined"!=typeof window,jb=Nb&&"Worker"in window,Bb=(Nb&&window,Nb&&window,Nb?window.navigator?.userAgent:""),Rb=Bb.includes("Chrome"),Vb=Bb.includes("AppleWebKit")&&!Rb,qb=Bb.includes("Firefox"),Hb=e=>"CSSLayerBlockRule"===e.constructor.name,zb=e=>1===e.nodeType,Ub=e=>"object"==typeof e.className,Wb=e=>"image"===e.tagName,Gb=e=>zb(e)&&void 0!==e.style&&!Ub(e),Kb=e=>8===e.nodeType,Qb=e=>"IMG"===e.tagName,Yb=e=>"VIDEO"===e.tagName,Jb=e=>"SLOT"===e.tagName;function Xb(e){const t=e?.createElement?.("canvas");return t&&(t.height=t.width=1),Boolean(t)&&"toDataURL"in t&&Boolean(t.toDataURL("image/webp").includes("image/webp"))}const Zb=e=>e.startsWith("data:");function ek(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(Nb&&e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;if(!Nb)return e;const n=tk().implementation.createHTMLDocument(),i=n.createElement("base"),r=n.createElement("a");return n.head.appendChild(i),n.body.appendChild(r),t&&(i.href=t),r.href=e,r.href}function tk(e){return(e&&zb(e)?e?.ownerDocument:e)??window.document}const nk="http://www.w3.org/2000/svg";function ik(e,t,n){const i=tk(n).createElementNS(nk,"svg");return i.setAttributeNS(null,"width",e.toString()),i.setAttributeNS(null,"height",t.toString()),i.setAttributeNS(null,"viewBox",`0 0 ${e} ${t}`),i}function rk(e,t){let n=(new XMLSerializer).serializeToString(e);return t&&(n=n.replace(/[\u0000-\u0008\v\f\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]/gu,"")),`data:image/svg+xml;charset=utf-8,${encodeURIComponent(n)}`}function ok(e,t){return new Promise((n,i)=>{const r=new FileReader;r.onload=()=>n(r.result),r.onerror=()=>i(r.error),r.onabort=()=>i(new Error(`Failed read blob to ${t}`)),"dataUrl"===t?r.readAsDataURL(e):"arrayBuffer"===t&&r.readAsArrayBuffer(e)})}const ak=e=>ok(e,"dataUrl");function sk(e,t){const n=tk(t).createElement("img");return n.decoding="sync",n.loading="eager",n.src=e,n}function lk(e,t){return new Promise(n=>{const{timeout:i,ownerDocument:r,onError:o,onWarn:a}=t??{},s="string"==typeof e?sk(e,tk(r)):e;let l=null,c=null;function u(){n(s),l&&clearTimeout(l),c?.()}if(i&&(l=setTimeout(u,i)),Yb(s)){const e=s.currentSrc||s.src;if(!e)return s.poster?lk(s.poster,t).then(n):u();if(s.readyState>=2)return u();const i=u,r=t=>{a?.("Failed video load",e,t),o?.(t),u()};c=()=>{s.removeEventListener("loadeddata",i),s.removeEventListener("error",r)},s.addEventListener("loadeddata",i,{once:!0}),s.addEventListener("error",r,{once:!0})}else{const e=Wb(s)?s.href.baseVal:s.currentSrc||s.src;if(!e)return u();const t=async()=>{if(Qb(s)&&"decode"in s)try{await s.decode()}catch(t){a?.("Failed to decode image, trying to render anyway",s.dataset.originalSrc||e,t)}u()},n=t=>{a?.("Failed image load",s.dataset.originalSrc||e,t),u()};if(Qb(s)&&s.complete)return t();c=()=>{s.removeEventListener("load",t),s.removeEventListener("error",n)},s.addEventListener("load",t,{once:!0}),s.addEventListener("error",n,{once:!0})}})}const ck=function(){let e=0;return()=>(e+=1,`u${`0000${(Math.random()*36**4|0).toString(36)}`.slice(-4)}${e}`)}();function uk(e){return e?.split(",").map(e=>e.trim().replace(/"|'/g,"").toLowerCase()).filter(Boolean)}let dk=0;function pk(e){const t=`${Lb}[#${dk}]`;return dk++,{time:n=>e&&console.time(`${t} ${n}`),timeEnd:n=>e&&console.timeEnd(`${t} ${n}`),warn:(...t)=>e&&((...e)=>console.warn(Lb,...e))(...t)}}function hk(e){return{cache:e?"no-cache":"force-cache"}}async function fk(e,t){return(n=e)&&"__CONTEXT__"in n?e:async function(e,t){const{scale:n=1,workerUrl:i,workerNumber:r=1}=t||{},o=Boolean(t?.debug),a=t?.features??!0,s=e.ownerDocument??(Nb?window.document:void 0),l=e.ownerDocument?.defaultView??(Nb?window:void 0),c=new Map,u={width:0,height:0,quality:1,type:"image/png",scale:n,backgroundColor:null,style:null,filter:null,maximumCanvasSize:0,timeout:3e4,progress:null,debug:o,fetch:{requestInit:hk(t?.fetch?.bypassingCache),placeholderImage:"data:image/png;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",bypassingCache:!1,...t?.fetch},fetchFn:null,font:{},drawImageInterval:100,workerUrl:null,workerNumber:r,onCloneEachNode:null,onCloneNode:null,onEmbedNode:null,onCreateForeignObjectSvg:null,includeStyleProperties:null,autoDestruct:!1,...t,__CONTEXT__:!0,log:pk(o),node:e,ownerDocument:s,ownerWindow:l,dpi:1===n?null:96*n,svgStyleElement:mk(s),svgDefsElement:s?.createElementNS(nk,"defs"),svgStyles:new Map,defaultComputedStyles:new Map,workers:[...Array.from({length:jb&&i&&r?r:0})].map(()=>{try{const e=new Worker(i);return e.onmessage=async e=>{const{url:t,result:n}=e.data;n?c.get(t)?.resolve?.(n):c.get(t)?.reject?.(new Error(`Error receiving message from worker: ${t}`))},e.onmessageerror=e=>{const{url:t}=e.data;c.get(t)?.reject?.(new Error(`Error receiving message from worker: ${t}`))},e}catch(e){return u.log.warn("Failed to new Worker",e),null}}).filter(Boolean),fontFamilies:new Map,fontCssTexts:new Map,acceptOfImage:`${[Xb(s)&&"image/webp","image/svg+xml","image/*","*/*"].filter(Boolean).join(",")};q=0.8`,requests:c,drawImageCount:0,tasks:[],features:a,isEnable:e=>"restoreScrollPosition"===e?"boolean"!=typeof a&&(a[e]??!1):"boolean"==typeof a?a:a[e]??!0,shadowRoots:[]};u.log.time("wait until load"),await async function(e,t){Gb(e)&&(Qb(e)||Yb(e)?await lk(e,t):await Promise.all(["img","video"].flatMap(n=>Array.from(e.querySelectorAll(n)).map(e=>lk(e,t)))))}(e,{timeout:u.timeout,onWarn:u.log.warn}),u.log.timeEnd("wait until load");const{width:d,height:p}=function(e,t){let{width:n,height:i}=t;if(zb(e)&&(!n||!i)){const t=e.getBoundingClientRect();n=n||t.width||Number(e.getAttribute("width"))||0,i=i||t.height||Number(e.getAttribute("height"))||0}return{width:n,height:i}}(e,u);return u.width=d,u.height=p,u}(e,{...t,autoDestruct:!0});var n}function mk(e){if(!e)return;const t=e.createElement("style"),n=t.ownerDocument.createTextNode("\n.______background-clip--text {\n background-clip: text;\n -webkit-background-clip: text;\n}\n");return t.appendChild(n),t}async function gk(e,t){const{log:n,timeout:i,drawImageCount:r,drawImageInterval:o}=t;n.time("image to canvas");const a=await lk(e,{timeout:i,onWarn:t.log.warn}),{canvas:s,context2d:l}=function(e,t){const{width:n,height:i,scale:r,backgroundColor:o,maximumCanvasSize:a}=t,s=e.createElement("canvas");s.width=Math.floor(n*r),s.height=Math.floor(i*r),s.style.width=`${n}px`,s.style.height=`${i}px`,a&&(s.width>a||s.height>a)&&(s.width>a&&s.height>a?s.width>s.height?(s.height*=a/s.width,s.width=a):(s.width*=a/s.height,s.height=a):s.width>a?(s.height*=a/s.width,s.width=a):(s.width*=a/s.height,s.height=a));const l=s.getContext("2d");l&&o&&(l.fillStyle=o,l.fillRect(0,0,s.width,s.height));return{canvas:s,context2d:l}}(e.ownerDocument,t),c=()=>{try{l?.drawImage(a,0,0,s.width,s.height)}catch(e){t.log.warn("Failed to drawImage",e)}};if(c(),t.isEnable("fixSvgXmlDecode"))for(let e=0;e<r;e++)await new Promise(t=>{setTimeout(()=>{l?.clearRect(0,0,s.width,s.height),c(),t()},e+o)});return t.drawImageCount=0,n.timeEnd("image to canvas"),s}function vk(e,t){if(e.ownerDocument)try{const t=e.toDataURL();if("data:,"!==t)return sk(t,e.ownerDocument)}catch(e){t.log.warn("Failed to clone canvas",e)}const n=e.cloneNode(!1),i=e.getContext("2d"),r=n.getContext("2d");try{return i&&r&&r.putImageData(i.getImageData(0,0,e.width,e.height),0,0),n}catch(e){t.log.warn("Failed to clone canvas",e)}return n}function yk(e,t){return(e=>"CANVAS"===e.tagName)(e)?vk(e,t):(e=>"IFRAME"===e.tagName)(e)?function(e,t){try{if(e?.contentDocument?.documentElement)return Tk(e.contentDocument.documentElement,t)}catch(e){t.log.warn("Failed to clone iframe",e)}return e.cloneNode(!1)}(e,t):Qb(e)?function(e){const t=e.cloneNode(!1);return e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager"),t}(e):Yb(e)?async function(e,t){if(e.ownerDocument&&!e.currentSrc&&e.poster)return sk(e.poster,e.ownerDocument);const n=e.cloneNode(!1);n.crossOrigin="anonymous",e.currentSrc&&e.currentSrc!==e.src&&(n.src=e.currentSrc);const i=n.ownerDocument;if(i){let r=!0;if(await lk(n,{onError:()=>r=!1,onWarn:t.log.warn}),!r)return e.poster?sk(e.poster,e.ownerDocument):n;n.currentTime=e.currentTime,await new Promise(e=>{n.addEventListener("seeked",e,{once:!0})});const o=i.createElement("canvas");o.width=e.offsetWidth,o.height=e.offsetHeight;try{const e=o.getContext("2d");e&&e.drawImage(n,0,0,o.width,o.height)}catch(i){return t.log.warn("Failed to clone video",i),e.poster?sk(e.poster,e.ownerDocument):n}return vk(o,t)}return n}(e,t):e.cloneNode(!1)}const bk=["width","height","-webkit-text-fill-color"],kk=["stroke","fill"];function wk(e,t,n){const{defaultComputedStyles:i}=n,r=e.nodeName.toLowerCase(),o=Ub(e)&&"svg"!==r,a=o?kk.map(t=>[t,e.getAttribute(t)]).filter(([,e])=>null!==e):[],s=[o&&"svg",r,a.map((e,t)=>`${e}=${t}`).join(","),t].filter(Boolean).join(":");if(i.has(s))return i.get(s);const l=function(e){let t=e.sandbox;if(!t){const{ownerDocument:n}=e;try{n&&(t=n.createElement("iframe"),t.id=`__SANDBOX__${ck()}`,t.width="0",t.height="0",t.style.visibility="hidden",t.style.position="fixed",n.body.appendChild(t),t.srcdoc='<!DOCTYPE html><meta charset="UTF-8"><title></title><body>',e.sandbox=t)}catch(t){e.log.warn("Failed to getSandBox",t)}}return t}(n),c=l?.contentWindow;if(!c)return new Map;const u=c?.document;let d,p;o?(d=u.createElementNS(nk,"svg"),p=d.ownerDocument.createElementNS(d.namespaceURI,r),a.forEach(([e,t])=>{p.setAttributeNS(null,e,t)}),d.appendChild(p)):d=p=u.createElement(r),p.textContent=" ",u.body.appendChild(d);const h=c.getComputedStyle(p,t),f=new Map;for(let e=h.length,t=0;t<e;t++){const e=h.item(t);bk.includes(e)||f.set(e,h.getPropertyValue(e))}return u.body.removeChild(d),i.set(s,f),f}function _k(e,t,n){const i=new Map,r=[],o=new Map;if(n)for(const e of n)a(e);else for(let t=e.length,n=0;n<t;n++){a(e.item(n))}for(let e=r.length,t=0;t<e;t++)o.get(r[t])?.forEach((e,t)=>i.set(t,e));function a(n){const a=e.getPropertyValue(n),s=e.getPropertyPriority(n),l=n.lastIndexOf("-"),c=l>-1?n.substring(0,l):void 0;if(c){let e=o.get(c);e||(e=new Map,o.set(c,e)),e.set(n,[a,s])}(t.get(n)!==a||s)&&(c?r.push(c):i.set(n,[a,s]))}return i}const Ck=["::before","::after"],xk=["::-webkit-scrollbar","::-webkit-scrollbar-button","::-webkit-scrollbar-thumb","::-webkit-scrollbar-track","::-webkit-scrollbar-track-piece","::-webkit-scrollbar-corner","::-webkit-resizer"];const Sk=new Set(["symbol"]);async function Ek(e,t,n,i,r){if(zb(n)&&((e=>"STYLE"===e.tagName)(n)||(e=>"SCRIPT"===e.tagName)(n)))return;if(i.filter&&!i.filter(n))return;Sk.has(t.nodeName)||Sk.has(n.nodeName)?i.currentParentNodeStyle=void 0:i.currentParentNodeStyle=i.currentNodeStyle;const o=await Tk(n,i,!1,r);i.isEnable("restoreScrollPosition")&&function(e,t){if(!Gb(e)||!Gb(t))return;const{scrollTop:n,scrollLeft:i}=e;if(!n&&!i)return;const{transform:r}=t.style,o=new DOMMatrix(r),{a:a,b:s,c:l,d:c}=o;o.a=1,o.b=0,o.c=0,o.d=1,o.translateSelf(-i,-n),o.a=a,o.b=s,o.c=l,o.d=c,t.style.transform=o.toString()}(e,o),t.appendChild(o)}async function Ak(e,t,n,i){let r=e.firstChild;zb(e)&&e.shadowRoot&&(r=e.shadowRoot?.firstChild,n.shadowRoots.push(e.shadowRoot));for(let o=r;o;o=o.nextSibling)if(!Kb(o))if(zb(o)&&Jb(o)&&"function"==typeof o.assignedNodes){const r=o.assignedNodes();for(let o=0;o<r.length;o++)await Ek(e,t,r[o],n,i)}else await Ek(e,t,o,n,i)}const Dk=/^[\w-:]+$/;async function Tk(e,t,n=!1,i){const{ownerDocument:r,ownerWindow:o,fontFamilies:a,onCloneEachNode:s}=t;if(r&&(e=>3===e.nodeType)(e))return i&&/\S/.test(e.data)&&i(e.data),r.createTextNode(e.data);if(r&&o&&zb(e)&&(Gb(e)||Ub(e))){const i=await yk(e,t);if(t.isEnable("removeAbnormalAttributes")){const e=i.getAttributeNames();for(let t=e.length,n=0;n<t;n++){const t=e[n];Dk.test(t)||i.removeAttribute(t)}}const r=t.currentNodeStyle=function(e,t,n,i){const{ownerWindow:r,includeStyleProperties:o,currentParentNodeStyle:a}=i,s=t.style,l=r.getComputedStyle(e),c=wk(e,null,i);a?.forEach((e,t)=>{c.delete(t)});const u=_k(l,c,o);u.delete("transition-property"),u.delete("all"),u.delete("d"),u.delete("content"),n&&(u.delete("position"),u.delete("margin-top"),u.delete("margin-right"),u.delete("margin-bottom"),u.delete("margin-left"),u.delete("margin-block-start"),u.delete("margin-block-end"),u.delete("margin-inline-start"),u.delete("margin-inline-end"),u.set("box-sizing",["border-box",""])),"text"===u.get("background-clip")?.[0]&&t.classList.add("______background-clip--text"),Rb&&(u.has("font-kerning")||u.set("font-kerning",["normal",""]),"hidden"!==u.get("overflow-x")?.[0]&&"hidden"!==u.get("overflow-y")?.[0]||"ellipsis"!==u.get("text-overflow")?.[0]||e.scrollWidth!==e.clientWidth||u.set("text-overflow",["clip",""]));for(let e=s.length,t=0;t<e;t++)s.removeProperty(s.item(t));return u.forEach(([e,t],n)=>{s.setProperty(n,e,t)}),u}(e,i,n,t);n&&function(e,t){const{backgroundColor:n,width:i,height:r,style:o}=t,a=e.style;if(n&&a.setProperty("background-color",n,"important"),i&&a.setProperty("width",`${i}px`,"important"),r&&a.setProperty("height",`${r}px`,"important"),o)for(const e in o)a[e]=o[e]}(i,t);let o=!1;if(t.isEnable("copyScrollbar")){const t=[r.get("overflow-x")?.[0],r.get("overflow-y")?.[0]];o=t.includes("scroll")||(t.includes("auto")||t.includes("overlay"))&&(e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth)}const l=r.get("text-transform")?.[0],c=uk(r.get("font-family")?.[0]),u=c?e=>{"uppercase"===l?e=e.toUpperCase():"lowercase"===l?e=e.toLowerCase():"capitalize"===l&&(e=e[0].toUpperCase()+e.substring(1)),c.forEach(t=>{let n=a.get(t);n||a.set(t,n=new Set),e.split("").forEach(e=>n.add(e))})}:void 0;return function(e,t,n,i,r){const{ownerWindow:o,svgStyleElement:a,svgStyles:s,currentNodeStyle:l}=i;function c(n){const a=o.getComputedStyle(e,n);let c=a.getPropertyValue("content");if(!c||"none"===c)return;r?.(c),c=c.replace(/(')|(")|(counter\(.+\))/g,"");const u=[ck()],d=wk(e,n,i);l?.forEach((e,t)=>{d.delete(t)});const p=_k(a,d,i.includeStyleProperties);p.delete("content"),p.delete("-webkit-locale"),"text"===p.get("background-clip")?.[0]&&t.classList.add("______background-clip--text");const h=[`content: '${c}';`];if(p.forEach(([e,t],n)=>{h.push(`${n}: ${e}${t?" !important":""};`)}),1===h.length)return;try{t.className=[t.className,...u].join(" ")}catch(e){return void i.log.warn("Failed to copyPseudoClass",e)}const f=h.join("\n ");let m=s.get(f);m||(m=[],s.set(f,m)),m.push(`.${u[0]}${n}`)}a&&o&&(Ck.forEach(c),n&&xk.forEach(c))}(e,i,o,t,u),function(e,t){((e=>"TEXTAREA"===e.tagName)(e)||(e=>"INPUT"===e.tagName)(e)||(e=>"SELECT"===e.tagName)(e))&&t.setAttribute("value",e.value)}(e,i),Yb(e)||await Ak(e,i,t,u),await(s?.(i)),i}const l=e.cloneNode(!1);return await Ak(e,l,t),await(s?.(l)),l}function Ik(e,t){const{url:n,requestType:i="text",responseType:r="text",imageDom:o}=t;let a=n;const{timeout:s,acceptOfImage:l,requests:c,fetchFn:u,fetch:{requestInit:d,bypassingCache:p,placeholderImage:h},font:f,workers:m,fontFamilies:g}=e;"image"===i&&(Vb||qb)&&e.drawImageCount++;let v=c.get(n);if(!v){p&&p instanceof RegExp&&p.test(a)&&(a+=(/\?/.test(a)?"&":"?")+(new Date).getTime());const t=i.startsWith("font")&&f&&f.minify,y=new Set;if(t){i.split(";")[1].split(",").forEach(e=>{g.has(e)&&g.get(e).forEach(e=>y.add(e))})}const b=t&&y.size,k={url:a,timeout:s,responseType:b?"arrayBuffer":r,headers:"image"===i?{accept:l}:void 0,...d};v={type:i,resolve:void 0,reject:void 0,response:null},v.response=(async()=>{if(u&&"image"===i){const e=await u(n);if(e)return e}return!Vb&&n.startsWith("http")&&m.length?new Promise((e,t)=>{m[c.size&m.length-1].postMessage({rawUrl:n,...k}),v.resolve=e,v.reject=t}):function(e){const{url:t,timeout:n,responseType:i,...r}=e,o=new AbortController,a=n?setTimeout(()=>o.abort(),n):void 0;return fetch(t,{signal:o.signal,...r}).then(e=>{if(!e.ok)throw new Error("Failed fetch, not 2xx response",{cause:e});switch(i){case"arrayBuffer":return e.arrayBuffer();case"dataUrl":return e.blob().then(ak);default:return e.text()}}).finally(()=>clearTimeout(a))}(k)})().catch(t=>{if(c.delete(n),"image"===i&&h)return e.log.warn("Failed to fetch image base64, trying to use placeholder image",a),"string"==typeof h?h:h(o);throw t}),c.set(n,v)}return v.response}async function Ok(e,t,n,i){if(!Pk(e))return e;for(const[r,o]of function(e,t){const n=[];return e.replace(Fk,(e,i,r)=>(n.push([r,ek(r,t)]),e)),n.filter(([e])=>!Zb(e))}(e,t))try{const t=await Ik(n,{url:o,requestType:i?"image":"text",responseType:"dataUrl"});e=e.replace($k(r),`$1${t}$3`)}catch(e){n.log.warn("Failed to fetch css data url",r,e)}return e}function Pk(e){return/url\((['"]?)([^'"]+?)\1\)/.test(e)}const Fk=/url\((['"]?)([^'"]+?)\1\)/g;function $k(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}const Mk=["background-image","border-image-source","-webkit-border-image","-webkit-mask-image","list-style-image"];function Lk(e,t){const{tasks:n}=t;zb(e)&&((Qb(e)||Wb(e))&&n.push(...function(e,t){if(Qb(e)){const n=e.currentSrc||e.src;if(!Zb(n))return[Ik(t,{url:n,imageDom:e,requestType:"image",responseType:"dataUrl"}).then(t=>{t&&(e.srcset="",e.dataset.originalSrc=n,e.src=t||"")})];(Vb||qb)&&t.drawImageCount++}else if(Ub(e)&&!Zb(e.href.baseVal)){const n=e.href.baseVal;return[Ik(t,{url:n,imageDom:e,requestType:"image",responseType:"dataUrl"}).then(t=>{t&&(e.dataset.originalSrc=n,e.href.baseVal=t||"")})]}return[]}(e,t)),"use"===e.tagName&&n.push(...function(e,t){const{ownerDocument:n,svgDefsElement:i}=t,r=e.getAttribute("href")??e.getAttribute("xlink:href");if(!r)return[];const[o,a]=r.split("#");if(a){const r=`#${a}`,s=t.shadowRoots.reduce((e,t)=>e??t.querySelector(`svg ${r}`),n?.querySelector(`svg ${r}`));if(o&&e.setAttribute("href",r),i?.querySelector(r))return[];if(s)return i?.appendChild(s.cloneNode(!0)),[];if(o)return[Ik(t,{url:o,responseType:"text"}).then(e=>{i?.insertAdjacentHTML("beforeend",e)})]}return[]}(e,t))),Gb(e)&&n.push(...function(e,t){return Mk.map(n=>{const i=e.getPropertyValue(n);return i&&"none"!==i?((Vb||qb)&&t.drawImageCount++,Ok(i,null,t,!0).then(t=>{t&&i!==t&&e.setProperty(n,t,e.getPropertyPriority(n))})):null}).filter(Boolean)}(e.style,t)),e.childNodes.forEach(e=>{Lk(e,t)})}async function Nk(e,t){const{ownerDocument:n,svgStyleElement:i,fontFamilies:r,fontCssTexts:o,tasks:a,font:s}=t;if(n&&i&&r.size)if(s&&s.cssText){const e=qk(s.cssText,t);i.appendChild(n.createTextNode(`${e}\n`))}else{const e=Array.from(n.styleSheets).filter(e=>{try{return"cssRules"in e&&Boolean(e.cssRules.length)}catch(n){return t.log.warn(`Error while reading CSS rules from ${e.href}`,n),!1}}),s=n.implementation.createHTMLDocument(""),l=s.createElement("style");s.head.appendChild(l);const c=l.sheet;await Promise.all(e.flatMap(e=>Array.from(e.cssRules).map(async e=>{if("CSSImportRule"===e.constructor.name){const n=e.href;let i="";try{i=await Ik(t,{url:n,requestType:"text",responseType:"text"})}catch(e){t.log.warn(`Error fetch remote css import from ${n}`,e)}const r=i.replace(Fk,(e,t,i)=>e.replace(i,ek(i,n)));for(const e of function(e){if(null==e)return[];const t=[];let n=e.replace(jk,"");for(;;){const e=Bk.exec(n);if(!e)break;t.push(e[0])}n=n.replace(Bk,"");const i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,r=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let e=i.exec(n);if(e)r.lastIndex=i.lastIndex;else{if(e=r.exec(n),!e)break;i.lastIndex=r.lastIndex}t.push(e[0])}return t}(r))try{c.insertRule(e,c.cssRules.length)}catch(n){t.log.warn("Error inserting rule from remote css import",{rule:e,error:n})}}}))),c.cssRules.length&&e.push(c);const u=[];e.forEach(e=>{Hk(e.cssRules,u)}),u.filter(e=>"CSSFontFaceRule"===e.constructor.name&&Pk(e.style.getPropertyValue("src"))&&uk(e.style.getPropertyValue("font-family"))?.some(e=>r.has(e))).forEach(e=>{const r=e,s=o.get(r.cssText);s?i.appendChild(n.createTextNode(`${s}\n`)):a.push(Ok(r.cssText,r.parentStyleSheet?r.parentStyleSheet.href:null,t).then(e=>{e=qk(e,t),o.set(r.cssText,e),i.appendChild(n.createTextNode(`${e}\n`))}))})}}const jk=/(\/\*[\s\S]*?\*\/)/g,Bk=/((@.*?keyframes [\s\S]*?){([\s\S]*?}\s*?)})/gi;const Rk=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Vk=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function qk(e,t){const{font:n}=t,i=n?n?.preferredFormat:void 0;return i?e.replace(Vk,e=>{for(;;){const[t,,n]=Rk.exec(e)||[];if(!n)return"";if(n===i)return`src: ${t};`}}):e}function Hk(e,t=[]){for(const n of Array.from(e))Hb(n)?t.push(...Hk(n.cssRules)):"cssRules"in n?Hk(n.cssRules,t):t.push(n);return t}const zk=/\bx?link:?href\s*=\s*["'](?!data:)[^"']+["']/i;async function Uk(e,t){const n=await fk(e,t);if(zb(n.node)&&Ub(n.node)&&!function(e){return zk.test(e.innerHTML)}(n.node))return n.node;const{ownerDocument:i,log:r,tasks:o,svgStyleElement:a,svgDefsElement:s,svgStyles:l,font:c,progress:u,autoDestruct:d,onCloneNode:p,onEmbedNode:h,onCreateForeignObjectSvg:f}=n;r.time("clone node");const m=await Tk(n.node,n,!0);if(a&&i){let e="";l.forEach((t,n)=>{e+=`${t.join(",\n")} {\n ${n}\n}\n`}),a.appendChild(i.createTextNode(e))}r.timeEnd("clone node"),await(p?.(m)),!1!==c&&zb(m)&&(r.time("embed web font"),await Nk(0,n),r.timeEnd("embed web font")),r.time("embed node"),Lk(m,n);const g=o.length;let v=0;u?.(v,g),await Promise.all([...Array.from({length:4})].map(async()=>{for(;;){const e=o.pop();if(!e)break;try{await e}catch(e){n.log.warn("Failed to run task",e)}u?.(++v,g)}})),r.timeEnd("embed node"),await(h?.(m));const y=function(e,t){const{width:n,height:i}=t,r=ik(n,i,e.ownerDocument),o=r.ownerDocument.createElementNS(r.namespaceURI,"foreignObject");return o.setAttributeNS(null,"x","0%"),o.setAttributeNS(null,"y","0%"),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.append(e),r.appendChild(o),r}(m,n);return s&&y.insertBefore(s,y.children[0]),a&&y.insertBefore(a,y.children[0]),d&&function(e){if(e.ownerDocument=void 0,e.ownerWindow=void 0,e.svgStyleElement=void 0,e.svgDefsElement=void 0,e.svgStyles.clear(),e.defaultComputedStyles.clear(),e.sandbox){try{e.sandbox.remove()}catch(t){e.log.warn("Failed to destroyContext",t)}e.sandbox=void 0}e.workers=[],e.fontFamilies.clear(),e.fontCssTexts.clear(),e.requests.clear(),e.tasks=[],e.shadowRoots=[]}(n),await(f?.(y)),y}async function Wk(e,t){const n=await fk(e,t),i=await Uk(n),r=rk(i,n.isEnable("removeControlCharacter"));n.autoDestruct||(n.svgStyleElement=mk(n.ownerDocument),n.svgDefsElement=n.ownerDocument?.createElementNS(nk,"defs"),n.svgStyles.clear());const o=sk(r,i.ownerDocument);return await gk(o,n)}function Gk(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var l=i&&i.prototype instanceof s?i:s,c=Object.create(l.prototype);return Kk(c,"_invoke",function(n,i,r){var o,s,l,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return o=t,s=0,l=e,p.n=n,a}};function h(n,i){for(s=n,l=i,t=0;!d&&c&&!r&&t<u.length;t++){var r,o=u[t],h=p.p,f=o[2];n>3?(r=f===i)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=h&&((r=n<2&&h<o[1])?(s=0,p.v=i,p.n=o[1]):h<f&&(r=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,p.n=f,s=0))}if(r||n>1)return a;throw d=!0,i}return function(r,u,f){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,f),s=u,l=f;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(p.n=-1),h(s,l)):p.n=l:p.v=l);try{if(c=2,o){if(s||(r="next"),t=o[r]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=e}else if((t=(d=p.n<0)?l:n.call(i,p))!==a)break}catch(t){o=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,r,o),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][i]?t(t([][i]())):(Kk(t={},i,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Kk(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,Kk(d,"constructor",c),Kk(c,"constructor",l),l.displayName="GeneratorFunction",Kk(c,r,"GeneratorFunction"),Kk(d),Kk(d,r,"Generator"),Kk(d,i,function(){return this}),Kk(d,"toString",function(){return"[object Generator]"}),(Gk=function(){return{w:o,m:p}})()}function Kk(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}Kk=function(e,t,n,i){function o(t,n){Kk(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},Kk(e,t,n,i)}function Qk(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,r)}function Yk(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var o=e.apply(t,n);function a(e){Qk(o,i,r,a,s,"next",e)}function s(e){Qk(o,i,r,a,s,"throw",e)}a(void 0)})}}function Jk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Xk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jk(Object(n),!0).forEach(function(t){Zk(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Zk(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=rw(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=rw(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==rw(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ew(e){return function(e){if(Array.isArray(e))return iw(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||nw(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tw(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||nw(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nw(e,t){if(e){if("string"==typeof e)return iw(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?iw(e,t):void 0}}function iw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function rw(e){return rw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rw(e)}var ow=window.bricksData,aw=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:600;Xh.isReloadingCanvas=!0,lw(e),setTimeout(function(){Xh.isReloadingCanvas=!1},t)},sw=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:400;Xh.debounceIds[e]&&clearTimeout(Xh.debounceIds[e]),Xh.debounceIds[e]=setTimeout(function(){ow.debug.includes("debounces")&&console.info({action:"debounce",key:e,function:t.name,timeout:n,timetamp:Date.now()}),"function"==typeof t&&t.apply()},n)},lw=function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=function(){var t=Date.now().toString();e&&(t+=":".concat(e)),Xh.forceRender=t};sw("forceRender",t,arguments.length>0&&void 0!==arguments[0]?arguments[0]:400)},cw=function(e){e&&!Xh.rerenderCids.includes(e)&&(Xh.messageOrigin="main",Xh.rerenderCids.push(e))},uw=function(e){var t,n=Rw(e);return!(null==n||null===(t=n.elements)||void 0===t||!t.some(function(e){var t;return null==e||null===(t=e.settings)||void 0===t?void 0:t.hasLoop}))},dw=function(e){null!=e&&e.id&&null!=e&&e.cid&&uw(e)&&Fn(function(){cw(e.id)})},pw=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:lf.value;if(null==e||!e.id||!Array.isArray(t))return!1;var n=new Map,i=new Map;t.forEach(function(e){null!=e&&e.id&&n.set(e.id,e),null!=e&&e.id&&null!=e&&e.cid&&null!=e&&e.slotChildren&&Object.values(e.slotChildren).forEach(function(t){Array.isArray(t)&&t.forEach(function(t){i.set(t,e)})})});for(var r=e,o=new Set;null!==(a=r)&&void 0!==a&&a.id&&!o.has(r.id);){var a;o.add(r.id);var s=i.get(r.id);if(s)return s;if(!r.parent||0===r.parent)return!1;r=n.get(r.parent)}return!1},hw=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:lf.value;dw(pw(e,t))},fw=function(e,t){t=t||lf.value;for(var n=!1,i=e;i&&!1===n;){var r;null!==(r=i)&&void 0!==r&&null!==(r=r.settings)&&void 0!==r&&r.hasLoop&&(n=i.id),i=0!=i.parent&&t.find(function(e){return e.id===i.parent})}return n},mw=function(){var e;if(Xh.activeComponent){var t,n=null===(t=of.value)||void 0===t?void 0:t.elements.find(function(e){return e.id===Xh.activeId});Xh.activeElement=n||lf.value.find(function(e){return e.id===Xh.activeId})}else Xh.activeElement=lf.value.find(function(e){return(null==e?void 0:e.id)===Xh.activeId});(Xh.activeElement&&setTimeout(function(){My(Xh.activeElement)},0),Xh.activeComponent)&&(!!Xh.activeId&&qw(Xh.activeId)||(Ow(),Xh.activeId&&(Xh.activeElement=lf.value.find(function(e){return(null==e?void 0:e.id)===Xh.activeId}))));if(Xh.activeProperty=!1,Xh.activeId){var i,r,o=lf.value;if(Xh.activeComponent)o=null===(r=Xh.activeComponent)||void 0===r?void 0:r.elements;else if(null!==(i=Xh.activeElement)&&void 0!==i&&i.cid){var a;o=null===(a=Rw(Xh.activeElement))||void 0===a?void 0:a.elements}Xh.activeLoopId=fw(Xh.activeElement,o)}Xh.activeInstanceId=(null===(e=Xh.activeElement)||void 0===e?void 0:e.cid)||!1,Xh.sendPostMessage=!0,!Xh.activeId&&Xh.selectedElements.length&&(Xh.selectedElements=[],vb()),Xh.activeSelector=void 0,Xh.selectorDetector=!1},gw=function(){Xh.sendPostMessage=!1;sw("sendPostMessage",function(){Xh.sendPostMessage=!0},400)},vw=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1;n.slotChildren||(n.slotChildren={}),n.slotChildren[t]||(n.slotChildren[t]=[]),Object.keys(n.slotChildren).forEach(function(t){var i=n.slotChildren[t].indexOf(e.id);i>-1&&n.slotChildren[t].splice(i,1)}),i>=0&&i<n.slotChildren[t].length?n.slotChildren[t].splice(i,0,e.id):n.slotChildren[t].push(e.id),dw(n)},yw=function(e,t){t.slotChildren&&Object.keys(t.slotChildren).forEach(function(n){var i=t.slotChildren[n].indexOf(e.id);i>-1&&(t.slotChildren[n].splice(i,1),dw(t))})},bw=function(e,t,n){if(e){var i,r=[e],o=(null==e?void 0:e.parent)||0,a=new Set;if(!n)gw(),t=(null===(i=Xh.activeComponent)||void 0===i?void 0:i.elements)||lf.value,t=Ww(t),null!=e&&e._deleteSelected&&Xh.selectedElements.length&&(r=Ww(Xh.selectedElements),Xh.selectedElements.length&&(Xh.selectedElements=[])),r.forEach(function(e){var n=pw(e,t);null!=n&&n.id&&a.add(n.id)});if(r.forEach(function(e){var n;if(t=t.filter(function(t){return t.id!==e.id}),0!=e.parent){var i=t.findIndex(function(t){return t.id===e.parent});if(i>-1){var r=t[i].children.indexOf(e.id);r>-1&&t[i].children.splice(r,1)}}t.forEach(function(t){null!=t&&t.slotChildren&&"object"===rw(t.slotChildren)&&Object.keys(t.slotChildren).forEach(function(n){if(Array.isArray(t.slotChildren[n])){var i=t.slotChildren[n].length;t.slotChildren[n]=t.slotChildren[n].filter(function(t){return t!==e.id}),i!==t.slotChildren[n].length&&null!=t&&t.id&&null!=t&&t.cid&&a.add(t.id)}})});var o=new Set;null!=e&&null!==(n=e.children)&&void 0!==n&&n.length&&e.children.forEach(function(e){return o.add(e)}),null!=e&&e.slotChildren&&Object.values(e.slotChildren).forEach(function(e){Array.isArray(e)&&e.forEach(function(e){return o.add(e)})}),t.forEach(function(t){(null==t?void 0:t.parent)===e.id&&o.add(t.id)}),o.forEach(function(e){var n=t.find(function(t){return t.id===e});n&&(t=bw(n,t,!0))})}),t=t.filter(function(t){return t.id!==e.id}),Xh.selectedElements.length>0&&Xh.selectedElements.some(function(t){return t.id===e.id})&&(Xh.selectedElements=Xh.selectedElements.filter(function(t){return t.id!==e.id})),n)return t;var s=u_(e);if(a.forEach(function(e){var n=t.find(function(t){return t.id===e});uw(n)&&s.push(e)}),s=ew(new Set(s)),Xh.activeComponent?Xh.activeComponent.elements=t:Xh[sf.value]=t,vb(),r.length>1&&r.every(function(t){return t.parent===e.parent}))o=r[0].parent;else{var l,c,u=window.top.document.querySelector('#bricks-structure [data-id="'.concat(e.id,'"]'));if(u)null!==(l=u.nextElementSibling)&&void 0!==l&&l.dataset.id?o=u.nextElementSibling.dataset.id:null!==(c=u.previousElementSibling)&&void 0!==c&&c.dataset.id&&(o=u.previousElementSibling.dataset.id)}Fn(function(){s.length>0&&s.forEach(function(e){cw(e)}),Xh.deleteItem?Xh.deleteItem=!1:(Xh.activeId=o,mw()),setTimeout(function(){Xh.deleteElement=!1},100)})}},kw=function(e){ow.debug.includes("http")&&console.warn("http:req",e),null!=e&&e.fetch&&window.fetch?_w(e):ww(e)},ww=function(e){var t=(null==e?void 0:e.requestKey)||!1;if(t&&Xh.activeCalls[t]){var n=Xh.activeCalls[t];n&&"function"==typeof n.abort&&n.abort(),delete Xh.activeCalls[t]}var i,r,o=(null==e?void 0:e.url)||ow.ajaxUrl,a=e;(a.hasOwnProperty("data")||(a.data={}),a.async=!0,a.cache=!1,a.method=(null==e?void 0:e.method)||"POST",e.hasOwnProperty("format")&&(a.dataType=e.format),a.data instanceof FormData)?(a.data.append("nonce",ow.nonce),a.data.append("postId",(null===(i=e.data)||void 0===i?void 0:i.postId)||Xh.postId),a.data.append("bricks-is-builder",1)):(a.data.nonce=ow.nonce,a.data.postId=(null===(r=e.data)||void 0===r?void 0:r.postId)||Xh.postId,a.data["bricks-is-builder"]=1);if(e.hasOwnProperty("error")||(e.error=function(t,n){console.warn(t,e.data,n)}),t){var s=e.success,l=e.error;a.success=function(e){delete Xh.activeCalls[t],s&&s(e)},a.error=function(e,n,i){delete Xh.activeCalls[t],l&&l(e,n,i)}}var c=jQuery.ajax(o,a);return t&&(Xh.activeCalls[t]=c),c},_w=function(e){var t=(null==e?void 0:e.url)||ow.restApiUrl.concat(null==e?void 0:e.endpoint),n=(null==e?void 0:e.method)||"POST",i=(null==e?void 0:e.requestKey)||!1;if(i&&Xh.activeCalls[i]){var r=Xh.activeCalls[i];r&&"function"==typeof r.abort&&r.abort(),delete Xh.activeCalls[i]}var o=Xk({"Content-Type":"application/json; charset=UTF-8","X-WP-Nonce":window.wpApiSettings.nonce},null==e?void 0:e.headers);o["X-Bricks-Is-Builder"]=1;var a=new AbortController,s={method:n,mode:(null==e?void 0:e.mode)||"same-origin",credentials:"same-origin",headers:o,signal:a.signal};if("POST"===n){var l={nonce:ow.nonce,postId:(null==e?void 0:e.postId)||Xh.postId};Object.keys(e.data).forEach(function(t){l[t]=e.data[t]}),s.body=JSON.stringify(l)}else"GET"===n&&(t+="?"+new URLSearchParams(e.data));i&&(Xh.activeCalls[i]=a);var c=e.success,u=e.error,d=function(){i&&delete Xh.activeCalls[i]};return window.fetch(t,s).then(function(t){if(!t.ok)throw window.bricksData.builderDisableRestApi=!0,delete e.fetch,kw(e),Error(t.statusText);return t[(null==e?void 0:e.format)||"json"]()}).then(function(e){return function(e){d(),c&&"function"==typeof c&&c(e)}(e),e}).catch(function(e){if(function(e){d(),"AbortError"!==e.name&&u&&"function"==typeof u&&u(e)}(e),"AbortError"===e.name)return Promise.resolve();throw e})},Cw=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((ow.builderCheckForCorruptData||window.location.search.includes("check=orphaned"))&&l_(),Xh.hasConflicts){if(Xh.notifications.length)return void(Xh.isSaving=!1);Xh.hasConflicts=!1}Xh.isSaving=!0;var n=sf.value,i={action:"bricks_save_post",area:n},r=new URL(window.location.href);r.searchParams.delete("bricks");var o=r.toString(),a=Xh.isTemplate;Xh.templateType&&(i.templateType=Xh.templateType);var s=!1;if((null===(e=Xh.globalVariablesRenamed)||void 0===e?void 0:e.length)>0&&(s=!0,Xh.notifications.push({desc:ow.i18n.updatingVariableReferences.replace("%s",Xh.globalVariablesRenamed.length),timestamp:Math.floor(Date.now()/1e3)})),t.force){var l=["components","colorPalette","globalClasses","globalClassesTrash","globalClassesLocked","globalClassesCategories","globalVariables","globalVariablesRenamed","globalVariablesCategories","globalElements","globalQueries","globalQueriesCategories","pinnedElements","pseudoClasses","themeStyles","pageSettings"];if(Xh.unsavedChanges.includes("fonts")){if(Xh.fonts.custom){var c=JSON.parse(JSON.stringify(Xh.fonts.custom));Object.entries(c).forEach(function(e){var t=tw(e,2),n=t[0],i=t[1];if(i.fontFaces&&"string"==typeof i.fontFaces&&i.fontFaces.includes("@font-face")){for(var r,o={},a=/@font-face\s*{([^}]*)}/g;null!==(r=a.exec(i.fontFaces));){var s=r[1],l=/font-weight\s*:\s*(\d+)/.exec(s),c=l?l[1]:"400",u=/font-style\s*:\s*(\w+)/.exec(s),d=u?u[1]:"normal",p=/url\(([^)]+)\)/.exec(s),h=p?p[1]:"";o["".concat(c).concat(d)]={url:h,type:h.endsWith(".woff2")?"font/woff2":h.endsWith(".woff")?"font/woff":h.endsWith(".ttf")?"font/ttf":""}}i.fontFaces=o}else if(i.fontFaces&&"string"==typeof i.fontFaces)try{i.fontFaces=JSON.parse(i.fontFaces)}catch(e){ow.debug&&console.error("Error parsing fontFaces for ".concat(n,":"),e),i.fontFaces={}}else i.fontFaces||(i.fontFaces={})}),Xh.fonts.custom=c}l.push("fonts.custom"),i.fontChanges=Xh.fontChanges}Xh.templateType?(l.push("templateSettings"),"header"===Xh.templateType?l.push("header"):"footer"===Xh.templateType?l.push("footer"):l.push("content")):l.push("content"),l.forEach(function(e){i[e]=JSON.stringify(Xh[e])})}else Xh.activeClass&&Xh.unsavedChanges.includes("activeClass")&&(Kw(Xh.activeClass),i.globalClasses=JSON.stringify(Xh.globalClasses),Xh.unsavedChanges.includes("globalClasses")||Xh.unsavedChanges.push("globalClasses")),Xh.unsavedChanges.forEach(function(e){i[e]=JSON.stringify(Xh[e])});ow.debug&&console.info("bricks_save_post:before",i,t),Array.isArray(Xh.unsavedChanges)&&Xh.unsavedChanges.includes("templateSettings")&&(i[n]=JSON.stringify(Xh[n])),null!=t&&t.skipNotifications||(i.globalClassesTimestamp=Xh.globalClassesTimestamp),i.globalChanges=JSON.stringify(Xh.globalChanges),!Object.prototype.hasOwnProperty.call(i,"globalClasses")&&ow.builderGlobalClassesSync&&(i.globalClasses=JSON.stringify(Xh.globalClasses)),Object.prototype.hasOwnProperty.call(i,"globalClassesTrash")||(i.globalClassesTrash=JSON.stringify(Xh.globalClassesTrash));var u=function(e){Xh.isSaving=!1,Xh.notifications.push({action:"error",desc:e,call:"savePost"})};kw({data:i,error:function(e,n){console.warn("bricks_save_post:error:xhr",i,t,e,n),Xh.isSaving=!1;var r="<strong>".concat(ow.i18n.errorOnSave,"</strong>: HTTP code ").concat(e.status);u(r)},success:function(e){var n,r,l,c,d,p,h,f,m;if((ow.debug&&console.info("bricks_save_post:success",i,t,e),!e.success)&&(console.warn("bricks_save_post:error",i,t,e),Xh.isSaving=!1,null===(m=e.data)||void 0===m||!m.notifications||!Array.isArray(e.data.notifications)||0===e.data.notifications.length)){var g,v="".concat(ow.i18n.error,": ").concat((null===(g=e.data)||void 0===g?void 0:g.message)||(null==e?void 0:e.data));return void u(v)}s&&Xh.notifications.push({desc:ow.i18n.variablesRenamed,timestamp:Math.floor(Date.now()/1e3)});var y=Xh.notifications.findIndex(function(e){return"savePost"===e.call});y>-1&&Xh.notifications.splice(y,1);var b=Array.isArray(null===(n=e.data)||void 0===n?void 0:n.notifications)?e.data.notifications:[];if(ow.builderGlobalClassesSync&&(null==t||!t.skipNotifications)&&b.length){var k;if(!Xh.unsavedChanges.includes("globalClasses")&&Array.isArray(null===(k=e.data)||void 0===k||null===(k=k.notifications)||void 0===k?void 0:k.globalClassesDb))Xh.globalClasses=e.data.notifications.globalClassesDb;else{Xh.notifications=b;var w=Ww(Xh.globalClasses);b.forEach(function(e){if(null!=e&&e.conflict)Xh.hasConflicts=!0;else if("added"===e.action){var t,n=[],i=[];if(e.data.forEach(function(e){Xh.globalClassesTrash.some(function(t){return t.id===e.id})?n.push(e.id):i.push(e)}),n.length>0&&(r_(n),w=Ww(Xh.globalClasses)),i.length>0)(t=w).push.apply(t,i);n.length>0&&i.length>0?e.desc="".concat(ow.i18n.restored,": ").concat(ow.i18n.classes," (").concat(n.length,"), ").concat(ow.i18n.added,": ").concat(ow.i18n.classes," (").concat(i.length,")"):n.length>0?e.desc="".concat(ow.i18n.restored,": ").concat(ow.i18n.classes," (").concat(n.length,")"):e.desc="".concat(ow.i18n.added,": ").concat(ow.i18n.classes," (").concat(i.length,")")}else"deleted"===e.action?e.data.forEach(function(e){w=w.filter(function(t){return t.id!==e.id}),Xh.globalClassesTrash.push(Xk(Xk({},e),{},{deletedAt:Date.now()}))}):"modified"===e.action&&e.data.forEach(function(e){w=w.map(function(t){return t.id===e.id&&(t=e),t})})}),Xh.globalClasses=w}return Xh.hasConflicts?void(Xh.isSaving=!1):void Cw({skipNotifications:!0})}if(Xh.hasConflicts=!1,null!==(r=e.data)&&void 0!==r&&r.globalClassesTimestamp&&(Xh.globalClassesTimestamp=e.data.globalClassesTimestamp),null!==(l=e.data)&&void 0!==l&&l.globalClassesUser&&(Xh.globalClassesUser=e.data.globalClassesUser),null!==(c=e.data)&&void 0!==c&&c.globalClassesTrash){var _=e.data.globalClassesTrash;if("string"==typeof _)try{_=JSON.parse(_)}catch(e){_=[]}Array.isArray(_)||(_=[]);var C=[].concat(ew(Xh.globalClassesTrash),ew(_)).reduce(function(e,t){return"object"!==rw(t)||null===t?e:e.find(function(e){return e.id===t.id})?e.map(function(e){return e.id===t.id&&t.deletedAt>e.deletedAt?t:e}):e.concat([t])},[]);Xh.globalClassesTrash=C.filter(function(e){return!Xh.globalClasses.some(function(t){return t.id===e.id})})}Xh.currentRevisionId="",Xh.notification=!1,Object.keys(Xh.globalChanges).forEach(function(e){Xh.globalChanges[e]=[]}),Xh.isSaving=!1,Xh.globalVariablesRenamed=[],Xh.unsavedChanges=[],null!==(d=window.bricksPreviewWindow)&&void 0!==d&&d.closed||null===(p=window.bricksPreviewWindow)||void 0===p||null===(p=p.location)||void 0===p||!p.href||window.sessionStorage.tabId!==window.bricksPreviewWindow.sessionStorage.previewId||window.bricksPreviewWindow.location.reload(!0);var x=!!ow.generateTemplateScreenshots,S=e.success&&e.data.postId&&a&&x,E=!1;if(setTimeout(function(){S&&!E?Uw(ow.i18n.generatingScreenshots,2e3,{persistent:!0}):Uw("bricks_template"===Xh.postType?ow.i18n.templateSaved:"save"),t.reload&&setTimeout(function(){location.reload()},200)},200),null!==(h=Xh.pageSettings)&&void 0!==h&&h.postName||null!==(f=Xh.pageSettings)&&void 0!==f&&f.postTitle?kw({data:{action:"bricks_get_builder_url"},success:function(e){var t;null!==(t=e.data)&&void 0!==t&&t.url&&(window.location=e.data.url)}}):"function"==typeof t.callback&&t.callback(),S){var A=Iw(Xh.templateType),D=Tw(o);new Promise(function(e,t){D.onload=e,D.onerror=t,setTimeout(t,1e4,new Error("Load timeout"))}).then(function(){return Dw(e.data.postId,D.contentWindow.document,A)}).catch(function(e){ow.debug&&console.error("Error generating screenshot:",e)}).finally(function(){E=!0,D&&D.parentNode&&D.parentNode.removeChild(D),Uw(ow.i18n.templateSaved)})}else e.success&&e.data.postId&&a&&ow.debug&&console.info("Skipping template screenshot generation: feature disabled");Xh.fontChanges={families:{added:[],deleted:[],modified:[]},variants:{added:{},deleted:{},modified:{}}},setTimeout(function(){Xh.unsavedChanges=[]},0)}})},xw=function(e){var t=Array.from(e.querySelectorAll('link[rel="stylesheet"]')).map(function(t){return t.href&&new URL(t.href).origin!==window.location.origin&&!t.crossOrigin?new Promise(function(n,i){var r=e.createElement("link");r.rel="stylesheet",r.href=t.href,r.crossOrigin="anonymous",r.onload=n,r.onerror=i,t.parentNode.insertBefore(r,t.nextSibling),t.parentNode.removeChild(t)}):Promise.resolve()});return Promise.all(t)},Sw=function(e){e.querySelectorAll("[data-interaction-hidden-on-load]").forEach(function(e){e.removeAttribute("data-interaction-hidden-on-load")}),e.querySelectorAll('.brx-animated[data-animation*="In"]').forEach(function(e){e.removeAttribute("data-animation")})},Ew=function(){var e=Yk(Gk().m(function e(t){var n,i,r,o,a,s,l,c,u,d,p,h,f,m,g,v=arguments;return Gk().w(function(e){for(;;)switch(e.p=e.n){case 0:return n=v.length>1&&void 0!==v[1]?v[1]:null,i=v.length>2&&void 0!==v[2]?v[2]:2048,r=15e3,(o=t.querySelectorAll("video")).length>0&&o.forEach(function(e){return e.remove()}),(a=t.querySelectorAll(".bricks-background-video-wrapper")).length>0&&a.forEach(function(e){e.innerHTML=""}),Sw(t),e.n=1,xw(t);case 1:if(s=n?t.getElementById(n):t.body,"brx-popup-content"===n&&(s=t.querySelector(".brx-popup-content")),s){e.n=2;break}throw new Error("Element for screenshot not found.");case 2:return l=s.offsetWidth,c=i/l,(u=t.body.style.backgroundColor||window.getComputedStyle(t.body).backgroundColor)&&"transparent"!==u&&"rgba(0, 0, 0, 0)"!==u||(d=window.getComputedStyle(t.documentElement).backgroundColor)&&"transparent"!==d&&"rgba(0, 0, 0, 0)"!==d&&(u=d),u&&"transparent"!==u&&"rgba(0, 0, 0, 0)"!==u||(u="#fff"),p={width:l,scale:c,backgroundColor:u,style:{background:u},fetch:{bypassingCache:!0},timeout:5e3,debug:!!ow.debug,onCloneNode:function(e){"brx-header"===e.id&&(e.style.position="unset")}},e.p=3,h=Wk(s,p),f=new Promise(function(e,t){return setTimeout(function(){return t(new Error("Screenshot generation timed out"))},r)}),e.n=4,Promise.race([h,f]);case 4:return m=e.v,e.a(2,new Promise(function(e,t){m.toBlob(function(n){n?e(n):t(new Error("Failed to create blob from canvas"))},"image/webp")}));case 5:throw e.p=5,g=e.v,ow.debug&&console.error("modern-screenshot error:",g),g;case 6:return e.a(2)}},e,null,[[3,5]])}));return function(t){return e.apply(this,arguments)}}(),Aw=function(e,t){return new Promise(function(n,i){var r=new FormData;r.append("action","bricks_save_template_screenshot"),r.append("screenshotPostId",t),r.append("screenshot",e,"screenshot.webp"),kw({data:r,processData:!1,contentType:!1,success:function(e){e.success?n(e.data.file_url):(ow.debug&&console.error("Error saving template screenshot:",e.data),i(e.data))},error:function(e){ow.debug&&console.error("Error saving template screenshot:",e),i(e)}})})},Dw=function(){var e=Yk(Gk().m(function e(t,n){var i,r,o,a,s=arguments;return Gk().w(function(e){for(;;)switch(e.p=e.n){case 0:return i=s.length>2&&void 0!==s[2]?s[2]:null,e.p=1,e.n=2,Ew(n,i);case 2:if(null!==(r=e.v)){e.n=3;break}return console.warn("Screenshot generation timed out or failed. Skipping save."),e.a(2,null);case 3:return e.n=4,Aw(r,t);case 4:return o=e.v,e.a(2,o);case 5:return e.p=5,a=e.v,ow.debug&&console.error("Error generating template screenshot:",a),e.a(2,null)}},e,null,[[1,5]])}));return function(t,n){return e.apply(this,arguments)}}(),Tw=function(e){var t=Bw(),n=document.createElement("iframe");return n.style.position="absolute",n.style.top="-10000px",n.style.left="-10000px",n.style.height="1080px",n.style.width=t?t+"px":"2560px",n.src=e,document.body.appendChild(n),n},Iw=function(e){switch(e){case"header":return"brx-header";case"footer":return"brx-footer";case"popup":return"brx-popup-content";default:return"brx-content"}},Ow=function(){Xh.activeComponent=!1,Xh.activeProperty=!1,Xh.componentInstanceId=null,Xh.componentNavigationStack=[]},Pw=function(e){var t;return(null===(t=ow.elements)||void 0===t?void 0:t[e])||{label:e?e.replaceAll("-"," "):""}},Fw=function(e){var t,n,i,r,o;if(e||(e=af.value),null!==(t=e)&&void 0!==t&&t.isVirtualSlot)return!0;if("slot"===(null===(n=e)||void 0===n?void 0:n.name)&&Xh.activeComponent)return!1;if(null!==(i=ow.elements[null===(r=e)||void 0===r?void 0:r.name])&&void 0!==i&&i.nestable)return!0;if(null!==(o=e)&&void 0!==o&&o.cid){var a=Rw(e);if(null!=a&&a.elements)return a.elements.some(function(e){return"slot"===e.name})}return!1},$w=function(e){return e?Xh.globalClassesLocked.includes(e):Xh.activeClassIsLocked},Mw=function(e){return Xh.selectedElements.find(function(t){return(null==t?void 0:t.id)===(null==e?void 0:e.id)})},Lw=function(){for(var e="abcdefghijklmnopqrstuvwxyz",t="",n=0;n<6;n++)t+=e.charAt(Math.floor(26*Math.random()));return t},Nw=function(){var e=Xh.breakpoints.find(function(e){return null==e?void 0:e.base});return e||(e=Xh.breakpoints.find(function(e){return"desktop"===e.key})),e||{}},jw=function(){var e;return null===(e=Nw())||void 0===e?void 0:e.key},Bw=function(){var e;return null===(e=Nw())||void 0===e?void 0:e.width},Rw=function(e){var t=null==e?void 0:e.cid;return t?Xh.components.find(function(e){return e.id===t}):"string"==typeof e?Xh.components.find(function(t){return t.id===e}):null!=e&&e.id?Xh.components.find(function(t){return t.id===e.id}):void 0},Vw=function(e){return Xh.components.find(function(t){return t.id===e})},qw=function(e){var t=null;return Xh.components.forEach(function(n){if(Array.isArray(null==n?void 0:n.elements)){var i=n.elements.find(function(t){return t.id===e});if(i)return void(t=i);if(e===n.id){var r=n.elements.find(function(e){return 0==(null==e?void 0:e.parent)});if(r)return void(t=r)}}}),t},Hw=function(e,t,n,i){var r=t.split(":"),o=r[1]||null;r.length>1&&(t=r[1]);var a=t.split("|");if(3===a.length){var s=a[0];if(!i[s]||!Array.isArray(i[s]))return i;var l=a[1]||null,c=i[s].find(function(e){return e.id===l}),u=a[2]||null;if(!u)return i;c&&n?c[u]=n:c&&""!==(null==e?void 0:e.default)&&(c[u]=e.default)}if(o&&(n?(i[t]||(i[t]={}),i[t][o]=n):i[t]&&delete i[t][o]),"toggle"===(null==e?void 0:e.type)&&"off"===n)delete i[t];else if("class"===(null==e?void 0:e.type)){var d=n||(null==e?void 0:e.default);if(d&&!Array.isArray(d)&&(d=[d]),Array.isArray(d)&&Array.isArray(null==e?void 0:e.options)){var p=Ww(d);d=[],p.forEach(function(t){var n,i=(null===(n=e.options.find(function(e){return e.id===t}))||void 0===n?void 0:n.value)||null;i&&(d=d.concat(i))})}Array.isArray(d)&&d.length&&(null!=i&&i._cssGlobalClassesProps||(i._cssGlobalClassesProps=[]),i._cssGlobalClassesProps=i._cssGlobalClassesProps.concat(d)),null!=e&&e.replace&&(i._cssGlobalClassesPropsReplace=!0)}else n?i[t]=n:""!==(null==e?void 0:e.default)?i[t]=e.default:delete i[t];return i},zw=function(e){return!!(null!=e&&e.global||null!=e&&e.id)&&Xh.globalElements.find(function(t){return null!=e&&e.global&&null!=t&&t.global&&e.global===t.global||null!=e&&e.id&&null!=t&&t.id&&e.id===t.id?t:void 0})},Uw=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"save"===e&&(e=ow.saveMessages[Math.floor(Math.random()*ow.saveMessages.length)]),Xh.message=Xk({text:e,duration:t},n)},Ww=function(e){if(!e)return{};try{return JSON.parse(JSON.stringify(e))}catch(t){return ow.debug&&console.warn("$_clone:error",t,e),{}}},Gw=function(){var e,t,n,i,r,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=Xh.breakpoints,u=c.findIndex(function(e){return e.key===Xh.breakpointActive}),d=void 0,p=function(e){null!=e&&("object"===rw(e)&&Object.keys(e).length?(d||(d={}),Object.keys(e).forEach(function(t){e[t]&&(d[t]=e[t])})):d=e)},h=l||(null===(e=Pw(null===(t=af.value)||void 0===t?void 0:t.name))||void 0===e?void 0:e.controls);"repeater"===(null===(n=h)||void 0===n?void 0:n.type)&&null!==(i=h)&&void 0!==i&&i.fields&&(h=h.fields);var f=null===(r=h)||void 0===r?void 0:r[Zw(a)];if((null==f?void 0:f.css)&&(s=!0),"theme-styles"===Xh.popupTab&&(s=!0),Xh.pseudoClassActive){var m="desktop"===Xh.breakpointActive?"":":".concat(Xh.breakpointActive),g="".concat(a).concat(m),v=o.hasOwnProperty(g)?o[g]:void 0;p(v)}return c.forEach(function(e,t){if(e.key===Xh.breakpointActive)return d;if(s&&t>=u)return d;var n="desktop"===e.key?"":":".concat(e.key),i="".concat(a).concat(n).concat(Xh.pseudoClassActive),r=o.hasOwnProperty(i)?o[i]:void 0,l="".concat(a).concat(n);void 0===r&&Xh.pseudoClassActive&&o.hasOwnProperty(l)&&(r=o[l]),p(r)}),d},Kw=function(e){if(e){var t=null==e?void 0:e.id;if(t){var n=Xh.globalClassIndexById[t];void 0!==n&&JSON.stringify(Xh.globalClasses[n])!==JSON.stringify(e)&&(Xh.globalClasses[n]=e)}}},Qw=function(e,t,n){var i,r,o=Xh.globalClassIndexById[e],a=Xh.globalClasses[o];return n&&(a=Ww(a)),!t||null!==(i=a)&&void 0!==i&&i.settings&&!Array.isArray(null===(r=a)||void 0===r?void 0:r.settings)||(Xh.isBroadcasting=Date.now(),a.settings={},Xh.isBroadcasting=!1),a},Yw=function(){var e,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=null===(e=Qw(arguments.length>0&&void 0!==arguments[0]?arguments[0]:""))||void 0===e?void 0:e.name;return n?t?"".concat(t).concat(n):n:""},Jw=function(e){return Xh.globalVariables.find(function(t){return t.id===e})},Xw=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("_attributes"===e)return e;var n="desktop"===Xh.breakpointActive?"":":".concat(Xh.breakpointActive),i=Xh.pseudoClassActive||"",r=Xh.componentVariantActive&&"default"!==Xh.componentVariantActive&&of.value&&!Xh.activeClass?":".concat(Xh.componentVariantActive):"";return t?"".concat(e).concat(n).concat(i).concat(r):(i=":hover"===i?"_hover":"",n=n.replace(":","_"),"".concat(e).concat(n).concat(i))},Zw=function(e,t){if(!e)return e;if(t){var n=new RegExp("([:_])".concat(t,"(?=$|[:_])"));e=e.replace(n,"")}else{Xh.breakpoints.map(function(e){return e.key}).sort(function(e,t){return t.length-e.length}).forEach(function(t){var n=new RegExp("([:_])".concat(t,"(?=$|[:_])"));e=e.replace(n,"")})}return Xh.pseudoClasses.forEach(function(t){e=e.replace(t,"")}),e=e.replace("_hover",""),of.value&&Xh.componentVariants.length&&Xh.componentVariants.forEach(function(t){e=e.replace(":".concat(t.id),"")}),e},e_=function(e){var t,n=(null==e?void 0:e.content)||!1,i=(null==e?void 0:e.context)||"text",r=(null==e?void 0:e.success)||!1,o=(null==ow||null===(t=ow.template)||void 0===t||null===(t=t.preview)||void 0===t?void 0:t.postId)||Xh.postId;if(n){if(null!=e&&e.checkState){var a="string"==typeof n?Array.from(n.matchAll(/\{([^{}"]+)\}/g),function(e){return e[1]}):[],s=n.split("{").length-1,l=0,c="";if(a.forEach(function(e){var t=Xh.dynamicData[e];t&&(l++,c=c?c.replace("{".concat(e,"}"),t):n.replace("{".concat(e,"}"),t))}),c&&l===s)return c}var u={action:"bricks_get_dynamic_data_preview_content",postId:o,content:n,context:i};null!=e&&e.elementName&&(u.elementName=e.elementName),null!=e&&e.controlName&&(u.controlName=e.controlName),kw({data:u,success:r})}},t_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e||"string"!=typeof e)return e;var n=e.match(/{([^}]+)}/g);return n&&n.forEach(function(n){var i=n.replace(/[{}]/g,""),r=t?"".concat(i,"||").concat(t):i,o=t?"loopingDynamicData":"dynamicData",a=Xh[o]&&Xh[o][r]?Xh[o][r]:"";e=e.replace(n,a)}),e},n_=function(e){if(e=JSON.stringify(e),window.top==window.self){var t=document.getElementById("bricks-builder-iframe");t&&t.contentWindow.postMessage(e,ow.siteUrl)}else window.top.postMessage(e,ow.siteUrl)},i_=new Mb("BricksDB","templates"),r_=function(e){var t=Array.isArray(e)?e:[e],n=Xh.globalClassesTrash.slice(),i=[];return t.forEach(function(e){var t=n.findIndex(function(t){return t.id===e});if(-1!==t){var r=n.splice(t,1)[0];delete r.deletedAt,delete r.deletedBy;var o=r.originalIndex;(void 0===o||o>Xh.globalClasses.length)&&(o=Xh.globalClasses.length);for(var a=Xh.globalClasses.length-1;a>=o;a--)Xh.globalClassIndexById[Xh.globalClasses[a].id]=a+1;Xh.globalClasses.splice(o,0,r),Xh.globalClassIndexById[r.id]=o,delete r.originalIndex,i.push(r)}}),Xh.globalClassesTrash=n,i};function o_(e){var t=Ww(e);return t.forEach(function(e){if(e.category){var t=Xh.globalClassesCategories.find(function(t){return t.id===e.category});t&&(e._categoryData={id:t.id,name:t.name})}}),t}var a_=function(e){return Xh.permissions.includes(e)},s_=function(){return!!Xh.permissions&&Xh.permissions.some(function(e){return e.startsWith("add_element_")})},l_=function(){var e;if(a_("delete_elements")){var t=c_();if(Array.isArray(null==t||null===(e=t.orphanedElements)||void 0===e?void 0:e[sf.value])&&(Xh.orphanedElementIds=t.orphanedElements[sf.value]),null!=t&&t.totalOrphans&&0!=(null==t?void 0:t.totalOrphans)){var n=Xh.notifications.findIndex(function(e){return"orphaned"===e.issueType}),i={issueType:"orphaned",action:"orphaned",desc:ow.i18n.orphanedElementsDetected.replace("%s",t.totalOrphans),issues:t,timestamp:Math.floor(Date.now()/1e3)};n>-1?Xh.notifications.splice(n,1,i):Xh.notifications.push(i),Xh.showNotifications=!0}return t}},c_=function(){var e={orphanedElements:{},totalOrphans:0},t=sf.value,n=Array.isArray(Xh[t])?Xh[t]:[];if(!n.length)return e;var i=new Map;n.forEach(function(e){return i.set(e.id,e)});var r=[];return n.forEach(function(e){var t=e.parent;if(t&&0!==t&&"0"!==t){var n=i.get(t);if(n){var o=Array.isArray(n.children)&&n.children.includes(e.id);!o&&n.slotChildren&&"object"===rw(n.slotChildren)&&(o=Object.values(n.slotChildren).some(function(t){return Array.isArray(t)&&t.includes(e.id)})),o||r.push(e.id)}else r.push(e.id)}}),r.length&&(e.orphanedElements[t]=r,e.totalOrphans+=r.length),e},u_=function(e){var t,n=[];if(Xh.activeComponent&&fw(e,null===(t=Xh.activeComponent)||void 0===t?void 0:t.elements)){var i=Ww(lf.value),r=Array.isArray(i)?i.filter(function(e){return(null==e?void 0:e.cid)===Xh.activeComponent.id}):[];r.length&&(n=r.map(function(e){return e.id}))}return n=ew(new Set(n))},d_={loadPage:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=window.top||window;window.bricksData.instantNavigation?Xh.unsavedChanges.length&&!window.confirm(ow.i18n.unsavedChangesConfirm)||(Xh.popup&&(Xh.popup=null),Uw(ow.i18n.loading),kw({type:"POST",data:{action:"bricks_get_partial_builder_data",postId:e},success:function(e){if(e.success){var t=e.data,r=t.builderUrl||t.editPostUrl;if(r){try{var o=new URL(i.location.href),a=new URL(r,i.location.origin);o.searchParams.delete("post_type"),o.searchParams.delete("p"),o.searchParams.forEach(function(e,t){a.searchParams.has(t)||a.searchParams.set(t,e)}),r=a.toString()}catch(e){console.warn("Error constructing new URL",e)}n?i.history.pushState({postId:t.postId},"",r):i.history.replaceState({postId:t.postId},"",r)}t.pageTitle&&(i.document.title=t.pageTitle),Xh.isBroadcasting=!0;for(var s=0,l=Object.entries(t);s<l.length;s++){var c,u=tw(l[s],2),d=u[0],p=u[1];if("pageSettings"!==d&&"templateSettings"!==d||!Array.isArray(p)&&p&&"object"===rw(p)||(p={}),"dynamicData"!==d)Object.prototype.hasOwnProperty.call(Xh,d)&&(Xh[d]=p),null!==(c=window.bricksData)&&void 0!==c&&c.loadData&&(window.bricksData.loadData[d]=p);else{var h;if(Xh.dynamicData)for(var f=0,m=Object.entries(p);f<m.length;f++){var g=tw(m[f],2),v=g[0],y=g[1];Xh.dynamicData[v]=y}if(null!==(h=window.bricksData)&&void 0!==h&&null!==(h=h.loadData)&&void 0!==h&&h.dynamicData)for(var b=0,k=Object.entries(p);b<k.length;b++){var w=tw(k[b],2),_=w[0],C=w[1];window.bricksData.loadData.dynamicData[_]=C}}}Xh.isTemplate="bricks_template"===Xh.postType,Xh.history=[],Xh.historyIndex=0,Xh.activeElement=null,Xh.activeId=null,aw(),Fn(function(){Xh.unsavedChanges=[],Xh.isBroadcasting=!1}),Uw(ow.i18n.loaded)}else console.error(e),e.data&&e.data.editPostUrl?i.location.href=e.data.editPostUrl:i.location.reload()},error:function(e){console.error(e),i.location.reload()}})):t?i.location.href=t:i.location.reload()},autoExpandCollapsePanel:function(){ow.disablePanelAutoExpand||Xh.popup||setTimeout(function(){var e=document.querySelectorAll(".control.control-code"),t=!1;e.forEach(function(e){null!==e.offsetParent&&(e.closest("#bricks-pinned-section")||(t=!0))}),Xh.isPanelExpanded=t},100)},getCachedData:function(e,t){return i_.getCachedData(e,t)},cacheData:function(e,t){return i_.cacheData(e,t)},reloadCanvas:aw,copyToClipboard:function(e,t){navigator.clipboard&&(window.isSecureContext?(navigator.clipboard.writeText(e),Xh.clipboardData=e,t&&Uw(t)):alert("Clipboard API rejected: Not in secure context (HTTPS)"))},clearSearchControls:function(){Xh.searchControlKeyword="",Xh.searchControlModified=!1},debounce:sw,forceRender:lw,forceRenderActiveInstance:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:400,t=arguments.length>1?arguments[1]:void 0,n="";if(Xh.activeInstanceId){var i=Rw(Xh.activeInstanceId),r=Array.isArray(null==i?void 0:i.properties)?i.properties:[],o=null==r?void 0:r.find(function(e){return(null==e?void 0:e.id)===t}),a="object"===rw(o)&&Object.keys(null==o?void 0:o.connections);Array.isArray(a)&&(n=a.join(":"))}lw(e,n)},noChanges:function(e,t){return!Xh.selectedElements.length&&JSON.stringify(e)===JSON.stringify(t)},rerenderControls:function(){Xh.rerenderControls=Date.now()},rerenderElementId:function(e){e&&!Xh.rerenderElementIds.includes(e)&&Xh.rerenderElementIds.push(e)},removeRerenderElementId:function(e){if(e){var t=Xh.rerenderElementIds.indexOf(e);-1!==t&&Xh.rerenderElementIds.splice(t,1)}},rerenderLoopId:function(e){e&&!Xh.rerenderLoopIds.includes(e)&&Xh.rerenderLoopIds.push(e)},removeRerenderLoopId:function(e){if(e){var t=Xh.rerenderLoopIds.indexOf(e);-1!==t&&Xh.rerenderLoopIds.splice(t,1)}},rerenderCid:cw,removeRerenderCid:function(e){if(e){var t=Xh.rerenderCids.indexOf(e);if(-1!==t&&(Xh.rerenderCids.splice(t,1),window.top!==window.self)){var n=JSON.stringify({key:"rerenderCids",value:Xh.rerenderCids,ignoreOrigin:!0});window.top.postMessage(n,window.bricksData.siteUrl)}}},elementBelongsToLoopId:fw,nonCssSettingChanged:function(e,t){var n;if(this.$_state.activeId&&this.$_state.activeId===this.id&&!this.$_noChanges(e,t)){var i=null===(n=this.$_getElementConfig(this.name))||void 0===n?void 0:n.controls;if(i){var r=!0;for(var o in e)if(JSON.stringify(null==e?void 0:e[o])!==JSON.stringify(null==t?void 0:t[o])){var a=i[this.$_getControlKeyPlain(o)];a&&(r=Object.prototype.hasOwnProperty.call(a,"css"))}if(!r&&(hw(this.element,this.$_dynamicElements.value),this.loopId&&!this.$_state.rerenderElementIds.includes(this.id)&&!this.$_state.rerenderLoopIds.includes(this.loopId))){var s=!!this.loopId;this.$_ajaxAnimStart(this.id,s),s&&this.$_rerenderLoopId(this.loopId)}}}},loopingComponentChangedCids:u_,ajaxAnimStart:function(e){if(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?"".concat(e,":loop"):e;t&&!Xh.ajaxAnimIds.includes(t)&&Xh.ajaxAnimIds.push(t)}},ajaxAnimEnd:function(e){if(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?"".concat(e,":loop"):e;if(t){var n=Xh.ajaxAnimIds.indexOf(t);-1!==n&&Xh.ajaxAnimIds.splice(n,1)}}},addBlock:function(e){void 0===e.index||e.index<0?e.parent.unshift(e.block):e.parent.splice(e.index+1,0,e.block)},deleteBlock:function(e){e.parent.splice(e.index,1),Xh.deleteItem=!1},setActiveComponent:function(e){var t,n=Rw(e),i=null==n?void 0:n.id;if(i){var r=null!=e&&e.cid?e.id:null;if(r)-1===Xh.componentNavigationStack.findIndex(function(e){return e.instanceId===r})&&Xh.componentNavigationStack.push({instanceId:r,elementId:e.id,variantId:(null==e?void 0:e.variant)||null,componentId:i});else Xh.componentNavigationStack.push({instanceId:null,elementId:i,variantId:null,componentId:i});var o=null===(t=Xh.activeElement)||void 0===t?void 0:t.variant;if(o&&setTimeout(function(){Xh.componentVariantActive=o},100),Xh.activeId){var a=lf.value.some(function(e){return e.cid===i});a||(Xh.activeId=null)}Xh.activeComponent=n,Xh.componentInstanceId||Rw(Xh.activeId)||(Xh.componentInstanceId=Xh.activeId),Xh.activeId=n.id,Xh.activePanel="element"}},setActiveElement:mw,updateActiveComponent:function(e,t){var n;if(null!=e&&e.id&&null!=t&&t.id&&(null==e?void 0:e.id)===(null==t?void 0:t.id)&&null!==(n=Xh.activeComponent)&&void 0!==n&&n.id){var i=Vw(Xh.activeComponent.id);Object.keys(i).forEach(function(e){i[e]=Xh.activeComponent[e]})}},updateActiveElement:function(e,t){var n;if(null!=e&&e.id&&null!=t&&t.id&&(null==e?void 0:e.id)===(null==t?void 0:t.id)){var i=af.value;null!==(n=Xh.activeElement)&&void 0!==n&&n.id&&null!=i&&i.id&&Xh.activeElement.id===i.id&&Object.keys(Xh.activeElement).forEach(function(e){i[e]=Xh.activeElement[e]}),setTimeout(function(){Xh.activeVirtualSlot=null!=e&&e.id&&e.id.startsWith("vslot-")?{slotId:e.slotId,instanceId:e.instanceId}:null},0)}},stopPostMessages:gw,sortElement:function(e){if(e.element){var t=Ww(lf.value),n=e.element,i=e.oldIndex,r=e.newIndex,o=n.parent;if(0==o){i=t.findIndex(function(e){return n.id===e.id});var a=cf.value[r];a&&(r=t.findIndex(function(e){return a.id===e.id})),t.splice(i,1),t.splice(r,0,n)}else{var s=t.findIndex(function(e){return e.id===o});-1!=s&&(t[s].children.splice(i,1),t[s].children.splice(r,0,n.id))}Xh[sf.value]=t}else console.warn('sortElement:error: No "data.element"',e)},moveElement:function(e){var t=e.element;if(t){var n,i=lf.value;if(Xh.activeComponent)i=null===(n=Xh.activeComponent)||void 0===n?void 0:n.elements;var r=i.findIndex(function(e){return e.id===t.id}),o=new Set,a=pw(t,i);if(null!=a&&a.id&&o.add(a.id),t.parent){var s=i.findIndex(function(e){return e.id===t.parent}),l=!!i[s]&&i[s];if(Array.isArray(null==l?void 0:l.children)){var c=l.children.findIndex(function(e){return e===t.id});l.children.splice(c,1)}null!=l&&l.cid&&null!=l&&l.slotChildren&&yw(t,l)}if(t.parent=0==e.parentId?0:e.parentId,i[r].parent=t.parent,0==e.parentId){var u=i.filter(function(e){return 0==e.parent}),d=parseInt(e.index)>=u.length?u.length-1:e.index,p=u.length-1;u[d]&&(p=i.findIndex(function(e){return e.id===u[d].id})),i.splice(r,1),i[p]?i.splice(p,0,t):i.push(t)}else{var h=!1,f=null,m=e.parentId;if(e.parentId&&String(e.parentId).startsWith("vslot-")){var g=String(e.parentId).split("-");if(3===g.length){var v=tw(g,3),y=v[1],b=v[2],k=i.find(function(e){return e.id===y&&e.cid});if(k){var w,_=Rw(k);null!=_&&null!==(w=_.elements)&&void 0!==w&&w.some(function(e){return e.id===b&&"slot"===e.name})&&(h=!0,f=k,m=b)}}}if(h&&f)yw(t,f),vw(t,m,f,e.index),t.parent=f.id;else{var C=i.findIndex(function(t){return t.id===e.parentId}),x=i[C],S=null==x?void 0:x.children;if(null!=x&&x.cid&&null!=x&&x.slotChildren){var E=Rw(x);if(null!=E&&E.elements){var A=E.elements.filter(function(e){return"slot"===e.name});if(A.length>0){var D=A[0].id;yw(t,x),vw(t,D,x,e.index)}}}Array.isArray(S)&&(S.length>e.index?S.splice(e.index,0,t.id):S.push(t.id))}}var T=pw(t,i);null!=T&&T.id&&o.add(T.id);var I=u_(t);Fn(function(){I.length>0&&I.forEach(function(e){cw(e)}),o.forEach(function(e){dw(i.find(function(t){return t.id===e}))})})}},deleteElement:bw,updateSetting:function(e,t,n){var i,r,o=(null===(i=of.value)||void 0===i?void 0:i.elements)||lf.value,a=o.find(function(t){return t.id===e}),s=!!a;a||(a=null!==(r=Xh.activeClass)&&void 0!==r&&r.id&&Xh.activeClass.id===e?Xh.activeClass:Qw(e));if(a){var l="desktop"===Xh.breakpointActive?"":Xh.breakpointActive;l&&(t="".concat(t,":").concat(l)),Xh.componentVariantActive&&"default"!==Xh.componentVariantActive&&of.value&&(t="".concat(t,":").concat(Xh.componentVariantActive)),null===n||""===n?delete a.settings[t]:(a.settings&&!Array.isArray(a.settings)||(a.settings={}),a.settings[t]=n),s&&function(e,t){var n,i=null===(n=Pw(null==e?void 0:e.name))||void 0===n?void 0:n.controls;if(!i)return!1;var r=i[Zw(t)];return!!r&&!Object.prototype.hasOwnProperty.call(r,"css")}(a,t)&&hw(a,o),this.$_rerenderControls()}},addElementToSlot:vw,removeElementFromSlot:yw,rerenderSlotComponentInstanceForElement:hw,http:kw,smartDebouncedHttp:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:400;if(e.requestKey){var n=e.requestKey;if(Xh.activeCalls[n]){var i=Xh.activeCalls[n];i&&"function"==typeof i.abort&&i.abort(),delete Xh.activeCalls[n]}Xh.debounceCallIds[n]&&clearTimeout(Xh.debounceCallIds[n]),Xh.pendingCalls[n]={req:e},Xh.debounceCallIds[n]=setTimeout(function(){var e=Xh.pendingCalls[n];e&&(delete Xh.pendingCalls[n],delete Xh.debounceCallIds[n],e.req.requestKey=n,kw(e.req))},t)}else kw(e)},savePost:Cw,getPostId:function(){var e;return null!==(e=Xh.templatePreview)&&void 0!==e&&e.postId?Xh.templatePreview.postId:Xh.postId},exitComponent:Ow,backToPreviousActiveId:function(){var e=Xh.componentNavigationStack.pop(),t=Xh.componentNavigationStack[Xh.componentNavigationStack.length-1];if(t){var n=Vw(t.componentId);if(n){Xh.activeComponent=n,Xh.activeId=(null==e?void 0:e.instanceId)||(null==t?void 0:t.componentId);var i=(null==t?void 0:t.variantId)||null;i&&setTimeout(function(){Xh.componentVariantActive=i},100)}}else Xh.activeComponent=!1,Xh.activeProperty=!1,Xh.componentInstanceId&&(Xh.activeId=Ww(Xh.componentInstanceId),Xh.componentInstanceId=null)},backToComponentsPanel:function(){Xh.activeComponent=!1,Xh.activeProperty=!1,Xh.activePanel="elements",Xh.activePanelTab="components"},classPreviewOnHover:function(e,t){var n,i,r;if(this.$_state.activeId===this.element.id){if(e){var o=this.$_getGlobalClassName(e);this.otherClasses.includes(o)||this.otherClasses.push(o)}if(t&&(!Array.isArray(null===(n=this.element)||void 0===n||null===(n=n.settings)||void 0===n?void 0:n._cssGlobalClasses)||Array.isArray(null===(i=this.element)||void 0===i||null===(i=i.settings)||void 0===i?void 0:i._cssGlobalClasses)&&(null===(r=this.element)||void 0===r||null===(r=r.settings)||void 0===r||!r._cssGlobalClasses.includes(t)))){var a=this.$_getGlobalClassName(t);this.otherClasses=this.otherClasses.filter(function(e){return e!==a})}}},getElementComponent:function(e){if(null!=e&&e.cid&&null!=e&&e.slotChildren)return"bricks-nestable";var t=Pw(e.name);return null!=t&&t.component?t.component:document.getElementById("tmpl-bricks-element-".concat(e.name))?"bricks-element":"bricks-element-php"},getElementGlobalClassNames:function(e){var t=Array.isArray(null==e?void 0:e._cssGlobalClasses)?e._cssGlobalClasses:[],n=[];return t.forEach(function(e){var t=Yw(e);n.includes(t)||n.push(t)}),n},getElementCustomAttributes:function(e){var t,n=(null==e||null===(t=e.settings)||void 0===t?void 0:t._attributes)||null,i={};return n&&n.forEach(function(e){i[e.name]=e.value}),i},getElementClasses:function(e,t){var n,i,r,o,a,s,l,c=(null==e?void 0:e.settings)||{},u=[],d=this.component||this.parentComponent;if(null!=e&&e.cid&&(d=Vw(e.cid)),t||(t=e.name),this.isElementPlaceholder||u.push("brxe-".concat(t)),d){var p;if(this.$_isComponentRoot(e)&&u.push("brxe-".concat(d.id)),null!=e&&e.instanceId&&(null==e||!e.properties))e.properties=null===(p=this.$_getDynamicElementById(e.instanceId))||void 0===p?void 0:p.properties;var h=this.$_getComponentSettings(d,e);Array.isArray(null==h?void 0:h._cssGlobalClasses)&&(null==h||h._cssGlobalClasses.forEach(function(e){var t=Yw(e);u.includes(t)||u.push(t)}));var f=null==h?void 0:h._cssClasses;f&&(u=Array.isArray(f)?u.concat(f):u.concat(f.split(" ")))}null!=e&&e.id&&u.push("brxe-".concat(e.id)),null!==(n=this.globalElement)&&void 0!==n&&n.global&&u.push("brxe-".concat(this.globalElement.global)),"icon"===t&&null!=e&&null!==(i=e.settings)&&void 0!==i&&i.link&&(u=[]),Fw(e)&&(u.push("brx-draggable"),this.backgroundVideoUrl&&u.push("has-bg-video"),null!=c&&c._shapeDividers&&u.push("has-shape")),this.$_state.isResizingElement&&u.push("is-resizing"),this.$_state.isPreviewing&&u.push("is-previewing"),this.$_state.activeId&&(this.$_state.activeId===this.id||null!==(r=this.element)&&void 0!==r&&r.cid&&this.element.cid===this.$_state.activeId)&&!this.$_state.isPreviewing&&!this.$_state.draggingElement?u.push(this.component?"is-active-component":"is-active-element"):!Mw(e)||this.$_state.isPreviewing||this.$_state.draggingElement?"slot"===e.name&&null!==(o=this.$_state)&&void 0!==o&&null!==(o=o.activeVirtualSlot)&&void 0!==o&&o.slotId&&(null===(a=this.$_state)||void 0===a?void 0:a.activeVirtualSlot.slotId)===e.id&&u.push("is-active-component-slot"):u.push("is-active-element");var m=this.$_getElementConfig(t);return(m&&(null==m?void 0:m.draggable)||!0)&&!this.$_state.isPreviewing&&(u.push("bricks-draggable-handle"),u.push("bricks-draggable-item"),this.$_userHasPermission("move_elements")||u.push("bricks-draggable-off")),c._animation&&(u.push("brx-animated"),null!=c&&c._animationDuration&&u.push("animation-duration-".concat(c._animationDuration))),"mobile-menu"===this.$_state.activePanelGroup&&this.id===this.$_state.activeId&&u.push("show-mobile-menu"),"cartDetails"===this.$_state.activePanelGroup&&this.id===this.$_state.activeId&&u.push("show-cart-details"),Object.prototype.hasOwnProperty.call(this.$_state._addedClasses,this.id)&&u.push(this.$_state._addedClasses[this.id]),null!=e&&null!==(s=e.attributes)&&void 0!==s&&s.class&&u.push(e.attributes.class),null!=c&&c._cssClasses&&(u=u.concat(c._cssClasses.split(" "))),null!=c&&null!==(l=c._hidden)&&void 0!==l&&l._cssClasses&&u.push(c._hidden._cssClasses),u},getElementConfig:Pw,getElementIcon:function(e){var t,n=null==e?void 0:e.name;if(null!=e&&e.cid){var i=qw(e.cid);if(!(n=null==i?void 0:i.name))return"ti-package"}return null===(t=Pw(n))||void 0===t?void 0:t.icon},getElementLabel:function(e){var t;if(null!=e&&e.label)return e.label;if(null!=e&&e.cid){var n=qw(e.cid);if(null!=n&&n.label)return n.label}var i=zw(e);return null!=i&&i.label?i.label:null===(t=Pw(null==e?void 0:e.name))||void 0===t?void 0:t.label},escapeHTML:function(e){return null==e?"":String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},getElementIndex:function(e){var t,n=(null===(t=of.value)||void 0===t?void 0:t.elements)||lf.value;if(0==e.parent){var i,r=null!==(i=of.value)&&void 0!==i&&i.elements?n.filter(function(e){return!(null!=e&&e.parent)||0==e.parent}):cf.value;return r.findIndex(function(t){return t.id==e.id})}var o=n.find(function(t){return t.id==e.parent});return o?o.children.findIndex(function(t){return t==e.id}):0},getElementSettings:function(){var e,t;if(this.parentComponent){var n,i;if(null!==(n=this.element)&&void 0!==n&&n.cid){var r=this.$_getComponent(this.element);if(r)return this.$_getComponentSettings(r,this.element)}return(null===(i=this.element)||void 0===i?void 0:i.settings)||{}}return this.component?this.$_getComponentSettings(this.component,this.element):null!==(e=this.globalElement)&&void 0!==e&&e.settings?this.globalElement.settings:(null===(t=this.element)||void 0===t?void 0:t.settings)||{}},isActiveComponent:function(e){var t,n;return Array.isArray(null===(t=Xh.activeComponent)||void 0===t?void 0:t.elements)&&(null===(n=Xh.activeComponent)||void 0===n?void 0:n.elements.find(function(t){return t.id===e}))},isActiveComponentRoot:function(){var e;return Xh.activeComponent&&!(null!==(e=Xh.activeElement)&&void 0!==e&&e.parent)},isComponentRoot:function(e){var t=null==e?void 0:e.cid;return!!t&&Xh.components.find(function(e){return e.id===t})},isNestable:Fw,isMasonry:function(e){var t,n,i;e||(e=af.value);var r=null===(t=ow.elements[null===(n=e)||void 0===n?void 0:n.name])||void 0===t?void 0:t.supportMasonry;return(null===(i=e)||void 0===i||null===(i=i.settings)||void 0===i?void 0:i._useMasonry)&&r},isLocked:$w,isSelected:Mw,generateId:Lw,runElementScripts:function(e){var t=Pw(e),n=null==t?void 0:t.scripts;n&&(Array.isArray(n)||(n=[n]),setTimeout(function(){n.forEach(function(t){ow.debug.includes("runElementScripts")&&console.warn("runElementScripts",e,t);var n=Py();"function"==typeof n[t]&&n[t]()})},200))},getBaseBreakpoint:Nw,getBaseBreakpointKey:jw,getBaseBreakpointWidth:Bw,getPreviewWidth:function(){var e=Xh.previewWrapperWidth,t=Xh.breakpoints,n=t.findIndex(function(e){return(null==e?void 0:e.key)===Xh.breakpointActive}),i=null==t?void 0:t[n];if(!i)return e;if("desktop"===i.key&&Xh.previewWidthLocked)return Xh.previewWidthLocked;if(null!=i&&i.widthBuilder)return null==i?void 0:i.widthBuilder;if(mf.value)return n>0&&n==t.length-1?e>(null==i?void 0:i.width)?e:null==i?void 0:i.width:0===n?(null==i?void 0:i.width)-1:(null==i?void 0:i.width)+1;if(i.width>Bw())return i.width;if(null!=i&&i.base&&0===n){var r,o=null===(r=t[n+1])||void 0===r?void 0:r.width;return e>o?e:o+1}return i.width-1},getComponentPropertyLabel:function(e){var t,n,i;return"editor"===e?null===(n=ow.i18n)||void 0===n?void 0:n.richText:"image-gallery"===e?null===(i=ow.i18n)||void 0===i?void 0:i.imageGallery:(null===(t=ow.i18n)||void 0===t?void 0:t[e])||e},getComponentPropertyIconClassName:function(e){var t="ti-".concat(e);return"select"===e?"ti-list":"icon"===e?"ti-star":"image-gallery"===e?"ti-gallery":"editor"===e?"ti-align-left":t},getComponent:Rw,getComponentElementById:qw,getComponentById:Vw,getComponentSettings:function(e,t){var n,i=null==e||null===(n=e.elements.find(function(e){return e.id===(null==t?void 0:t.cid)||e.id===(null==t?void 0:t.id)}))||void 0===n?void 0:n.settings;i=Ww(i),Array.isArray(i)&&(i={});var r=(null==e?void 0:e.properties)||[],o=(null==t?void 0:t.cid)||(null==t?void 0:t.id);return r.forEach(function(e){var n;((null==e||null===(n=e.connections)||void 0===n?void 0:n[o])||[]).forEach(function(n){var r,o=null===(r=t.properties)||void 0===r?void 0:r[e.id];i=Hw(e,n,o,i)})}),Array.isArray(null==e?void 0:e.elements)&&e.elements.forEach(function(e){var t,n;if(e.id===o){var r=null===(t=i)||void 0===t?void 0:t._cssGlobalClassesProps;r&&(null!==(n=i)&&void 0!==n&&n._cssGlobalClassesPropsReplace?i._cssGlobalClasses=r:(i._cssGlobalClasses=i._cssGlobalClasses||[],i._cssGlobalClasses=i._cssGlobalClasses.concat(r)),delete i._cssGlobalClassesProps,delete i._cssGlobalClassesPropsReplace)}}),i},applyComponentPropertyLogic:Hw,getGlobalElement:zw,getFinalElement:function(e){var t,n,i;return!e&&null!==(t=Xh.activeElement)&&void 0!==t&&t.id&&(e=Xh.activeElement),null!==(n=e)&&void 0!==n&&n.cid&&(e=qw(e.cid)),!e&&null!==(i=Xh.activeComponent)&&void 0!==i&&i.id&&(e=qw(Xh.activeComponent.id)),zw(e)||e},getEditTemplateUrl:function(){var e;if("template"===(null===(e=af.value)||void 0===e?void 0:e.name)){var t,n=null===(t=af.value)||void 0===t||null===(t=t.settings)||void 0===t?void 0:t.template;return n?"".concat(window.bricksData.siteUrl,"/?p=").concat(n,"&").concat(window.bricksData.builderParam,"=run"):""}},showError:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3;Xh.message={text:e,duration:t,error:!0}},showMessage:Uw,showPanel:function(e){e?(Xh.activePanelGroup&&"style"!==Xh.activePanelTab&&(Xh.activePanelGroup=""),Fn(function(){Object.prototype.hasOwnProperty.call(e,"panel")&&(Xh.activePanel=e.panel),Object.prototype.hasOwnProperty.call(e,"group")&&(Xh.activePanelGroup=e.group)})):s_()||a_("manage_global_elements")?Xh.activePanel="elements":a_("insert_components")?(Xh.activePanel="elements",Xh.activePanelTab="components"):a_("access_page_settings")?(Xh.activePanel="settings-page",Xh.activePanelGroup=""):Xh.activePanel="pages"},clone:Ww,isRightClick:function(e){return 2===(null==e?void 0:e.button)},stringReplace:function(e,t){if(!Array.isArray(t))return e;var n=-1;return e.replace(/\%s/gi,function(e){return n++,t[n]?t[n]:""})},replaceCustomCssRoot:function(e,t,n){return"string"==typeof n?n.replaceAll(e,t):n},getNextBreakpointSetting:Gw,setLastSelectedClass:function(e){var t,n,i;if(!e)return Xh.activeClass="",void(Xh.activeClassIsLocked=!1);var r=null===(t=Xh.globalClassesSelected)||void 0===t?void 0:t[e];if(!r)return Xh.activeClass="",void(Xh.activeClassIsLocked=!1);var o=(null===(n=af.value)||void 0===n||null===(n=n.settings)||void 0===n?void 0:n._cssGlobalClasses)||[];if(!Array.isArray(o)||!o.length)return Xh.activeClass="",void(Xh.activeClassIsLocked=!1);(null===(i=Xh.activeClass)||void 0===i?void 0:i.id)===r&&Kw(Xh.activeClass);var a=Qw(r,!0,!0);Xh.activeClass=a&&o.includes(r)?a:"",Xh.activeClassIsLocked=!!r&&$w(r)},saveActiveClass:Kw,getGlobalClass:Qw,getGlobalClassName:Yw,getGlobalVariableName:function(){var e,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=null===(e=Jw(arguments.length>0&&void 0!==arguments[0]?arguments[0]:""))||void 0===e?void 0:e.name;return n?t?"".concat(t).concat(n):n:""},updateGlobalVariableReferences:function(e,t){if(e&&t&&"string"==typeof e&&"string"==typeof t){if(e!==t){var n=new RegExp("var\\(\\s*--\\s*"+e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"\\s*\\)","g"),i="var(--".concat(t,")"),r=function(e){if(!e||"object"!==rw(e))return e;var t=Xk({},e);return Object.keys(t).forEach(function(e){e in t&&(t[e]&&"object"===rw(t[e])&&!Array.isArray(t[e])?t[e]=r(t[e]):Array.isArray(t[e])?t[e]=t[e].map(function(e){return e&&"object"===rw(e)?r(e):"string"==typeof e?e.replace(n,i):e}):"string"==typeof t[e]&&(t[e]=t[e].replace(n,i)))}),t},o=function(e){if(!e||!Array.isArray(e))return e;var t=Ww(e);return t.forEach(function(e,n){e&&"object"===rw(e)&&e.settings&&"object"===rw(e.settings)&&(t[n].settings=r(e.settings))}),t};try{Xh.header&&Array.isArray(Xh.header)&&(Xh.header=o(Xh.header)),Xh.content&&Array.isArray(Xh.content)&&(Xh.content=o(Xh.content)),Xh.footer&&Array.isArray(Xh.footer)&&(Xh.footer=o(Xh.footer)),Xh.components&&Array.isArray(Xh.components)&&(Xh.components=Xh.components.map(function(e){if(!e||"object"!==rw(e))return e;var t=Xk({},e);return t.elements&&Array.isArray(t.elements)&&(t.elements=o(t.elements)),t})),Xh.globalElements&&Array.isArray(Xh.globalElements)&&(Xh.globalElements=Xh.globalElements.map(function(e){return e&&"object"===rw(e)?r(e):e})),Xh.globalClasses&&Array.isArray(Xh.globalClasses)&&(Xh.globalClasses=Xh.globalClasses.map(function(e){if(!e||"object"!==rw(e))return e;var t=Xk({},e);return t.settings&&"object"===rw(t.settings)&&(t.settings=r(t.settings)),t})),Xh.globalSettings&&"object"===rw(Xh.globalSettings)&&(Xh.globalSettings=r(Xh.globalSettings)),Xh.colorPalette&&Array.isArray(Xh.colorPalette)&&(Xh.colorPalette=Xh.colorPalette.map(function(e){if(!e||"object"!==rw(e))return e;var t=Xk({},e);return t.colors&&Array.isArray(t.colors)&&(t.colors=t.colors.map(function(e){if(!e||"object"!==rw(e))return e;var t=Xk({},e);return t.raw&&"string"==typeof t.raw&&(t.raw=t.raw.replace(n,i)),t})),t})),Xh.themeStyles&&"object"===rw(Xh.themeStyles)&&(Xh.themeStyles=Object.keys(Xh.themeStyles).reduce(function(e,t){if(!(t in Xh.themeStyles))return e;var n=Xh.themeStyles[t];return n&&"object"===rw(n)?(e[t]=Xk({},n),e[t].settings&&"object"===rw(e[t].settings)&&(e[t].settings=r(e[t].settings)),e):(e[t]=n,e)},{})),Xh.pageSettings&&"object"===rw(Xh.pageSettings)&&(Xh.pageSettings=r(Xh.pageSettings)),Xh.globalVariablesInlineCssVars&&"string"==typeof Xh.globalVariablesInlineCssVars&&(Xh.globalVariablesInlineCssVars=Xh.globalVariablesInlineCssVars.replace(n,i)),Xh.templateSettings&&"object"===rw(Xh.templateSettings)&&(Xh.templateSettings=r(Xh.templateSettings)),"function"==typeof lw&&lw()}catch(e){console.error("Error updating global variable references:",e)}}}else ow.debug&&console.warn("Invalid variable names provided for updating references",{oldName:e,newName:t})},getGlobalVariable:Jw,isGlobalVariableTypeColor:function(e){var t;"string"==typeof e&&(e=Jw(e));var n=null===(t=e)||void 0===t?void 0:t.value;return!!n&&(CSS.supports("color",n)&&!n.includes("var("))},getControlKeyActive:Xw,getControlKeyPlain:Zw,exportAsJsonFile:function(e,t){var n=new Blob([JSON.stringify(e,null,2)],{type:"application/json"}),i=window.URL.createObjectURL(n),r=document.createElement("a");r.style.display="none",r.href=i,r.download=t.includes(".json")?t:"".concat(t,".json"),r.click(),window.URL.revokeObjectURL(i)},initIsotope:function(){var e=this;setTimeout(function(){var t=jQuery(e.$el).find(".bricks-layout-wrapper.isotope"),n=t?jQuery(t).find(".bricks-layout-item"):[];if(n.length){var i={itemSelector:".bricks-layout-item",masonry:{columnWidth:".bricks-isotope-sizer"},percentPosition:!0},r=jQuery(n[0]).hasClass("unsplash");r&&(i.transitionDuration=0),e.$nextTick(function(){e.isotopeInstance&&e.isotopeInstance.isotope("reloadItems"),e.isotopeInstance=t.isotope(i),r&&jQuery(n).addClass("show");var o=e.$refs.isotopeFilters,a=e.isotopeInstance;jQuery(o).on("click","li",function(){jQuery(o).find("li").removeClass("active"),jQuery(this).addClass("active"),a.isotope({filter:jQuery(this).attr("data-filter")})})})}},0)},controlPopupToggle:function(){this.showPopup=!this.showPopup},controlRequiredMet:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null==e?void 0:e[arguments.length>2&&void 0!==arguments[2]?arguments[2]:"required"];if(!n)return!0;var i=[],r={"=":function(e,t){return e===t},"!=":function(e,t){return e!=t},">=":function(e,t){return e>=t},"<=":function(e,t){return e<=t}};return(n=Array.isArray(n[0])?n:[n]).forEach(function(n){var o=n[0].startsWith(".");o&&(n[0]=n[0].replace(".",""));var a=n[0].split("."),s=a[0],l=a.length>1&&a[1],c=n[1]?n[1]:"!=",u=n[2]?n[2]:"",d=n[3]?n[3]:"";if("_parentSelector"===s&&u){var p,h=Dy(null===(p=af.value)||void 0===p?void 0:p.parent),f=!1;if(h)for(;h&&!f;){var m;if(h&&JSON.stringify(h).includes(u))f=!0;else h=null!==(m=h)&&void 0!==m&&m.parent?Dy(h.parent):null}i.push(f)}else{d&&"string"==typeof d&&"string"==typeof(t=Xh[d])&&(t=Zk({},d,t)),s=o||!e.css?s:Xw(s);var g,v=t[s];if((null!=e&&e.css||null!=e&&e.parentHasCss)&&!v){var y,b,k;if(s=Zw(s),null!=e&&e.parentHasCss&&null!=e&&null!==(y=e.parent)&&void 0!==y&&y.controlKey)s=e.parent.controlKey,t=Xh.activeClass?null===(b=Xh.activeClass)||void 0===b?void 0:b.settings:null===(k=Xh.activeElement)||void 0===k?void 0:k.settings;var w,_=Gw(t,s);if(o&&_)_=null===(w=_)||void 0===w?void 0:w[n[0]];void 0!==_&&(v=_)}if("_display"===s&&!v&&"element"===Xh.activePanel){var C,x=$y(af.value,"iframe"),S=null==e||null===(C=e.css[0])||void 0===C?void 0:C.selector;if(S&&(x=Fy().querySelector(S)),x){var E,A,D=Py().getComputedStyle(x),T=(null==e||null===(E=e.css[0])||void 0===E?void 0:E.property)||!1,I=function(e){return"inline-flex"===e?"flex":e};if(v=I(null===(A=D)||void 0===A?void 0:A.display),["align-self","flex-grow","flex-shrink","flex-basis"].includes(T)&&"flex"===u&&"flex"!==v){var O,P=x.parentElement;if(P)D=Py().getComputedStyle(P),v=I(null===(O=D)||void 0===O?void 0:O.display)}}}if(l)v=null===(g=t)||void 0===g||null===(g=g[s])||void 0===g?void 0:g[l];if(!v&&!o){var F,$;s=Zw(s);var M=l?null===(F=af.value)||void 0===F||null===(F=F.settings)||void 0===F||null===(F=F[s])||void 0===F?void 0:F[l]:null===($=af.value)||void 0===$||null===($=$.settings)||void 0===$?void 0:$[s];M&&(v=M)}if(v||o||l||(v=t[s]),v||0!==u.length){if(void 0===v&&(v=""),Array.isArray(v))return!v||Array.isArray(u)||u||"!="!==c?Array.isArray(u)?void i.push(u.some(function(e){return v.includes(e)})):void i.push(-1!==v.indexOf(u)):void i.push(!0);if(Array.isArray(u)){var L=!1;return"="===c&&u.forEach(function(e){v==e&&(L=!0)}),"!="===c&&(L=!0,u.forEach(function(e){v==e&&(L=!1)})),void i.push(L)}i.push(r[c](v,u))}else i.push("="===c)}}),i.every(function(e){return!0===e})},openMediaLibrary:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"image",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=Xk({frame:"select",upload:{},title:this.i18n.insertMedia,button:{text:this.i18n.insert},multiple:n},i);"any"!==t&&(o.library={type:t});var a=wp.media.frames.image=wp.media(o);"image/svg+xml"!==t||this.$_state.userCan.uploadSvg||a.on("router:render:browse",function(e){e.unset("upload")}),a.on("insert select",function(){if(!0===n){var i,o=a.state().get("selection").toJSON(),s=[];if(o){var l,c=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=nw(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(o);try{for(c.s();!(l=c.n()).done;){var u,d=l.value;i=null!=d&&null!==(u=d.sizes)&&void 0!==u&&u[e.size]?e.size:"full";var p=d.url,h=d.url;if(d.hasOwnProperty("sizes")){var f,m=null===(f=d.filename)||void 0===f?void 0:f.toLowerCase().endsWith(".svg");p=m?d.url:d.sizes.full.url,h=m?d.url:d.sizes[i].url}s.push({id:d.id,full:p,url:h})}}catch(e){c.e(e)}finally{c.f()}var g={images:s,size:i};"function"==typeof r?r(g):e.$emit("input",g)}}else{var v=a.state().get("selection").first().toJSON();switch(t){case"audio":var y={id:v.id,filename:v.filename,mime:v.mime,url:v.url};e.$emit("input",y);break;case"image":var b=v.hasOwnProperty("sizes")?v.sizes.hasOwnProperty(e.size)?e.size:"full":"",k={id:v.id,filename:v.filename,size:b,full:v.hasOwnProperty("sizes")?v.sizes.full.url:v.url,url:v.hasOwnProperty("sizes")?v.sizes[b].url:v.url};e.$emit("input",k);break;case"image/svg+xml":var w={id:v.id,filename:v.filename,url:v.url};e.$emit("input",w);break;case"video":var _={id:v.id,filename:v.filename,mime:v.mime,url:v.url};e.$emit("input",_);break;case"font":var C={id:v.id,filename:v.filename,url:v.url};"function"==typeof r?r(C):e.$emit("input",C);break;case"any":var x={id:v.id,filename:v.filename,url:v.url};e.$emit("input",x);break;default:console.warn("No handler for mime type '".concat(t,"' defined."))}}}),a.on("open",function(){var t;null!==a.content.get()&&a.content.get().hasOwnProperty("collection")&&a.content.get().collection._requery(!0);var n=a.state().get("selection"),i=[];null!==(t=e.value)&&void 0!==t&&t.id&&(i=[e.value.id]),Array.isArray(e.images)&&e.images.length&&e.images.forEach(function(e){i.push(e.id)}),i.forEach(function(e){var t=wp.media.attachment(e);t.fetch(),n.add(t)})}),a.open()},cacheAjaxResults:function(e){var t=!!e.hasOwnProperty("key")&&e.key,n=!!e.hasOwnProperty("value")&&e.value;t&&n&&(Xh.ajaxCache.hasOwnProperty(t)||(Xh.ajaxCache[t]={}),Xh.ajaxCache[t]=Xk(Xk({},Xh.ajaxCache[t]),n))},isEditable:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.activeElement;if(null!=e.closest(".structure-item"))return!1;if("bricks-panel-search"===e.id)return!1;if(e.isContentEditable)return!0;var t=e.tagName.toLowerCase();return"textarea"===t||"input"===t},isLodash:function(){var e=!1;if("undefined"!=typeof _&&"function"==typeof _.forEach){e=!0,["get","set","at","cloneDeep"].forEach(function(t){e="function"==typeof _[t]&&e})}e&&_.noConflict()},closePopup:function(){["locked-user","conflicts"].includes(Xh.popup)||(Xh.popupCloseDialog?Xh.popupCloseDialog.show=!0:Xh.popup=!1)},writeToClipboard:function(e,t,n){if(navigator.clipboard)if(window.isSecureContext){var i={content:t,source:e,sourceUrl:window.bricksData.siteUrl,version:window.bricksData.version};if("bricksCopiedElements"===e||"bricksCopiedElement"===e){var r=[],o=[],a=[],s=Array.isArray(t)?t:[t],l=function(e){if(e){var t=Array.isArray(e)?e:[e];r=r.concat(t)}};if(s.forEach(function(e){var t;if(null!=e&&e.cid){var n=Xh.components.find(function(t){return t.id===e.cid});n&&(a.push(n),null!=n&&n.elements&&n.elements.forEach(function(e){var t;if(null!=e&&e.cid){var n=Xh.components.find(function(t){return t.id===e.cid});n&&a.push(n)}l(null==e||null===(t=e.settings)||void 0===t?void 0:t._cssGlobalClasses)}))}l(null==e||null===(t=e.settings)||void 0===t?void 0:t._cssGlobalClasses),null!=e&&e.global&&o.push(e.global)}),r=ew(new Set(r)),o=ew(new Set(o)),(a=ew(new Set(a))).length&&(i.components=a),a.length&&(a.forEach(function(e){Array.isArray(null==e?void 0:e.properties)&&e.properties.forEach(function(e){"class"===e.type&&(Array.isArray(e.options)&&e.options.forEach(function(e){l(null==e?void 0:e.value)}),l(e.default))})}),r=ew(new Set(r))),r.length){var c=[];r.forEach(function(e){var t=Xh.globalClasses.find(function(t){return t.id===e});t&&c.push(t)}),c&&(c=o_(c),i.globalClasses=c)}if(o.length){var u=[];o.forEach(function(e){var t=Xh.globalElements.find(function(t){return t.global===e});t&&u.push(t)}),u&&(i.globalElements=u)}}navigator.clipboard.writeText(JSON.stringify(i)).then(function(){Xh.clipboardData=i,n&&Uw(n)})}else alert("Error: Clipboard API rejected: No secure context (HTTPS)");else alert("Error: Your browser does not support the Clipboard API.")},readFromClipboard:function(e){return navigator.clipboard&&window.isSecureContext?navigator.clipboard.readText().then(function(t){var n=JSON.parse(t);return(!e||e&&e===(null==n?void 0:n.source))&&n||{}}):new Promise(function(e){e({})})},getDynamicDataContent:e_,getDynamicDataTagValue:t_,getParsedDynamicCssId:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.loopId,i=void 0===n?null:n,r=t.fetchMissing,o=void 0!==r&&r,a=t.rerender,s=void 0!==a&&a,l=t.syncMessage,c=void 0!==l&&l;if(!e||"string"!=typeof e||!e.includes("{")||!e.includes("}"))return e;var u=i?"loopingDynamicData":"dynamicData",d=ew(e.matchAll(/\{([^}]+)\}/g)).map(function(e){return e[1]});return d.every(function(e){var t=i?"".concat(e,"||").concat(i):e;return Object.hasOwn(Xh[u],t)})||o&&!i&&d.forEach(function(e){Object.hasOwn(Xh.dynamicData,e)||(Xh.dynamicData[e]="",e_({content:"{".concat(e,"}"),checkState:!0,success:function(t){Array.isArray(Xh.dynamicData)&&(Xh.dynamicData={});var n=t.data.content;n.startsWith("{")||(Xh.dynamicData[e]=n),c&&n_({key:"dynamicData",value:Xh.dynamicData,ignoreOrigin:!0}),s&&lw(0)}}))}),t_(e,i)},postMessage:n_,getRevisions:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];kw({data:{action:"bricks_get_revisions"},success:function(t){Xh.revisions=t.data,Fn(function(){!0===e&&void 0===Xh.notification&&Xh.revisions&&Xh.revisions.length&&("autosave"===Xh.revisions[0].type?Xh.notification="autosave":Xh.notification=!1),!Xh.currentRevisionId&&Xh.revisions&&Xh.revisions.length&&("autosave"===Xh.revisions[0].type&&Xh.revisions[1]&&"autosave"!==Xh.revisions[1].type?Xh.currentRevisionId=Xh.revisions[1].id:Xh.currentRevisionId=Xh.revisions[0].id)})}})},revisionApply:function(){Xh.revisionId&&Xh.revisionData&&(Xh.currentRevisionId=Xh.revisionId,Xh[sf.value]=Xh.revisionData,Uw("".concat(ow.i18n.revisionApplied," (ID: ").concat(Xh.revisionId,")")),Fn(function(){Xh.revisionData=null,Xh.revisionId=null}))},revisionPreview:function(e){kw({data:{action:"bricks_get_revision_data",revisionId:e,area:sf.value},success:function(t){Array.isArray(t.data)&&(Xh.revisionData=t.data,Xh.revisionId=e)}})},populateBuilder:function(){var e=ow.loadData;e.hasOwnProperty("blocks")&&(console.info(e.blocks),delete e.blocks),Object.keys(e).forEach(function(t){Xh.hasOwnProperty(t)&&(Xh[t]=e[t])}),ow.debug&&console.warn("loadData",e);var t=window.navigator.userAgentData?window.navigator.userAgentData.platform:window.navigator.platform;Xh.isMac=t.toLowerCase().includes("mac")},generateTemplateScreenshot:Dw,createScreenshotIframe:Tw,getScreenshotArea:Iw,initdynamicDataActiveGroups:function(){var e=localStorage.getItem("brx_builder_dynamic_data_active_groups");if(e)try{Xh.dynamicDataActiveGroups=JSON.parse(e)}catch(e){}},initDynamicDataPinnedTags:function(){var e=localStorage.getItem("brx_builder_dynamic_data_pinned_tags")?JSON.parse(localStorage.getItem("brx_builder_dynamic_data_pinned_tags")):[];e.length&&(localStorage.setItem("brx_builder_dynamic_data_pinned_tags",JSON.stringify(e)),Xh.dynamicDataTagsPinned=e)},initPinnedControlGroups:function(){var e=localStorage.getItem("brx_builder_pinned_control_groups")?JSON.parse(localStorage.getItem("brx_builder_pinned_control_groups")):[];e.length&&(Xh.pinnedControlGroups=e);var t=localStorage.getItem("brx_builder_pinned_section_height");t&&("string"==typeof t&&"auto"===t.toLowerCase()?Xh.pinnedSectionHeight=0:(t=parseInt(t))>=150&&(Xh.pinnedSectionHeight=t))},loadNeededCSSFilesForDynamicData:function(){window.bricksData.dynamicTags.forEach(function(e){var t,n,i,r;e.fieldIconCss&&!document.getElementById(e.fieldIconCss.handle)&&(t=e.fieldIconCss.handle,n=e.fieldIconCss.css,i=document.getElementsByTagName("head")[0],(r=document.createElement("link")).id=t,r.rel="stylesheet",r.type="text/css",r.href=n,r.media="all",i.appendChild(r))})},moveGlobalClassesToTrash:function(e){var t=Array.isArray(e)?e:[e],n=Ww(Xh.globalClasses),i=[],r=Date.now();return t.forEach(function(e){var t=n.findIndex(function(t){return t.id===e});if(-1!==t){var o,a=n.splice(t,1)[0];a.deletedAt=r,a.user_id=null==ow||null===(o=ow.loadData)||void 0===o?void 0:o.currentUserId,a.originalIndex=Xh.globalClassIndexById[e],Xh.globalClassesTrash.unshift(a),i.push(a),delete Xh.globalClassIndexById[e]}}),Xh.globalClasses=n,Xh.globalClasses.forEach(function(e,t){Xh.globalClassIndexById[e.id]=t}),i},restoreGlobalClasses:r_,deleteClassesPermanently:function(e){return new Promise(function(t,n){var i=Array.isArray(e)?e:[e];kw({data:{action:"bricks_delete_global_classes_permanently",classIds:i},success:function(e){if(e.success)Xh.globalClassesTrash=Xh.globalClassesTrash.filter(function(e){return!i.includes(e.id)}),t(e.data.deletedClasses);else{var r=Xh.globalClassesTrash.filter(function(e){return i.includes(e.id)});r.length>0?(Xh.globalClassesTrash=Xh.globalClassesTrash.filter(function(e){return!i.includes(e.id)}),t(r)):n(new Error(e.data.message||"Failed to delete classes permanently"))}},error:function(e){console.error("Error deleting classes permanently:",e),n(e)}})})},createGlobalClasses:function(){var e,t=this;if(a_("create_global_classes"))if(this.selectedClassNode&&(this.selectorInput=this.selectedClassNode.innerText.replace(/^\.+/,""),this.selectedClassNode.classList.contains("skip")))this.setActiveClass("");else if(this.selectorInput){this.selectorInput=this.selectorInput.trim(),this.selectorInput=this.selectorInput.replaceAll("#",""),this.selectorInput=this.selectorInput.replace(/^\.+/,"");var n=(null===(e=this.$_state.popupFilters.categories)||void 0===e?void 0:e[0])||null,i=this.selectorInput.split(/[\s,]+/),r=[],o=[],a=[];if(this.selectorInput="",i.length){var s,l=[];if(i.forEach(function(e){if(e=e?e.replace(/^\.+/,""):"")if(t.$_state.globalClassesTrash.length&&t.$_state.globalClassesTrash.find(function(t){return t.name===e}))l.push("".concat(t.i18n.errorCreatingClass,": ").concat(e));else{var i=t.$_state.globalClasses.find(function(t){return t.name===e});if(i)a.push(i),r.push(i);else{var s={id:t.$_generateId(),name:e,settings:{}};n&&(s.category=n),o.push(s),r.push(s)}}}),this.$_stopPostMessages(),o.length)(s=this.$_state.globalClasses).push.apply(s,o),this.$_postMessage({key:"globalClassesNew",value:JSON.stringify(o)});"function"==typeof this.addClassToElement&&this.$nextTick(function(){r.length?(r.forEach(function(e){t.addClassToElement(e)}),t.activeClass=r[0]):l.length&&t.$_showError(l[0])}),l.length||this.$_showMessage("".concat(this.i18n.cssClass,": ").concat(o.length?this.i18n.created:this.i18n.added))}}},addCategoryMetadataToClasses:o_,importImages:function(){if(Xh.imagesToImport.length>0){var e={action:"bricks_import_images",images:Xh.imagesToImport};Xh.imagesToImport=[],kw({data:e,success:function(e){if(e.success){var t=e.data,n=lf.value,i=!1;t.forEach(function(e){var t=e.elementId,r=e.settingKey,o=e.settings,a=n.find(function(e){return e.id===t});a&&(a.settings[r]!==o&&(i=!0),a.settings[r]=o)}),i&&aw()}},error:function(e){console.error("Error importing image:",e)},complete:function(){Xh.importImages=!1}})}},moveFontToTrash:function(e){var t=e.id,n=e.onSuccess,i=e.onError;if(t){var r="custom_font_".concat(t);kw({data:{action:"bricks_move_font_to_trash",id:t},success:function(e){if(e.success){var t;if(null!==(t=Xh.fonts)&&void 0!==t&&null!==(t=t.custom)&&void 0!==t&&t[r]){var o=Ww(Xh.fonts.custom);delete o[r],Xh.fonts.custom=o}"function"==typeof n&&n(e)}else if("function"==typeof i){var a;if(ow.debug)console.error("Error moving font to trash:",null===(a=e.data)||void 0===a?void 0:a.message);i(ow.i18n.errorMovingFontToTrash)}},error:function(e){ow.debug&&console.error("Error moving font to trash:",e),"function"==typeof i&&i(ow.i18n.errorMovingFontToTrash)}})}else console.error("moveFontToTrash: font id is required")},userHasPermission:a_,userCanAddAnyElements:s_,userCanAddAllElements:function(){return!!Xh.permissions&&Object.keys(ow.elements).every(function(e){return Xh.permissions.includes("add_element_".concat(e))})},checkForOrphanedElements:l_,findOrphanedElements:c_,cleanupOrphanedElements:function(e){null!=e&&e.orphanedElements&&(Object.entries(e.orphanedElements).forEach(function(e){var t=tw(e,2),n=t[0],i=t[1];if(Array.isArray(i)&&i.length){var r=Array.isArray(Xh[n])?Xh[n]:[];if(r.length){var o=new Map;r.forEach(function(e){return o.set(e.id,e)});var a=new Set,s=function(e){if(!a.has(e)){a.add(e);var t=o.get(e);t&&(Array.isArray(t.children)&&t.children.forEach(function(e){return s(e)}),t.slotChildren&&"object"===rw(t.slotChildren)&&Object.values(t.slotChildren).forEach(function(e){Array.isArray(e)&&e.forEach(function(e){return s(e)})}))}};i.forEach(function(e){return s(e)}),Xh[n]=r.filter(function(e){return!a.has(e.id)}),Xh[n].forEach(function(e){Array.isArray(e.children)&&e.children.length&&(e.children=e.children.filter(function(e){return!a.has(e)})),e.slotChildren&&"object"===rw(e.slotChildren)&&Object.keys(e.slotChildren).forEach(function(t){Array.isArray(e.slotChildren[t])&&(e.slotChildren[t]=e.slotChildren[t].filter(function(e){return!a.has(e)}))})})}}}),Xh.notifications.push({action:"orphaned-cleaned",desc:ow.i18n.orphanedElementsRemoved,timestamp:Math.floor(Date.now()/1e3)}),Xh.unsavedChanges.includes(sf.value)||Xh.unsavedChanges.push(sf.value),Xh.orphanedElementIds=[],Cw())},createVariableObject:function(e,t,n){var i,r,o=function(e){if(null==e)return null;var t=String(e).trim().toLowerCase();return t?/^-?[\d.]+px$/.test(t)?parseFloat(t):/^-?[\d.]+rem$/.test(t)?16*parseFloat(t):/^-?[\d.]+%$/.test(t)?parseFloat(t)/100*16:null:null};if(e&&"number"==typeof t&&("string"==typeof e&&(e=Xh.globalVariablesCategories.find(function(t){return t.id===e})),e)){var a,s,l=e.scale,c=l.prefix,u=l.minFontSize,d=l.minScaleRatio,p=l.minScaleRatioSelect,h=l.maxFontSize,f=l.maxScaleRatio,m=l.maxScaleRatioSelect,g=l.isManual,v=l.manualValues,y=l.scaleNames,b=(null===(i=Xh.styleManager)||void 0===i?void 0:i.minScreenWidth)||360,k=(null===(r=Xh.styleManager)||void 0===r?void 0:r.maxScreenWidth)||1440,w=function(){var e,t,n=null===(e=Xh.styleManager)||void 0===e?void 0:e.htmlFontSize;if(!!String(n||"").trim())return o(n)||10;var i=jw()||"desktop",r="desktop"===i?"typographyHtml":"typographyHtml:".concat(i),a=null===(t=Xh.themeStyleSettings)||void 0===t||null===(t=t.typography)||void 0===t?void 0:t[r];if(!!!String(a||"").trim())return 10;var s=o(a);return s||10}();if(b=parseFloat(b),k=parseFloat(k),d="custom"===p?parseFloat(d):p,f="custom"===m?parseFloat(f):m,g&&v&&y){var _,C,x=e.scale.baseline||"",S=function(e){return String(e).toLowerCase()},E=y.findIndex(function(e){return S(e)===S(x)});-1===E&&(E=Math.floor(y.length/2));var A=E+t;if(null!==(_=v[A])&&void 0!==_&&_.min&&null!==(C=v[A])&&void 0!==C&&C.max){var D=v[A].min.match(/^([\d.]+)/),T=v[A].max.match(/^([\d.]+)/);if(D&&T){if(a=parseFloat(D[1]),s=parseFloat(T[1]),"min"==n)return v[A].min;if("max"==n)return v[A].max}}}if(!a||!s){if(a=parseFloat(u),s=parseFloat(h),t<0)for(var I=0;I<Math.abs(t);I++)a/=d,s/=f;else if(t>0)for(var O=0;O<t;O++)a*=d,s*=f;if("min"==n)return parseFloat(a.toFixed(2))+"px";if("max"==n)return parseFloat(s.toFixed(2))+"px"}var P="px";if(w&&!isNaN(parseFloat(w))&&isFinite(w)){var F=parseFloat(w);a/=F,s/=F,b/=F,k/=F,P="rem"}a=parseFloat(a.toFixed(2)),s=parseFloat(s.toFixed(2)),b=parseFloat(b.toFixed(2)),k=parseFloat(k.toFixed(2));var $="calc(".concat((s-a)/(k-b)," * (100vw - ").concat(b).concat(P,") + ").concat(a).concat(P,")"),M="clamp(".concat(a).concat(P,", ").concat($,", ").concat(s).concat(P,")"),L=function(e,t){if(!e||"number"!=typeof t)return null;if("string"==typeof e&&(e=Xh.globalVariablesCategories.find(function(t){return t.id===e})),!e)return null;var n=e.scale,i=n.scaleNames,r=n.scaleType,o=n.baseline;if("tshirt"===r)return function(e){if(0===e)return"s";if(1===e)return"m";if(2===e)return"l";if(e<0){var t=Math.abs(e);return 1===t?"xs":"".concat(t,"xs")}if(e>2){var n=e-2;return 1===n?"xl":"".concat(n,"xl")}return null}(function(e){if("s"===(e=String(e)))return 0;if("m"===e)return 1;if("l"===e)return 2;var t=e.match(/^(\d*)xs$/);if(t)return-(""===t[1]?1:parseInt(t[1]));var n=e.match(/^(\d*)xl$/);return n?2+(""===n[1]?1:parseInt(n[1])):null}(o)+t);if("numeric"===r)return Number(o)+t;var a=i.indexOf(o);return-1===a?"-custom":i[a+t]}(e,t);return{id:Lw(),name:"".concat(c).concat(L),value:M,category:e.id,scale:{scale:t,scaleName:L}}}},extractNameFromCssVariable:function(e){if(e.startsWith("--"))return e;var t=(e=e.trim().toLowerCase().replaceAll(" ","-")).match(/var\(\s*--([\w-]+)\s*\)/);return(e=t?t[1]:e).startsWith("--")||(e="--".concat(e)),e}};function p_(e){if("object"!=typeof e)return e;if(null===e)return null;if(Array.isArray(e))return e.map(p_);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return function(e){var t;const n=/^\/(.*)\/([gimyu]*)$/.exec(e.toString());if(!n)throw new Error("Invalid RegExp");return new RegExp(null!==(t=n[1])&&void 0!==t?t:"",n[2])}(e);const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=p_(e[n]));return t}class h_{setResult(e){return this.result=e,this.hasResult=!0,this}exit(){return this.exiting=!0,this}push(e,t){var n;return e.parent=this,void 0!==t&&(e.childName=t),e.root=this.root||this,e.options=e.options||this.options,this.children?(!function(e,t){if(0===e.length)throw new Error(t||"Expected a non-empty array")}(this.children),(n=this.children,n[n.length-1]).next=e,this.children.push(e)):(this.children=[e],this.nextAfterChildren=this.next||null,this.next=e),e.next=this,this}}var f_=class extends h_{constructor(e,t){super(),this.left=e,this.right=t,this.pipe="diff"}prepareDeltaResult(e){var t,n,i,r;if("object"==typeof e&&((null===(t=this.options)||void 0===t?void 0:t.omitRemovedValues)&&Array.isArray(e)&&e.length>1&&(2===e.length||0===e[2]||3===e[2])&&(e[0]=0),null===(n=this.options)||void 0===n?void 0:n.cloneDiffValues)){const t="function"==typeof(null===(i=this.options)||void 0===i?void 0:i.cloneDiffValues)?null===(r=this.options)||void 0===r?void 0:r.cloneDiffValues:p_;"object"==typeof e[0]&&(e[0]=t(e[0])),"object"==typeof e[1]&&(e[1]=t(e[1]))}return e}setResult(e){return this.prepareDeltaResult(e),super.setResult(e)}};var m_=class extends h_{constructor(e,t){super(),this.left=e,this.delta=t,this.pipe="patch"}};var g_=class extends h_{constructor(e){super(),this.delta=e,this.pipe="reverse"}};var v_=class{constructor(e){this.name=e,this.filters=[]}process(e){if(!this.processor)throw new Error("add this pipe to a processor before using it");const t=this.debug,n=this.filters.length,i=e;for(let e=0;e<n;e++){const n=this.filters[e];if(n&&(t&&this.log(`filter: ${n.filterName}`),n(i),"object"==typeof i&&i.exiting)){i.exiting=!1;break}}!i.next&&this.resultCheck&&this.resultCheck(i)}log(e){console.log(`[jsondiffpatch] ${this.name} pipe, ${e}`)}append(...e){return this.filters.push(...e),this}prepend(...e){return this.filters.unshift(...e),this}indexOf(e){if(!e)throw new Error("a filter name is required");for(let t=0;t<this.filters.length;t++){const n=this.filters[t];if((null==n?void 0:n.filterName)===e)return t}throw new Error(`filter not found: ${e}`)}list(){return this.filters.map(e=>e.filterName)}after(e,...t){const n=this.indexOf(e);return this.filters.splice(n+1,0,...t),this}before(e,...t){const n=this.indexOf(e);return this.filters.splice(n,0,...t),this}replace(e,...t){const n=this.indexOf(e);return this.filters.splice(n,1,...t),this}remove(e){const t=this.indexOf(e);return this.filters.splice(t,1),this}clear(){return this.filters.length=0,this}shouldHaveResult(e){return!1===e?(this.resultCheck=null,this):(this.resultCheck||(this.resultCheck=e=>{if(!e.hasResult){console.log(e);const t=new Error(`${this.name} failed`);throw t.noResult=!0,t}}),this)}};var y_=class{constructor(e){this.selfOptions=e||{},this.pipes={}}options(e){return e&&(this.selfOptions=e),this.selfOptions}pipe(e,t){let n=t;if("string"==typeof e){if(void 0===n)return this.pipes[e];this.pipes[e]=n}if(e&&e.name){if(n=e,n.processor===this)return n;this.pipes[n.name]=n}if(!n)throw new Error(`pipe is not defined: ${e}`);return n.processor=this,n}process(e,t){let n=e;n.options=this.options();let i,r=t||e.pipe||"default";for(;r;)void 0!==n.nextAfterChildren&&(n.next=n.nextAfterChildren,n.nextAfterChildren=null),"string"==typeof r&&(r=this.pipe(r)),r.process(n),i=r,r=null,n&&n.next&&(n=n.next,r=n.pipe||i);return n.hasResult?n.result:void 0}};const b_=(e,t,n,i)=>e[n]===t[i];var k_=(e,t,n,i)=>{const r=i||{},o=((e,t,n,i)=>{var r,o,a;const s=e.length,l=t.length;let c,u;const d=new Array(s+1);for(c=0;c<s+1;c++){const e=new Array(l+1);for(u=0;u<l+1;u++)e[u]=0;d[c]=e}for(d.match=n,c=1;c<s+1;c++){const s=d[c];if(void 0===s)throw new Error("LCS matrix row is undefined");const p=d[c-1];if(void 0===p)throw new Error("LCS matrix row is undefined");for(u=1;u<l+1;u++)n(e,t,c-1,u-1,i)?s[u]=(null!==(r=p[u-1])&&void 0!==r?r:0)+1:s[u]=Math.max(null!==(o=p[u])&&void 0!==o?o:0,null!==(a=s[u-1])&&void 0!==a?a:0)}return d})(e,t,n||b_,r);return((e,t,n,i)=>{let r=t.length,o=n.length;const a={sequence:[],indices1:[],indices2:[]};for(;0!==r&&0!==o;){if(void 0===e.match)throw new Error("LCS matrix match function is undefined");if(e.match(t,n,r-1,o-1,i))a.sequence.unshift(t[r-1]),a.indices1.unshift(r-1),a.indices2.unshift(o-1),--r,--o;else{const t=e[r];if(void 0===t)throw new Error("LCS matrix row is undefined");const n=t[o-1];if(void 0===n)throw new Error("LCS matrix value is undefined");const i=e[r-1];if(void 0===i)throw new Error("LCS matrix row is undefined");const a=i[o];if(void 0===a)throw new Error("LCS matrix value is undefined");n>a?--o:--r}}return a})(o,e,t,r)};function w_(e,t,n,i,r){const o=e[n],a=t[i];if(o===a)return!0;if("object"!=typeof o||"object"!=typeof a)return!1;const s=r.objectHash;if(!s)return r.matchByPosition&&n===i;r.hashCache1=r.hashCache1||[];let l=r.hashCache1[n];if(void 0===l&&(r.hashCache1[n]=l=s(o,n)),void 0===l)return!1;r.hashCache2=r.hashCache2||[];let c=r.hashCache2[i];return void 0===c&&(r.hashCache2[i]=c=s(a,i)),void 0!==c&&l===c}const __=function(e){var t,n,i,r,o;if(!e.leftIsArray)return;const a={objectHash:null===(t=e.options)||void 0===t?void 0:t.objectHash,matchByPosition:null===(n=e.options)||void 0===n?void 0:n.matchByPosition};let s,l,c,u=0,d=0;const p=e.left,h=e.right,f=p.length,m=h.length;let g,v;for(f>0&&m>0&&!a.objectHash&&"boolean"!=typeof a.matchByPosition&&(a.matchByPosition=!function(e,t,n,i){for(let r=0;r<n;r++){const n=e[r];for(let e=0;e<i;e++){const i=t[e];if(r!==e&&n===i)return!0}}return!1}(p,h,f,m));u<f&&u<m&&w_(p,h,u,u,a);)s=u,g=new f_(p[s],h[s]),e.push(g,s),u++;for(;d+u<f&&d+u<m&&w_(p,h,f-1-d,m-1-d,a);)l=f-1-d,c=m-1-d,g=new f_(p[l],h[c]),e.push(g,c),d++;if(u+d===f){if(f===m)return void e.setResult(void 0).exit();for(v=v||{_t:"a"},s=u;s<m-d;s++)v[s]=[h[s]],e.prepareDeltaResult(v[s]);return void e.setResult(v).exit()}if(u+d===m){for(v=v||{_t:"a"},s=u;s<f-d;s++){const t=`_${s}`;v[t]=[p[s],0,0],e.prepareDeltaResult(v[t])}return void e.setResult(v).exit()}a.hashCache1=void 0,a.hashCache2=void 0;const y=p.slice(u,f-d),b=h.slice(u,m-d),k=k_(y,b,w_,a),w=[];for(v=v||{_t:"a"},s=u;s<f-d;s++)if(k.indices1.indexOf(s-u)<0){const t=`_${s}`;v[t]=[p[s],0,0],e.prepareDeltaResult(v[t]),w.push(s)}let _=!0;(null===(i=e.options)||void 0===i?void 0:i.arrays)&&!1===e.options.arrays.detectMove&&(_=!1);let C=!1;(null===(o=null===(r=e.options)||void 0===r?void 0:r.arrays)||void 0===o?void 0:o.includeValueOnMove)&&(C=!0);const x=w.length;for(s=u;s<m-d;s++){const t=k.indices2.indexOf(s-u);if(t<0){let t=!1;if(_&&x>0)for(let n=0;n<x;n++){l=w[n];const i=void 0===l?void 0:v[`_${l}`];if(void 0!==l&&i&&w_(y,b,l-u,s-u,a)){i.splice(1,2,s,3),i.splice(1,2,s,3),C||(i[0]=""),c=s,g=new f_(p[l],h[c]),e.push(g,c),w.splice(n,1),t=!0;break}}t||(v[s]=[h[s]],e.prepareDeltaResult(v[s]))}else{if(void 0===k.indices1[t])throw new Error(`Invalid indexOnArray2: ${t}, seq.indices1: ${k.indices1}`);if(l=k.indices1[t]+u,void 0===k.indices2[t])throw new Error(`Invalid indexOnArray2: ${t}, seq.indices2: ${k.indices2}`);c=k.indices2[t]+u,g=new f_(p[l],h[c]),e.push(g,c)}}e.setResult(v).exit()};__.filterName="arrays";const C_={numerically(e,t){return e-t},numericallyBy(e){return(t,n)=>t[e]-n[e]}},x_=function(e){var t;if(!e.nested)return;const n=e.delta;if("a"!==n._t)return;let i,r;const o=n,a=e.left;let s=[],l=[];const c=[];for(i in o)if("_t"!==i)if("_"===i[0]){const e=i;if(void 0===o[e]||0!==o[e][2]&&3!==o[e][2])throw new Error(`only removal or move can be applied at original array indices, invalid diff type: ${null===(t=o[e])||void 0===t?void 0:t[2]}`);s.push(Number.parseInt(i.slice(1),10))}else{const e=i;1===o[e].length?l.push({index:Number.parseInt(e,10),value:o[e][0]}):c.push({index:Number.parseInt(e,10),delta:o[e]})}for(s=s.sort(C_.numerically),i=s.length-1;i>=0;i--){if(r=s[i],void 0===r)continue;const e=o[`_${r}`],t=a.splice(r,1)[0];3===(null==e?void 0:e[2])&&l.push({index:e[1],value:t})}l=l.sort(C_.numericallyBy("index"));const u=l.length;for(i=0;i<u;i++){const e=l[i];void 0!==e&&a.splice(e.index,0,e.value)}const d=c.length;if(d>0)for(i=0;i<d;i++){const t=c[i];if(void 0===t)continue;const n=new m_(a[t.index],t.delta);e.push(n,t.index)}e.children?e.exit():e.setResult(a).exit()};x_.filterName="arrays";const S_=function(e){if(!e||!e.children)return;if("a"!==e.delta._t)return;const t=e.left,n=e.children.length;for(let i=0;i<n;i++){const n=e.children[i];if(void 0===n)continue;t[n.childName]=n.result}e.setResult(t).exit()};S_.filterName="arraysCollectChildren";const E_=function(e){if(!e.nested){const t=e.delta;if(3===t[2]){const n=t;e.newName=`_${n[1]}`,e.setResult([n[0],Number.parseInt(e.childName.substring(1),10),3]).exit()}return}const t=e.delta;if("a"!==t._t)return;const n=t;for(const t in n){if("_t"===t)continue;const i=new g_(n[t]);e.push(i,t)}e.exit()};E_.filterName="arrays";const A_=(e,t,n)=>{if("string"==typeof t&&"_"===t[0])return Number.parseInt(t.substring(1),10);if(Array.isArray(n)&&0===n[2])return`_${t}`;let i=+t;for(const n in e){const r=e[n];if(Array.isArray(r))if(3===r[2]){const e=Number.parseInt(n.substring(1),10),o=r[1];if(o===+t)return e;e<=i&&o>i?i++:e>=i&&o<i&&i--}else if(0===r[2]){Number.parseInt(n.substring(1),10)<=i&&i++}else 1===r.length&&Number.parseInt(n,10)<=i&&i--}return i},D_=e=>{if(!e||!e.children)return;const t=e.delta;if("a"!==t._t)return;const n=t,i=e.children.length,r={_t:"a"};for(let t=0;t<i;t++){const i=e.children[t];if(void 0===i)continue;let o=i.newName;if(void 0===o){if(void 0===i.childName)throw new Error("child.childName is undefined");o=A_(n,i.childName,i.result)}r[o]!==i.result&&(r[o]=i.result)}e.setResult(r).exit()};D_.filterName="arraysCollectChildren";const T_=function(e){e.left instanceof Date?(e.right instanceof Date?e.left.getTime()!==e.right.getTime()?e.setResult([e.left,e.right]):e.setResult(void 0):e.setResult([e.left,e.right]),e.exit()):e.right instanceof Date&&e.setResult([e.left,e.right]).exit()};T_.filterName="dates";const I_=new Set(["__proto__"]),O_=e=>{if(!e||!e.children)return;const t=e.children.length;let n=e.result;for(let i=0;i<t;i++){const t=e.children[i];if(void 0!==t&&void 0!==t.result){if(n=n||{},void 0===t.childName)throw new Error("diff child.childName is undefined");n[t.childName]=t.result}}n&&e.leftIsArray&&(n._t="a"),e.setResult(n).exit()};O_.filterName="collectChildren";const P_=e=>{var t;if(e.leftIsArray||"object"!==e.leftType)return;const n=e.left,i=e.right,r=null===(t=e.options)||void 0===t?void 0:t.propertyFilter;for(const t in n){if(!Object.prototype.hasOwnProperty.call(n,t))continue;if(r&&!r(t,e))continue;const o=new f_(n[t],i[t]);e.push(o,t)}for(const t in i)if(Object.prototype.hasOwnProperty.call(i,t)&&(!r||r(t,e))&&void 0===n[t]){const n=new f_(void 0,i[t]);e.push(n,t)}e.children&&0!==e.children.length?e.exit():e.setResult(void 0).exit()};P_.filterName="objects";const F_=function(e){if(!e.nested)return;const t=e.delta;if(t._t)return;const n=t;let i=!1;for(const t in n){if(I_.has(t))continue;if(!Object.prototype.hasOwnProperty.call(n,t))continue;const r=e.left,o=null!==r&&"object"==typeof r&&Object.prototype.hasOwnProperty.call(r,t)?r[t]:void 0,a=new m_(o,n[t]);e.push(a,t),i=!0}i?e.exit():e.setResult(e.left).exit()};F_.filterName="objects";const $_=function(e){if(!e||!e.children)return;if(e.delta._t)return;if(null===e.left||"object"!=typeof e.left)return void e.setResult(e.left).exit();const t=e.left,n=e.children.length;for(let i=0;i<n;i++){const n=e.children[i];if(void 0===n)continue;const r=n.childName;I_.has(r)||(Object.prototype.hasOwnProperty.call(e.left,r)&&void 0===n.result?delete t[r]:t[r]!==n.result&&(t[r]=n.result))}e.setResult(t).exit()};$_.filterName="collectChildren";const M_=function(e){if(!e.nested)return;if(e.delta._t)return;const t=e.delta;let n=!1;for(const i in t){if(I_.has(i))continue;if(!Object.prototype.hasOwnProperty.call(t,i))continue;const r=new g_(t[i]);e.push(r,i),n=!0}n?e.exit():e.setResult({}).exit()};M_.filterName="objects";const L_=e=>{if(!e||!e.children)return;if(e.delta._t)return;const t=e.children.length,n={};for(let i=0;i<t;i++){const t=e.children[i];if(void 0===t)continue;const r=t.childName;I_.has(r)||n[r]!==t.result&&(n[r]=t.result)}e.setResult(n).exit()};L_.filterName="collectChildren";let N_=null;function j_(e,t){var n;if(!N_){let i;if(!(null===(n=null==e?void 0:e.textDiff)||void 0===n?void 0:n.diffMatchPatch)){if(!t)return null;const e=new Error("The diff-match-patch library was not provided. Pass the library in through the options or use the `jsondiffpatch/with-text-diffs` entry-point.");throw e.diff_match_patch_not_found=!0,e}i=new e.textDiff.diffMatchPatch,N_={diff:(e,t)=>i.patch_toText(i.patch_make(e,t)),patch:(e,t)=>{const n=i.patch_apply(i.patch_fromText(t),e);for(const e of n[1])if(!e){const e=new Error("text patch failed");throw e.textPatchFailed=!0,e}return n[0]}}}return N_}const B_=function(e){var t,n;if("string"!==e.leftType)return;const i=e.left,r=e.right,o=(null===(n=null===(t=e.options)||void 0===t?void 0:t.textDiff)||void 0===n?void 0:n.minLength)||60;if(i.length<o||r.length<o)return void e.setResult([i,r]).exit();const a=j_(e.options);if(!a)return void e.setResult([i,r]).exit();const s=a.diff;e.setResult([s(i,r),0,2]).exit()};B_.filterName="texts";const R_=function(e){if(e.nested)return;const t=e.delta;if(2!==t[2])return;const n=t,i=j_(e.options,!0).patch;e.setResult(i(e.left,n[0])).exit()};R_.filterName="texts";const V_=e=>{var t,n,i;const r=/^@@ +-(\d+),(\d+) +\+(\d+),(\d+) +@@$/,o=e.split("\n");for(let e=0;e<o.length;e++){const a=o[e];if(void 0===a)continue;const s=a.slice(0,1);if("@"===s){const t=r.exec(a);if(null!==t){o[e]=`@@ -${t[3]},${t[4]} +${t[1]},${t[2]} @@`}}else if("+"===s){if(o[e]=`-${null===(t=o[e])||void 0===t?void 0:t.slice(1)}`,"+"===(null===(n=o[e-1])||void 0===n?void 0:n.slice(0,1))){const t=o[e];o[e]=o[e-1],o[e-1]=t}}else"-"===s&&(o[e]=`+${null===(i=o[e])||void 0===i?void 0:i.slice(1)}`)}return o.join("\n")},q_=function(e){if(e.nested)return;const t=e.delta;if(2!==t[2])return;const n=t;e.setResult([V_(n[0]),0,2]).exit()};q_.filterName="texts";const H_=function(e){if(e.left!==e.right)if(void 0!==e.left)if(void 0!==e.right){if("function"==typeof e.left||"function"==typeof e.right)throw new Error("functions are not supported");e.leftType=null===e.left?"null":typeof e.left,e.rightType=null===e.right?"null":typeof e.right,e.leftType===e.rightType&&"boolean"!==e.leftType&&"number"!==e.leftType?("object"===e.leftType&&(e.leftIsArray=Array.isArray(e.left)),"object"===e.rightType&&(e.rightIsArray=Array.isArray(e.right)),e.leftIsArray===e.rightIsArray?e.left instanceof RegExp&&(e.right instanceof RegExp?e.setResult([e.left.toString(),e.right.toString()]).exit():e.setResult([e.left,e.right]).exit()):e.setResult([e.left,e.right]).exit()):e.setResult([e.left,e.right]).exit()}else e.setResult([e.left,0,0]).exit();else{if("function"==typeof e.right)throw new Error("functions are not supported");e.setResult([e.right]).exit()}else e.setResult(void 0).exit()};H_.filterName="trivial";const z_=function(e){if(void 0===e.delta)return void e.setResult(e.left).exit();if(e.nested=!Array.isArray(e.delta),e.nested)return;const t=e.delta;if(1!==t.length)if(2!==t.length)3===t.length&&0===t[2]&&e.setResult(void 0).exit();else{if(e.left instanceof RegExp){const n=/^\/(.*)\/([gimyu]+)$/.exec(t[1]);if(null==n?void 0:n[1])return void e.setResult(new RegExp(n[1],n[2])).exit()}e.setResult(t[1]).exit()}else e.setResult(t[0]).exit()};z_.filterName="trivial";const U_=function(e){if(void 0===e.delta)return void e.setResult(e.delta).exit();if(e.nested=!Array.isArray(e.delta),e.nested)return;const t=e.delta;1!==t.length?2!==t.length?3===t.length&&0===t[2]&&e.setResult([t[0]]).exit():e.setResult([t[1],t[0]]).exit():e.setResult([t[0],0,0]).exit()};U_.filterName="trivial";var W_=class{constructor(e){this.processor=new y_(e),this.processor.pipe(new v_("diff").append(O_,H_,T_,B_,P_,__).shouldHaveResult()),this.processor.pipe(new v_("patch").append($_,S_,z_,R_,F_,x_).shouldHaveResult()),this.processor.pipe(new v_("reverse").append(L_,D_,U_,q_,M_,E_).shouldHaveResult())}options(e){return this.processor.options(e)}diff(e,t){return this.processor.process(new f_(e,t))}patch(e,t){return this.processor.process(new m_(e,t))}reverse(e){return this.processor.process(new g_(e))}unpatch(e,t){return this.patch(e,this.reverse(t))}clone(e){return p_(e)}};let G_;function K_(e,t){return G_||(G_=new W_),G_.patch(e,t)}function Q_(e,t){return G_||(G_=new W_),G_.unpatch(e,t)}function Y_(e){[sf.value,"globalClasses","components"].forEach(function(t){var n=xs(function(){return JSON.stringify(Xh[t])}),i=!1;li([n],function(n,r){if(!(i||Xh.messageOrigin!==e||Xh.historyInProgress||Xh.isBroadcasting)&&Xh.iframeLoaded){i=Date.now();var o=Xh.postId,a=100;(d_.isEditable()||Xh.isSpacingElement||Xh.isResizing)&&(a=600),setTimeout(function(){if(Xh.isBroadcasting||Xh.messageOrigin!==e||Xh.historyInProgress||Xh.postId!==o)i=!1;else{r=JSON.parse(r),n=d_.clone(Xh[t]);var a,s,l=(a=n,s=r,G_||(G_=new W_),G_.diff(a,s));if(l){var c=window.bricksData.i18n,u={_label:"globalClasses"===t?c.cssClass:c.element,_action:""};if(n.length>r.length)u._action="added";else if(n.length<r.length)u._action="deleted";else{var d;if(u._action="moved","globalClasses"===t){if(null!==(d=nf.value)&&void 0!==d&&d.name)u._label=nf.value.name,u._action="edited";else if(!Xh.history.length){var p=d_.clone(u);return p._label="start",p._action="",p[t]=l,Xh.history.push(p),void(i=!1)}}else Xh.activeElement&&(u._label=d_.getElementLabel(d_.clone(Xh.activeElement)),u._action="edited")}if(u[t]=l,!Xh.history.length){var h=d_.clone(u);h._label="start",h._action="",Xh.history.push(h)}Xh.history.length>Xh.historyIndex+1&&(0===Xh.historyIndex?Xh.history=[Xh.history.at(-1)]:Xh.history.length=Xh.historyIndex),Xh.history.length>=50&&Xh.history.shift(),Xh.history.push(u),Xh.historyIndex=Xh.history.length-1,i=!1}else i=!1}},a)}})})}function J_(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var l=i&&i.prototype instanceof s?i:s,c=Object.create(l.prototype);return X_(c,"_invoke",function(n,i,r){var o,s,l,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return o=t,s=0,l=e,p.n=n,a}};function h(n,i){for(s=n,l=i,t=0;!d&&c&&!r&&t<u.length;t++){var r,o=u[t],h=p.p,f=o[2];n>3?(r=f===i)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=h&&((r=n<2&&h<o[1])?(s=0,p.v=i,p.n=o[1]):h<f&&(r=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,p.n=f,s=0))}if(r||n>1)return a;throw d=!0,i}return function(r,u,f){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,f),s=u,l=f;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(p.n=-1),h(s,l)):p.n=l:p.v=l);try{if(c=2,o){if(s||(r="next"),t=o[r]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=e}else if((t=(d=p.n<0)?l:n.call(i,p))!==a)break}catch(t){o=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,r,o),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][i]?t(t([][i]())):(X_(t={},i,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,X_(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,X_(d,"constructor",c),X_(c,"constructor",l),l.displayName="GeneratorFunction",X_(c,r,"GeneratorFunction"),X_(d),X_(d,r,"Generator"),X_(d,i,function(){return this}),X_(d,"toString",function(){return"[object Generator]"}),(J_=function(){return{w:o,m:p}})()}function X_(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}X_=function(e,t,n,i){function o(t,n){X_(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},X_(e,t,n,i)}function Z_(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,r)}function eC(){var e;return e=J_().m(function e(){return J_().w(function(e){for(;;)switch(e.n){case 0:document.addEventListener("contextmenu",function(e){var t;if(Xh.isPreviewing)Xh.showContextMenu=!1;else if(!e.target.closest("#bricks-panel-elements")){var n=void 0,i=e.target.closest(".bricks-draggable-item");if(i||(i=e.target.closest(".bricks-element-placeholder")),i||(i=e.target.closest("li.element")),i){if(!Xh.activeComponent){var r=i.closest("[data-component]");r&&(i=r)}var o;null!==(t=i)&&void 0!==t&&null!==(t=t.dataset)&&void 0!==t&&t.id&&(n=(n=null===(o=i)||void 0===o||null===(o=o.dataset)||void 0===o?void 0:o.id).substr(n.length-6)),n&&i.classList.contains("virtual-slot")||(n&&n===Xh.showContextMenu?Xh.showContextMenu=!1:(e.preventDefault(),e.stopPropagation(),Xh.activeId=n,Xh.activePanel="element",d_.setActiveElement(),Fn(function(){Xh.showContextMenu=n;var t=e.clientY,i=e.clientX;Fn(function(){var e=document.getElementById("bricks-builder-context-menu");e&&(t+e.offsetHeight>window.innerHeight&&(t=window.innerHeight-e.offsetHeight),i+e.offsetWidth>window.innerWidth&&(i=window.innerWidth-e.offsetWidth-16),e.style.top="".concat(t,"px"),e.style.left="".concat(i,"px"))})})))}}});case 1:return e.a(2)}},e)}),eC=function(){var t=this,n=arguments;return new Promise(function(i,r){var o=e.apply(t,n);function a(e){Z_(o,i,r,a,s,"next",e)}function s(e){Z_(o,i,r,a,s,"throw",e)}a(void 0)})},eC.apply(this,arguments)}function tC(e){return tC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tC(e)}function nC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function iC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nC(Object(n),!0).forEach(function(t){rC(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rC(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=tC(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=tC(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tC(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||sC(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function aC(e){return function(e){if(Array.isArray(e))return lC(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||sC(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sC(e,t){if(e){if("string"==typeof e)return lC(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lC(e,t):void 0}}function lC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var cC=window.bricksData,uC=new Set,dC=function(e){return Number.isFinite(Number(e))},pC=function(e){return e?"none"===String(e).trim().toLowerCase()?"none":(e=function(e){return String(e).split("").filter(function(e){var t=e.charCodeAt(0);return t>31&&127!==t}).join("")}(e).replace(/\\/g,"\\\\").replace(/"/g,'\\"'),e?'url("'.concat(e,'")'):null):null},hC=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.elementId,i=t.settings,r=t.parsedCssId,o=t.loopId;if(!e||"string"!=typeof e)return e;var a=null!=i&&i._cssId?"#".concat(i._cssId):"#brxe-".concat(n),s=o?".brxe-".concat(n):r?"#".concat(r):a;return a!==s?e.replaceAll(a,s):e},fC=function(){var e=d_.clone(Xh.colorPalette);if(!e.length)return{};var t={};return e.forEach(function(e){e.colors&&Array.isArray(e.colors)&&e.colors.forEach(function(e){e.id&&(t[e.id]=e)})}),t},mC=function(e){if(e.startsWith("--"))return e;var t=(e=e.trim().toLowerCase().replaceAll(" ","-")).match(/var\(\s*--([\w-]+)\s*\)/);return(e=t?t[1]:e).startsWith("--")||(e="--".concat(e)),e},gC={bg:{cssProperty:"background-color",cssPrefix:"bg"},text:{cssProperty:"color",cssPrefix:"text"},border:{cssProperty:"border-color",cssPrefix:"border"},outline:{cssProperty:"outline-color",cssPrefix:"outline"},fill:{cssProperty:"fill",cssPrefix:"fill"},stroke:{cssProperty:"stroke",cssPrefix:"stroke"}},vC=function(){return d_.userHasPermission("edit_color_palettes")||d_.userHasPermission("access_class_manager")||d_.userHasPermission("access_variable_manager")||d_.userHasPermission("access_theme_styles")},yC=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.palette,n=void 0===t?null:t,i=e.color,r=void 0===i?null:i,o=e.includeVariables,a=void 0!==o&&o,s=e.includeAllColors,l=void 0!==s&&s,c=n?[n]:d_.clone(Xh.colorPalette);if(!c.length)return"";var u="";return c.forEach(function(e){var t;if(e.colors&&Array.isArray(e.colors)&&(u+="/* Variables for color palette: ".concat(e.name," */\n\n"),(t=r?[r]:l?e.colors.filter(function(e){return!e.type&&e.light}):e.colors.filter(function(e){return!e.type&&e.light&&Array.isArray(e.utilityClasses)&&e.utilityClasses.length>0})).length)){var n=[];t.forEach(function(t){var i=e.colors.filter(function(e){return e.type&&e.parent===t.id});n.push.apply(n,[t].concat(aC(i)))}),a&&n.length&&(u+=":root {\n",n.forEach(function(e){var t=mC(e.raw),n=e.light;n&&(u+=" ".concat(t,": ").concat(n,";\n"))}),u+="}\n"),n.find(function(e){return e.dark})&&(u+="\n/* Variables for color palette: ".concat(e.name," (dark mode) */\n"),u+=':root[data-brx-theme="dark"] {\n',n.forEach(function(e){var t=mC(e.raw),n=e.dark;n&&(u+=" ".concat(t,": ").concat(n,";\n"))}),u+="}\n"),u+="\n/* Utility classes for color palette: ".concat(e.name," */\n"),Object.entries(gC).forEach(function(e){var i=oC(e,2),r=i[0],o=i[1],a=o.cssPrefix||r;n.forEach(function(e){var n=e.light&&e.type&&e.parent?t.find(function(t){return t.id===e.parent}):e;if(n&&function(e,t){return!!Array.isArray(null==e?void 0:e.utilityClasses)&&e.utilityClasses.includes(t)}(n,r)){var i=mC(e.raw);i=i.replace(/^--/,"");var s=".".concat(a,"-").concat(i);u+="".concat(s," { ").concat(o.cssProperty,": ").concat(e.raw,"; }\n")}})})}}),u},bC=function(){var e=Xh.globalVariablesCategories||[],t=Xh.globalVariables||[];if(!e.length||!t.length)return"";var n="";return e.forEach(function(e){if(e.scale&&Array.isArray(e.utilityClasses)&&e.utilityClasses.length){var i=t.filter(function(t){return t.category&&t.category===e.id});if(i.length){e.name&&(n+="\n/* Utility classes for scale: ".concat(e.name," */\n"));var r=e.utilityClasses,o=e.scale.prefix||"";r.forEach(function(e){if(e.className&&e.cssProperty){var t=e.className,r=e.cssProperty;i.forEach(function(e){if(e.name){var i=e.name,a=i.replace(o,""),s=t.includes("*")?t.replace("*",a):t+a,l=mC(i);n+=".".concat(s," { ").concat(r,": var(").concat(l,"); }\n")}})}})}}}),n},kC=function(){var e="",t=yC({includeAllColors:!1});t&&(e+=t);var n=bC();return n&&(e+=n),e?"\n/* UTILITY CLASSES */\n".concat(e):""},wC=function(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"element",r=null==e?void 0:e.id,o=null==e?void 0:e.settings,a=null==e?void 0:e._cssGlobalClass,s=null==e?void 0:e.loopId;if(o){var l="",c=r?"#brxe-".concat(r):"",u=d_.getParsedDynamicCssId(null===(n=o)||void 0===n?void 0:n._cssId,{loopId:s,fetchMissing:!s,syncMessage:!0});a&&(c=".".concat(a),cC.disableClassChaining||(c=".".concat(a,".brxe-").concat(e.name))),r&&!a&&(null!=e&&e.cid?(c=".brxe-".concat(e.cid),"icon"===e.name&&(c+=".brxi-".concat(r))):null!=e&&e.pid?(c=".brxe-".concat(r),null!=e&&e.instanceId&&"icon"===e.name&&(c+=".brxi-".concat(e.instanceId))):null!=e&&e.global?c=".brxe-".concat(e.global):s?(c=s===r?".brxe-".concat(r):".brxe-".concat(s," .brxe-").concat(r),c+=".brxe-".concat(e.name)):u&&(c="#".concat(u)));var d={};Xh.breakpoints.forEach(function(e){d[e.key]={}});var p=function(e,t,n){n&&d.hasOwnProperty(e)&&(d[e].hasOwnProperty(t)||(d[e][t]=""),-1===d[e][t].split(";").indexOf(n)&&(d[e][t]+="".concat(n,";")))};if(":hover"===Xh.pseudoClassActive){var h={},f={};for(var m in o)m.includes(":hover")?h[m]=o[m]:f[m]=o[m];o=iC(iC({},f),h)}var g,v=function(n){var a,h=o[n];if(!h)return 0;var f,m="",g=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=sC(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(n.split(":"));try{for(g.s();!(f=g.n()).done;){var v=f.value;if(v.startsWith("variant-")){m=v,n=n.replace(":".concat(m),"");break}}}catch(e){g.e(e)}finally{g.f()}var y=d_.getControlKeyPlain(n),b={imageRatio:{"ratio-square":"1/1","ratio-16-9":"16/9","ratio-4-3":"4/3"}},k=null==b||null===(a=b[y])||void 0===a?void 0:a[h];k&&(h=k);var w="";if("_cssCustom"===y||"customCss"===y){var _;if(m)return 0;h=hC(h,{elementId:r,settings:o,parsedCssId:u,loopId:s});var C=null===(_=Xh.fonts)||void 0===_?void 0:_.custom;"object"===tC(C)&&h.includes("font-family")&&Object.keys(C).forEach(function(e){var t=C[e];if(h.includes(t.id)||h.includes(t.family)){var n=!(null==t||!t.css)&&Object.keys(t.css);n&&(Xh.activeCustomFonts[t.id]=n)}}),h&&(w="/* CUSTOM CSS */\n".concat(h,"\n"))}if("global"===i&&w)return{v:w};var x="desktop",S=n.split(":").concat(n.split("_"));Xh.breakpoints.forEach(function(e){var t=null==e?void 0:e.key;t&&"desktop"!==t&&"desktop"===x&&S.includes(t)&&(x=t)});var E="";-1!==n.indexOf("_hover")?E=":hover":Xh.pseudoClasses.forEach(function(e){-1!==n.indexOf(e)&&(E=e)});var A=null==t?void 0:t[y];if(!A)return 0;if("icon"!==A.type||null!=A&&A.css||(A.css=[{selector:null!=A&&A.root?"":"svg"}]),"repeater"===A.type&&d.hasOwnProperty(x))return l+=_C(e,h,A),0;if(w&&d.hasOwnProperty(x)&&w.split("{").length===w.split("}").length&&(d[x]._customCss=w),"theme_styles"===i&&h){if("_contextualSpacing_contextualSpacingApplyTo"===y){var D=h.split(",").map(function(e){return e.trim()});D.forEach(function(t){var n,i,r,o=null==e||null===(n=e.stateSettings)||void 0===n||null===(n=n.contextualSpacing)||void 0===n?void 0:n.contextualSpacingHeading;o&&(d[x]["".concat(t," :is(h1, h2, h3, h4, h5, h6):not(:first-child)")]="margin-block-start: ".concat(o));var a=null==e||null===(i=e.stateSettings)||void 0===i||null===(i=i.contextualSpacing)||void 0===i?void 0:i.contextualSpacingParagraph;a&&(d[x]["".concat(t," :is(p):not(:first-child)")]="margin-block-start: ".concat(a));var s=null==e||null===(r=e.stateSettings)||void 0===r||null===(r=r.contextualSpacing)||void 0===r?void 0:r.contextualSpacingFallback;s&&(d[x]["".concat(t," > * + *")]="margin-block-start: ".concat(s))})}if("_contextualSpacing_contextualSpacingRemoveDefaultMargins"===y){var T=h.join(",");d[x][T]="margin: 0"}}(Array.isArray(null==A?void 0:A.css)?A.css:[]).forEach(function(t){var i,a;if(!t.hasOwnProperty("required")||h===t.required){var l=c;if(m){var u=m.replace("variant-","");(null==e?void 0:e.cid)&&l.includes(".brxe-".concat(e.cid))?l=l.replace(".brxe-".concat(e.cid),".brxe-".concat(e.cid,'[data-brx-variant="').concat(u,'"]')):null!=e&&e.pid&&(l='[data-brx-variant="'.concat(u,'"] ').concat(l))}var f,g=(null==t?void 0:t.property)||"",v=h,b=null==t?void 0:t.important;if("number"===A.type&&A.unit&&(v+=A.unit),t.hasOwnProperty("value")){var k=null==t?void 0:t.skipIfSet;if(k){var w=n.replace(y,k);if(o.hasOwnProperty(w))return}t.value&&t.value.includes("%s")?(v=t.value.replaceAll("%s",v),"content"===t.property&&(v.includes("attr(")||v.includes("counter(")||v.includes("url(")||v.includes("none")||v.includes("open-quote")||v.includes("close-quote")||v.startsWith('"')||v.startsWith("'")||(v='"'.concat(v,'"'))),null!=A&&A.units&&!isNaN(v)&&(v+="px"),f="".concat(t.property,": ").concat(v)):f="".concat(t.property,": ").concat(t.value),b&&(f+=" !important")}var _=(null==t?void 0:t.selector)||"";if(_.includes(", ")&&(_=_.replaceAll(", ",", ".concat(l," "))),!_||E.includes(":before")||E.includes(":after")||(_.startsWith("&")?_=_.substring(1):_.includes(".repeater-item")&&_.includes(" &")?_=" "+_.replace(" &",""):l+=" ",l+=_),"gradient"===A.type){var C,S,D=(null===(C=v)||void 0===C?void 0:C.applyTo)||"background";if(null!==(S=v)&&void 0!==S&&S.cssSelector&&(_&&(l=l.replace(_,"")),l+=" ".concat(v.cssSelector)),"overlay"===D)d.hasOwnProperty(x)&&(d[x][":where(".concat(l," > *:not(figcaption))")]="position: relative",o.hasOwnProperty(d_.getControlKeyPlain("_position"))||(d[x].hasOwnProperty(l)?d[x][l]+="position: relative;":d[x][l]="position: relative;")),t.hasOwnProperty("value")||(l+="::before")}if(!(Xh.activeId&&(Xh.activeId===r||null!==(i=Xh.activeComponent)&&void 0!==i&&i.id&&(null===(a=Xh.activeComponent)||void 0===a?void 0:a.id)===Xh.activeId||Xh.selectedElements.length>0&&Xh.selectedElements.find(function(e){return e.id===r}))&&E&&E===Xh.pseudoClassActive)||E.includes(":before")||E.includes(":after")||E.includes(":nth-child")||E.includes(":first")||(E=""),"icon"!==A.type)E&&l.includes(", ")&&(l=l.replaceAll(", ","".concat(E,", "))),-1!==l.indexOf("{pseudo}")?l=l.replaceAll("{pseudo}",E):l+=E,E&&(l=l.replaceAll(" :",":")),t.hasOwnProperty("value")||(f=AC(A,g,v,b,s)),f&&d.hasOwnProperty(x)&&p(x,l,f);else{var T=function(){var e,t,n=v[I],i=I.split(":"),o=i[0],a=x,c=E,u=[];switch(i.slice(1).forEach(function(e){if(Xh.breakpoints.find(function(t){return t.key===e}))a=e;else{var t=Xh.pseudoClasses.find(function(t){return t===":".concat(e)});t&&(c=t)}}),!(Xh.activeId&&(Xh.activeId===r||null!==(e=Xh.activeComponent)&&void 0!==e&&e.id&&(null===(t=Xh.activeComponent)||void 0===t?void 0:t.id)===Xh.activeId||Xh.selectedElements.length>0&&Xh.selectedElements.find(function(e){return e.id===r}))&&c&&c===Xh.pseudoClassActive)||c.includes(":before")||c.includes(":after")||c.includes(":nth-child")||c.includes(":first")||(c=""),o){case"height":case"width":isNaN(n)||(n+="px"),u.push("".concat(o,": ").concat(n));break;case"strokeWidth":isNaN(n)||(n+="px"),u.push("stroke-width: ".concat(n));break;case"stroke":case"fill":(n=CC(n,s))&&(u.push("".concat(o,": ").concat(n)),"fill"===o&&u.push("color: ".concat(n)))}if(!u.length)return 1;var d=l;c&&d.includes(", ")&&(d=d.replaceAll(", ","".concat(c,", "))),-1!==d.indexOf("{pseudo}")?d=d.replaceAll("{pseudo}",c):d+=c,c&&(d=d.replaceAll(" :",":")),u.forEach(function(e){p(a,d,e),"fill"!==o&&"stroke"!==o||p(a,"".concat(d," *"),e.replace(/^color: .+$/,""))})};for(var I in v)T()}}})};for(var y in o)if(0!==(g=v(y))&&g)return g.v;var b=function(){if(k.startsWith("_cssCustom:variant-")&&o[k]){var e=o[k],t="desktop",n=k.split(":").concat(k.split("_"));Xh.breakpoints.forEach(function(e){var i=null==e?void 0:e.key;i&&"desktop"!==i&&"desktop"===t&&n.includes(i)&&(t=i)}),(e=hC(e,{elementId:r,settings:o,parsedCssId:u,loopId:s}))&&(e="/* VARIANT CUSTOM CSS */\n".concat(e,"\n"),d.hasOwnProperty(t)&&e.split("{").length===e.split("}").length&&(d[t]._customCss||(d[t]._customCss=""),d[t]._customCss+=e))}};for(var k in o)b();var w=d_.clone(Xh.breakpoints),_=w.findIndex(function(e){return e.base});return _>0&&w.unshift(w.splice(_,1)[0]),w.forEach(function(e){if(null==e||!e.paused){var t=d[e.key],n=Object.keys(t);n.length&&n.forEach(function(n){var r,o="element"===i?"":"".concat(i.toUpperCase(),": ");o+=e.label.toUpperCase();var a,s=e.width>d_.getBaseBreakpointWidth();if(a="_customCss"===n||"_repeater"===n?t[n]:"".concat(n," {").concat(t[n],"}")){"globalClass"===i&&null!==(r=Xh.activeClass)&&void 0!==r&&r.id&&Xh.pseudoClassActive&&n.includes(Xh.pseudoClassActive)&&cC.validPseudoClasses.some(function(e){return e.startsWith(Xh.pseudoClassActive)})&&(a=":root "+a.replace(Xh.pseudoClassActive,""));var c="\n/* ".concat(o," */\n");e.hasOwnProperty("base")?c+=a:(c+="@media (".concat(s?"min-width":"max-width",": ").concat(e.width,"px) {\n"),c+=a,c+="}\n"),l+=c}})}}),l}},_C=function(e,t,n){var i="",r=(null==n?void 0:n.fields)||[],o=(null==n?void 0:n.selector)||".repeater-item",a=1;return t.forEach(function(t,n){var s=function(){var s,c,u,d=d_.getControlKeyPlain(l);if("id"===d||"titleEditable"===d)return 0;var p=(null==r?void 0:r[d])||!1;if(!p)return cC.debug&&console.warn("ERROR: No control found for repeater item controlKey: ".concat(d)),0;var h,f=null==t?void 0:t[l];"icon"===p.type&&(null===(s=p)||void 0===s||!s.css)&&null!=f&&f.svg&&Object.keys(f).length>2&&(p.css=[{selector:null!==(h=p)&&void 0!==h&&h.root?"":"svg"}]);if(!p.hasOwnProperty("css"))return 0;var m=null!=e&&null!==(c=e.settings)&&void 0!==c&&c.hasLoop?" .swiper-slide":' .swiper-slide[data-brx-swiper-index="'.concat(n,'"]');(p=d_.clone(p)).css.forEach(function(i,r){var s,l=p.css[r].selector;switch(o){case"swiperJs":i.selector?p.css[r].selector="".concat(m," ").concat(i.selector):p.css[r].selector=m;break;case"fieldId":var c=(null==t?void 0:t.id)||n;p.css[r].selector='.repeater-item [data-field-id="'.concat(c,'"]');break;case"contextualSpacing":var u=(null==t?void 0:t.selector)||"";if(!u)break;var d=[".brxe-text * + :is(".concat(u,")"),".brxe-post-content:not([data-source=bricks]) * + :is(".concat(u,")"),"body:not(.woocommerce-checkout) [class*=woocommerce] * + :is(".concat(u,")")];p.css[r].selector="";var h=(null==e||null===(s=e.stateSettings)||void 0===s||null===(s=s.contextualSpacing)||void 0===s?void 0:s.contextualSpacingApplyTo)||"";if(h){var f=h.split(",").map(function(e){return e.trim()});f.forEach(function(e){d.push("".concat(e," * + :is(").concat(u,")"))})}p.css[r].selector=d.join(", ");break;default:p.css[r].selector=l?"".concat(o,":nth-child(").concat(a,") ").concat(l):"".concat(o,":nth-child(").concat(a,")")}}),null!==(u=e.settings)&&void 0!==u&&u._cssId&&(t._cssId=d_.getParsedDynamicCssId(e.settings._cssId,{loopId:null==e?void 0:e.loopId,fetchMissing:!(null!=e&&e.loopId),syncMessage:!0})),e.settings=t;var g=rC({},d,p);i+=wC(e,g,"element")};for(var l in t)s();a++}),i},CC=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=fC(),r=null==e?void 0:e.id;if(null!=e&&e.raw&&e.raw.includes("{")&&e.raw.includes("}")){var o=n?Xh.loopingDynamicData:Xh.dynamicData,a=e.raw,s={},l=[],c=aC(a.matchAll(/\{([^}]+)\}/g)).map(function(e){return e[1]});return c.every(function(e){var t=n?"".concat(e,"||").concat(n):e,i=o[t];return(n?Object.hasOwn(o,t)&&""!==i:Object.hasOwn(o,t))?(s[e]=i,!0):(n&&l.push(t),!1)})?(c.forEach(function(e){n&&uC.delete("".concat(e,"||").concat(n)),a=a.replaceAll("{".concat(e,"}"),s[e])}),a):n?(l.some(function(e){return!uC.has(e)&&(uC.add(e),!0)})&&d_.rerenderLoopId(n),""):(c.forEach(function(e){Object.hasOwn(Xh.dynamicData,e)||(Xh.dynamicData[e]="",d_.getDynamicDataContent({content:"{".concat(e,"}"),checkState:!0,success:function(t){Array.isArray(Xh.dynamicData)&&(Xh.dynamicData={});var n=t.data.content;n.startsWith("{")||(Xh.dynamicData[e]=n),Fn(function(){Xh.colorPaletteInlineCssVars=TC("colorPalette"),"main"===Xh.messageOrigin&&d_.postMessage({key:"dynamicData",value:Xh.dynamicData,ignoreOrigin:!0})})}}))}),1===c.length?"var(--brx-dd-".concat(c[0],")"):a)}return r&&i.hasOwnProperty(r)?null!=i&&null!==(t=i[r])&&void 0!==t&&t.raw?i[r].raw:"var(--bricks-color-".concat(r,")"):null!=e&&e.raw?e.raw:null!=e&&e.rgb?e.rgb:!(null==e||!e.hex)&&e.hex},xC=function(e){return e?e.replace(/{(.*?)}/g,function(e,t){return t=t.trim(),Xh.dynamicData.hasOwnProperty(t)?Xh.dynamicData[t]:e}):e},SC=function(e){var t=(null==e?void 0:e.name)||e||"";return"string"==typeof t?t:""},EC=function(e){var t,n=SC(null==e?void 0:e.useDynamicData);if(!n)return"";var i=(null===(t=Xh.templatePreview)||void 0===t?void 0:t.postId)||Xh.postId;if(!i)return"";var r=(null==e?void 0:e.size)||cC.defaultImageSize||"full",o=function(e,t,n){return[n,t,e].join("|")}(n,r,i);return Object.hasOwn(Xh.dynamicBackgroundImages,o)?Xh.dynamicBackgroundImages[o]:(Xh.dynamicBackgroundImages[o]="",d_.smartDebouncedHttp({requestKey:"dynamicBackgroundImage:".concat(o),data:{action:"bricks_get_image_from_custom_field",postId:i,metaKey:n,size:r},error:function(){Xh.dynamicBackgroundImages[o]=""},success:function(e){var t;Xh.dynamicBackgroundImages[o]=e.success&&(null===(t=e.data)||void 0===t?void 0:t.url)||""}}),"")},AC=function(e,t,n){var i,r,o,a,s,l,c,u,d,p,h,f,m,g,v,y=arguments.length>3&&void 0!==arguments[3]&&arguments[3],b=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,k=[],w=e.directions?Object.keys(e.directions):["top","right","bottom","left"];if("object"===tC(n))switch(e.type){case"background":for(var _ in n)switch(_){case"color":var C=CC(n[_],b);C&&k.push("background-".concat(_,": ").concat(C));break;case"image":k.push("background-size: cover");var x=d_.clone(n[_]);if(SC(null==x?void 0:x.useDynamicData)){var S=EC(x),E=S?pC(S):"none";E&&k.push("background-".concat(_,": ").concat(E))}else if(x.hasOwnProperty("url")&&x.url){var A=pC(x.url);A&&k.push("background-".concat(_,": ").concat(A))}break;case"attachment":k.push("background-attachment: ".concat(n[_]));break;case"blendMode":k.push("background-blend-mode: ".concat(n[_]));break;case"repeat":k.push("background-repeat: ".concat(n[_]));break;case"position":if("custom"===n[_]){var D=[];n.hasOwnProperty("positionX")?D.push(n.positionX):D.push("center"),n.hasOwnProperty("positionY")?D.push(n.positionY):D.push("center"),k.push("background-position: ".concat(D.join(" ")))}else k.push("background-position: ".concat(n[_]));break;case"size":"custom"!==(null===(i=n)||void 0===i?void 0:i.size)&&k.push("background-size: ".concat(n[_]));break;case"custom":if("custom"===(null===(r=n)||void 0===r?void 0:r.size)){var T,I=null!==(T=xC(n[_]))&&void 0!==T?T:n[_];I&&k.push("background-size: ".concat(I))}}break;case"border":var O,P=!1,F=!1,$=null===(o=n)||void 0===o?void 0:o.width;if($&&w.forEach(function(e){var t,i,r,o,a=$.hasOwnProperty(e)?$[e]:"",s=(null==$||null===(t=$.unit)||void 0===t?void 0:t[e])||"";""===a&&""===s||(/^\d+$/.test(a)&&""===s&&(s=Xh.defaultUnit),a&&a.toString().includes(s)&&(s=""),k.push("border-".concat(e,"-width: ").concat(a).concat(s)),null!==(i=n)&&void 0!==i&&i.style&&(k.push("border-".concat(e,"-style: ").concat(n.style)),P=!0),null!==(r=n)&&void 0!==r&&r.color&&(k.push("border-".concat(e,"-color: ").concat(CC(null===(o=n)||void 0===o?void 0:o.color,b))),F=!0))}),!P&&null!==(a=n)&&void 0!==a&&a.style&&k.push("border-style: ".concat(n.style)),!F&&null!==(s=n)&&void 0!==s&&s.color)k.push("border-color: ".concat(CC(null===(O=n)||void 0===O?void 0:O.color,b)));if(null!==(l=n)&&void 0!==l&&l.radius){var M,L=null===(M=n)||void 0===M?void 0:M.radius,N=[],j=void 0;w.forEach(function(e){var t,n=L.hasOwnProperty(e)?L[e]:"",i=(null==L||null===(t=L.unit)||void 0===t?void 0:t[e])||"";if(""!==n||""!==i){switch(e){case"top":e="top-left";break;case"right":e="top-right";break;case"bottom":e="bottom-right";break;case"left":e="bottom-left"}/^\d+$/.test(n)&&""===i&&(i=Xh.defaultUnit),N.push("border-".concat(e,"-radius: ").concat(n).concat(i)),j=(null==j||j=="".concat(n).concat(i))&&"".concat(n).concat(i)}}),4===N.length&&j?k.push("border-radius: ".concat(j)):N.forEach(function(e){return k.push(e)})}break;case"box-shadow":var B=[];if(n.hasOwnProperty("inset")&&n.inset&&B.push("inset"),null!==(c=n)&&void 0!==c&&c.values){["offsetX","offsetY","blur","spread"].forEach(function(e){var t,i,r=null!==(t=n.values)&&void 0!==t&&t[e]?null===(i=n.values)||void 0===i?void 0:i[e]:0;!r||isNaN(r)||r.toString().includes(Xh.defaultUnit)||(r+=Xh.defaultUnit),B.push(r)})}if(null!==(u=n)&&void 0!==u&&u.color){var R=CC(n.color,b);R&&B.push(R)}else B.push("transparent");k.push("".concat(t,": ").concat(B.join(" ").trim()));break;case"checkbox":break;case"color":var V=CC(n,b);V&&k.push("".concat(t,": ").concat(V));break;case"dimensions":case"spacing":var q=(null===(d=n)||void 0===d?void 0:d.unit)||{};w.forEach(function(e){var i=n.hasOwnProperty(e)?n[e]:"",r=q.hasOwnProperty(e)?q[e]:"";if(""!==i||""!==r){var o=parseFloat(i);if(i&&!r)!(!i||!o)&&i.toString().length===o.toString().length&&(i="".concat(o).concat(Xh.defaultUnit));else"-"===r||"none"===r?i=o:r&&(r.includes("(")?i=r:i+=r);("string"==typeof i&&i.endsWith("auto")||"auto"===r)&&(i="auto");var a=e;t&&(a=t.includes("{key}")?t.replaceAll("{key}",e):"".concat(t,"-").concat(e)),k.push("".concat(a,": ").concat(i))}});break;case"filters":var H=Object.keys(n),z=[];H.forEach(function(e){var t=n[e];if(""!==t){switch(e){case"blur":t+="px";break;case"brightness":case"contrast":case"invert":case"opacity":case"saturate":case"sepia":t+="%";break;case"hue-rotate":t+="deg"}z.push("".concat(e,"(").concat(t,")"))}}),k.push("filter: ".concat(z.join(" ")));break;case"gradient":if(null===(p=n)||void 0===p||!p.colors)return;var U="background-image: ";null!==(h=n)&&void 0!==h&&h.repeat&&(U+="repeating-");var W=(null===(f=n)||void 0===f?void 0:f.gradientType)||"linear";if(U+="".concat(W,"-gradient("),"linear"===W&&null!==(m=n)&&void 0!==m&&m.angle&&(U+="".concat(n.angle,"deg, ")),"radial"===W){var G,K,Q,Y,J=(null===(G=n)||void 0===G?void 0:G.radialShape)||"",X=(null===(K=n)||void 0===K?void 0:K.radialSize)||"",Z=(null===(Q=n)||void 0===Q?void 0:Q.radialPosition)||"center";if("custom"===Z)Z=(null===(Y=n)||void 0===Y?void 0:Y.radialCustomPosition)||"center";U+="".concat(J," ").concat(X," at ").concat(Z,", ")}if("conic"===W){var ee,te,ne,ie=null!==(ee=n)&&void 0!==ee&&ee.conicAngle?"".concat(n.conicAngle,"deg"):"0deg",re=(null===(te=n)||void 0===te?void 0:te.conicPosition)||"center";if("custom"===re)re=(null===(ne=n)||void 0===ne?void 0:ne.conicCustomPosition)||"center";U+="from ".concat(ie," at ").concat(re,", ")}1===n.colors.length&&n.colors.push(n.colors[0]);var oe=[];n.colors.forEach(function(e){if(e.color){var t,n,i,r,o=null!==(t=null==e?void 0:e.stop)&&void 0!==t?t:"";if(o&&(isNaN(o)||(o+="%"),o=" ".concat(o)),null!==(n=e.color)&&void 0!==n&&n.raw){var a=CC(e.color,b);a||(a=e.color.raw),a&&!a.startsWith("{")&&oe.push("".concat(a).concat(o))}else null!==(i=e.color)&&void 0!==i&&i.rgb?oe.push("".concat(e.color.rgb).concat(o)):null!==(r=e.color)&&void 0!==r&&r.hex&&oe.push("".concat(e.color.hex).concat(o))}}),1===oe.length&&oe.push(oe[0]),U+=oe.join(", "),U+=")","text"===n.applyTo?(k.push("-webkit-background-clip: text"),k.push("-webkit-text-fill-color: transparent")):"overlay"===n.applyTo&&(U+='; position: absolute; content: ""; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none'),k.push(U);break;case"icon":var ae=function(){var e,t,i=n[se],r=se.split(":");se=r[0],r[1]&&(e=r[1]);var o=function(e,n,i){if(i){var r=Xh.breakpoints.find(function(e){return e.key===i});r&&(t=(null==r?void 0:r.width)>d_.getBaseBreakpointWidth(),k.push("@media( ".concat(t?"min-width":"max-width",": ").concat(r.width,"px) {").concat(e,": ").concat(n,"}")))}else k.push("".concat(e,": ").concat(n,"\n"))};switch(se){case"height":case"width":isNaN(i)||(i+="px"),o(se,i,e);break;case"strokeWidth":isNaN(i)||(i+="px"),o("stroke-width",i,e);break;case"stroke":case"fill":var a=CC(i,b);o(se,a,e),"fill"===se&&o("color",a,e)}};for(var se in n)ae();break;case"image":var le=n.url;k.push("".concat(t,": url(").concat(le,")"));break;case"radio":1===n.length?k.push("".concat(t,": ").concat(n[0])):console.warn("Control type radio has more than one value");break;case"text-shadow":var ce=[],ue=(null===(g=n)||void 0===g?void 0:g.values)||null;if(ue){var de=(null==ue?void 0:ue.offsetX)||0;dC(de)&&(de+=Xh.defaultUnit),ce.push(de);var pe=(null==ue?void 0:ue.offsetY)||0;dC(pe)&&(pe+=Xh.defaultUnit),ce.push(pe);var he=(null==ue?void 0:ue.blur)||0;dC(he)&&(he+=Xh.defaultUnit),ce.push(he)}if(n.hasOwnProperty("color")){var fe=CC(n.color,b);fe&&ce.push(fe)}else ce.push("transparent");k.push("".concat(t,": ").concat(ce.join(" ").trim()));break;case"transform":var me=(null===(v=t)||void 0===v?void 0:v.toString())||"",ge="transform"!==me&&me?"".concat(me,":"):"transform:",ve=ge,ye={};if(Object.keys(n).forEach(function(e){var t=n[e];if(e.startsWith("scale3d"))ye[e]=t;else{switch(e){case"translateX":case"translateY":!Math.sign(t)||t.includes("var")||t.includes("calc")||(t+="px");break;case"perspective":isNaN(t)||t.toString().includes("px")||t.includes("var")||t.includes("calc")||(t+="px");break;case"rotateX":case"rotateY":case"rotateZ":case"skewX":case"skewY":t=parseInt(t),t+="deg"}"perspective"===e?ve=ve.replace(ge,"".concat(ge," ").concat(e,"(").concat(t,")")):ve+=" ".concat(e,"(").concat(t,")")}}),ye.scale3dX||ye.scale3dY||ye.scale3dZ){var be=ye.scale3dX||1,ke=ye.scale3dY||1,we=ye.scale3dZ||1;ve+=" scale3d(".concat(be,", ").concat(ke,", ").concat(we,")")}k.push(ve);break;case"typography":var _e=[],Ce=function(){var e,t,i,r,o,a,s=n[xe];switch(xe){case"color":var l=CC(s,b);l&&_e.push("".concat(xe,": ").concat(l));break;case"font-family":var c=(o=s).startsWith("custom_font_");if(c){var u,d,p=o;Xh.activeCustomFonts.includes(p)||Xh.activeCustomFonts.push(p);var h=null===(u=Xh.fonts)||void 0===u?void 0:u.custom;null!=h&&null!==(d=h[p])&&void 0!==d&&d.family&&(o=h[p].family)}var f=null!==(e=n)&&void 0!==e&&e.fallback?", ".concat(n.fallback):"";if(_e.push('font-family: "'.concat(o,'"').concat(f)),(a=!!Array.isArray(null===(t=Xh.fonts)||void 0===t?void 0:t.google)&&Xh.fonts.google.find(function(e){return(null==e?void 0:e.family)===o}))&&!c){var m;o=o.replace(/\s+/g,"+");var g,v=[],y={};if(Array.isArray(null===(m=a)||void 0===m?void 0:m.variants))null===(g=a)||void 0===g||g.variants.forEach(function(e){y={},"italic"===e?(y.ital="1",y.wght="400"):e.includes("italic")?(y.ital="1",y.wght=e.replace("italic","")):y.wght=e,v.push(y)});v=v.filter(function(e,t,n){return t===n.findIndex(function(t){return JSON.stringify(t)===JSON.stringify(e)})});var k=[];v.forEach(function(e){Xh.activeGoogleFonts[o]&&Xh.activeGoogleFonts[o].includes(e)||k.push(e)}),k.length&&(Xh.activeGoogleFonts.hasOwnProperty(o)?Xh.activeGoogleFonts[o].concat(k):Xh.activeGoogleFonts[o]=k)}break;case"font-variation-settings":if(o=n["font-family"],s&&_e.push("".concat(xe,": ").concat(s)),!o)break;if(a=!!Array.isArray(null===(i=Xh.fonts)||void 0===i?void 0:i.google)&&Xh.fonts.google.find(function(e){return(null==e?void 0:e.family)===o}),o=o.replace(/\s+/g,"+"),a&&s){var w={};s.split(",").forEach(function(e){var t=e.trim().split(" "),n=t[0].replace(/['"]+/g,""),i=t[1];n&&i&&(w[n]=isNaN(i)?0:i)}),Object.keys(w).length&&(Xh.activeGoogleFonts.hasOwnProperty(o)?Xh.activeGoogleFonts[o].find(function(e){return JSON.stringify(e)===JSON.stringify(w)})||Xh.activeGoogleFonts[o].push(w):Xh.activeGoogleFonts[o]=[w])}break;case"text-shadow":var _=[],C=(null===(r=s)||void 0===r?void 0:r.values)||null;if(C){var x=(null==C?void 0:C.offsetX)||0;dC(x)&&(x+=Xh.defaultUnit),_.push(x);var S=(null==C?void 0:C.offsetY)||0;dC(S)&&(S+=Xh.defaultUnit),_.push(S);var E=(null==C?void 0:C.blur)||0;dC(E)&&(E+=Xh.defaultUnit),_.push(E)}if(s.hasOwnProperty("color")){var A=CC(s.color,b);A&&_.push(A)}else _.push("transparent");_e.push("".concat(xe,": ").concat(_.join(" ").trim()));break;default:if(s&&"font-variants"!==xe&&"fallback"!==xe){if("font-size"===xe||"letter-spacing"===xe)parseFloat(s)==s&&(s+=Xh.defaultUnit);_e.push("".concat(xe,": ").concat(s))}}};for(var xe in n)Ce();_e.length&&k.push(_e.join("; "));break;default:console.warn("generateCssRulesString: control object type '".concat(e.type,"' not defined"))}else{if("number"===e.type&&(!e.hasOwnProperty("unit")||"number"!=typeof n&&n.includes(e.unit)?e.hasOwnProperty("units")&&e.units&&!isNaN(n)&&(n+="px"):n+=e.unit),-1!==t.indexOf("transform:")){var Se=t.split(":");t=Se[0],n=Se[1]+"("+n+")"}"pointer-events"!==t&&k.push("".concat(t,": ").concat(n))}if(k.length){var Ee=[];return k.forEach(function(e){Ee.push(y?"".concat(e," !important"):e)}),(Ee=aC(new Set(Ee))).join("; ")}},DC=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"element";if(null===(e=n)||void 0===e||!e.selectors)return"";var o=null===(t=Xh.activeSelector)||void 0===t?void 0:t.selector,a="";return(n=d_.clone(n)).selectors.forEach(function(e){var t=(null==e?void 0:e.selector)||"";o&&o.startsWith(":hover")&&t===o&&(t=t.replace(":hover",""));var s=!(null==e||!e.settings||Array.isArray(null==e?void 0:e.settings))&&e.settings;if(s){var l=d_.clone(n),c=d_.clone(i);l.settings=s,Object.keys(s).forEach(function(e){var n,i=d_.getControlKeyPlain(e);null!==(n=c[i])&&void 0!==n&&n.css&&c[i].css.forEach(function(e,n){c[i].css[n].selector=t.startsWith(":")?"&".concat(t):t})}),a+=wC(l,c,r)}}),a},TC=function(e,t,n,i){var r,o,a,s,l,c,u;switch("object"===tC(t)&&(t=d_.clone(t)),e){case"element":if(n=null===(r=cC.elements)||void 0===r||null===(r=r[t.name])||void 0===r?void 0:r.controls){var d,p,h,f=wC(t,n,"element");if(null!==(d=t)&&void 0!==d&&d.cid){var m=d_.getComponentElementById(t.cid);null!=m&&m.selectors&&(t.selectors=m.selectors)}null!==(p=t)&&void 0!==p&&p.selectors&&(f+=DC(t,n,"element"));var g=null===(h=t)||void 0===h?void 0:h.component;return g&&Array.isArray(null==g?void 0:g.elements)&&g.elements.forEach(function(e){var n;if(e.component=g.id,e.pid=t.id,null!=e&&e.cid){e.instanceId||(e.instanceId=t.instanceId||t.id);var i=d_.getComponentById(e.cid);i&&(e.settings=d_.getComponentSettings(i,e))}var r=null===(n=cC.elements)||void 0===n||null===(n=n[e.name])||void 0===n?void 0:n.controls,o=wC(e,r,"element");o&&(f+=o)}),f&&(f="/* ELEMENT: ".concat(t.name.toUpperCase().replaceAll("-"," ")," */\n").concat(f)),f}return void console.warn('error:generateCss: controls for element "'.concat(t.name,'" not found.'));case"global":return wC(t,n,"global");case"page":return wC(t,n,"page");case"outerPostContentTemplatePageSettings":return wC(t,n,"outerPostContentTemplatePageSettings");case"themeStyles":u="\n/* THEME STYLES */\n";var v=d_.clone(Xh.themeStyleActiveIds)||[];return Xh.themeStyleActiveId&&!v.includes(Xh.themeStyleActiveId)&&v.push(Xh.themeStyleActiveId),Array.isArray(v)&&v.length&&v.forEach(function(e){var i,r,o=Xh.themeStyles[e];if(o){var a={},s={},l=null===(i=o.settings)||void 0===i||null===(i=i.links)||void 0===i?void 0:i.cssSelectors,c=cC.controls.themeStyles.controls,d=function(){var e=c[p],t=o.settings[p],n=function(n){if(a["_".concat(p,"_").concat(n)]=e[n],"css"===p&&null!=t&&t.stylesheet&&(u+=t.stylesheet+"\n"),"links"===p&&l){var i=e[n];Array.isArray(null==i?void 0:i.css)&&i.css.forEach(function(t,i){e[n].css[i].selector=null!=t&&t.selector?"".concat(t.selector,", ").concat(l):l})}};for(var i in e)n(i);for(var r in t)s["_".concat(p,"_").concat(r)]=t[r]};for(var p in c)d();var h=null===(r=s)||void 0===r?void 0:r._typography_typographyHeadings;h&&(delete s._typography_typographyHeadings,s=iC({_typography_typographyHeadings:h},s)),t={settings:s,stateSettings:o.settings};var f=wC(t,n=a,"theme_styles");u+=f}}),u;case"globalClass":var y="string"==typeof t?d_.getGlobalClass(t):t,b=i||(null===(o=y)||void 0===o?void 0:o.settings)||{},k=n||[];if(null!==(a=Xh.activeClass)&&void 0!==a&&a.id&&Xh.activeClass.id===(null===(s=y)||void 0===s?void 0:s.id)&&(y=Xh.activeClass),null===(l=y)||void 0===l||!l.name||!k.length)return;return u="",k.forEach(function(e){var t,n,i,r=null===(t=cC.elements)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.controls;if(r){var o={name:e,settings:b,_cssGlobalClass:null===(n=y)||void 0===n?void 0:n.name},a=wC(o,r,"globalClass");null!==(i=y)&&void 0!==i&&i.selectors&&(o.selectors=y.selectors,r=d_.clone(r),a+=DC(o,r,"globalClass")),a&&(u+=a)}}),u;case"colorPalette":var w=[],_=fC();return t&&_.hasOwnProperty(null===(c=t)||void 0===c?void 0:c.id)&&(_[t.id]=t),Object.keys(_).forEach(function(e){var t=_[e],n=(null==t?void 0:t.rgb)||(null==t?void 0:t.hex),i="--bricks-color-".concat(e);null!=t&&t.light&&(n=t.light),null!=t&&t.dark&&"dark"===Xh.mode&&(n=t.dark),null!=t&&t.raw&&t.raw.startsWith("var(")&&(i=t.raw.replace("var(","").replace(")","")),n&&w.push("".concat(i,": ").concat(n,";"))}),Object.entries(Xh.dynamicData).forEach(function(e){var t=oC(e,2),n=t[0],i=t[1];i&&"string"==typeof i&&((i=i.trim()).startsWith("#")||i.startsWith("var(")||i.startsWith("rgb(")||i.startsWith("rgba(")||i.startsWith("hsl(")||i.startsWith("hsla("))&&w.push("--brx-dd-".concat(n,": ").concat(i,";"))}),w.length&&(u="\n/* COLOR VARS */\n :root { \n"+w.join("\n")+"\n}"),u;case"utilityClasses":return kC();case"globalVariables":u="\n/* GLOBAL VARIABLES */\n :root { \n",Xh.globalVariables.forEach(function(e){var t=e.name,n=e.value;n="string"==typeof n?n.trim():"",t&&""!==n&&(u+=" --".concat(t,": ").concat(n,";\n"))}),u+="}\n";break;case"component":case"header":case"content":case"footer":u="\n/* ".concat(e.toUpperCase()," CSS */\n"),u+=function(e,t){if(Array.isArray(e)){e=d_.clone(e);var n="";return e.forEach(function(i){if(delete i.loopId,d_.getElementConfig(i.name).hasOwnProperty("controls")){var r;"global"!==t&&Xh.globalElements.forEach(function(e){null!=e&&e.global&&null!=i&&i.global&&e.global===i.global&&(i.settings=e.settings,i.id=i.global)});var o=d_.elementBelongsToLoopId(i,e);o&&(i.loopId=o);var a=null==i||null===(r=i.settings)||void 0===r?void 0:r.template;if(a&&"template"===(null==i?void 0:i.name)){var s,l=null===(s=Xh.templateElements)||void 0===s?void 0:s[a];Array.isArray(l)&&l.forEach(function(e){var t=d_.clone(e);o&&(t.loopId=o),n+=wC(t,cC.elements[t.name].controls)})}n+=wC(i,cC.elements[i.name].controls)}}),n}}(Xh[e]);break;case"templateHeader":u="\n/* TEMPLATE HEADER CSS */\n";var C={settings:"header"===sf.value?Xh.templateSettings:Xh.templateHeaderSettings},x=cC.controls.settings.template.controls;u+=wC(C,x);break;case"templateSettings":u="\n/* TEMPLATE SETTINGS CSS (POPUP) */\n";var S=t||{settings:Xh.templateSettings},E=cC.controls.settings.template.controls;u+=wC(S,E);break;default:console.warn('generateCss: cssType "'.concat(e,'" is not defined!'))}return u},IC=function(e,t){var n,i,r,o,a,s,l,c,u,d,p,h=Xh.activeElement,f=null===(n=h)||void 0===n?void 0:n.settings;Xh.activeComponent&&(h=d_.getComponentElementById(null===(c=Xh.activeElement)||void 0===c?void 0:c.id),f=d_.getComponentSettings(Xh.activeComponent,Xh.activeElement));if(Xh.selectedElements.length&&(f=Xh.selectedElementSettings),null!==(i=nf.value)&&void 0!==i&&i.settings&&(f=nf.value.settings),Xh.popup&&"theme-styles"===Xh.popupTab&&Xh.themeStyleSettings){var m=d_.clone(Xh.themeStyleSettings);f={},Object.keys(m).forEach(function(e){var t=m[e];"conditions"!==e&&"_custom"!==e&&"object"===tC(t)&&Object.assign(f,t)})}if(null!==(r=Xh.activeSelector)&&void 0!==r&&r.id)if(Array.isArray(null===(u=nf.value)||void 0===u?void 0:u.selectors))f=null===(p=nf.value.selectors.find(function(e){return e.id===Xh.activeSelector.id}))||void 0===p?void 0:p.settings;else if(Array.isArray(null===(d=h)||void 0===d?void 0:d.selectors)){var g;f=null===(g=h.selectors.find(function(e){return e.id===Xh.activeSelector.id}))||void 0===g?void 0:g.settings}if(!f)return!1;if(t&&null!==(o=f)&&void 0!==o&&o._attributes)return!0;if(t&&null!==(a=f)&&void 0!==a&&a._useMasonry)return!0;var v=null===(s=d_.getElementConfig(null===(l=h)||void 0===l?void 0:l.name))||void 0===s?void 0:s.controls;return Object.keys(f).find(function(n){var i=d_.getControlKeyPlain(n,e),r=null==v?void 0:v[i],o=null==r?void 0:r.css;if(Xh.popup&&"theme-styles"===Xh.popupTab&&(i=n.split(":")[0],t=!1,o=!0),"desktop"===e?Xh.pseudoClassActive&&(i+=":".concat(Xh.pseudoClassActive)):Xh.pseudoClassActive?i+=":".concat(e).concat(Xh.pseudoClassActive):i+=":".concat(e),n===i)return t?"style"===(null==r?void 0:r.tab)&&o:o})},OC={goto:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(Xh.history.length&&!Xh.historyInProgress&&!Xh.popup&&!Xh.breakpointManager){var n="undo"===e?Xh.historyIndex:Xh.historyIndex+1;if(0!==Xh.historyIndex||"undo"!==e){var i=Xh.history[n];i&&(Xh.historyInProgress=Date.now(),Object.keys(i).forEach(function(t){var n,r,o,a,s;Xh.hasOwnProperty(t)&&("deleted"===i._action&&(Xh.activeId=!1),"undo"===e?(Xh[t]=K_(Xh[t],i[t]),(null===(n=Xh.activeClass)||void 0===n||!n.id||"element"!==Xh.activePanel||null!==(r=Xh.activeElement)&&void 0!==r&&null!==(r=r.settings)&&void 0!==r&&r._cssGlobalClasses)&&(!Array.isArray(null===(o=Xh.activeElement)||void 0===o||null===(o=o.settings)||void 0===o?void 0:o._cssGlobalClasses)||null!==(a=Xh.activeElement)&&void 0!==a&&null!==(a=a.settings)&&void 0!==a&&a._cssGlobalClasses.includes(null===(s=Xh.activeClass)||void 0===s?void 0:s.id))||(Xh.activeClass=null)):Xh[t]=Q_(Xh[t],i[t]))}),Fn(function(){"undo"===e?Xh.historyIndex>0&&Xh.historyIndex--:Xh.historyIndex++,d_.forceRender(0),t&&d_.rerenderControls(),Xh.activeId&&!Dy(Xh.activeId)&&d_.showPanel(),setTimeout(function(){Xh.historyInProgress=!1},200)}))}}}};function PC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function FC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PC(Object(n),!0).forEach(function(t){$C(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $C(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=MC(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=MC(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==MC(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MC(e){return MC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},MC(e)}var LC=n(51029),NC=n.n(LC);var jC={id:"bricks-breakpoints-inner"},BC={class:"header"},RC=["textContent","data-after"],VC={class:"actions"},qC={key:0,class:"form-group breakpoint-error"},HC={key:1,class:"form-group breakpoint-key"},zC=["textContent"],UC=["textContent"],WC={class:"form-group breakpoint-label"},GC=["textContent"],KC={class:"form-group breakpoint-width"},QC=["textContent"],YC={class:""},JC=["textContent"],XC={class:"form-group breakpoint-default-width"},ZC=["textContent"],ex={class:""},tx={class:"form-group breakpoint-icon"},nx=["textContent"],ix={class:"breakpoint-icon"},rx={key:2,class:"form-group breakpoint-label"},ox=["textContent"],ax={class:""},sx={class:"form-group submit"},lx=["value","disabled"],cx=["textContent"],ux={key:1,class:"wrapper configure"},dx=["textContent"],px=["textContent"],hx={key:2,class:"breakpoints"},fx=["data-key"],mx=["textContent","title","data-after"],gx=["textContent"],vx={class:"actions"},yx={key:3,class:"wrapper"},bx=["textContent"],kx={class:"actions"},wx=["textContent"],_x=["textContent"];var Cx={data:function(){return{action:void 0,breakpointKey:void 0,breakpointLabel:void 0,breakpointWidth:void 0,breakpointWidthBuilder:void 0,breakpointIcon:void 0,breakpointIsBase:"desktop",breakpointUnit:"px",errorMessage:void 0}},computed:{breakpoints:function(){return this.$_state.breakpoints},breakpointSelected:function(){var e=this;return this.breakpointKey?this.breakpoints.find(function(t){return t.key===e.breakpointKey}):{}},baseBreakpoint:function(){return this.$_getBaseBreakpoint()},activeBreakpoints:function(){return this.$_clone(this.breakpoints).filter(function(e){return!(null!=e&&e.paused)})},disableFormSubmit:function(){return!this.breakpointKey||!this.breakpointLabel||!this.breakpointWidth||this.errorMessage}},methods:{close:function(e){"bricks-breakpoints"===e.target.id&&(this.$_state.breakpointManager=!1)},isBaseBreakpoint:function(e){var t,n;return e=e||this.breakpointSelected,(null===(t=this.baseBreakpoint)||void 0===t?void 0:t.key)===(null===(n=e)||void 0===n?void 0:n.key)},setBaseBreakpoint:function(e){this.breakpointIsBase=e},isCustomBreakpoint:function(e){return e.custom},atMediaRule:function(e){if(null!=e&&e.base)return this.i18n.baseBreakpoint;var t=this.$_getBaseBreakpointWidth();return(null==e?void 0:e.width)>t?"min-width: ".concat(null==e?void 0:e.width).concat(this.breakpointUnit):"max-width: ".concat(null==e?void 0:e.width).concat(this.breakpointUnit)},updateBreakpoint:function(e,t){var n,i,r,o,a,s,l=this;if("create"!==this.action||!this.errorMessage){"delete"===this.action&&(e=this.breakpointSelected);var c=this.breakpointKey||(null===(n=e)||void 0===n?void 0:n.key),u=this.breakpointWidthBuilder||(null===(i=e)||void 0===i?void 0:i.widthBuilder);this.$_http({data:{action:"bricks_update_breakpoints",do:t||this.action,key:c,label:this.breakpointLabel||(null===(r=e)||void 0===r?void 0:r.label),width:this.breakpointWidth||(null===(o=e)||void 0===o?void 0:o.width),widthBuilder:u,icon:this.breakpointIcon||(null===(a=e)||void 0===a?void 0:a.icon),base:this.breakpointIsBase||(null===(s=e)||void 0===s?void 0:s.base)},success:function(e){if(l.bricks.debug.includes("breakpoint")&&console.info("bricks_update_breakpoints",e.data),e.success){switch(c===l.$_state.breakpointActive&&u&&(l.$_state.previewWidth=u),t=t||l.action){case"create":l.$_showMessage("".concat(l.i18n.create,": ").concat(l.i18n.breakpoint));break;case"edit":l.$_showMessage("".concat(l.i18n.edited,": ").concat(l.i18n.breakpoint));break;case"reset":l.$_showMessage("".concat(l.i18n.reset,": ").concat(l.i18n.breakpoint));break;case"delete":l.$_showMessage("".concat(l.i18n.deleted,": ").concat(l.i18n.breakpoint));break;case"configure":l.$_showMessage("".concat(l.i18n.deleted,": ").concat(l.i18n.breakpoints))}if(l.breakpointKey=void 0,l.breakpointLabel=void 0,l.breakpointWidth=void 0,l.breakpointWidthBuilder=void 0,l.breakpointIcon=void 0,l.breakpointIsBase=void 0,l.action=void 0,e.data.breakpoints){l.$_state.breakpoints=e.data.breakpoints;var n=l.$_state.breakpoints.find(function(e){return null==e?void 0:e.base});null!=n&&n.key&&(l.$_state.breakpointActive=n.key)}}else e.data.error&&alert(e.data.error)}})}},editBreakpoint:function(e){var t=this;null!=e&&e.paused||(this.breakpointKey=null==e?void 0:e.key,this.breakpointIcon=(null==e?void 0:e.icon)||"desktop",this.action=void 0,this.$nextTick(function(){return t.action="edit"}))},confirmDelete:function(e){null!=e&&e.paused||(this.breakpointKey=e.key,this.action="delete")},cancelAction:function(){this.breakpointKey=void 0,this.breakpointLabel=void 0,this.breakpointWidth=void 0,this.breakpointIcon=void 0,this.breakpointIsBase=void 0,this.action=void 0}},watch:{"$_state.isPreviewing":{handler:function(){this.$_state.breakpointManager=!1}},breakpointLabel:function(e){if("create"===this.action){e=e.replace(/(?:[\0-\x08\x0E-\x1F!-,\.\/:-@\[-`\{-\x9F\xA1-\xA9\xAB-\xB1\xB4\xB6-\xB8\xBB\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u036F\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482-\u0489\u0530\u0557\u0558\u055A-\u055F\u0589-\u05CF\u05EB-\u05EE\u05F3-\u061F\u064B-\u065F\u066A-\u066D\u0670\u06D4\u06D6-\u06E4\u06E7-\u06ED\u06FD\u06FE\u0700-\u070F\u0711\u0730-\u074C\u07A6-\u07B0\u07B2-\u07BF\u07EB-\u07F3\u07F6-\u07F9\u07FB-\u07FF\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u083F\u0859-\u085F\u086B-\u086F\u0888\u0890-\u089F\u08CA-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962-\u0965\u0970\u0981-\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA-\u09BC\u09BE-\u09CD\u09CF-\u09DB\u09DE\u09E2-\u09E5\u09F2\u09F3\u09FA\u09FB\u09FD-\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A-\u0A58\u0A5D\u0A5F-\u0A65\u0A70\u0A71\u0A75-\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA-\u0ABC\u0ABE-\u0ACF\u0AD1-\u0ADF\u0AE2-\u0AE5\u0AF0-\u0AF8\u0AFA-\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A-\u0B3C\u0B3E-\u0B5B\u0B5E\u0B62-\u0B65\u0B70\u0B78-\u0B82\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BCF\u0BD1-\u0BE5\u0BF3-\u0C04\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C3E-\u0C57\u0C5B\u0C5E\u0C5F\u0C62-\u0C65\u0C70-\u0C77\u0C7F\u0C81-\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA-\u0CBC\u0CBE-\u0CDB\u0CDF\u0CE2-\u0CE5\u0CF0\u0CF3-\u0D03\u0D0D\u0D11\u0D3B\u0D3C\u0D3E-\u0D4D\u0D4F-\u0D53\u0D57\u0D62-\u0D65\u0D79\u0D80-\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DE5\u0DF0-\u0E00\u0E31\u0E34-\u0E3F\u0E47-\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EB1\u0EB4-\u0EBC\u0EBE\u0EBF\u0EC5\u0EC7-\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F1F\u0F34-\u0F3F\u0F48\u0F6D-\u0F87\u0F8D-\u0FFF\u102B-\u103E\u104A-\u104F\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B-\u1368\u137D-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u1712-\u171E\u1732-\u173F\u1752-\u175F\u176D\u1771-\u177F\u17B4-\u17D6\u17D8-\u17DB\u17DD-\u17DF\u17EA-\u17EF\u17FA-\u180F\u181A-\u181F\u1879-\u187F\u1885\u1886\u18A9\u18AB-\u18AF\u18F6-\u18FF\u191F-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DB-\u19FF\u1A17-\u1A1F\u1A55-\u1A7F\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1B04\u1B34-\u1B44\u1B4D-\u1B4F\u1B5A-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BFF\u1C24-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C8B-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1CFB-\u1CFF\u1DC0-\u1DFF\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u206F\u2072\u2073\u207A-\u207E\u208A-\u208F\u209D-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A-\u245F\u249C-\u24E9\u2500-\u2775\u2794-\u2BFF\u2CE5-\u2CEA\u2CEF-\u2CF1\u2CF4-\u2CFC\u2CFE\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7F\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF-\u2E2E\u2E30-\u2FFF\u3001-\u3004\u3008-\u3020\u302A-\u3030\u3036\u3037\u303D-\u3040\u3097-\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u3191\u3196-\u319F\u31C0-\u31EF\u3200-\u321F\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA66F-\uA67E\uA69E\uA69F\uA6F0-\uA716\uA720\uA721\uA789\uA78A\uA7DD-\uA7F0\uA802\uA806\uA80B\uA823-\uA82F\uA836-\uA83F\uA874-\uA881\uA8B4-\uA8CF\uA8DA-\uA8F1\uA8F8-\uA8FA\uA8FC\uA8FF\uA926-\uA92F\uA947-\uA95F\uA97D-\uA983\uA9B3-\uA9CE\uA9DA-\uA9DF\uA9E5\uA9FF\uAA29-\uAA3F\uAA43\uAA4C-\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAC3-\uAADA\uAADE\uAADF\uAAEB-\uAAF1\uAAF5-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABE3-\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB1E\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFE6F\uFE75\uFEFD\uFEFE\uFF00-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD06\uDD34-\uDD3F\uDD79-\uDD89\uDD8C-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEE0\uDEFC-\uDEFF\uDF24-\uDF2C\uDF4B-\uDF4F\uDF76-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDD6F\uDD7B\uDD8B\uDD93\uDD96\uDDA2\uDDB2\uDDBA\uDDBD-\uDDBF\uDDF4-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDF7F\uDF86\uDFB1\uDFBB-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56\uDC57\uDC77\uDC78\uDC9F-\uDCA6\uDCB0-\uDCDF\uDCF3\uDCF6-\uDCFA\uDD1C-\uDD1F\uDD3A-\uDD3F\uDD5A-\uDD7F\uDDB8-\uDDBB\uDDD0\uDDD1\uDE01-\uDE0F\uDE14\uDE18\uDE36-\uDE3F\uDE49-\uDE5F\uDE7F\uDEA0-\uDEBF\uDEC8\uDEE5-\uDEEA\uDEF0-\uDEFF\uDF36-\uDF3F\uDF56\uDF57\uDF73-\uDF77\uDF92-\uDFA8\uDFB0-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCF9\uDD24-\uDD2F\uDD3A-\uDD3F\uDD66-\uDD6E\uDD86-\uDE5F\uDE7F\uDEAA-\uDEAF\uDEB2-\uDEC1\uDEC8-\uDEFF\uDF28-\uDF2F\uDF46-\uDF50\uDF55-\uDF6F\uDF82-\uDFAF\uDFCC-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC00-\uDC02\uDC38-\uDC51\uDC70\uDC73\uDC74\uDC76-\uDC82\uDCB0-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDD02\uDD27-\uDD35\uDD40-\uDD43\uDD45\uDD46\uDD48-\uDD4F\uDD73-\uDD75\uDD77-\uDD82\uDDB3-\uDDC0\uDDC5-\uDDCF\uDDDB\uDDDD-\uDDE0\uDDF5-\uDDFF\uDE12\uDE2C-\uDE3E\uDE41-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEDF-\uDEEF\uDEFA-\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A-\uDF3C\uDF3E-\uDF4F\uDF51-\uDF5C\uDF62-\uDF7F\uDF8A\uDF8C\uDF8D\uDF8F\uDFB6\uDFB8-\uDFD0\uDFD2\uDFD4-\uDFFF]|\uD805[\uDC35-\uDC46\uDC4B-\uDC4F\uDC5A-\uDC5E\uDC62-\uDC7F\uDCB0-\uDCC3\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDAF-\uDDD7\uDDDC-\uDDFF\uDE30-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEAB-\uDEB7\uDEB9-\uDEBF\uDECA-\uDECF\uDEE4-\uDEFF\uDF1B-\uDF2F\uDF3C-\uDF3F\uDF47-\uDFFF]|\uD806[\uDC2C-\uDC9F\uDCF3-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD30-\uDD3E\uDD40\uDD42-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD1-\uDDE0\uDDE2\uDDE4-\uDDFF\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE4F\uDE51-\uDE5B\uDE8A-\uDE9C\uDE9E-\uDEAF\uDEF9-\uDFBF\uDFE1-\uDFEF\uDFFA-\uDFFF]|\uD807[\uDC09\uDC2F-\uDC3F\uDC41-\uDC4F\uDC6D-\uDC71\uDC90-\uDCFF\uDD07\uDD0A\uDD31-\uDD45\uDD47-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8A-\uDD97\uDD99-\uDD9F\uDDAA-\uDDAF\uDDDC-\uDDDF\uDDEA-\uDEDF\uDEF3-\uDF01\uDF03\uDF11\uDF34-\uDF4F\uDF5A-\uDFAF\uDFB1-\uDFBF\uDFD5-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD812-\uD817\uD819\uD824-\uD82A\uD82D\uD82E\uD830-\uD832\uD836\uD83D\uD83F\uD87C\uD87D\uD87F\uD88E-\uDBFF][\uDC00-\uDFFF]|\uD80B[\uDC00-\uDF8F\uDFF1-\uDFFF]|\uD80D[\uDC30-\uDC40\uDC47-\uDC5F]|\uD810[\uDFFB-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD818[\uDC00-\uDCFF\uDD1E-\uDD2F\uDD3A-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDE6F\uDEBF\uDECA-\uDECF\uDEEE-\uDEFF\uDF30-\uDF3F\uDF44-\uDF4F\uDF5A\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDD3F\uDD6D-\uDD6F\uDD7A-\uDE3F\uDE97-\uDE9F\uDEB9\uDEBA\uDED4-\uDEFF\uDF4B-\uDF4F\uDF51-\uDF92\uDFA0-\uDFDF\uDFE2\uDFE4-\uDFF1\uDFF7-\uDFFF]|\uD823[\uDCD6-\uDCFE\uDD1F-\uDD7F\uDDF3-\uDFFF]|\uD82B[\uDC00-\uDFEF\uDFF4\uDFFC\uDFFF]|\uD82C[\uDD23-\uDD31\uDD33-\uDD4F\uDD53\uDD54\uDD56-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDFFF]|\uD833[\uDC00-\uDCEF\uDCFA-\uDFFF]|\uD834[\uDC00-\uDEBF\uDED4-\uDEDF\uDEF4-\uDF5F\uDF79-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD837[\uDC00-\uDEFF\uDF1F-\uDF24\uDF2B-\uDFFF]|\uD838[\uDC00-\uDC2F\uDC6E-\uDCFF\uDD2D-\uDD36\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDE8F\uDEAE-\uDEBF\uDEEC-\uDEEF\uDEFA-\uDFFF]|\uD839[\uDC00-\uDCCF\uDCEC-\uDCEF\uDCFA-\uDDCF\uDDEE\uDDEF\uDDFB-\uDEBF\uDEDF\uDEE3\uDEE6\uDEEE\uDEEF\uDEF5-\uDEFD\uDF00-\uDFDF\uDFE7\uDFEC\uDFEF\uDFFF]|\uD83A[\uDCC5\uDCC6\uDCD0-\uDCFF\uDD44-\uDD4A\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDC70\uDCAC\uDCB0\uDCB5-\uDD00\uDD2E\uDD3E-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEE0-\uDEFF]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEAE\uDEAF]|\uD87A[\uDFE1-\uDFEF]|\uD87B[\uDE5E-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDF4F]|\uD88D[\uDC7A-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,"").replace(/[\s-]+/g,"_").toLowerCase(),this.breakpointKey=e;if(!/^(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD40-\uDD59\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDD4A-\uDD65\uDD6F-\uDD85\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC7\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDB0-\uDDDB\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDE40-\uDE7F\uDEA0-\uDEB8\uDEBB-\uDED3\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3\uDFF2\uDFF3]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDDD0-\uDDED\uDDF0\uDEC0-\uDEDE\uDEE0-\uDEE2\uDEE4\uDEE5\uDEE7-\uDEED\uDEF0-\uDEF4\uDEFE\uDEFF\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79])/.test(e))return void(this.errorMessage=this.i18n.breakpointLabelErrorMessage);this.errorMessage=void 0}},action:function(e,t){var n,i,r,o,a;if(e!==t)switch(e){case"create":this.breakpointKey=void 0,this.breakpointLabel=void 0,this.breakpointWidth=void 0,this.breakpointWidthBuilder=void 0,this.breakpointIcon="desktop";break;case"edit":this.breakpointLabel=null===(n=this.breakpointSelected)||void 0===n?void 0:n.label,this.breakpointWidth=null===(i=this.breakpointSelected)||void 0===i?void 0:i.width,this.breakpointWidthBuilder=null===(r=this.breakpointSelected)||void 0===r?void 0:r.widthBuilder,this.breakpointIcon=null===(o=this.breakpointSelected)||void 0===o?void 0:o.icon,this.breakpointIsBase=null===(a=this.breakpointSelected)||void 0===a?void 0:a.base}else this.action=void 0}}},xx=n(66262);var Sx=(0,xx.A)(Cx,[["render",function(e,t,n,i,r,o){var a,s=$r("icon"),l=$r("control-info"),c=$r("control-text"),u=$r("control-number"),d=$r("control-checkbox");return e.$_state.breakpointManager?(Ta(),Ma("div",{key:0,id:"bricks-breakpoints",onClick:t[12]||(t[12]=bc(function(e){return o.close(e)},["stop"]))},[qa("div",jC,[qa("div",BC,[qa("div",{class:"title",textContent:he(e.i18n.breakpoints),"data-after":e.$_isMobileFirst.value?e.i18n.mobileFirst:null},null,8,RC),qa("div",VC,[Ha(s,{name:"add",class:te(["create",{active:"create"===r.action}]),"data-balloon":e.i18n.create,"data-balloon-pos":"bottom",onClick:t[0]||(t[0]=function(e){return r.action="create"===r.action?null:"create"})},null,8,["class","data-balloon"]),Ha(s,{name:"settings",class:te(["configure",{active:"configure"===r.action}]),"data-balloon":e.i18n.configure,"data-balloon-pos":"bottom",onClick:t[1]||(t[1]=function(e){return r.action="configure"===r.action?null:"configure"})},null,8,["class","data-balloon"]),Ha(s,{name:"close",class:"close","data-balloon":e.i18n.close,"data-balloon-pos":"bottom",onClick:t[2]||(t[2]=function(t){return e.$_state.breakpointManager=!1})},null,8,["data-balloon"])])]),"create"===r.action||"edit"===r.action?(Ta(),Ma("form",{key:0,onSubmit:t[8]||(t[8]=bc(function(e){return o.updateBreakpoint()},["prevent"]))},[r.errorMessage?(Ta(),Ma("div",qC,[Ha(l,{class:"error",control:{content:r.errorMessage}},null,8,["control"])])):Qa("",!0),r.breakpointKey?(Ta(),Ma("div",HC,[qa("label",{for:"breakpoint-key",textContent:he(e.i18n.key)},null,8,zC),qa("code",{textContent:he(r.breakpointKey)},null,8,UC)])):Qa("",!0),qa("div",WC,[qa("label",{for:"breakpoint-label",textContent:he("".concat(e.i18n.label," *"))},null,8,GC),Ha(c,{controlKey:"breakpoint-label",control:{hasDynamicData:!1},value:r.breakpointLabel,onInput:t[3]||(t[3]=function(e){return r.breakpointLabel=e})},null,8,["value"])]),qa("div",KC,[qa("label",{for:"breakpoint-width",textContent:he("".concat(e.i18n.width," (").concat(r.breakpointUnit,") *"))},null,8,QC),qa("div",YC,[Ha(u,{controlKey:"breakpoint-width",control:{units:!1,min:240},value:r.breakpointWidth,onInput:t[4]||(t[4]=function(e){return r.breakpointWidth=e})},null,8,["value"]),o.isBaseBreakpoint()?(Ta(),Ma("p",{key:0,class:"wrapper info-message",textContent:he(e.i18n.breakpointBaseMessage)},null,8,JC)):Qa("",!0)])]),qa("div",XC,[qa("label",{for:"breakpoint-builder-default-width",textContent:he("".concat(e.i18n.width," (").concat(e.i18n.builder,")"))},null,8,ZC),qa("div",ex,[Ha(u,{controlKey:"breakpoint-builder-default-width",control:{units:!1,placeholder:r.breakpointWidth},value:r.breakpointWidthBuilder,onInput:t[5]||(t[5]=function(e){return r.breakpointWidthBuilder=e})},null,8,["control","value"])])]),qa("div",tx,[qa("label",{for:"breakpoint-icon",textContent:he(e.i18n.icon)},null,8,nx),qa("div",ix,[(Ta(),Ma(Ca,null,Rr(["desktop-3","desktop-2","desktop","laptop","tablet-landscape","tablet-portrait","phone-landscape","phone-portrait"],function(e,t){return Ha(s,{key:t,name:e,"data-balloon":e,class:te([{selected:e===r.breakpointIcon}]),onClick:function(t){return r.breakpointIcon=e}},null,8,["name","data-balloon","class","onClick"])}),64))])]),null!==(a=o.breakpointSelected)&&void 0!==a&&a.base||"create"===r.action?Qa("",!0):(Ta(),Ma("div",rx,[qa("label",{for:"breakpoint-is-base",textContent:he("".concat(e.i18n.baseBreakpoint))},null,8,ox),qa("div",ax,[Ha(d,{controlKey:"breakpoint-is-base",value:r.breakpointIsBase,onInput:t[6]||(t[6]=function(e){return o.setBaseBreakpoint(e)})},null,8,["value"])])])),qa("div",sx,[qa("input",{type:"submit",class:te(r.action),value:"create"===r.action?e.i18n.create:e.i18n.update,disabled:o.disableFormSubmit},null,10,lx),qa("button",{class:"cancel",onClick:t[7]||(t[7]=function(e){return o.cancelAction()}),textContent:he(e.i18n.cancel)},null,8,cx)])],32)):Qa("",!0),"configure"===r.action?(Ta(),Ma("div",ux,[qa("p",{class:"description",textContent:he(e.i18n.resetBreakpointsDescription)},null,8,dx),qa("button",{class:"delete",textContent:he("".concat(e.i18n.reset,": ").concat(e.i18n.breakpoints)),onClick:t[9]||(t[9]=function(e){return o.updateBreakpoint()})},null,8,px)])):Qa("",!0),o.breakpoints.length?(Ta(),Ma("ul",hx,[(Ta(!0),Ma(Ca,null,Rr(o.breakpoints,function(t,n){return Ta(),Ma("li",{key:t.key,"data-key":t.key,class:te(["breakpoint",{base:o.isBaseBreakpoint(t)},{paused:null==t?void 0:t.paused},{active:r.breakpointKey===(null==t?void 0:t.key)},{custom:null==t?void 0:t.custom},{inactive:r.breakpointKey&&r.breakpointKey!==(null==t?void 0:t.key)},{disabled:"create"===r.action}])},[Ha(s,{class:"icon",name:null==t?void 0:t.icon},null,8,["name"]),qa("label",{class:te(["label",{"data-after":null==t?void 0:t.custom}]),textContent:he(null==t?void 0:t.label),title:null==t?void 0:t.label,"data-after":null!=t&&t.custom?e.i18n.custom:""},null,10,mx),qa("div",{class:"width",textContent:he(o.atMediaRule(t))},null,8,gx),qa("div",vx,[null!=t&&t.custom||null==t||!t.edited?Qa("",!0):(Ta(),La(s,{key:0,name:"refresh",class:"reset","data-balloon":e.i18n.reset,onClick:bc(function(e){return o.updateBreakpoint(t,"reset")},["stop"])},null,8,["data-balloon","onClick"])),t.custom?(Ta(),La(s,{key:1,name:"trash","data-balloon":e.i18n.delete,onClick:function(e){return o.confirmDelete(t)}},null,8,["data-balloon","onClick"])):Qa("",!0),Ha(s,{name:"edit","data-balloon":e.i18n.edit,onClick:function(e){return o.editBreakpoint(t)}},null,8,["data-balloon","onClick"])]),Ha(d,{class:"toggle",control:{readonly:!(null!=t&&t.custom)},"data-balloon":null!=t&&t.paused?e.i18n.paused:e.i18n.active,value:!(null!=t&&t.paused),onInput:function(e){return o.updateBreakpoint(t,"pause")}},null,8,["control","data-balloon","value","onInput"])],10,fx)}),128))])):Qa("",!0),"delete"===r.action?(Ta(),Ma("div",yx,[qa("p",{class:"info-message",textContent:he(e.i18n.breakpointDeleteDescription)},null,8,bx),qa("div",kx,[qa("button",{class:"delete",onClick:t[10]||(t[10]=function(e){return o.updateBreakpoint()}),textContent:he(e.i18n.delete)},null,8,wx),qa("button",{class:"cancel",onClick:t[11]||(t[11]=function(e){return o.cancelAction()}),textContent:he(e.i18n.cancel)},null,8,_x)])])):Qa("",!0)])])):Qa("",!0)}]]),Ex=["data-balloon"],Ax=["innerHTML"],Dx={class:"notifications-header"},Tx=["textContent"],Ix=["textContent","disabled"],Ox={class:"notifications-list"},Px=["data-action"],Fx=["innerHTML"],$x=["innerHTML"],Mx={class:"notification-content"},Lx={class:"notification-meta"},Nx=["textContent"],jx=["textContent"],Bx=["innerHTML"],Rx={key:0,class:"notification-actions"},Vx=["onClick"],qx=["textContent"],Hx=["onClick"],zx=["textContent"],Ux={key:1,class:"notification-actions"},Wx=["data-balloon","onClick"],Gx=["data-balloon","onClick"],Kx=["data-balloon","onClick"],Qx=["innerHTML"];var Yx={props:{placement:{type:String,default:"toolbar"}},data:function(){return{showCounter:!1,popupPopoverStyle:{}}},computed:{hasConflicts:function(){return this.$_state.hasConflicts},notifications:function(){return this.$_state.notifications},notificationsCount:function(){return this.notifications.length}},methods:{toggleNotifications:function(){this.$_state.showNotifications=!this.$_state.showNotifications,this.$_state.showNotifications&&this.$nextTick(this.updatePopoverPosition)},updatePopoverPosition:function(){var e;if("popup"===this.placement){var t=(null===(e=this.$refs.root)||void 0===e?void 0:e.closest("li.save"))||this.$refs.root,n=null==t?void 0:t.getBoundingClientRect();if(n){var i={top:"".concat(n.bottom+8,"px")};this.bricks.isRtl?i.left="".concat(n.left-8,"px"):i.right="".concat(window.innerWidth-n.right-8,"px"),this.popupPopoverStyle=i}}},handleModifiedClass:function(e,t){var n=this;if("accept"===e){var i,r=this.$_clone(this.$_state.globalClasses),o=this.notifications[t],a=Array.isArray(null==o?void 0:o.data)?o.data:[];if(a.forEach(function(e){r=r.map(function(t){return t.id===e.id&&(t=e),t})}),this.$_state.globalClasses=r,null!==(i=this.$_state.activeClass)&&void 0!==i&&i.id){var s=a.find(function(e){return e.id===n.$_state.activeClass.id});s&&(this.$_state.activeClass=this.$_clone(s))}this.$_rerenderControls()}this.$_state.notifications.splice(t,1)},toggleDetails:function(e){this.$_state.notifications[e].showDetails=!this.$_state.notifications[e].showDetails},getDetails:function(e){var t="";return e.data.forEach(function(e){t+='<li class="item">.'.concat(e.name,"</li>")}),t?'<ul class="items">'.concat(t,"</ul>"):""},getDate:function(e){var t=new Date(Number(1e3*e));if(isNaN(t.getTime()))return"Invalid Date";var n=new Date-t,i=Math.floor(n/1e3),r=Math.floor(i/60),o=Math.floor(r/60),a=Math.floor(o/24),s=Math.floor(a/7),l=Math.floor(a/30),c=Math.floor(a/365);return c>0?c+(1===c?" year ago":" years ago"):l>0?l+(1===l?" month ago":" months ago"):s>0?s+(1===s?" week ago":" weeks ago"):a>0?a+(1===a?" day ago":" days ago"):o>0?o+(1===o?" hour ago":" hours ago"):r>0?r+(1===r?" minute ago":" minutes ago"):i+(1===i?" second ago":" seconds ago")},markAsRead:function(e){this.$_state.notifications.splice(e,1),this.$_state.orphanedElementIds=[]},handleCleanup:function(e){var t=this.notifications[e];"orphaned"===(null==t?void 0:t.issueType)&&this.$_cleanupOrphanedElements(t.issues),this.$_state.notifications.splice(e,1)},markAllAsRead:function(){this.hasConflicts||(this.$_state.notifications=[],this.showNotifications=!1)},closeNotifications:function(e){("function"==typeof(null==e?void 0:e.composedPath)?e.composedPath():(null==e?void 0:e.path)||[]).some(function(e){var t;return null==e||null===(t=e.classList)||void 0===t?void 0:t.contains("notifications-popover")})||this.hasConflicts||(this.$_state.showNotifications=!1)}},watch:{"$_state.showNotifications":function(e){e&&this.$nextTick(this.updatePopoverPosition)},hasConflicts:function(e,t){e&&this.$nextTick(this.updatePopoverPosition),t&&!e&&this.$_savePost({skipNotifications:!0})},notificationsCount:{handler:function(){var e=this;this.notificationsCount?setTimeout(function(){e.showCounter=!0,e.$nextTick(e.updatePopoverPosition)},100):this.showCounter=!1,this.notifications.some(function(e){return e.conflict})||(this.notificationsCount&&!this.$_state.showNotifications&&(this.$_state.showNotifications=!0),this.$_state.hasConflicts=!1)},immediate:!0}},mounted:function(){window.addEventListener("resize",this.updatePopoverPosition)},beforeUnmount:function(){window.removeEventListener("resize",this.updatePopoverPosition)}};const Jx=(0,xx.A)(Yx,[["render",function(e,t,n,i,r,o){var a=$r("icon"),s=Nr("clickaway");return Xn((Ta(),Ma("div",{ref:"root",class:te(["bricks-notifications",[n.placement,{"has-conflicts":o.hasConflicts}]]),onClick:t[3]||(t[3]=bc(function(){},["stop"]))},[qa("div",{class:te(["notifications-counter",{show:r.showCounter}]),"data-balloon":e.i18n.notifications.title,"data-balloon-pos":"bottom-right",onClick:t[0]||(t[0]=bc(function(){return o.toggleNotifications&&o.toggleNotifications.apply(o,arguments)},["stop"]))},[qa("span",{innerHTML:o.notifications.length},null,8,Ax)],10,Ex),(Ta(),La(wi,{to:"body",disabled:"popup"!==n.placement},[e.$_state.showNotifications||o.hasConflicts?(Ta(),Ma("div",{key:0,class:te(["notifications-popover",n.placement]),style:Y("popup"===n.placement?r.popupPopoverStyle:null),onClick:t[2]||(t[2]=bc(function(){},["stop"]))},[qa("div",Dx,[qa("h2",{class:"notifications-title",textContent:he(e.i18n.notifications.title)},null,8,Tx),qa("button",{onClick:t[1]||(t[1]=bc(function(){return o.markAllAsRead&&o.markAllAsRead.apply(o,arguments)},["stop"])),textContent:he(e.i18n.markAllAsRead),disabled:o.hasConflicts},null,8,Ix)]),qa("div",Ox,[(Ta(!0),Ma(Ca,null,Rr(o.notifications,function(t,n){return Ta(),Ma("div",{key:n+(null==t?void 0:t.action),class:te(["notification-item",{conflict:null==t?void 0:t.conflict}]),"data-action":null==t?void 0:t.action},[null!=t&&t.conflict?(Ta(),Ma("div",{key:0,class:"notification-message conflict",innerHTML:t.conflict},null,8,Fx)):Qa("",!0),qa("div",{class:"notification-avatar",innerHTML:t.avatar},null,8,$x),qa("div",Mx,[qa("div",Lx,[qa("h6",{class:"notification-author",textContent:he(t.author)},null,8,Nx),null!=t&&t.timestamp?(Ta(),Ma("div",{key:0,class:"notification-timestamp",textContent:he(o.getDate(t.timestamp))},null,8,jx)):Qa("",!0)]),qa("div",{class:"notification-desc",innerHTML:t.desc},null,8,Bx),null!=t&&t.conflict?(Ta(),Ma("div",Rx,[qa("button",{onClick:bc(function(e){return o.handleModifiedClass("accept",n)},["stop"])},[qa("span",{textContent:he(e.i18n.accept)},null,8,qx),Ha(a,{name:"check"})],8,Vx),qa("button",{onClick:bc(function(e){return o.handleModifiedClass("discard",n)},["stop"])},[qa("span",{textContent:he(e.i18n.discard)},null,8,zx),Ha(a,{name:"trash"})],8,Hx)])):Qa("",!0),null!=t&&t.conflict?Qa("",!0):(Ta(),Ma("div",Ux,[Array.isArray(t.data)?(Ta(),Ma("button",{key:0,"data-balloon":e.i18n.details,onClick:bc(function(e){return o.toggleDetails(n)},["stop"])},[Ha(a,{name:"preview"})],8,Wx)):Qa("",!0),"orphaned"===(null==t?void 0:t.issueType)?(Ta(),Ma("button",{key:1,"data-balloon":e.i18n.cleanUp,onClick:bc(function(e){return o.handleCleanup(n)},["stop"])},[Ha(a,{name:"trash"})],8,Gx)):Qa("",!0),qa("button",{"data-balloon":e.i18n.close,onClick:bc(function(e){return o.markAsRead(n)},["stop"])},[Ha(a,{name:"check"})],8,Kx)])),null!=t&&t.showDetails||null!=t&&t.conflict?(Ta(),Ma("div",{key:2,class:"notification-details",innerHTML:o.getDetails(t)},null,8,Qx)):Qa("",!0)])],10,Px)}),128))])],6)):Qa("",!0)],8,["disabled"]))],2)),[[pl,o.notificationsCount],[s,o.closeNotifications]])}]]);var Xx=Jx,Zx={class:"group-wrapper start"},eS=["data-balloon"],tS=["href","target"],nS=["src"],iS=["data-balloon"],rS=["data-balloon"],oS=["data-balloon"],aS=["data-balloon"],sS=["data-balloon"],lS=["data-balloon"],cS={class:"group-wrapper breakpoints"},uS=["data-balloon"],dS=["data-balloon"],pS=["data-balloon"],hS=["data-balloon","onKeyup","onClick"],fS=["data-balloon"],mS=["value","readonly"],gS={key:1,class:"text"},vS=["data-balloon"],yS=["value"],bS={for:"preview-height",class:"unit"},kS=["data-balloon"],wS=["value","readonly"],_S=["textContent"],CS={class:"group-wrapper end"},xS=["data-balloon"],SS=["data-balloon"],ES=["data-balloon"],AS=["data-balloon"],DS=["data-balloon"],TS=["href"],IS=["data-balloon"],OS=["data-balloon"],PS=["data-balloon"];var FS={data:function(){return{scaleLabelHover:!1,widthLabelHover:!1,logoUrl:"",logoTooltip:"",classVarTooltip:""}},computed:{structureTooltip:function(){return this.$_state.showStructure?this.i18n.structure:"".concat(this.i18n.structure," (").concat(this.i18n.hidden,")")},breakpoints:function(){return this.$_state.breakpoints.filter(function(e){return!e.paused})},hasColorPaletteWithDarkModeColors:function(){return this.$_state.colorPalette&&this.$_state.colorPalette.some(function(e){return e.colors&&e.colors.some(function(e){return e.dark})})}},methods:{setLogoUrl:function(){switch(this.logoTooltip="".concat(this.i18n.goTo,": "),this.bricks.toolbarLogoLink||"current"){case"current":this.logoTooltip+=this.i18n.viewOnFrontend,this.logoUrl=this.$_state.previewUrl;break;case"home":this.logoTooltip+=this.i18n.homePage,this.logoUrl=this.bricks.homeUrl;break;case"dashboard":this.logoTooltip+=this.i18n.dashboard,this.logoUrl=this.bricks.adminUrl;break;case"postType":this.logoTooltip+=this.i18n.postType,this.logoUrl=this.bricks.postTypeUrl;break;case"wp":this.logoTooltip+=this.i18n.editInWordPress,this.logoUrl=this.$_state.editPostUrl;break;case"custom":this.logoUrl=this.bricks.toolbarLogoLinkCustom||this.$_state.previewUrl,this.logoTooltip+=this.i18n.custom}},doAction:function(e){var t,n,i=this;switch(e){case"mode":this.$_state.mode="light"===this.$_state.mode?"dark":"light";break;case"styles":this.$_state.popup="styles"===this.$_state.popup?null:"styles";break;case"commandPalette":this.$_state.showCommandPalette=!0;break;case"docs":this.$_state.popup="docs";break;case"elements":this.$_showPanel();break;case"reloadCanvas":this.reloadCanvas();break;case"breakpoints":this.$_state.breakpointManager=!this.$_state.breakpointManager;break;case"previewScale":this.$_state.previewScaleActive=!this.$_state.previewScaleActive;break;case"undo":!this.$_state.historyInProgress&&this.$_goto("undo");break;case"redo":!this.$_state.historyInProgress&&this.$_goto("redo");break;case"history":this.$_showPanel({panel:"history"});break;case"structure":this.$_state.showStructure=!this.$_state.showStructure;break;case"publish":this.$_http({data:{action:"bricks_publish_post"},success:function(e){e=e.data,i.$_state.postStatus="publish",i.$_showMessage(i.i18n.published)}});break;case"reloadPreview":var r=null===(t=window.sessionStorage)||void 0===t?void 0:t.tabId,o=null===(n=window.sessionStorage)||void 0===n?void 0:n.previewId;r||(r=window.sessionStorage.tabId=Math.random().toString(36),o&&delete window.sessionStorage.previewId),window.bricksPreviewWindow&&(window.bricksPreviewWindow.closed||window.bricksPreviewWindow.sessionStorage.previewId!==r)&&(r=window.sessionStorage.tabId=Math.random().toString(36)),window.bricksPreviewWindow=window.open(this.$_state.previewUrl,"bricksPreview_".concat(r)),window.bricksPreviewWindow.sessionStorage.previewId=r,delete window.bricksPreviewWindow.sessionStorage.tabId;break;case"togglePreview":this.$_state.isPreviewing=!this.$_state.isPreviewing;break;case"save":this.$_savePost()}},reloadCanvas:function(){var e=this;document.getElementById("bricks-builder-iframe")&&("main"===this.$_state.messageOrigin&&this.$_postMessage({key:"globalClasses",value:this.$_state.globalClasses}),this.$nextTick(function(){e.$_reloadCanvas()}))},togglePreviewWidthLocked:function(){"desktop"===this.$_state.breakpointActive&&(this.$_state.previewWidthLocked=!this.$_state.previewWidthLocked&&this.$_state.previewWidth)},getBreakpointLabel:function(e){var t=e.label;return e.base?t+=" (".concat(this.i18n.baseBreakpoint,")"):e.width<this.$_getBaseBreakpointWidth()?t+=" (<= ".concat(e.width,"px)"):e.width>this.$_getBaseBreakpointWidth()&&(t+=" (>= ".concat(e.width,"px)")),t},setBreakpoint:function(e){this.$_state.messageOrigin="main",this.$_state.breakpointActive=e},setPreviewWidth:function(e){var t,n,i=this,r=e>240?parseInt(e):240,o=this.$_getBaseBreakpointWidth(),a=this.breakpoints;a.forEach(function(e,t){var s=!!a[t+1]&&a[t+1];i.$_isMobileFirst.value?(null==s?void 0:s.width)<=r&&(n=s):!n&&r>o&&(null==e?void 0:e.width)>o&&(null==e?void 0:e.width)<r?n=e:r<o&&(null==s?void 0:s.width)>=r&&(n=s)}),null!==(t=n)&&void 0!==t&&t.key?this.$_state.breakpointActive=n.key:this.$_state.breakpointActive=this.$_getBaseBreakpointKey(),this.$nextTick(function(){i.$_state.previewWidth=r})},setPreviewHeight:function(e){this.$_state.previewHeight=e?e>320?parseInt(e):320:null},setPreviewScaleMax:function(e,t){if(this.$_state.previewScaleActive){var n=e/100;n>1?n=1:n<.1&&(n=.1),this.$_state.previewScaleMax=n,t.target.value=Math.floor(100*this.$_previewScale.value)}},getPreviewHeight:function(){var e=this,t=this.$_state.breakpoints.find(function(t){return t.key===e.$_state.breakpointActive});if(t){var n=(null==t?void 0:t.widthBuilder)||(null==t?void 0:t.width);if(n){var i=null!=t&&t.ratio?t.ratio.split(":"):[];if(2===i.length){var r=parseInt(i[0]),o=parseInt(i[1]);return Math.round(n/r*o)}return 0}}}},created:function(){this.setLogoUrl()},watch:{"$_state.mode":{handler:function(e){var t=e;if(e&&"auto"!==e){var n=this.$_getIframeDoc();null!=n&&n.documentElement&&(n.documentElement.dataset.brxTheme=t)}else{var i=this.$_getIframeWindow();t=null!=i&&i.matchMedia&&i.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",this.$_state.mode=t}},immediate:!1},"$_state.postId":{handler:function(){if(this.setLogoUrl(),window.bricksPreviewWindow&&!window.bricksPreviewWindow.closed)try{window.bricksPreviewWindow.location.replace(this.$_state.previewUrl)}catch(e){console.warn("Could not auto-update preview window",e)}}},"$_state.isReloadingCanvas":{handler:function(e){var t=this;e&&(this.$_forceRender(0),setTimeout(function(){t.$_state.isReloadingCanvas=!1},600))}},"$_state.breakpointActive":{handler:function(){var e=this,t=this.$_getPreviewWidth();t&&(this.$_state.previewWidth=t),this.$_state.breakpointActiveIndex=this.$_state.breakpoints.findIndex(function(t){return t.key===e.$_state.breakpointActive})},immediate:!0},"$_state.previewWrapperWidth":{handler:function(){var e=this.$_getPreviewWidth();e&&(this.$_state.previewWidth=e)}},"$_state.previewWidthLocked":{handler:function(e){this.$_http({data:{action:"bricks_save_builder_width_locked",width:e}})}},"$_state.previewScaleActive":{handler:function(e){this.$_http({data:{action:"bricks_save_builder_scale_off",off:!e}})}},"$_state.popup":{handler:function(e){e&&this.$_state.showCommandPalette&&(this.$_state.showCommandPalette=!1)}},"$_state.showCommandPalette":{handler:function(e){e&&!this.$_state.renderCommandPalette&&(this.$_state.renderCommandPalette=!0)}}}};var $S=(0,xx.A)(FS,[["render",function(e,t,n,i,r,o){var a=$r("icon");return Ta(),Ma("div",{id:"bricks-toolbar",class:te([{"is-previewing":e.$_state.isPreviewing}]),onClick:t[45]||(t[45]=bc(function(t){return e.$_showPanel()},["self"]))},[qa("ul",Zx,[qa("li",{"data-balloon":r.logoTooltip,"data-balloon-pos":"bottom-left",class:"logo max"},[qa("a",{href:r.logoUrl,target:e.bricks.toolbarLogoLinkNewTab?"_blank":"_self"},[qa("img",{src:"".concat(e.bricks.assetsUrl,"images/bricks-favicon-b.svg"),alt:"Bricks"},null,8,nS)],8,tS)],8,eS),e.$_hasStyleManagerAccess()?(Ta(),Ma("li",{key:0,class:te(["styles",{active:"styles"===e.$_state.popup}]),"data-balloon":e.i18n.styles,"data-balloon-pos":"bottom",tabindex:"0",onKeyup:t[0]||(t[0]=wc(function(e){return o.doAction("styles")},["enter"])),onClick:t[1]||(t[1]=bc(function(e){return o.doAction("styles")},["stop"]))},[Ha(a,{name:"css3"})],42,iS)):Qa("",!0),qa("li",{class:te(["pages",{active:"pages"===e.$_state.activePanel}]),"data-balloon":e.i18n.pages,"data-balloon-pos":"bottom",tabindex:"0",onKeyup:t[2]||(t[2]=wc(function(t){return e.$_showPanel({panel:"pages"})},["enter"])),onClick:t[3]||(t[3]=bc(function(t){return e.$_showPanel({panel:"pages"})},["stop"]))},[Ha(a,{name:"pages"})],42,rS),e.$_userHasPermission("create_templates")||e.$_userHasPermission("edit_templates")||e.$_userHasPermission("insert_templates")?(Ta(),Ma("li",{key:1,class:te(["templates",{active:"templates"===e.$_state.popup}]),"data-balloon":e.i18n.templates,"data-balloon-pos":"bottom",tabindex:"0",onKeyup:t[4]||(t[4]=wc(function(t){return e.$_state.popup="templates"},["enter"])),onClick:t[5]||(t[5]=bc(function(t){return e.$_state.popup="templates"},["stop"]))},[Ha(a,{name:"folder"})],42,oS)):Qa("",!0),e.$_userHasPermission("access_page_settings")||e.$_userHasPermission("access_template_settings")||e.$_userHasPermission("access_theme_styles")||e.$_userHasPermission("access_revisions")||e.$_userHasPermission("access_font_manager")||e.$_userHasPermission("access_icon_manager")?(Ta(),Ma("li",{key:2,class:te(["settings",{active:"history"===e.$_state.activePanel||-1!==e.$_state.activePanel.indexOf("settings")}]),"data-balloon":e.i18n.manage,"data-balloon-pos":"bottom",tabindex:"0",onKeyup:t[6]||(t[6]=wc(function(t){return e.$_showPanel({panel:"settings"})},["enter"])),onClick:t[7]||(t[7]=bc(function(t){return e.$_showPanel({panel:"settings"})},["stop"]))},[Ha(a,{name:"settings"})],42,aS)):Qa("",!0),qa("li",{class:"command-palette","data-balloon":e.i18n.commandPalette,"data-balloon-pos":"bottom",tabindex:"0",onKeyup:t[8]||(t[8]=wc(function(e){return o.doAction("commandPalette")},["enter"])),onClick:t[9]||(t[9]=bc(function(e){return o.doAction("commandPalette")},["stop"]))},[Ha(a,{name:"cmd"})],40,sS),e.$_userCanAddAnyElements()||e.$_userHasPermission("insert_components")||e.$_userHasPermission("manage_global_elements")?(Ta(),Ma("li",{key:3,class:te(["elements",{active:"elements"===e.$_state.activePanel}]),"data-balloon":"".concat(e.i18n.elements,"/").concat(e.i18n.components),"data-balloon-pos":"bottom",tabindex:"0",onKeyup:t[10]||(t[10]=wc(function(e){return o.doAction("elements")},["enter"])),onClick:t[11]||(t[11]=bc(function(e){return o.doAction("elements")},["stop"]))},[Ha(a,{name:"add"})],42,lS)):Qa("",!0)]),qa("ul",cS,[o.hasColorPaletteWithDarkModeColors?(Ta(),Ma("li",{key:0,class:te(["mode",{active:"dark"===e.$_state.mode}]),"data-balloon":"".concat(e.i18n.mode,": ").concat("light"===e.$_state.mode?e.i18n.light:e.i18n.dark),"data-balloon-pos":"bottom",tabindex:"0",onKeyup:t[12]||(t[12]=wc(function(e){return o.doAction("mode")},["enter"])),onClick:t[13]||(t[13]=bc(function(e){return o.doAction("mode")},["stop"]))},[Ha(a,{name:"light"===e.$_state.mode?"sun":"moon"},null,8,["name"])],42,uS)):Qa("",!0),qa("li",{"data-balloon":e.i18n.reloadCanvas,"data-balloon-pos":"bottom",class:te(["reload-canvas",{auto:e.bricks.customBreakpoints}]),tabindex:"0",onKeyup:t[14]||(t[14]=wc(function(e){return o.doAction("reloadCanvas")},["enter"])),onClick:t[15]||(t[15]=bc(function(e){return o.doAction("reloadCanvas")},["stop"]))},[Ha(a,{name:"refresh",class:te({"is-reloading-canvas":e.$_state.isReloadingCanvas})},null,8,["class"])],42,dS),e.bricks.customBreakpoints&&e.$_userHasPermission("access_breakpoints_manager")?(Ta(),Ma("li",{key:1,class:te(["breakpoint-manager",{active:e.$_state.breakpointManager}]),"data-balloon":e.i18n.breakpoints,"data-balloon-pos":"bottom",tabindex:"0",onKeyup:t[16]||(t[16]=wc(function(e){return o.doAction("breakpoints")},["enter"])),onClick:t[17]||(t[17]=bc(function(e){return o.doAction("breakpoints")},["stop"]))},[Ha(a,{name:"more"})],42,pS)):Qa("",!0),(Ta(!0),Ma(Ca,null,Rr(o.breakpoints,function(t){return Ta(),Ma("li",{key:t.key,class:te(["breakpoint",{base:null==t?void 0:t.base},{active:e.$_state.breakpointActive===t.key},{paused:t.paused},{"has-settings":e.$_breakpointHasStyles(t.key)}]),"data-balloon":o.getBreakpointLabel(t),"data-balloon-pos":"bottom",tabindex:"0",onKeyup:wc(function(e){return o.setBreakpoint(t.key)},["enter"]),onClick:bc(function(e){return o.setBreakpoint(t.key)},["stop"])},[Ha(a,{name:t.icon||"desktop"},null,8,["name"])],42,hS)}),128)),qa("li",{class:te(["preview-dimension","width",{locked:"desktop"===e.$_state.breakpointActive&&e.$_state.previewWidthLocked}]),"data-balloon":e.i18n.width+("desktop"===e.$_state.breakpointActive&&e.$_state.previewWidthLocked?" (".concat(e.i18n.desktop," ").concat(e.i18n.locked,")"):""),"data-balloon-pos":"bottom"},[qa("input",{id:"preview-width",type:"number",class:"number",value:e.$_state.previewWidth,placeholder:"-",readonly:"desktop"===e.$_state.breakpointActive&&e.$_state.previewWidthLocked,onBlur:t[18]||(t[18]=function(e){return o.setPreviewWidth(e.target.value)}),onKeyup:t[19]||(t[19]=wc(function(e){return o.setPreviewWidth(e.target.value)},["enter"]))},null,40,mS),qa("label",{for:"preview-width",class:te(["unit","width"]),onMouseenter:t[20]||(t[20]=function(e){return r.widthLabelHover=!0}),onMouseleave:t[21]||(t[21]=function(e){return r.widthLabelHover=!1}),onKeyup:t[22]||(t[22]=wc(function(e){return o.togglePreviewWidthLocked()},["enter"])),onClick:t[23]||(t[23]=bc(function(e){return o.togglePreviewWidthLocked()},["stop"]))},["desktop"===e.$_state.breakpointActive&&(r.widthLabelHover||e.$_state.previewWidthLocked)?(Ta(),La(a,{key:0,class:"icon",name:"locked"})):(Ta(),Ma("span",gS,he(e.i18n.widthAbbr),1))],32)],10,fS),qa("li",{class:"preview-dimension height","data-balloon":e.i18n.height,"data-balloon-pos":"bottom"},[qa("input",{id:"preview-height",type:"number",class:"number",placeholder:"-",value:e.$_state.previewHeight?e.$_state.previewHeight:"",onBlur:t[24]||(t[24]=function(e){return o.setPreviewHeight(e.target.value)}),onKeyup:t[25]||(t[25]=wc(function(e){return o.setPreviewHeight(e.target.value)},["enter"]))},null,40,yS),qa("label",bS,he(e.i18n.heightAbbr),1)],8,vS),qa("li",{class:"preview-dimension","data-balloon":"".concat(e.i18n.scale).concat(e.$_state.previewScaleActive?"":" (".concat(e.i18n.disabled,")")),"data-balloon-pos":"bottom"},[Xn(qa("input",{id:"preview-scale",type:"number",class:"number",value:e.$_state.previewScaleActive?Math.floor(100*e.$_previewScale.value):100,readonly:!e.$_state.previewScaleActive,onBlur:t[26]||(t[26]=function(e){return o.setPreviewScaleMax(e.target.value,e)}),onKeyup:t[27]||(t[27]=wc(function(e){return o.setPreviewScaleMax(e.target.value,e)},["enter"]))},null,40,wS),[[pl,e.$_state.previewScaleActive]]),qa("label",{for:"preview-scale",class:te(["unit","scale",{off:!e.$_state.previewScaleActive}]),textContent:he(!e.$_state.previewScaleActive||r.scaleLabelHover?"-":e.i18n.percentSymbol),onMouseenter:t[28]||(t[28]=function(e){return r.scaleLabelHover=!0}),onMouseleave:t[29]||(t[29]=function(e){return r.scaleLabelHover=!1}),onClick:t[30]||(t[30]=bc(function(e){return o.doAction("previewScale")},["stop"]))},null,42,_S)],8,kS)]),qa("ul",CS,[qa("li",{class:te(["undo",{disabled:e.$_state.historyInProgress||e.$_state.history.length<2||0===e.$_state.historyIndex}]),"data-balloon":e.i18n.undo,"data-balloon-pos":"bottom",tabindex:"0",onKeyup:t[31]||(t[31]=wc(function(e){return o.doAction("undo")},["enter"])),onClick:t[32]||(t[32]=bc(function(e){return o.doAction("undo")},["stop"]))},[Ha(a,{name:"undo3"})],42,xS),qa("li",{class:te(["redo",{disabled:e.$_state.historyInProgress||e.$_state.historyIndex===e.$_state.history.length||e.$_state.historyIndex+1===e.$_state.history.length}]),"data-balloon":e.i18n.redo,"data-balloon-pos":"bottom",tabindex:"0",onKeyup:t[33]||(t[33]=wc(function(e){return o.doAction("redo")},["enter"])),onClick:t[34]||(t[34]=bc(function(e){return o.doAction("redo")},["stop"]))},[Ha(a,{name:"redo3"})],42,SS),qa("li",{class:te(["structure",{active:"structure"===e.$_state.activePanel}]),"data-balloon":o.structureTooltip,"data-balloon-pos":"bottom",tabindex:"0",onKeyup:t[35]||(t[35]=wc(function(e){return o.doAction("structure")},["enter"])),onClick:t[36]||(t[36]=bc(function(e){return o.doAction("structure")},["stop"]))},[Ha(a,{name:e.$_state.showStructure?"structure":"structure-hidden"},null,8,["name"])],42,ES),"publish"!==e.$_state.postStatus&&e.$_state.userCan.publishPosts&&e.$_state.userCan.publishPages?(Ta(),Ma("li",{key:0,tabindex:"0",onKeyup:t[37]||(t[37]=wc(function(e){return o.doAction("publish")},["enter"])),onClick:t[38]||(t[38]=bc(function(e){return o.doAction("publish")},["stop"])),"data-balloon":e.i18n.publish,"data-balloon-pos":"bottom"},[Ha(a,{name:"publish"})],40,AS)):Qa("",!0),qa("li",{class:"wordpress","data-balloon":e.i18n.editInWordPress,"data-balloon-pos":"bottom"},[qa("a",{href:e.$_state.editPostUrl},[Ha(a,{name:"wordpress"})],8,TS)],8,DS),qa("li",{class:te(["new-tab",{active:e.$_state.isPreviewing}]),"data-balloon":e.i18n.viewOnFrontend,"data-balloon-pos":"bottom"},[qa("a",{tabindex:"0",onKeyup:t[39]||(t[39]=wc(function(e){return o.doAction("reloadPreview")},["enter"])),onClick:t[40]||(t[40]=bc(function(e){return o.doAction("reloadPreview")},["stop"]))},[Ha(a,{name:"new-tab"})],32)],10,IS),qa("li",{class:te(["preview",{active:e.$_state.isPreviewing}]),"data-balloon":e.$_state.isPreviewing?e.i18n.backToBuilder:e.i18n.previewMode,"data-balloon-pos":"bottom",tabindex:"0",onKeyup:t[41]||(t[41]=wc(function(e){return o.doAction("togglePreview")},["enter"])),onClick:t[42]||(t[42]=bc(function(e){return o.doAction("togglePreview")},["stop"]))},[Ha(a,{name:"preview"})],42,OS),qa("li",{class:"save max",tabindex:"0",onKeyup:t[43]||(t[43]=wc(function(e){return o.doAction("save")},["enter"])),onClick:t[44]||(t[44]=bc(function(e){return o.doAction("save")},["stop"])),"data-balloon":"draft"===e.$_state.postStatus?e.i18n.saveDraft:e.i18n.save,"data-balloon-pos":"bottom-right"},[e.$_state.isSaving?(Ta(),La(a,{key:"refresh",name:"refresh",class:te([{"bricks-animation-load8":e.$_state.isSaving}])},null,8,["class"])):(Ta(),La(a,{key:"save",name:"save",class:te([{"has-unsaved-changes":e.$_state.unsavedChanges.length}])},null,8,["class"]))],40,PS)])],2)}]]),MS={id:"bricks-panel-inner",ref:"scrollbar"};function LS(e){return LS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},LS(e)}function NS(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=LS(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=LS(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==LS(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jS=["data-active-tab"],BS={key:1,id:"bricks-panel-component"},RS=["title"],VS=["textContent"],qS={class:"actions"},HS=["data-balloon"],zS=["data-balloon"],US=["data-balloon"],WS=["data-balloon"],GS=["data-balloon"],KS=["data-balloon"],QS=["data-balloon"],YS={key:2,class:"no-results no-border"},JS={key:4,id:"edit-component-category"},XS=["textContent"],ZS={key:5,id:"edit-component-description"},eE=["textContent"],tE={key:6,id:"edit-component-gutenberg"},nE=["textContent"],iE={key:2},rE={key:7,id:"edit-component-variants"},oE=["textContent"],aE={class:"component-variants-list"},sE={class:"variant-item base-variant"},lE=["placeholder"],cE=["textContent"],uE=["onUpdate:modelValue","placeholder","onInput"],dE=["data-balloon","onClick"],pE={key:8,id:"component-variant-selector",class:"control"},hE=["textContent"],fE=["textContent"],mE=["disabled","value"],gE={key:2,class:"actions"},vE=["data-balloon"],yE=["data-balloon"],bE=["data-balloon"],kE=["data-balloon"],wE=["data-balloon"],_E=["href"],CE=["data-balloon"],xE=["title"],SE=["innerHTML"],EE={key:9,id:"bricks-panel-sticky"},AE={key:0,id:"bricks-panel-tabs"},DE=["onClick"],TE=["textContent"],IE={key:15,id:"component-instance-variant",class:"control bricks-panel-controls"},OE={class:"control-wrapper"},PE=["textContent"];var FE={key:1,id:"bricks-panel-component-properties"},$E={id:"bricks-panel-header"},ME=["textContent"],LE=["data-balloon"],NE={key:2,id:"bricks-panel-component-instance"},jE={key:0,class:"no-results"},BE=["textContent"],RE=["textContent"],VE=["href","textContent"],qE={key:1,class:"panel-content"},HE={class:"bricks-panel-controls"},zE=["data-group-id"],UE=["onClick"],WE=["onMouseover"],GE={key:0,class:"indicator"},KE=["onClick"],QE=["textContent"],YE={class:"properties"},JE={class:"label"},XE=["onMouseenter"],ZE={key:0,class:"indicator"},eA=["onClick"],tA=["textContent"],nA=["innerHTML"],iA={key:2,class:"no-results"},rA=["textContent"],oA=["textContent"],aA=["href","textContent"];function sA(e){return function(e){if(Array.isArray(e))return lA(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return lA(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lA(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function cA(e){return cA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cA(e)}function uA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function dA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uA(Object(n),!0).forEach(function(t){pA(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pA(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=cA(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=cA(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==cA(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hA={data:function(){return{hasSettingsHover:!1,propertyGroupActive:!1,groupHasSettingsHover:!1,propertyConnections:{}}},computed:{activeElement:function(){return this.$_state.activeElement},component:function(){var e;return this.$_getComponentById(null===(e=this.activeElement)||void 0===e?void 0:e.cid)},properties:function(){var e;return(null===(e=this.component)||void 0===e?void 0:e.properties)||[]},propertiesString:function(){return JSON.stringify(this.properties)},propertyGroups:function(){var e;return(null===(e=this.component)||void 0===e?void 0:e.propertyGroups)||[]},selectedComponentInstances:function(){var e,t=this;return this.$_isBulkEditing()&&null!==(e=this.activeElement)&&void 0!==e&&e.cid?this.$_state.selectedElements.filter(function(e){return(null==e?void 0:e.cid)&&e.cid===t.activeElement.cid}):[]},isBulkEditingSameComponentInstances:function(){return this.selectedComponentInstances.length>1&&this.selectedComponentInstances.length===this.$_state.selectedElements.length},instanceProperties:function(){var e;return this.isBulkEditingSameComponentInstances?this.getCommonInstanceProperties(this.selectedComponentInstances):(null===(e=this.activeElement)||void 0===e?void 0:e.properties)||{}},connectedComponent:function(){var e=this;return this.$_state.components.find(function(t){var n;return t.id===(null===(n=e.activeElement)||void 0===n?void 0:n.cid)})},connectedProperties:function(){var e=this,t=this.properties.filter(function(t){return!(null==t||!t.connections)||!!e.isConnectedToNestedInstance(t.id)});return t?this.$_clone(t):[]},connectedPropertiesPerGroupId:function(){var e=this,t={groupless:this.connectedProperties.filter(function(e){return!e.group})};return this.propertyGroups.forEach(function(n){var i=e.connectedProperties.filter(function(e){return e.group===n.id});i.length&&(t[n.id]=i)}),t},isNestedComponentInstance:function(){var e;return!(null===(e=this.activeElement)||void 0===e||!e.cid||!this.$_state.activeComponent)}},methods:{isConnectedToNestedInstance:function(e){var t;return!(null===(t=this.component)||void 0===t||!t.elements)&&this.component.elements.some(function(t){return!(!t.cid||!t.properties)&&Object.values(t.properties).some(function(t){if("string"==typeof t&&t.startsWith("parent:")){var n=t.match(/^parent:cid_([^:]+):prop_([^:]+)$/);if(n)return n[2]===e}return!1})})},setPropertyConnection:function(e,t){if(this.propertyConnections[e.id]=t,t){var n,i="parent:cid_".concat(this.$_state.activeComponent.id,":prop_").concat(t.id);if((null===(n=this.activeElement)||void 0===n||null===(n=n.properties)||void 0===n?void 0:n[e.id])===i)return;this.propertyInput(e,i)}else{var r,o=null===(r=this.activeElement)||void 0===r||null===(r=r.properties)||void 0===r?void 0:r[e.id];"string"==typeof o&&o.startsWith("parent:")&&this.propertyInput(e,null)}},propertyControl:function(e){var t={type:this.propertyControlType(e.type),label:this.propertyControlLabel(e.type),popup:"query"===e.type,options:this.propertyControlOptions(e),multiple:e.multiple,inline:!!this.propertyControlLabel(e.type),placeholder:this.propertyControlPlaceholder(e),autoHeight:!0};return"class"===e.type&&(t.type="select",t.multiple=e.multiple||!1,t.searchable=!0,t.placeholder=this.i18n.select),t},propertyControlOptions:function(e){var t=this,n=(null==e?void 0:e.options)||null;if(n)return"class"===(null==e?void 0:e.type)&&(n=n.map(function(e){if(""==(null==e?void 0:e.label)&&Array.isArray(null==e?void 0:e.value)&&e.value.length){var n=[];e.value.forEach(function(e){var i=t.$_getGlobalClassName(e);i&&n.push(i)}),n.length&&(e.label=n.join(", "))}return dA(dA({},e),{},{value:e.id||e.value})})),n;if("class"===e.type)return n={},this.$_state.globalClasses.forEach(function(e){n[e.id]=e.name}),n;if(null!=e&&e.connections){var i,r,o=Object.keys(e.connections)[0],a=null===(i=this.connectedComponent)||void 0===i?void 0:i.elements.find(function(e){return e.id===o}),s=this.$_getElementConfig(null==a?void 0:a.name),l=e.connections[o],c=null==s||null===(r=s.controls)||void 0===r||null===(r=r[l])||void 0===r?void 0:r.options;c&&(n=c)}return n},propertyControlType:function(e){return"text"===e?"textarea":"toggle"===e?"checkbox":e},propertyControlLabel:function(e){return"toggle"===e?"".concat(this.i18n.true," / ").concat(this.i18n.false):"icon"===e?this.i18n.icon:"query"===e?this.i18n.query:null},propertyControlPlaceholder:function(e){var t,n="string"==typeof(null==e?void 0:e.default)?null==e?void 0:e.default:null,i=this.propertyControlOptions(e);"select"===(null==e?void 0:e.type)&&(Array.isArray(i)?n=null===(t=i.find(function(e){return e.value===n}))||void 0===t?void 0:t.label:null!=i&&i[n]&&(n=i[n]));return n},getInstancePropertyTargets:function(){return this.isBulkEditingSameComponentInstances?this.selectedComponentInstances:this.activeElement?[this.activeElement]:[]},isPlainPropertyObject:function(e){return null!==e&&"object"===cA(e)&&!Array.isArray(e)},clonePropertyValue:function(e){if(void 0!==e)return this.$_clone(e)},arePropertyValuesEqual:function(e,t){return Array.isArray(e)||Array.isArray(t)?!(!Array.isArray(e)||!Array.isArray(t))&&JSON.stringify(e)===JSON.stringify(t):this.isPlainPropertyObject(e)||this.isPlainPropertyObject(t)?!(!this.isPlainPropertyObject(e)||!this.isPlainPropertyObject(t))&&JSON.stringify(e)===JSON.stringify(t):e===t},getCommonInstanceProperties:function(e){var t=this;if(!Array.isArray(e)||!e.length)return{};var n=e.map(function(e){return t.isPlainPropertyObject(null==e?void 0:e.properties)?e.properties:{}}),i={};return Object.keys(n[0]).forEach(function(e){if(n.every(function(t){return Object.prototype.hasOwnProperty.call(t,e)})){var r=n[0][e];n.every(function(n){return t.arePropertyValuesEqual(r,n[e])})&&(i[e]=t.clonePropertyValue(r))}}),i},hasSetting:function(e){var t;return null===(t=this.instanceProperties)||void 0===t?void 0:t[e]},controlGroupHasSettings:function(e){var t=this,n=this.connectedPropertiesPerGroupId[e];return!!n&&n.some(function(e){return t.hasSetting(e.id)})},editProperty:function(e){var t=this;this.$_state.componentInstanceId=this.$_state.activeId,this.$_setActiveComponent(this.activeElement),this.$nextTick(function(){t.$_state.activeProperty=e})},resetSetting:function(e){this.getInstancePropertyTargets().forEach(function(t){null!=t&&t.properties&&!Array.isArray(t.properties)&&(delete t.properties[e.id],Object.keys(t.properties).length||delete t.properties)}),this.$_rerenderControls(),this.checkRerenderComponent(e)},resetGroupSettings:function(e){var t=this,n=this.connectedPropertiesPerGroupId[e];n&&n.forEach(function(e){return t.resetSetting(e)})},getChangedCids:function(){var e,t=this;if(null===(e=this.activeElement)||void 0===e||!e.id)return[];var n=[];if(this.$_state.activeComponent){var i=this.$_clone(this.$_dynamicElements.value),r=Array.isArray(i)?i.filter(function(e){return(null==e?void 0:e.cid)===t.$_state.activeComponent.id}):[];r.length&&(n=r.map(function(e){return e.id}))}else n=this.getInstancePropertyTargets().map(function(e){return e.id});return n=sA(new Set(n))},propertyInput:function(e,t){var n=this;this.$_debounce("propertyInput:".concat(e.id),function(){n.getInstancePropertyTargets().forEach(function(i){var r;t?null==i||!i.properties||Array.isArray(null==i?void 0:i.properties)?i.properties=pA({},e.id,n.clonePropertyValue(t)):i.properties[e.id]=n.clonePropertyValue(t):(null!=i&&null!==(r=i.properties)&&void 0!==r&&r[e.id]&&delete i.properties[e.id],null!=i&&i.properties&&Object.keys(i.properties).length||delete i.properties)}),n.checkRerenderComponent(e)})},checkRerenderComponent:function(e){var t,n=this,i=this.$_elementBelongsToLoopId(this.activeElement);if(i)this.$_forceRender(0,i);else{if(this.component){var r=this.$_getComponentSettings(this.component,this.activeElement);if(null!=r&&r.hasLoop)return void this.rerenderCids()}if(this.$_state.activeLoopId)this.rerenderCids();else{var o,a=e.connections?Object.keys(e.connections):[],s=null===(t=this.connectedComponent)||void 0===t?void 0:t.elements.filter(function(t){if(a.includes(t.id))return!0;if(t.cid&&t.properties){var i,r=Object.values(t.properties).some(function(t){if("string"==typeof t&&t.startsWith("parent:")){var n=t.match(/^parent:cid_([^:]+):prop_([^:]+)$/);if(n)return n[2]===e.id}return!1});if(r)return n.$_elementBelongsToLoopId(t,null===(i=n.connectedComponent)||void 0===i?void 0:i.elements)}return!1}),l=!1;s.forEach(function(e){var t;o=n.$_elementBelongsToLoopId(e,null===(t=n.connectedComponent)||void 0===t?void 0:t.elements);var i=n.$_getIframeDoc().getElementById("tmpl-bricks-element-".concat(e.name));!o&&i||(l=!0)}),l&&this.rerenderCids()}}},rerenderCids:function(){var e=this,t=this.getChangedCids();t.length&&t.forEach(function(t){e.$_rerenderCid(t)})},updatePropertyConnections:function(){var e=this;this.propertyConnections={},this.connectedProperties.forEach(function(t){var n=e.instanceProperties[t.id];if("string"==typeof n&&n.startsWith("parent:")){var i=n.split(":")[2]||null;if(i){var r,o=i.substring(5),a=null===(r=e.$_state.activeComponent)||void 0===r||null===(r=r.properties)||void 0===r?void 0:r.find(function(e){return e.id===o});a&&(e.propertyConnections[t.id]=a)}}})}},watch:{activeElement:{handler:function(){this.updatePropertyConnections()},immediate:!0},connectedProperties:{handler:function(){this.updatePropertyConnections()}}}};const fA=(0,xx.A)(hA,[["render",function(e,t,n,i,r,o){var a,s=$r("control-info"),l=$r("icon"),c=$r("control-property"),u=$r("panel-control");return Ta(),Ma(Ca,null,[e.$_userHasPermission("edit_components")||e.$_userHasPermission("set_component_props")?Qa("",!0):(Ta(),La(s,{key:0,class:"no-cap",control:{content:e.i18n.infoAccessRequired,buttonText:e.i18n.learnMore,buttonLink:e.bricks.academy.capabilities}},null,8,["control"])),e.$_userHasPermission("edit_components")&&!e.$_state.showHideElement?(Ta(),Ma("div",FE,[qa("div",$E,[qa("h3",{class:"title",textContent:he(e.i18n.properties)},null,8,ME),e.$_userHasPermission("edit_components")?(Ta(),Ma("button",{key:0,"data-balloon":e.i18n.edit,"data-balloon-pos":"top-right",onClick:t[0]||(t[0]=function(e){return o.editProperty(!0)})},[Ha(l,{name:"edit"})],8,LE)):Qa("",!0)])])):Qa("",!0),e.$_userHasPermission("set_component_props")&&!e.$_state.showHideElement?(Ta(),Ma("div",NE,[o.properties.length||e.$_state.activeComponent&&(null===(a=e.$_state.activeElement)||void 0===a||!a.cid)?o.connectedProperties.length?(Ta(),Ma("div",qE,[qa("div",HE,[(Ta(!0),Ma(Ca,null,Rr(o.connectedPropertiesPerGroupId,function(n,i){var a;return Xn((Ta(),Ma("div",{key:i,"data-group-id":i,class:"group-wrapper"},["groupless"!==i?(Ta(),Ma("div",{key:0,class:te(["control-group",{open:r.propertyGroupActive===i}])},[qa("div",{class:"control-group-title",onClick:function(e){return r.propertyGroupActive=r.propertyGroupActive===i?null:i}},[o.controlGroupHasSettings(i)?(Ta(),Ma("span",{key:0,class:te(["has-setting",e.$_isLocked()?"bricks-is-locked":null]),onMouseover:function(e){return r.groupHasSettingsHover=i},onMouseleave:t[1]||(t[1]=function(e){return r.groupHasSettingsHover=!1})},[r.groupHasSettingsHover!==i?(Ta(),Ma("span",GE)):(Ta(),Ma("span",{key:1,class:"reset",onClick:bc(function(e){return o.resetGroupSettings(i)},["stop"])},[Ha(l,{name:"close"})],8,KE))],42,WE)):Qa("",!0),qa("span",{textContent:he(null===(a=o.propertyGroups.find(function(e){return e.id===i}))||void 0===a?void 0:a.name)},null,8,QE),Ha(l,{name:"arrow-right",class:"arrow"})],8,UE)],2)):Qa("",!0),Xn(qa("ul",YE,[(Ta(!0),Ma(Ca,null,Rr(n,function(n){return Ta(),Ma("li",{key:n.id},[qa("div",JE,[o.hasSetting(null==n?void 0:n.id)&&!r.propertyConnections[n.id]?(Ta(),Ma("div",{key:0,class:"has-setting",onMouseenter:function(e){return r.hasSettingsHover=null==n?void 0:n.id},onMouseleave:t[2]||(t[2]=function(e){return r.hasSettingsHover=!1})},[r.hasSettingsHover!==(null==n?void 0:n.id)?(Ta(),Ma("span",ZE)):(Ta(),Ma("span",{key:1,class:"reset",onClick:bc(function(e){return o.resetSetting(n)},["stop"])},[Ha(l,{name:"close"})],8,eA))],40,XE)):Qa("",!0),"class"===n.type?(Ta(),La(l,{key:1,name:"css3"})):"query"===n.type?(Ta(),La(l,{key:2,name:"loop"})):"toggle"===n.type?(Ta(),La(l,{key:3,name:"toggle"})):(Ta(),Ma("i",{key:4,class:te(e.$_getComponentPropertyIconClassName(n.type))},null,2)),qa("span",{textContent:he(n.label)},null,8,tA),e.$_userHasPermission("edit_components")?(Ta(),La(l,{key:5,name:"edit",class:"edit","data-balloon":e.i18n.edit,"data-balloon-pos":"top-right",onClick:bc(function(e){return o.editProperty(n.id)},["stop"])},null,8,["data-balloon","onClick"])):Qa("",!0)]),o.isNestedComponentInstance?(Ta(),La(c,{key:0,type:n.type,controlKey:n.id,controlLabel:n.label,isInstanceProperty:!0,connectedInstanceProperty:r.propertyConnections[n.id],onHasConnectedProperty:function(e){return o.setPropertyConnection(n,e)}},null,8,["type","controlKey","controlLabel","connectedInstanceProperty","onHasConnectedProperty"])):Qa("",!0),r.propertyConnections[n.id]?Qa("",!0):(Ta(),La(u,{key:1,control:o.propertyControl(n),controlKey:n.id,propertyId:n.id,placeholder:null==n?void 0:n.default,instanceProperty:n,settings:o.instanceProperties,onUpdated:function(e){return o.propertyInput(n,e)}},null,8,["control","controlKey","propertyId","placeholder","instanceProperty","settings","onUpdated"])),n.desc?(Ta(),Ma("div",{key:2,class:"description",innerHTML:n.desc},null,8,nA)):Qa("",!0)])}),128))],512),[[pl,"groupless"===i||r.propertyGroupActive&&r.propertyGroupActive===i]])],8,zE)),[[pl,n.length]])}),128))])])):!o.properties.length||o.connectedProperties.length||e.$_state.activeComponent?Qa("",!0):(Ta(),Ma("div",iA,[Ha(l,{name:"no-results"}),qa("p",{textContent:he(e.i18n.noPropertiesConnected)},null,8,rA),qa("p",{class:"desc",textContent:he(e.i18n.noPropertiesConnectedDesc)},null,8,oA),qa("a",{href:"".concat(e.bricks.academy.components,"#connect-properties"),target:"_blank",class:"button",textContent:he(e.i18n.learnMore)},null,8,aA)])):(Ta(),Ma("div",jE,[Ha(l,{name:"no-results"}),qa("p",{textContent:he(e.i18n.noPropertiesFound)},null,8,BE),qa("p",{class:"desc",textContent:he(e.i18n.noPropertiesDesc)},null,8,RE),qa("a",{class:"button",target:"_blank",href:"".concat(e.bricks.academy.components,"#properties"),textContent:he(e.i18n.learnMore)},null,8,VE)]))])):Qa("",!0)],64)}]]);var mA=fA;function gA(e){return function(e){if(Array.isArray(e))return vA(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return vA(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vA(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var yA={id:"bricks-panel-component-properties"},bA={id:"bricks-panel-header"},kA=["textContent"],wA={class:"actions"},_A=["data-balloon"],CA=["data-balloon"],xA={key:0,class:"property-groups"},SA=["innerHTML"],EA=["placeholder"],AA={class:"actions"},DA=["disabled","textContent"],TA=["textContent"],IA={key:0,class:"property-groups-list"},OA=["textContent"],PA=["onUpdate:modelValue"],FA={key:1,class:"no-results"},$A=["textContent"],MA=["textContent"],LA=["href","textContent"],NA=["data-action"],jA={key:0,class:"property-type"},BA=["textContent"],RA={class:"property-name"},VA={class:"title-wrapper"},qA=["textContent"],HA=["placeholder"],zA={key:0,class:"description"},UA={class:"property-desc"},WA=["textContent"],GA={class:"property-group"},KA={class:"title-wrapper"},QA=["textContent"],YA={key:1,class:"property-options"},JA=["textContent"],XA=["innerHTML"],ZA={key:0,class:"options"},eD=["onUpdate:modelValue","placeholder","title"],tD=["onUpdate:modelValue","placeholder","title"],nD=["onClick","data-balloon"],iD=["textContent"],rD={class:"property-default bricks-panel-controls"},oD={class:"title-wrapper"},aD=["textContent"],sD=["data-balloon"],lD={class:"actions"},cD=["textContent","disabled"],uD=["textContent"],dD={key:1,class:"unconnected-properties"},pD={key:0,class:"group-title"},hD=["textContent"],fD=["data-balloon"],mD={class:"label"},gD=["title"],vD=["textContent"],yD={key:0,class:"actions"},bD=["data-balloon","onClick"],kD=["data-balloon"],wD=["data-balloon","onClick"],_D=["data-balloon","onClick"],CD=["data-balloon","onClick"];function xD(e){return xD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xD(e)}function SD(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ED(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ED(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ED(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var AD={emits:["updateAction"],props:{init:{type:Object,default:function(){return null}}},data:function(){var e,t,n,i,r,o,a,s,l,c,u,d;return{action:null!==(e=null===(t=this.init)||void 0===t?void 0:t.action)&&void 0!==e?e:null,propertyId:null,propertyType:null!==(n=null===(i=this.init)||void 0===i?void 0:i.type)&&void 0!==n?n:null,propertyLabel:null!==(r=null===(o=this.init)||void 0===o?void 0:o.label)&&void 0!==r?r:null,propertyDesc:null,propertyDescShow:!1,propertyOptions:null!==(a=null===(s=this.init)||void 0===s?void 0:s.options)&&void 0!==a?a:[],propertyOptionsMultiple:null!==(l=null===(c=this.init)||void 0===c?void 0:c.multiple)&&void 0!==l&&l,propertyOptionsReplace:null!==(u=null===(d=this.init)||void 0===d?void 0:d.replace)&&void 0!==u&&u,propertyDefault:null,propertyGroup:null,newPropertyName:null}},computed:{globalClassOptions:function(){var e={};return this.$_state.globalClasses.forEach(function(t){e[t.id]=t.name}),e},propertyControl:function(){var e=this,t={type:this.propertyControlType,popup:"query"===this.propertyType,inline:!!this.propertyControlLabel,label:this.propertyControlLabel,autoHeight:!0};if("class"===this.propertyType&&(t.type="select",t.options=[],t.multiple=!0,t.searchable=!0,t.placeholder=this.i18n.globalClasses,t.options=this.propertyOptions.length?this.$_clone(this.propertyOptions):this.$_clone(this.globalClassOptions),t.options.length&&t.options.forEach(function(n,i){if(n.id){if(null==n||!n.label){var r=[];Array.isArray(n.value)&&n.value.forEach(function(t){var n,i=null===(n=e.$_state.globalClasses.find(function(e){return e.id===t}))||void 0===n?void 0:n.name;i&&r.push(i)}),r.length&&(n.label=r.join(", "))}t.options[i].value=n.id}})),"select"===this.propertyType)if(t.placeholder=this.i18n.select,this.propertyOptions.length)t.options=this.propertyOptions;else{var n=this.properties.find(function(t){return t.id===e.propertyId});if(null!=n&&n.connections){var i,r,o=Object.keys(n.connections)[0],a=null===(i=this.component)||void 0===i?void 0:i.elements.find(function(e){return e.id===o}),s=this.$_getElementConfig(null==a?void 0:a.name),l=n.connections[o],c=null==s||null===(r=s.controls)||void 0===r||null===(r=r[l])||void 0===r?void 0:r.options;c&&(t.options=c)}}return t},propertyControlType:function(){return"toggle"===this.propertyType?"checkbox":"text"===this.propertyType?"textarea":this.propertyType},propertyGroups:function(){var e,t;return null!==(e=null===(t=this.$_state.activeComponent)||void 0===t?void 0:t.propertyGroups)&&void 0!==e?e:[]},propertyGroupOptions:function(){if(!this.propertyGroups.length)return null;var e={};return this.propertyGroups.forEach(function(t){e[t.id]=t.name}),e},propertyControlLabel:function(){return"toggle"===this.propertyType?"".concat(this.i18n.true," / ").concat(this.i18n.false):"icon"===this.propertyType?this.i18n.icon:"query"===this.propertyType?this.i18n.queryLoop:null},panelTitle:function(){return this.i18n.properties},component:function(){return this.$_state.activeComponent},properties:function(){var e;return Array.isArray(null===(e=this.component)||void 0===e?void 0:e.properties)?this.component.properties:[]},propertiesPerGroupId:function(){var e=this.$_clone(this.properties),t={groupless:[]};this.propertyGroups.forEach(function(e){t[e.id]=[]});for(var n=function(){var n=SD(r[i],2),o=n[0];n[1];t[o]=e.filter(function(e){return e.group===o||"groupless"===o&&!e.group})},i=0,r=Object.entries(t);i<r.length;i++)n();for(var o=0,a=Object.entries(t);o<a.length;o++){var s=SD(a[o],2),l=s[0];s[1];t[l].length||delete t[l]}return t},unconnectedProperties:function(){var e=this;return this.properties.filter(function(t){return!t.connections&&!e.isConnectedToNestedInstance(t.id)})},canSaveProperty:function(){return this.component&&this.propertyType&&this.propertyLabel},getPropertyDefault:function(){return this.propertyDefault||["text","editor"].includes(this.propertyType)?!this.propertyDefault&&["select","class"].includes(this.propertyType)?null:this.propertyDefault:{}}},methods:{isConnectedToNestedInstance:function(e){return this.component.elements.some(function(t){return!(!t.cid||!t.properties)&&Object.values(t.properties).some(function(t){if("string"==typeof t&&t.startsWith("parent:")){var n=t.match(/^parent:cid_([^:]+):prop_([^:]+)$/);if(n)return n[2]===e}return!1})})},addOption:function(){this.propertyOptions.length||(this.propertyDefault=""),this.propertyOptions.push({id:this.$_generateId(),label:"",value:""})},deleteOption:function(e){this.propertyDefault===this.propertyOptions[e].value&&(this.propertyDefault=null),this.propertyOptions.splice(e,1),this.propertyOptions.length||(this.propertyDefault="")},updatePropertyIndex:function(e,t){var n=null==e?void 0:e.items,i=this.$_clone(this.component.properties);n.forEach(function(e,t){var n=i.findIndex(function(t){return t.id===e.id});-1!==n&&i.splice(i.length,0,i.splice(n,1)[0])}),this.component.properties=i},setActiveProperty:function(e){"create"===e?"create"===this.$_state.activeProperty?(this.$_state.activeProperty=!0,this.action=null):this.$_state.activeProperty="create":"groups"===e&&(this.$_state.activeProperty="groups"===this.$_state.activeProperty||"groups",this.action=null)},setPropertyDefault:function(e){e||this.$_rerenderControls(),["select","class"].includes(this.propertyType)&&Array.isArray(e)&&0===e.length&&(e=null),this.propertyDefault=e},setPropertyGroup:function(e){if(e){var t,n=this.propertyGroups.find(function(t){return t.id===e});if(n)this.propertyGroup=n.id;else this.createPropertyGroup(e),this.propertyGroup=null===(t=this.propertyGroups.find(function(t){return t.name===e}))||void 0===t?void 0:t.id}else this.propertyGroup=null},deleteGroup:function(e){this.$_state.deleteItem===e?(this.$_state.activeComponent.propertyGroups=this.propertyGroups.filter(function(t){return t.id!==e}),this.properties.forEach(function(t){t.group===e&&delete t.group}),0===this.propertyGroups.length&&delete this.$_state.activeComponent.propertyGroups):this.$_deleteConfirmation(e)},getPropertyGroup:function(e){return this.propertyGroups.find(function(t){return t.id===e})},createPropertyGroup:function(e){if(e)if(this.propertyGroups.length||(this.$_state.activeComponent.propertyGroups=[]),this.propertyGroups.find(function(t){return t.name.toLowerCase()===e.toLowerCase()}))alert(this.i18n.groupAlreadyExists);else{var t={id:this.$_generateId(),name:e};this.propertyGroups.push(t),this.newPropertyName=null}},editProperty:function(e){var t,n=Array.isArray(null===(t=this.component)||void 0===t?void 0:t.properties)?this.component.properties.find(function(t){return t.id===e}):null;n&&(this.$_state.activeProperty=e,this.propertyId=null==n?void 0:n.id,this.propertyType=null==n?void 0:n.type,this.propertyLabel=null==n?void 0:n.label,this.propertyDesc=null==n?void 0:n.desc,this.propertyGroup=null==n?void 0:n.group,this.propertyOptions=(null==n?void 0:n.options)||[],this.propertyOptionsMultiple=(null==n?void 0:n.multiple)||!1,this.propertyOptionsReplace=(null==n?void 0:n.replace)||!1,this.propertyDefault=null==n?void 0:n.default,this.action="edit")},deleteProperty:function(e){var t=this.component.properties.findIndex(function(t){return t.id===e});-1!==t&&(this.component.properties.splice(t,1),0===this.component.properties.length&&delete this.component.properties)},saveProperty:function(e){var t=this;if(this.canSaveProperty&&0!==e.detail){var n=this.propertyId?this.component.properties.find(function(e){return e.id===t.propertyId}):{};if(this.propertyLabel&&(n.label=this.propertyLabel),this.propertyType&&(n.type=this.propertyType),this.propertyDesc?n.desc=this.propertyDesc:delete n.desc,this.propertyGroup?n.group=this.propertyGroup:delete n.group,Array.isArray(this.propertyOptions)&&this.propertyOptions.length?n.options=this.propertyOptions:delete n.options,this.propertyOptionsMultiple?n.multiple=this.propertyOptionsMultiple:delete n.multiple,this.propertyOptionsReplace?n.replace=this.propertyOptionsReplace:delete n.replace,this.propertyDefault?this.propertyDefault&&"object"===xD(this.propertyDefault)&&!Object.keys(this.propertyDefault).length?delete n.default:n.default=this.propertyDefault:delete n.default,"create"===this.action){var i;Array.isArray(null===(i=this.component)||void 0===i?void 0:i.properties)||(this.component.properties=[]),n.id=this.$_generateId(),this.component.properties.push(n)}else{var r=this.component.properties.find(function(e){return e.id===t.propertyId});-1!==r&&(this.component.properties[r]=n)}this.$_showMessage("".concat(this.i18n.property,": ").concat("create"===this.action?this.i18n.created:this.i18n.saved)),this.savePropertyCancel(),this.$_state.isReloadingCanvas=!0}},savePropertyCancel:function(){var e;null!==(e=this.init)&&void 0!==e&&e.action?this.$emit("updateAction",null):this.$_state.activeProperty=!0,this.action=null,this.propertyId=null,this.propertyType=null,this.propertyLabel=null,this.propertyDesc=null,this.propertyOptions=[],this.propertyOptionsMultiple=!1,this.propertyOptionsReplace=!1,this.propertyDefault=null}},mounted:function(){var e=this;this.properties.forEach(function(t){null!=t&&t.connections&&(Object.keys(t.connections).forEach(function(n){var i=e.$_state.activeComponent.elements.find(function(e){return e.id===n});if(i){var r=t.connections[n];Array.isArray(r)&&(r.forEach(function(e){var o=e.endsWith("|key")?e.split("|")[1]:null;o&&(JSON.stringify(i.settings).includes(o)||(t.connections[n]=r.filter(function(t){return t!==e})));if(e.startsWith("_conditions|")){var a=e.split("|")[1]||!1,s=JSON.stringify(i.settings._conditions);!a||i.settings._conditions&&s.includes(a)||(t.connections[n]=r.filter(function(t){return t!==e}))}}),t.connections[n].length||delete t.connections[n])}else delete t.connections[n]}),Object.keys(t.connections).length||delete t.connections)}),this.component.elements.forEach(function(t){t.cid&&t.properties&&(Object.keys(t.properties).forEach(function(n){var i=t.properties[n];if("string"==typeof i&&i.startsWith("parent:")){var r=i.match(/^parent:cid_([^:]+):prop_([^:]+)$/);if(r){var o=r[1],a=r[2];if(o===e.component.id){var s=e.properties.some(function(e){return e.id===a});s||delete t.properties[n]}}}}),0===Object.keys(t.properties).length&&delete t.properties)})},watch:{action:function(){"edit"===this.action&&"groups"===this.activeProperty&&(this.activeProperty=null),"create"===this.action&&(this.propertyId=null,this.propertyType=null,this.propertyLabel=null,this.propertyDesc=null,this.propertyOptions=[],this.propertyOptionsMultiple=!1,this.propertyOptionsReplace=!1,this.propertyDefault=null)},"$_state.activeProperty":{handler:function(e){"create"===e?this.action="create":e&&6===e.length&&this.editProperty(e)},immediate:!0},propertyType:{handler:function(e){var t=this;"editor"!==e&&this.$_autoExpandCollapsePanel(),"create"===this.action&&e&&(this.propertyLabel=this.$_getComponentPropertyLabel(e),this.$nextTick(function(){return t.$refs.propertyLabel.focus()}),this.propertyOptions=[])},immediate:!0},propertyDesc:function(){this.propertyDesc&&(this.propertyDescShow=!0)},propertyGroup:function(){var e=this;Array.isArray(this.propertyGroup)&&!this.propertyGroups.find(function(t){return t.id===e.propertyGroup})&&this.createPropertyGroup(this.propertyGroup)}}};const DD=(0,xx.A)(AD,[["render",function(e,t,n,i,r,o){var a,s=$r("icon"),l=$r("sortable"),c=$r("control-info"),u=$r("panel-control"),d=$r("control-select");return Ta(),Ma("div",yA,[qa("div",bA,[qa("h3",{class:"title",textContent:he(o.panelTitle)},null,8,kA),qa("div",wA,[qa("button",{class:te({active:"create"===e.$_state.activeProperty}),"data-balloon":e.i18n.new,"data-balloon-pos":"top-right",onClick:t[0]||(t[0]=bc(function(e){return o.setActiveProperty("create")},["stop"]))},[Ha(s,{name:"add",class:"new"})],10,_A),qa("button",{class:te({active:"groups"===e.$_state.activeProperty}),"data-balloon":o.propertyGroups.length?"".concat(e.i18n.groups," (").concat(o.propertyGroups.length,")"):e.i18n.groups,"data-balloon-pos":"top-right",onClick:t[1]||(t[1]=bc(function(e){return o.setActiveProperty("groups")},["stop"]))},[Ha(s,{name:"folder",class:"groups"})],10,CA)])]),"groups"===e.$_state.activeProperty?(Ta(),Ma("div",xA,[qa("p",{class:"description",innerHTML:e.i18n.propertyGroupsDesc},null,8,SA),qa("form",{class:"new-property",onSubmit:t[4]||(t[4]=bc(function(e){return o.createPropertyGroup(r.newPropertyName)},["prevent"]))},[Xn(qa("input",{type:"text","onUpdate:modelValue":t[2]||(t[2]=function(e){return r.newPropertyName=e}),placeholder:e.i18n.newGroupName},null,8,EA),[[ac,r.newPropertyName]]),qa("div",AA,[qa("button",{type:"submit",class:"button submit",disabled:!r.newPropertyName,textContent:he(e.i18n.create)},null,8,DA),qa("button",{type:"button",class:"button cancel",textContent:he(e.i18n.cancel),onClick:t[3]||(t[3]=bc(function(t){return e.$_state.activeProperty=!0},["stop"]))},null,8,TA)])],32),o.propertyGroups.length?(Ta(),Ma("div",IA,[qa("h3",{class:"title",textContent:he(e.i18n.propertyGroups)},null,8,OA),Ha(l,{tag:"ul",class:"groups",parent:e.$_state.activeComponent.propertyGroups,options:{direction:"vertical",itemClass:"sortable",handleClass:"bricks-svg"}},{default:Jn(function(){return[(Ta(!0),Ma(Ca,null,Rr(e.$_state.activeComponent.propertyGroups,function(t){return Ta(),Ma("li",{key:t.id,class:"sortable"},[Xn(qa("input",{"onUpdate:modelValue":function(e){return t.name=e}},null,8,PA),[[ac,t.name]]),Ha(s,{name:"move",class:"move"}),Ha(s,{name:e.$_state.deleteItem===t.id?"check":"trash",class:"delete",onClick:bc(function(e){return o.deleteGroup(t.id)},["stop"]),title:e.i18n.delete},null,8,["name","onClick","title"])])}),128))]}),_:1},8,["parent"])])):(Ta(),La(c,{key:1,control:{content:e.i18n.noPropertyGroupsFound}},null,8,["control"]))])):Qa("",!0),"groups"===e.$_state.activeProperty||o.properties.length||r.action?Qa("",!0):(Ta(),Ma("div",FA,[Ha(s,{name:"no-results"}),qa("p",{textContent:he(e.i18n.noPropertiesFound)},null,8,$A),qa("p",{class:"desc",textContent:he(e.i18n.noPropertiesDesc)},null,8,MA),qa("a",{class:"button",target:"_blank",href:"".concat(e.bricks.academy.components,"#properties"),textContent:he(e.i18n.learnMore)},null,8,LA)])),"groups"!==e.$_state.activeProperty?(Ta(),Ma("div",{key:2,class:"panel-content","data-action":r.action},[r.action?(Ta(),Ma("form",{key:0,onSubmit:t[17]||(t[17]=bc(function(){},["prevent"]))},["create"===r.action?(Ta(),Ma("div",jA,[qa("h3",{textContent:he("".concat(e.i18n.type," *"))},null,8,BA),Ha(u,{controlKey:"propertyType",control:{type:"select",options:{text:e.i18n.text,editor:e.i18n.richText,icon:e.i18n.icon,image:e.i18n.image,"image-gallery":e.i18n.imageGallery,link:e.i18n.link,select:e.i18n.select,toggle:e.i18n.toggle,query:e.i18n.queryLoop,class:e.i18n.globalClasses},placeholder:"".concat(e.i18n.select," (").concat(e.i18n.type,")")},settings:{propertyType:r.propertyType},value:r.propertyType,onUpdated:t[5]||(t[5]=function(e){return r.propertyType=e})},null,8,["control","settings","value"])])):Qa("",!0),Xn(qa("div",RA,[qa("div",VA,[qa("h3",{textContent:he("".concat(e.i18n.name," *"))},null,8,qA)]),Xn(qa("input",{type:"text",ref:"propertyLabel","onUpdate:modelValue":t[6]||(t[6]=function(e){return r.propertyLabel=e}),autocomplete:"off",spellcheck:"false",placeholder:e.i18n[r.propertyType]},null,8,HA),[[ac,r.propertyLabel]]),r.propertyDescShow?Qa("",!0):(Ta(),Ma("p",zA,[qa("a",{href:"#",onClick:t[7]||(t[7]=bc(function(e){return r.propertyDescShow=!0},["prevent","stop"]))},he(e.i18n.add)+": "+he(e.i18n.description),1),Ga(" ("+he(e.i18n.optional)+") ",1)]))],512),[[pl,r.propertyType]]),Xn(qa("div",UA,[qa("h3",{textContent:he(e.i18n.description)},null,8,WA),Xn(qa("textarea",{"onUpdate:modelValue":t[8]||(t[8]=function(e){return r.propertyDesc=e}),autocomplete:"off",spellcheck:"false",rows:"5"},null,512),[[ac,r.propertyDesc]])],512),[[pl,r.propertyType&&(r.propertyDesc||r.propertyDescShow)]]),Xn(qa("div",GA,[qa("div",KA,[qa("h3",{textContent:he(e.i18n.group)},null,8,QA)]),Ha(d,{value:r.propertyGroup,onInput:t[9]||(t[9]=function(e){return o.setPropertyGroup(e)}),control:{options:o.propertyGroupOptions,placeholder:e.i18n.group,placeholderSearch:e.i18n.create,nothingFound:e.i18n.select,add:!0}},null,8,["value","control"])],512),[[pl,r.propertyType]]),["select","class"].includes(r.propertyType)?(Ta(),Ma("div",YA,[qa("h3",{textContent:he(e.i18n.options)},null,8,JA),qa("p",{class:"description",innerHTML:e.i18n.propertyOptionsDesc},null,8,XA),Array.isArray(r.propertyOptions)&&r.propertyOptions.length?(Ta(),Ma("ul",ZA,[(Ta(!0),Ma(Ca,null,Rr(r.propertyOptions,function(t,n){return Ta(),Ma("li",{key:n,class:te({active:t.active})},[Xn(qa("input",{type:"text",autocomplete:"off",spellcheck:"false","onUpdate:modelValue":function(e){return t.label=e},placeholder:e.i18n.label,title:e.i18n.label},null,8,eD),[[ac,t.label]]),"select"===r.propertyType?Xn((Ta(),Ma("input",{key:0,type:"text",autocomplete:"off",spellcheck:"false","onUpdate:modelValue":function(e){return t.value=e},placeholder:e.i18n.value,title:e.i18n.value},null,8,tD)),[[ac,t.value]]):"class"===r.propertyType?(Ta(),La(u,{key:1,controlKey:"propertyOptions",control:{type:"select",options:o.globalClassOptions,multiple:!0,searchable:!0,placeholder:e.i18n.className},settings:{propertyOptions:t.value||null},value:t.value,onUpdated:function(e){return t.value=e}},null,8,["control","settings","value","onUpdated"])):Qa("",!0),qa("button",{type:"button",onClick:bc(function(e){return o.deleteOption(n)},["stop"]),"data-balloon":e.i18n.delete,"data-balloon-pos":"top-right"},[Ha(s,{name:"trash"})],8,nD)],2)}),128))])):Qa("",!0),qa("button",{type:"button",class:"add-option",onClick:t[10]||(t[10]=bc(function(e){return o.addOption()},["stop"]))},[Ha(s,{name:"add"}),qa("span",{textContent:he(e.i18n.option)},null,8,iD)]),Ha(u,{control:{type:"checkbox",label:e.i18n.multipleOptions},controlKey:"propertyOptionsMultiple",settings:{propertyOptionsMultiple:r.propertyOptionsMultiple},value:r.propertyOptionsMultiple,onUpdated:t[11]||(t[11]=function(e){return r.propertyOptionsMultiple=e})},null,8,["control","settings","value"]),"class"===r.propertyType?(Ta(),La(u,{key:1,control:{type:"checkbox",label:e.i18n.replaceElementClasses,desc:e.i18n.replaceElementClassesDesc},controlKey:"propertyOptionsReplace",settings:{propertyOptionsReplace:r.propertyOptionsReplace},value:r.propertyOptionsReplace,onUpdated:t[12]||(t[12]=function(e){return r.propertyOptionsReplace=e})},null,8,["control","settings","value"])):Qa("",!0)])):Qa("",!0),Xn(qa("div",rD,[qa("div",oD,[qa("h3",{textContent:he(e.i18n.default)},null,8,aD),Xn(qa("button",{type:"button","data-balloon":e.i18n.clear,"data-balloon-pos":"top-right",onClick:t[13]||(t[13]=bc(function(e){return o.setPropertyDefault()},["stop"]))},[Ha(s,{name:"trash"})],8,sD),[[pl,r.propertyDefault]])]),!["select","class"].includes(r.propertyType)||null!==(a=o.propertyControl)&&void 0!==a&&a.options?Qa("",!0):(Ta(),La(c,{key:0,control:{content:e.i18n.propertyDefaultSelectControlInfo}},null,8,["control"])),Ha(u,{control:o.propertyControl,controlKey:"propertyDefault",settings:{propertyDefault:r.propertyDefault},value:o.getPropertyDefault,onUpdated:t[14]||(t[14]=function(e){return o.setPropertyDefault(e)})},null,8,["control","settings","value"])],512),[[pl,r.propertyType]]),qa("div",lD,[qa("button",{type:"submit",class:"button submit",textContent:he("create"===r.action?e.i18n.create:e.i18n.save),disabled:!o.canSaveProperty,onClick:t[15]||(t[15]=bc(function(e){return o.saveProperty(e)},["stop"]))},null,8,cD),qa("button",{type:"button",class:"button cancel",textContent:he(e.i18n.cancel),onClick:t[16]||(t[16]=bc(function(e){return o.savePropertyCancel()},["stop"]))},null,8,uD)])],32)):Qa("",!0),o.unconnectedProperties.length&&!n.init?(Ta(),Ma("div",dD,[Ha(c,{control:{content:e.i18n.unconnectedPropertiesDescription}},null,8,["control"])])):Qa("",!0),(Ta(!0),Ma(Ca,null,Rr(o.propertiesPerGroupId,function(i,a){var c;return Xn((Ta(),Ma("div",{class:"properties-per-group",key:a},[o.getPropertyGroup(a)?(Ta(),Ma("div",pD,[Ha(s,{name:"folder",class:"icon",title:e.i18n.group},null,8,["title"]),qa("h3",{class:"group-name",textContent:he(null===(c=o.getPropertyGroup(a))||void 0===c?void 0:c.name)},null,8,hD)])):Qa("",!0),n.init||"groups"===e.$_state.activeProperty?Qa("",!0):(Ta(),La(l,{key:1,tag:"ul",class:te(["properties",r.action]),parent:i,options:{direction:"vertical",itemClass:"sortable",handleClass:"move"},onUpdate:function(e){return o.updatePropertyIndex(e,a)}},{default:Jn(function(){return[(Ta(!0),Ma(Ca,null,Rr(i,function(n,i){return Ta(),Ma("li",{key:n.id,class:te(["sortable",{active:e.$_state.activeProperty===n.id},{unconnected:!n.connections&&!o.isConnectedToNestedInstance(n.id)}])},[qa("div",{class:"action move","data-balloon":e.i18n.move,"data-balloon-pos":"top-left"},gA(t[19]||(t[19]=[qa("span",{class:"handle-bar","aria-hidden":"true"},null,-1)])),8,fD),qa("div",mD,["query"===n.type?(Ta(),La(s,{key:0,name:"loop",title:"".concat(e.i18n.type,": ").concat(e.i18n[n.type]),class:"type"},null,8,["title"])):"class"===n.type?(Ta(),La(s,{key:1,name:"css3",title:"".concat(e.i18n.type,": ").concat(e.i18n[n.type]),class:"type"},null,8,["title"])):"toggle"===n.type?(Ta(),La(s,{key:2,name:"toggle",title:"".concat(e.i18n.type,": ").concat(e.i18n[n.type]),class:"type"},null,8,["title"])):(Ta(),Ma("i",{key:3,class:te(["type",e.$_getComponentPropertyIconClassName(n.type)]),title:"".concat(e.i18n.type,": ").concat(e.i18n[n.type])},null,10,gD)),qa("span",{textContent:he(n.label)},null,8,vD)]),r.action?Qa("",!0):(Ta(),Ma("div",yD,[n.default||"toggle"===n.type?Qa("",!0):(Ta(),Ma("span",{key:0,class:"no-default","data-balloon":e.i18n.noDefaultValue,"data-balloon-pos":"top-right",onClick:bc(function(e){return o.editProperty(n.id)},["stop"])},[Ha(s,{name:"deprecated"})],8,bD)),n.connections||o.isConnectedToNestedInstance(n.id)?Qa("",!0):(Ta(),Ma("span",{key:1,class:"unconnected","data-balloon":e.i18n.unconnected,"data-balloon-pos":"top-right",onClick:t[18]||(t[18]=bc(function(t){return e.$_state.activeProperty=null},["stop"]))},[Ha(s,{name:"unlinked"})],8,kD)),qa("span",{class:"edit","data-balloon":e.i18n.edit,"data-balloon-pos":"top-right",onClick:bc(function(e){return o.editProperty(n.id)},["stop"])},[Ha(s,{name:"edit"})],8,wD),e.$_state.deleteItem!==(null==n?void 0:n.id)?(Ta(),Ma("span",{key:2,class:"delete","data-balloon":e.i18n.delete,"data-balloon-pos":"top-right",onClick:bc(function(t){return e.$_deleteConfirmation(null==n?void 0:n.id)},["stop"])},[Ha(s,{name:"trash"})],8,_D)):(Ta(),Ma("span",{key:3,class:"confirm","data-balloon":e.i18n.sure,"data-balloon-pos":"top-right",onClick:bc(function(e){return o.deleteProperty(null==n?void 0:n.id)},["stop"])},[Ha(s,{name:"check"})],8,CD))]))],2)}),128))]}),_:2},1032,["class","parent","onUpdate"]))])),[[pl,"create"!==r.action]])}),128))],8,NA)):Qa("",!0)])}]]);var TD=DD,ID=["innerHTML"];var OD={computed:{getBreadcrumbElementTree:function(){var e,t,n,i,r,o=this.$_dynamicElements.value,a=this.$_state.activeElement,s=String((null===(e=a)||void 0===e?void 0:e.parent)||0),l="0"!==s&&""!==s;if(null===(t=a)||void 0===t||!t.id||!l||this.$_state.activeProperty)return[];o=this.$_clone(o),a=this.$_clone(a),null!==(n=this.$_state.activeComponent)&&void 0!==n&&n.elements&&(o=this.$_clone(this.$_state.activeComponent.elements));for(var c=null===(i=this.$_getElementConfig(null===(r=a)||void 0===r?void 0:r.name))||void 0===i?void 0:i.label,u=this.$_getElementLabel(a),d=[{id:a.id,parent:s,label:c,title:u}];0!==s;){var p,h=o.find(function(e){return e.id===s||(null==e?void 0:e.cid)===s});if(!h)break;c=null===(p=this.$_getElementConfig(h.name))||void 0===p?void 0:p.label,u=this.$_getElementLabel(h),s=null==h?void 0:h.parent,d.push({id:null==h?void 0:h.id,parent:s,label:c,title:u})}return d},getBreadcrumbsHTML:function(){var e=this,t="";return this.getBreadcrumbElementTree.length?(this.getBreadcrumbElementTree.reverse().forEach(function(n,i){var r,o=n.label,a=n.title;e.bricks.builderElementBreadcrumbs.includes("custom")&&(o=n.title,a=n.label),o=o.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),null!==(r=e.$_state.activeElement)&&void 0!==r&&r.id&&e.$_state.activeElement.id===n.id?t+='<span title="'.concat(a,'" data-element-id="').concat(n.id,'" data-parent-id="').concat(n.parent,'" class="is-active">').concat(o,"</span>"):t+='<span title="'.concat(a,'" data-element-id="').concat(n.id,'" data-parent-id="').concat(n.parent,'" class="is-parent">').concat(o,"</span>"),i<e.getBreadcrumbElementTree.length-1&&(t+='<span class="level">></span>')}),t):t}},methods:{editElement:function(e){var t=e.target.getAttribute("data-element-id");e.target.getAttribute("data-parent-id")&&(this.$_state.activeId=t)}}};var PD=(0,xx.A)(OD,[["render",function(e,t,n,i,r,o){return o.getBreadcrumbsHTML?(Ta(),Ma("div",{key:0,id:"bricks-panel-element-breadcrumbs",onClick:t[0]||(t[0]=function(e){return o.editElement(e)}),innerHTML:o.getBreadcrumbsHTML},null,8,ID)):Qa("",!0)}]]);function FD(e){return function(e){if(Array.isArray(e))return $D(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return $D(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$D(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var MD=["data-balloon","data-balloon-pos","onClick"],LD=["textContent"];var ND={data:function(){return{renderKey:Date.now(),listStyle:{marginTop:"160px"}}},computed:{activeSettingsString:function(){var e,t,n,i=null===(e=this.$_state.activeElement)||void 0===e?void 0:e.settings;this.$_state.activeClass&&(i=null===(t=this.$_state.activeClass)||void 0===t?void 0:t.settings);this.$_state.activeSelector&&(i=null===(n=this.$_state.activeSelector)||void 0===n?void 0:n.settings);return i?JSON.stringify(i):""},shortcuts:function(){var e,t=[];this.$_userHasPermission("access_element_content")&&t.push({group:"content",icon:"box",title:this.i18n.content,hasSettings:!1}),this.$_userHasPermission("access_element_content")&&(t.push({group:"_layout",icon:"tab-layout",title:this.i18n.layout,hasSettings:!1}),t.push({group:"_typography",icon:"tab-typography",title:this.i18n.typography,hasSettings:!1}),t.push({group:"_background",icon:"tab-background",title:this.i18n.background,hasSettings:!1}),t.push({group:"_border",icon:"tab-border",title:this.i18n.border,hasSettings:!1}),t.push({group:"_gradient",icon:"tab-gradient",title:this.i18n.gradient,hasSettings:!1}),t.push({group:"_shapes",icon:"cursor",title:this.i18n.shapeDividers,hasSettings:!1}),t.push({group:"_transform",icon:"tab-transform",title:this.i18n.transform.transform,hasSettings:!1}),t.push({group:"_css",icon:"css3",title:"CSS",hasSettings:!1}),t.push({group:"_attributes",icon:"html",title:this.i18n.attributes,hasSettings:!1}));var n=this.$_getElementConfig(null===(e=this.$_state.activeElement)||void 0===e?void 0:e.name),i=null!=n&&n.controlGroups?Object.keys(null==n?void 0:n.controlGroups):[];return i.length>0&&!i.includes("_shapes")&&(t=t.filter(function(e){return"_shapes"!==e.group})),t}},methods:{toggleShortcuts:function(){this.$_state.showElementQuickAccess=!this.$_state.showElementQuickAccess},isActive:function(e){return"content"===this.$_state.activePanelTab&&"content"===e||"style"===this.$_state.activePanelTab&&this.$_state.activePanelGroup===e},setActivePanelGroup:function(e){this.$_clearSearchControls(),"content"===e?this.$_state.activePanelTab="content":(this.$_state.activePanelGroup===e&&e===this.$_state.activePanelTab?this.$_state.activePanelGroup="":this.$_state.activePanelGroup=e,this.$_state.activePanelTab="style"),this.$_state.showHideElement=!1,this.$_state.showConditions=!1,this.$_state.showInteractions=!1,this.$_state.elementQuickAccessIndex=-1},updatePositionAndIndicator:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];"element"===this.$_state.activePanel&&setTimeout(function(){if(t){var n,i=e.$_state.activeComponent?200:160,r=(null===(n=e.$el)||void 0===n||null===(n=n.parentNode)||void 0===n?void 0:n.querySelector("#bricks-panel-tabs"))||null;if(r){var o=r.getBoundingClientRect();o.top&&(i=o.top-o.height-2)}var a=document.querySelector("#bricks-panel");a&&a.offsetHeight<680?e.listStyle.marginTop="auto":e.listStyle.marginTop=i+"px"}e.shortcuts.forEach(function(e){var t=document.querySelector('[data-control-group="'.concat(e.group,'"]'));t&&(e.hasSettings=!!t.querySelector(".has-setting"))}),e.renderKey=Date.now()},0)}},mounted:function(){JSON.parse(localStorage.getItem("brx_builder_hideElementControlShortcuts"))&&(this.$_state.showElementQuickAccess=!1)},watch:{"$_state.elementQuickAccessHover":{handler:function(e){var t,n=null===(t=this.shortcuts[e])||void 0===t?void 0:t.group;n&&this.setActivePanelGroup(n)}},"$_state.showElementQuickAccess":{handler:function(e){e?localStorage.removeItem("brx_builder_hideElementControlShortcuts"):localStorage.setItem("brx_builder_hideElementControlShortcuts",!0)},immediate:!1},"$_state.activePanel":function(){this.updatePositionAndIndicator()},"$_state.breakpointActive":function(){this.updatePositionAndIndicator(!1)},"$_state.activeId":function(){this.$_state.activeId&&this.updatePositionAndIndicator(!1)},"$_state.activeSelector.id":function(){this.updatePositionAndIndicator(!1)},"$_state.pseudoClassActive":function(){this.updatePositionAndIndicator(!1)},"$_state.activeComponent.id":{handler:function(e){e&&this.updatePositionAndIndicator()},immediate:!0},"$_state.rerenderControls":{handler:function(){var e=this;setTimeout(function(){e.updatePositionAndIndicator(!1)},0)},immediate:!1},activeSettingsString:{handler:function(){this.updatePositionAndIndicator(!1)},immediate:!1}}};var jD=(0,xx.A)(ND,[["render",function(e,t,n,i,r,o){var a=$r("icon");return Ta(),Ma("div",{id:"bricks-panel-element-quick-access",class:te({hidden:!e.$_state.showElementQuickAccess,hover:e.$_state.elementQuickAccessHover})},[(Ta(),Ma("ul",{style:Y(r.listStyle),key:r.renderKey,ref:"list"},[(Ta(!0),Ma(Ca,null,Rr(o.shortcuts,function(t,n){return Ta(),Ma("li",{key:t.group,class:te([{active:o.isActive(t.group)},{"has-settings":!0===t.hasSettings}]),"data-balloon":t.title,"data-balloon-pos":e.bricks.isRtl?"left":"right",onClick:bc(function(e){return o.setActivePanelGroup(t.group)},["stop"])},[Ha(a,{name:t.icon},null,8,["name"]),qa("span",{class:"index",textContent:he(n)},null,8,LD)],10,MD)}),128))],4)),Ha(a,{name:e.$_state.showElementQuickAccess?"arrow-left":"arrow-right",class:"toggle","data-balloon":e.$_state.showElementQuickAccess?"".concat(e.i18n.hide," (").concat(e.i18n.shortcuts,")"):"".concat(e.i18n.show," (").concat(e.i18n.shortcuts,")"),"data-balloon-pos":"top-left",onClick:o.toggleShortcuts},null,8,["name","data-balloon","onClick"]),e.$_state.showElementQuickAccess?Qa("",!0):(Ta(),La(Lr("style"),{key:0},{default:Jn(function(){return FD(t[0]||(t[0]=[Ga(" #bricks-panel-controls-search { padding-inline-start: 50px; } ",-1)]))}),_:1}))],2)}]]);function BD(e){return function(e){if(Array.isArray(e))return RD(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return RD(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?RD(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function RD(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var VD={id:"bricks-panel-element-classes",class:"bricks-panel-selectors"},qD=["contenteditable","title","textContent"],HD=["title","textContent"],zD={class:"actions-wrapper"},UD={class:"dropdown-wrapper"},WD={class:"dropdown"},GD={key:0,class:"selector-detector-results"},KD=["textContent"],QD={key:2,class:"nodes"},YD=["onClick"],JD=["textContent"],XD={class:"actions"},ZD={class:"selector-wrapper"},eT={class:"selector-list"},tT=["onClick","textContent"],nT=["placeholder"],iT={class:"actions"},rT=["placeholder","title"],oT=["disabled","textContent"],aT=["textContent"],sT={key:0,class:"element-id"},lT={class:"title"},cT=["textContent"],uT=["textContent"],dT={class:"actions"},pT={key:1,class:"pseudo-classes"},hT={class:"title"},fT=["textContent"],mT={class:"actions"},gT={key:0},vT=["onClick"],yT=["textContent"],bT={class:"actions"},kT={key:2,class:"selectors"},wT={class:"title"},_T=["textContent"],CT={class:"actions"},xT=["title","onClick"],ST=["textContent"],ET={class:"actions"},AT={key:3,class:"element-classes"},DT={class:"title"},TT=["textContent"],IT=["data-class-id","onClick","onMouseenter"],OT=["textContent"],PT={key:0,class:"actions"},FT={key:4,class:"global-classes"},$T={class:"title"},MT=["textContent"],LT=["onClick"],NT=["textContent"],jT=["data-class-id","onClick","onMouseenter"],BT={class:"name"},RT={key:0,class:"actions"},VT=["title","onClick"],qT=["data-class-id","textContent"];function HT(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||UT(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zT(e){return function(e){if(Array.isArray(e))return WT(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||UT(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function UT(e,t){if(e){if("string"==typeof e)return WT(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?WT(e,t):void 0}}function WT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var GT={props:{element:{type:Object,required:!0,default:function(){return{}}},settings:{type:Object,required:!0,default:function(){return{}}}},setup:function(){return{activeId:ln(Xh,"activeId"),activeClass:ln(Xh,"activeClass"),globalClasses:ln(Xh,"globalClasses"),globalClassesLocked:ln(Xh,"globalClassesLocked"),globalClassesSelected:ln(Xh,"globalClassesSelected")}},data:function(){return{hasConnectedProperty:!1,elementCssId:"",mainSelectorValue:"",mounted:!1,saveAs:"class",action:void 0,showActions:!1,showPseudoClasses:!0,showSelectors:!1,selectorLabel:"",selectorInput:"",deleteId:!1,classListNodes:void 0,selectedClassNode:void 0,selectedClassIndex:-1}},computed:{dropdownTooltipPos:function(){return this.$_userHasPermission("access_pseudo_selectors")?this.bricks.isRtl?"right":"left":"top-right"},commonClasses:function(){var e=this.$_state.selectedElements;if(!e.length)return[];var t=[];return e.forEach(function(n){var i,r=(null==n||null===(i=n.settings)||void 0===i?void 0:i._cssGlobalClasses)||[];r.length&&r.forEach(function(n){if(!t.includes(n)){var i=e.every(function(e){var t;return null===(t=e.settings)||void 0===t||null===(t=t._cssGlobalClasses)||void 0===t?void 0:t.includes(n)});i&&t.push(n)}})}),t},hasComponentPropertyTypeClass:function(){return this.$_state.activeComponent},showCssContentControl:function(){var e;return!(!this.pseudoClassActive||!this.pseudoClassActive.includes(":before")&&!this.pseudoClassActive.includes(":after"))||(!(null===(e=this.activeSelector)||void 0===e||!e.selector||!this.activeSelector.selector.includes(":before")&&!this.activeSelector.selector.includes(":after"))||void 0)},selectorDetectorString:function(){return JSON.stringify(this.$_state.selectorDetector)},pseudoElementContentKey:function(){return this.$_getControlKeyActive("_content")},pseudoElementContent:{get:function(){var e,t;return this.activeSelector?null===(e=this.activeSelector)||void 0===e?void 0:e.settings[this.pseudoElementContentKey]:this.activeClass?null===(t=this.activeClass)||void 0===t?void 0:t.settings[this.pseudoElementContentKey]:this.settings[this.pseudoElementContentKey]},set:function(e){var t,n;if(this.activeSelector)null!==(t=this.activeSelector)&&void 0!==t&&t.settings&&!Array.isArray(null===(n=this.activeSelector)||void 0===n?void 0:n.settings)||(this.activeSelector.settings={}),this.activeSelector.settings[this.pseudoElementContentKey]=e;else if(this.activeClass){var i,r;null!==(i=this.activeClass)&&void 0!==i&&i.settings&&!Array.isArray(null===(r=this.activeClass)||void 0===r?void 0:r.settings)||(this.activeClass.settings={}),this.activeClass.settings[this.pseudoElementContentKey]=e}else this.settings[this.pseudoElementContentKey]=e}},pseudoClasses:function(){var e=this,t=this.$_clone(this.$_state.pseudoClasses);return this.selectorInput&&(t=t.filter(function(t){return t.includes(e.selectorInput)})),t},isBulkEditing:function(){return this.$_isBulkEditing()},elementClassIds:function(){var e,t=this;if(this.isBulkEditing)return this.commonClasses;var n=Array.isArray(null===(e=this.$_state.activeElement)||void 0===e||null===(e=e.settings)||void 0===e?void 0:e._cssGlobalClasses)?this.$_state.activeElement.settings._cssGlobalClasses:[];return n=n.filter(function(e){return t.$_getGlobalClassName(e)}),n},activeClassId:function(){var e;return null===(e=this.activeClass)||void 0===e?void 0:e.id},isLocked:function(){return!!this.activeClassId&&this.$_isLocked(this.activeClassId)},classesDisabled:function(){var e;return this.bricks.disableGlobalClasses&&!(null!==(e=this.settings)&&void 0!==e&&e._cssGlobalClasses)},hasActiveClass:function(){return this.elementClassIds.includes(this.activeClassId)},hasActiveSelector:function(){return this.activeSelector||this.pseudoClassActive},pseudoClassActive:function(){return this.$_state.pseudoClassActive},allSelectors:function(){var e=this.activeClass||this.element;return Array.isArray(null==e?void 0:e.selectors)?e.selectors:[]},selectors:function(){var e=this,t=this.allSelectors;return this.selectorInput&&"editSelector"!==this.action?t.filter(function(t){return t.selector.includes(e.selectorInput)||(null==t?void 0:t.label)&&t.label.includes(e.selectorInput)}):t},activeSelector:function(){return this.$_state.activeSelector},activeSelectorId:function(){var e;return null===(e=this.$_state.activeSelector)||void 0===e?void 0:e.id},activeSelectorName:function(){var e=this;if(this.activeSelectorId&&this.allSelectors.length){var t=this.allSelectors.find(function(t){return t.id===e.activeSelectorId});if(t)return(null==t?void 0:t.label)||t.selector}return this.$_state.pseudoClassActive||""},mainSelector:function(){var e,t,n;if(this.$_state.activeComponent){var i,r,o,a,s=null!==(i=this.settings)&&void 0!==i&&i._cssId?"#".concat(null===(r=this.settings)||void 0===r?void 0:r._cssId):".brxe-".concat(null===(o=this.$_state.activeElement)||void 0===o?void 0:o.id);return null!==(a=this.activeClass)&&void 0!==a&&a.name&&(s="rename"===this.action?this.activeClass.name:".".concat(this.activeClass.name)),s}if(this.isBulkEditing)return null!==(n=this.activeClass)&&void 0!==n&&n.name?this.activeClass.name:this.$_state.pseudoClassActive?this.i18n.selectedElements:"".concat(this.i18n.viewClasses);var l="rename"===this.action&&null!==(e=this.settings)&&void 0!==e&&e._cssId?this.settings._cssId:"";return null!==(t=this.activeClass)&&void 0!==t&&t.name&&(l="rename"===this.action?this.activeClass.name:".".concat(this.activeClass.name)),l},categories:function(){var e=this,t=this.$_clone(this.$_state.globalClassesCategories)||[];return t.unshift({id:"_uncategorized",name:this.i18n.uncategorized}),t.forEach(function(t){t.expand=e.$_state.globalClassesCategoriesExpanded.includes(t.id)}),1===t.length&&(t[0].expand=!0),t},otherClasses:function(){var e=this,t=this.$_clone(this.globalClasses),n=[];return t.forEach(function(t){var i;e.elementClassIds.includes(t.id)||(!e.selectorInput||null!=t&&null!==(i=t.name)&&void 0!==i&&i.includes(e.selectorInput))&&(e.$_state.globalClassesLocked.includes(t.id)&&(t._locked=!0),null!=t&&t.category&&e.$_state.globalClassesCategories.some(function(e){return e.id===t.category})||(t.category="_uncategorized"),n.push(t))}),n},selectorSettingsCount:function(){var e=this,t=this.allSelectors.filter(function(e){return(null==e?void 0:e.settings)&&!Array.isArray(null==e?void 0:e.settings)&&Object.keys(e.settings).length}).length;return this.pseudoClasses.forEach(function(n){e.pseudoClassSettingsCount(n)&&t++}),t},renameNotAllowed:function(){return!this.activeClassId&&this.isBulkEditing}},methods:{getClassesByCategoryId:function(e){return"_uncategorized"!==e||this.$_state.globalClassesCategories.length?this.otherClasses.filter(function(t){return(null==t?void 0:t.category)&&t.category===e}):this.otherClasses},toggleCategory:function(e){e.expand?delete e.expand:e.expand=!0;var t=this.$_clone(this.$_state.globalClassesCategoriesExpanded);e.expand&&!t.includes(e.id)?t.push(e.id):t=t.filter(function(t){return t!==e.id}),this.$_state.globalClassesCategoriesExpanded=t,localStorage.setItem("brx_builder_global_classes_active_categories",t.join(","))},toggleSelectorDetectorNode:function(e){e.active=!e.active,this.setSelectorInputFromDetector()},setSelectorInputFromDetector:function(){if(Array.isArray(this.$_state.selectorDetector)){var e=[];this.$_state.selectorDetector.forEach(function(t){t.active&&t.selector&&e.push(t.selector)}),this.selectorInput=e.join(" ")}},selectorPartIsActive:function(e,t){return e.selector.split(/(?=[#.])/).includes(t)},toggleSelectorDetectorPart:function(e,t){var n=e.selector.split(/(?=[#.])/);if(1!==n.length||n[0]!==t){var i=n.indexOf(t);-1!==i?n.splice(i,1):n.push(t),(n=zT(new Set(n))).sort(function(e,t){var n=r(e),i=r(t);return n!==i?n-i:e.localeCompare(t)}),e.selector=n.join("")}function r(e){return e.startsWith("#")?1:e.startsWith(".")?2:0}},toggleSelectorDetector:function(){this.$_state.selectorDetector=!this.$_state.selectorDetector},onKeyup:function(e){var t=this;if(this.$_state.showElementClasses){switch(this.classListNodes=this.$el.querySelectorAll(".bricks-control-popup li:not(.title)"),this.selectedClassNode=this.$el.querySelector(".bricks-control-popup li.selected"),e.key){case"Enter":if(this.selectedClassNode){var n=this.$_getGlobalClass(this.selectedClassNode.dataset.classId,!0,!0);n&&this.addClassToElement(n)}break;case"Escape":this.$_state.showElementClasses=!1;break;case"ArrowUp":this.selectedClassNode&&this.selectedClassNode.classList.remove("selected"),this.selectedClassIndex>0&&(this.selectedClassIndex-=1);break;case"ArrowDown":this.selectedClassNode&&this.selectedClassNode.classList.remove("selected"),this.selectedClassIndex+1<this.classListNodes.length&&(this.selectedClassIndex+=1)}if(this.selectedClassNode=this.classListNodes[this.selectedClassIndex],this.selectedClassNode){this.selectedClassNode.classList.toggle("selected");var i=this.$el.querySelector(".bricks-control-popup .css-classes"),r=this.$el.querySelector(".bricks-control-popup .input-wrapper");if(i&&r&&(this.$nextTick(function(){return i.scrollTo({top:t.selectedClassNode.offsetTop-r.offsetHeight})}),this.bricks.classPreviewOnHover)){var o,a=null===(o=this.selectedClassNode)||void 0===o||null===(o=o.dataset)||void 0===o?void 0:o.classId;this.$_state.classPreviewOnHover=a?this.selectedClassNode.dataset.classId:""}}else this.$_state.classPreviewOnHover=""}else{var s;this.$_state.classPreviewOnHover="","Tab"===e.key&&null!==(s=document.activeElement)&&void 0!==s&&s.classList.contains("active-selector")&&(this.$_state.showElementClasses=!0)}},toggleShowElementClasses:function(e){this.showSelectors?this.toggleSelectors():"rename"!==this.action&&(this.$_state.showElementClasses=!this.$_state.showElementClasses)},toggleSelectors:function(){this.cancelSelector(),this.$_state.showElementClasses=!0,this.showSelectors=!this.showSelectors,this.showSelectors||(this.$_state.selectorDetector=!1)},deletePseudo:function(e){this.deleteId=!1,this.$_state.pseudoClasses=this.pseudoClasses.filter(function(t){return t!==e}),"element"===this.$_state.activePanel&&this.this.$_isLoopElement(this.element)&&this.$_forceRender(0)},deleteSelector:function(e){this.deleteId=!1,this.activeClass?this.activeClass.selectors=this.activeClass.selectors.filter(function(t){return t.id!==e}):this.$_state.activeElement.selectors=this.$_state.activeElement.selectors.filter(function(t){return t.id!==e}),this.activeSelectorId===e&&(this.$_state.activeSelector=void 0),"element"===this.$_state.activePanel&&this.this.$_isLoopElement(this.element)&&this.$_forceRender(0)},editSelector:function(e){this.action="editSelector";var t=this.selectors.find(function(t){return t.id===e});this.selectorInput=t.selector,this.selectorLabel=t.label,this.$_state.activeSelector=t},cancelSelector:function(){this.action=void 0,this.selectorInput="",this.selectorLabel="",this.$_state.selectorDetector=!1,this.$_state.showElementClasses=!1},saveSelector:function(e){var t=this;if(this.selectorInput){if("class"===e)this.$_createGlobalClasses();else if("selector"===e)this.$_showMessage("".concat(this.i18n.created,": ").concat(this.i18n.selector)),this.$_state.activeSelector&&"editSelector"===this.action?this.updateSelector():this.createSelector();else if("pseudo"===e&&!this.$_state.pseudoClasses.includes(this.selectorInput)){if(!this.selectorInput.startsWith(":"))return void this.$_showError(this.i18n.pseudoClassError);this.$_state.pseudoClasses.push(this.selectorInput),this.$_showMessage("".concat(this.i18n.created,": ").concat(this.i18n.pseudoClass)),this.showSelectors||this.toggleSelectors()}this.$nextTick(function(){t.action=void 0,t.selectorInput="",t.selectorLabel="",t.saveAs="class",t.$_state.selectorDetector=!1,t.$_state.showElementClasses=!1})}},setActiveSelector:function(e){if(e)return this.$_state.activeSelector=this.activeSelectorId===e?void 0:this.selectors.find(function(t){return t.id===e}),this.$_state.pseudoClassActive=void 0,void(this.$_state.showElementClasses=!1);var t=this.selectorInput;if(this.pseudoClasses.includes(t))this.setActivePseudoClass(t);else{if(this.selectors.length){var n=this.selectors.find(function(e){return e.selector===n});if(n)return void(this.$_state.activeSelector=n)}!this.showSelectors&&t&&t.startsWith(":")||("createPseudo"===this.action?this.saveAs="pseudo":"createSelector"===this.action||"editSelector"===this.action||this.showSelectors?this.saveAs="selector":this.saveAs="class",this.saveSelector(this.saveAs))}},pseudoClassSettingsCount:function(e){var t,n=this,i=this.settings;return null!==(t=this.activeClass)&&void 0!==t&&t.settings&&(i=this.activeClass.settings),Object.keys(i).filter(function(t){return n.settingKeyMatchesPseudoClass(t,e)}).length},clearPseudoClassSettings:function(e){var t,n=(null===(t=this.activeClass)||void 0===t?void 0:t.settings)||this.settings;for(var i in n)this.settingKeyMatchesPseudoClass(i,e)&&delete n[i]},settingKeyMatchesPseudoClass:function(e,t){if(!e||!t)return!1;if(e.endsWith(t))return!0;var n=this.$_state.componentVariantActive;return n&&"default"!==n&&e.endsWith("".concat(t,":").concat(n))},setElementCssId:function(e){var t,n;e?this.elementCssId=e:null!==(t=this.element)&&void 0!==t&&null!==(t=t.settings)&&void 0!==t&&t._cssId?this.elementCssId=this.element.settings._cssId:null!==(n=this.element)&&void 0!==n&&n.global?this.elementCssId="brxe-".concat(this.activeId):this.elementCssId=this.$_getElementId(this.element)},selectCssClass:function(e){var t;e?this.globalClassesSelected[this.activeId]=e:null!==(t=this.globalClassesSelected)&&void 0!==t&&t[this.activeId]&&delete this.globalClassesSelected[this.activeId],this.$_rerenderControls()},clearActiveSelector:function(){this.$_state.activeSelector=void 0,this.$_state.pseudoClassActive=void 0,this.selectCssClass(""),this.activeClass=void 0},renameSelector:function(e){var t,n=this;e.preventDefault();var i=e.target.innerText;this.action=void 0,i&&((i=(i=(i=(i=i.replace(/(\r\n|\n|\r)/gm,"")).replace(/(\s\s+)/g," ")).trim()).replaceAll(" ","-")).startsWith(".")&&(i=i.replace(".","")),i.startsWith("#")&&(i=i.replace("#","")));var r=!1;if(!this.activeClass)return i?i&&i!==this.settings._cssId&&i!=="brxe-".concat(this.activeId)&&(this.settings._cssId=i,r=!0):delete this.settings._cssId,void(r&&this.$_showMessage("".concat(this.i18n.renamed)));if(i&&i!==(null===(t=this.activeClass)||void 0===t?void 0:t.name)){var o=this.globalClasses.find(function(e){return e.name===i});if(o)this.activeClass=this.$_getGlobalClass(null==o?void 0:o.id,!0,!0);else{var a=this.$_getGlobalClass(this.activeClassId,!0);Object.entries(null==a?void 0:a.settings).forEach(function(e){var t=HT(e,2),r=t[0],o=t[1];r.startsWith("_cssCustom")&&(a.settings[r]=n.$_replaceCustomCssRoot(".".concat(a.name),".".concat(i),o))}),a.name=i,this.activeClass=a,this.$nextTick(function(){n.$_state.rerenderClassNames=Date.now()})}}},initRename:function(){var e=this;this.renameNotAllowed||(this.action="rename",this.$_state.showElementClasses=!1,this.showSelectors=!1,this.$nextTick(function(){e.$refs.mainSelector.focus()}))},deleteGlobalClass:function(e){var t=this;this.$nextTick(function(){var n=d_.moveGlobalClassesToTrash(e);if(n.length>0){var i=n[0].name;e===t.activeClassId&&(t.selectCssClass(""),t.activeClass=void 0),t.$_showMessage("".concat(t.i18n.movedToTrash,": .").concat(i))}t.deleteId=!1})},addClassToElement:function(e){if(this.$_userHasPermission("assign_unassign_global_classes")){this.$_state.showElementClasses=!1;var t=e.id;this.isBulkEditing&&this.$_selectedElementsSetClasses([t],[]);var n,i=this.$_getGlobalClass(t,!0,!0);if(i||(i=e),this.selectCssClass(t),this.activeClass=this.$_clone(i),!this.elementClassIds.includes(t))null!==(n=this.settings)&&void 0!==n&&n._cssGlobalClasses?this.settings._cssGlobalClasses.push(t):this.settings._cssGlobalClasses=[t]}},removeClassFromElement:function(e){if(this.$_userHasPermission("assign_unassign_global_classes"))return this.isBulkEditing?(this.$_selectedElementsSetClasses([],[e]),void this.selectCssClass("")):void(this.elementClassIds.includes(e)&&(this.$_stopPostMessages(),this.settings._cssGlobalClasses=this.settings._cssGlobalClasses.filter(function(t){return t!==e}),this.action=void 0,this.activeClass=void 0,this.selectCssClass("")))},handleClassReorder:function(e){var t;e&&e.oldIndex!==e.newIndex&&!this.isBulkEditing&&null!==(t=e.items)&&void 0!==t&&t.length&&(this.$_state.activeElement.settings._cssGlobalClasses=e.items)},setActivePseudoClass:function(e){this.$_state.pseudoClassActive=this.pseudoClassActive===e?void 0:e,this.$_state.activeSelector=void 0,this.$_state.showElementClasses=!1},setActiveClass:function(e){this.activeClassId===e&&(e=""),this.selectCssClass(e),this.activeClass=e?this.$_getGlobalClass(e,!0,!0):void 0,this.$_state.showElementClasses=!1},resetIdStyles:function(){var e=this,t=this.$_getElementConfig(this.element.name);t&&(Object.keys(this.settings).forEach(function(n){var i=e.$_getControlKeyPlain(n),r=!!t.controls.hasOwnProperty(i)&&t.controls[i];r&&"icon"!==(null==r?void 0:r.type)&&(r.hasOwnProperty("css")||r.hasOwnProperty("reset")?r.hasOwnProperty("default")?e.settings[n]=r.default:delete e.settings[n]:"_cssCustom"===n&&delete e.settings[n])}),this.allSelectors.length&&this.allSelectors.forEach(function(e){e.settings={}}),this.$_showMessage("".concat(this.i18n.reset,": ").concat(this.i18n.styles)),this.$nextTick(function(){e.$_rerenderControls(),"element"===e.$_state.activePanel&&e.this.$_isLoopElement(e.element)&&e.$_forceRender(0)}))},resetClassStyles:function(e){var t=this,n=this.$_clone(this.globalClasses),i=n.findIndex(function(t){return t.id===e});n[i]&&(this.$_state.globalClasses[i].settings={}),e===this.activeClassId&&(this.activeClass.settings={}),this.allSelectors.length&&this.allSelectors.forEach(function(e){e.settings={}}),this.$_showMessage("".concat(this.i18n.reset,": ").concat(this.i18n.styles)),this.$nextTick(function(){t.$_rerenderControls(),"element"===t.$_state.activePanel&&t.$_isLoopElement(t.element)&&t.$_forceRender(0)})},lockClassId:function(e){var t=this.globalClassesLocked.indexOf(e);-1===t?this.globalClassesLocked.push(e):this.globalClassesLocked.splice(t,1)},updateSelector:function(){var e=this,t=this.selectors.find(function(t){return t.id===e.activeSelectorId});t&&this.selectorInput&&(t.selector=this.selectorInput,this.selectorLabel?t.label=this.selectorLabel:delete t.label),this.selectorInput="",this.selectorLabel="",this.action=void 0},createSelector:function(){var e=this.selectorInput;if(e){var t=this.activeClass||this.$_state.activeElement;if(null!=t&&t.selectors||(t.selectors=[]),t.selectors.find(function(t){return(null==t?void 0:t.selector)===e}))this.$_showError("".concat(this.i18n.selectorExists,": ").concat(e),1e3);else{var n={id:this.$_generateId(),selector:e,settings:{}};this.selectorLabel&&(n.label=this.selectorLabel),t.selectors.push(n),this.activeClassId&&(this.activeClass=t),this.$_state.activeSelector=n,this.selectorInput="",this.selectorLabel="",this.action=void 0}}},pseudoClassesToggle:function(e){e?localStorage.setItem("brx_show_pseudo_classes",!0):localStorage.getItem("brx_show_pseudo_classes")?localStorage.removeItem("brx_show_pseudo_classes"):localStorage.setItem("brx_show_pseudo_classes",!0),this.showPseudoClasses=localStorage.getItem("brx_show_pseudo_classes")}},mounted:function(){var e=this;localStorage.getItem("brx_show_pseudo_classes")&&(this.showPseudoClasses=!0),localStorage.getItem("brx_builder_global_classes_active_categories")&&(this.$_state.globalClassesCategoriesExpanded=localStorage.getItem("brx_builder_global_classes_active_categories").split(","),this.$_state.globalClassesCategoriesExpanded=this.$_state.globalClassesCategoriesExpanded.filter(function(t){return e.$_state.globalClassesCategories.some(function(e){return t===e.id||"_uncategorized"===t})})),this.$_state.showElementClasses=!1,document.addEventListener("keyup",this.onKeyup),setTimeout(function(){e.mounted=!0},100)},beforeUnmount:function(){this.$_state.showElementClasses=!1,document.removeEventListener("keyup",this.onKeyup)},watch:{"settings._cssId":function(e){this.setElementCssId(e)},"$_state.activeId":{handler:function(e){this.setElementCssId(),this.$_setLastSelectedClass(e)},immediate:!0},"$_state.pseudoClassActive":{handler:function(e){var t=this;e&&this.pseudoClassesToggle(!0),setTimeout(function(){t.$_state.showElementClasses=!1},0)},immediate:!0},"$_state.showElementClasses":{handler:function(e){var t=this;setTimeout(function(){e?t.$refs.selectorInput&&t.$refs.selectorInput.focus():(t.selectedClassIndex=-1,t.showSelectors=!1,t.$_state.selectorDetector=!1,t.$_state.classPreviewOnHover="")},10)}},selectorDetectorString:{handler:function(e,t){e&&!t&&(this.action="createSelector"),this.setSelectorInputFromDetector()}},isBulkEditing:{handler:function(e){if(e)return this.$_state.activeClass=void 0,this.$_state.activeSelector=void 0,this.$_state.pseudoClassActive=void 0,void this.$_refreshSelectedElementSettings();this.$_state.selectedElementSettings={}},immediate:!0},action:function(){"createSelector"!==this.action&&"createPseudo"!==this.action||!this.$refs.selectorInput||this.$refs.selectorInput.focus()},globalClassesLocked:{handler:function(){this.$_state.activeClassIsLocked=this.activeClassId&&this.globalClassesLocked.includes(this.activeClassId)},deep:!0},activeSelectorId:function(){var e,t;!this.activeSelector||null!==(e=this.activeSelector)&&void 0!==e&&e.settings&&!Array.isArray(null===(t=this.activeSelector)||void 0===t?void 0:t.settings)||(this.$_state.activeSelector.settings={}),this.$_rerenderControls()},activeClassId:function(){this.$_state.activeClassIsLocked=this.activeClassId&&this.globalClassesLocked.includes(this.activeClassId),this.$_state.activeSelector=void 0,this.selectorInput="",this.selectorLabel="",this.$_rerenderControls()},deleteId:function(e){var t=this;e&&setTimeout(function(){t.deleteId=!1},2e3)},showActions:function(e){this.bricks.classPreviewOnHover&&(this.$_state.classPreviewOnHover=e)}}};var KT=(0,xx.A)(GT,[["render",function(e,t,n,i,r,o){var a,s,l=this,c=$r("icon"),u=$r("control-info"),d=$r("panel-control-popup"),p=$r("control-property"),h=$r("control-text"),f=$r("sortable");return Ta(),Ma("div",VD,[o.activeClassId?(Ta(),La(Lr("style"),{key:0,scoped:""},{default:Jn(function(){return BD(t[37]||(t[37]=[Ga(" #bricks-panel-element-classes { --builder-bg-accent: var(--builder-bg-class); --builder-color-accent: var(--builder-color-class); } ",-1)]))}),_:1})):Qa("",!0),qa("div",{class:te(["active-selector",{active:o.hasActiveClass&&!r.action},{"is-renaming":"rename"===r.action},{"show-popup":e.$_state.showElementClasses},{"edit-only":o.classesDisabled||!(e.$_userHasPermission("edit_global_classes")||e.$_userHasPermission("assign_unassign_global_classes"))}]),tabindex:"0"},[qa("div",{class:"input-wrapper",onClick:t[3]||(t[3]=bc(function(e){return o.toggleShowElementClasses(e)},["stop"]))},[qa("span",{ref:"mainSelector",class:te(["input",{active:o.activeClassId},{"has-selector":o.hasActiveSelector},{locked:o.isLocked}]),contenteditable:"rename"===r.action&&e.$_userHasPermission("edit_global_classes")&&!o.isBulkEditing,title:o.mainSelector||null,autocomplete:"off",spellcheck:"false",textContent:he(o.mainSelector||"#".concat(r.elementCssId)),onBlur:t[0]||(t[0]=function(e){return o.renameSelector(e)}),onKeyup:t[1]||(t[1]=wc(function(e){return o.renameSelector(e)},["enter"]))},null,42,qD),o.activeSelectorName?(Ta(),Ma("span",{key:0,ref:"selector",class:"input selector",title:e.i18n.selector,autocomplete:"off",spellcheck:"false",textContent:he(o.activeSelectorName),onClick:t[2]||(t[2]=bc(function(e){return o.toggleSelectors()},["stop"]))},null,8,HD)):Qa("",!0)]),qa("div",zD,[e.$_userHasPermission("lock_unlock_global_classes")&&!o.isBulkEditing&&o.hasActiveClass&&o.isLocked?(Ta(),La(c,{key:0,class:"lock locked",name:"locked","data-balloon":e.i18n.locked,"data-balloon-pos":"top-right",onClick:t[4]||(t[4]=bc(function(e){return o.lockClassId(o.activeClassId)},["stop"]))},null,8,["data-balloon"])):Qa("",!0),r.action||!o.hasActiveClass&&!o.hasActiveSelector?Qa("",!0):(Ta(),La(c,{key:1,name:"close",class:"clear","data-balloon":e.i18n.deselect,"data-balloon-pos":"top-right",onClick:t[5]||(t[5]=bc(function(e){return o.clearActiveSelector()},["stop"]))},null,8,["data-balloon"])),qa("div",{class:te(["actions",{"no-selectors-permission":!e.$_userHasPermission("access_pseudo_selectors")}])},[e.$_userHasPermission("access_pseudo_selectors")?(Ta(),Ma("div",{key:0,class:"selectors-wrapper",onClick:t[6]||(t[6]=bc(function(e){return o.toggleSelectors()},["stop"]))},[Ha(c,{name:"cursor",class:te(["selectors",{active:r.showSelectors&&e.$_state.showElementClasses},{"has-settings":o.selectorSettingsCount}]),"data-balloon":o.selectorSettingsCount?"".concat(e.i18n.selectors," (").concat(o.selectorSettingsCount,")"):e.i18n.selectors,"data-balloon-pos":"top-right"},null,8,["class","data-balloon"])])):Qa("",!0),qa("div",UD,[o.isBulkEditing?Qa("",!0):(Ta(),La(c,{key:0,name:"b",class:"copy","data-balloon":"".concat(e.i18n.copy,": Bricks ID"),"data-balloon-pos":"top-right",onClick:t[7]||(t[7]=bc(function(t){var i,r;return e.$_copyToClipboard("".concat(null===(i=n.element)||void 0===i?void 0:i.id),"".concat(e.i18n.copied,": ").concat(null===(r=n.element)||void 0===r?void 0:r.id))},["stop"]))},null,8,["data-balloon"])),qa("div",WD,[e.$_userHasPermission("lock_unlock_global_classes")&&!o.isBulkEditing&&o.hasActiveClass&&!o.isLocked?(Ta(),La(c,{key:0,class:te(["lock",{locked:o.isLocked}]),name:"unlocked","data-balloon":e.i18n.unlocked,"data-balloon-pos":o.dropdownTooltipPos,onClick:t[8]||(t[8]=bc(function(e){return o.lockClassId(o.activeClassId)},["stop"]))},null,8,["class","data-balloon","data-balloon-pos"])):Qa("",!0),o.isBulkEditing||o.mainSelector?Qa("",!0):(Ta(),La(c,{key:1,name:"hash",class:"copy","data-balloon":"".concat(e.i18n.copy,": CSS ID"),"data-balloon-pos":o.dropdownTooltipPos,onClick:t[9]||(t[9]=bc(function(t){return e.$_copyToClipboard("#".concat(r.elementCssId),"".concat(e.i18n.copied,": #").concat(r.elementCssId))},["stop"]))},null,8,["data-balloon","data-balloon-pos"])),e.$_userHasPermission("copy_paste_element_styles")&&!o.isBulkEditing?(Ta(),La(c,{key:2,name:"css3",class:"styles","data-balloon":"".concat(e.i18n.copy,": ").concat(e.i18n.styles),"data-balloon-pos":o.dropdownTooltipPos,onClick:t[10]||(t[10]=bc(function(t){return o.activeClassId?e.$_copyStylesFromClass(o.activeClassId):e.$_copyStylesFromElement(n.element)},["stop"]))},null,8,["data-balloon","data-balloon-pos"])):Qa("",!0),o.isBulkEditing||!e.$_userHasPermission("copy_paste_element_styles")||"bricksCopiedElementStyles"!==(null===(a=e.$_state.clipboardData)||void 0===a?void 0:a.source)&&"bricksCopiedGlobalClassStyles"!==(null===(s=e.$_state.clipboardData)||void 0===s?void 0:s.source)?Qa("",!0):(Ta(),La(c,{key:3,name:"import",class:"styles","data-balloon":"".concat(e.i18n.paste,": ").concat(e.i18n.styles),"data-balloon-pos":o.dropdownTooltipPos,onClick:t[11]||(t[11]=bc(function(t){return e.$_pasteStyles(o.activeClassId)},["stop"]))},null,8,["data-balloon","data-balloon-pos"])),o.hasActiveClass||r.action||!e.$_userHasPermission("access_element_styles")?!o.hasActiveClass||r.action||e.$_isLocked(o.activeClassId)?Qa("",!0):(Ta(),La(c,{key:5,name:"refresh","data-balloon":"".concat(e.i18n.reset,": ").concat(e.i18n.styles),"data-balloon-pos":o.dropdownTooltipPos,onClick:t[13]||(t[13]=bc(function(e){return o.resetClassStyles(o.activeClassId)},["stop"]))},null,8,["data-balloon","data-balloon-pos"])):(Ta(),La(c,{key:4,name:"refresh",class:"reset","data-balloon":"".concat(e.i18n.reset,": ").concat(e.i18n.styles),"data-balloon-pos":o.dropdownTooltipPos,onClick:t[12]||(t[12]=bc(function(e){return o.resetIdStyles()},["stop"]))},null,8,["data-balloon","data-balloon-pos"])),!e.$_userHasPermission("edit_global_classes")||o.isBulkEditing||"rename"===r.action||o.pseudoClassActive?Qa("",!0):(Ta(),La(c,{key:6,name:"edit",class:"rename","data-balloon":"".concat(e.i18n.rename,": ").concat(o.hasActiveClass?e.i18n.cssClassName:"CSS ID"),"data-balloon-pos":o.dropdownTooltipPos,onClick:t[14]||(t[14]=bc(function(e){return o.initRename()},["stop"]))},null,8,["data-balloon","data-balloon-pos"]))])])],2)]),!o.classesDisabled&&(e.$_userHasPermission("edit_global_classes")||e.$_userHasPermission("assign_unassign_global_classes")||e.$_userHasPermission("create_global_classes"))&&r.mounted&&e.$_state.showElementClasses?(Ta(),La(d,{key:0,show:e.$_state.showElementClasses,onClosePopup:t[34]||(t[34]=function(t){return e.$_state.showElementClasses=!1})},{default:Jn(function(){return[e.$_state.selectorDetector?(Ta(),Ma("div",GD,[qa("h4",{textContent:he(e.i18n.selectorDetector)},null,8,KD),!0===e.$_state.selectorDetector||Array.isArray(e.$_state.selectorDetector)&&!e.$_state.selectorDetector.length?(Ta(),La(u,{key:0,control:{content:e.i18n.selectorDetectorEmpty}},null,8,["control"])):Qa("",!0),Array.isArray(e.$_state.selectorDetector)&&e.$_state.selectorDetector.length?(Ta(),La(u,{key:1,control:{content:e.i18n.selectorDetectorInfo}},null,8,["control"])):Qa("",!0),Array.isArray(e.$_state.selectorDetector)&&e.$_state.selectorDetector.length?(Ta(),Ma("ul",QD,[(Ta(!0),Ma(Ca,null,Rr(e.$_state.selectorDetector,function(t,n){return Ta(),Ma("li",{class:te(["node",{active:null==t?void 0:t.active}]),style:Y({marginInlineStart:"".concat(10*n,"px")}),key:n,onClick:bc(function(e){return o.toggleSelectorDetectorNode(t)},["stop"])},[qa("span",{class:"text",textContent:he(t.selector)},null,8,JD),qa("div",XD,[qa("div",ZD,[Ha(c,{name:"code-brackets","data-balloon":e.i18n.selectors,"data-balloon-pos":"top-right"},null,8,["data-balloon"]),qa("ul",eT,[(Ta(!0),Ma(Ca,null,Rr(t.selectors,function(e,n){return Ta(),Ma("li",{key:n,class:te(["selector-item",{selected:o.selectorPartIsActive(t,e)}]),onClick:bc(function(n){return o.toggleSelectorDetectorPart(t,e)},["stop"]),textContent:he(e)},null,10,tT)}),128))])])])],14,YD)}),128))])):Qa("",!0)])):Qa("",!0),qa("div",{class:te(["input-wrapper",{"selector-detector":e.$_state.selectorDetector}])},[Xn(qa("input",{ref:"selectorInput","onUpdate:modelValue":t[15]||(t[15]=function(e){return r.selectorInput=e}),type:"text",autocomplete:"off",spellcheck:"false",placeholder:"createPseudo"===r.action?e.i18n.pseudoClass:r.showSelectors?"".concat(e.i18n.selector," (").concat(o.activeClassId?e.i18n.class:e.i18n.element,") ..."):"".concat(e.i18n.className," ..."),onKeyup:t[16]||(t[16]=wc(function(e){return o.setActiveSelector()},["enter"]))},null,40,nT),[[ac,r.selectorInput]]),qa("div",iT,[r.showSelectors?(Ta(),La(c,{key:0,name:"target",class:te(["selector-detector",{active:e.$_state.selectorDetector}]),"data-balloon":e.i18n.selectorDetector,"data-balloon-pos":"bottom-right",onClick:t[17]||(t[17]=bc(function(e){return o.toggleSelectorDetector()},["stop"]))},null,8,["class","data-balloon"])):Qa("",!0),!e.$_userHasPermission("edit_global_classes")&&!e.$_userHasPermission("access_pseudo_selectors")||o.isBulkEditing||r.showSelectors||!r.selectorInput||r.selectorInput.startsWith(":")?Qa("",!0):(Ta(),La(c,{key:1,name:"save",class:"class","data-balloon":"".concat(e.i18n.saveAs,": ").concat(e.i18n.globalClass),"data-balloon-pos":"bottom-right",onClick:t[18]||(t[18]=function(e){return o.saveSelector("class")})},null,8,["data-balloon"]))]),r.showSelectors&&(r.selectorInput||"createSelector"===r.action||"editSelector"===r.action||"createPseudo"===r.action)?(Ta(),Ma("form",{key:0,class:"selector",onSubmit:t[23]||(t[23]=bc(function(){},["prevent"]))},["createPseudo"!==r.action?Xn((Ta(),Ma("input",{key:0,type:"text",placeholder:e.i18n.label,title:e.i18n.label,"onUpdate:modelValue":t[19]||(t[19]=function(e){return r.selectorLabel=e}),onKeyup:t[20]||(t[20]=wc(function(e){return o.saveSelector("selector")},["enter"]))},null,40,rT)),[[ac,r.selectorLabel]]):Qa("",!0),qa("button",{type:"submit",disabled:!r.selectorInput,textContent:he("editSelector"===r.action?e.i18n.update:e.i18n.create),onClick:t[21]||(t[21]=bc(function(e){return o.saveSelector("createPseudo"===r.action?"pseudo":"selector")},["stop"]))},null,8,oT),qa("button",{type:"text",textContent:he(e.i18n.cancel),class:"cancel",onClick:t[22]||(t[22]=bc(function(e){return o.cancelSelector()},["stop"]))},null,8,aT)],32)):Qa("",!0)],2),i.globalClasses.length||r.showSelectors?Qa("",!0):(Ta(),La(u,{key:1,control:{content:e.i18n.globalClassesEmptyDescription}},null,8,["control"])),qa("div",{class:te(["css-classes",{"show-selectors":r.showSelectors}])},[!o.hasActiveClass||o.isBulkEditing||r.showSelectors?Qa("",!0):(Ta(),Ma("div",sT,[qa("h6",lT,[qa("span",{textContent:he(e.i18n.elementId)},null,8,cT)]),qa("ul",null,[qa("li",{class:"skip",onClick:t[27]||(t[27]=function(e){return o.setActiveClass("")})},[qa("span",{class:"name",textContent:he("#".concat(r.elementCssId))},null,8,uT),qa("div",dT,[o.isBulkEditing||!e.$_userHasPermission("copy_paste_global_classes_styles")||r.action?Qa("",!0):(Ta(),La(c,{key:0,name:"css3","data-balloon":"".concat(e.i18n.copy,": ").concat(e.i18n.styles),"data-balloon-pos":"top-right",onClick:t[24]||(t[24]=bc(function(t){return e.$_copyStylesFromElement(n.element)},["stop"]))},null,8,["data-balloon"])),r.action||o.isBulkEditing||!e.$_userHasPermission("copy_paste_global_classes_styles")?Qa("",!0):(Ta(),La(c,{key:1,name:"import","data-balloon":"".concat(e.i18n.paste,": ").concat(e.i18n.styles," (").concat(e.i18n.elementId,")"),"data-balloon-pos":"top-right",onClick:t[25]||(t[25]=bc(function(t){return e.$_pasteStyles()},["stop"]))},null,8,["data-balloon"])),r.action||o.isBulkEditing||!e.$_userHasPermission("access_element_styles")?Qa("",!0):(Ta(),La(c,{key:2,name:"refresh","data-balloon":"".concat(e.i18n.reset,": ").concat(e.i18n.styles),"data-balloon-pos":"top-right",onClick:t[26]||(t[26]=bc(function(e){return o.resetIdStyles()},["stop"]))},null,8,["data-balloon"]))])])])])),r.showSelectors&&o.pseudoClasses.length&&!e.$_state.selectorDetector?(Ta(),Ma("div",pT,[qa("h6",hT,[qa("span",{textContent:he("".concat(e.i18n.pseudos," (").concat(e.i18n.global,")"))},null,8,fT),qa("div",mT,[Ha(c,{name:"add",onClick:t[28]||(t[28]=function(e){return r.action="createPseudo"}),"data-balloon":e.i18n.create,"data-balloon-pos":"bottom-right"},null,8,["data-balloon"])])]),r.showPseudoClasses?(Ta(),Ma("ul",gT,[(Ta(!0),Ma(Ca,null,Rr(o.pseudoClasses,function(t){return Ta(),Ma("li",{key:t,class:te([{active:o.pseudoClassActive===t},"skip"]),onClick:function(e){return o.setActivePseudoClass(t)}},[qa("span",{class:"name",textContent:he(t)},null,8,yT),qa("div",bT,[r.deleteId===t||[":hover",":active",":focus"].includes(t)?Qa("",!0):(Ta(),La(c,{key:0,class:"delete on-hover",name:"trash","data-balloon":e.i18n.delete,"data-balloon-pos":"top-right",onClick:bc(function(e){return r.deleteId=t},["stop"])},null,8,["data-balloon","onClick"])),r.deleteId===t?(Ta(),La(c,{key:1,class:"confirm on-hover",name:"check","data-balloon":e.i18n.sure,"data-balloon-pos":"top-right",onClick:bc(function(e){return o.deletePseudo(t)},["stop"])},null,8,["data-balloon","onClick"])):Qa("",!0),o.pseudoClassSettingsCount(t)?(Ta(),La(c,{key:2,class:"clear",name:"close","data-balloon":e.i18n.clear,"data-balloon-pos":"top-right",onClick:bc(function(e){return o.clearPseudoClassSettings(t)},["stop"])},null,8,["data-balloon","onClick"])):Qa("",!0)])],10,vT)}),128))])):Qa("",!0)])):Qa("",!0),r.showSelectors&&o.selectors.length&&!e.$_state.selectorDetector?(Ta(),Ma("div",kT,[qa("h6",wT,[qa("span",{textContent:he("".concat(e.i18n.selectors," (").concat(o.activeClassId?e.i18n.class:e.i18n.element,")"))},null,8,_T),qa("div",CT,[Ha(c,{name:"add",onClick:t[29]||(t[29]=function(e){return r.action="createSelector"}),"data-balloon":e.i18n.create,"data-balloon-pos":"bottom-right"},null,8,["data-balloon"])])]),qa("ul",null,[(Ta(!0),Ma(Ca,null,Rr(o.selectors,function(t){return Ta(),Ma("li",{key:t.id,class:te([{active:t.id===o.activeSelectorId},"skip"]),title:null!=t&&t.label?t.selector:null,onClick:function(e){return o.setActiveSelector(t.id)}},[qa("span",{class:"name",textContent:he((null==t?void 0:t.label)||t.selector)},null,8,ST),qa("div",ET,[r.deleteId!==t.id?(Ta(),La(c,{key:0,class:"delete on-hover",name:"trash","data-balloon":e.i18n.delete,"data-balloon-pos":"top-right",onClick:bc(function(e){return r.deleteId=t.id},["stop"])},null,8,["data-balloon","onClick"])):Qa("",!0),r.deleteId===t.id?(Ta(),La(c,{key:1,class:"confirm on-hover",name:"check","data-balloon":e.i18n.sure,"data-balloon-pos":"top-right",onClick:bc(function(e){return o.deleteSelector(t.id)},["stop"])},null,8,["data-balloon","onClick"])):Qa("",!0),Ha(c,{class:"edit on-hover",name:"edit","data-balloon":e.i18n.edit,"data-balloon-pos":"top-right",onClick:bc(function(e){return o.editSelector(t.id)},["stop"])},null,8,["data-balloon","onClick"]),null!=t&&t.settings&&!Array.isArray(t.settings)&&Object.keys(t.settings).length?(Ta(),La(c,{key:2,class:"clear",name:"close","data-balloon":e.i18n.clear,"data-balloon-pos":"top-right",onClick:bc(function(e){return null==t||delete t.settings},["stop"])},null,8,["data-balloon","onClick"])):Qa("",!0)])],10,xT)}),128))])])):Qa("",!0),!r.showSelectors&&o.elementClassIds.length?(Ta(),Ma("div",AT,[qa("h6",DT,[qa("span",{textContent:he("".concat(o.isBulkEditing?e.i18n.commonClasses:e.i18n.elementClasses," (").concat(o.elementClassIds.length,")"))},null,8,TT)]),qa("ul",null,[(Ta(!0),Ma(Ca,null,Rr(o.elementClassIds,function(n){return Xn((Ta(),Ma("li",{key:n,class:te([{active:o.activeClassId===n},{locked:e.$_isLocked(n)}]),"data-class-id":n,onClick:function(e){return o.setActiveClass(n)},onMouseenter:function(e){return r.showActions=n},onMouseleave:t[31]||(t[31]=function(e){return r.deleteId=!1})},[qa("span",{class:"name",textContent:he(e.$_getGlobalClassName(n,"."))},null,8,OT),r.showActions===n?(Ta(),Ma("div",PT,[e.$_userHasPermission("assign_unassign_global_classes")?(Ta(),La(c,{key:0,name:"close","data-balloon":e.i18n.remove,"data-balloon-pos":"top-right",onClick:bc(function(e){return o.removeClassFromElement(n)},["stop"])},null,8,["data-balloon","onClick"])):Qa("",!0),e.$_userHasPermission("lock_unlock_global_classes")?(Ta(),La(c,{key:1,class:"lock",name:e.$_isLocked(n)?"locked":"unlocked","data-balloon":e.$_isLocked(n)?e.i18n.locked:e.i18n.unlocked,"data-balloon-pos":"top-right",onClick:bc(function(e){return o.lockClassId(n)},["stop"])},null,8,["name","data-balloon","onClick"])):Qa("",!0),e.$_userHasPermission("copy_paste_global_classes_styles")?(Ta(),La(c,{key:2,name:"css3","data-balloon":"".concat(e.i18n.copy,": ").concat(e.i18n.styles),"data-balloon-pos":"top-right",onClick:bc(function(t){return e.$_copyStylesFromClass(n)},["stop"])},null,8,["data-balloon","onClick"])):Qa("",!0),e.$_userHasPermission("copy_paste_global_classes_styles")&&!e.$_isLocked(n)?(Ta(),La(c,{key:3,name:"import","data-balloon":"".concat(e.i18n.paste,": ").concat(e.i18n.styles),"data-balloon-pos":"top-right",onClick:bc(function(t){return e.$_pasteStyles(n)},["stop"])},null,8,["data-balloon","onClick"])):Qa("",!0),e.$_userHasPermission("edit_global_classes")&&!e.$_isLocked(n)?(Ta(),La(c,{key:4,name:"refresh","data-balloon":"".concat(e.i18n.reset,": ").concat(e.i18n.styles),"data-balloon-pos":"top-right",onClick:bc(function(e){return o.resetClassStyles(n)},["stop"])},null,8,["data-balloon","onClick"])):Qa("",!0),e.$_userHasPermission("delete_global_classes")&&!e.$_isLocked(n)&&r.deleteId!==n?(Ta(),La(c,{key:5,name:"trash",class:"delete","data-balloon":e.i18n.moveToTrash,"data-balloon-pos":"top-right",onClick:bc(function(e){return r.deleteId=n},["stop"])},null,8,["data-balloon","onClick"])):Qa("",!0),r.deleteId===n?(Ta(),La(c,{key:6,class:"confirm",name:"check","data-balloon":e.i18n.sure,"data-balloon-pos":"top-right",onClick:t[30]||(t[30]=bc(function(e){return o.deleteGlobalClass(r.deleteId)},["stop"]))},null,8,["data-balloon"])):Qa("",!0)])):Qa("",!0)],42,IT)),[[pl,e.$_getGlobalClassName(n)]])}),128))])])):Qa("",!0),!r.showSelectors&&o.otherClasses.length?(Ta(),Ma("div",FT,[qa("h6",$T,[qa("span",{textContent:he("".concat(e.i18n.globalClasses," (").concat(o.otherClasses.length,"/").concat(i.globalClasses.length,")"))},null,8,MT)]),(Ta(!0),Ma(Ca,null,Rr(o.categories,function(n){return Ta(),Ma("ul",{key:null==n?void 0:n.id},[Xn(qa("li",{class:te(["title","category","caret",{expand:(null==n?void 0:n.expand)||r.selectorInput}]),onClick:bc(function(e){return o.toggleCategory(n)},["stop"])},[qa("span",{textContent:he(n.name)},null,8,NT),Ha(c,{name:"arrow-right"})],10,LT),[[pl,o.categories.length>1&&o.getClassesByCategoryId(null==n?void 0:n.id).length]]),(Ta(!0),Ma(Ca,null,Rr(o.getClassesByCategoryId(null==n?void 0:n.id),function(i){return Xn((Ta(),Ma("li",{key:i.id,class:te([{locked:i._locked}]),"data-class-id":i.id,onClick:function(e){return o.addClassToElement(i)},onMouseenter:function(e){return r.showActions=i.id},onMouseleave:t[33]||(t[33]=function(t){return e.$_state.classPreviewOnHover=null})},[qa("span",BT,"."+he(i.name),1),r.showActions===i.id?(Ta(),Ma("div",RT,[e.$_userHasPermission("lock_unlock_global_classes")?(Ta(),La(c,{key:0,class:"lock",name:i._locked?"locked":"unlocked","data-balloon":i._locked?e.i18n.locked:e.i18n.unlocked,"data-balloon-pos":"top-right",onClick:bc(function(e){return o.lockClassId(i.id)},["stop"])},null,8,["name","data-balloon","onClick"])):Qa("",!0),e.$_userHasPermission("copy_paste_global_classes_styles")?(Ta(),La(c,{key:1,name:"css3","data-balloon":"".concat(e.i18n.copy,": ").concat(e.i18n.styles),"data-balloon-pos":"top-right",onClick:bc(function(t){return e.$_copyStylesFromClass(i.id)},["stop"])},null,8,["data-balloon","onClick"])):Qa("",!0),!e.$_userHasPermission("delete_global_classes")||i._locked||r.deleteId?e.$_userHasPermission("delete_global_classes")&&r.deleteId===i.id?(Ta(),La(c,{key:3,name:"check",class:"confirm","data-balloon":e.i18n.sure,"data-balloon-pos":"top-right",onClick:t[32]||(t[32]=bc(function(e){return o.deleteGlobalClass(r.deleteId)},["stop"]))},null,8,["data-balloon"])):Qa("",!0):(Ta(),La(c,{key:2,name:"trash",class:"delete","data-balloon":e.i18n.moveToTrash,"data-balloon-pos":"top-right",onClick:bc(function(e){return r.deleteId=i.id},["stop"])},null,8,["data-balloon","onClick"]))])):Qa("",!0)],42,jT)),[[pl,r.selectorInput||1===o.categories.length||l.$_state.globalClassesCategoriesExpanded.includes(null==n?void 0:n.id)]])}),128))])}),128))])):Qa("",!0)],2)]}),_:1},8,["show"])):Qa("",!0)],2),o.hasComponentPropertyTypeClass?(Ta(),La(p,{key:1,type:"class",controlKey:"_cssGlobalClasses",controlLabel:e.i18n.globalClasses,onHasConnectedProperty:t[35]||(t[35]=function(e){return r.hasConnectedProperty=e})},null,8,["controlLabel"])):Qa("",!0),o.showCssContentControl?(Ta(),La(h,{key:2,value:o.pseudoElementContent,"onUpdate:value":t[36]||(t[36]=function(e){return o.pseudoElementContent=e}),class:"pseudo-element-content",control:{placeholder:e.i18n.content,hasDynamicData:"text"},controlKey:o.pseudoElementContentKey},null,8,["value","control","controlKey"])):Qa("",!0),!o.classesDisabled&&o.elementClassIds.length?(Ta(),La(f,{key:3,tag:"ul",parent:o.elementClassIds,options:{direction:"vertical",itemClass:"sortable",handleClass:"sortable",updateOn:"dragend"},class:te(["active-classes",{disabled:!e.$_userHasPermission("edit_global_classes")&&!e.$_userHasPermission("assign_unassign_global_classes")}]),title:o.isBulkEditing?e.i18n.commonClasses:e.i18n.activeClasses,onEnd:o.handleClassReorder},{default:Jn(function(){return[(Ta(!0),Ma(Ca,null,Rr(o.elementClassIds,function(t){return Xn((Ta(),Ma("li",{key:t,class:te([{active:t===o.activeClassId},{sortable:e.$_userHasPermission("edit_global_classes")}]),title:t===o.activeClassId?"".concat(e.i18n.deselect," (").concat(e.i18n.activeClass,")"):null,onClick:function(n){return e.$_userHasPermission("assign_unassign_global_classes")?o.setActiveClass(t):null}},[qa("span",{class:"name","data-class-id":t,textContent:he("".concat(e.$_getGlobalClassName(t,".")))},null,8,qT),e.$_userHasPermission("assign_unassign_global_classes")?(Ta(),La(c,{key:0,name:"close","data-balloon":e.i18n.remove,onClick:bc(function(e){return o.removeClassFromElement(t)},["stop"])},null,8,["data-balloon","onClick"])):Qa("",!0)],10,VT)),[[pl,e.$_getGlobalClassName(t)]])}),128))]}),_:1},8,["parent","class","title","onEnd"])):Qa("",!0)])}]]),QT=["title","placeholder"],YT={class:"actions"};var JT={data:function(){return{hasFocus:!1}},computed:{show:function(){return!(this.$_state.activeVirtualSlot||this.$_state.showHideElement||this.$_state.showConditions||this.$_state.showInteractions)}},watch:{"$_state.searchControlFocus":{handler:function(){var e=this;setTimeout(function(){e.$refs.searchInput&&e.$refs.searchInput.focus()},10)}}}};var XT=(0,xx.A)(JT,[["render",function(e,t,n,i,r,o){var a=$r("icon");return o.show?(Ta(),Ma("div",{key:0,id:"bricks-panel-controls-search",class:te({active:e.$_isSearchingControls(),focus:r.hasFocus})},[Xn(qa("input",{ref:"searchInput",type:"search",autocomplete:"off",spellcheck:"false","onUpdate:modelValue":t[0]||(t[0]=function(t){return e.$_state.searchControlKeyword=t}),title:e.$_state.searchControlKeyword?e.i18n.searchSettings:"",placeholder:"".concat(e.$_state.searchControlModified?"".concat(e.i18n.searchSettings," (").concat(e.i18n.modified,")"):e.i18n.searchSettings),onFocus:t[1]||(t[1]=function(e){return r.hasFocus=!0}),onBlur:t[2]||(t[2]=function(e){return r.hasFocus=!1})},null,40,QT),[[ac,e.$_state.searchControlKeyword]]),qa("div",YT,[Xn(Ha(a,{name:"close",class:"clear","data-balloon":e.i18n.clear,"data-balloon-pos":"top-right",onClick:t[3]||(t[3]=function(t){return e.$_state.searchControlKeyword=""})},null,8,["data-balloon"]),[[pl,e.$_state.searchControlKeyword]]),Ha(a,{name:"settings",class:te(["modified",{active:e.$_state.searchControlModified}]),"data-balloon":e.i18n.modified,"data-balloon-pos":"top-right",onClick:t[4]||(t[4]=function(t){return e.$_state.searchControlModified=!e.$_state.searchControlModified})},null,8,["class","data-balloon"])])],2)):Qa("",!0)}]]),ZT={"data-control":"toggle"},eI=["data-key","textContent","onClick"];var tI={emits:["update:value","input"],props:{value:{type:[String,Boolean]},control:{type:Object,required:!1,default:function(){return{}}},controlKey:{type:String,required:!1},settings:{type:Object,required:!1,default:function(){return{}}}},computed:{options:function(){var e;return(null===(e=this.control)||void 0===e?void 0:e.options)||{}},defaultValue:function(){var e;return(null===(e=this.control)||void 0===e?void 0:e.default)||Object.keys(this.options)[0]}},methods:{toggle:function(e){this.value===e?delete this.settings[this.controlKey]:(this.$emit("update:value",e),this.$emit("input",e))}}};var nI=(0,xx.A)(tI,[["render",function(e,t,n,i,r,o){return Ta(),Ma("div",ZT,[(Ta(!0),Ma(Ca,null,Rr(o.options,function(e,t,i){return Ta(),Ma("span",{key:"".concat(t,"-").concat(i),"data-key":t,class:te(["toggle",{active:n.value===t},{default:!n.value&&o.defaultValue===t}]),textContent:he(e),onClick:function(e){return o.toggle(t)}},null,10,eI)}),128))])}]]),iI=["title","for","data-balloon","data-balloon-pos","data-balloon-length"],rI=["innerHTML"],oI={key:2,class:"icon info"},aI=["title"],sI=["textContent"],lI=["innerHTML"];function cI(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return uI(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?uI(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function uI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function dI(e){return dI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dI(e)}var pI={props:{parentHasCss:{required:!1,type:Boolean},repeaterId:{required:!1,type:String},repeaterIndex:{required:!1,type:Number},repeaterKey:{required:!1,type:String},propertyId:{required:!1,type:String},parentKey:{required:!1,type:String},parentType:{required:!1,type:String},controlKey:{required:!0,type:String},controls:{required:!1,type:Object},control:{required:!0,type:Object},block:{required:!1},settings:{required:!1,default:function(){return{}}},source:{required:!1,type:String},instanceProperty:{required:!1,type:Object}},data:function(){var e,t;return{isCreated:!1,showControl:!1,hasConnectedProperty:!1,refreshKey:this.$_generateId(),resetKey:this.$_generateId(),placeholder:null===(e=this.control)||void 0===e?void 0:e.placeholder,placeholderUpdateId:0,settingSnapshot:null,direction:null===(t=this.control)||void 0===t?void 0:t.direction,error:null,activeControlLabel:""}},computed:{renderComponentProperty:function(){var e,t,n,i,r;return!(!this.$_state.activeComponent||this.$_state.activeProperty||"element"!==this.$_state.activePanel||this.$_state.popup||this.$_state.showInteractions||null!==(e=this.$_state.activeElement)&&void 0!==e&&e.cid)&&(!(null!==(t=this.control)&&void 0!==t&&t.css&&"icon"!==this.controlType||null!==(n=this.control)&&void 0!==n&&n.readonly||null!==(i=this.control)&&void 0!==i&&i.parentHasCss||null!==(r=this.control)&&void 0!==r&&r.propertyDisabled)&&["text","textarea","editor","icon","image","image-gallery","link","query","select","checkbox"].includes(this.controlType))},propertyType:function(){var e;return"checkbox"===this.controlType?"toggle":"select"===this.controlType&&"link"===this.controlKey&&"image"===(null===(e=this.$_state.activeElement)||void 0===e?void 0:e.name)?"link":this.controlType},propertyControlKey:function(){var e=this.controlKey;return this.repeaterKey&&this.repeaterId&&(e="".concat(this.repeaterKey,"|").concat(this.repeaterId,"|").concat(e)),e},labelTitle:function(){var e,t,n;if(null!==(e=this.control)&&void 0!==e&&null!==(e=e.css)&&void 0!==e&&null!==(e=e[0])&&void 0!==e&&e.property)return null===(n=this.control)||void 0===n||null===(n=n.css)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.property;var i=(null===(t=this.control)||void 0===t?void 0:t.title)||this.label;return i?i.replace(/<[^>]+>/g,""):""},tooltipContent:function(){var e,t,n=null===(e=this.control)||void 0===e?void 0:e.info;this.tooltip&&(n=null===(t=this.tooltip)||void 0===t?void 0:t.content,n||"string"!=typeof this.tooltip||(n=this.tooltip));return n},tooltipPosition:function(){var e;return this.tooltipContent?(null===(e=this.tooltip)||void 0===e?void 0:e.position)||"top-left":null},description:function(){var e,t;return(null===(e=this.control)||void 0===e?void 0:e.description)||(null===(t=this.control)||void 0===t?void 0:t.desc)},settingKey:function(){var e,t;return"icon"===this.controlKey?this.controlKey:null!==(e=this.control)&&void 0!==e&&e.hasOwnProperty("css")||null!==(t=this.control)&&void 0!==t&&t.hasOwnProperty("breakpoints")?this.$_getControlKeyActive(this.controlKey):this.controlKey},value:function(){return this.settings[this.settingKey]},rerender:function(){var e,t,n,i,r,o,a,s;if(!this.$_state.activeProperty||1==this.$_state.activeProperty)return(null===(e=this.$_state.activeElement)||void 0===e||!e.cid)&&(!(!this.$_state.activeComponent||!this.$_state.activeLoopId)||(this.$_state.activeComponent&&this.$_state.activeInstanceId?!this.$_getIframeDoc().querySelector('script[id="tmpl-bricks-element-'.concat(null===(s=this.$_state.activeElement)||void 0===s?void 0:s.name,'"]')):!!(null!==(t=this.controls)&&void 0!==t&&t.rerender||null!==(n=this.control)&&void 0!==n&&n.rerender||"gutter"===this.controlKey||"icon"===this.controlType)||!1!==(null===(i=this.$parent)||void 0===i?void 0:i.rerender)&&!1!==(null===(r=this.controls)||void 0===r?void 0:r.rerender)&&!1!==(null===(o=this.control)||void 0===o?void 0:o.rerender)&&(null===(a=this.control)||void 0===a||!a.css)))},controlKeyComputed:function(){return["code","editor"].includes(this.controlType)?"".concat(this.$_state.activeId,"-").concat(this.settingKey,"-").concat(this.resetKey):"".concat(this.$_state.activeId,"-").concat(this.settingKey,"-").concat(this.refreshKey)},controlType:function(){var e,t=null===(e=this.control)||void 0===e?void 0:e.type;return"dimensions"===t&&(t="spacing"),t},hasSettings:function(){var e,t;if(!this.$_isSearchingControls()&&(null!==(e=this.controlKey)&&void 0!==e&&e.startsWith("_background")||null!==(t=this.controlKey)&&void 0!==t&&t.startsWith("_typography")))return!1;var n=this.settings[this.settingKey];return!(n&&"object"===dI(n)&&!Object.keys(n).length)&&n},shouldShowIndicator:function(){var e,t,n,i,r,o,a,s,l;return!("checkbox"===this.control.type||"repeater"===this.control.type||"_background"===(null===(e=this.control)||void 0===e?void 0:e.group)&&"background"===(null===(t=this.control)||void 0===t?void 0:t.type)||"_typography"===(null===(n=this.control)||void 0===n?void 0:n.group)&&"typography"===(null===(i=this.control)||void 0===i?void 0:i.type)||"_gradient"===(null===(r=this.control)||void 0===r?void 0:r.group)&&"gradient"===(null===(o=this.control)||void 0===o?void 0:o.type))&&("icon"!==this.controlKey&&("info"!==(null===(a=this.control)||void 0===a?void 0:a.type)&&("disable"!==this.bricks.builderResponsiveControlIndicator&&("always"!==this.bricks.builderResponsiveControlIndicator||((null===(s=this.control)||void 0===s?void 0:s.css)||(null===(l=this.control)||void 0===l?void 0:l.parentHasCss))))))},inheritedFrom:function(){if(!this.hasSettings&&this.shouldShowIndicator&&!this.$_isBulkEditing()){var e=this.$_state.activeSelector||this.$_state.activeClass||this.$_state.activeElement,t=this.parentKey?{controlKey:this.parentKey}:this.$parent;return this.$_getInheritedSettings(t,e,this.controlKey)}},controlClasses:function(){var e,t=["control","control-".concat(this.control.type)];return this.$_isLocked()&&"icon"!==this.controlType&&(null!==(e=this.control)&&void 0!==e&&e.css||this.controlKey.includes("_cssCustom"))&&t.push("bricks-is-locked"),this.hasLabel||t.push("no-label"),t},controlInnerClasses:function(){var e,t=["control-inner"],n=this.control.hasOwnProperty("popup"),i=(null===(e=this.control)||void 0===e?void 0:e.inline)||!1;(i||this.hasLabel&&!i&&!n&&["background","border","box-shadow","checkbox","color","icon","number","text-shadow","transform","typography"].includes(this.controlType))&&t.push("control-inline"),n&&this.$_isSearchingControls()&&t.push("control-inline");var r=!!this.control.hasOwnProperty("small")&&this.control.small;return(r||this.hasLabel&&!r&&!n&&["background","border","box-shadow","checkbox","icon","transform","typography"].includes(this.controlType))&&t.push("control-small"),this.hasLabel&&t.push("has-label"),t},clearable:function(){var e;return(null===(e=this.control)||void 0===e?void 0:e.clearable)&&!this.$_isLocked()},tooltip:function(){var e;return null===(e=this.control)||void 0===e?void 0:e.tooltip},fields:function(){var e;return(null===(e=this.settings)||void 0===e?void 0:e.fields)||[]},label:function(){var e;return this.$_isSearchingControls()&&this.control.hasOwnProperty("popup")&&!1===this.control.popup&&this.i18n.hasOwnProperty(this.controlType)?this.i18n[this.controlType]:null===(e=this.control)||void 0===e?void 0:e.label},name:function(){var e;return(null===(e=this.block)||void 0===e?void 0:e.name)||this.$_activeElement.value.name},hasLabel:function(){return this.label&&"apply"!==this.controlType&&"button"!==this.controlType},labelHeight:function(){return this.hasLabel?"20px":"34px"},validate:function(){var e;return null===(e=this.control)||void 0===e?void 0:e.validate}},methods:{getElementLevelSettingsForPlaceholder:function(){var e,t,n,i;return null!==(e=this.control)&&void 0!==e&&e.parentHasCss&&this.parentKey?"selector"===this.source?(null===(n=this.$_state.activeSelector)||void 0===n?void 0:n.settings)||{}:"class"===this.source?(null===(i=this.$_state.activeClass)||void 0===i?void 0:i.settings)||{}:(null===(t=this.$_state.activeElement)||void 0===t?void 0:t.settings)||{}:this.settings},getPlaceholderLookupKey:function(){return this.parentKey||this.controlKey},getSettingSnapshot:function(){var e;return{key:this.settingKey,hasValue:null===(e=this.settings)||void 0===e?void 0:e.hasOwnProperty(this.settingKey)}},syncSettingSnapshot:function(){this.settingSnapshot=this.getSettingSnapshot()},wasSettingRemoved:function(e){var t,n;return(null===(t=this.settingSnapshot)||void 0===t?void 0:t.key)===e.key&&(null===(n=this.settingSnapshot)||void 0===n?void 0:n.hasValue)&&!e.hasValue},getEffectiveFlexDirection:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.$_getControlKeyActive("_direction"),n=null==e?void 0:e[t];if("string"==typeof n&&n)return n;var i=this.$_getNextBreakpointSetting(e,"_direction",!1,this.controls);return"string"==typeof i?i:""},getElementNodeForCssSelector:function(e,t){if(!e)return t;if(!t)return!1;var n,i=e.split(",").map(function(e){return e.trim()}),r=cI(i);try{for(r.s();!(n=r.n()).done;){var o=n.value;try{if(o.startsWith("&")){var a=o.replace(/^&/,"");if(!a||":scope"===a)return t;if(/^[+~]/.test(a)){for(var s=a[0],l=a.slice(1).trim(),c=t.nextElementSibling;c;){if(!l||c.matches(l))return c;if("+"===s)break;c=c.nextElementSibling}continue}if(/^\s|^[>+~]|\s[>+~]?\s?/.test(a)){var u=t.querySelector(":scope".concat(a));if(u)return u;continue}if(t.matches(a))return t;continue}var d=o.startsWith(">")?":scope ".concat(o):o,p=t.querySelector(d);if(p)return p}catch(e){continue}}}catch(e){r.e(e)}finally{r.f()}return!1},resetSettings:function(){this.$_isLocked()||(this.updateControl(),this.refreshKey=this.$_generateId(),this.resetKey=this.$_generateId())},validateControl:function(e){var t,n;if(this.validate)if(e){var i=null===(t=this.validate)||void 0===t?void 0:t.allowed,r=null===(n=this.validate)||void 0===n?void 0:n.error;e.includes(" ")?this.error=r:i&&r&&Array.isArray(i)&&(this.error=i.includes(e)?null:r)}else this.error=null},updateControl:function(e){var t,n,i=this;if(this.validateControl(e),(!this.$_isLocked()||"icon"===this.controlType||!this.control.css&&!this.controlKey.includes("_cssCustom"))&&(this.$_stopPostMessages(),null!==(t=this.control)&&void 0!==t&&t.reloadScripts&&this.$_runElementScripts(this.name),(Number.isInteger(e)||0===e)&&(e=e.toString()),this.$_state.showCommandPalette||null!==(n=this.$_state.activeElement)&&void 0!==n&&n.cid||!this.$_noChanges(this.settings[this.settingKey],e))){var r,o;if(e)this.settings[this.settingKey]=e;else delete this.settings[this.settingKey],(null!==(r=this.control)&&void 0!==r&&r.css||null!==(o=this.control)&&void 0!==o&&o.parentHasCss)&&this.$_forceRender(0);if("query-api"!==this.$_state.popup){if(this.rerender){var a;if("theme-styles"===this.$_state.popupTab&&this.$_reloadCanvas(0,0),this.$_state.activeInstanceId)this.$_forceRenderActiveInstance(100,this.controlKey);else this.$_forceRender(100,null===(a=this.$_state.activeComponent)||void 0===a?void 0:a.id)}var s=this.$_getIframeDoc();"headerPosition"===this.controlKey&&s&&(s.body.classList.remove("brx-header-left"),s.body.classList.remove("brx-header-right"),e&&s.body.classList.add("brx-header-".concat(e))),"siteLayout"===this.controlKey&&s&&(s.body.classList.remove("brx-wide"),s.body.classList.remove("brx-boxed"),e&&s.body.classList.add("brx-".concat(e))),this.$nextTick(function(){i.$emit("updated",e)})}}},setPlaceholder:function(){var e,t,n,i,r,o,a=this,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=++this.placeholderUpdateId,c=!1!==(null==s?void 0:s.reset),u=!1!==(null==s?void 0:s.compute),d=null===(e=this.control)||void 0===e?void 0:e.placeholder,p=null===(t=this.control)||void 0===t?void 0:t.direction;c&&(this.placeholder=d,this.direction=p);var h=this.getElementLevelSettingsForPlaceholder(),f=this.getPlaceholderLookupKey(),m=this.getEffectiveFlexDirection(h),g=null===(n=this.control)||void 0===n||null===(n=n.css)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.property;!m||"justify-content"!==g&&"align-items"!==g||(this.direction=m);var v,y=this.$_getNextBreakpointSetting(h,f,!1,this.controls);null!==(i=this.control)&&void 0!==i&&i.parentHasCss&&y&&"object"===dI(y)&&!Array.isArray(y)&&(y=null===(v=y)||void 0===v?void 0:v[this.controlKey]);if(y)this.placeholder=y;else{if(null===(r=this.control)||void 0===r||!r.hasOwnProperty("placeholder"))return null!==(o=this.control)&&void 0!==o&&o.css?void(u&&setTimeout(function(){var e,t;if(l===a.placeholderUpdateId){var n=null===(e=a.control)||void 0===e||null===(e=e.css)||void 0===e||null===(e=e[0])||void 0===e?void 0:e.selector,i=a.$_getElementNode(null!==(t=a.block)&&void 0!==t&&t.name?a.block:a.$_activeElement.value,"iframe");if(i=a.getElementNodeForCssSelector(n,i),g)if("grid-template-columns"!==g)if(g.includes("height")||g.includes("width")||g.includes("top")||g.includes("right")||g.includes("bottom")||g.includes("left"))a.placeholder=y;else if(i){var r,o=a.$_getIframeWindow().getComputedStyle(i),s=o[g],c=function(e){return"flex"===e||"inline-flex"===e};if(s&&(a.placeholder=s,a.controlKey.startsWith("_cssTransition")&&"width"===s&&a.$_isNestable(a.element)))a.placeholder="all";else if(!c(o.display)||"justify-content"!==g&&"align-items"!==g)if("justify-self"===g||"align-self"===g){var u=i.parentElement;u&&(c((o=a.$_getIframeWindow().getComputedStyle(u)).display)&&o["flex-direction"]?a.direction=o["flex-direction"]:("grid"===(r=o.display)||"inline-grid"===r)&&(a.direction="align-self"===g?"row":"column"))}else["margin","padding"].includes(g)&&(a.placeholder={},["Top","Right","Bottom","Left"].forEach(function(e){s=o["".concat(g).concat(e)],y&&y.hasOwnProperty(e.toLowerCase())&&(s=y[e.toLowerCase()]),"string"==typeof s&&s.endsWith(a.$_state.defaultUnit)&&(s=s.replace(a.$_state.defaultUnit,"")),"0"!=s&&(a.placeholder[e.toLowerCase()]=s)}));else m?a.direction=m:o["flex-direction"]&&(a.direction=o["flex-direction"])}else a.placeholder=d;else a.placeholder=d;else a.placeholder=d}},this.$_state.activeClass?200:10)):(this.placeholder=d,void(this.direction=p));this.placeholder=y||d}},setShowControl:function(){var e,t,n,i=this;if(this.$_state.activeComponent&&"query"===this.controlKey)this.showControl=!0;else if(this.controlKey&&this.controlKey.startsWith("_gridItem"))this.showControl=!(null===(n=this.block)||void 0===n||!n.parent)&&this.$_elementHasCssGrid(this.block.parent);else if(null!==(e=this.control)&&void 0!==e&&e.hidden)this.showControl=!1;else{if(this.control.hasOwnProperty("required")){var r,o,a,s=this.settings,l=this.control;return null!==(r=this.control)&&void 0!==r&&r.parentHasCss&&((l=this.$_clone(l)).parent=this.$parent),void setTimeout(function(){i.showControl=i.$_controlRequiredMet(l,s)},null!==(o=l)&&void 0!==o&&o.css&&"_display"===(null===(a=l)||void 0===a||null===(a=a.required)||void 0===a?void 0:a[0])?100:0)}Array.isArray(null===(t=this.control)||void 0===t?void 0:t.exclude)?this.showControl=-1===this.control.exclude.indexOf(this.controlKey):this.showControl=!0}}},created:function(){this.value&&this.validateControl(this.value),this.syncSettingSnapshot(),this.isCreated=!0},watch:{controlKeyComputed:function(){this.activeControlLabel=""},"$_state.breakpointActive":{handler:function(){this.setPlaceholder(),this.setShowControl(),this.syncSettingSnapshot()}},"$_state.rerenderControls":{handler:function(){var e=this;setTimeout(function(){e.resetKey=e.$_generateId(),e.refreshKey=e.$_generateId(),e.setPlaceholder(),e.setShowControl(),e.syncSettingSnapshot()},0)}},"$_state.activeElement.settings":{handler:function(){this.isCreated&&this.$_state.activeClass&&this.setShowControl()},deep:!0,immediate:!1},settings:{handler:function(){var e=this,t=this.getSettingSnapshot();this.wasSettingRemoved(t)?(this.setPlaceholder({reset:!0,compute:!1}),setTimeout(function(){e.setPlaceholder()},100)):this.setPlaceholder({reset:!1}),this.setShowControl(),this.settingSnapshot=t},deep:!0,immediate:!0},fields:{handler:function(){var e,t,n;if(null!==(e=this.control)&&void 0!==e&&e.map_fields&&null!==(t=this.settings)&&void 0!==t&&t.fields){var i,r={},o=null===(i=this.control)||void 0===i||null===(i=i.map_fields)||void 0===i?void 0:i.type;o?this.settings.fields.forEach(function(e){e.type===o&&(r[e.id]=e.label?e.label:e.type)}):this.settings.fields.forEach(function(e){r[e.id]=e.label?e.label:e.type}),this.controls[this.controlKey].options=r}else if(this.repeaterId&&this.repeaterKey&&null!==(n=this.controls)&&void 0!==n&&n.fields){var a,s=this.controls.fields[this.controlKey];if(null!=s&&s.map_fields&&null!==(a=this.$_activeElement.value)&&void 0!==a&&null!==(a=a.settings)&&void 0!==a&&a.fields){var l={};this.$_activeElement.value.settings.fields.forEach(function(e){l[e.id]=e.label?e.label:e.type}),s.options=l}}},deep:!0,immediate:!0},value:{handler:function(e,t){var n;this.setPlaceholder();var i={imageRatio:{"ratio-square":"1/1","ratio-16-9":"16/9","ratio-4-3":"4/3"}},r=null==i||null===(n=i[this.controlKey])||void 0===n?void 0:n[this.value];if(r&&this.updateControl(r),"direction"!==this.controlType&&"_display"!==this.settingKey||this.$_rerenderControls(),"mailchimpList"===this.controlKey){var o,a=this.bricks.mailchimpLists,s=e?a[e].groups:{};window.bricksData.elements.form.controls.mailchimpGroups.options=s,null!==(o=this.controls)&&void 0!==o&&o.mailchimpGroups&&(this.controls.mailchimpGroups.options=s),this.settings.mailchimpGroups&&!s[this.settings.mailchimpGroups]&&delete this.settings.mailchimpGroups,this.$_rerenderControls()}},deep:!0,immediate:!0}}};var hI=(0,xx.A)(pI,[["render",function(e,t,n,i,r,o){var a,s,l=this,c=$r("control-has-setting"),u=$r("control-has-inherited"),d=$r("icon"),p=$r("control-responsive-indicator"),h=$r("control-property"),f=$r("control-info");return r.showControl?(Ta(),Ma("div",{key:0,class:te(o.controlClasses)},[qa("div",{class:te(o.controlInnerClasses)},[!o.hasSettings||r.hasConnectedProperty||o.hasLabel?Qa("",!0):(Ta(),La(c,{key:0,clearable:o.clearable,controlType:o.controlType,hasLabel:o.hasLabel,labelHeight:o.labelHeight,source:n.source,onResetSettings:t[0]||(t[0]=function(e){return o.resetSettings()})},null,8,["clearable","controlType","hasLabel","labelHeight","source"])),o.inheritedFrom&&!o.hasLabel?(Ta(),La(u,{key:1,inheritedFrom:o.inheritedFrom,labelHeight:o.labelHeight},null,8,["inheritedFrom","labelHeight"])):Qa("",!0),o.hasLabel?(Ta(),Ma("label",{key:2,title:o.labelTitle,for:n.controlKey,"data-balloon":o.tooltipContent,"data-balloon-pos":o.tooltipPosition,"data-balloon-length":"string"==typeof(null===(a=o.tooltip)||void 0===a?void 0:a.length)?o.tooltip.length:null,"data-balloon-break":""},[o.hasSettings&&!r.hasConnectedProperty?(Ta(),La(c,{key:0,clearable:o.clearable,controlType:o.controlType,hasLabel:o.hasLabel,labelHeight:o.labelHeight,source:n.source,onClick:t[1]||(t[1]=bc(function(){},["prevent","stop"])),onResetSettings:t[2]||(t[2]=function(e){return o.resetSettings()})},null,8,["clearable","controlType","hasLabel","labelHeight","source"])):Qa("",!0),o.inheritedFrom?(Ta(),La(u,{key:1,inheritedFrom:o.inheritedFrom,labelHeight:o.labelHeight},null,8,["inheritedFrom","labelHeight"])):Qa("",!0),qa("span",{class:"text",innerHTML:o.label},null,8,rI),n.control.info?(Ta(),Ma("span",oI,[Ha(d,{name:"info"})])):Qa("",!0),n.control.deprecated?(Ta(),Ma("span",{key:3,class:"icon deprecated",title:e.i18n.deprecated},[Ha(d,{name:"deprecated"})],8,aI)):Qa("",!0),o.shouldShowIndicator&&"disable"!==e.bricks.builderResponsiveControlIndicator?(Ta(),La(p,{key:4,control:n.control,parentGroupKey:n.parentKey},null,8,["control","parentGroupKey"])):Qa("",!0),r.activeControlLabel?(Ta(),Ma("span",{key:5,class:"control-active-label",textContent:he(r.activeControlLabel)},null,8,sI)):Qa("",!0),qr(e.$slots,"action-icon")],8,iI)):Qa("",!0),r.hasConnectedProperty?Qa("",!0):(Ta(),La(Lr("control-".concat(o.controlType)),{key:o.controlKeyComputed,type:null===(s=n.control)||void 0===s?void 0:s.type,control:n.control,controlKey:n.controlKey,parentKey:n.parentKey,parentType:n.parentType,repeaterId:n.repeaterId,repeaterIndex:n.repeaterIndex,repeaterKey:n.repeaterKey,settings:n.settings,value:o.value,source:n.source,propertyId:n.propertyId,placeholder:r.placeholder,instanceProperty:n.instanceProperty,direction:r.direction,block:n.block,class:te(n.control.class),"data-balloon":!o.hasLabel&&o.tooltipContent?o.tooltipContent:null,"data-balloon-pos":!o.hasLabel&&o.tooltipPosition?o.tooltipPosition:null,onInput:t[3]||(t[3]=function(e){return o.updateControl(e)}),onDelete:t[4]||(t[4]=function(e){return l.$emit("deleted",e)}),onFocusLabel:t[5]||(t[5]=function(e){return r.activeControlLabel=e})},null,40,["type","control","controlKey","parentKey","parentType","repeaterId","repeaterIndex","repeaterKey","settings","value","source","propertyId","placeholder","instanceProperty","direction","block","class","data-balloon","data-balloon-pos"])),o.renderComponentProperty?(Ta(),La(h,{key:4,type:o.propertyType,controlLabel:o.labelTitle,controlKey:o.propertyControlKey,parentKey:n.parentKey,onHasConnectedProperty:t[6]||(t[6]=function(e){return r.hasConnectedProperty=e})},null,8,["type","controlLabel","controlKey","parentKey"])):Qa("",!0)],2),o.description?(Ta(),Ma("div",{key:0,class:"description",innerHTML:o.description},null,8,lI)):Qa("",!0),o.validate&&r.error?(Ta(),La(f,{key:1,class:"error",control:{content:r.error}},null,8,["control"])):Qa("",!0)],2)):Qa("",!0)}]]);function fI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function mI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fI(Object(n),!0).forEach(function(t){gI(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gI(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=vI(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=vI(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==vI(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vI(e){return vI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vI(e)}function yI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||bI(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bI(e,t){if(e){if("string"==typeof e)return kI(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kI(e,t):void 0}}function kI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var wI={setup:function(){return{fullAccess:ln(Xh,"fullAccess"),activeId:ln(Xh,"activeId"),activePanelTab:ln(Xh,"activePanelTab"),pseudoClassActive:ln(Xh,"pseudoClassActive"),searchControlKeyword:ln(Xh,"searchControlKeyword")}},components:{PanelComponentInstance:mA,PanelComponentProperties:TD,PanelElementBreadcrumbs:PD,PanelElementQuickAccess:jD,PanelElementClasses:KT,PanelControlsSearch:XT,ControlToggle:nI,PanelControl:hI},data:function(){return{editCategory:!1,editDescription:!1,editGutenberg:!1,editVariants:!1,showDescription:!1,updateCustomCss:!0}},computed:{selectedElementsCount:function(){return this.$_state.selectedElements.length},hasMixedComponentSelection:function(){var e,t=this.$_state.selectedElements;if(!Array.isArray(t)||!t.length)return!1;if(!t.some(function(e){return null==e?void 0:e.cid}))return!1;var n=null===(e=t[0])||void 0===e?void 0:e.cid;return!n||t.some(function(e){return(null==e?void 0:e.cid)!==n})},renderQuickAccess:function(){var e,t;return!this.hasMixedComponentSelection&&(this.$_state.activeVirtualSlot||"slot"===(null===(e=this.element)||void 0===e?void 0:e.name)?void 0:!(!this.$_userHasPermission("access_element_content")&&!this.$_userHasPermission("access_element_styles"))&&(!(this.elementNotFound||null!==(t=this.element)&&void 0!==t&&t.cid&&!this.component)&&(!this.isComponentInstance&&!this.$_state.activeProperty)))},showQuickAccessLayout:function(){return this.renderQuickAccess&&this.$_state.showElementQuickAccess},isDisabledElement:function(){var e,t=this.bricks.loadData.elementManager,n=null!==(e=null==t?void 0:t[this.elementName])&&void 0!==e?e:null;return n&&"disabled"===(null==n?void 0:n.status)},isComponentInstance:function(){return!this.$_state.activeProperty&&(!(!this.component||this.$_state.activeComponent||this.$_state.activeProperty)||!!this.isNestedComponent)},isNestedComponent:function(){var e;if(this.component&&this.$_state.activeComponent)return(null===(e=this.$_state.activeElement)||void 0===e?void 0:e.cid)&&this.$_state.activeElement.cid!==this.component.id},componentDescription:{get:function(){var e;return null===(e=this.component)||void 0===e?void 0:e.desc},set:function(e){this.component.desc=e}},componentCategory:{get:function(){var e;return null===(e=this.component)||void 0===e?void 0:e.category},set:function(e){this.component.category=e}},componentblockEditor:{get:function(){var e;return null!==(e=this.component)&&void 0!==e&&e.blockEditor?"enabled":"disabled"},set:function(e){"enabled"===e?this.component.blockEditor=1:delete this.component.blockEditor}},blockCategoryOptions:function(){var e,t={};t[""]="".concat(this.i18n.components," (Bricks)");var n=(null===(e=this.bricks.loadData)||void 0===e?void 0:e.blockCategories)||[];return n.length&&n.forEach(function(e){t[e.slug]=e.title}),t},showTabs:function(){return!this.$_isSearchingControls()&&!this.$_isNavMenuInsideDropdown(this.element)},activeClassId:function(){var e;return null===(e=this.$_activeClass.value)||void 0===e?void 0:e.id},activeElement:function(){return this.$_activeElement.value},component:function(){return this.$_state.activeComponent||this.$_getComponent(this.activeElement)},componentCategories:function(){var e={};return this.$_state.components.forEach(function(t){null!=t&&t.category&&(e[t.category]=t.category)}),e},isComponentRoot:function(){return this.$_isComponentRoot(this.activeElement)&&!this.isNestedComponent},globalElement:function(){return this.$_getGlobalElement(this.activeElement)},element:function(){return this.globalElement||this.activeElement},elementName:function(){var e;return null===(e=this.element)||void 0===e?void 0:e.name},settings:function(){if(this.$_isBulkEditing())return this.$_state.selectedElementSettings;var e=this.element;return null!=e&&e.settings&&!Array.isArray(null==e?void 0:e.settings)?e.settings:{}},hasInteractions:function(){var e,t;return!(null===(e=this.$_activeClass.value)||void 0===e||null===(e=e.settings)||void 0===e||!e._interactions)||(null===(t=this.settings)||void 0===t?void 0:t._interactions)},showControls:function(){return!this.hasMixedComponentSelection&&(!this.isNestedComponent&&(!this.$_state.activeProperty&&(!(this.isComponentRoot&&!this.$_state.activeComponent)&&(!this.$_state.showHideElement&&(!this.$_state.showConditions&&(!this.$_state.showInteractions&&!(this.elementName&&!this.$_userHasPermission("edit_element_".concat(this.elementName)))))))))},builderDisablePinnedControlGroups:function(){var e;return!(null===(e=this.bricks)||void 0===e||null===(e=e.loadData)||void 0===e||!e.builderDisablePinnedControlGroups)},noEditElementPermission:function(){return!this.isComponentRoot&&(this.elementName&&!this.$_userHasPermission("edit_element_".concat(this.elementName))&&!this.elementNotFound&&!this.isDisabledElement)},elementNotFound:function(){return!!this.elementName&&(!Object.prototype.hasOwnProperty.call(this.bricks.elements,this.elementName)&&!this.isDisabledElement)},isSlotElement:function(){var e;return"slot"===(null===(e=this.element)||void 0===e?void 0:e.name)||this.isVirtualSlot},isVirtualSlot:function(){return!this.$_state.activeComponent&&!(!this.$_state.activeId||!String(this.$_state.activeId).startsWith("vslot-"))},virtualSlotLabel:function(){if(!this.isVirtualSlot||!this.$_state.activeId)return"";var e=yI(this.$_state.activeId.split("-"),3)[2];if(!e)return this.i18n.slot;var t,n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=bI(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(this.$_dynamicElements.value);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(null!=i&&i.cid){var r=this.$_getComponentById(i.cid);if(null!=r&&r.elements){var o=r.elements.find(function(t){return"slot"===t.name&&t.id===e});if(o)return o.label||this.i18n.slot}}}}catch(e){n.e(e)}finally{n.f()}return this.i18n.slot},componentVariants:function(){var e;return(null===(e=this.component)||void 0===e?void 0:e.variants)||[]},labelVariantBase:{get:function(){var e;return(null===(e=this.component)||void 0===e?void 0:e.labelVariantBase)||""},set:function(e){e?this.component.labelVariantBase=e:delete this.component.labelVariantBase}},variantOptionsForEditing:function(){var e={"":this.labelVariantBase||this.i18n.base};return this.componentVariants.forEach(function(t){e[t.id]=t.name}),e},variantOptionsForInstance:function(){var e=this.instanceComponent,t={"":(null==e?void 0:e.labelVariantBase)||this.i18n.base};return null!=e&&e.variants&&e.variants.forEach(function(e){t[e.id]=e.name}),t},activeVariantForEditing:{get:function(){return this.$_state.componentVariantActive||""},set:function(e){this.$_state.componentVariantActive=e,this.$_rerenderControls()}},instanceVariant:{get:function(){var e;return(null===(e=this.activeElement)||void 0===e?void 0:e.variant)||""},set:function(e){e?this.activeElement.variant=e:delete this.activeElement.variant}},instanceComponent:function(){return this.isNestedComponent?this.$_getComponent(this.activeElement):this.component}},methods:{setActiveComponent:function(){var e=this.$_getComponent(this.activeElement);this.$_setActiveComponent(e)},addVariant:function(){this.component.variants||(this.component.variants=[]);var e="variant-".concat(this.$_generateId()),t="".concat(this.i18n.variant," ").concat(this.componentVariants.length+1);this.component.variants.push({id:e,name:t}),this.$_state.componentVariants=this.component.variants,this.$_state.componentVariantActive=e},deleteVariant:function(e){if(confirm(this.i18n.confirmDeleteVariant)){var t=this.component.variants.findIndex(function(t){return t.id===e});-1!==t&&(this.component.variants.splice(t,1),this.$_state.componentVariants=this.component.variants,this.$_state.componentVariantActive===e&&(this.$_state.componentVariantActive=""),this.cleanupVariantSettings(this.component.elements,e))}},cleanupVariantSettings:function(e,t){var n=this;if(e&&Array.isArray(e)){var i=":".concat(t);e.forEach(function(e){e.settings&&"object"===vI(e.settings)&&Object.keys(e.settings).forEach(function(t){t.endsWith(i)&&delete e.settings[t]}),e.children&&Array.isArray(e.children)&&n.cleanupVariantSettings(e.children,t)})}},updateVariantName:function(e,t){var n=this.component.variants.find(function(t){return t.id===e});n&&(n.name=t)},onInputLabel:function(e){this.$_stopPostMessages();var t=this.$_state.activeElement,n=e.target.value;n?t.label=n:delete t.label,this.$_isBulkEditing()&&this.$_state.selectedElements.forEach(function(e){e.label=n})},showTab:function(e){var t=this;if(this.hasMixedComponentSelection)return!1;if(this.$_isBulkEditing()&&"content"===e&&!this.$_state.selectedElements.every(function(e){return e.name===t.$_state.selectedElements[0].name}))return this.$_state.activePanelTab="style",!1;return!0},clearPinnedControlGroups:function(){this.$_state.pinnedControlGroups=[],this.$_state.pinnedSectionHeight=300,localStorage.removeItem("brx_builder_pinned_control_groups"),localStorage.removeItem("brx_builder_pinned_section_height")}},watch:{builderDisablePinnedControlGroups:{handler:function(e){e&&this.clearPinnedControlGroups()},immediate:!0},"$_state.pinnedControlGroups":{handler:function(e){this.builderDisablePinnedControlGroups&&e.length&&this.clearPinnedControlGroups()},deep:!0},activePanel:function(){"content"!==this.activePanelTab&&"style"!==this.activePanelTab&&(this.$_state.activePanelTab="content")},activeId:function(){this.activeId||this.$_showPanel(),this.activePanelTab=["content","style"].includes(this.activePanelTab)?this.activePanelTab:"content"},activeClassId:function(){if(this.activeClassId){var e=this.$_state.activeClass;null!=e&&e.settings&&!Array.isArray(null==e?void 0:e.settings)||(this.$_state.activeClass=mI(mI({},e),{},{settings:{}}))}},selectedElementsCount:function(e){this.$_rerenderControls()},hasMixedComponentSelection:function(e){e&&(this.$_state.activeProperty=!1,this.$_state.showHideElement=!1,this.$_state.showConditions=!1,this.$_state.showInteractions=!1,this.$_state.showControlSearch=!1,this.$_state.searchControlKeyword="")},"$_state.activeComponent.id":{handler:function(){this.editCategory=!1,this.editVariants=!1,this.showDescription=!1,this.$_state.activeComponent?(this.$_state.componentVariants=this.$_state.activeComponent.variants||[],this.$_state.componentVariantActive=""):(this.$_state.componentVariants=[],this.$_state.componentVariantActive="")}},"$_state.activeProperty":{handler:function(e){e&&(this.$_state.showHideElement=!1,this.$_state.showConditions=!1,this.$_state.showInteractions=!1,this.$_state.showControlSearch=!1)}},"$_state.showHideElement":{handler:function(e){e&&(this.$_state.activeProperty=!1,this.$_state.showConditions=!1,this.$_state.showInteractions=!1,this.$_state.showControlSearch=!1)}},"$_state.showConditions":{handler:function(e){e&&(this.$_state.activeProperty=!1,this.$_state.showHideElement=!1,this.$_state.showInteractions=!1,this.$_state.showControlSearch=!1,this.$_state.searchControlKeyword="")}},"$_state.showInteractions":{handler:function(e){e&&(this.$_state.activeProperty=!1,this.$_state.showHideElement=!1,this.$_state.showConditions=!1,this.$_state.showControlSearch=!1,this.$_state.searchControlKeyword="")}},"$_state.showControlSearch":{handler:function(e){e&&(this.$_state.activeProperty=!1,this.$_state.showHideElement=!1,this.$_state.showConditions=!1,this.$_state.showInteractions=!1)}},"$_state.activeId":function(){var e=this;this.updateCustomCss=!1,setTimeout(function(){e.updateCustomCss=!0},100),this.isComponentRoot&&(this.$_state.showHideElement=!1,this.$_state.showConditions=!1,this.$_state.showInteractions=!1)},"element.settings._cssId":function(e,t){var n;if(this.updateCustomCss){var i,r,o=!(!this.settings||null==this||null===(n=this.settings)||void 0===n||!n._cssCustom)&&this.$_clone(this.settings._cssCustom);if(o)!e&&t?(i="#".concat(t),r="#brxe-".concat(this.element.id)):e&&t?(i="#".concat(t),r="#".concat(e)):(o=o.replaceAll("#brxe-".concat(this.element.id),"#".concat(e)),i="#brxe-".concat(this.element.id),r="#".concat(e)),this.$_activeClass.value&&(r=".".concat(this.$_activeClass.value.name)),o=o.replaceAll(i,r),this.settings._cssCustom=o}},showTabs:function(e){e||(this.$_state.activePanelTab="content")}}};const _I=(0,xx.A)(wI,[["render",function(e,t,n,i,r,o){var a,s,l,c,u,d,p,h,f,m,g,v=$r("panel-element-quick-access"),y=$r("icon"),b=$r("control-info"),k=$r("control-select"),w=$r("control-textarea"),_=$r("ControlToggle"),C=$r("panel-control"),x=$r("panel-element-breadcrumbs"),S=$r("panel-element-classes"),E=$r("panel-component-instance"),A=$r("panel-component-properties"),D=$r("panel-controls-search"),T=$r("panel-controls"),I=$r("control-hide-element"),O=$r("control-conditions"),P=$r("control-interactions");return Ta(),Ma("div",{id:"bricks-panel-element",class:te([{conditions:e.$_state.showConditions},{interactions:e.$_state.showInteractions},NS({},"hide-element",e.$_state.showHideElement),{component:e.$_state.activeComponent},{instance:o.isComponentInstance},{property:e.$_state.activeProperty},{"show-quick-access":o.showQuickAccessLayout}]),"data-active-tab":"open"===e.bricks.builderControlGroupVisibility?e.$_state.activePanelTab:null},[o.renderQuickAccess?(Ta(),La(v,{key:0})):Qa("",!0),e.$_state.activeComponent?(Ta(),Ma("div",BS,[qa("h6",{class:"label",title:e.i18n.component},[qa("span",{class:"component",textContent:he(e.i18n.component)},null,8,VS)],8,RS),qa("ul",qS,[o.componentDescription&&!e.$_state.activeComponent?(Ta(),Ma("li",{key:0,"data-balloon":e.i18n.description,"data-balloon-pos":"bottom-right",onClick:t[0]||(t[0]=bc(function(e){return r.showDescription=!r.showDescription},["stop"]))},[Ha(y,{name:"info",class:"component"})],8,HS)):Qa("",!0),e.$_userHasPermission("edit_components")&&e.$_state.activeComponent?(Ta(),Ma("li",{key:1,class:te({active:r.editDescription,indicator:o.componentDescription}),"data-balloon":e.i18n.description,"data-balloon-pos":"bottom-right",onClick:t[1]||(t[1]=bc(function(e){return r.editDescription=!r.editDescription},["stop"]))},[Ha(y,{name:"info"})],10,zS)):Qa("",!0),e.$_userHasPermission("edit_components")&&e.$_state.activeComponent?(Ta(),Ma("li",{key:2,class:te({active:r.editCategory,indicator:o.componentCategory}),"data-balloon":o.componentCategory?"".concat(e.i18n.category," (").concat(o.componentCategory,")"):e.i18n.category,"data-balloon-pos":"bottom-right",onClick:t[2]||(t[2]=bc(function(e){return r.editCategory=!r.editCategory},["stop"]))},[Ha(y,{name:"folder"})],10,US)):Qa("",!0),e.$_userHasPermission("edit_components")&&e.$_state.activeComponent&&e.bricks.bricksComponentsInBlockEditor?(Ta(),Ma("li",{key:3,class:te({active:r.editGutenberg,indicator:"all"===e.bricks.bricksComponentsInBlockEditor||"enabled"===o.componentblockEditor}),"data-balloon":e.i18n.useInBlockEditor,"data-balloon-pos":"bottom-right",onClick:t[3]||(t[3]=bc(function(e){return r.editGutenberg=!r.editGutenberg},["stop"]))},[Ha(y,{name:"wordpress"})],10,WS)):Qa("",!0),e.$_userHasPermission("edit_components")&&e.$_state.activeComponent?(Ta(),Ma("li",{key:4,class:te({active:r.editVariants,indicator:o.componentVariants&&o.componentVariants.length>0}),"data-balloon":"".concat(e.i18n.variants," (").concat(o.componentVariants.length,")"),"data-balloon-pos":"bottom-right",onClick:t[4]||(t[4]=bc(function(e){return r.editVariants=!r.editVariants},["stop"]))},[Ha(y,{name:"color"})],10,GS)):Qa("",!0),e.$_userHasPermission("edit_components")&&e.$_state.activeComponent?(Ta(),Ma("li",{key:5,class:te({active:e.$_state.activeProperty,indicator:(null===(a=o.component)||void 0===a?void 0:a.properties)&&(null===(s=o.component)||void 0===s?void 0:s.properties.length)>0,component:!0}),"data-balloon":"".concat(e.i18n.properties," (").concat(null!==(l=o.component)&&void 0!==l&&l.properties?null===(c=o.component)||void 0===c?void 0:c.properties.length:0,")"),"data-balloon-pos":"bottom-right",onClick:t[5]||(t[5]=bc(function(t){return e.$_state.activeProperty=!e.$_state.activeProperty},["stop"]))},[Ha(y,{name:"package"})],10,KS)):Qa("",!0),e.$_userHasPermission("edit_components")&&e.$_state.activeComponent?(Ta(),Ma("li",{key:6,"data-balloon":e.$_backToTooltip(),"data-balloon-pos":"bottom-right",onClick:t[6]||(t[6]=bc(function(t){return e.$_state.componentInstanceId?e.$_backToPreviousActiveId():e.$_backToComponentsPanel()},["stop"]))},[Ha(y,{name:"arrow-left"})],8,QS)):Qa("",!0)])])):Qa("",!0),o.hasMixedComponentSelection||null===(u=o.element)||void 0===u||!u.cid||o.component?Qa("",!0):(Ta(),Ma("div",YS,[Ha(b,{class:"error",control:{content:"".concat(e.i18n.componentNotFoundInfo," [CID: ").concat(o.element.cid,"]")}},null,8,["control"])])),e.$_userHasPermission("edit_components")&&o.globalElement&&!e.$_state.activeComponent?(Ta(),La(b,{key:3,class:"error no-border",control:{content:e.i18n.globalElementDeprecatedInfo}},null,8,["control"])):Qa("",!0),e.$_userHasPermission("edit_components")&&r.editCategory?(Ta(),Ma("div",JS,[qa("label",{for:"component-category",textContent:he(e.i18n.category)},null,8,XS),Ha(k,{value:o.componentCategory,"onUpdate:value":t[7]||(t[7]=function(e){return o.componentCategory=e}),control:{options:o.componentCategories,add:!0,placeholder:e.i18n.category}},null,8,["value","control"])])):Qa("",!0),e.$_userHasPermission("edit_components")&&e.$_state.activeComponent&&r.editDescription?(Ta(),Ma("div",ZS,[qa("label",{for:"component-description",textContent:he(e.i18n.description)},null,8,eE),Ha(w,{value:o.componentDescription,onInput:t[8]||(t[8]=function(e){return o.componentDescription=e}),control:{hasDynamicData:!1}},null,8,["value"])])):Qa("",!0),e.$_userHasPermission("edit_components")&&e.$_state.activeComponent&&r.editGutenberg?(Ta(),Ma("div",tE,[qa("label",{for:"component-gutenberg",textContent:he(e.i18n.useInBlockEditor)},null,8,nE),"manual"===e.bricks.bricksComponentsInBlockEditor?(Ta(),La(_,{key:0,value:o.componentblockEditor,"onUpdate:value":t[9]||(t[9]=function(e){return o.componentblockEditor=e}),control:{options:{enabled:e.i18n.enabled,disabled:e.i18n.disabled},default:"disabled"}},null,8,["value","control"])):Qa("",!0),"all"===e.bricks.bricksComponentsInBlockEditor?(Ta(),La(b,{key:1,class:"info",control:{content:e.i18n.blockEditorAllComponentsEnabled}},null,8,["control"])):Qa("",!0),"enabled"===o.componentblockEditor||"all"===e.bricks.bricksComponentsInBlockEditor?(Ta(),Ma("div",iE,[Ha(C,{controlKey:"blockCategory",control:{type:"select",label:e.i18n.category,options:o.blockCategoryOptions,placeholder:o.blockCategoryOptions[""],propertyDisabled:!0},settings:o.component},null,8,["control","settings"]),Ha(C,{controlKey:"blockIcon",control:{type:"icon",label:e.i18n.icon,dynamicData:!1,propertyDisabled:!0},settings:o.component},null,8,["control","settings"]),Ha(C,{controlKey:"blockPreviewImage",control:{type:"image",label:e.i18n.previewImage,propertyDisabled:!0},settings:o.component},null,8,["control","settings"])])):Qa("",!0)])):Qa("",!0),e.$_userHasPermission("edit_components")&&e.$_state.activeComponent&&r.editVariants?(Ta(),Ma("div",rE,[qa("label",{textContent:he(e.i18n.variants)},null,8,oE),qa("div",aE,[qa("div",sE,[Xn(qa("input",{"onUpdate:modelValue":t[10]||(t[10]=function(e){return o.labelVariantBase=e}),type:"text",placeholder:e.i18n.base},null,8,lE),[[ac,o.labelVariantBase]]),Xn(qa("button",{textContent:he(e.i18n.base)},null,8,cE),[[pl,o.labelVariantBase&&o.labelVariantBase!==e.i18n.base]])]),(Ta(!0),Ma(Ca,null,Rr(o.componentVariants,function(t,n){return Ta(),Ma("div",{key:t.id,class:"variant-item"},[Xn(qa("input",{"onUpdate:modelValue":function(e){return t.name=e},type:"text",placeholder:e.i18n.variantName,onInput:function(e){return o.updateVariantName(t.id,e.target.value)}},null,40,uE),[[ac,t.name]]),qa("button",{class:"delete-variant","data-balloon":e.i18n.delete,"data-balloon-pos":"top",onClick:bc(function(e){return o.deleteVariant(t.id)},["stop"])},[Ha(y,{name:"trash"})],8,dE)])}),128))]),qa("button",{class:"button primary",onClick:t[11]||(t[11]=function(){return o.addVariant&&o.addVariant.apply(o,arguments)})},[Ha(y,{name:"add"}),Ga(" "+he(e.i18n.addVariant),1)]),Ha(b,{class:"info",control:{content:e.i18n.variantsInfo}},null,8,["control"])])):Qa("",!0),!("slot"!==(null===(d=o.element)||void 0===d?void 0:d.name)&&e.$_userHasPermission("edit_components")&&e.$_state.activeComponent&&o.componentVariants.length>0)||r.editVariants||r.editCategory||r.editDescription||r.editGutenberg?Qa("",!0):(Ta(),Ma("div",pE,[qa("label",{textContent:he(e.i18n.variant)},null,8,hE),Ha(k,{value:o.activeVariantForEditing,"onUpdate:value":t[12]||(t[12]=function(e){return o.activeVariantForEditing=e}),control:{options:o.variantOptionsForEditing,placeholder:e.i18n.base}},null,8,["value","control"])])),qa("div",{id:"bricks-panel-header",class:te({"bricks-bulk-edit":e.$_isBulkEditing()})},[e.$_isBulkEditing()?(Ta(),Ma("div",{key:0,class:"title",textContent:he("".concat(e.i18n.bulkEdit," (").concat(o.selectedElementsCount,")"))},null,8,fE)):(Ta(),Ma("input",{key:1,class:"title",type:"text",autocomplete:"off",spellcheck:"false",disabled:o.isVirtualSlot,value:o.isVirtualSlot?o.virtualSlotLabel:e.$_getElementLabel(o.element),onInput:t[13]||(t[13]=function(e){return o.onInputLabel(e)})},null,40,mE)),o.isSlotElement||o.hasMixedComponentSelection?Qa("",!0):(Ta(),Ma("ul",gE,[!o.isDisabledElement&&(e.$_userHasPermission("access_element_hide")&&!o.isComponentRoot&&!o.isNestedComponent||o.isComponentRoot&&e.$_state.activeComponent)?(Ta(),Ma("li",{key:0,class:te(NS(NS(NS({},"hide-element",!0),"highlight",(null===(p=o.settings)||void 0===p?void 0:p._hideElementBuilder)||(null===(h=o.settings)||void 0===h?void 0:h._hideElementFrontend)),"active",e.$_state.showHideElement)),"data-balloon":e.i18n.hideElement,"data-balloon-pos":"bottom-right",onClick:t[14]||(t[14]=function(t){return e.$_state.showHideElement=!e.$_state.showHideElement})},[Ha(y,{name:"preview"})],10,vE)):Qa("",!0),!o.isDisabledElement&&(e.$_userHasPermission("access_element_conditions")&&!o.isComponentRoot&&!o.isNestedComponent||o.isComponentRoot&&e.$_state.activeComponent)?(Ta(),Ma("li",{key:1,class:te({conditions:!0,highlight:null===(f=o.settings)||void 0===f?void 0:f._conditions,active:e.$_state.showConditions}),"data-balloon":e.i18n.conditions,"data-balloon-pos":"bottom-right",onClick:t[15]||(t[15]=function(t){return e.$_state.showConditions=!e.$_state.showConditions})},[Ha(y,{name:"conditions"})],10,yE)):Qa("",!0),!o.isDisabledElement&&(e.$_userHasPermission("access_element_interactions")&&!o.isComponentRoot&&!o.isNestedComponent||o.isComponentRoot&&e.$_state.activeComponent)?(Ta(),Ma("li",{key:2,class:te({interactions:!0,highlight:o.hasInteractions,active:e.$_state.showInteractions}),"data-balloon":e.i18n.interactions,"data-balloon-pos":"bottom-right",onClick:t[16]||(t[16]=function(t){return e.$_state.showInteractions=!e.$_state.showInteractions})},[Ha(y,{name:"interactions"})],10,bE)):Qa("",!0),e.$_userHasPermission("edit_components")&&o.isComponentRoot&&!e.$_state.activeComponent||o.isNestedComponent?(Ta(),Ma("li",{key:3,"data-balloon":e.i18n.editComponent,"data-balloon-pos":"bottom-right",onClick:t[17]||(t[17]=bc(function(e){return o.setActiveComponent()},["stop"]))},[Ha(y,{name:"settings",class:"component"})],8,kE)):Qa("",!0),o.globalElement?(Ta(),Ma("li",{key:4,"data-balloon":e.i18n.globalElement,"data-balloon-pos":"bottom-right"},[qa("a",{href:e.bricks.academy.globalElement,target:"_blank",rel:"noopener"},[Ha(y,{name:"globe",class:"global-element"})],8,_E)],8,wE)):Qa("",!0),o.globalElement?(Ta(),Ma("li",{key:5,"data-balloon":"".concat(e.i18n.unlink," (").concat(e.i18n.globalElement,")"),"data-balloon-pos":"bottom-right",onClick:t[18]||(t[18]=function(t){return e.$_unlinkGlobalElement()})},[Ha(y,{name:"unlinked",class:"unlink"})],8,CE)):Qa("",!0)])),!e.$_isBulkEditing()&&e.bricks.builderElementBreadcrumbs&&(null!==(m=o.element)&&void 0!==m&&m.parent||o.isComponentRoot)?(Ta(),La(x,{key:3})):Qa("",!0),r.showDescription&&o.componentDescription?(Ta(),Ma("div",{key:4,class:"component-description",title:e.i18n.close,onClick:t[19]||(t[19]=function(e){return r.showDescription=!r.showDescription})},[qa("div",{class:"text",innerHTML:o.componentDescription},null,8,SE)],8,xE)):Qa("",!0)],2),o.showControls&&!o.isSlotElement?(Ta(),Ma("div",EE,[(Ta(),La(S,{element:o.element,settings:o.settings,key:o.elementName},null,8,["element","settings"])),o.showTabs&&e.$_userHasPermission("access_element_styles")&&["content","style"].includes(i.activePanelTab)?(Ta(),Ma("ul",AE,[(Ta(),Ma(Ca,null,Rr(["content","style"],function(t,n){return Xn(qa("li",{key:n,class:te({active:t===i.activePanelTab}),onClick:function(e){return i.activePanelTab=t}},["style"===t&&e.$_breakpointHasStyles(e.$_state.breakpointActive,!0)?(Ta(),Ma("span",{key:0,class:te(["indicator",{class:o.activeClassId}])},null,2)):Qa("",!0),qa("span",{class:"label",textContent:he(e.i18n[t])},null,8,TE)],10,DE),[[pl,o.showTab(t)]])}),64))])):Qa("",!0)])):Qa("",!0),!o.hasMixedComponentSelection&&o.isDisabledElement?(Ta(),La(b,{key:10,class:"no-cap",control:{content:e.i18n.infoElementDisabled,buttonText:e.i18n.learnMore,buttonLink:"".concat(e.bricks.academy.article,"element-manger")}},null,8,["control"])):Qa("",!0),!o.hasMixedComponentSelection&&o.noEditElementPermission?(Ta(),La(b,{key:11,class:"no-cap",control:{content:e.i18n.infoAccessRequired,buttonText:e.i18n.learnMore,buttonLink:e.bricks.academy.capabilities}},null,8,["control"])):Qa("",!0),!o.hasMixedComponentSelection&&o.elementNotFound?(Ta(),La(b,{key:12,class:"no-cap",control:{content:e.i18n.infoElementNotFound}},null,8,["control"])):Qa("",!0),!o.hasMixedComponentSelection&&o.isVirtualSlot?(Ta(),La(b,{key:13,class:"no-cap",control:{content:e.i18n.componentSlotInfo}},null,8,["control"])):Qa("",!0),o.hasMixedComponentSelection?(Ta(),La(b,{key:14,class:"no-cap",control:{content:e.i18n.mixedComponentSelectionInfo}},null,8,["control"])):Qa("",!0),!(!o.hasMixedComponentSelection&&o.isComponentInstance&&(null===(g=o.instanceComponent)||void 0===g||null===(g=g.variants)||void 0===g?void 0:g.length)>0)||e.$_state.activeProperty||e.$_state.showHideElement||e.$_state.showConditions||e.$_state.showInteractions?Qa("",!0):(Ta(),Ma("div",IE,[qa("div",OE,[qa("label",{textContent:he(e.i18n.variant)},null,8,PE),Ha(k,{value:o.instanceVariant,"onUpdate:value":t[20]||(t[20]=function(e){return o.instanceVariant=e}),control:{options:o.variantOptionsForInstance,placeholder:e.i18n.base}},null,8,["value","control"])])])),!o.hasMixedComponentSelection&&o.isComponentInstance?(Ta(),La(E,{key:16})):!o.hasMixedComponentSelection&&o.component&&e.$_state.activeComponent&&e.$_state.activeProperty?(Ta(),La(A,{key:17})):o.hasMixedComponentSelection||o.component&&(!e.$_state.activeComponent||e.$_state.activeProperty)?Qa("",!0):(Ta(),La(D,{key:18})),o.showControls?(Ta(),La(T,{type:"element",key:o.elementName,block:o.element,disablePinnedControlGroups:o.builderDisablePinnedControlGroups,settings:o.settings},null,8,["block","disablePinnedControlGroups","settings"])):Qa("",!0),!o.hasMixedComponentSelection&&e.$_userHasPermission("access_element_hide")&&e.$_state.showHideElement?(Ta(),La(I,{key:20})):Qa("",!0),!o.hasMixedComponentSelection&&e.$_userHasPermission("access_element_conditions")&&e.$_state.showConditions?(Ta(),La(O,{key:21})):Qa("",!0),!o.hasMixedComponentSelection&&e.$_userHasPermission("access_element_interactions")&&e.$_state.showInteractions?(Ta(),La(P,{key:22})):Qa("",!0)],10,jS)}]]);var CI=_I,xI={id:"bricks-panel-elements"},SI=["placeholder"],EI={key:1,id:"bricks-panel-tabs"},AI=["innerHTML"],DI=["data-balloon"],TI=["textContent"],II={key:2,id:"bricks-panel-components-actions"},OI={class:"actions"},PI=["data-balloon"],FI=["href"],$I=["data-balloon"],MI=["data-balloon"],LI=["data-balloon"],NI=["data-balloon"],jI={key:1},BI=["textContent"],RI={key:2,class:"import action-wrapper"},VI=["textContent"],qI=["data-tab"],HI=["onClick"],zI={class:"wrap"},UI=["textContent"],WI=["href","data-balloon"],GI={class:"sortable-wrapper"},KI=["draggable","onDragstart","onDragend","data-element-name","data-element-global","data-component-id","onClick"],QI={class:"element-data"},YI=["title"],JI={class:"handle element-label"},XI=["textContent"],ZI=["title","innerHTML"],eO={class:"element-actions"},tO=["data-balloon"],nO=["data-balloon","onClick"],iO=["data-balloon","onClick"],rO=["data-balloon","onClick"],oO=["data-balloon","onClick"],aO=["data-balloon","onClick"],sO=["data-balloon","onClick"],lO=["data-balloon","onClick"],cO=["data-balloon"],uO=["data-balloon","onClick"],dO=["data-balloon","onClick"],pO=["data-balloon","onClick"],hO={key:0,class:"current"},fO=["textContent"],mO=["onClick"],gO=["textContent"],vO={key:1,class:"other"},yO=["textContent"],bO=["href"],kO=["innerHTML"],wO=["textContent"],_O=["title","innerHTML","onClick"],CO={key:5,class:"no-results"},xO=["textContent"],SO=["href","textContent"],EO=["href","textContent"];function AO(e){return AO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},AO(e)}function DO(e){return function(e){if(Array.isArray(e))return TO(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return TO(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?TO(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function TO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function IO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function OO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?IO(Object(n),!0).forEach(function(t){PO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function PO(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=AO(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=AO(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==AO(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var FO={setup:function(){return{categoryNameComponents:"components",categoryNameGlobalElements:"globalElements",categoryNamePinnedElements:"pinned",categoryNameSearchedElement:"searchedElements",categoryNameComponentSlots:"components"}},data:function(){return{action:"",searchFor:"",filter:"",hideCategories:[],animate:"",expandComponentId:null,importResults:[],componentInstancesOtherPages:null,showInstances:null,blockEditorConfirmItem:null}},computed:{userCanInsert:function(){return this.$_userCanAddAnyElements()||this.$_userHasPermission("insert_components")||this.$_userHasPermission("manage_global_elements")},canAccessElements:function(){return this.$_userCanAddAnyElements()},canAccessComponents:function(){return this.$_state.permissions.some(function(e){return e.includes("component")})},betaComponentIds:function(){var e=this.$_clone(this.$_state.components),t=(Array.isArray(e)?e.filter(function(e){return!e._version}):[]).map(function(e){return e.id});return t},componentsCount:function(){return this.$_state.components.length},elements:function(){var e,t=this,n=this.searchFor.toLowerCase(),i=this.$_clone(this.bricks.elements),r=this.$_clone(this.$_state.pinnedElements),o=[];if(!this.$_state.activeComponent){var a=r.findIndex(function(e){return"slot"===e});-1!==a&&r.splice(a,1)}var s=!(null===(e=i)||void 0===e||!e.section)&&this.$_clone(i.section);s&&!r.includes("section")&&(delete i.section,i=OO({section:s},i));var l=function(e){var n=t.$_getElementConfig(e.name),i=null!=e&&e.label?[e.label]:[];return null!=n&&n.keywords&&(i=i.concat(n.keywords)),i.join(" ").toLowerCase()},c=this.bricks.loadData.elementManager;if(Object.keys(c).forEach(function(e){var t,n=null===(t=c[e])||void 0===t?void 0:t.status;n&&"active"!==n&&delete i[e]}),Object.keys(i).forEach(function(e){var a="add_element_".concat(e);if(t.$_state.permissions.includes(a)){var s=i[e],c=l(s);if(n.length&&s.category?s.category=t.categoryNameSearchedElement:r.includes(e)&&(s.category=t.categoryNamePinnedElements),!s.deprecated&&(!n.length||s.category&&c.includes(n)))if(Array.isArray(null==s?void 0:s.panelCondition)&&3===s.panelCondition.length){var u,d=s.panelCondition[0],p=s.panelCondition[1],h=s.panelCondition[2],f=null===(u=t.$_state)||void 0===u?void 0:u[d];"="===p&&(Array.isArray(h)&&h.includes(f)||f===h)&&o.push(s)}else o.push(s)}}),this.$_state.activeComponent&&this.$_userHasPermission("edit_components")){var u={name:"slot",label:this.i18n.slot,category:n.length?this.categoryNameSearchedElement:this.categoryNameComponentSlots};n.length&&!this.i18n.slot.toLowerCase().includes(n)||o.unshift(u)}if(this.$_userHasPermission("manage_global_elements")){var d=this.$_clone(this.$_state.globalElements);d.length&&d.forEach(function(e){var i=l(e);n.length&&!i.includes(n)||(e.category=t.categoryNameGlobalElements,o.push(e)),r.includes(e.global)&&(e.category=t.categoryNamePinnedElements)})}if("components"===this.$_state.activePanelTab){if(!this.componentsCount)return[];var p=[];return this.$_state.components.forEach(function(e){var n,i,o,a,s,l=null===(n=e)||void 0===n?void 0:n.blockEditor;e=t.$_clone(e);var c=t.$_getComponentElementById(e.id);c=t.$_clone(c),e={cid:e.id,category:(null===(i=e)||void 0===i?void 0:i.category)||"components",name:null===(o=c)||void 0===o?void 0:o.name,label:(null===(a=e)||void 0===a?void 0:a.label)||(null===(s=c)||void 0===s?void 0:s.label),settings:{}};var u,d=t.searchFor?t.searchFor.toLowerCase():"";if(d&&(null!==(u=e)&&void 0!==u&&u.label&&!e.label.toLowerCase().includes(d)))return;if("manual"!==t.bricks.bricksComponentsInBlockEditor||"block-editor"!==t.filter||l){var h="component-".concat(e.cid);r.includes(h)&&(e.category=t.categoryNamePinnedElements),p.push(e)}}),this.$_clone(p)}return o},categories:function(){var e,t={},n=this.$_clone(this.$_state.pinnedElements);if(this.elements.forEach(function(e){e.category&&(t.hasOwnProperty(e.category)||(t[e.category]=[]),t[e.category].push(e))}),this.searchFor)return t;var i=this.$_state.elementsCatFirst?this.$_state.elementsCatFirst:void 0;if(i&&null!==(e=t)&&void 0!==e&&e[i]){var r=this.$_clone(t);delete r.firstCategory,t=OO(PO({},i,t[i]),r)}if(n.length&&t.hasOwnProperty(this.categoryNamePinnedElements)){var o=this.$_clone(t);delete o[this.categoryNamePinnedElements],t=OO(PO({},this.categoryNamePinnedElements,t[this.categoryNamePinnedElements]),o)}return t}},methods:{componentUsedInBlockEditor:function(e){var t=this.$_getComponent(e);return null==t?void 0:t.blockEditor},useInBlockEditorToggle:function(e){var t=this.$_getComponent(e);t&&(this.blockEditorConfirmItem===(null==e?void 0:e.cid)?(t.blockEditor?(delete t.blockEditor,this.$_showMessage("".concat(this.i18n.useInBlockEditor,": ").concat(this.i18n.disabled))):(t.blockEditor=!0,this.$_showMessage("".concat(this.i18n.useInBlockEditor,": ").concat(this.i18n.enabled))),this.blockEditorConfirmItem=null):this.blockEditorConfirmItem=null==e?void 0:e.cid)},toggleShowInstances:function(e){var t;this.componentInstancesTotal(null==e?void 0:e.cid)?this.showInstances=null!==(t=this.showInstances)&&void 0!==t&&t.cid&&this.showInstances.cid===e.cid?null:e:this.showInstances=null},editInstance:function(e){this.$_state.activePanel="element",this.$_state.activePanelTab="content",this.$_state.activeId=e.id},hideInstances:function(){this.showInstances=null},exportComponents:function(e){var t=this,n="bricks-components",i={components:this.$_state.components,globalClasses:[]};if(e){e=this.$_getComponent(e),i.components=[e],n="bricks-component-".concat(e.id);var r=this.$_getComponentElementById(e.id);null!=r&&r.label&&(n+="-".concat(r.label.toLowerCase().replace(/\s/g,"-")))}var o=[],a=function(e){if(e&&!o.find(function(t){return t.id===e})){var n=t.$_getGlobalClass(e);n&&o.push(n)}};i.components.forEach(function(e){Array.isArray(null==e?void 0:e.elements)&&e.elements.forEach(function(e){var t,n=null==e||null===(t=e.settings)||void 0===t?void 0:t._cssGlobalClasses;Array.isArray(n)&&n.forEach(a)}),Array.isArray(null==e?void 0:e.properties)&&e.properties.forEach(function(e){"class"===e.type&&(Array.isArray(e.options)&&e.options.forEach(function(e){null!=e&&e.value&&(Array.isArray(e.value)?e.value:[e.value]).forEach(a)}),e.default&&(Array.isArray(e.default)?e.default:[e.default]).forEach(a))})}),i.globalClasses=o,this.$_exportAsJsonFile(i,n)},duplicateComponent:function(e){var t=this,n=this.$_getComponent(e);if(n){var i={},r=this.$_clone(n);r.id=this.$_generateId(),n.label&&(r.label="".concat(n.label," (").concat(this.i18n.duplicate,")")),r.elements.forEach(function(e){0==e.parent?(i[e.id]=r.id,e.id=r.id,e.label&&(e.label="".concat(e.label," (").concat(t.i18n.duplicate,")"))):i[e.id]=t.$_generateId()}),r.elements=JSON.parse(JSON.stringify(r.elements).replace(new RegExp(Object.keys(i).join("|"),"g"),function(e){return i[e]})),this.$_state.components.unshift(r),this.$_showMessage("".concat(this.i18n.component,": ").concat(this.i18n.duplicated))}},imported:function(e){var t=this;if(Array.isArray(e)&&e.length){this.importResults=[];var n=[],i=[];e.forEach(function(e){var r=[],o=(null==e?void 0:e.components)||e;Array.isArray(null==e?void 0:e.globalClasses)&&(i=e.globalClasses),o.forEach(function(e){t.$_state.components.find(function(t){return t.id===e.id})||(n.unshift(e),r.push(e))}),t.importResults.push({text:"".concat(t.i18n.imported,": ").concat(r.length,"/").concat(o.length),type:r.length?"success":"info"})});var r=[];i.length&&i.forEach(function(e){t.$_getGlobalClass(e.id)||r.unshift(e)}),r=Array.from(new Set(r.map(function(e){return e.id}))).map(function(e){return r.find(function(t){return t.id===e})}),this.$_http({data:{action:"bricks_upgrade_components",components:n,globalClasses:i,newGlobalClasses:r},success:function(e){var n,i;Array.isArray(e.data.newComponents)&&e.data.newComponents.length&&((n=t.$_state.components).unshift.apply(n,DO(e.data.newComponents)),Array.isArray(r)&&r.length&&(i=t.$_state.globalClasses).unshift.apply(i,DO(r)))}})}},toggleComponentInfo:function(e){this.expandComponentId===e.cid?this.expandComponentId=null:this.expandComponentId=e.cid},addNewElement:function(e,t){this.$_isRightClick(t)||this.$_addNewElement(e,t)},componentInstancesCurrent:function(e){var t=this,n=this.$_dynamicElements.value.filter(function(t){return t.cid===e}),i=function(r){var o=t.$_getComponentById(r);null!=o&&o.elements&&o.elements.forEach(function(t){t.cid===e&&n.push(t),t.cid&&t.cid!==e&&i(t.cid)})};return this.$_dynamicElements.value.forEach(function(e){e.cid&&i(e.cid)}),n},componentInstancesTotal:function(e){var t,n=this.componentInstancesCurrent(e).length,i=0;return null!==(t=this.componentInstancesOtherPages)&&void 0!==t&&t[e]&&(i=Object.values(this.componentInstancesOtherPages[e]).reduce(function(e,t){return e+t.count},0)),n+i},searchForPaste:function(e){e.preventDefault(),this.$_pasteElements()},dragstart:function(e,t){if(this.userCanInsert){var n=e.target.cloneNode(!0);n.style.width="".concat(e.target.clientWidth,"px"),n.style.height="".concat(e.target.clientHeight,"px"),n.classList.add("ghost"),n.classList.add(this.bricks.mode),document.body.appendChild(n),e.dataTransfer.setDragImage(n,0,0),n.style.position="fixed",n.style.top="-1000%",e.dataTransfer.setData("elementName",t.name);var i=this.$_clone(t),r={id:this.$_generateId(),name:i.name,settings:{}};null!=i&&i.cid&&this.$_getComponentById(i.cid)&&(r.cid=i.cid),this.$_getGlobalElement(i)&&(r.global=i.global),null!=i&&i.template&&(r.template=i.template);var o=i.controls;for(var a in o)o[a].hasOwnProperty("default")&&(r.settings[a]=o[a].default);this.$_state.draggingId=null,this.$_state.draggingElement=r}},dragend:function(){this.$_state.draggingElement=!1},toggleCategory:function(e,t){if(!t.target.closest(".badge")){var n=this.hideCategories.indexOf(e);-1===n?this.hideCategories.push(e):this.hideCategories.splice(n,1)}},categoryClasses:function(e){return["category","category-".concat(e),{first:"post"===e&&"post"===this.$_state.postType}]},categoryText:function(e){if(e===this.categoryNameComponentSlots)return this.i18n.component;if(!this.$_state.templateType||"single"!==e)return this.i18n.hasOwnProperty(e)?this.i18n[e]:"string"==typeof e?e.replace("_"," "):e;switch(this.$_state.templateType){case"archive":case"author":case"error":case"search":return this.i18n[this.$_state.templateType];default:return this.i18n[e]}},deleteElement:function(e){var t;this.$_state.deleteItem?(null!=e&&e.cid?-1!==(t=this.$_state.components.findIndex(function(t){return t.id===e.cid}))&&this.$_state.components.splice(t,1):-1!==(t=this.$_state.globalElements.findIndex(function(t){return t.global===(null==e?void 0:e.global)||t.id===(null==e?void 0:e.id)}))&&this.$_state.globalElements.splice(t,1),this.$_state.deleteItem=null):this.$_deleteConfirmation((null==e?void 0:e.cid)||(null==e?void 0:e.global)||(null==e?void 0:e.id))},pinToggle:function(e){var t=this;this.searchFor="";var n=(null==e?void 0:e.global)||(null==e?void 0:e.name);if(null!=e&&e.cid&&(n="component-".concat(e.cid)),n){var i=this.$_state.pinnedElements.indexOf(n);-1===i?this.$_state.pinnedElements.push(n):this.$_state.pinnedElements.splice(i,1),this.animate=n,setTimeout(function(){t.animate=""},3e3);var r=document.getElementById("bricks-panel-inner");r&&r.scroll({top:0,behavior:"smooth"})}}},mounted:function(){var e=this;this.searchFor="",this.$refs.searchInput&&this.$refs.searchInput.focus(),window.addEventListener("keydown",function(t){if("Enter"===t.key){var n=t.target.dataset.elementName;if(n){t.preventDefault();var i={name:n},r=t.target.dataset.elementGlobal;if(r){i.global=r;var o=e.$_getGlobalElement(r);o&&o.hasOwnProperty("settings")&&(i.settings=e.$_clone(o.settings))}var a=e.$_getComponentById(t.target.dataset.componentId);a&&(i.cid=a.id),e.addNewElement({element:i,index:e.$_dynamicElements.value.length,parent:0},t)}}})},watch:{"$_state.permissions":function(){"elements"!==this.$_state.activePanel||this.$_userCanAddAnyElements()||this.$_showPanel()},"$_state.activePanel":function(e){var t=this;this.$nextTick(function(){t.hideInstances(),"elements"===e&&(t.searchFor="",t.$refs.searchInput&&t.$refs.searchInput.focus())})},"$_state.activePanelTab":function(e){var t=this;if(this.hideInstances(),this.action="","components"===e&&!this.componentInstancesOtherPages){var n=this.$_clone(this.$_state.components).map(function(e){return e.id});this.$_http({data:{action:"bricks_get_component_instances",componentIds:n},success:function(e){t.componentInstancesOtherPages=e.data}})}},searchFor:function(){this.searchFor&&(this.hideCategories=[])},componentsCount:function(e){0===e&&(this.action="")}}};var $O=(0,xx.A)(FO,[["render",function(e,t,n,i,r,o){var a=$r("icon"),s=$r("control-info"),l=$r("control-file-import"),c=Nr("clickaway");return Ta(),Ma("div",xI,[o.userCanInsert||e.$_userHasPermission("edit_components")?(Ta(),Ma("div",{key:0,id:"bricks-panel-header",class:te({searching:r.searchFor})},[Xn(qa("input",{id:"bricks-panel-search",ref:"searchInput",type:"search",autocomplete:"off",spellcheck:"false",placeholder:e.i18n.searchElements,onPaste:t[0]||(t[0]=function(e){return o.searchForPaste(e)}),"onUpdate:modelValue":t[1]||(t[1]=function(e){return r.searchFor=e})},null,40,SI),[[ac,r.searchFor]]),r.searchFor?(Ta(),La(a,{key:"close",name:"close",class:"close","data-balloon":e.i18n.clear,"data-balloon-pos":"bottom",onClick:t[3]||(t[3]=function(e){return r.searchFor=""})},null,8,["data-balloon"])):(Ta(),La(a,{key:"search",name:"search",class:"search",onClick:t[2]||(t[2]=function(t){return e.$refs.searchInput.focus()})}))],2)):Qa("",!0),o.userCanInsert?(Ta(),Ma("ul",EI,[o.canAccessElements?(Ta(),Ma("li",{key:0,class:te([{active:"components"!==e.$_state.activePanelTab}]),innerHTML:e.i18n.elements,onClick:t[4]||(t[4]=function(t){return e.$_state.activePanelTab="content"})},null,10,AI)):Qa("",!0),qa("li",{class:te([{active:"components"===e.$_state.activePanelTab,disabled:!o.canAccessComponents}]),"data-balloon-pos":"bottom","data-balloon":o.canAccessComponents?null:e.i18n.noPermission,onClick:t[5]||(t[5]=function(t){return o.canAccessComponents?e.$_state.activePanelTab="components":null})},[qa("span",{textContent:he(e.i18n.components)},null,8,TI)],10,DI)])):Qa("",!0),"components"===e.$_state.activePanelTab?(Ta(),Ma("div",II,[qa("ul",OI,[qa("li",{class:te(["docs"]),"data-balloon":e.i18n.learnMore,"data-balloon-pos":"bottom-right"},[qa("a",{href:e.bricks.academy.components,target:"_blank"},[Ha(a,{name:"info"})],8,FI)],8,PI),e.bricks.bricksComponentsInBlockEditor?(Ta(),Ma("li",{key:0,class:te(["block-editor",{active:"block-editor"===r.filter}]),"data-balloon":e.i18n.useInBlockEditor,"data-balloon-pos":"bottom-right",onClick:t[6]||(t[6]=bc(function(e){return r.filter="block-editor"===r.filter?"":"block-editor"},["stop"]))},[Ha(a,{name:"wordpress"})],10,$I)):Qa("",!0),e.$_userHasPermission("import_export_components")?(Ta(),Ma("li",{key:1,class:te(["import",{active:"import"===r.action}]),"data-balloon":e.i18n.import,"data-balloon-pos":"bottom-right",onClick:t[7]||(t[7]=bc(function(e){return r.action="import"===r.action?null:"import"},["stop"]))},[Ha(a,{name:"import"})],10,MI)):Qa("",!0),e.$_userHasPermission("import_export_components")&&o.componentsCount?(Ta(),Ma("li",{key:2,class:te(["export",{active:"export"===r.action}]),"data-balloon":"".concat(e.i18n.export," (").concat(e.i18n.all,")"),"data-balloon-pos":"bottom-right",onClick:t[8]||(t[8]=bc(function(e){return o.exportComponents()},["stop"]))},[Ha(a,{name:"export"})],10,LI)):Qa("",!0),e.$_userHasPermission("delete_components")&&o.componentsCount?(Ta(),Ma("li",{key:3,class:te(["delete",{active:"delete"===r.action}]),"data-balloon":e.i18n.delete,"data-balloon-pos":"bottom-right",onClick:t[9]||(t[9]=bc(function(e){return r.action="delete"===r.action?null:"delete"},["stop"]))},[Ha(a,{name:"trash"})],10,NI)):Qa("",!0)]),o.betaComponentIds.length?(Ta(),La(s,{key:0,class:"error",control:{content:"Components highlighted in red were created in Bricks 1.12-beta and are no longer supported. Please delete all of them."}})):Qa("",!0),e.$_userHasPermission("edit_components")&&"components"===e.$_state.activePanelTab&&"delete"===r.action&&o.componentsCount?(Ta(),Ma("div",jI,[Ha(s,{class:"error",control:{content:e.i18n.deleteComponentsInfo}},null,8,["control"]),qa("button",{class:"cancel",onClick:t[10]||(t[10]=function(e){return r.action=null}),textContent:he(e.i18n.cancel)},null,8,BI)])):Qa("",!0),"import"===r.action?(Ta(),Ma("div",RI,[qa("h2",{class:"title",textContent:he("".concat(e.i18n.import,": ").concat(e.i18n.components))},null,8,VI),Ha(l,{control:{fileType:"application/json",dragAndDropNote:e.i18n.dropFilesJSON},results:r.importResults,onImported:o.imported,onCloseMe:t[11]||(t[11]=function(e){return r.action=null})},null,8,["control","results","onImported"])])):Qa("",!0)])):Qa("",!0),"block-editor"===r.filter&&"components"===e.$_state.activePanelTab&&"all"===e.bricks.bricksComponentsInBlockEditor?(Ta(),La(s,{key:3,class:"info",control:{content:e.i18n.blockEditorAllComponentsEnabled}},null,8,["control"])):Qa("",!0),Object.keys(o.categories).length?(Ta(),Ma("ul",{key:4,id:"bricks-panel-elements-categories","data-tab":e.$_state.activePanelTab},[(Ta(!0),Ma(Ca,null,Rr(o.categories,function(n,l){var u;return Ta(),Ma("li",{class:te(o.categoryClasses(l)),key:l},[Xn(qa("div",{class:te(["category-title",{expand:!r.hideCategories.includes(l)}]),onClick:function(e){return o.toggleCategory(l,e)}},[qa("div",zI,[qa("span",{textContent:he(o.categoryText(l))},null,8,UI),["layout"].includes(l)?(Ta(),Ma("a",{key:0,class:"badge",target:"_blank",href:null===(u=e.bricks.academy)||void 0===u?void 0:u[l],"data-balloon":e.i18n.learnMore},[Ha(a,{name:"info"})],8,WI)):Qa("",!0)]),Ha(a,{name:r.hideCategories.includes(l)?"arrow-right":"arrow-down"},null,8,["name"])],10,HI),[[pl,l!==i.categoryNameSearchedElement||l===i.categoryNameGlobalElements]]),l===i.categoryNameGlobalElements?(Ta(),La(s,{key:0,class:"error deprecated",control:{content:e.i18n.globalElementDeprecatedInfo}},null,8,["control"])):Qa("",!0),Xn(qa("ul",GI,[(Ta(!0),Ma(Ca,null,Rr(n,function(n,s){var u,d,p;return Ta(),Ma("li",{key:"".concat(n.name,"-").concat(s),tabindex:"0",class:te([{"bricks-draggable-item":o.userCanInsert&&!e.$_state.draggingElement},"bricks-add-element",{animate:r.animate===n.name},{beta:o.betaComponentIds.includes(null==n?void 0:n.cid)}]),draggable:o.userCanInsert,onDragstart:function(e){return o.dragstart(e,n)},onDragend:function(e){return o.dragend(e,n)},"data-element-name":null==n?void 0:n.name,"data-element-global":null==n?void 0:n.global,"data-component-id":null==n?void 0:n.cid,onClick:bc(function(e){return o.addNewElement({element:n},e)},["stop"])},[qa("div",QI,[qa("div",{class:"handle element-icon",title:"components"===e.$_state.activePanelTab?n.name:null},[qa("i",{class:te(e.$_getElementIcon(n))},null,2)],8,YI),qa("div",JI,[qa("span",{class:"label",textContent:he(e.$_getElementLabel(n))},null,8,XI),"components"===e.$_state.activePanelTab&&null!=n&&n.cid?(Ta(),Ma("span",{key:0,class:te(["instances",{empty:!o.componentInstancesTotal(n)}]),title:"".concat(e.i18n.currentPage,"/").concat(e.i18n.global),innerHTML:0==o.componentInstancesTotal(null==n?void 0:n.cid)?e.i18n.noInstances:e.i18n.instances+": "+o.componentInstancesCurrent(null==n?void 0:n.cid).length+"/"+o.componentInstancesTotal(null==n?void 0:n.cid)},null,10,ZI)):Qa("",!0)]),qa("div",eO,[null!=n&&n.global&&l===i.categoryNamePinnedElements?(Ta(),Ma("span",{key:0,class:"bricks-panel-actions-icon global-pinned","data-balloon":e.i18n.globalElement,"data-balloon-pos":"top-left"},[Ha(a,{name:"globe"})],8,tO)):Qa("",!0),e.$_userHasPermission("delete_components")&&"components"===e.$_state.activePanelTab&&null!=n&&n.cid&&"delete"===r.action?(Ta(),Ma("span",{key:1,class:te(["bricks-panel-actions-icon","component",e.$_state.deleteItem===(null==n?void 0:n.cid)?"confirm":"delete"]),"data-balloon":e.$_state.deleteItem===(null==n?void 0:n.cid)?e.i18n.sure:e.i18n.delete,"data-balloon-pos":"top-right",onClick:bc(function(e){return o.deleteElement(n)},["stop"])},[Ha(a,{name:e.$_state.deleteItem===(null==n?void 0:n.cid)?"check":"trash"},null,8,["name"])],10,nO)):Qa("",!0),"components"===e.$_state.activePanelTab&&null!=n&&n.cid&&null!=n&&n.desc?(Ta(),Ma("span",{key:2,class:"bricks-panel-actions-icon component","data-balloon":e.i18n.description,"data-balloon-pos":"top-right",onClick:bc(function(e){return o.toggleComponentInfo(n)},["stop"])},[Ha(a,{name:"info"})],8,iO)):Qa("",!0),e.$_userHasPermission("import_export_components")&&"components"===e.$_state.activePanelTab&&null!=n&&n.cid?(Ta(),Ma("span",{key:3,class:"bricks-panel-actions-icon component","data-balloon":e.i18n.export,"data-balloon-pos":"top-right",onClick:bc(function(e){return o.exportComponents(n)},["stop"])},[Ha(a,{name:"export"})],8,rO)):Qa("",!0),e.$_userHasPermission("edit_components")&&"components"===e.$_state.activePanelTab&&null!=n&&n.cid?(Ta(),Ma("span",{key:4,class:"bricks-panel-actions-icon component","data-balloon":e.i18n.edit,"data-balloon-pos":"top-right",onClick:bc(function(t){return e.$_setActiveComponent(n)},["stop"])},[Ha(a,{name:"edit"})],8,oO)):Qa("",!0),e.$_userHasPermission("edit_components")&&"components"===e.$_state.activePanelTab&&null!=n&&n.cid?(Ta(),Ma("span",{key:5,class:"bricks-panel-actions-icon component","data-balloon":e.i18n.duplicate,"data-balloon-pos":"top-right",onClick:bc(function(e){return o.duplicateComponent(n)},["stop"])},[Ha(a,{name:"clone"})],8,aO)):Qa("",!0),e.$_userHasPermission("edit_components")&&"components"===e.$_state.activePanelTab&&null!=n&&n.cid?(Ta(),Ma("span",{key:6,class:te(["bricks-panel-actions-icon","component",{active:o.componentUsedInBlockEditor(n)},{confirm:r.blockEditorConfirmItem===(null==n?void 0:n.cid)}]),"data-balloon":r.blockEditorConfirmItem===(null==n?void 0:n.cid)?e.i18n.sure:e.i18n.useInBlockEditor,"data-balloon-pos":"top-right",onClick:bc(function(e){return o.useInBlockEditorToggle(n)},["stop"])},[Ha(a,{name:r.blockEditorConfirmItem===(null==n?void 0:n.cid)?"check":"wordpress"},null,8,["name"])],10,sO)):Qa("",!0),"components"===e.$_state.activePanelTab&&null!=n&&n.cid?(Ta(),Ma("span",{key:7,class:te(["bricks-panel-actions-icon","component",{active:(null===(u=r.showInstances)||void 0===u?void 0:u.cid)&&r.showInstances.cid===n.cid},{disabled:!o.componentInstancesTotal(null==n?void 0:n.cid)}]),"data-balloon":e.i18n.instances,"data-balloon-pos":"top-right",onClick:bc(function(e){return o.toggleShowInstances(n)},["stop"])},[Ha(a,{name:"globe"})],10,lO)):Qa("",!0),null!=n&&n.cid||null!=n&&n.global||"container"!==n.name?Qa("",!0):(Ta(),Ma("span",{key:8,class:"bricks-panel-actions-icon layout-inserter","data-balloon":e.i18n.layout,"data-balloon-pos":"top-left",onClick:t[12]||(t[12]=bc(function(t){return e.$_state.showContainerLayouts=!e.$_state.showContainerLayouts},["stop"]))},[Ha(a,{name:"columns"})],8,cO)),e.$_userHasPermission("pin_unpin_elements")&&n.category!==i.categoryNamePinnedElements&&"delete"!==r.action&&"slot"!==n.name?(Ta(),Ma("span",{key:9,class:"bricks-panel-actions-icon pin","data-balloon":e.i18n.pin,"data-balloon-pos":"top-right",onClick:bc(function(e){return o.pinToggle(n)},["stop"])},[Ha(a,{name:"pin"})],8,uO)):Qa("",!0),e.$_userHasPermission("pin_unpin_elements")&&n.category===i.categoryNamePinnedElements?(Ta(),Ma("span",{key:10,class:"bricks-panel-actions-icon pin","data-balloon":e.i18n.unpin,"data-balloon-pos":"top-right",onClick:bc(function(e){return o.pinToggle(n)},["stop"])},[Ha(a,{class:"strike-through",name:"pin"})],8,dO)):Qa("",!0),n.category===i.categoryNameGlobalElements?(Ta(),Ma("span",{key:11,class:te(["bricks-panel-actions-icon",e.$_state.deleteItem?"confirm":"delete"]),"data-balloon":e.$_state.deleteItem?e.i18n.sure:e.i18n.delete,onClick:bc(function(e){return o.deleteElement(n)},["stop"])},[Ha(a,{name:e.$_state.deleteItem?"check":"trash"},null,8,["name"])],10,pO)):Qa("",!0)])]),null!==(d=r.showInstances)&&void 0!==d&&d.cid&&r.showInstances.cid===(null==n?void 0:n.cid)?Xn((Ta(),Ma("div",{key:0,class:"show-instances",onClick:t[13]||(t[13]=bc(function(){},["stop"]))},[o.componentInstancesCurrent(n.cid).length?(Ta(),Ma("ul",hO,[qa("li",{class:"title",textContent:he(e.i18n.currentPage)},null,8,fO),(Ta(!0),Ma(Ca,null,Rr(o.componentInstancesCurrent(n.cid),function(e){return Ta(),Ma("li",{key:null==e?void 0:e.id,onClick:bc(function(t){return o.editInstance(e)},["stop"])},[t[14]||(t[14]=qa("i",{class:"ti-package"},null,-1)),qa("div",{class:"label",textContent:he((null==e?void 0:e.label)||(null==n?void 0:n.label))},null,8,gO)],8,mO)}),128))])):Qa("",!0),null!==(p=r.componentInstancesOtherPages)&&void 0!==p&&p[n.cid]?(Ta(),Ma("ul",vO,[qa("li",{class:"title",textContent:he(e.i18n.otherPages)},null,8,yO),(Ta(!0),Ma(Ca,null,Rr(r.componentInstancesOtherPages[n.cid],function(e,t){return Ta(),Ma("li",{key:t},[qa("a",{href:e.permalink,target:"_blank"},[qa("div",{class:"label",innerHTML:"".concat(e.post_title," (").concat(e.post_type,")")},null,8,kO),qa("div",{class:"count",textContent:he(e.count)},null,8,wO)],8,bO)])}),128))])):Qa("",!0)])),[[c,o.hideInstances]]):Qa("",!0),r.expandComponentId===n.cid&&null!=n&&n.desc?(Ta(),Ma("div",{key:1,class:"component-description",title:e.i18n.close,innerHTML:n.desc,onClick:bc(function(e){return o.toggleComponentInfo(n)},["stop"])},null,8,_O)):Qa("",!0)],42,KI)}),128))],512),[[pl,l===i.categoryNameSearchedElement||!r.hideCategories.includes(l)]])],2)}),128))],8,qI)):Qa("",!0),o.elements.length?Qa("",!0):(Ta(),Ma("div",CO,[Ha(a,{name:"no-results"}),qa("p",{textContent:he(e.i18n.nothingFound)},null,8,xO),"components"===e.$_state.activePanelTab?(Ta(),Ma("a",{key:0,href:e.bricks.academy.components,target:"_blank",class:"button",textContent:he("".concat(e.i18n.learnMore," (").concat(e.i18n.components,")"))},null,8,SO)):(Ta(),Ma("a",{key:1,href:e.bricks.academy.createElement,target:"_blank",class:"button",textContent:he(e.i18n.createYourOwnElements)},null,8,EO))])),o.userCanInsert||e.$_userHasPermission("edit_components")?Qa("",!0):(Ta(),La(s,{key:6,class:"no-cap",control:{content:e.i18n.infoAccessRequired,buttonText:e.i18n.learnMore,buttonLink:e.bricks.academy.capabilities}},null,8,["control"]))])}]]),MO={id:"bricks-panel-pages"},LO={id:"bricks-panel-header"},NO=["innerHTML"],jO={class:"panel-content"},BO=["data-balloon"],RO={class:"input-wrapper"},VO=["placeholder"],qO={class:"actions"},HO={key:0,class:"results"},zO=["href","title","onClick"],UO=["textContent"],WO=["innerHTML"],GO={class:"actions"},KO=["onClick","data-balloon"],QO={key:1,class:"no-results"},YO=["textContent"];var JO={data:function(){return{searchValue:void 0,currentPostType:"bricks_template"===this.$_state.postType?"page":this.$_state.postType,postsQueryResults:[]}},computed:{postTypesControl:function(){var e=this,t=this.bricks.postTypesSupported;return Object.keys(t).forEach(function(n){e.$_state.permissions.includes("access_builder_".concat(n))||delete t[n]}),{options:t,clearable:!1,default:this.$_state.postType}},pagesTitle:function(){var e=this.i18n.pages;return this.currentPostType&&this.bricks.postTypesSupported[this.currentPostType]&&(e=this.bricks.postTypesSupported[this.currentPostType]),this.postsQueryResults.length&&(e+=" (".concat(this.postsQueryResults.length,")")),e},currentResults:function(){var e=this;return this.searchValue?this.postsQueryResults.filter(function(t){return-1!==t.title.toLowerCase().indexOf(e.searchValue.toLowerCase())}):this.postsQueryResults}},methods:{clearInput:function(){this.searchValue=void 0,this.$refs.search&&this.$refs.search.focus()},handlePageClick:function(e,t){0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||window.bricksData.instantNavigation&&(e.preventDefault(),this.$_loadPage(t.id,t.editUrl))},getPages:function(){var e=this;this.$_http({method:"POST",data:{action:"bricks_get_pages",postType:this.currentPostType,imageSize:"medium",addLanguageToPostTitle:!0},success:function(t){e.postsQueryResults=t.data,e.$nextTick(function(){e.$refs.search&&e.$refs.search.focus()})}})},createNew:function(){var e=this;this.searchValue&&this.$_http({type:"POST",data:{action:"bricks_create_new_page",title:this.searchValue,postType:this.currentPostType},success:function(t){e.searchValue=void 0,e.$refs.search&&e.$refs.search.focus(),e.getPages()}})},duplicatePostPage:function(e){var t=this;this.$_http({type:"POST",data:{action:"bricks_duplicate_post_page",postId:e},success:function(e){if(!e.success)return console.log("Error: ".concat(e.data)),void(e.data.message&&alert(e.data.message));t.$_showMessage("".concat(t.i18n.duplicate,": ").concat(t.i18n.created)),t.searchValue=void 0,t.getPages()}})}},mounted:function(){this.getPages()},watch:{currentPostType:function(e,t){e!==t&&(this.searchValue=void 0,this.getPages())}}};var XO=(0,xx.A)(JO,[["render",function(e,t,n,i,r,o){var a=$r("control-select"),s=$r("icon");return Ta(),Ma("div",MO,[qa("div",LO,[qa("div",{class:"title",innerHTML:o.pagesTitle},null,8,NO)]),qa("main",jO,[qa("div",{"data-balloon":e.i18n.selectPostType,"data-balloon-pos":"bottom-right"},[Object.keys(o.postTypesControl).length?(Ta(),La(a,{key:0,value:r.currentPostType,"onUpdate:value":t[0]||(t[0]=function(e){return r.currentPostType=e}),control:o.postTypesControl},null,8,["value","control"])):Qa("",!0)],8,BO),qa("div",RO,[Xn(qa("input",{type:"search",ref:"search",autocomplete:"off",spellcheck:"false","onUpdate:modelValue":t[1]||(t[1]=function(e){return r.searchValue=e}),placeholder:"".concat(e.i18n.search," / ").concat(e.i18n.create)},null,8,VO),[[ac,r.searchValue]]),qa("div",qO,[Xn(Ha(s,{name:"close",class:"clear","data-balloon":e.i18n.clear,"data-balloon-pos":"bottom",tabindex:"0",onKeyup:t[2]||(t[2]=wc(function(e){return o.clearInput()},["enter"])),onClick:t[3]||(t[3]=function(e){return o.clearInput()})},null,8,["data-balloon"]),[[pl,r.searchValue]]),r.searchValue?(Ta(),La(s,{key:0,name:"save",class:"create","data-balloon":e.i18n.create,"data-balloon-pos":"bottom",tabindex:"0",onKeyup:t[4]||(t[4]=wc(function(e){return o.createNew()},["enter"])),onClick:t[5]||(t[5]=function(e){return o.createNew()})},null,8,["data-balloon"])):Qa("",!0)])]),t[6]||(t[6]=qa("hr",null,null,-1)),o.currentResults.length?(Ta(),Ma("ul",HO,[(Ta(!0),Ma(Ca,null,Rr(o.currentResults,function(t,n){return Ta(),Ma("li",{key:"".concat(null==t?void 0:t.id,"-").concat(n),class:te([{active:e.$_state.postId==t.id}])},[qa("a",{href:t.editUrl,title:"/".concat(t.slug),onClick:function(e){return o.handlePageClick(e,t)}},[e.$_state.postId==t.id?(Ta(),Ma("span",{key:0,class:"editing",textContent:he(e.i18n.editing)},null,8,UO)):Qa("",!0),qa("div",{class:"title",innerHTML:t.title},null,8,WO)],8,zO),qa("ul",GO,[qa("li",{class:"action",onClick:bc(function(e){return o.duplicatePostPage(t.id)},["stop"]),"data-balloon":e.i18n.duplicate,"data-balloon-pos":"top-right"},[Ha(s,{name:"clone"})],8,KO)])],2)}),128))])):(Ta(),Ma("div",QO,[Ha(s,{name:"no-results"}),qa("p",{textContent:he(e.i18n.nothingFound)},null,8,YO)]))])])}]]),ZO={id:"bricks-panel-history",class:"history"},eP={id:"bricks-panel-header"},tP=["innerHTML"],nP={key:0,class:"actions"},iP=["data-balloon"],rP={key:0,id:"bricks-panel-sticky"},oP={id:"bricks-panel-tabs"},aP=["onClick","innerHTML"],sP={class:"panel-content"},lP={key:0,class:"results"},cP=["onClick"],uP=["textContent"],dP=["textContent"];var pP={setup:function(){return{history:ln(Xh,"history"),historyIndex:ln(Xh,"historyIndex")}},methods:{goto:function(e){for(var t=this,n=Math.abs(e-this.historyIndex),i={},r=function(){if(e<t.historyIndex){var n=t.history[t.historyIndex];n&&(t.$_state.historyIndex--,Object.keys(n).forEach(function(e){t.$_state.hasOwnProperty(e)&&(i[e]=K_(i[e]||t.$_state[e],n[e]))}))}else{var r=t.history[t.historyIndex+1];r&&(t.$_state.historyIndex++,Object.keys(r).forEach(function(e){t.$_state.hasOwnProperty(e)&&(i[e]=Q_(i[e]||t.$_state[e],r[e]))}))}},o=0;o<n;o++)r();Object.keys(i).forEach(function(e){t.$_state.historyInProgress=Date.now(),t.$_state.hasOwnProperty(e)&&(t.$_state[e]=i[e])}),this.$nextTick(function(){return t.$_state.historyInProgress=!1})},deleteHistory:function(){this.history.length>1&&(this.$_state.historyIndex=0,this.$_state.history=[],this.$_showMessage(this.i18n.historyDeleted))}}};var hP=(0,xx.A)(pP,[["render",function(e,t,n,i,r,o){var a=$r("icon");return Ta(),Ma("div",ZO,[qa("div",eP,[qa("div",{class:"title",innerHTML:"".concat(e.i18n.history," (").concat(i.history.length,")")},null,8,tP),i.history.length>1?(Ta(),Ma("ul",nP,[qa("li",{"data-balloon":e.i18n.delete,"data-balloon-pos":"bottom-right"},["deleteHistory"===e.$_state.deleteItem?(Ta(),La(a,{key:"check",name:"check",onClick:t[0]||(t[0]=bc(function(e){return o.deleteHistory()},["stop"]))})):(Ta(),La(a,{key:"trash",name:"trash",onClick:t[1]||(t[1]=bc(function(t){return e.$_deleteConfirmation("deleteHistory")},["stop"]))}))],8,iP)])):Qa("",!0)]),e.$_userHasPermission("access_revisions")?(Ta(),Ma("div",rP,[qa("ul",oP,[(Ta(),Ma(Ca,null,Rr(["history","revisions"],function(t,n){return qa("li",{key:n,class:te({active:t===e.$_state.activePanel}),onClick:function(n){return e.$_showPanel({panel:t})},innerHTML:e.i18n[t]},null,10,aP)}),64))])])):Qa("",!0),qa("main",sP,[i.history.length?(Ta(),Ma("ul",lP,[(Ta(!0),Ma(Ca,null,Rr(i.history,function(t,n){return Ta(),Ma("li",{key:n,class:te(["snapshot","history-index-".concat(n),{active:n===i.historyIndex}]),onClick:function(e){return o.goto(n)}},[qa("span",{class:"snapshot-label",textContent:he(e.i18n[t._label]||t._label)},null,8,uP),t._action?(Ta(),Ma("span",{key:0,class:"snapshot-action",textContent:he(e.i18n[t._action])},null,8,dP)):Qa("",!0)],10,cP)}),128))])):Qa("",!0)])])}]]),fP={id:"bricks-panel-history",class:"revisions"},mP={id:"bricks-panel-header"},gP=["innerHTML"],vP={key:0,class:"actions"},yP=["data-balloon"],bP={id:"bricks-panel-sticky"},kP={id:"bricks-panel-tabs"},wP=["onClick","innerHTML"],_P={class:"panel-content"},CP={class:"button-group"},xP=["textContent","disabled"],SP=["disabled","textContent"],EP={key:0,class:"results"},AP=["onClick"],DP=["src","alt"],TP={class:"data"},IP=["textContent","data-balloon"],OP=["innerHTML"],PP={key:0,class:"action"},FP={key:1,class:"no-results"},$P=["textContent"];var MP={setup:function(){return{revisions:ln(Xh,"revisions"),revisionId:ln(Xh,"revisionId"),currentRevisionId:ln(Xh,"currentRevisionId"),revisionData:ln(Xh,"revisionData")}},methods:{discardRevision:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.revisionId&&e&&this.$_showMessage(this.i18n.revisionDiscarded),this.revisionData=null,this.revisionId=null},deleteRevisions:function(){var e=this;this.discardRevision(),this.$nextTick(function(){e.$_http({data:{action:"bricks_delete_all_revisions_of_post_id",postId:e.$_state.postId},success:function(t){e.revisionId="",e.revisions=Array.isArray(t.data.revisions)?t.data.revisions:[],t.data.revisions.length||e.$_showMessage(e.i18n.revisionsDeleted)}})})},getRevisionTitle:function(e){var t;return t="autosave"===e.type?this.i18n.autosaveBy:e.id===this.currentRevisionId?this.i18n.currentVersionBy:this.i18n.revisionBy,t+=" "+e.author},deleteRevision:function(e){var t=this;this.$_http({data:{action:"bricks_delete_revision",revisionId:e},success:function(e){t.$_state.revisionId="",t.$_state.revisions=e.data}}),this.$_showMessage("".concat(this.i18n.revisionDeleted," (").concat(e,")"))}},mounted:function(){this.$_getRevisions()}};const LP=(0,xx.A)(MP,[["render",function(e,t,n,i,r,o){var a=$r("icon"),s=$r("control-info");return Ta(),Ma("div",fP,[qa("div",mP,[qa("div",{class:"title",innerHTML:"".concat(e.i18n.revisions," (").concat(i.revisions.length,")")},null,8,gP),e.$_userHasPermission("delete_revisions")&&i.revisions.length?(Ta(),Ma("ul",vP,[qa("li",{"data-balloon":e.i18n.delete,"data-balloon-pos":"bottom-right"},["deleteAllRevisions"===e.$_state.deleteItem?(Ta(),La(a,{key:"check",name:"check",onClick:t[0]||(t[0]=bc(function(e){return o.deleteRevisions()},["stop"]))})):(Ta(),La(a,{key:"trash",name:"trash",onClick:t[1]||(t[1]=bc(function(t){return e.$_deleteConfirmation("deleteAllRevisions")},["stop"]))}))],8,yP)])):Qa("",!0)]),qa("div",bP,[qa("ul",kP,[(Ta(),Ma(Ca,null,Rr(["history","revisions"],function(t,n){return qa("li",{key:n,class:te({active:t===e.$_state.activePanel}),onClick:function(n){return e.$_showPanel({panel:t})},innerHTML:e.i18n[t]},null,10,wP)}),64))])]),qa("main",_P,[Ha(s,{control:{content:e.i18n.panelRevisionsInfo}},null,8,["control"]),qa("div",CP,[qa("button",{class:"cancel",onClick:t[2]||(t[2]=function(){return o.discardRevision&&o.discardRevision.apply(o,arguments)}),textContent:he(e.i18n.discard),disabled:!i.revisionId||!i.revisionData},null,8,xP),qa("button",{class:te(["apply",{active:i.revisionId&&i.revisionData}]),disabled:!i.revisionId||!i.revisionData,onClick:t[3]||(t[3]=function(t){return e.$_revisionApply()}),textContent:he(e.i18n.apply)},null,10,SP)]),i.revisions.length?(Ta(),Ma("ul",EP,[(Ta(!0),Ma(Ca,null,Rr(i.revisions,function(t,n){return Ta(),Ma("li",{key:n,class:te(["revision-id-".concat(t.id),{active:t.id===i.revisionId},{active:t.id===i.currentRevisionId&&!i.revisionId&&!i.revisionData}]),onClick:function(n){return e.$_revisionPreview(t.id)}},[qa("img",{class:"avatar",src:t.avatar,alt:t.author},null,8,DP),qa("div",TP,[qa("div",{class:"date",textContent:he(t.humanDate),"data-balloon":t.date},null,8,IP),qa("div",{class:"title",innerHTML:o.getRevisionTitle(t)},null,8,OP)]),e.$_userHasPermission("delete_revisions")&&t.id!==i.revisionId?(Ta(),Ma("div",PP,[e.$_state.deleteItem===t.id?(Ta(),La(a,{name:"check",key:"check",onClick:bc(function(e){return o.deleteRevision(t.id)},["stop"]),class:"bricks-panel-actions-icon confirm"},null,8,["onClick"])):(Ta(),La(a,{name:"trash",key:"trash",onClick:bc(function(n){return e.$_deleteConfirmation(t.id)},["stop"]),class:"bricks-panel-actions-icon delete"},null,8,["onClick"]))])):Qa("",!0)],10,AP)}),128))])):(Ta(),Ma("div",FP,[Ha(a,{name:"no-results"}),qa("p",{textContent:he(e.i18n.nothingFound)},null,8,$P)]))])])}]]);var NP=LP;function jP(e){return function(e){if(Array.isArray(e))return BP(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return BP(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?BP(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function BP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var RP={id:"bricks-panel-settings"},VP={id:"bricks-panel-header"},qP=["innerHTML"],HP={key:0,class:"bricks-panel-controls"},zP={class:"control-groups"},UP=["onClick"],WP={class:"control-group-title"},GP=["textContent"],KP={key:1,class:"has-setting disabled"},QP={class:"control-group-title"},YP=["textContent"],JP={class:"control-groups"},XP={key:0,class:"control-group"},ZP=["textContent"],eF={key:1,class:"control-group"},tF=["textContent"],nF={key:2,class:"control-group"},iF=["textContent"],rF={key:3,class:"control-group"},oF=["textContent"],aF={class:"control-groups"},sF={class:"control-group-title"},lF=["textContent"],cF={class:"control-group-title"},uF=["textContent"];var dF={computed:{settingsGroups:function(){var e={};return this.$_userHasPermission("access_theme_styles")&&(e["theme-styles"]={title:this.i18n.themeStyles,icon:"design-palette"}),this.$_userHasPermission("access_page_settings")&&(e["settings-page"]={title:this.i18n.pageSettings,icon:"page"}),"bricks_template"===this.$_state.postType&&this.$_userHasPermission("access_template_settings")&&(e["settings-template"]={title:this.i18n.templateSettings,icon:"settings"}),e}},methods:{showPanel:function(e){var t=this;"theme-styles"===e?(this.$_state.popup="styles",this.$nextTick(function(){t.$_state.popupTab="theme-styles"})):this.$_showPanel({panel:e})},hasSettings:function(e){return"theme-styles"===e?Object.keys(this.$_state.themeStyleSettings).length>1:"settings-page"===e?Object.keys(this.$_state.pageSettings).length:"settings-template"===e?Object.keys(this.$_state.templateSettings).length:void 0},openQueryManager:function(){this.$_state.popup="queries"},openInCurrentTab:function(e){window.location.href=e},openInNewTab:function(e){window.open(e,"_blank")}}};const pF=(0,xx.A)(dF,[["render",function(e,t,n,i,r,o){var a=this,s=$r("icon"),l=$r("panel-control");return Ta(),Ma("div",RP,[qa("div",VP,[qa("div",{class:"title",innerHTML:e.i18n.settings},null,8,qP)]),e.$_userHasPermission("access_page_settings")||e.$_userHasPermission("access_template_settings")||e.$_userHasPermission("access_theme_styles")||e.$_userHasPermission("access_revisions")||e.$_userHasPermission("access_font_manager")||e.$_userHasPermission("access_icon_manager")?(Ta(),Ma("div",HP,[qa("ul",zP,[(Ta(!0),Ma(Ca,null,Rr(o.settingsGroups,function(e,n){return Ta(),Ma("li",{class:"control-group",key:n,onClick:function(e){return o.showPanel(n)}},[qa("div",WP,[e.icon?(Ta(),La(s,{key:0,name:e.icon,class:"icon"},null,8,["name"])):Qa("",!0),qa("span",{textContent:he(e.title)},null,8,GP),o.hasSettings(n)?(Ta(),Ma("span",KP,jP(t[7]||(t[7]=[qa("span",{class:"indicator"},null,-1)])))):Qa("",!0)])],8,UP)}),128)),qa("li",{class:"control-group",onClick:t[0]||(t[0]=function(e){return a.$_showPanel({panel:"history"})})},[qa("div",QP,[Ha(s,{name:"revision",class:"icon"}),qa("span",{textContent:he(e.$_userHasPermission("access_revisions")?"".concat(e.i18n.history," / ").concat(e.i18n.revisions):e.i18n.history)},null,8,YP)])])]),qa("ul",JP,[e.$_hasStyleManagerAccess()?(Ta(),Ma("li",XP,[qa("div",{class:"control-group-title",onClick:t[1]||(t[1]=function(t){return e.$_state.popup="styles"})},[Ha(s,{name:"css3",class:"icon"}),qa("span",{textContent:he(e.i18n.styleManager)},null,8,ZP)])])):Qa("",!0),e.$_userHasPermission("access_font_manager")?(Ta(),Ma("li",eF,[qa("div",{class:"control-group-title",onClick:t[2]||(t[2]=function(t){return e.$_state.popup="fonts"})},[Ha(s,{name:"tab-typography",class:"icon"}),qa("span",{textContent:he(e.i18n.fontManager)},null,8,tF)])])):Qa("",!0),e.$_userHasPermission("access_icon_manager")?(Ta(),Ma("li",nF,[qa("div",{class:"control-group-title",onClick:t[3]||(t[3]=function(t){return e.$_state.popup="icons"})},[Ha(s,{name:"tab-layout",class:"icon"}),qa("span",{textContent:he(e.i18n.iconManager)},null,8,iF)])])):Qa("",!0),e.$_userHasPermission("access_query_manager")?(Ta(),Ma("li",rF,[qa("div",{class:"control-group-title",onClick:t[4]||(t[4]=function(e){return o.openQueryManager()})},[Ha(s,{name:"loop",class:"icon"}),qa("span",{textContent:he(e.i18n.queryManager)},null,8,oF)])])):Qa("",!0)]),qa("ul",aF,[e.bricks.canManageOptions?(Ta(),Ma("li",{key:0,class:"control-group",onClick:t[5]||(t[5]=function(t){return o.openInNewTab(e.bricks.settingsUrl)})},[qa("div",sF,[Ha(s,{name:"wordpress",class:"icon"}),qa("span",{textContent:he("Bricks > ".concat(e.i18n.settings))},null,8,lF)])])):Qa("",!0),e.bricks.canManageOptions?(Ta(),Ma("li",{key:1,class:"control-group",onClick:t[6]||(t[6]=function(t){return o.openInNewTab(e.bricks.elementsManagerUrl)})},[qa("div",cF,[Ha(s,{name:"wordpress",class:"icon"}),qa("span",{textContent:he("Bricks > ".concat(e.i18n.elementManager))},null,8,uF)])])):Qa("",!0)])])):(Ta(),La(l,{key:1,class:"no-full-acess info",controlKey:"_settingsInfo",control:{type:"info",content:this.i18n.infoAccessRequired,buttonText:e.i18n.learnMore,buttonLink:e.bricks.academy.capabilities}},null,8,["control"]))])}]]);var hF=pF;var fF=["id"],mF={id:"bricks-panel-header"},gF=["innerHTML"],vF={class:"actions"},yF=["data-balloon"],bF=["data-balloon"];var kF={components:{PanelControlsSearch:XT},props:{settingType:{type:String,required:!0}},computed:{block:function(){var e=this.$_clone(this.$_state.controls.settings[this.settingType]);return e.id=this.settingType,e.settings=this.$_state["".concat(this.settingType,"Settings")],e},settings:function(){return this.block.settings},title:function(){switch(this.settingType){case"page":return this.i18n.pageSettings;case"template":return this.i18n.templateSettings}}},methods:{resetSettings:function(e){switch(this.$_state.deleteItem=null,e){case"page":this.$_showMessage("".concat(this.i18n.page," ").concat(this.i18n.settingsResetted)),this.$_state.pageSettings={};break;case"template":this.$_showMessage("".concat(this.i18n.template," ").concat(this.i18n.settingsResetted)),this.$_state.templateSettings={}}}}};const wF=(0,xx.A)(kF,[["render",function(e,t,n,i,r,o){var a=$r("icon"),s=$r("control-info"),l=$r("panel-controls-search"),c=$r("panel-controls");return Ta(),Ma("div",{id:["bricks-panel-settings-".concat(n.settingType)]},[qa("div",mF,[qa("div",{class:"title",innerHTML:o.title},null,8,gF),qa("ul",vF,[e.$_state.deleteItem===n.settingType?(Ta(),Ma("li",{key:0,"data-balloon":e.i18n.sure,"data-balloon-pos":"bottom-right",onClick:t[0]||(t[0]=bc(function(e){return o.resetSettings(n.settingType)},["stop"]))},[Ha(a,{name:"check"})],8,yF)):(Ta(),Ma("li",{key:1,"data-balloon":e.i18n.reset,"data-balloon-pos":"bottom-right",onClick:t[1]||(t[1]=bc(function(t){return e.$_deleteConfirmation(n.settingType)},["stop"]))},[Ha(a,{name:"refresh"})],8,bF))])]),"template"!==n.settingType||"header"!==e.$_state.templateType&&"footer"!==e.$_state.templateType?Qa("",!0):(Ta(),La(s,{key:0,control:{content:e.bricks.defaultTemplatesDisabled?e.i18n.defaultTemplatesDisabled:e.i18n.defaultTemplatesEnabled}},null,8,["control"])),Ha(l),Ha(c,{type:n.settingType,block:o.block,settings:o.settings},null,8,["type","block","settings"])],8,fF)}]]);var _F={components:{PanelSettingsBase:wF}};var CF={components:{PanelSettingsBase:wF}};function xF(e){return xF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xF(e)}function SF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function EF(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=xF(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=xF(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==xF(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var AF={setup:function(){var e,t,n=d_.generateId();window.bricksData.debug.includes("localstorage")&&console.info("windowId",n),window.addEventListener("focus",function(e){window.bricksData.debug.includes("localstorage")&&console.warn("windowId:focus",n),localStorage.setItem("brx_active_window",n)}),window.addEventListener("storage",function(t){var n;if(t.key.startsWith("brx_state_")){var i=t.newValue&&(null===(n=JSON.parse(t.newValue))||void 0===n?void 0:n.siteUrl);i&&i!==window.bricksData.siteUrl||(clearTimeout(e),e=setTimeout(function(){var e,n,i=t.key.replace("brx_state_","");if(Xh.hasOwnProperty(i)){var r=null===(e=JSON.parse(t.newValue))||void 0===e?void 0:e.value;Xh.messageOrigin="main",Xh.isBroadcasting=Date.now(),window.bricksData.debug.includes("localstorage")&&console.warn("watch:localStorage",i,r),Xh[i]=r,"themeStyles"===i&&null!==(n=Xh.themeStyles)&&void 0!==n&&null!==(n=n[Xh.themeStyleActiveId])&&void 0!==n&&n.settings?Xh.themeStyleSettings=Xh.themeStyles[Xh.themeStyleActiveId].settings:"globalElements"===i&&Fn(function(){return d_.forceRender(0)}),Fn(function(){d_.rerenderControls()})}},400))}});["breakpoints","colorPalette","components","globalClasses","globalClassesLocked","globalElements","globalVariables","globalQueries","globalQueriesCategories","pinnedElements","pseudoClasses","themeStyles"].forEach(function(e){li(function(){return Xh[e]},function(i){Fn(function(){if(Xh.iframeLoaded){if(Xh.isBroadcasting)return window.bricksData.debug.includes("isBroadcasting")&&console.warn("watch:isBroadcasting",e,Xh[e]),void(Xh.isBroadcasting=!1);var r=localStorage.getItem("brx_active_window");r&&r!==n||(clearTimeout(t),t=setTimeout(function(){window.bricksData.debug.includes("localstorage")&&console.info("set:localStorage",e,i);var t={value:i,siteUrl:window.bricksData.siteUrl};localStorage.setItem("brx_state_".concat(e),JSON.stringify(t))},400))}})},{deep:!0})})},components:{PanelElement:CI,PanelElements:$O,PanelPages:XO,PanelHistory:hP,PanelRevisions:NP,PanelSettings:hF,PanelSettingsPage:(0,xx.A)(_F,[["render",function(e,t,n,i,r,o){var a=$r("panel-settings-base");return Ta(),La(a,{settingType:"page"})}]]),PanelSettingsTemplate:(0,xx.A)(CF,[["render",function(e,t,n,i,r,o){var a=$r("panel-settings-base");return Ta(),La(a,{settingType:"template"})}]])},data:function(){return{panelWidth:this.$_state.panelWidth,panelWidthNew:void 0,minimizePanel:!1,showMinimize:!1,mouseX:void 0}},computed:{classes:function(){return["bricks-panel",this.$_state.isResizing?"is-resizing":null,this.$_state.isPreviewing?"hide":null,this.minimizePanel?"minimize":null]},globalClassIds:function(){return Object.keys(this.$_state.globalClassIndexById)},globalClassIdString:function(){return this.$_state.globalClasses.map(function(e){return e.id}).join(":")},globalSettingsCustomCssRootVariables:function(){var e,t=null===(e=this.$_state.globalSettings)||void 0===e?void 0:e.customCss;if(t){var n=t.match(/:root\s*{([^}]*)}/);if(n&&n[0])return n[0]}}},methods:{startResizingPanel:function(e){"bricks-panel-resizable"===e.target.id&&(this.mouseX=e.clientX,this.$_state.isResizing="panel")},resizingPanel:function(e){if("panel"===this.$_state.isResizing){var t=e.clientX-this.mouseX;this.bricks.isRtl&&(t=-t),this.panelWidthNew=this.$_state.panelWidth+t,this.panelWidthNew<240&&(this.panelWidthNew=240),this.panelWidthNew>600&&(this.panelWidthNew=600),this.$el.style.width="".concat(this.panelWidthNew,"px")}},stopResizingPanel:function(){"panel"===this.$_state.isResizing&&(this.$_state.isResizing=!1,this.$_state.panelWidth=this.panelWidthNew,localStorage.setItem("brx_builder_panel_width",this.panelWidthNew),this.$_http({data:{action:"bricks_save_panel_width",panelWidth:this.panelWidthNew,type:"control"}}))}},created:function(){var e=this,t=localStorage.getItem("brx_builder_panel_width");t>=240&&t<=600&&(this.$_state.panelWidth=parseInt(t)),window.addEventListener("mousedown",function(t){0==t.button&&e.startResizingPanel(t)}),window.addEventListener("mousemove",function(t){e.resizingPanel(t)}),window.addEventListener("mouseup",function(t){e.stopResizingPanel(t)}),document.addEventListener("visibilitychange",function(){document.hidden&&e.$_state.activeClass&&e.$_saveActiveClass(e.$_state.activeClass)})},watch:{globalClassIds:function(e,t){var n=this;if(this.$_state.iframeLoaded)if(e.length>t.length)e.filter(function(e){return!t.includes(e)}).forEach(function(e){n.$_state.globalChanges.added.includes(e)||n.$_state.globalChanges.added.push(e)});else if(e.length<t.length){t.filter(function(t){return!e.includes(t)}).forEach(function(e){n.$_state.globalChanges.deleted.includes(e)||n.$_state.globalChanges.deleted.push(e)})}},globalClassIdString:function(){var e=this;this.$_state.globalClasses.forEach(function(t,n){e.$_state.globalClassIndexById[t.id]=n})},"$_state.activeClass":{handler:function(e,t){var n=this;if((!e&&t||e&&t&&e.id!==t.id)&&this.$_saveActiveClass(t),"main"===this.$_state.messageOrigin&&!this.$_state.isSaving&&null!=e&&e.id&&null!=t&&t.id&&e.id===t.id&&!this.$_state.globalChanges.modified.includes(e.id)){if(this.$_state.skipNextActiveClassDirty)return void(this.$_state.skipNextActiveClassDirty=!1);this.$_state.globalChanges.modified.push(e.id),this.$_state.unsavedChanges.includes("activeClass")||this.$_state.unsavedChanges.push("activeClass")}if(null!=e&&e.id&&null!=t&&t.id&&e.id===t.id&&!this.$_state.historyInProgress&&!this.$_state.isBroadcasting){var i=this.$_clone(e);this.$_debounce("saveActiveClass:".concat(e.id),function(){return n.$_saveActiveClass(i)},50)}},deep:!0},"$_state.activeClass.id":function(e){this.$_state.cssPreviewOnHover="",this.$_state.activeClassIsLocked=e&&this.$_state.globalClassesLocked.includes(e)},"$_state.activeId":{handler:function(e){e?this.$_autoExpandCollapsePanel():(this.$_state.highlightId=!1,this.$_state.activeVirtualSlot=null),this.$_state.activeClass="",this.$_state.pseudoClassActive="",this.$_state.isInlineEditing=!1,this.$_state.showHideElement=!1,this.$_state.cssPreviewOnHover="",this.$_clearSearchControls(),this.$_setActiveElement()}},"$_state.activeComponent":{handler:function(e,t){this.$_updateActiveComponent(e,t),(null==e?void 0:e.id)!==(null==t?void 0:t.id)&&(this.$_state.showConditions=!1),null!=e&&e.id&&null!=t&&t.id&&e.id===t.id&&JSON.stringify(e)!==JSON.stringify(t)&&(this.$_state.unsavedChanges.includes("components")||this.$_state.unsavedChanges.push("components"))},deep:!0},"$_state.activeElement":{handler:function(e,t){this.$_updateActiveElement(e,t)},deep:!0},"$_state.activePanel":{handler:function(){var e=this;this.$_revisionApply(),this.$_state.cssPreviewOnHover="",this.$_state.activeClass="",this.$_state.pseudoClassActive="",this.$_state.isInlineEditing=!1,this.$_autoExpandCollapsePanel(),this.$nextTick(function(){"element"!==e.$_state.activePanel&&(e.$_state.activeClassIsLocked=!1),e.$refs.scrollbar.scrollTop=0,"components"===e.$_state.activePanelTab&&"element"===e.$_state.activePanel&&e.$_userCanAddAnyElements()&&(e.$_state.activePanelTab="content")})}},"$_state.activePanelGroup":{handler:function(){this.$_autoExpandCollapsePanel()}},"$_state.activePanelTab":{handler:function(){this.$_autoExpandCollapsePanel(),this.$_state.cssPreviewOnHover="",this.$_state.showConditions=!1}},"$_state.themeStyleActiveId":{handler:function(e){var t;e&&null!==(t=this.$_state.themeStyles)&&void 0!==t&&null!==(t=t[e])&&void 0!==t&&t.settings&&(this.$_state.themeStyleSettings=this.$_state.themeStyles[e].settings)}},"$_state.mode":{handler:function(){this.$_state.colorPaletteInlineCssVars=this.$_generateCss("colorPalette")},immediate:!1},"$_state.colorPalette":{handler:function(){this.$_state.colorPaletteInlineCssVars=this.$_generateCss("colorPalette")},deep:!0},"$_state.globalVariables":{handler:function(){this.$_state.globalVariablesInlineCssVars=this.$_generateCss("globalVariables")},deep:!0},"$_state.dynamicData":{handler:function(){this.$_state.colorPaletteInlineCssVars=this.$_generateCss("colorPalette")},deep:!0},"$_state.historyInProgress":function(e){var t=this;if(!e){var n,i=null===(n=this.$_state.activeClass)||void 0===n?void 0:n.id,r=null;if(i){var o=this.$_state.globalClassIndexById[i],a=void 0!==o?this.$_state.globalClasses[o]:null;r=(null==a?void 0:a.id)===i?a:this.$_state.globalClasses.find(function(e){return(null==e?void 0:e.id)===i})}this.$_state.activeClass=r?this.$_clone(r):null,this.$nextTick(function(){t.$_state.colorPaletteInlineCssVars=t.$_generateCss("colorPalette"),t.$_rerenderControls()})}},"$_state.scrollToPanelTop":{handler:function(){this.$refs.scrollbar.scroll({top:0,behavior:"smooth"})}},"$_state.isPanelExpanded":{handler:function(e){var t=this;if(e){var n=.4*document.body.clientWidth;n>600&&(n=600),this.$_state.panelWidth=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SF(Object(n),!0).forEach(function(t){EF(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},this.$_state.panelWidth),this.$nextTick(function(){t.$_state.panelWidth=n})}else this.$_state.panelWidth=this.panelWidth}},"$_state.panelWidth":{handler:function(e){this.$_state.isPanelExpanded||(this.panelWidth=e)}},"$_state.pageSettings":{handler:function(e){window.bricksData.pageSettings=e},deep:!0,immediate:!0},"$_state.templateSettings":{handler:function(e){window.bricksData.templateSettings=e},deep:!0,immediate:!0}}};var DF=(0,xx.A)(AF,[["render",function(e,t,n,i,r,o){var a=$r("icon");return Xn((Ta(),Ma("div",{id:"bricks-panel",class:te(o.classes),style:Y({width:"".concat(e.$_state.panelWidth,"px")})},[qa("div",{id:"bricks-panel-resizable",onMouseenter:t[0]||(t[0]=function(e){return r.showMinimize=!0}),onMouseleave:t[1]||(t[1]=function(e){return r.showMinimize=!1})},null,32),Xn(Ha(a,{name:"arrow-left",id:"bricks-panel-toggle",class:te({minimized:r.minimizePanel}),onMouseenter:t[2]||(t[2]=function(e){return r.showMinimize=!0}),onMouseleave:t[3]||(t[3]=function(e){return r.showMinimize=!1}),onClick:t[4]||(t[4]=function(e){return r.minimizePanel=!r.minimizePanel})},null,8,["class"]),[[pl,r.showMinimize||r.minimizePanel]]),qa("div",MS,[["elements","element"].includes(e.$_state.activePanel)?Qa("",!0):(Ta(),La(Lr("panel-".concat(e.$_state.activePanel)),{key:0})),Xn((Ta(),La(Lr("panel-elements"),null,null,512)),[[pl,"elements"===e.$_state.activePanel]]),Xn((Ta(),La(Lr("panel-element"),null,null,512)),[[pl,"element"===e.$_state.activePanel]])],512),(Ta(),La(Lr("style"),{id:"bricks-inline-css-variables",textContent:he(e.$_state.globalVariablesInlineCssVars)},null,8,["textContent"])),o.globalSettingsCustomCssRootVariables?(Ta(),La(Lr("style"),{key:0,id:"bricks-inline-css-global-custom-css-root-variables",textContent:he(o.globalSettingsCustomCssRootVariables)},null,8,["textContent"])):Qa("",!0),(Ta(),La(Lr("style"),{id:"bricks-inline-css-color-palettes",textContent:he(e.$_state.colorPaletteInlineCssVars)},null,8,["textContent"]))],6)),[[pl,e.$_state.iframeLoaded&&!e.$_state.isPreviewing]])}]]),TF=["src"];var IF=["innerHTML"],OF=["innerHTML"];var PF={setup:function(){return{notification:ln(Xh,"notification")}},data:function(){return{templateBundle:!1}},computed:{description:function(){return"autosave"===this.notification?this.i18n.notifications.autosave.description:"svgBlockImport"===this.notification?this.i18n.notifications.svg.description:this.templateBundle&&this.bricks.themeStyles.hasOwnProperty(this.templateBundle)?this.$_stringReplace(this.i18n.notifications.templateBundle.description,[this.bricks.themeStyles[this.templateBundle].label]):void 0},buttonText:function(){switch(this.notification){case"autosave":return this.i18n.notifications.autosave.button;case"svgBlockImport":return this.i18n.gotIt;case"populateContent":return this.i18n.notifications.populateContent.button}if(this.templateBundle)return this.$_stringReplace(this.i18n.notifications.templateBundle.button,[this.bricks.themeStyles[this.templateBundle].label])}},methods:{runAction:function(){switch(this.notification){case"autosave":this.close(),this.$_showPanel({panel:"revisions"}),this.$_revisionPreview(this.$_state.revisions[0].id);break;case"svgBlockImport":this.close();break;case"populateContent":this.$_showPanel({panel:"settings-template",group:"template-preview"}),this.close()}this.templateBundle&&(this.$_showPanel({panel:"themeStyles"}),this.$_state.themeStyleActiveId=this.templateBundle,this.close())},close:function(){this.notification=!1}},watch:{notification:function(e){if(e&&-1!==e.indexOf("selectTemplateBundle")){var t=e.split(":");this.templateBundle=!!t.length&&t[1]}else this.templateBundle=!1}}};const FF=(0,xx.A)(PF,[["render",function(e,t,n,i,r,o){var a=$r("icon");return Ta(),Ma("div",{id:"bricks-notification",class:te([i.notification,{show:o.description}])},[qa("div",{class:"description",innerHTML:o.description},null,8,IF),Xn(qa("button",{class:"action",onClick:t[0]||(t[0]=function(e){return o.runAction()}),innerHTML:o.buttonText},null,8,OF),[[pl,o.buttonText]]),qa("button",{class:"close",onClick:t[1]||(t[1]=function(){return o.close&&o.close.apply(o,arguments)})},[Ha(a,{name:"close"})])],2)}]]);var $F=FF;var MF=["innerHTML"],LF=["href","data-balloon"],NF={class:"action-wrapper create"},jF=["innerHTML"],BF=["placeholder"],RF=["textContent","disabled"];var VF={data:function(){return{children:[],componentName:"",componentCategory:"",componentDescription:""}},computed:{componentCategories:function(){var e={};return this.$_state.components.forEach(function(t){null!=t&&t.category&&(e[t.category]=t.category)}),e}},methods:{getChildren:function(e){var t=this,n=this.$_dynamicElements.value;((null==e?void 0:e.children)||[]).forEach(function(e){var i,r=n.find(function(t){return t.id===e});r&&(t.children.push(r),null!=r&&null!==(i=r.children)&&void 0!==i&&i.length&&t.getChildren(r))})},createComponent:function(){var e,t=this;if(this.componentName){this.children=[];var n=this.$_generateId(),i={id:n,category:this.componentCategory,desc:this.componentDescription,elements:[],properties:[],_created:Math.floor(Date.now()/1e3),_user_id:null===(e=this.bricks)||void 0===e||null===(e=e.loadData)||void 0===e?void 0:e.currentUserId,_version:this.bricks.version},r=this.$_clone(this.$_state.activeElement);this.$_state.componentInstanceId=r.id;var o=r;o.id=n,o.parent=0,o.label=this.componentName,i.elements.push(o),this.getChildren(o),i.elements=i.elements.concat(this.$_clone(this.children)),i.elements.forEach(function(e,r){null!=e&&e.settings&&!Array.isArray(e.settings)&&Object.keys(e.settings).forEach(function(n){if(n.startsWith("_cssCustom")){var i=0===r?t.$_state.activeElement.id:e.id;e.settings[n]=e.settings[n].replaceAll("#brxe-".concat(i),".brxe-".concat(e.id))}}),e.parent===t.$_state.activeId&&(e.parent=n),i.elements[r]=e}),this.$_state.components.unshift(i),this.$_showMessage("".concat(this.i18n.created,": ").concat(this.i18n.component)),this.$_state.popup=!1,this.$nextTick(function(){t.$_state.activeElement.cid=i.id,t.$_state.activeElement.children=[],t.$_state.activeElement.settings={},delete t.$_state.activeElement.selectors,Array.isArray(r.children)&&r.children.forEach(function(e){var n=t.$_dynamicElements.value.find(function(t){return t.id===e});t.$_deleteElement(n)}),t.$_rerenderCid(t.$_state.componentInstanceId),t.$nextTick(function(){t.$_state.activeElement=o,t.$_state.activeId=o.id,t.$_state.activeComponent=i,t.$_state.activeProperty=!0})})}}},mounted:function(){if(this.$refs.componentName&&this.$refs.componentName.focus(),this.$_state.activeElement){var e,t=this.$_getElementConfig(this.$_state.activeElement.name);this.componentName=(null===(e=this.$_state.activeElement)||void 0===e?void 0:e.label)||(null==t?void 0:t.label)}}};var qF=(0,xx.A)(VF,[["render",function(e,t,n,i,r,o){var a=$r("icon"),s=$r("control-select"),l=$r("control-textarea");return Ta(),Ma("div",null,[qa("header",null,[qa("h3",{class:"title",innerHTML:"".concat(e.i18n.create,": ").concat(e.i18n.component)},null,8,MF),qa("a",{class:"link",href:e.bricks.academy.components,target:"_blank","data-balloon":e.i18n.learnMore,"data-balloon-pos":"bottom-right"},[Ha(a,{name:"new-tab"})],8,LF)]),qa("main",null,[qa("div",NF,[qa("div",{class:"title",innerHTML:e.i18n.createComponent},null,8,jF),Xn(qa("input",{type:"text",class:"input",placeholder:"".concat(e.i18n.name," *"),spellcheck:"false",onKeyup:t[0]||(t[0]=wc(function(e){return o.createComponent()},["enter"])),ref:"componentName","onUpdate:modelValue":t[1]||(t[1]=function(e){return r.componentName=e})},null,40,BF),[[ac,r.componentName]]),Ha(s,{value:r.componentCategory,onInput:t[2]||(t[2]=function(e){return r.componentCategory=e}),control:{options:o.componentCategories,add:!0,placeholder:e.i18n.category,nothingFound:!1}},null,8,["value","control"]),Ha(l,{value:r.componentDescription,onInput:t[3]||(t[3]=function(e){return r.componentDescription=e}),control:{placeholder:e.i18n.description,hasDynamicData:!1}},null,8,["value","control"]),qa("button",{class:te(["submit",{active:r.componentName}]),textContent:he(e.i18n.create),onClick:t[4]||(t[4]=function(e){return o.createComponent()}),disabled:!r.componentName},null,10,RF)])])])}]]),HF={class:"flex"},zF={class:"title-wrapper"},UF=["textContent"],WF=["textContent"],GF={class:"actions"},KF={class:"sign-all"},QF=["disabled"],YF=["textContent"],JF={class:"content"},XF={class:"unsigned-code-elements"},ZF=["textContent"],e$=["disabled","onClick"],t$=["textContent"];var n$={data:function(){return{isGeneratingCodeSignature:!1,reloadCanvas:!1}},computed:{unsignedCodeElements:function(){var e=this,t=[];return this.$_state.unsignedCodeIds.forEach(function(n){var i=e.getFinalElement(n,!0);i&&t.push(i)}),t},unsignedCodeCount:function(){return this.unsignedCodeElements.length}},methods:{getCode:function(e){var t,n,i;return null!==(t=e.settings)&&void 0!==t&&t.code?e.settings.code:null!==(n=e.settings)&&void 0!==n&&null!==(n=n.query)&&void 0!==n&&n.queryEditor?null===(i=e.settings)||void 0===i||null===(i=i.query)||void 0===i?void 0:i.queryEditor:void 0},getFinalElement:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.$_getDynamicElementById(e)||null;if(!n){var i=this.$_getGlobalElement({global:e});i&&(n=i)}if(n&&(n=this.$_clone(n),t)){var r=this.$_getComponent(n);r&&(n.settings=this.$_getComponentSettings(r,n))}return n},generateCodeSignature:function(){var e,t,n,i=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(o){var a=this.$_state.unsignedCodeIds[0]||null;if(!a)return this.isGeneratingCodeSignature=!1,void(this.$_state.activeUnsignedCodeId=null);r=this.getFinalElement(a,!0)}var s=this.$_getGlobalElement({global:null===(e=r)||void 0===e?void 0:e.id});if(r){var l=this.$_getComponent(r);s&&(this.reloadCanvas=!0),this.$_state.activeUnsignedCodeId=(null===(t=r)||void 0===t?void 0:t.id)||(null===(n=r)||void 0===n?void 0:n.global),this.isGeneratingCodeSignature=!0,this.$_state.activeId=r.id,this.$_state.activeElement=this.getFinalElement(r.id),this.$_http({data:{action:"bricks_generate_code_signature",element:JSON.stringify(r)},success:function(e){if(i.isGeneratingCodeSignature=!1,i.$_state.activeUnsignedCodeId=null,e.success){var t,n=null===(t=e.data)||void 0===t||null===(t=t.element)||void 0===t?void 0:t.settings;if(n){var a;if(l&&i.$_state.activeElement.properties&&null!==(a=e.data)&&void 0!==a&&null!==(a=a.element)&&void 0!==a&&a.properties)i.$_state.activeElement.properties=e.data.element.properties;else if(s)s.settings=n;else if(i.$_state.activeElement)i.$_state.activeElement.settings=n;else{var c=i.$_getComponentElementById(r.id);c&&(c.settings=n,i.reloadCanvas=!0)}if(r.id){var u=i.$_state.unsignedCodeIds.indexOf(r.id);u>-1&&i.$_state.unsignedCodeIds.splice(u,1)}}i.$nextTick(function(){o?i.generateCodeSignature(r,!0):(i.$_showMessage(i.i18n.codeSigned),i.reloadCanvas?(i.$_reloadCanvas(),i.reloadCanvas=!1):i.$_forceRender())})}}})}}},beforeUnmount:function(){this.$_state.activeUnsignedCodeId=null},watch:{unsignedCodeCount:{handler:function(){this.unsignedCodeCount||(this.$_reloadCanvas(0,0),this.$_state.popup="",this.$_showMessage(this.i18n.codeSigned))},immediate:!0}}};var i$=(0,xx.A)(n$,[["render",function(e,t,n,i,r,o){var a=$r("icon"),s=$r("control-code");return Ta(),Ma("div",null,[qa("header",HF,[qa("div",zF,[qa("h2",{class:"title",textContent:he(e.i18n.unsignedCode)},null,8,UF),qa("p",{class:"description",textContent:he(e.i18n.codeSignaturesDescription)},null,8,WF)]),qa("ul",GF,[qa("li",KF,[qa("button",{class:"button",disabled:0===o.unsignedCodeElements.length,onClick:t[0]||(t[0]=function(e){return o.generateCodeSignature(null,!0)})},[qa("span",{textContent:he(e.i18n.signAll)},null,8,YF),Ha(a,{name:"touch-id"})],8,QF)])])]),qa("main",JF,[qa("ul",XF,[(Ta(!0),Ma(Ca,null,Rr(o.unsignedCodeElements,function(t){return Ta(),Ma("li",{key:t.id,class:te(["unsigned-code-element",{active:t.id===e.$_state.activeUnsignedCodeId}])},[qa("h4",{class:"name",textContent:he("".concat(e.i18n.element,": ").concat(e.$_getElementLabel(t)))},null,8,ZF),Ha(s,{value:o.getCode(t)},null,8,["value"]),qa("button",{class:"button",disabled:r.isGeneratingCodeSignature,onClick:function(e){return o.generateCodeSignature(t,!1)}},[qa("span",{textContent:he(e.i18n.signCode)},null,8,t$),Ha(a,{name:"touch-id"})],8,e$)],2)}),128))])])])}]]);function r$(e){return function(e){if(Array.isArray(e))return o$(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o$(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o$(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o$(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var a$=["placeholder"],s$={class:"filters"},l$=["textContent","onClick"],c$=["data-balloon"],u$=["href","data-balloon"],d$={class:"title-wrapper"},p$=["textContent"],h$=["href"],f$={class:"results"},m$=["onClick"],g$={class:"title-wrapper"},v$=["textContent"],y$={class:"icons"},b$=["href","data-balloon"],k$=["data-balloon"],w$=["innerHTML"],_$=["innerHTML"],C$={class:"notification"},x$=["innerHTML"],S$={class:"notification"},E$=["innerHTML"],A$=["href"];function D$(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var l=i&&i.prototype instanceof s?i:s,c=Object.create(l.prototype);return T$(c,"_invoke",function(n,i,r){var o,s,l,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return o=t,s=0,l=e,p.n=n,a}};function h(n,i){for(s=n,l=i,t=0;!d&&c&&!r&&t<u.length;t++){var r,o=u[t],h=p.p,f=o[2];n>3?(r=f===i)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=h&&((r=n<2&&h<o[1])?(s=0,p.v=i,p.n=o[1]):h<f&&(r=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,p.n=f,s=0))}if(r||n>1)return a;throw d=!0,i}return function(r,u,f){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,f),s=u,l=f;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(p.n=-1),h(s,l)):p.n=l:p.v=l);try{if(c=2,o){if(s||(r="next"),t=o[r]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=e}else if((t=(d=p.n<0)?l:n.call(i,p))!==a)break}catch(t){o=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,r,o),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][i]?t(t([][i]())):(T$(t={},i,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,T$(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,T$(d,"constructor",c),T$(c,"constructor",l),l.displayName="GeneratorFunction",T$(c,r,"GeneratorFunction"),T$(d),T$(d,r,"Generator"),T$(d,i,function(){return this}),T$(d,"toString",function(){return"[object Generator]"}),(D$=function(){return{w:o,m:p}})()}function T$(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}T$=function(e,t,n,i){function o(t,n){T$(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},T$(e,t,n,i)}function I$(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,r)}var O$={data:function(){return{articles:[],topics:{},activeArticle:void 0,activeTopic:"",error:!1,loading:!0,searchFor:"",previousTopic:!1}},computed:{currentArticles:function(){var e=this;return this.searchFor?this.articles.filter(function(t){return t.title.toLowerCase().includes(e.searchFor.toLowerCase())||t.content.toLowerCase().includes(e.searchFor.toLowerCase())}):this.activeArticle?this.articles.filter(function(t){return t.slug===e.activeArticle}):this.activeTopic?this.articles.filter(function(t){return t.topic===e.activeTopic}):this.articles}},methods:{openLinkInNewTab:function(e){"A"===e.target.tagName&&(e.preventDefault(),window.open(e.target.href))},setTopic:function(e){this.searchFor="";var t=e!==this.activeTopic&&e;this.activeArticle=!1,this.activeTopic=t},openArticle:function(e){this.activeArticle||(this.activeArticle=e.slug,this.activeTopic=!1,this.$nextTick(function(){PR.prettyPrint()}))}},created:function(){var e,t=this;this.articles.length?this.loading=!1:(e=D$().m(function e(){var n,i;return D$().w(function(e){for(;;)switch(e.n){case 0:return t.bricks.debug&&console.time("async"),n="https://academy.bricksbuilder.io/api/bricksacademy/all?timestamp=".concat(Date.now()),e.n=1,fetch(n);case 1:return i=e.v,e.a(2,i.json())}},e)}),function(){var t=this,n=arguments;return new Promise(function(i,r){var o=e.apply(t,n);function a(e){I$(o,i,r,a,s,"next",e)}function s(e){I$(o,i,r,a,s,"throw",e)}a(void 0)})})().then(function(e){t.bricks.debug&&console.timeEnd("async");var n={},i=[];for(var r in t.bricks.debug&&console.warn("getArticles:articlesByTopic",e),e)t.activeTopic||(t.activeTopic=r),n[r]=e[r].length,i=i.concat(e[r]);t.articles=i,t.topics=n,t.loading=!1,t.error=!1}).catch(function(e){t.bricks.debug&&console.warn("error",e),t.error=!0,t.loading=!1})},watch:{searchFor:function(e){e?(this.activeArticle=!1,this.activeTopic=!1):this.activeTopic=this.previousTopic},activeTopic:{handler:function(e){e&&(this.previousTopic=e)},immediate:!0},loading:function(){this.$nextTick(function(){PR.prettyPrint()})}}};const P$=(0,xx.A)(O$,[["render",function(e,t,n,i,r,o){var a=$r("icon");return Ta(),Ma("div",null,[qa("aside",null,[Xn(qa("input",{type:"search",class:"search",autocomplete:"off",spellcheck:"false","onUpdate:modelValue":t[0]||(t[0]=function(e){return r.searchFor=e}),placeholder:e.i18n.placeholderSearchDocumentation},null,8,a$),[[ac,r.searchFor]]),qa("ul",s$,[(Ta(!0),Ma(Ca,null,Rr(r.topics,function(e,t,n){return Ta(),Ma("li",{key:t,class:te({active:t===r.activeTopic}),textContent:he("".concat(t.replace("-"," ")," (").concat(e,")")),onClick:function(e){return o.setTopic(t)}},null,10,l$)}),128))]),qa("p",{class:"need-help",onClick:t[1]||(t[1]=function(){return e.toggleContactForm&&e.toggleContactForm.apply(e,arguments)})},[qa("a",{href:"https://bricksbuilder.io/contact/?utm_source=in_builder",target:"_blank",rel:"noopener","data-balloon":e.i18n.contactUs,"data-balloon-pos":"top-left"},r$(t[4]||(t[4]=[qa("i",{class:"icon fa fa-envelope"},null,-1)])),8,c$),qa("a",{href:e.bricks.academy.keyboardShortcuts,target:"_blank",rel:"noopener","data-balloon":e.i18n.keyboardShortcuts,"data-balloon-pos":"top-left"},r$(t[5]||(t[5]=[qa("i",{class:"icon fa fa-keyboard"},null,-1)])),8,u$)])]),qa("main",null,[Xn(qa("div",d$,[qa("h3",{class:"title",textContent:he(r.searchFor?"".concat(o.currentArticles.length," ").concat(e.i18n.resultsFor," ").concat(r.searchFor):"Bricks Academy")},null,8,p$),qa("a",{class:"link",href:e.bricks.academy.home,target:"_blank","data-balloon":"Bricks Academy","data-balloon-pos":"top-right"},[Ha(a,{name:"new-tab"})],8,h$)],512),[[pl,!r.activeArticle]]),Xn(qa("ul",f$,[(Ta(!0),Ma(Ca,null,Rr(o.currentArticles,function(n,i){return Ta(),Ma("li",{class:te(["article",{open:n.slug===r.activeArticle}]),key:i,onClick:function(e){return o.openArticle(n)}},[qa("div",g$,[qa("h4",{class:"title",textContent:he(n.title)},null,8,v$),qa("div",y$,[qa("a",{class:"link",href:n.permalink,target:"_blank","data-balloon":e.i18n.visitDocs},[Ha(a,{name:"new-tab"})],8,b$),qa("span",{class:"close","data-balloon":e.i18n.close,"data-balloon-pos":"top-right",onClick:t[2]||(t[2]=bc(function(e){return o.setTopic(r.previousTopic)},["stop"]))},[Ha(a,{name:"close"})],8,k$)])]),Xn(qa("div",{class:"excerpt",innerHTML:n.excerpt},null,8,w$),[[pl,r.activeArticle!==n.slug]]),Xn(qa("div",{class:"content",innerHTML:n.content,onClick:t[3]||(t[3]=function(e){return o.openLinkInNewTab(e)})},null,8,_$),[[pl,r.activeArticle===n.slug]])],10,m$)}),128))],512),[[pl,!r.loading&&o.currentArticles.length]]),Xn(qa("div",C$,[qa("p",{innerHTML:e.i18n.nothingFoundKeyword},null,8,x$)],512),[[pl,!r.loading&&!r.error&&!o.currentArticles.length]]),Xn(qa("div",S$,[qa("p",{innerHTML:e.i18n.errorBricksAcademy404},null,8,E$),qa("a",{href:e.bricks.academy.home,target:"_blank"},"Bricks Academy",8,A$)],512),[[pl,!r.loading&&r.error]])])])}]]);var F$=P$,$$=["innerHTML"],M$=["innerHTML"],L$={class:"actions"},N$=["textContent"],j$=["textContent"];var B$={methods:{goBack:function(){window.history.go(-1)},takeOver:function(){wp.heartbeat&&(wp.heartbeat.enqueue("bricks_set_post_lock",!0),wp.heartbeat.connectNow()),this.$_state.popup=!1}}};var R$=(0,xx.A)(B$,[["render",function(e,t,n,i,r,o){return Ta(),Ma("div",null,[qa("div",{class:"title",innerHTML:e.i18n.lockedUserTitle},null,8,$$),qa("p",{class:"text",innerHTML:e.$_stringReplace(e.i18n.lockedUserText,["<span>".concat(e.$_state.lockedUser,"</span>")])},null,8,M$),qa("div",L$,[qa("button",{class:"bricks-button go-back",textContent:he(e.i18n.lockedUserGoBack),onClick:t[0]||(t[0]=function(e){return o.goBack()})},null,8,N$),qa("button",{class:"bricks-button take-over",textContent:he(e.i18n.lockedUserTakeOver),onClick:t[1]||(t[1]=function(e){return o.takeOver()})},null,8,j$)])])}]]);function V$(e){return function(e){if(Array.isArray(e))return q$(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return q$(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?q$(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q$(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var H$={class:"template-source"},z$=["textContent"],U$={class:"actions"},W$=["textContent"],G$=["data-balloon"],K$=["textContent"],Q$=["data-balloon"],Y$=["textContent"],J$={class:"sub-header flex"},X$={class:"template-filters flex"},Z$=["placeholder"],eM={class:"actions flex"},tM=["data-balloon"],nM=["data-balloon"],iM=["data-balloon"],rM=["data-balloon"],oM=["data-balloon"],aM=["data-balloon"],sM={key:2,class:"action-wrapper theme-style"},lM=["innerHTML"],cM={class:"actions"},uM=["textContent"],dM=["textContent"],pM={key:3,class:"action-wrapper color-palettes"},hM=["innerHTML"],fM={class:"actions"},mM=["textContent"],gM=["textContent"],vM=["textContent"],yM=["data-balloon"],bM={key:4,class:"action-wrapper global-variables"},kM=["innerHTML"],wM={class:"actions"},_M=["textContent"],CM=["textContent"],xM={class:"action-wrapper create"},SM=["textContent"],EM=["placeholder"],AM=["textContent","disabled"],DM=["textContent"],TM={class:"action-wrapper save"},IM={class:"title"},OM=["placeholder"],PM=["textContent"],FM=["textContent"],$M={class:"action-wrapper import"},MM=["textContent"],LM={key:0,class:"is-importing-template"},NM=["textContent"],jM=["textContent"],BM=["textContent"],RM=["data-layout"],VM=["src"],qM={class:"overlay-wrapper"},HM={class:"item-header"},zM={class:"labels"},UM=["textContent"],WM=["textContent","data-balloon"],GM={key:0,class:"user"},KM=["href","textContent"],QM=["textContent"],YM={class:"title-wrapper"},JM=["innerHTML","title"],XM={class:"title-actions"},ZM=["href","data-balloon","onClick"],eL=["onClick","data-balloon"],tL=["href","data-balloon"],nL=["onClick","data-balloon"],iL=["onClick","data-balloon"],rL=["href","data-balloon"],oL={class:"notification"},aL={class:"message"},sL=["textContent"],lL={class:"notification loading"},cL=["textContent"];var uL=n(47943),dL=n.n(uL);function pL(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(xL(e)+" is not iterable")}function hL(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||bL(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fL(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var l=i&&i.prototype instanceof s?i:s,c=Object.create(l.prototype);return mL(c,"_invoke",function(n,i,r){var o,s,l,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return o=t,s=0,l=e,p.n=n,a}};function h(n,i){for(s=n,l=i,t=0;!d&&c&&!r&&t<u.length;t++){var r,o=u[t],h=p.p,f=o[2];n>3?(r=f===i)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=h&&((r=n<2&&h<o[1])?(s=0,p.v=i,p.n=o[1]):h<f&&(r=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,p.n=f,s=0))}if(r||n>1)return a;throw d=!0,i}return function(r,u,f){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,f),s=u,l=f;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(p.n=-1),h(s,l)):p.n=l:p.v=l);try{if(c=2,o){if(s||(r="next"),t=o[r]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=e}else if((t=(d=p.n<0)?l:n.call(i,p))!==a)break}catch(t){o=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,r,o),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][i]?t(t([][i]())):(mL(t={},i,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,mL(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,mL(d,"constructor",c),mL(c,"constructor",l),l.displayName="GeneratorFunction",mL(c,r,"GeneratorFunction"),mL(d),mL(d,r,"Generator"),mL(d,i,function(){return this}),mL(d,"toString",function(){return"[object Generator]"}),(fL=function(){return{w:o,m:p}})()}function mL(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}mL=function(e,t,n,i){function o(t,n){mL(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},mL(e,t,n,i)}function gL(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,r)}function vL(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var o=e.apply(t,n);function a(e){gL(o,i,r,a,s,"next",e)}function s(e){gL(o,i,r,a,s,"throw",e)}a(void 0)})}}function yL(e){return function(e){if(Array.isArray(e))return kL(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||bL(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bL(e,t){if(e){if("string"==typeof e)return kL(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kL(e,t):void 0}}function kL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function wL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function _L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wL(Object(n),!0).forEach(function(t){CL(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wL(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function CL(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=xL(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=xL(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==xL(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xL(e){return xL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xL(e)}var SL={setup:function(){return{saveAsTemplate:ln(Xh,"saveAsTemplate")}},data:function(){return{view:localStorage.getItem("brx_builder_template_manager_view")||"masonry",templateSource:"myTemplates",myTemplates:[],remoteTemplatesBySource:{},importImages:!1,errorMessage:void 0,isotopeInstance:null,isInsertingTemplate:!1,isImportingTemplate:!1,templateAction:void 0,templateTitle:void 0,templateType:void 0,templateBundle:void 0,templateTags:void 0,dragging:!1,searchValue:void 0,loading:!1,refreshing:!1,filterTemplateBundle:void 0,filterTemplateTag:void 0,filterTemplateType:void 0,controlTemplateType:{options:this.bricks.template.types,placeholder:this.i18n.templateType},replaceContent:!1,colorPaletteTitle:!1,templateColorPalette:[],templateGlobalClasses:[],templateThemeStyles:[],template:!1,templateElements:!1,templateGlobalVariables:[]}},computed:{activeTemplateInfo:function(){var e=this,t=!this.templateAction&&Array.isArray(this.bricks.remoteTemplateSettings)?this.bricks.remoteTemplateSettings.find(function(t){return t.url===e.templateSource||t.id===e.templateSource}):null;return null==t?void 0:t.info},remoteTemplatesCurrent:function(){return this.remoteTemplatesBySource[this.templateSource]||{}},templates:function(){var e,t=this,n=[];"myTemplates"===this.templateSource?n=this.myTemplates||[]:n=Array.isArray(null===(e=this.remoteTemplatesCurrent)||void 0===e?void 0:e.templates)?this.remoteTemplatesCurrent.templates:[];return void 0!==this.searchValue&&(n=n.filter(function(e){return-1!==e.title.toLowerCase().indexOf(t.searchValue.toLowerCase())})),this.filterTemplateBundle&&(n=n.filter(function(e){return-1!==e.bundles.indexOf(t.filterTemplateBundle)})),this.filterTemplateTag&&this.filterTemplateTag.length&&(n=n.filter(function(e){return e.tags.some(function(e){return t.filterTemplateTag.includes(e)})})),this.filterTemplateType&&(n=n.filter(function(e){return e.type===t.filterTemplateType})),n},templatesCount:function(){return this.templates.length},screenshotsInProgressCount:function(){return this.$_state.generatingScreenshotsProgress},message:function(){return this.errorMessage||this.i18n.noTemplatesFound},templateBundleOptions:function(){var e;return"myTemplates"===this.templateSource?this.bricks.template.bundles:(null===(e=this.remoteTemplatesCurrent)||void 0===e?void 0:e.bundles)||[]},controlTemplateBundle:function(){return{options:this.templateBundleOptions,placeholder:this.i18n.templateBundle,nothingFound:!1}},templateTagsOptions:function(){var e;return"myTemplates"===this.templateSource?this.bricks.template.tags:(null===(e=this.remoteTemplatesCurrent)||void 0===e?void 0:e.tags)||[]},controlTemplateTag:function(){return{options:this.templateTagsOptions,placeholder:this.i18n.templateTag,multiple:Object.keys(this.templateTagsOptions).length>1,nothingFound:!1}},templateSourceOptions:function(){var e={myTemplates:this.i18n.myTemplates};return this.$_userHasPermission("access_remote_templates")?(Array.isArray(this.bricks.remoteTemplateSettings)&&this.bricks.remoteTemplateSettings.forEach(function(t){var n=t.name&&""!==t.name.trim()?t.name:t.url,i=t.url||t.id;i&&(e[i]=n)}),e):e},importTemplateFormWrapperClasses:function(){return["bricks-template-import-form",this.dragging?"dragging":null]},templateCanBeSaved:function(){return this.saveAsTemplate?this.templateTitle:this.templateTitle&&this.templateType},remoteTemplatesReleasedAfterCancellationCount:function(){return Array.isArray(this.templates)?this.templates.filter(function(e){return e.hasOwnProperty("cancelled")}).length:0},generatingScreenshotsText:function(){return"".concat(this.i18n.generatingScreenshots,": ").concat(this.$_state.generatingScreenshotsProgress," / ").concat(this.$_state.generatingScreenshotsTotal)}},methods:{handlePageClick:function(e,t){0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||window.bricksData.instantNavigation&&(e.preventDefault(),this.$_loadPage(t.id,this.getEditTemplateLink(t.permalink)))},getTemplateTypeLabel:function(e){return e=(e=e.replace("wc_","WooCommerce: ")).replaceAll("_"," ")},findColorIds:function(e,t){var n=this;e&&"object"===xL(e)&&(e.id&&(e.hex||e.rgb||e.raw)?t.add(e.id):Object.values(e).forEach(function(e){return n.findColorIds(e,t)}))},insertTemplate:function(e){var t=this;if(null!=e&&e.content?this.templateElements=this.$_clone(e.content):null!=e&&e.header?this.templateElements=this.$_clone(e.header):null!=e&&e.footer&&(this.templateElements=this.$_clone(e.footer)),Array.isArray(this.templateElements)){if(this.template=e,"myTemplates"===this.templateSource||this.$_state.userCan.executeCode||this.templateElements.forEach(function(e,n){var i,r,o,a;null!=e&&null!==(i=e.settings)&&void 0!==i&&i.executeCode&&delete t.templateElements[n].settings.executeCode,"svg"===(null==e?void 0:e.name)&&null!=e&&null!==(r=e.settings)&&void 0!==r&&r.code&&delete t.templateElements[n].settings.code,null!=e&&null!==(o=e.settings)&&void 0!==o&&null!==(o=o.query)&&void 0!==o&&o.queryEditor&&delete t.templateElements[n].settings.query.queryEditor,null!=e&&null!==(a=e.settings)&&void 0!==a&&null!==(a=a.query)&&void 0!==a&&a.useQueryEditor&&delete t.templateElements[n].settings.query.useQueryEditor}),this.templateColorPalette=[],this.templateGlobalVariables=[],this.templateThemeStyles=[],this.mapClasses={},"myTemplates"!==this.templateSource){var n,i=new Set;this.templateElements.forEach(function(e){return t.findColorIds(e,i)});var r=null!=e&&e.themeStyle?[e.themeStyle]:[];if(Array.isArray(null==e?void 0:e.themeStyles)&&e.themeStyles.length&&(r=e.themeStyles),r.forEach(function(e){var n;null!==(n=t.$_state.themeStyles)&&void 0!==n&&n[e.id]||(null!=e&&e.settings&&t.findColorIds(e.settings,i),t.templateThemeStyles.push(e))}),i.size>0){var o,a=(null===(o=this.remoteTemplatesBySource[this.templateSource])||void 0===o?void 0:o.colorPalette)||[],s=this.$_state.colorPalette.map(function(e){return e.id}),l=a.filter(function(e){var t;return!s.includes(e.id)&&(null==e||null===(t=e.colors)||void 0===t?void 0:t.some(function(e){return i.has(e.id)}))});l.length&&(this.templateColorPalette=l,this.templateAction="color-palette")}this.templateThemeStyles.length&&(this.templateAction="theme-style");var c=null===(n=this.remoteTemplatesBySource[this.templateSource])||void 0===n?void 0:n.globalVariables;if(Array.isArray(c)&&c.length){var u=this.$_state.globalVariables.map(function(e){return e.name}),d=c.filter(function(e){return!u.includes(e.name)});d.forEach(function(e){delete e.category}),d.length&&(this.templateGlobalVariables=d,this.templateAction="global-variables")}var p=(null==e?void 0:e.global_classes)||!1;if(Array.isArray(p)){var h=[];p.forEach(function(e){var n=t.$_state.globalClasses.find(function(t){return t.id===e.id||t.name===e.name});t.$_createPseudoSelectors(null==e?void 0:e.settings),n&&JSON.stringify(n)===JSON.stringify(e)?(t.$_state.importClassIdMappings=t.$_state.importClassIdMappings||{},t.$_state.importClassIdMappings[e.id]=n.id):h.push(_L(_L({},e),{},{_exists:!!n}))}),this.templateGlobalClasses=h.length>0?h:[]}}this.templateColorPalette.length&&(this.colorPaletteTitle=e.title),!this.templateAction&&this.templateGlobalClasses.length?this.templateAction="global-classes":this.templateAction||this.convertTemplate(this.templateElements),this.$nextTick(function(){var n=!(null==e||!e.bundles||!e.bundles.length)&&e.bundles[0];n&&t.bricks.themeStyles.hasOwnProperty(n)&&(t.$_state.notification="selectTemplateBundle:".concat(n))})}else alert(this.i18n.templateInsertErrorNoData)},filterGlobalVariables:function(e){var t=this.globalVariables.map(function(e){return e.name});return e.filter(function(e){return!t.includes(e.name)})},importGlobalVariables:function(e){e&&(this.$_state.globalVariables=[].concat(yL(this.$_state.globalVariables),yL(this.templateGlobalVariables))),this.templateGlobalVariables=[],this.templateThemeStyles.length?this.templateAction="theme-style":this.templateColorPalette.length?this.templateAction="color-palette":this.templateGlobalClasses.length?this.templateAction="global-classes":this.convertTemplate(this.templateElements)},importThemeStyles:function(e){var t=this;if(!1===e)return this.templateThemeStyles=[],void(this.templateAction=this.templateColorPalette.length?"color-palette":void 0);Array.isArray(this.$_state.themeStyles)&&(this.$_state.themeStyles={});var n=this.$_clone(this.$_state.themeStyles);this.templateThemeStyles.forEach(function(e,i){n.hasOwnProperty(e.id)||(n[e.id]={label:e.label,settings:e.settings},i===t.templateThemeStyles.length-1&&(t.$_state.themeStyleActiveId=e.id,t.$_state.themeStyleSettings=e.settings))}),this.$_state.themeStyles=n,this.templateThemeStyles=[],this.templateGlobalVariables.length?this.templateAction="global-variables":this.templateColorPalette.length?this.templateAction="color-palette":this.templateGlobalClasses.length?this.templateAction="global-classes":this.convertTemplate(this.templateElements)},importColorPalette:function(e){if(!1===e)return this.templateAction=void 0,void(this.templateColorPalette=[]);var t=this.$_clone(this.$_state.colorPalette);this.templateColorPalette.forEach(function(e){for(var n=e.name,i=2;t.some(function(e){return e.name===n});)n="".concat(e.name," #").concat(i),i++;t.push({id:e.id,name:n,colors:e.colors})}),this.$_state.colorPalette=t,this.templateAction=void 0,this.templateColorPalette=[]},userCanEditTemplate:function(e){var t;return"myTemplates"===this.templateSource&&(e.id!=this.$_state.postId&&(this.$_userHasPermission("edit_templates")||this.bricks.author===(null==e||null===(t=e.author)||void 0===t?void 0:t.name)))},getEditTemplateLink:function(e){return-1===e.indexOf("?")?"".concat(e,"?").concat(this.bricks.builderParam,"=run"):"".concat(e,"&").concat(this.bricks.builderParam,"=run")},templateExportUrl:function(e){if("myTemplates"===this.templateSource)return"".concat(this.bricks.ajaxUrl,"?action=bricks_export_template&nonce=").concat(this.bricks.nonce,"&templateId=").concat(e,"&builder=true")},cancel:function(){this.templateAction=void 0,this.templateTitle=void 0,this.templateType=void 0,this.templateBundle=void 0,this.templateTags=void 0,this.saveAsTemplate=!1},createTemplate:function(){var e=this;this.templateTitle&&this.templateType&&this.$_http({data:{action:"bricks_create_template",templateData:{templateTitle:this.templateTitle,templateType:this.templateType,templateBundle:this.templateBundle,templateTags:this.templateTags}},success:function(t){e.myTemplates=t.data,e.templateSource="myTemplates",e.templateAction=void 0,e.templateTitle=void 0,e.templateType=void 0,e.templateBundle=void 0,e.templateTags=void 0,e.$_showMessage(e.i18n.templateCreated)}})},deleteTemplate:function(e){var t=this;this.$_http({data:{action:"bricks_delete_template",templateId:e},success:function(e){var n=e.data.length;t.myTemplates.length!==n&&(t.myTemplates=e.data,t.$_state.deleteItem=null,t.$_showMessage(t.i18n.templateDeleted))}})},saveTemplate:function(){var e=this;if(this.templateCanBeSaved){var t="content";"header"===this.templateType?t="header":"footer"===this.templateType&&(t="footer");var n=[];if(this.saveAsTemplate){var i=this.$_clone(this.saveAsTemplate);i.parent=0,n.push(i);var r=function(t){t.children.forEach(function(t){var i,o=e.$_dynamicElements.value.find(function(e){return e.id===t});o&&(n.push(o),e.$_isNestable(o)&&null!=o&&null!==(i=o.children)&&void 0!==i&&i.length&&r(o))})};r(i)}else n=this.$_dynamicElements.value;var o=CL({templateTitle:this.templateTitle,templateType:this.templateType,templateBundle:this.templateBundle,templateTags:this.templateTags},t,n);Object.keys(this.$_state.pageSettings)&&(o.pageSettings=this.$_state.pageSettings),this.$_http({data:{action:"bricks_save_template",templateData:JSON.stringify(o)},success:function(t){var n=t.data.templateId;e.myTemplates=t.data.myTemplates,e.templateAction=void 0,e.templateTitle=void 0,e.templateType=void 0,e.templateBundle=void 0,e.templateTags=void 0,e.$_showMessage(e.i18n.savedAsTemplate),e.saveAsTemplate&&n&&e.$nextTick(function(){var t=e.templates.find(function(e){return e.id===n});t&&e.generateScreenshotForNewTemplate(t)})}})}},generateScreenshotForNewTemplate:function(e){var t=this;if(this.bricks.generateTemplateScreenshots){var n=d_.createScreenshotIframe(e.permalink);n.onload=function(){if(!t.bricks.debug){var i,r=document.createElement("script");null!==(i=t.bricks)&&void 0!==i&&i.builderCloudflareRocketLoader&&r.setAttribute("data-cfasync","false"),r.textContent="window.console.log = function() {};\n\t\t\t\t\t\t\twindow.console.error = function() {};\n\t\t\t\t\t\t\twindow.console.warn = function() {};\n\t\t\t\t\t\t\twindow.console.info = function() {};\n\t\t\t\t\t\t\twindow.console.debug = function() {};",n.contentWindow.document.head.appendChild(r)}var o=d_.getScreenshotArea(e.type);d_.generateTemplateScreenshot(e.id,n.contentWindow.document,o).then(function(t){t&&(e.thumbnail=t),document.body.removeChild(n)}).catch(function(){document.body.removeChild(n)})},n.onerror=function(){document.body.removeChild(n)}}},importFiles:function(e){var t=this;this.isImportingTemplate=!0;var n=Array.from(e).map(function(e){return new Promise(function(t){var n=new FileReader;n.onload=function(e){return t(JSON.parse(e.target.result))},n.readAsText(e)})});Promise.all(n).then(function(n){var i=[];n.forEach(function(e){Array.isArray(e.global_classes)&&(i=[].concat(yL(i),yL(e.global_classes)))});var r=[];i.forEach(function(e){var n=t.$_state.globalClasses.find(function(t){return t.id===e.id||t.name===e.name});n&&JSON.stringify(n)===JSON.stringify(e)?(t.$_state.importClassIdMappings=t.$_state.importClassIdMappings||{},t.$_state.importClassIdMappings[e.id]=n.id):r.push(_L(_L({},e),{},{_exists:!!n}))}),(r=t.$_processClassesForImport(r)).length>0?(t.$_state.classesImportData={classes:r,onImport:function(n){t.sendImportRequest(e,n),t.$_state.popup="templates"},onCancel:function(){n.forEach(function(e){e.global_classes=[],e.content&&e.content.forEach(function(e){var t;null!=e&&null!==(t=e.settings)&&void 0!==t&&t._cssGlobalClasses&&delete e.settings._cssGlobalClasses})}),t.sendImportRequest(e,n),t.$_state.popup="templates"}},t.$_state.popup="styles",t.$nextTick(function(){t.$_state.popupTab="classes"})):t.sendImportRequest(e)}).catch(function(e){t.isImportingTemplate=!1,t.errorMessage=e.message})},sendImportRequest:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=new FormData;i.append("action","bricks_import_template"),i.append("builder","true"),i.append("templateId",this.$_generateId()),this.importImages&&i.append("importImages",this.importImages);for(var r=0;r<e.length;r++){var o=e[r];i.append("files[".concat(r,"]"),o)}var a=n.length?[].concat(yL(this.$_state.globalClasses),yL(n)):this.$_state.globalClasses;i.append("globalClasses",JSON.stringify(a)),i.append("pseudoClasses",JSON.stringify(this.$_state.pseudoClasses)),this.$_http({data:i,processData:!1,contentType:!1,error:function(e){t.isImportingTemplate=!1,t.errorMessage=e.data.error},success:function(e){var n,i,r,o;if(e.data.hasOwnProperty("error"))return t.isImportingTemplate=!1,alert(e.data.error),void(t.errorMessage=e.data.error);t.bricks.debug.includes("template")&&console.warn("bricks_import_template",e.data),Array.isArray(null===(n=e.data)||void 0===n?void 0:n.my_templates)&&null!==(i=e.data.my_templates)&&void 0!==i&&i.length&&(t.myTemplates=e.data.my_templates),Array.isArray(null===(r=e.data)||void 0===r?void 0:r.pseudo_classes)&&null!==(o=e.data)&&void 0!==o&&o.pseudo_classes.length&&(t.$_state.pseudoClasses=e.data.pseudo_classes),t.templateAction=void 0,t.isImportingTemplate=!1,t.$_showMessage(t.i18n.templateImported)}})},getRemoteTemplates:function(){var e=arguments,t=this;return vL(fL().m(function n(){var i,r,o,a;return fL().w(function(n){for(;;)switch(n.p=n.n){case 0:if(i=e.length>0&&void 0!==e[0]&&e[0],r="remoteTemplates_".concat(t.templateSource),n.p=1,i){n.n=3;break}return n.n=2,t.$_getCachedData(r,6048e5);case 2:if(!(o=n.v)){n.n=3;break}return t.remoteTemplatesBySource[t.templateSource]=o,n.a(2);case 3:t.fetchRemoteTemplates(r),n.n=5;break;case 4:n.p=4,a=n.v,console.error("Error fetching templates:",a),t.errorMessage="Failed to load templates";case 5:return n.a(2)}},n,null,[[1,4]])}))()},generateTemplateScreenshots:function(){var e=this;return vL(fL().m(function t(){var n,i,r,o;return fL().w(function(t){for(;;)switch(t.n){case 0:if(e.bricks.generateTemplateScreenshots){t.n=1;break}return t.a(2);case 1:e.$_state.generatingScreenshots=!0,e.$_state.generatingScreenshotsProgress=0,e.$_state.generatingScreenshotsTotal=e.templates.length,n=function(){var e=vL(fL().m(function e(t,n){var i,r,o,a;return fL().w(function(e){for(;;)switch(e.p=e.n){case 0:return i=null,e.p=1,i=d_.createScreenshotIframe(n.permalink),e.n=2,new Promise(function(e,t){i.onload=e,i.onerror=t,setTimeout(t,1e4,new Error("Load timeout"))});case 2:return r="header"===n.type?"brx-header":"footer"===n.type?"brx-footer":"popup"===n.type?"brx-popup-content":"brx-content",e.n=3,d_.generateTemplateScreenshot(t,i.contentWindow.document,r);case 3:return o=e.v,e.a(2,o);case 4:return e.p=4,a=e.v,console.error("Error generating screenshot for template ".concat(t,":"),a),e.a(2,null);case 5:return e.p=5,i&&document.body.removeChild(i),i=null,e.f(5);case 6:return e.a(2)}},e,null,[[1,4,5,6]])}));return function(t,n){return e.apply(this,arguments)}}(),i=function(){var t=vL(fL().m(function t(i){var r,o,a,s,l;return fL().w(function(t){for(;;)switch(t.n){case 0:return r=hL(i,2),o=r[0],a=r[1],t.n=1,n(o,a);case 1:if(!(s=t.v)){t.n=2;break}return(l=e.templates.find(function(e){return e.id===o}))&&(l.thumbnail=s),e.$_state.generatingScreenshotsProgress++,t.a(2,!0);case 2:return t.a(2,!1)}},t)}));return function(e){return t.apply(this,arguments)}}(),r=e.templates.map(function(e){return[e.id,{permalink:e.permalink,type:e.type,retryCount:0}]}),o=fL().m(function e(){var t,n;return fL().w(function(e){for(;;)switch(e.n){case 0:return t=r.splice(0,5),e.n=1,Promise.all(t.map(i));case 1:n=e.v,t.filter(function(e,t){return!n[t]}).forEach(function(e){var t=hL(e,2),n=t[0],i=t[1];i.retryCount++,i.retryCount<2&&r.push([n,i])});case 2:return e.a(2)}},e)});case 2:if(!(r.length>0)){t.n=4;break}return t.d(pL(o()),3);case 3:t.n=2;break;case 4:e.$_state.generatingScreenshots=!1,e.$_showMessage(e.i18n.screenshotsGenerated);case 5:return t.a(2)}},t)}))()},fetchRemoteTemplates:function(e){var t,n=this;this.$_http({data:{action:"bricks_get_remote_templates_data",templateSource:this.templateSource},beforeSend:function(){n.loading=!0,n.refreshing=!0,n.bricks.debug&&console.time("get_remote_templates_data")},success:(t=vL(fL().m(function t(i){var r,o,a,s;return fL().w(function(t){for(;;)switch(t.p=t.n){case 0:if(n.loading=!1,n.refreshing=!1,n.bricks.debug&&(console.timeEnd("get_remote_templates_data"),console.info("get_remote_templates_data",i.data)),null!==(r=i.data)&&void 0!==r&&r.error){t.n=4;break}return t.p=1,t.n=2,n.$_cacheData(e,i.data);case 2:t.n=4;break;case 3:t.p=3,s=t.v,console.error("Error caching templates data:",s);case 4:if(null===(o=i.data)||void 0===o||!o.error){t.n=5;break}return n.errorMessage=null===(a=i.data)||void 0===a?void 0:a.error,t.a(2);case 5:n.errorMessage=void 0,n.remoteTemplatesBySource[n.templateSource]=i.data;case 6:return t.a(2)}},t,null,[[1,3]])})),function(e){return t.apply(this,arguments)})})},onDragOver:function(e){e.preventDefault(),e.stopPropagation(),this.dragging=!0},onDragLeave:function(e){e.preventDefault(),e.stopPropagation(),this.dragging=!1},onDrop:function(e){e.preventDefault(),e.stopPropagation(),this.dragging=!1,this.importFiles(e.dataTransfer.files)},onNoDroppable:function(e){e.target.closest(".media-modal")||(e.preventDefault(),e.dataTransfer.effectAllowed="none",e.dataTransfer.dropEffect="none")},convertTemplate:function(e){var t=this;Object.keys(this.mapClasses).length&&e.forEach(function(n,i){var r,o=null==n||null===(r=n.settings)||void 0===r?void 0:r._cssGlobalClasses;Array.isArray(o)&&(o=o.map(function(e){return t.mapClasses[e]||e}),e[i].settings._cssGlobalClasses=o)}),this.loading=!0,this.isInsertingTemplate=!0,this.templateThemeStyles=[],this.templateColorPalette=[];var n=function(){var n=vL(fL().m(function n(){var i,r;return fL().w(function(n){for(;;)switch(n.n){case 0:return e=t.$_clone(e),i={action:"bricks_convert_template",templateData:JSON.stringify(e),importImages:t.importImages,nonce:t.bricks.nonce},n.n=1,jQuery.ajax({context:t,url:t.bricks.ajaxUrl,type:"POST",data:i,beforeSend:function(e){t.bricks.debug&&console.info("beforeSend:res:data",e,i)}});case 1:return r=n.v,n.a(2,r.data)}},n)}));return function(){return n.apply(this,arguments)}}();n().then(function(e){t.bricks.debug&&console.warn("convertTemplate",e);var n=!(null==e||!e.elements||!Array.isArray(e.elements))&&e.elements;n&&(n.forEach(function(e){t.$_createPseudoSelectors(null==e?void 0:e.settings)}),t.replaceContent?(t.$_showPanel(),t.$_state[t.$_dynamicArea.value]=n):t.$_state[t.$_dynamicArea.value]=t.mergeTemplateAndContent(n),setTimeout(function(){t.$_state.popup=!1,t.$_showMessage(t.i18n.templateInserted),t.scrollToInsertedTemplate(n)},400))})},mergeTemplateAndContent:function(e){var t=this.$_clone(this.$_dynamicElements.value),n=!!this.$_state.activeId&&this.$_activeElement.value,i=!!n&&t.findIndex(function(e){return e.id===n.id}),r=n?n.parent:0;return 0==r||!1===i?t.concat(e):(e.forEach(function(e){0==e.parent&&(e.parent=r)}),t.splice.apply(t,[i+1,0].concat(yL(e))),t.forEach(function(i,o){if(i.id===r){var a,s=i.children.findIndex(function(e){return e===n.id});if(-1!==s)(a=i.children).splice.apply(a,[s+1,0].concat(yL(e.filter(function(e){return e.parent==r}).map(function(e){return e.id})))),t[o]=i}}),t)},scrollToInsertedTemplate:function(e){var t=document.getElementById("bricks-builder-iframe").contentWindow,n=t.document;if(Array.isArray(e)&&e.length){var i=this.$_dynamicElements.value.find(function(t){return t.id===e[0].id}),r=this.$_getElementNode(i,n);if(r){var o=r.getBoundingClientRect().top;t.scrollBy({top:o,behavior:"smooth"})}}},toggleView:function(){var e="list"===this.view?"masonry":"list";this.view=e,localStorage.setItem("brx_builder_template_manager_view",e)},setThumbnailWrapperHeight:function(){var e=this;"masonry"===this.view&&(this.thumbnailHeight=window.bricksData.templateManagerThumbnailHeight||"auto",this.$nextTick(function(){e.$refs.gallery&&e.$refs.gallery.querySelectorAll(".thumbnail-wrapper").forEach(function(t){t.style.height="auto"===e.thumbnailHeight?"auto":"".concat(e.thumbnailHeight,"px")});"masonry"===e.view&&e.$_initIsotope()}))},setupThumbnailScrolling:function(){var e=this;this.$nextTick(function(){e.$refs.gallery&&e.$refs.gallery.querySelectorAll(".thumbnail-wrapper").forEach(function(t){var n=t.querySelector("img");n&&e.checkImageHeight(t,n)})})},checkImageHeight:function(e,t){var n=this;if(!this.isScreenshotGenerationInProgress){var i=t.getBoundingClientRect().height,r=e.getBoundingClientRect().height;if(i>r){var o=r-i,a=this.calculateScrollDuration(o),s=this.calculateScrollBackDuration(o);t.classList.add("scroll-thumbnail"),e.classList.add("scroll-enabled");var l={isScrollingDown:!1,isScrollingUp:!1,cancelAnimation:null},c=function(){n.isScreenshotGenerationInProgress||(l.cancelAnimation&&l.cancelAnimation(),l.isScrollingDown=!0,l.isScrollingUp=!1,n.startScrollAnimation(t,0,o,a,function(e){l.cancelAnimation=e},function(){l.isScrollingDown=!1,l.cancelAnimation=null}))},u=function(){if(!n.isScreenshotGenerationInProgress&&!l.isScrollingUp){l.cancelAnimation&&l.cancelAnimation(),l.isScrollingDown=!1,l.isScrollingUp=!0;var e=parseFloat(t.style.top)||o;n.startScrollAnimation(t,e,0,s,function(e){l.cancelAnimation=e},function(){l.isScrollingUp=!1,l.cancelAnimation=null})}};e.addEventListener("mouseenter",c),e.addEventListener("mouseleave",u),e._scrollData={startScrolling:c,stopScrolling:u,animationController:l}}}},calculateScrollDuration:function(e){return Math.min(2e3*Math.abs(e)/200,2e3)},calculateScrollBackDuration:function(e){return Math.min(300*Math.abs(e)/200,300)},startScrollAnimation:function(e,t,n,i,r,o){var a,s,l=!1;r(function(){l=!0,cancelAnimationFrame(a)});var c=function(r){if(!l){s||(s=r);var u=r-s,d=Math.min(u/i,1);e.style.top=t+(n-t)*d+"px",d<1?a=requestAnimationFrame(c):o()}};a=requestAnimationFrame(c)},removeScrollListeners:function(){this.$el.querySelectorAll(".thumbnail-wrapper").forEach(function(e){e._scrollData&&(e.removeEventListener("mouseenter",e._scrollData.startScrolling),e.removeEventListener("mouseleave",e._scrollData.stopScrolling),e._scrollData.animationController.cancelAnimation&&e._scrollData.animationController.cancelAnimation(),delete e._scrollData),e.classList.remove("scroll-enabled");var t=e.querySelector("img");t&&(t.classList.remove("scroll-thumbnail"),t.style.top="0")})}},created:function(){var e=this;localStorage.getItem("brx_template_import_images")&&(this.importImages=!0);var t=localStorage.getItem("brx_template_source");t&&this.templateSourceOptions.hasOwnProperty(t)&&(this.templateSource=t),this.$_http({data:{action:"bricks_get_my_templates_data"},success:function(t){e.myTemplates=t.data}})},updated:function(){var e=this;"masonry"===this.view&&(this.setThumbnailWrapperHeight(),dL()(this.$refs.gallery).on("progress",function(){e.$_initIsotope(),e.setupThumbnailScrolling()}))},mounted:function(){var e;(window.addEventListener("resize",this.$_initIsotope()),this.$refs.search&&this.$refs.search.focus(),window.addEventListener("dragenter",this.onNoDroppable),window.addEventListener("dragover",this.onNoDroppable),window.addEventListener("drop",this.onNoDroppable),this.saveAsTemplate)&&(this.templateAction="save",null!==(e=this.saveAsTemplate)&&void 0!==e&&e.label&&(this.templateTitle=this.saveAsTemplate.label));this.$refs.templateImportForm&&(this.$refs.templateImportForm.addEventListener("dragover",this.onDragOver),this.$refs.templateImportForm.addEventListener("dragleave",this.onDragLeave),this.$refs.templateImportForm.addEventListener("drop",this.onDrop))},beforeUnmount:function(){this.saveAsTemplate=!1,window.removeEventListener("resize",this.$_initIsotope),window.removeEventListener("dragenter",this.onNoDroppable),window.removeEventListener("dragover",this.onNoDroppable),window.removeEventListener("drop",this.onNoDroppable),this.removeScrollListeners(),this.$refs.templateImportForm&&(this.$refs.templateImportForm.removeEventListener("dragover",this.onDragOver),this.$refs.templateImportForm.removeEventListener("dragleave",this.onDragLeave),this.$refs.templateImportForm.removeEventListener("drop",this.onDrop))},watch:{screenshotsInProgressCount:{handler:function(e,t){var n=this;"masonry"===this.view&&setTimeout(function(){n.$_initIsotope()},100)}},templatesCount:function(){"masonry"===this.view&&this.$_initIsotope()},view:{handler:function(){"masonry"===this.view?this.$_initIsotope():this.isotopeInstance&&(this.isotopeInstance.isotope("destroy"),this.isotopeInstance=null)},immediate:!0},importImages:function(e){e?localStorage.setItem("brx_template_import_images",!0):localStorage.removeItem("brx_template_import_images")},templateAction:function(e,t){var n=this;if(!e&&-1!==["theme-style","global-variables","color-palette"].indexOf(t)){var i;if(this.templateGlobalClasses.length)return void(this.templateAction="global-classes");var r=(null===(i=window.bricksData)||void 0===i?void 0:i.builderGlobalClassesImport)||"conflicts";this.templateElements=this.$_updateElementClassReferences(this.templateElements,this.$_state.importClassIdMappings,r),this.convertTemplate(this.templateElements)}if("global-classes"===e){var o=this.$_processClassesForImport(this.templateGlobalClasses);if(!o.length){var a,s=(null===(a=window.bricksData)||void 0===a?void 0:a.builderGlobalClassesImport)||"conflicts";return this.templateElements=this.$_updateElementClassReferences(this.templateElements,this.$_state.importClassIdMappings,s),this.templateGlobalClasses=[],this.templateAction=null,this.convertTemplate(this.templateElements),void(this.$_state.popup=!1)}this.$_state.classesImportData={classes:o,onImport:function(e){e.forEach(function(e){n.mapClasses[e.id]=e.id}),n.templateGlobalClasses=[],n.templateAction=null,n.convertTemplate(n.templateElements),n.$_state.popup=!1},onCancel:function(){n.templateGlobalClasses=[],n.templateAction=null,n.convertTemplate(n.templateElements),n.$_state.popup=!1}},this.$_state.popup="styles",this.$nextTick(function(){n.$_state.popupTab="classes"})}this.$nextTick(function(){var e=n.$el.querySelector(".bricks-popup .content");e&&(e.scrollTop=0)})},templateSource:function(){"myTemplates"!==this.templateSource&&this.getRemoteTemplates(),this.filterTemplateBundle=void 0,this.filterTemplateTag=void 0,localStorage.setItem("brx_template_source",this.templateSource)}}};const EL=(0,xx.A)(SL,[["render",function(e,t,n,i,r,o){var a=$r("control-select"),s=$r("control-checkbox"),l=$r("icon"),c=$r("control-info");return Ta(),Ma("div",null,[qa("header",null,[qa("div",H$,[qa("h2",{class:"title",textContent:he(e.i18n.source)},null,8,z$),Ha(a,{value:r.templateSource,"onUpdate:value":t[0]||(t[0]=function(e){return r.templateSource=e}),control:{options:this.templateSourceOptions,clearable:!1}},null,8,["value","control"]),Qa("",!0)]),qa("ul",U$,[!r.templateAction&&e.$_state.generatingScreenshots&&"myTemplates"===r.templateSource?(Ta(),Ma("span",{key:0,class:"generating-screenshots-info",textContent:he(o.generatingScreenshotsText)},null,8,W$)):Qa("",!0),qa("li",{class:"import-images","data-balloon":r.importImages?e.i18n.importImagesEnabled:e.i18n.importImagesDisabled,"data-balloon-pos":"bottom-right","data-balloon-length":"medium"},[qa("label",{for:"importImages",class:te({disabled:!r.importImages}),textContent:he(e.i18n.importImages)},null,10,K$),Ha(s,{value:r.importImages,"onUpdate:value":t[1]||(t[1]=function(e){return r.importImages=e}),control:{type:"checkbox"},controlKey:"importImages"},null,8,["value"])],8,G$),qa("li",{class:"replace-content","data-balloon":r.replaceContent?e.i18n.replaceContentEnabled:e.i18n.replaceContentDisabled,"data-balloon-pos":"bottom-right","data-balloon-length":"medium"},[qa("label",{for:"replaceContent",class:te({disabled:!r.replaceContent}),textContent:he(e.i18n.replaceContent)},null,10,Y$),Ha(s,{value:r.replaceContent,"onUpdate:value":t[2]||(t[2]=function(e){return r.replaceContent=e}),control:{type:"checkbox"},controlKey:"replaceContent"},null,8,["value"])],8,Q$)])]),qa("div",J$,[Xn(qa("div",X$,[Object.keys(o.templateBundleOptions).length>0?(Ta(),La(a,{key:0,value:r.filterTemplateBundle,"onUpdate:value":t[3]||(t[3]=function(e){return r.filterTemplateBundle=e}),control:o.controlTemplateBundle},null,8,["value","control"])):Qa("",!0),Object.keys(o.templateTagsOptions).length>0?(Ta(),La(a,{key:1,value:r.filterTemplateTag,"onUpdate:value":t[4]||(t[4]=function(e){return r.filterTemplateTag=e}),control:o.controlTemplateTag},null,8,["value","control"])):Qa("",!0),Ha(a,{value:r.filterTemplateType,"onUpdate:value":t[5]||(t[5]=function(e){return r.filterTemplateType=e}),control:r.controlTemplateType},null,8,["value","control"]),Xn(qa("input",{type:"search",ref:"search","onUpdate:modelValue":t[6]||(t[6]=function(e){return r.searchValue=e}),autocomplete:"off",spellcheck:"false",placeholder:e.i18n.searchTemplates},null,8,Z$),[[ac,r.searchValue]])],512),[[pl,!r.templateAction]]),qa("ul",eM,[qa("li",{class:te(["view",r.view]),"data-balloon":"".concat(e.i18n.view,": ").concat("list"===r.view?"List":"Grid"),"data-balloon-pos":"top-right",onClick:t[7]||(t[7]=function(){return o.toggleView&&o.toggleView.apply(o,arguments)})},[Ha(l,{name:"list"===r.view?"equal":"grid"},null,8,["name"])],10,tM),Xn(qa("li",{class:te(["reload",{active:r.refreshing}]),"data-balloon":e.i18n.reload,"data-balloon-pos":"top-right",onClick:t[8]||(t[8]=function(e){return o.getRemoteTemplates(!0)})},[Ha(l,{name:"refresh"})],10,nM),[[pl,"myTemplates"!==r.templateSource]]),"myTemplates"===r.templateSource&&!e.$_state.generatingScreenshots&&e.bricks.generateTemplateScreenshots?(Ta(),Ma("li",{key:0,class:te(["generate-screenshots",{active:e.$_state.generatingScreenshots}]),"data-balloon":e.i18n.generateScreenshots,"data-balloon-pos":"top-right",onClick:t[9]||(t[9]=function(e){return o.generateTemplateScreenshots()})},[Ha(l,{name:"image"})],10,iM)):Qa("",!0),e.$_userHasPermission("create_templates")?(Ta(),Ma("li",{key:1,class:te(["create",{active:"create"===r.templateAction}]),"data-balloon":e.i18n.createTemplate,"data-balloon-pos":"top-right",onClick:t[10]||(t[10]=function(e){return r.templateAction="create"})},[Ha(l,{name:"add"})],10,rM)):Qa("",!0),qa("li",{class:te(["save",{active:"save"===r.templateAction}]),"data-balloon":e.i18n.saveAsTemplate,"data-balloon-pos":"top-right",onClick:t[11]||(t[11]=function(e){return r.templateAction="save"})},[Ha(l,{name:"save"})],10,oM),e.$_userHasPermission("import_export_templates")?(Ta(),Ma("li",{key:2,class:te(["import",{active:"import"===r.templateAction}]),"data-balloon":e.i18n.importTemplate,"data-balloon-pos":"top-right",onClick:t[12]||(t[12]=function(e){return r.templateAction="import"})},[Ha(l,{name:"import"})],10,aM)):Qa("",!0)])]),qa("main",{class:te(["content",{loading:r.loading}])},[o.activeTemplateInfo?(Ta(),La(c,{key:0,control:{content:o.activeTemplateInfo}},null,8,["control"])):Qa("",!0),Qa("",!0),"theme-style"===r.templateAction&&r.templateThemeStyles.length?(Ta(),Ma("div",sM,[qa("p",{innerHTML:e.i18n.importTemplateThemeStyles},null,8,lM),qa("ul",null,[(Ta(!0),Ma(Ca,null,Rr(r.templateThemeStyles,function(e){return Ta(),Ma("li",{key:null==e?void 0:e.label},he(e.label),1)}),128))]),qa("div",cM,[qa("button",{onClick:t[13]||(t[13]=bc(function(e){return o.importThemeStyles(!0)},["stop"])),textContent:he(e.i18n.yes)},null,8,uM),qa("button",{onClick:t[14]||(t[14]=bc(function(e){return o.importThemeStyles(!1)},["stop"])),textContent:he(e.i18n.no)},null,8,dM)])])):Qa("",!0),"color-palette"===r.templateAction&&r.templateColorPalette?(Ta(),Ma("div",pM,[qa("p",{innerHTML:r.templateColorPalette.length>1?e.i18n.importTemplateColorPalettes:e.i18n.importTemplateColorPalette},null,8,hM),qa("div",fM,[qa("button",{onClick:t[15]||(t[15]=bc(function(e){return o.importColorPalette(!0)},["stop"])),textContent:he(e.i18n.yes)},null,8,mM),qa("button",{onClick:t[16]||(t[16]=bc(function(e){return o.importColorPalette(!1)},["stop"])),textContent:he(e.i18n.no)},null,8,gM)]),(Ta(!0),Ma(Ca,null,Rr(r.templateColorPalette,function(e,t){return Ta(),Ma("div",{key:e.id,class:"palette"},[qa("h5",{textContent:he(e.name)},null,8,vM),qa("ul",null,[(Ta(!0),Ma(Ca,null,Rr(e.colors,function(e){return Ta(),Ma("li",{key:e.id,style:Y({backgroundColor:e.raw?e.raw:e.hasOwnProperty("rgb")?e.rgb:e.hex}),"data-balloon":e.raw?e.raw:e.hasOwnProperty("rgb")?e.rgb:e.hex,"data-balloon-pos":"bottom"},null,12,yM)}),128))])])}),128))])):Qa("",!0),"global-variables"===r.templateAction&&r.templateGlobalVariables.length>0?(Ta(),Ma("div",bM,[qa("p",{innerHTML:e.i18n.importTemplateGlobalVariables},null,8,kM),qa("div",wM,[qa("button",{onClick:t[17]||(t[17]=bc(function(e){return o.importGlobalVariables(!0)},["stop"])),textContent:he(e.i18n.yes)},null,8,_M),qa("button",{onClick:t[18]||(t[18]=bc(function(e){return o.importGlobalVariables(!1)},["stop"])),textContent:he(e.i18n.no)},null,8,CM)]),qa("ul",null,[(Ta(!0),Ma(Ca,null,Rr(r.templateGlobalVariables,function(e,t){return Ta(),Ma("li",{key:t}," --"+he(e.name)+": "+he(e.value),1)}),128))])])):Qa("",!0),Xn(qa("div",xM,[qa("div",{class:"title",textContent:he(e.i18n.createTemplate)},null,8,SM),Xn(qa("input",{type:"text",class:"input create",ref:"create","onUpdate:modelValue":t[19]||(t[19]=function(e){return r.templateTitle=e}),onKeyup:t[20]||(t[20]=wc(function(){return o.createTemplate&&o.createTemplate.apply(o,arguments)},["enter"])),placeholder:"".concat(e.i18n.createTemplateTitlePlaceholder," *")},null,40,EM),[[ac,r.templateTitle]]),Ha(a,{value:r.templateType,"onUpdate:value":t[21]||(t[21]=function(e){return r.templateType=e}),control:r.controlTemplateType},null,8,["value","control"]),Ha(a,{value:r.templateBundle,"onUpdate:value":t[22]||(t[22]=function(e){return r.templateBundle=e}),control:o.controlTemplateBundle},null,8,["value","control"]),Ha(a,{value:r.templateTags,"onUpdate:value":t[23]||(t[23]=function(e){return r.templateTags=e}),control:o.controlTemplateTag},null,8,["value","control"]),qa("button",{textContent:he(e.i18n.createTemplate),class:te({active:r.templateTitle&&r.templateType}),disabled:!r.templateTitle||!r.templateType,onClick:t[24]||(t[24]=function(){return o.createTemplate&&o.createTemplate.apply(o,arguments)})},null,10,AM),qa("button",{class:"cancel",textContent:he(e.i18n.cancel),onClick:t[25]||(t[25]=function(){return o.cancel&&o.cancel.apply(o,arguments)})},null,8,DM)],512),[[pl,"create"===r.templateAction]]),Xn(qa("div",TM,[qa("div",IM,he(e.i18n.saveAsTemplate)+" ("+he(i.saveAsTemplate?e.i18n.element:e.$_state.postType)+") ",1),Xn(qa("input",{type:"text",class:"input save",ref:"templateTitle",spellcheck:"false","onUpdate:modelValue":t[26]||(t[26]=function(e){return r.templateTitle=e}),onKeyup:t[27]||(t[27]=wc(function(){return o.saveTemplate&&o.saveTemplate.apply(o,arguments)},["enter"])),placeholder:"".concat(e.i18n.placeholderTemplateName," *")},null,40,OM),[[ac,r.templateTitle]]),Ha(a,{value:r.templateType,"onUpdate:value":t[28]||(t[28]=function(e){return r.templateType=e}),control:r.controlTemplateType},null,8,["value","control"]),Ha(a,{value:r.templateBundle,"onUpdate:value":t[29]||(t[29]=function(e){return r.templateBundle=e}),control:o.controlTemplateBundle},null,8,["value","control"]),Ha(a,{value:r.templateTags,"onUpdate:value":t[30]||(t[30]=function(e){return r.templateTags=e}),control:o.controlTemplateTag},null,8,["value","control"]),qa("button",{textContent:he(e.i18n.saveAsTemplate),class:te({active:o.templateCanBeSaved}),onClick:t[31]||(t[31]=function(){return o.saveTemplate&&o.saveTemplate.apply(o,arguments)})},null,10,PM),qa("button",{class:"cancel",textContent:he(e.i18n.cancel),onClick:t[32]||(t[32]=function(){return o.cancel&&o.cancel.apply(o,arguments)})},null,8,FM)],512),[[pl,"save"===r.templateAction]]),Xn(qa("div",$M,[qa("div",{class:"title",textContent:he(e.i18n.importTemplate)},null,8,MM),r.isImportingTemplate?(Ta(),Ma("div",LM,V$(t[37]||(t[37]=[Ka('<div class="bricks-logo-animated"><div class="cube top-left"></div><div class="cube top-right"></div><div class="cube bottom-left"></div><div class="cube bottom-right"></div></div>',1)])))):(Ta(),Ma("form",{key:1,class:te(o.importTemplateFormWrapperClasses),ref:"templateImportForm",ondrop:""},[Xn(qa("p",{textContent:he(e.i18n.importTemplateDragAndDrop)},null,8,NM),[[pl,e.$_importHasDnDSupport]]),qa("input",{type:"file",id:"bricks-template-import-input",name:"files[]",multiple:"",onChange:t[33]||(t[33]=function(e){return o.importFiles(e.target.files)})},null,32),qa("label",{for:"bricks-template-import-input",textContent:he(e.i18n.selectFilesToImport)},null,8,jM)],2)),qa("button",{class:"cancel",textContent:he(e.i18n.cancel),onClick:t[34]||(t[34]=function(){return o.cancel&&o.cancel.apply(o,arguments)})},null,8,BM)],512),[[pl,"import"===r.templateAction]]),Xn(qa("ul",{class:te(["bricks-layout-wrapper",{isotope:"masonry"===r.view}]),"data-layout":r.view,ref:"gallery"},[(Ta(!0),Ma(Ca,null,Rr(o.templates,function(n,i){return Ta(),Ma("li",{key:i,class:"bricks-layout-item",onMouseleave:t[36]||(t[36]=function(t){return e.activeTemplate=void 0})},[qa("div",{class:te(["bricks-layout-item-inner",{"has-img":n.thumbnail}])},[qa("div",{class:te(["thumbnail-wrapper",{cancelled:n.cancelled}])},[null!=n&&n.thumbnail?(Ta(),Ma("img",{key:0,src:n.thumbnail},null,8,VM)):Qa("",!0),qa("div",qM,[qa("div",HM,[qa("div",zM,[e.$_state.postId==n.id?(Ta(),Ma("span",{key:0,class:"button editing",textContent:he(e.i18n.editing)},null,8,UM)):Qa("",!0),Xn(qa("span",{class:"button text type",textContent:he(o.getTemplateTypeLabel(n.type)),"data-balloon":e.i18n.type,"data-balloon-pos":"bottom"},null,8,WM),[[pl,n.type]])])]),n.author?(Ta(),Ma("div",GM,[qa("span",{class:"avatar",style:Y({backgroundImage:"url(".concat(n.author.avatar,")")})},null,4),n.author.url?(Ta(),Ma("a",{key:0,href:n.author.url,target:"_blank",onClick:t[35]||(t[35]=bc(function(){},["stop"])),textContent:he(n.author.name)},null,8,KM)):(Ta(),Ma("span",{key:1,textContent:he(n.author.name)},null,8,QM))])):Qa("",!0)])],2),qa("div",YM,[n.title?(Ta(),Ma("div",{key:0,class:"title",innerHTML:n.title,title:n.title},null,8,JM)):Qa("",!0),qa("div",XM,["myTemplates"===r.templateSource&&o.userCanEditTemplate(n)?(Ta(),Ma("a",{key:0,href:o.getEditTemplateLink(n.permalink),class:"button edit","data-balloon":e.i18n.edit,onClick:function(e){return o.handlePageClick(e,n)}},[Ha(l,{class:"edit",name:"edit"})],8,ZM)):Qa("",!0),e.$_userHasPermission("insert_templates")&&(-1===n.type.indexOf("wc_")||-1!==n.type.indexOf("wc_")&&e.bricks.wooCommerceActive)?(Ta(),Ma("span",{key:1,class:"button insert",onClick:function(e){return o.insertTemplate(o.templates[i])},"data-balloon":e.i18n.insert},[Ha(l,{class:"edit",name:"import"})],8,eL)):Qa("",!0),"myTemplates"===r.templateSource&&e.$_userHasPermission("import_export_templates")?(Ta(),Ma("a",{key:2,class:"button export",href:o.templateExportUrl(n.id),target:"_blank","data-balloon":e.i18n.export},[Ha(l,{class:"export",name:"export"})],8,tL)):Qa("",!0),e.$_userHasPermission("delete_templates")&&o.userCanEditTemplate(n)&&e.$_state.deleteItem!==n.id?(Ta(),Ma("span",{key:3,class:"button delete",onClick:bc(function(t){return e.$_deleteConfirmation(n.id)},["stop"]),"data-balloon":e.i18n.delete},[Ha(l,{class:"delete",name:"trash"})],8,nL)):Qa("",!0),o.userCanEditTemplate(n)&&e.$_state.deleteItem===n.id?(Ta(),Ma("span",{key:4,class:"button confirm",onClick:bc(function(e){return o.deleteTemplate(n.id)},["stop"]),"data-balloon":e.i18n.sure},[Ha(l,{class:"delete",name:"check"})],8,iL)):Qa("",!0),qa("a",{class:"button",href:n.permalink,target:"_blank","data-balloon":e.i18n.preview},[Ha(l,{class:"preview",name:"preview"})],8,rL)])])],2)],32)}),128)),t[38]||(t[38]=qa("li",{class:"bricks-layout-item bricks-isotope-sizer"},null,-1))],10,RM),[[pl,!r.loading&&o.templates.length&&!r.templateAction]]),Xn(qa("div",oL,[Ha(l,{name:"no-results"}),qa("div",aL,[o.message?(Ta(),Ma("p",{key:0,textContent:he(o.message)},null,8,sL)):Qa("",!0)])],512),[[pl,!r.loading&&!o.templates.length&&!r.templateAction]]),Xn(qa("div",lL,[t[39]||(t[39]=Ka('<div class="bricks-logo-animated"><div class="cube top-left"></div><div class="cube top-right"></div><div class="cube bottom-left"></div><div class="cube bottom-right"></div></div>',1)),qa("p",{textContent:he(r.isInsertingTemplate?"".concat(e.i18n.insertTemplate," ..."):"".concat(e.i18n.loadingTemplates," ..."))},null,8,cL)],512),[[pl,r.loading&&!r.templateThemeStyles.length&&!r.templateColorPalette.length]])],2)])}]]);var AL=EL;function DL(e){return function(e){if(Array.isArray(e))return TL(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return TL(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?TL(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function TL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var IL={key:0},OL={class:"filters"},PL=["textContent"],FL=["textContent"],$L={class:"flex"},ML=["textContent"],LL=["data-balloon"],NL=["textContent"],jL={class:"sub-header flex"},BL={class:"search-wrapper"},RL=["placeholder"],VL=["textContent"],qL=["innerHTML"],HL={key:0,class:"photos"},zL={class:"bricks-layout-wrapper isotope","data-layout":"masonry",ref:"isotope"},UL=["src"],WL={class:"overlay-wrapper"},GL={class:"item-header"},KL={class:"button likes"},QL=["onKeyup","placeholder"],YL=["onClick"],JL={key:0},XL={key:0},ZL=["textContent"],eN=["textContent"],tN={class:"user"},nN=["href"],iN=["textContent"],rN=["textContent"],oN={class:"brxe-alert rate-limit-reached"},aN=["textContent"],sN={class:"loading"},lN={class:"notification"},cN=["textContent"],uN={class:"notification"},dN=["innerHTML"],pN=["innerHTML"];function hN(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var l=i&&i.prototype instanceof s?i:s,c=Object.create(l.prototype);return fN(c,"_invoke",function(n,i,r){var o,s,l,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return o=t,s=0,l=e,p.n=n,a}};function h(n,i){for(s=n,l=i,t=0;!d&&c&&!r&&t<u.length;t++){var r,o=u[t],h=p.p,f=o[2];n>3?(r=f===i)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=h&&((r=n<2&&h<o[1])?(s=0,p.v=i,p.n=o[1]):h<f&&(r=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,p.n=f,s=0))}if(r||n>1)return a;throw d=!0,i}return function(r,u,f){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,f),s=u,l=f;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(p.n=-1),h(s,l)):p.n=l:p.v=l);try{if(c=2,o){if(s||(r="next"),t=o[r]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=e}else if((t=(d=p.n<0)?l:n.call(i,p))!==a)break}catch(t){o=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,r,o),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][i]?t(t([][i]())):(fN(t={},i,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,fN(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,fN(d,"constructor",c),fN(c,"constructor",l),l.displayName="GeneratorFunction",fN(c,r,"GeneratorFunction"),fN(d),fN(d,r,"Generator"),fN(d,i,function(){return this}),fN(d,"toString",function(){return"[object Generator]"}),(hN=function(){return{w:o,m:p}})()}function fN(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}fN=function(e,t,n,i){function o(t,n){fN(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},fN(e,t,n,i)}function mN(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,r)}var gN={data:function(){var e;return{renameFile:!1,downloading:[],downloadedItems:[],isotopeInstance:null,isSearch:!1,searchFor:void 0,searchResultsZero:!1,searchResultsTotal:null,searchResultsTotalPages:null,apiKey:null===(e=this.$_state.globalSettings)||void 0===e?void 0:e.apiKeyUnsplash,unsplash:{per_page:30,page:1,order_by:"latest",query:null},unsplashPhotos:[],loading:!0,error:!1,isLoadingMore:!1,rateLimitReached:!1,waitForNameInput:void 0,newFileName:""}},computed:{unsplashUrl:function(){return this.isSearch?"https://api.unsplash.com/search/photos?client_id=".concat(this.apiKey,"&per_page=").concat(this.unsplash.per_page,"&page=").concat(this.unsplash.page,"&query=").concat(this.unsplash.query):"https://api.unsplash.com/photos?client_id=".concat(this.apiKey,"&per_page=").concat(this.unsplash.per_page,"&page=").concat(this.unsplash.page,"&order_by=").concat(this.unsplash.order_by)},showLoadMore:function(){return!(!this.unsplashPhotos.length||this.rateLimitReached)&&(!this.isSearch||!!(this.searchResultsTotalPages&&this.unsplash.page<this.searchResultsTotalPages))},downloadText:function(){return"".concat(this.i18n.downloading,": ").concat(this.downloading.length)}},methods:{initDownload:function(e,t){if(!this.hasBeenDownloaded(e))if(this.renameFile){this.waitForNameInput=e.id;var n=t.currentTarget.parentNode.querySelector("input.rename");n&&this.$nextTick(function(){n.focus()})}else this.downloadItem(e)},continueDownload:function(e){this.newFileName&&(e.renamed=this.newFileName),this.waitForNameInput=void 0,this.newFileName="",this.downloadItem(e)},isDownloading:function(e){return!(null==e||!e.id)&&-1!=this.downloading.indexOf(e.id)},hasBeenDownloaded:function(e){return!(null==e||!e.id)&&-1!=this.downloadedItems.indexOf(e.id)},downloadItem:function(e){var t=this;this.isDownloading(e.id)||this.downloading.push(e.id),function(){var e,n=(e=hN().m(function e(n){var i,r,o,a,s;return hN().w(function(e){for(;;)switch(e.n){case 0:return i=n.hasOwnProperty("renamed")?[n.renamed]:[n.user.first_name?n.user.first_name.toLowerCase():"",n.user.last_name?n.user.last_name.toLowerCase():"",n.id.toLowerCase()],r={Authorization:"Client-ID ".concat(t.apiKey)},o=n.links.download_location,e.n=1,fetch(o,{method:"GET",headers:r});case 1:return a=e.v,e.n=2,a.json();case 2:s=e.v;try{o=s.url,t.$_http({data:{action:"bricks_download_image",download_url:o,file_name:i.join("-")},success:function(e){e=e.data,t.bricks.debug&&console.info("bricks_download_image:url:id",o,e),-1!=t.isDownloading(n)&&t.downloading.splice(t.downloading.indexOf(n.id),1),t.hasBeenDownloaded(n)||t.downloadedItems.push(n.id)}})}catch(e){}case 3:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(i,r){var o=e.apply(t,n);function a(e){mN(o,i,r,a,s,"next",e)}function s(e){mN(o,i,r,a,s,"throw",e)}a(void 0)})});return function(e){return n.apply(this,arguments)}}()(e)},orderByClass:function(e){return this.unsplash.order_by!==e||this.isSearch?null:"active"},order:function(e){this.clearSearch(),this.unsplash.order_by=e,this.unsplash.page=1},search:function(){this.searchFor?(this.isSearch=!0,this.unsplashPhotos=[],this.unsplash.query=this.searchFor):this.clearSearch()},clearSearch:function(){this.isSearch=!1,this.searchFor=void 0,this.searchResultsTotal=null,this.searchResultsTotalPages=null},getUnsplashPhotos:function(){var e=this;this.apiKey?this.unsplashUrl&&fetch(this.unsplashUrl).then(function(t){if(!(t.headers.get("x-ratelimit-remaining")<1))return e.rateLimitReached=!1,t.json();e.rateLimitReached=!0}).then(function(t){var n;1===e.unsplash.page&&(e.unsplashPhotos=[]),e.isSearch?(e.searchResultsTotal=t.total,e.searchResultsTotalPages=t.total_pages,0===e.searchResultsTotal?e.searchResultsZero=!0:e.searchResultsZero=!1,n=t.results):n=t,e.unsplashPhotos=e.unsplashPhotos.concat(n),setTimeout(function(){e.$_initIsotope()},1e3),setTimeout(function(){e.showLoadMore&&new BricksIntersect({element:e.$refs.loadMoreButton,root:e.$refs.loadMoreButton?e.$refs.loadMoreButton.closest(".content"):null,callback:function(){e.loadMore()},once:!1})},2e3)}).catch(function(t){e.error=e.i18n.unsplashErrorInvalidApiKey}):this.error=this.i18n.unsplashErrorNoApiKey},loadMore:function(){var e=this;!this.showLoadMore||this.isLoadingMore||this.rateLimitReached||(this.isLoadingMore=!0,this.unsplash.page++,setTimeout(function(){e.isLoadingMore=!1},1e3))}},mounted:function(){window.addEventListener("resize",this.$_initIsotope())},beforeUnmount:function(){window.removeEventListener("resize",this.$_initIsotope)},watch:{searchFor:function(){this.searchFor||this.clearSearch()},renameFile:function(){this.renameFile||(this.waitForNameInput=void 0)},unsplashUrl:{handler:"getUnsplashPhotos",immediate:!0}}};const vN=(0,xx.A)(gN,[["render",function(e,t,n,i,r,o){var a=$r("control-checkbox"),s=$r("icon");return Ta(),Ma("div",null,[!r.error&&r.apiKey?(Ta(),Ma("header",IL,[qa("ul",OL,[qa("li",{class:te([o.orderByClass("latest")]),onClick:t[0]||(t[0]=function(e){return o.order("latest")}),textContent:he(e.i18n.latest)},null,10,PL),qa("li",{class:te([o.orderByClass("popular")]),onClick:t[1]||(t[1]=function(e){return o.order("popular")}),textContent:he(e.i18n.mostPopular)},null,10,FL)]),qa("div",$L,[Xn(qa("span",{class:"download-info",textContent:he(o.downloadText)},null,8,ML),[[pl,r.downloading.length]]),qa("div",{class:"rename-images","data-balloon":r.renameFile?e.i18n.renameImagesEnabled:e.i18n.renameImagesDisabled,"data-balloon-pos":"bottom-right"},[qa("label",{class:te({disabled:!r.renameFile}),onClick:t[2]||(t[2]=function(e){return r.renameFile=!r.renameFile}),textContent:he(e.i18n.renameImages)},null,10,NL),Ha(a,{value:r.renameFile,"onUpdate:value":t[3]||(t[3]=function(e){return r.renameFile=e}),control:{type:"checkbox"},controlKey:"renameFile"},null,8,["value"])],8,LL)])])):Qa("",!0),qa("div",jL,[qa("div",BL,[Xn(qa("input",{type:"search","onUpdate:modelValue":t[4]||(t[4]=function(e){return r.searchFor=e}),autocomplete:"off",spellcheck:"false",onKeyup:t[5]||(t[5]=wc(function(){return o.search&&o.search.apply(o,arguments)},["enter"])),placeholder:e.i18n.unsplashSearchPlaceholder},null,40,RL),[[ac,r.searchFor]]),Xn(qa("span",{textContent:he(r.searchResultsTotal+" "+e.i18n.results)},null,8,VL),[[pl,r.searchResultsTotal]])]),qa("div",{class:"powered-by",innerHTML:e.i18n.poweredByUnsplash},null,8,qL)]),qa("main",{class:te(["content",{centered:!r.unsplashPhotos.length}])},[r.unsplashPhotos.length?(Ta(),Ma("div",HL,[qa("ul",zL,[(Ta(!0),Ma(Ca,null,Rr(r.unsplashPhotos,function(n,i){var a;return Ta(),Ma("li",{class:"bricks-layout-item unsplash",key:i},[qa("div",{class:te(["bricks-layout-item-inner","has-img",{downloaded:o.isDownloading(n)||o.hasBeenDownloaded(n)}])},[qa("img",{src:null==n||null===(a=n.urls)||void 0===a?void 0:a.small},null,8,UL),qa("div",WL,[qa("div",GL,[qa("div",KL,[Ha(s,{name:"heart"}),Ga(" "+he(null==n?void 0:n.likes),1)])]),Xn(qa("input",{type:"text",class:"rename","onUpdate:modelValue":t[6]||(t[6]=function(e){return r.newFileName=e}),autocomplete:"off",spellcheck:"false",onKeyup:wc(function(e){return o.continueDownload(n)},["enter"]),placeholder:e.i18n.newImageName},null,40,QL),[[pl,r.waitForNameInput===(null==n?void 0:n.id)],[ac,r.newFileName]]),Xn(qa("button",{class:te(["download",{downloading:o.isDownloading(n)}]),onClick:bc(function(e){return o.initDownload(n,e)},["stop"])},[o.hasBeenDownloaded(n)?(Ta(),Ma("span",{key:1,textContent:he(e.i18n.downloaded)},null,8,eN)):(Ta(),Ma("span",JL,[o.isDownloading(n)?(Ta(),Ma("span",XL,[Ha(s,{name:"refresh"})])):(Ta(),Ma("span",{key:1,textContent:he(e.i18n.clickToDownload)},null,8,ZL))]))],10,YL),[[pl,r.waitForNameInput!==(null==n?void 0:n.id)]]),qa("div",tN,[qa("a",{href:"".concat(n.user.links.html,"/?utm_source=bricksbuilderio&utm_medium=referral"),target:"_blank",onClick:t[7]||(t[7]=bc(function(){},["stop"]))},[qa("span",{class:"avatar",style:Y({backgroundImage:"url(".concat(n.user.profile_image.small,")")})},null,4),qa("span",{textContent:he(n.user.username)},null,8,iN)],8,nN)])])],2)])}),128)),t[9]||(t[9]=qa("li",{class:"bricks-layout-item bricks-isotope-sizer"},null,-1))],512),Xn(qa("button",{onClick:t[8]||(t[8]=function(){return o.loadMore&&o.loadMore.apply(o,arguments)}),class:"button load-more",textContent:he(e.i18n.loadMore),ref:"loadMoreButton"},null,8,rN),[[pl,o.showLoadMore]]),Xn(qa("div",oN,[qa("p",{class:"alert info",textContent:he(e.i18n.unsplashErrorRateLimitReached)},null,8,aN)],512),[[pl,r.rateLimitReached]])])):Qa("",!0),Xn(qa("div",sN,DL(t[10]||(t[10]=[Ka('<div class="bricks-logo-animated"><div class="cube top-left"></div><div class="cube top-right"></div><div class="cube bottom-left"></div><div class="cube bottom-right"></div></div>',1)])),512),[[pl,!r.error&&r.apiKey&&r.loading]]),Xn(qa("div",lN,[Ha(s,{name:"no-results"}),qa("p",{textContent:he(e.i18n.nothingFoundKeyword)},null,8,cN)],512),[[pl,!r.error&&r.searchResultsZero]]),Xn(qa("div",uN,[qa("p",{innerHTML:r.error},null,8,dN),qa("div",{innerHTML:e.i18n.unsplashSetApiKey},null,8,pN)],512),[[pl,r.error]])],2)])}]]);var yN=vN,bN={class:"two-column-popup"},kN={class:"content"},wN={key:0,class:"import action-wrapper"},_N=["textContent"],CN={key:1,class:"columns"};var xN={class:"flex"},SN={class:"source"},EN=["textContent"],AN={class:"actions"},DN=["textContent"],TN=["textContent"],IN=["data-balloon"],ON=["textContent"],PN=["data-balloon"],FN=["data-balloon"],$N={key:5,class:"breakpoints-wrapper"},MN={class:"breakpoints-bar"},LN={key:0},NN=["data-balloon","onClick"],jN={key:1,class:"separator"},BN={class:"canvas-actions"},RN=["data-balloon"],VN=["data-balloon"],qN=["data-balloon"],HN=["data-balloon"],zN=["data-balloon"];var UN={emits:["accept-all","reject-all","set-breakpoint","toggle-canvas-preview"],components:{TheNotifications:Xx},props:{items:{type:Array,default:function(){return[]}},importMode:{type:Boolean,default:!1},breakpoints:{type:Array,default:function(){return[]}},activeBreakpoint:{type:String,default:"desktop"},canvasPreviewVisible:{type:Boolean,default:!1},canvasDisabled:{type:Boolean,default:!1},showBreakpoints:{type:Boolean,default:!1},showCanvasToggle:{type:Boolean,default:!1}},computed:{hasColorPaletteWithDarkModeColors:function(){return this.$_state.colorPalette&&this.$_state.colorPalette.some(function(e){return e.colors&&e.colors.some(function(e){return e.dark})})},importTooltip:function(){var e=this.i18n.import;return"queries"===this.$_state.popup?e+=" (".concat(this.i18n.queries,")"):"classes"===this.$_state.popupTab?e+=" (".concat(this.i18n.classes,")"):"variables"===this.$_state.popupTab?e+=" (".concat(this.i18n.variables,")"):"settings"===this.$_state.popupTab&&(e+=" (".concat(this.i18n.settings,")")),e},exportTooltip:function(){var e=this.i18n.export;return"queries"===this.$_state.popup?e+=" (".concat(this.i18n.queries,")"):"classes"===this.$_state.popupTab?e+=" (".concat(this.i18n.classes,")"):"variables"===this.$_state.popupTab?e+=" (".concat(this.i18n.variables,")"):"settings"===this.$_state.popupTab&&(e+=" (".concat(this.i18n.settings,")")),e},showImporter:function(){return!(this.importMode||["colors","typography","spacing","framework","theme-styles"].includes(this.$_state.popupTab)&&"queries"!==this.$_state.popup)},headerTitle:function(){return this.importMode?this.i18n.importClasses:"styles"===this.$_state.popup?this.i18n.styleManager:"queries"===this.$_state.popup?this.i18n.queryManager:this.i18n.manage},showFullscreenButton:function(){return!this.importMode&&"queries"!==this.$_state.popup},showCloseButton:function(){return!this.importMode&&this.$_state.popupFullScreen&&"queries"!==this.$_state.popup},showToggleTrash:function(){return!this.importMode&&"classes"===this.$_state.popupTab&&"queries"!==this.$_state.popup}},methods:{toggleFullScreen:function(){this.$_state.popupFullScreen=!this.$_state.popupFullScreen,this.$_state.popupFullScreen?localStorage.setItem("brx_builder_popupFullScreen",1):localStorage.removeItem("brx_builder_popupFullScreen")},toggleTrash:function(){this.$_state.popupView="trash"===this.$_state.popupView?"":"trash",this.$_state.popupFilters.categories=[]},setBreakpoint:function(e){this.$emit("set-breakpoint",e)},toggleCanvasPreview:function(){this.$emit("toggle-canvas-preview")},closePopup:function(){this.$_state.popup=null},exportData:function(){var e={},t=this.$_state.popupTab;"queries"===this.$_state.popup&&(t="queries",e={queries:this.$_state.globalQueries,categories:this.$_state.globalQueriesCategories});var n="bricks-".concat(t);switch(t){case"classes":e=this.$_addCategoryMetadataToClasses(this.$_state.globalClasses);break;case"variables":e={variables:this.$_state.globalVariables,categories:this.$_state.globalVariablesCategories};break;case"settings":e={styleManager:this.$_state.styleManager,version:this.bricks.version},n="bricks-style-manager-settings"}this.$_exportAsJsonFile(e,n)},saveData:function(){"alphabetically"===this.$_state.popupFilters.sort&&this.items.sort(function(e,t){return e.name.localeCompare(t.name)}),this.$_savePost()}}};var WN=(0,xx.A)(UN,[["render",function(e,t,n,i,r,o){var a=this,s=$r("icon"),l=$r("the-notifications");return Ta(),Ma("header",xN,[qa("div",SN,[qa("h2",{class:"title",textContent:he(o.headerTitle)},null,8,EN)]),qa("ul",AN,[n.importMode?(Ta(),Ma("li",{key:0,class:"accept-all success has-text",onClick:t[0]||(t[0]=function(t){return e.$emit("accept-all")})},[Ha(s,{name:"check"}),qa("span",{textContent:he("".concat(e.i18n.accept,": ").concat(e.i18n.all))},null,8,DN)])):Qa("",!0),n.importMode?(Ta(),Ma("li",{key:1,class:"reject-all danger has-text",onClick:t[1]||(t[1]=function(t){return e.$emit("reject-all")})},[Ha(s,{name:"close"}),qa("span",{textContent:he("".concat(e.i18n.reject,": ").concat(e.i18n.all))},null,8,TN)])):Qa("",!0),o.showToggleTrash?(Ta(),Ma("li",{key:2,class:te(["trash",{active:"trash"===this.$_state.popupView}]),"data-balloon":e.i18n.trash,"data-balloon-pos":"bottom",onClick:t[2]||(t[2]=function(e){return o.toggleTrash()})},[Ha(s,{name:"trash"}),Xn(qa("span",{class:"count",textContent:he(e.$_state.globalClassesTrash.length)},null,8,ON),[[pl,e.$_state.globalClassesTrash.length]])],10,IN)):Qa("",!0),o.showImporter?(Ta(),Ma("li",{key:3,class:te(["import",{active:"import"===e.$_state.popupView}]),"data-balloon":o.importTooltip,"data-balloon-pos":"bottom",onClick:t[3]||(t[3]=function(t){return e.$_state.popupView="import"===e.$_state.popupView?null:"import"})},[Ha(s,{name:"import"})],10,PN)):Qa("",!0),o.showImporter?(Ta(),Ma("li",{key:4,class:"export","data-balloon":o.exportTooltip,"data-balloon-pos":"bottom",onClick:t[4]||(t[4]=function(e){return o.exportData()})},[Ha(s,{name:"export"})],8,FN)):Qa("",!0),!n.importMode&&n.showCanvasToggle?(Ta(),Ma("li",$N,[qa("div",MN,[n.showBreakpoints?(Ta(),Ma("ul",LN,[(Ta(!0),Ma(Ca,null,Rr(n.breakpoints,function(e){return Ta(),Ma("li",{key:e.key,class:te(["breakpoint",{base:null==e?void 0:e.base},{active:n.activeBreakpoint===e.key},{paused:e.paused}]),"data-balloon":e.label,"data-balloon-pos":"bottom",onClick:bc(function(t){return o.setBreakpoint(e.key)},["stop"])},[Ha(s,{name:e.icon||"desktop"},null,8,["name"])],10,NN)}),128))])):Qa("",!0),n.showBreakpoints?(Ta(),Ma("span",jN)):Qa("",!0),qa("ul",BN,[n.canvasPreviewVisible&&o.hasColorPaletteWithDarkModeColors?(Ta(),Ma("li",{key:0,"data-balloon":"".concat(e.i18n.mode,": ").concat("light"===e.$_state.mode?e.i18n.light:e.i18n.dark),"data-balloon-pos":"bottom-right",onClick:t[5]||(t[5]=bc(function(t){return e.$_state.mode="light"===e.$_state.mode?"dark":"light"},["stop"]))},[Ha(s,{name:"light"===e.$_state.mode?"sun":"moon"},null,8,["name"])],8,RN)):Qa("",!0),qa("li",{class:te(["canvas-toggle",{active:n.canvasPreviewVisible,disabled:n.canvasDisabled}]),"data-balloon":n.canvasDisabled?e.i18n.canvasPreviewDisabled:e.i18n.toggleCanvasPreview,"data-balloon-pos":"bottom-right",onClick:t[6]||(t[6]=bc(function(e){return o.toggleCanvasPreview()},["stop"]))},[Ha(s,{name:"preview"})],10,VN)])])])):Qa("",!0),o.showCloseButton?(Ta(),Ma("li",{key:6,class:"close-popup","data-balloon":e.i18n.close,"data-balloon-pos":"bottom-right",onClick:t[7]||(t[7]=function(e){return a.$_closePopup()})},[Ha(s,{name:"close"})],8,qN)):Qa("",!0),o.showFullscreenButton?(Ta(),Ma("li",{key:7,class:"fullscreen","data-balloon":e.$_state.popupFullScreen?"".concat(e.i18n.fullScreen," (").concat(e.i18n.off,")"):e.i18n.fullScreen,"data-balloon-pos":"bottom-right",onClick:t[8]||(t[8]=function(e){return o.toggleFullScreen()})},[Ha(s,{name:e.$_state.popupFullScreen?"collapse":"expand"},null,8,["name"])],8,HN)):Qa("",!0),n.importMode?Qa("",!0):(Ta(),Ma("li",{key:8,class:te(["save",{active:e.$_state.isSaving}]),"data-balloon":e.i18n.save,"data-balloon-pos":"bottom-right",onClick:t[9]||(t[9]=function(e){return o.saveData()})},[Ha(s,{name:e.$_state.isSaving?"refresh":"save",class:te({"bricks-animation-load8":e.$_state.isSaving})},null,8,["name","class"]),Ha(l,{placement:"popup"})],10,zN))])])}]]),GN={class:"column categories"},KN={class:"toolbar"},QN=["textContent"],YN={class:"actions flex"},JN=["data-balloon"],XN=["data-balloon"],ZN=["data-balloon"],ej={class:"content"},tj=["textContent"],nj=["textContent"],ij=["textContent"],rj={class:"count"},oj=["data-index","data-id","data-category-id"],aj=["id","readonly","onUpdate:modelValue"],sj={class:"flex"},lj=["onClick"],cj={key:1,class:"count"},uj={class:"count"},dj={class:"input-wrapper"},pj=["placeholder"],hj={key:0,class:"actions"};function fj(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return mj(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mj(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function mj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var gj={props:{items:{type:Array,default:function(){return[]}}},data:function(){return{categoryInput:"",categoryListKey:Date.now()}},computed:{selectedCategoryIds:function(){return this.$_state.popupFilters.categories},activeCategoryId:function(){return 1===this.selectedCategoryIds.length?this.selectedCategoryIds[0]:null},categories:function(){return this.getCategories()},globalQueryCount:function(){return this.items.length},countByCategoryId:function(){var e,t=this,n={},i=fj(this.items);try{var r=function(){var i=e.value,r=null==i?void 0:i.category;if(!r||!t.categories.find(function(e){return e.id===r}))return n.uncategorized=(n.uncategorized||0)+1,1;Object.prototype.hasOwnProperty.call(n,r)?n[r]++:n[r]=1};for(i.s();!(e=i.n()).done;)r()}catch(e){i.e(e)}finally{i.f()}return n},uncategorizedCount:function(){return this.countByCategoryId.uncategorized||0}},methods:{getCategories:function(){return"queries"===this.$_state.popup?this.$_state.globalQueriesCategories:"classes"===this.$_state.popupTab?this.$_state.globalClassesCategories:"variables"===this.$_state.popupTab?this.$_state.globalVariablesCategories:[]},isSelected:function(e){return"all"===e?0===this.selectedCategoryIds.length:"uncategorized"===e?this.selectedCategoryIds.includes("uncategorized"):this.selectedCategoryIds.includes(e)},selectAll:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$_state.popupFilters.categories.length?this.$_state.popupFilters.categories=[]:e&&(this.$_state.popupFilters.categories=this.categories.map(function(e){return e.id}))},selectUncategorized:function(){this.$_state.popupFilters.categories=["uncategorized"]},viewScale:function(e){},createCategory:function(){var e=this;if(this.categoryInput&&(this.categoryInput=this.categoryInput.trim(),"all"!==this.categoryInput.toLowerCase()&&"uncategorized"!==this.categoryInput.toLowerCase())){var t=this.categories.find(function(t){return t.name===e.categoryInput});if(t)this.$_state.popupFilters.categories=[t.id];else{var n={id:this.$_generateId(),name:this.categoryInput};"classes"===this.$_state.popupTab?this.$_state.globalClassesCategories.push(n):"variables"===this.$_state.popupTab?this.$_state.globalVariablesCategories.push(n):"queries"===this.$_state.popup&&this.$_state.globalQueriesCategories.push(n),this.$_state.popupFilters.categories=[n.id],this.$_showMessage("".concat(this.i18n.saved,": ").concat(this.i18n.category)),this.categoryInput=""}}},exportSelectedCategories:function(){var e,t=this.$_state.popupFilters.categories.filter(function(e){return"all"!==e}),n={};"classes"===this.$_state.popupTab&&(e="classes",n=(n=this.$_addCategoryMetadataToClasses(this.$_state.globalClasses)).filter(function(e){return!t.length||t.includes(null==e?void 0:e.category)})),"variables"===this.$_state.popupTab&&(e="variables",n={variables:this.$_state.globalVariables.filter(function(e){return!t.length||t.includes(null==e?void 0:e.category)}),categories:this.$_state.globalVariablesCategories.filter(function(e){return!t.length||t.includes(e.id)})}),"queries"===this.$_state.popup&&(e="queries",n={queries:this.$_state.globalQueries.filter(function(e){return!t.length||t.includes(null==e?void 0:e.category)}),categories:this.$_state.globalQueriesCategories.filter(function(e){return!t.length||t.includes(e.id)})}),this.$_exportAsJsonFile(n,"bricks-styles-".concat(e,"-categories"))},deleteSelectedCategories:function(){var e=this,t=!1,n=[];this.selectedCategoryIds.forEach(function(i){var r=e.categories.find(function(e){return e.id===i});null!=r&&r.scale&&(n.push(i),confirm(e.i18n.popupManagerCategoryDeleteConfirm)||(t=!0))}),t||("variables"===this.$_state.popupTab?this.$_state.globalVariables=this.$_state.globalVariables.filter(function(t){return null==t||!t.category||!n.includes(t.category)||!e.selectedCategoryIds.includes(t.category)}):"classes"===this.$_state.popupTab&&(this.$_state.globalClasses=this.$_state.globalClasses.filter(function(t){return null==t||!t.category||!n.includes(t.category)||!e.selectedCategoryIds.includes(t.category)})),"classes"===this.$_state.popupTab?this.$_state.globalClassesCategories=this.$_state.globalClassesCategories.filter(function(t){return!e.selectedCategoryIds.includes(t.id)}):"variables"===this.$_state.popupTab?this.$_state.globalVariablesCategories=this.$_state.globalVariablesCategories.filter(function(t){return!e.selectedCategoryIds.includes(t.id)}):"queries"===this.$_state.popup&&(this.$_state.globalQueriesCategories=this.$_state.globalQueriesCategories.filter(function(t){return!e.selectedCategoryIds.includes(t.id)})),this.items.forEach(function(t){null!=t&&t.category&&e.selectedCategoryIds.includes(t.category)&&delete t.category}),this.$_state.popupFilters.categories=[],this.$_showMessage("".concat(this.i18n.deleted,": ").concat(this.i18n.category)))}},watch:{globalQueryCount:function(){this.categoryListKey=Date.now()}}};var vj=(0,xx.A)(gj,[["render",function(e,t,n,i,r,o){var a=$r("icon"),s=$r("sortable");return Ta(),Ma("div",GN,[qa("div",KN,[qa("h6",{textContent:he(e.i18n.categories)},null,8,QN),qa("ul",YN,[qa("li",{"data-balloon":"".concat(e.i18n.export,": ").concat(e.i18n.selected," (").concat(o.selectedCategoryIds.length||1,")"),"data-balloon-pos":"bottom-right"},[Ha(a,{name:"export",onClick:t[0]||(t[0]=function(e){return o.exportSelectedCategories()})})],8,JN),o.selectedCategoryIds.length&&!o.selectedCategoryIds.includes("uncategorized")?(Ta(),Ma("li",{key:0,"data-balloon":"categories"===e.$_state.deleteItem?e.i18n.sure:"".concat(e.i18n.delete,": ").concat(e.i18n.selected," (").concat(o.selectedCategoryIds.length,")"),"data-balloon-pos":"bottom-right"},[Ha(a,{name:"categories"===e.$_state.deleteItem?"check":"trash",onClick:t[1]||(t[1]=function(t){return"categories"===e.$_state.deleteItem?o.deleteSelectedCategories():e.$_deleteConfirmation("categories")})},null,8,["name"])],8,XN)):Qa("",!0),qa("li",{"data-balloon":o.selectedCategoryIds.length?"".concat(e.i18n.clear,": ").concat(e.i18n.selected," (").concat(o.selectedCategoryIds.length,")"):"".concat(e.i18n.select,": ").concat(e.i18n.all),"data-balloon-pos":"bottom-right",onClick:t[2]||(t[2]=function(e){return o.selectAll(!0)})},[Ha(a,{name:o.selectedCategoryIds.length?"square-fill":"square"},null,8,["name"])],8,ZN)])]),qa("div",ej,[(Ta(),La(s,{tag:"ul",key:r.categoryListKey,parent:o.categories,options:{direction:"vertical",itemClass:"sortable",handleClass:"move"}},{default:Jn(function(){return[qa("li",{class:te(["all",{selected:o.isSelected("all")}]),onClick:t[3]||(t[3]=bc(function(e){return o.selectAll()},["stop"]))},[qa("span",{class:"name",textContent:he("".concat(e.i18n.all))},null,8,tj),qa("span",{class:"count",textContent:he(n.items.length)},null,8,nj)],2),qa("li",{class:te(["uncategorized",{selected:o.isSelected("uncategorized")}]),onClick:t[4]||(t[4]=bc(function(e){return o.selectUncategorized()},["stop"]))},[qa("span",{class:"name",textContent:he("".concat(e.i18n.uncategorized))},null,8,ij),qa("span",rj,he(o.uncategorizedCount),1)],2),(Ta(!0),Ma(Ca,null,Rr(o.categories,function(t,n){return Ta(),Ma("li",{key:t.id,ref_for:!0,ref:"categoryItem",class:te([{"category-new":t._isNew},{selected:o.isSelected(t.id)},{sortable:!0}]),"data-index":n,"data-id":t.id,"data-category-id":t.id},[Xn(qa("input",{type:"text",id:t.id,class:"move name",autocomplete:"off",spellcheck:"false",readonly:t.id!==o.activeCategoryId,"onUpdate:modelValue":function(e){return t.name=e}},null,8,aj),[[ac,t.name]]),qa("div",sj,[null!=t&&t.scale?(Ta(),Ma("span",{key:0,class:"count scale",onClick:function(e){return o.viewScale(t)}},he(e.i18n.scale),9,lj)):Qa("",!0),t._isNew?(Ta(),Ma("span",cj,he(e.i18n.new),1)):Qa("",!0),qa("span",uj,he(o.countByCategoryId[null==t?void 0:t.id]||0),1)])],10,oj)}),128))]}),_:1},8,["parent"]))]),qa("div",dj,[Xn(qa("input",{ref:"categoryInput","onUpdate:modelValue":t[5]||(t[5]=function(e){return r.categoryInput=e}),type:"text",autocomplete:"off",spellcheck:"false",placeholder:"".concat(e.i18n.newCategoryName," ..."),onKeyup:t[6]||(t[6]=wc(function(e){return o.createCategory()},["enter"]))},null,40,pj),[[ac,r.categoryInput]]),r.categoryInput?(Ta(),Ma("div",hj,[Ha(a,{name:"save","data-balloon":e.i18n.create,"data-balloon-pos":"top-right",onClick:t[7]||(t[7]=bc(function(e){return o.createCategory()},["stop"]))},null,8,["data-balloon"])])):Qa("",!0)])])}]]),yj={class:"column items"},bj={class:"toolbar"},kj=["textContent"],wj={class:"actions flex"},_j=["data-balloon"],Cj=["data-balloon"],xj=["data-balloon"],Sj={class:"content"},Ej=["data-id","data-index"],Aj={class:"move name"},Dj={key:1,class:"no-results"},Tj={key:0,class:"input-wrapper"},Ij=["placeholder"],Oj={class:"actions"};var Pj={data:function(){return{selectorInput:""}},computed:{popupFilteredItems:function(){return this.$_state.popupFilteredItems},popupSelectedItems:function(){return this.$_state.popupSelectedItems}},methods:{createGlobalQuery:function(){var e=this,t=this.$_state.globalQueries.find(function(t){return t.name===e.selectorInput});if(t)this.$_showError(this.bricks.i18n.queryManagerErrorNameExists);else{if(t={id:this.$_generateId(),name:this.selectorInput,desc:"",category:"",settings:{},modified:Date.now(),user_id:this.bricks.loadData.currentUserId},1===this.$_state.popupFilters.categories.length){var n=this.$_state.popupFilters.categories[0];n&&"uncategorized"!==n&&(t.category=n)}this.$_state.globalQueries.push(t),this.selectorInput="",this.$_showMessage("".concat(this.bricks.i18n.globalQuery,": ").concat(this.bricks.i18n.created))}},deleteSelectedQueries:function(){var e=this;this.popupSelectedItems.length&&(this.$_state.globalQueries=this.$_state.globalQueries.filter(function(t){return!e.popupSelectedItems.includes(t.id)}),this.$_state.popupSelectedItems=[],this.$_showMessage("".concat(this.i18n.deleted,": ").concat(this.i18n.queries)))},selectAll:function(){this.popupSelectedItems.length?this.$_state.popupSelectedItems=[]:this.$_state.popupSelectedItems=this.popupFilteredItems.map(function(e){return e.id})},exportSelectedQueries:function(){var e=this,t=this.$_state.globalQueries.filter(function(t){return e.popupSelectedItems.includes(t.id)}),n=[];t.forEach(function(e){e.category&&!n.includes(e.category)&&n.push(e.category)});var i={queries:t,categories:this.$_state.globalQueriesCategories.filter(function(e){return n.includes(e.id)})};this.$_exportAsJsonFile(i,"bricks-selected-global-queries")}}};var Fj={class:"column edit"},$j={class:"toolbar"},Mj=["textContent"],Lj={class:"content"},Nj={class:"form-group query-name"},jj={class:"form-group query-category"},Bj={class:"form-group query-description"},Rj=["textContent"],Vj={class:"form-group query-settings"},qj=["textContent"],Hj={class:"bricks-panel"},zj={class:"bricks-panel-controls"},Uj={class:"controls"};function Wj(e){return Wj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wj(e)}function Gj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Kj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gj(Object(n),!0).forEach(function(t){Qj(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gj(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Qj(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Wj(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Wj(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Wj(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yj={data:function(){return{activeQuery:{}}},computed:{activeQueryId:function(){return 1===this.$_state.popupSelectedItems.length?this.$_state.popupSelectedItems[0]:null}},methods:{saveQuery:function(){var e=this;this.activeQuery.name?this.activeQuery.settings?(this.$_state.globalQueries=this.$_state.globalQueries.map(function(t){return t.id===e.activeQueryId?Kj(Kj({},t),{},{name:e.activeQuery.name,settings:e.activeQuery.settings,category:e.activeQuery.category,desc:e.activeQuery.desc}):t}),this.$_showMessage("".concat(this.i18n.saved,": ").concat(this.i18n.query))):this.$_showError("".concat(this.i18n.error,": ").concat(this.i18n.querySettings)):this.$_showError("".concat(this.i18n.error,": ").concat(this.i18n.queryName))}},watch:{activeQueryId:{handler:function(e,t){var n;e&&e!==t&&this.$_rerenderControls(),this.activeQuery=e?this.$_state.globalQueries.find(function(t){return t.id===e}):{},null!==(n=this.activeQuery)&&void 0!==n&&n.settings&&!Array.isArray(this.activeQuery.settings)||(this.activeQuery.settings={})},immediate:!0}}};var Jj={components:{PopupManagerHeader:WN,PopupManagerCategories:vj,PopupQueryItems:(0,xx.A)(Pj,[["render",function(e,t,n,i,r,o){var a=$r("icon"),s=$r("sortable"),l=$r("control-info");return Ta(),Ma("div",yj,[qa("div",bj,[qa("h6",{textContent:he("".concat(e.i18n.queries," (").concat(o.popupFilteredItems.length,")"))},null,8,kj),qa("ul",wj,[Xn(qa("li",{"data-balloon":"".concat(e.i18n.export,": ").concat(e.i18n.selected," (").concat(o.popupSelectedItems.length,")"),"data-balloon-pos":"bottom-right",onClick:t[0]||(t[0]=function(e){return o.exportSelectedQueries()})},[Ha(a,{name:"export"})],8,_j),[[pl,o.popupSelectedItems.length]]),o.popupSelectedItems.length?(Ta(),Ma("li",{key:0,"data-balloon":"query"===e.$_state.deleteItem?e.i18n.sure:"".concat(e.i18n.delete,": ").concat(e.i18n.selected," (").concat(o.popupSelectedItems.length,")"),"data-balloon-pos":"bottom-right",onClick:t[1]||(t[1]=function(t){return"query"===e.$_state.deleteItem?o.deleteSelectedQueries():e.$_deleteConfirmation("query")})},[Ha(a,{name:"query"===e.$_state.deleteItem?"check":"trash"},null,8,["name"])],8,Cj)):Qa("",!0),qa("li",{"data-balloon":o.popupFilteredItems.length?"".concat(e.i18n.clear,": ").concat(e.i18n.selected," (").concat(o.popupSelectedItems.length,")"):"".concat(e.i18n.select,": ").concat(e.i18n.all),"data-balloon-pos":"bottom-right",onClick:t[2]||(t[2]=function(e){return o.selectAll()})},[Ha(a,{name:o.popupSelectedItems.length?"square-fill":"square"},null,8,["name"])],8,xj)])]),qa("div",Sj,[o.popupFilteredItems.length?(Ta(),La(s,{key:0,tag:"ul",parent:e.$_state.globalQueries,options:{direction:"vertical",itemClass:"sortable",handleClass:"move"}},{default:Jn(function(){return[(Ta(!0),Ma(Ca,null,Rr(o.popupFilteredItems,function(e,t){return Ta(),Ma("li",{key:e.id,class:te(["sortable",{selected:o.popupSelectedItems.includes(e.id)}]),"data-id":e.id,"data-index":t},[qa("span",Aj,he(e.name),1)],10,Ej)}),128))]}),_:1},8,["parent"])):(Ta(),Ma("div",Dj,[Ha(l,{control:{content:e.i18n.nothingFound}},null,8,["control"])]))]),e.$_userHasPermission("access_query_manager")?(Ta(),Ma("div",Tj,[Xn(qa("input",{ref:"selectorInput","onUpdate:modelValue":t[3]||(t[3]=function(e){return r.selectorInput=e}),type:"text",autocomplete:"off",spellcheck:"false",placeholder:"".concat(e.i18n.queryNameNewPlaceholder," ..."),onKeyup:t[4]||(t[4]=wc(function(e){return o.createGlobalQuery()},["enter"]))},null,40,Ij),[[ac,r.selectorInput]]),qa("div",Oj,[Ha(a,{class:te({disabled:0===r.selectorInput.length}),name:"save","data-balloon":"".concat(e.i18n.create," (").concat(e.i18n.query,")"),"data-balloon-pos":"top-right",onClick:t[5]||(t[5]=function(e){return o.createGlobalQuery()})},null,8,["class","data-balloon"])])])):Qa("",!0)])}]]),PopupQueryEditor:(0,xx.A)(Yj,[["render",function(e,t,n,i,r,o){var a=$r("control-select"),s=$r("control-query");return Ta(),Ma("div",Fj,[qa("div",$j,[qa("h6",{textContent:he("".concat(e.i18n.edit,": ").concat(e.i18n.query))},null,8,Mj),qa("code",null,"ID: "+he(o.activeQueryId),1)]),qa("div",Lj,[qa("form",{onSubmit:t[3]||(t[3]=bc(function(e){return o.saveQuery()},["prevent"]))},[qa("div",Nj,[qa("label",null,he(e.i18n.name),1),Xn(qa("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=function(e){return r.activeQuery.name=e}),autocomplete:"off",spellcheck:"false"},null,512),[[ac,r.activeQuery.name]])]),qa("div",jj,[qa("label",null,he(e.i18n.category),1),Ha(a,{value:r.activeQuery.category,"onUpdate:value":t[1]||(t[1]=function(e){return r.activeQuery.category=e}),control:{options:e.$_state.globalQueriesCategories.map(function(e){return{value:e.id,label:e.name}}),placeholder:e.i18n.select,clearable:!0}},null,8,["value","control"])]),qa("div",Bj,[qa("label",{textContent:he(e.i18n.description)},null,8,Rj),Xn(qa("textarea",{class:"input","onUpdate:modelValue":t[2]||(t[2]=function(e){return r.activeQuery.desc=e}),autocomplete:"off",spellcheck:"false"},null,512),[[ac,r.activeQuery.desc]])]),qa("div",Vj,[qa("label",{textContent:he(e.i18n.settings)},null,8,qj),qa("div",Hj,[qa("div",zj,[qa("div",Uj,[(Ta(),La(s,{key:e.$_state.rerenderControls,controlKey:r.activeQuery.id,value:r.activeQuery.settings,activeQueryId:o.activeQueryId},null,8,["controlKey","value","activeQueryId"]))])])])])],32)])])}]])},data:function(){return{importResults:[],importMode:!1,hasUnsavedChanges:!1}},computed:{allQueries:function(){return this.$_state.globalQueries},filteredQueries:function(){return this.$_state.popupFilteredItems},selectedQueryCount:function(){return this.$_state.popupSelectedItems.length}},methods:{queriesImported:function(e){var t=this;if(Array.isArray(e)&&e.length){var n=e.flat(),i=[],r=[],o=[],a=[];n.forEach(function(e){(e.queries||[]).forEach(function(e){var n=t.$_state.globalQueries.find(function(t){return t.id===e.id});n?(Object.assign(n,e),o.push(n)):(t.$_state.globalQueries.push(e),i.push(e))}),(e.categories||[]).forEach(function(e){var n=t.$_state.globalQueriesCategories.find(function(t){return t.id===e.id});n?(Object.assign(n,e),a.push(n)):(t.$_state.globalQueriesCategories.push(e),r.push(e))})}),this.$_state.popupFilteredItems=this.$_state.globalQueries,this.$_state.popupView=null,i.length&&this.$_state.notifications.push({action:"success",desc:"".concat(this.i18n.imported,": ").concat(this.i18n.queries," (").concat(i.length,")")}),r.length&&this.$_state.notifications.push({action:"success",desc:"".concat(this.i18n.imported,": ").concat(this.i18n.categories," (").concat(r.length,")")}),o.length&&this.$_state.notifications.push({action:"info",desc:"".concat(this.i18n.updated,": ").concat(this.i18n.queries," (").concat(o.length,")")}),a.length&&this.$_state.notifications.push({action:"info",desc:"".concat(this.i18n.updated,": ").concat(this.i18n.categories," (").concat(a.length,")")})}}},watch:{selectedQueryCount:function(e){this.$_state.popupView=1===e?"edit":null}}};var Xj=(0,xx.A)(Jj,[["render",function(e,t,n,i,r,o){var a=$r("popup-manager-header"),s=$r("control-file-import"),l=$r("popup-manager-categories"),c=$r("popup-query-items"),u=$r("popup-query-editor");return Ta(),Ma("div",bN,[Ha(a,{items:o.allQueries},null,8,["items"]),qa("main",kN,["import"===e.$_state.popupView?(Ta(),Ma("div",wN,[qa("div",{class:"title",textContent:he("".concat(e.i18n.import,": ").concat(e.i18n.queries))},null,8,_N),Ha(s,{control:{fileType:"application/json",dragAndDropNote:e.i18n.dropFilesJSON},results:r.importResults,onImported:o.queriesImported,onCloseMe:t[0]||(t[0]=function(t){return e.$_state.popupView=null})},null,8,["control","results","onImported"])])):(Ta(),Ma("div",CN,[Ha(l,{items:o.allQueries},null,8,["items"]),Ha(c,{queries:o.filteredQueries},null,8,["queries"]),e.$_state.popupSelectedItems.length?(Ta(),La(u,{key:0})):Qa("",!0)]))])])}]]),Zj={key:0},eB={class:"search-wrapper"},tB=["placeholder"],nB=["data-balloon"],iB=["data-balloon"],rB=["data-balloon"],oB=["textContent"],aB=["onClick"],sB={class:"font-set-name"},lB={class:"font-set-count"},cB={class:"fonts-grid"},uB={class:"font-main"},dB={class:"font-title-wrapper"},pB=["textContent"],hB={class:"font-actions"},fB=["data-balloon","onClick"],mB=["data-balloon","onClick"],gB=["textContent"],vB=["innerHTML"],yB={class:"fonts-grid"},bB=["placeholder"],kB={key:1};var wB={class:"font-item"},_B={class:"font-main"},CB={class:"font-title-wrapper"},xB=["textContent"],SB={class:"font-actions"},EB=["data-balloon"],AB=["data-balloon"],DB=["data-balloon"],TB=["data-balloon","disabled"],IB=["textContent"],OB={class:"font-info"},PB={class:"font-meta"},FB=["textContent","title"],$B=["textContent"],MB={key:1,class:"font-variants"},LB=["textContent"];function NB(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var l=i&&i.prototype instanceof s?i:s,c=Object.create(l.prototype);return jB(c,"_invoke",function(n,i,r){var o,s,l,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return o=t,s=0,l=e,p.n=n,a}};function h(n,i){for(s=n,l=i,t=0;!d&&c&&!r&&t<u.length;t++){var r,o=u[t],h=p.p,f=o[2];n>3?(r=f===i)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=h&&((r=n<2&&h<o[1])?(s=0,p.v=i,p.n=o[1]):h<f&&(r=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,p.n=f,s=0))}if(r||n>1)return a;throw d=!0,i}return function(r,u,f){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,f),s=u,l=f;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(p.n=-1),h(s,l)):p.n=l:p.v=l);try{if(c=2,o){if(s||(r="next"),t=o[r]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=e}else if((t=(d=p.n<0)?l:n.call(i,p))!==a)break}catch(t){o=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,r,o),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][i]?t(t([][i]())):(jB(t={},i,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,jB(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,jB(d,"constructor",c),jB(c,"constructor",l),l.displayName="GeneratorFunction",jB(c,r,"GeneratorFunction"),jB(d),jB(d,r,"Generator"),jB(d,i,function(){return this}),jB(d,"toString",function(){return"[object Generator]"}),(NB=function(){return{w:o,m:p}})()}function jB(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}jB=function(e,t,n,i){function o(t,n){jB(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},jB(e,t,n,i)}function BB(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,r)}function RB(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var o=e.apply(t,n);function a(e){BB(o,i,r,a,s,"next",e)}function s(e){BB(o,i,r,a,s,"throw",e)}a(void 0)})}}function VB(e){return VB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},VB(e)}var qB={props:{id:{type:String,default:""},family:{type:String,required:!0},type:{type:String,required:!0},category:{type:String,default:""},variants:{type:Array,default:function(){return[]}},fontFaces:{type:[Object,String],default:function(){return{}}},displayName:{type:String,default:""},adobeFontSlug:{type:String,default:""},adobeFontCssNames:{type:Array,default:function(){return[]}},fontPreviewText:{type:String,default:"The quick brown fox jumps over the lazy dog"}},computed:{variantsLength:function(){if(Array.isArray(this.variants)&&this.variants.length)return this.variants.length;if("custom"===this.type){if("string"==typeof this.fontFaces)return(this.fontFaces.match(/format\(/g)||[]).length;if("object"===VB(this.fontFaces)&&this.fontFaces){var e=0;return Object.values(this.fontFaces).forEach(function(t){Array.isArray(t)?e+=t.length:"object"===VB(t)&&(e+=1)}),e}}return 0},fontFamily:function(){var e;return"adobe"===this.type&&((null===(e=this.adobeFontCssNames)||void 0===e?void 0:e[0])||this.adobeFontSlug)||this.family},fontDisplayName:function(){return this.displayName||this.family},isDownloaded:function(){var e=this,t=Xh.fonts.custom||{};return Object.values(t).some(function(t){var n,i;return(null===(n=t.family)||void 0===n?void 0:n.toLowerCase())===(null===(i=e.family)||void 0===i?void 0:i.toLowerCase())})},isFavorite:function(){return"custom"===this.type?Xh.fontFavorites.includes(this.id):Xh.fontFavorites.includes("".concat(this.type,"_").concat(this.family))}},data:function(){return{isDownloading:!1,observer:null,fontLoaded:!1}},methods:{toggleFavorite:function(e){e.stopPropagation();var t="custom"===this.type?this.id:"".concat(this.type,"_").concat(this.family);if(this.isFavorite){var n=Xh.fontFavorites.indexOf(t);-1!==n&&Xh.fontFavorites.splice(n,1)}else Xh.fontFavorites.push(t)},editFont:function(){Xh.editingFont={id:this.id,family:this.family,fontFaces:this.fontFaces}},loadGoogleFontPreview:function(){var e=this;return RB(NB().m(function t(){var n,i;return NB().w(function(t){for(;;)switch(t.n){case 0:if("google"===e.type&&!e.fontLoaded){t.n=1;break}return t.a(2);case 1:try{(n=document.createElement("link")).href="https://fonts.googleapis.com/css2?family=".concat(encodeURIComponent(e.family),"&display=swap"),n.rel="stylesheet",document.head.appendChild(n),e.fontLoaded=!0}catch(t){null!==(i=e.bricks)&&void 0!==i&&i.debug&&console.error("Error loading font preview:",t)}case 2:return t.a(2)}},t)}))()},downloadGoogleFont:function(){var e=this;return RB(NB().m(function t(){return NB().w(function(t){for(;;)switch(t.n){case 0:if(!e.isDownloading){t.n=1;break}return t.a(2);case 1:e.isDownloading=!0,e.$_http({data:{action:"bricks_download_google_font",family:e.family,variants:e.variants,bricksCustomFontsUpload:!0},success:function(t){var n;if(!1===t.success)return e.$_showError((null===(n=t.data)||void 0===n?void 0:n.message)||e.i18n.fontDownloadFailed),void(e.isDownloading=!1);var i=e.$_clone(Xh.fonts);i.custom||(i.custom={}),i.custom[t.data.fontId]={id:t.data.fontId,family:t.data.family,fontFaces:t.data.fontFaces},Xh.fonts=i,e.$emit("font-downloaded",{id:t.data.fontId,family:t.data.family,fontFaces:t.data.fontFaces}),e.$_showMessage(e.i18n.fontDownloaded),e.isDownloading=!1},error:function(t){console.error("Font download error:",t),e.$_showError(e.i18n.fontDownloadFailed),e.isDownloading=!1}});case 2:return t.a(2)}},t)}))()}},mounted:function(){var e=this;this.observer=new IntersectionObserver(function(t){t.forEach(function(t){t.isIntersecting&&(e.loadGoogleFontPreview(),e.observer.disconnect())})}),this.observer.observe(this.$el)},beforeUnmount:function(){this.observer&&this.observer.disconnect()}};const HB=(0,xx.A)(qB,[["render",function(e,t,n,i,r,o){var a=$r("icon");return Ta(),Ma("div",wB,[qa("div",_B,[qa("div",CB,[qa("h3",{class:"font-title",textContent:he(o.fontDisplayName)},null,8,xB),qa("div",SB,["custom"===n.type||o.isDownloaded?(Ta(),Ma("button",{key:0,class:"edit","data-balloon":e.i18n.edit,"data-balloon-pos":"bottom-right",onClick:t[0]||(t[0]=function(){return o.editFont&&o.editFont.apply(o,arguments)})},[Ha(a,{name:"edit"})],8,EB)):Qa("",!0),qa("button",{class:te(["action-button favorite",{active:o.isFavorite}]),"data-balloon":o.isFavorite?e.i18n.removeFromFavorites:e.i18n.addToFavorites,"data-balloon-pos":"bottom-right",onClick:t[1]||(t[1]=bc(function(){return o.toggleFavorite&&o.toggleFavorite.apply(o,arguments)},["stop"]))},[Ha(a,{name:"heart"})],10,AB),"google"===n.type&&o.isDownloaded?(Ta(),Ma("button",{key:1,class:"action-button downloaded","data-balloon":e.i18n.downloaded,"data-balloon-pos":"bottom-right",disabled:""},[Ha(a,{name:"check"})],8,DB)):"google"===n.type?(Ta(),Ma("button",{key:2,class:te(["action-button",{"is-downloading":r.isDownloading}]),"data-balloon":r.isDownloading?"".concat(e.i18n.downloading," (").concat(e.i18n.customFont,")"):"".concat(e.i18n.download," (").concat(e.i18n.customFont,")"),"data-balloon-pos":"bottom-right",disabled:r.isDownloading,onClick:t[2]||(t[2]=function(){return o.downloadGoogleFont&&o.downloadGoogleFont.apply(o,arguments)})},[Ha(a,{name:"import"})],10,TB)):Qa("",!0)])]),qa("div",{class:"font-preview",style:Y({fontFamily:o.fontFamily}),textContent:he(n.fontPreviewText)},null,12,IB)]),qa("div",OB,[qa("div",PB,[qa("span",{class:"font-type",textContent:he(n.type),title:e.i18n.source},null,8,FB),n.category?(Ta(),Ma("span",{key:0,class:"font-category",textContent:he(n.category)},null,8,$B)):Qa("",!0),o.variantsLength?(Ta(),Ma("span",MB,[Ha(a,{name:"font"}),qa("span",{textContent:he("".concat(e.i18n.styles,": ").concat(o.variantsLength))},null,8,LB)])):Qa("",!0)])])])}]]);var zB=HB;function UB(e){return function(e){if(Array.isArray(e))return WB(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return WB(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?WB(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function WB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var GB={class:"font-item-edit"},KB={class:"flex"},QB={class:"title-input"},YB=["aria-label","placeholder"],JB={class:"actions"},XB=["data-balloon"],ZB=["data-balloon"],eR=["data-balloon"],tR=["data-balloon"],nR={key:0,class:"notification loading"},iR=["textContent"],rR={key:1,class:"edit-content"},oR={class:"font-files"},aR={class:"section-header"},sR=["textContent"],lR=["textContent"],cR=["textContent"],uR={key:1,class:"is-importing-fonts"},dR={class:"files-list"},pR={class:"variation-info"},hR=["onClick"],fR={key:1,class:"variation-display"},mR=["onClick","title"],gR={class:"variation-controls"},vR=["data-balloon","textContent"],yR={class:"unicode-range-wrapper"},bR=["data-balloon","onClick"],kR={class:"tooltip-header"},wR={class:"tooltip-title"},_R=["onUpdate:modelValue","onChange","placeholder"],CR={class:"variation-actions"},xR=["data-balloon","onClick"],SR=["data-balloon","onClick"],ER={class:"variation-wrapper"},AR=["textContent"],DR=["textContent"];var TR=["innerHTML"],IR=["innerHTML"],OR=["innerHTML"],FR=["innerHTML"],$R=["innerHTML"],MR={class:"options-wrapper"},LR={key:0,class:"searchable-wrapper"},NR=["placeholder"],jR={class:"dropdown",ref:"dropdown"},BR=["data-index","onClick","onMouseover"],RR=["innerHTML"],VR={key:0,class:"edit-template"},qR=["href","textContent"];function HR(e){return HR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},HR(e)}function zR(e){return function(e){if(Array.isArray(e))return UR(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return UR(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?UR(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function UR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function WR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function GR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?WR(Object(n),!0).forEach(function(t){KR(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WR(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function KR(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=HR(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=HR(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==HR(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var QR={emits:["input","update:value","delete"],props:{settings:{required:!1},value:{required:!1},placeholder:{type:[String,Number]},disabled:{default:!1,required:!1,type:Boolean},controls:{required:!1,type:Object},control:{required:!0,type:Object},controlKey:{type:String,required:!1}},data:function(){return{showDropdown:!1,selectedIndex:-1,searchFor:void 0,hasOptionsAjax:this.control.hasOwnProperty("optionsAjax"),clearOnChange:this.control.hasOwnProperty("clearOnChange"),hasQueryDynamicDataOptions:this.control.hasOwnProperty("queryDynamicDataOptions"),element:null,sortableOptions:{direction:"horizontal",itemClass:"bricks-sortable-item",handleClass:"bricks-sortable-handle",updateOn:"dragend"}}},computed:{editTemplateUrl:function(){if("template"===this.controlKey)return this.$_getEditTemplateUrl()},optionsAjaxKey:function(){var e=this.hasOptionsAjax?JSON.stringify(this.control.optionsAjax).replace(/\W/g,""):"";return this.hasQueryDynamicDataOptions&&(e+=this.controlKey),e},options:function(){var e=this,t=!!this.control.hasOwnProperty("options")&&this.$_clone(this.control.options);if(Array.isArray(t)&&(t={},this.control.options.forEach(function(e){e.hasOwnProperty("value")&&(t[e.value]=(null==e?void 0:e.label)||e.value)})),t)return t;if(this.hasOptionsAjax){var n={};if(this.hasQueryDynamicDataOptions){var i=this.bricks.dynamicTagsQueryLoop.filter(function(t){return t.params.includes(e.controlKey)});if(i.length>0){var r={};r.dynamicTagsQueryLoopGroupTitle=this.i18n.dynamicDataTag,i.forEach(function(e){r[e.name]=e.name+" ("+e.type+")"}),n=GR(GR({},r),n)}}var o=this.$_state.ajaxCache[this.optionsAjaxKey]||{};return Object.keys(o).length>0&&(n=GR(GR({},n),o)),n}return{}},currentoptionsCount:function(){return Object.keys(this.currentOptions).length},currentOptions:function(){var e=this;if(!this.searchFor)return this.options;var t={},n=this.searchFor.toLowerCase();return Object.keys(this.options).filter(function(t){return!e.isGroupTitle(t)&&e.options.hasOwnProperty(t)&&-1!==e.options[t].toLowerCase().indexOf(n)}).forEach(function(n){t[n]=e.options[n]}),t},placeholderFinal:function(){var e,t;return this.currentoptionsCount||this.control.hasOwnProperty("nothingFound")?!this.currentoptionsCount&&null!==(e=this.control)&&void 0!==e&&e.nothingFound?this.control.nothingFound:this.placeholder||(null===(t=this.control)||void 0===t?void 0:t.placeholder)||this.i18n.default:this.i18n.nothingFound},isMultiple:function(){return!!this.control.hasOwnProperty("multiple")&&this.control.multiple},canRepeat:function(){return!!this.control.hasOwnProperty("repeat")&&this.control.repeat},clearable:function(){return!this.control.hasOwnProperty("clearable")||this.control.clearable},canAdd:function(){var e;return null===(e=this.control)||void 0===e?void 0:e.add},searchable:function(){return!!this.canAdd||!!this.control.hasOwnProperty("searchable")&&this.control.searchable},placeholderSearch:function(){var e;return this.canAdd?null!==(e=this.control)&&void 0!==e&&e.placeholderSearch?this.control.placeholderSearch:this.currentoptionsCount?"".concat(this.i18n.add," / ").concat(this.i18n.searchFor):this.i18n.add:this.i18n.searchFor},isGrid:function(){return!this.$_isBulkEditing()&&("_display"===this.controlKey&&("grid"===this.value||"grid"===this.placeholderFinal))},isDraggable:function(){var e,t;return(null===(e=null===(t=this.control)||void 0===t?void 0:t.draggable)||void 0===e||e)&&this.isMultiple&&Array.isArray(this.value)&&this.value.length>1},valueArray:function(){return Array.isArray(this.value)?zR(this.value):[]}},methods:{editTemplateInNewTab:function(){window.open(this.editTemplateUrl,"_blank")},addCustomOption:function(){this.canAdd&&this.searchFor&&this.addOption(this.searchFor)},isGroupTitle:function(e){return e&&e.includes("GroupTitle")},optionIsSelected:function(e,t){return!this.canRepeat&&(this.isMultiple?this.value&&this.value.includes(e):e===this.value&&(-1==this.selectedIndex||t==this.selectedIndex))},toggleDropdown:function(){var e=this;this.disabled||(this.showDropdown=!this.showDropdown,this.$nextTick(function(){e.showDropdown&&e.$refs.searchable&&e.$refs.searchable.focus()}))},clearValue:function(){this.$emit("input",""),this.$emit("update:value",""),this.showDropdown=!1},hideDropdown:function(){this.showDropdown=!1},addOption:function(e){if(!this.isGroupTitle(e)){if(this.isMultiple){var t=this.value?this.$_clone(this.value):[];t.push(e),this.$emit("input",t),this.$emit("update:value",t)}else this.$emit("input",e),this.$emit("update:value",e);this.showDropdown=!1,this.searchable&&!this.hasOptionsAjax&&(this.searchFor=void 0),this.$refs.input&&this.$refs.input.blur()}},optionLabel:function(e){var t=e;return!(!!this.control.hasOwnProperty("showValue")&&this.control.showValue)&&this.options.hasOwnProperty(e)&&(t=this.options[e]),t},removeOption:function(e){var t=this.$_clone(this.value);t.splice(e,1),t.length||(t=null),this.$emit("input",t),this.$emit("update:value",t)},onKeyup:function(e){if(this.$el.contains(document.activeElement)&&!document.activeElement.classList.contains("searchable")){var t=Object.keys(this.currentOptions).length;switch(e.key){case" ":case"Enter":if(this.showDropdown)if(-1!=this.selectedIndex){var n=Object.keys(this.currentOptions);this.addOption(n[this.selectedIndex])}else this.showDropdown=!1;else if(!this.showDropdown){if(e.target.classList.contains("clear-selection"))return void this.clearValue();this.showDropdown=!0}break;case"Escape":this.showDropdown=!1;break;case"ArrowUp":this.selectedIndex<=0?this.selectedIndex=t-1:this.selectedIndex>0&&this.selectedIndex--,this.$refs.dropdown.scrollTop-=32;break;case"ArrowDown":this.selectedIndex<t-1?this.selectedIndex++:this.selectedIndex>=t-1&&(this.selectedIndex=0,this.$refs.dropdown.scrollTop=0),this.selectedIndex>0&&(this.$refs.dropdown.scrollTop+=32)}}},triggerAjaxSearch:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.hasOptionsAjax){var n=!1,i=this.optionsAjaxKey,r=!!this.$_state.ajaxCache.hasOwnProperty(i)&&this.$_state.ajaxCache[i],o=this.$_clone(this.control.optionsAjax);if(this.searchFor&&this.searchFor.length>=3?(o.search=this.searchFor,n=!0):"any"===(null==o?void 0:o.postType)&&(o.postType="page"),Object.keys(this.control.optionsAjax).forEach(function(t){if("string"==typeof e.control.optionsAjax[t]&&e.control.optionsAjax[t].includes("{{")){var n,i=e.control.optionsAjax[t].replace(/{{|}}/g,""),r="string";if(i.includes("|")){var a=i.split("|");i=a[0],r=a[1]}null!==(n=e.element)&&void 0!==n&&null!==(n=n.settings)&&void 0!==n&&n[i]?"string"===r?o[t]=e.element.settings[i]:"array"===r&&(o[t]=[e.element.settings[i]]):delete o[t]}}),t&&this.value&&this.value.length>0){var a=[];r?Array.isArray(this.value)?this.value.forEach(function(e){r.hasOwnProperty(e)||a.push(e)}):r.hasOwnProperty(this.value)||(a=this.$_clone(this.value)):a=this.$_clone(this.value),a.length>0&&(o.include=a,n=!0)}r&&!n||this.$_http({method:"GET",data:o,success:function(t){Object.keys(t.data).length>0&&e.$_cacheAjaxResults({key:i,value:t.data})}})}},handleSortUpdate:function(e){this.$emit("input",e.items),this.$emit("update:value",e.items)}},created:function(){this.isMultiple&&"string"==typeof this.value&&""!==this.value&&this.$emit("input",[this.value])},mounted:function(){this.element=this.$_activeElement.value,document.addEventListener("keyup",this.onKeyup),this.hasOptionsAjax&&this.triggerAjaxSearch(!0)},beforeUnmount:function(){document.removeEventListener("keyup",this.onKeyup)},watch:{showDropdown:{handler:function(e){var t=this;e?this.$nextTick(function(){var e=t.$refs.dropdown.querySelector(".selected");e&&(t.$refs.dropdown.scrollTop=e.offsetTop,t.selectedIndex=e.getAttribute("data-index"))}):(this.searchFor=void 0,this.selectedIndex=-1)}},searchFor:function(e,t){this.hasOptionsAjax&&(!e&&t||e&&e.length>=3)&&this.$_debounce("ajax:triggerAjaxSearch",this.triggerAjaxSearch)},control:function(e,t){if(e.hasOwnProperty("optionsAjax"))if(t.hasOwnProperty("optionsAjax")){var n=!1;Object.keys(e.optionsAjax).forEach(function(i){n||t.optionsAjax.hasOwnProperty(i)&&t.optionsAjax[i]===e.optionsAjax[i]||(n=!0)}),n&&this.triggerAjaxSearch()}else this.triggerAjaxSearch()},value:function(e,t){var n=this;t!==e&&this.clearOnChange&&this.control.clearOnChange.length>0&&this.control.clearOnChange.forEach(function(e){var t,i;null!==(t=n.element)&&void 0!==t&&null!==(t=t.settings)&&void 0!==t&&t[e]&&(null===(i=n.element)||void 0===i||null===(i=i.settings)||void 0===i||delete i[e])})}}};const YR=(0,xx.A)(QR,[["render",function(e,t,n,i,r,o){var a=$r("icon"),s=$r("sortable"),l=$r("control-visual-grid-builder"),c=Nr("clickaway");return Xn((Ta(),Ma("div",{"data-control":"select",class:te([{expand:r.showDropdown,multiple:o.isMultiple,disabled:n.disabled,lowercase:this.control.hasOwnProperty("lowercase")&&this.control.lowercase}])},[qa("div",{class:te({"has-visual-grid-builder":o.isGrid})},[o.isMultiple?(Ta(),Ma("div",{key:0,class:te(["input",{"has-value":n.value},{"no-options":!o.currentoptionsCount}]),ref:"input",onClick:t[0]||(t[0]=function(){return o.toggleDropdown&&o.toggleDropdown.apply(o,arguments)})},[o.isDraggable&&n.value&&n.value.length?(Ta(),La(s,{key:0,tag:"div",class:"selected-options-sortable",parent:o.valueArray,options:r.sortableOptions,onUpdate:o.handleSortUpdate},{default:Jn(function(){return[(Ta(!0),Ma(Ca,null,Rr(n.value,function(e,t){return Ta(),Ma("span",{key:e,class:"input-value bricks-sortable-item"},[qa("span",{innerHTML:o.optionLabel(e),class:"bricks-sortable-handle"},null,8,TR),Ha(a,{name:"close-box",onClick:bc(function(e){return o.removeOption(t)},["stop"])},null,8,["onClick"])])}),128))]}),_:1},8,["parent","options","onUpdate"])):(Ta(!0),Ma(Ca,{key:1},Rr(n.value,function(e,t){return Ta(),Ma("span",{key:t,class:"input-value"},[qa("span",{innerHTML:o.optionLabel(e)},null,8,IR),Ha(a,{name:"close-box",onClick:bc(function(e){return o.removeOption(t)},["stop"])},null,8,["onClick"])])}),128)),n.value&&n.value.length?Qa("",!0):(Ta(),Ma("span",{key:2,class:"placeholder",innerHTML:o.placeholderFinal},null,8,OR)),n.value&&n.value.length?Qa("",!0):(Ta(),La(a,{key:3,name:"arrow-down",class:"arrow-down"}))],2)):(Ta(),Ma("div",{key:1,class:"input",onClick:t[1]||(t[1]=function(){return o.toggleDropdown&&o.toggleDropdown.apply(o,arguments)}),ref:"input"},[n.value?(Ta(),Ma("span",{key:0,ref:"input",class:"input-value",innerHTML:o.options.hasOwnProperty(n.value)?o.options[n.value]:n.value},null,8,FR)):(Ta(),Ma("span",{key:1,class:"placeholder",innerHTML:o.placeholderFinal},null,8,$R)),n.value&&o.clearable?(Ta(),La(a,{key:2,name:"close",class:"clear-selection",tabindex:"0",onClick:bc(o.clearValue,["stop"])},null,8,["onClick"])):Qa("",!0),Ha(a,{name:"arrow-down",class:"arrow-down",tabindex:"0"})],512)),o.isGrid?(Ta(),La(l,{key:2,settings:n.settings,"control-key":n.controlKey},null,8,["settings","control-key"])):Qa("",!0)],2),qa("div",MR,[o.searchable?(Ta(),Ma("div",LR,[Xn(qa("input",{class:"searchable",type:"text",ref:"searchable",spellcheck:"false",placeholder:o.placeholderSearch,onKeyup:t[2]||(t[2]=wc(bc(function(e){return o.canAdd?o.addCustomOption():null},["prevent"]),["enter"])),"onUpdate:modelValue":t[3]||(t[3]=function(e){return r.searchFor=e})},null,40,NR),[[ac,r.searchFor]]),o.canAdd&&r.searchFor?(Ta(),Ma("button",{key:0,class:"add",onClick:t[4]||(t[4]=bc(function(e){return o.addCustomOption()},["stop"]))},[Ha(a,{name:"add",tabindex:"0"})])):Qa("",!0)])):Qa("",!0),qa("ul",jR,[(Ta(!0),Ma(Ca,null,Rr(o.currentOptions,function(t,i,s){return Ta(),Ma("li",{key:s,class:te([{hover:s===r.selectedIndex},{selected:o.optionIsSelected(i,s)},{title:o.isGroupTitle(i)}]),"data-index":s,onClick:bc(function(e){return o.addOption(i)},["stop"]),onMouseover:function(e){return r.selectedIndex=s}},[qa("span",{innerHTML:t},null,8,RR),n.control.delete?(Ta(),La(a,{key:0,name:"trash",class:"delete",title:e.i18n.delete,tabindex:"0",onClick:bc(function(t){return e.$emit("delete",i)},["stop"])},null,8,["title","onClick"])):Qa("",!0)],42,BR)}),128))],512)]),o.editTemplateUrl?(Ta(),Ma("div",VR,[qa("a",{href:o.editTemplateUrl,class:"button",textContent:he(e.i18n.editTemplate)},null,8,qR),Ha(a,{name:"new-tab",class:"new-tab",onClick:t[5]||(t[5]=function(e){return o.editTemplateInNewTab()}),"data-balloon":e.i18n.openInNewTab,tabindex:"0","data-balloon-pos":"top-right"},null,8,["data-balloon"])])):Qa("",!0)],2)),[[c,o.hideDropdown]])}]]);var JR=YR;function XR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||ZR(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ZR(e,t){if(e){if("string"==typeof e)return eV(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eV(e,t):void 0}}function eV(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function tV(e){return tV="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tV(e)}function nV(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var l=i&&i.prototype instanceof s?i:s,c=Object.create(l.prototype);return iV(c,"_invoke",function(n,i,r){var o,s,l,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return o=t,s=0,l=e,p.n=n,a}};function h(n,i){for(s=n,l=i,t=0;!d&&c&&!r&&t<u.length;t++){var r,o=u[t],h=p.p,f=o[2];n>3?(r=f===i)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=h&&((r=n<2&&h<o[1])?(s=0,p.v=i,p.n=o[1]):h<f&&(r=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,p.n=f,s=0))}if(r||n>1)return a;throw d=!0,i}return function(r,u,f){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,f),s=u,l=f;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(p.n=-1),h(s,l)):p.n=l:p.v=l);try{if(c=2,o){if(s||(r="next"),t=o[r]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=e}else if((t=(d=p.n<0)?l:n.call(i,p))!==a)break}catch(t){o=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,r,o),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][i]?t(t([][i]())):(iV(t={},i,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,iV(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,iV(d,"constructor",c),iV(c,"constructor",l),l.displayName="GeneratorFunction",iV(c,r,"GeneratorFunction"),iV(d),iV(d,r,"Generator"),iV(d,i,function(){return this}),iV(d,"toString",function(){return"[object Generator]"}),(nV=function(){return{w:o,m:p}})()}function iV(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}iV=function(e,t,n,i){function o(t,n){iV(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},iV(e,t,n,i)}function rV(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,r)}function oV(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var o=e.apply(t,n);function a(e){rV(o,i,r,a,s,"next",e)}function s(e){rV(o,i,r,a,s,"throw",e)}a(void 0)})}}function aV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function sV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aV(Object(n),!0).forEach(function(t){lV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function lV(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=tV(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=tV(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tV(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cV={components:{ControlSelect:JR},props:{font:{type:Object,required:!0}},data:function(){return{fontData:{id:this.font.id,family:this.font.family,type:"custom",variations:[]},loading:!0,isImportingFonts:!1,showImportZone:!1,allowedTypes:["font/ttf","font/woff","font/woff2","application/x-font-ttf","application/font-woff","application/font-woff2"],originalVariations:{},weightOptions:{100:"100 (Thin)",200:"200 (Extra Light)",300:"300 (Light)",400:"400 (Normal)",500:"500 (Medium)",600:"600 (Semi Bold)",700:"700 (Bold)",800:"800 (Extra Bold)",900:"900 (Black)"},styleOptions:{normal:"Normal",italic:"Italic",oblique:"Oblique"}}},computed:{isFavorite:function(){return this.$_state.fontFavorites.includes(this.font.id)}},created:function(){this.loadFontData()},mounted:function(){this.$refs.fontFamilyInput&&this.$refs.fontFamilyInput.focus()},methods:{toggleFavorite:function(){if(this.isFavorite){var e=this.$_state.fontFavorites.indexOf(this.font.id);-1!==e&&this.$_state.fontFavorites.splice(e,1)}else this.$_state.fontFavorites.push(this.font.id)},syncStateWithFontData:function(){this.$_state.fonts.custom||(this.$_state.fonts.custom={});var e=this.fontData.variations.reduce(function(e,t){var n="".concat(t.weight).concat(t.style);e[n]||(e[n]=[]);var i={url:t.url,type:t.type};return t.unicodeRange&&(i["unicode-range"]=t.unicodeRange),e[n].push(i),e},{}),t=sV(sV({},this.$_state.fonts.custom[this.font.id]||{}),{},{family:this.fontData.family,type:"custom",fontFaces:e});this.$_state.fonts.custom=sV(sV({},this.$_state.fonts.custom),{},lV({},this.font.id,t))},loadFontData:function(){var e=this;return oV(nV().m(function t(){var n,i,r;return nV().w(function(t){for(;;)switch(t.n){case 0:if(e.loading=!0,i=e.font.id,r=e.$_state.fontChanges.variants,!["added","deleted","modified"].some(function(e){var t;return(null===(t=r[e])||void 0===t||null===(t=t[i])||void 0===t?void 0:t.length)>0})||null===(n=e.$_state.fonts.custom)||void 0===n||!n[i]){t.n=1;break}return e.fontData.variations=e.transformFontFaces(e.$_state.fonts.custom[i].fontFaces),e.loading=!1,e.updateFontPreview(),t.a(2);case 1:e.$_http({data:{action:"bricks_get_custom_font_data",postId:e.font.id.replace("custom_font_","")},success:function(t){t.data&&(e.fontData.variations=e.transformFontFaces(t.data.fontFaces)),e.loading=!1,e.updateFontPreview()},error:function(t){console.error("Error loading font data:",t),e.loading=!1}});case 2:return t.a(2)}},t)}))()},transformFontFaces:function(e){var t=this;if("string"==typeof e)try{e=JSON.parse(e)}catch(t){var n;if(null!==(n=window.bricks)&&void 0!==n&&n.debug&&console.error("Error parsing fontFaces string:",t),e.includes("@font-face")){for(var i,r={},o=/@font-face\s*{([^}]*)}/g;null!==(i=o.exec(e));){var a=i[1],s=/font-weight\s*:\s*(\d+)/.exec(a),l=s?s[1]:"400",c=/font-style\s*:\s*(\w+)/.exec(a),u=c?c[1]:"normal",d=/url\(([^)]+)\)/.exec(a),p=d?d[1]:"",h=/unicode-range\s*:\s*([^;]+)/.exec(a),f=h?h[1]:"",m="".concat(l).concat(u);r[m]||(r[m]=[]),r[m].push({url:p,type:p.endsWith(".woff2")?"font/woff2":p.endsWith(".woff")?"font/woff":p.endsWith(".ttf")?"font/ttf":"","unicode-range":f})}this.$_state.fonts.custom&&this.$_state.fonts.custom[this.font.id]&&(this.$_state.fonts.custom[this.font.id].structuredFontFaces=r),e=r}else e={}}if(e&&"object"===tV(e)||(e={}),!Object.keys(e).length)return[];var g=[];return Object.entries(e).forEach(function(e){var n,i=XR(e,2),r=i[0],o=i[1],a=(null===(n=r.match(/\d+/))||void 0===n?void 0:n[0])||"400",s=r.replace(a,"")||"normal";(Array.isArray(o)?o:[o]).forEach(function(e){g.push({weight:a,style:s,url:e.url||"",type:e.type||"",filename:e.filename||(e.url?t.getFileName(e.url):""),unicodeRange:e["unicode-range"]||"",showUnicodeInput:!1})}),t.originalVariations[r]={weight:a,style:s}}),g},addVariation:function(){var e=this.getDefaultVariationSettings(),t={weight:e.weight,style:e.style,url:"",type:"",showUnicodeInput:!1};this.fontData.variations.push(t);var n="".concat(t.weight).concat(t.style);this.originalVariations[n]={weight:t.weight,style:t.style},this.$_state.fonts.custom||(this.$_state.fonts.custom={}),this.$_state.fonts.custom[this.font.id]||(this.$_state.fonts.custom[this.font.id]={family:this.fontData.family,type:"custom",fontFaces:{}}),this.$_state.fonts.custom[this.font.id].fontFaces||(this.$_state.fonts.custom[this.font.id].fontFaces={}),this.$_state.fonts.custom[this.font.id].fontFaces[n]={url:"",type:""},this.trackFontChange("added","variant",n)},getDefaultVariationSettings:function(){var e={weight:"400",style:"normal"};if(!this.fontData.variations.length)return e;if(!this.hasVariation(e.weight,e.style))return e;var t=this.fontData.variations[this.fontData.variations.length-1];return"normal"===(null==t?void 0:t.style)&&!this.hasVariation(t.weight,"italic")&&this.hasCompleteRegularItalicPair()?{weight:t.weight,style:"italic"}:this.getFirstAvailableNormalVariation()||this.getFirstAvailableVariation()||e},getFirstAvailableNormalVariation:function(){var e=this,t=this.getPreferredWeightOptions().find(function(t){return!e.hasVariation(t,"normal")});return t?{weight:t,style:"normal"}:null},getFirstAvailableVariation:function(){var e,t=this,n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ZR(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(this.getPreferredWeightOptions());try{var i,r=function(){var n=e.value,i=Object.keys(t.styleOptions).find(function(e){return!t.hasVariation(n,e)});if(i)return{v:{weight:n,style:i}}};for(n.s();!(e=n.n()).done;)if(i=r())return i.v}catch(e){n.e(e)}finally{n.f()}},hasVariation:function(e,t){return this.fontData.variations.some(function(n){return String(n.weight)===String(e)&&String(n.style)===String(t)})},isDuplicateVariation:function(e){var t=this,n=this.fontData.variations[e];return this.fontData.variations.slice(0,e).some(function(e){return t.variationsOverlap(e,n)})},variationsOverlap:function(e,t){if(!this.variationMatches(e,t.weight,t.style))return!1;var n=String(e.unicodeRange||"").trim(),i=String(t.unicodeRange||"").trim();return!n||!i||n===i},variationMatches:function(e,t,n){return String(e.weight)===String(t)&&String(e.style)===String(n)},hasCompleteRegularItalicPair:function(){var e=this;return this.fontData.variations.some(function(t){return"normal"===t.style&&e.hasVariation(t.weight,"italic")})},getPreferredWeightOptions:function(){var e=this;return["400","700","500","300","600","800","200","100","900"].filter(function(t){return e.weightOptions.hasOwnProperty(t)})},removeVariation:function(e){var t=this.fontData.variations[e],n=t.weight,i=t.style,r="".concat(n).concat(i);if(this.fontData.variations.splice(e,1),this.$_state.fonts.custom&&this.$_state.fonts.custom[this.font.id]){var o=this.$_clone(this.$_state.fonts.custom[this.font.id]);if("string"==typeof o.fontFaces&&o.fontFaces.includes("@font-face")){if(!this.$_state.fonts.custom[this.font.id].structuredFontFaces){for(var a,s={},l=/@font-face\s*{([^}]*)}/g;null!==(a=l.exec(o.fontFaces));){var c=a[1],u=/font-weight\s*:\s*(\d+)/.exec(c),d=u?u[1]:"400",p=/font-style\s*:\s*(\w+)/.exec(c),h=p?p[1]:"normal",f=/url\(([^)]+)\)/.exec(c),m=f?f[1]:"";s["".concat(d).concat(h)]={url:m,type:m.endsWith(".woff2")?"font/woff2":m.endsWith(".woff")?"font/woff":m.endsWith(".ttf")?"font/ttf":""}}this.$_state.fonts.custom[this.font.id].structuredFontFaces=s}this.$_state.fonts.custom[this.font.id].structuredFontFaces[r]&&delete this.$_state.fonts.custom[this.font.id].structuredFontFaces[r]}else"object"===tV(o.fontFaces)&&o.fontFaces[r]&&(delete o.fontFaces[r],this.$_state.fonts.custom=sV(sV({},this.$_state.fonts.custom),{},lV({},this.font.id,o)));this.trackFontChange("deleted","variant",r)}this.updateFontPreview()},trackFontChange:function(e,t,n){var i=this.$_state.fontChanges;"family"===t?i.families[e].includes(this.font.id)||i.families[e].push(this.font.id):"variant"===t&&(i.variants[e][this.font.id]||(i.variants[e][this.font.id]=[]),i.variants[e][this.font.id].includes(n)||i.variants[e][this.font.id].push(n))},toggleUnicodeInput:function(e){var t=this;this.fontData.variations.forEach(function(t,n){n!==e&&(t.showUnicodeInput=!1)});var n=this.fontData.variations[e];n.showUnicodeInput=!n.showUnicodeInput,n.showUnicodeInput?(this.$nextTick(function(){var e=t.$refs.unicodeInput;if(Array.isArray(e)){var n=e.find(function(e){return null!==e.offsetParent});n&&n.focus()}else e&&e.focus()}),setTimeout(function(){document.addEventListener("click",t.closeUnicodeInput)},0)):document.removeEventListener("click",this.closeUnicodeInput)},closeUnicodeInput:function(e){e.target.closest(".unicode-range-tooltip")||e.target.closest(".unicode-range-toggle")||(this.fontData.variations.forEach(function(e){e.showUnicodeInput=!1}),document.removeEventListener("click",this.closeUnicodeInput))},handleUnicodeChange:function(e){var t=this.fontData.variations[e],n="".concat(t.weight).concat(t.style);this.syncStateWithFontData(),this.updateFontPreview(),this.trackFontChange("modified","variant",n)},handleWeightChange:function(e,t){var n=this.fontData.variations[e],i=n.style,r=n.weight,o="".concat(r).concat(i),a="".concat(t).concat(i);this.fontData.variations[e].weight=t,this.syncStateWithFontData(),this.updateFontPreview(),this.trackFontChange("modified","variant",a),this.$_state.fonts.custom[this.font.id].fontFaces[o]?this.trackFontChange("modified","variant",o):this.trackFontChange("deleted","variant",o)},handleStyleChange:function(e,t){var n=this.fontData.variations[e],i=n.weight,r=n.style,o="".concat(i).concat(r),a="".concat(i).concat(t);this.fontData.variations[e].style=t,this.syncStateWithFontData(),this.updateFontPreview(),this.trackFontChange("modified","variant",a),this.$_state.fonts.custom[this.font.id].fontFaces[o]?this.trackFontChange("modified","variant",o):this.trackFontChange("deleted","variant",o)},selectFile:function(e){var t=this;this.$_openMediaLibrary("font",!1,{title:this.i18n.selectFontFile,button:{text:this.i18n.select}},function(n){if(n){var i=n.url.split(".").pop().toLowerCase();if(["ttf","woff","woff2"].includes(i)){var r=t.fontData.variations[e],o=r.url;t.fontData.variations[e]=sV(sV({},r),{},{url:n.url,type:t.getFontType(n.url),filename:n.filename||t.getFileName(n.url),showUnicodeInput:t.fontData.variations[e].showUnicodeInput});var a=r.weight,s=r.style,l="".concat(a).concat(s),c=o?"modified":"added";t.trackFontChange(c,"variant",l),t.syncStateWithFontData(),t.updateFontPreview(),t.$_showMessage(t.i18n.fontFileSelected)}else t.$_showError(t.i18n.invalidFontFile||"Please select a valid font file (.ttf, .woff, or .woff2)")}})},getFontType:function(e){switch(e.split(".").pop().toLowerCase()){case"ttf":return"font/ttf";case"woff":return"font/woff";case"woff2":return"font/woff2";case"otf":return"font/otf";case"eot":return"application/vnd.ms-fontobject";default:return""}},getFileName:function(e){return e.split("/").pop()},handleDragEnter:function(e){e.currentTarget.classList.add("drag-over")},handleDragLeave:function(e){e.currentTarget.classList.remove("drag-over")},handleFontFiles:function(e){var t=this;return oV(nV().m(function n(){return nV().w(function(n){for(;;)switch(n.n){case 0:if(null!=e&&e.length){n.n=1;break}return n.a(2);case 1:t.processFontFiles(Array.from(e));case 2:return n.a(2)}},n)}))()},handleFontDrop:function(e){var t=this;return oV(nV().m(function n(){var i;return nV().w(function(n){for(;;)switch(n.n){case 0:if(e.currentTarget.classList.remove("drag-over"),(i=Array.from(e.dataTransfer.files).filter(function(e){return t.allowedTypes.includes(e.type)||/\.(ttf|woff|woff2)$/i.test(e.name)})).length){n.n=1;break}return n.a(2);case 1:t.processFontFiles(i);case 2:return n.a(2)}},n)}))()},processFontFiles:function(e){var t=this;return oV(nV().m(function n(){var i;return nV().w(function(n){for(;;)switch(n.n){case 0:t.isImportingFonts=!0,(i=new FormData).append("action","bricks_process_font_files"),i.append("font_id",t.font.id.replace("custom_font_","")),e.forEach(function(e){i.append("files[]",e)}),t.$_http({data:i,processData:!1,contentType:!1,method:"POST",success:function(e){var n;null!==(n=e.data)&&void 0!==n&&n.length&&(t.fontData.variations=[],e.data.forEach(function(e){t.fontData.variations.push({weight:e.weight||"400",style:e.style||"normal",url:e.url,type:e.type,filename:e.url.split("/").pop(),showUnicodeInput:!1});var n=t.$_clone(t.$_state.fonts.custom||{});if(n[t.font.id]){var i="".concat(e.weight||"400").concat(e.style||"normal");n[t.font.id].fontFaces||(n[t.font.id].fontFaces={}),n[t.font.id].fontFaces[i]={url:e.url,type:e.type},t.$_state.fonts=sV(sV({},t.$_state.fonts),{},{custom:n}),t.trackFontChange("added","variant",i)}}),t.$_showMessage(t.i18n.imported),t.updateFontPreview(),t.showImportZone=!1),t.isImportingFonts=!1},error:function(e){console.error("Error processing font files:",e),t.$_showError(t.i18n.errorProcessingFontFiles),t.isImportingFonts=!1}});case 1:return n.a(2)}},n)}))()},isValidFontFile:function(e){return this.allowedTypes.includes(e.type)||/\.(ttf|woff|woff2)$/i.test(e.name)},onFamilyNameChange:function(){var e;this.$_state.fonts.custom||(this.$_state.fonts.custom={}),this.$_state.fonts.custom=sV(sV({},this.$_state.fonts.custom),{},lV({},this.font.id,sV(sV({},this.$_state.fonts.custom[this.font.id]||{}),{},{family:this.fontData.family,type:"custom",fontFaces:(null===(e=this.$_state.fonts.custom[this.font.id])||void 0===e?void 0:e.fontFaces)||{}}))),this.updateFontPreview(),this.trackFontChange("modified","family")},moveToTrash:function(){var e=this;if(confirm(this.i18n.confirmMoveToTrash)){var t=this.$_state.fontFavorites.indexOf(this.font.id);t>-1&&this.$_state.fontFavorites.splice(t,1),this.trackFontChange("deleted","family"),this.$emit("close"),this.$_moveFontToTrash({id:this.font.id.replace("custom_font_",""),onSuccess:function(){e.$_showMessage(e.i18n.fontMovedToTrash)},onError:function(t){e.$_showError(t)}})}},isFontEmpty:function(){var e=!this.fontData.family||""===this.fontData.family.trim(),t=!this.fontData.variations||0===this.fontData.variations.length||this.fontData.variations.every(function(e){return!e.url||""===e.url.trim()});return e&&t},getPreviewFontFamily:function(e){return"BricksPreviewFont-".concat(this.font.id,"-").concat(e)},getVariationPreviewStyle:function(e,t){return{fontFamily:"'".concat(this.getPreviewFontFamily(t),"'"),fontWeight:e.weight||"400",fontStyle:e.style||"normal"}},updateFontPreview:function(){var e,t=this,n="bricks-font-preview-".concat(this.font.id);null===(e=document.getElementById(n))||void 0===e||e.remove();var i,r=document.getElementById("bricks-builder-iframe");r&&r.contentDocument&&(null===(i=r.contentDocument.getElementById(n))||void 0===i||i.remove());var o=[];if(this.fontData.variations.length&&(this.fontData.variations.forEach(function(e,n){if(e.url){var i,r=t.getPreviewFontFamily(n),a=e.weight||"400",s=e.style||"normal",l=e.type||t.getFontType(e.url),c=null===(i=e.unicodeRange)||void 0===i?void 0:i.trim(),u=c?"\n\t\t\t\t\t\t\t\tunicode-range: ".concat(c,";"):"",d='\n\t\t\t\t\t\t\t@font-face {\n\t\t\t\t\t\t\t\tfont-family: "'.concat(r,'";\n\t\t\t\t\t\t\t\tfont-weight: ').concat(a,";\n\t\t\t\t\t\t\t\tfont-style: ").concat(s,';\n\t\t\t\t\t\t\t\tfont-display: swap;\n\t\t\t\t\t\t\t\tsrc: url("').concat(e.url,'") format("').concat(t.getFontFormat(l),'");').concat(u,"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t");o.push(d)}}),o.length>0)){var a=o.join("\n"),s=document.createElement("style");if(s.id=n,s.textContent=a,document.head.appendChild(s),r&&r.contentDocument){var l=r.contentDocument.createElement("style");l.id=n,l.textContent=a,r.contentDocument.head.appendChild(l)}}},getFontFormat:function(e){switch(e){case"font/woff2":return"woff2";case"font/woff":return"woff";case"font/ttf":return"truetype";default:var t=e.split("/");return t.length>1?t[1]:"woff2"}}},beforeUnmount:function(){if(document.removeEventListener("click",this.closeUnicodeInput),this.isFontEmpty()){var e=this.font.id.replace("custom_font_","");this.$_http({data:{action:"bricks_delete_draft_font",postId:e},success:function(){},error:function(){}})}else this.syncStateWithFontData()}};const uV=(0,xx.A)(cV,[["render",function(e,t,n,i,r,o){var a=$r("icon"),s=$r("control-select");return Ta(),Ma("div",GB,[qa("header",KB,[qa("div",QB,[Xn(qa("input",{type:"text",ref:"fontFamilyInput","onUpdate:modelValue":t[0]||(t[0]=function(e){return r.fontData.family=e}),onInput:t[1]||(t[1]=function(){return o.onFamilyNameChange&&o.onFamilyNameChange.apply(o,arguments)}),"aria-label":e.i18n.fontFamily,class:te([[{error:!r.fontData.family}],"title-input"]),placeholder:e.i18n.fontFamilyPlaceholder,autocomplete:"off",spellcheck:"false"},null,42,YB),[[ac,r.fontData.family]])]),qa("ul",JB,[qa("li",{class:te([{disabled:!r.fontData.family}]),"data-balloon":e.i18n.save,"data-balloon-pos":"bottom-right",onClick:t[2]||(t[2]=function(t){return e.$_savePost()})},[Ha(a,{name:"save"})],10,XB),qa("li",{class:te(["favorite",{active:o.isFavorite},{disabled:!r.fontData.family}]),"data-balloon":o.isFavorite?e.i18n.removeFromFavorites:e.i18n.addToFavorites,"data-balloon-pos":"bottom-right",onClick:t[3]||(t[3]=function(){return o.toggleFavorite&&o.toggleFavorite.apply(o,arguments)})},[Ha(a,{name:"heart"})],10,ZB),qa("li",{class:"trash","data-balloon":e.i18n.moveToTrash,"data-balloon-pos":"bottom-right",onClick:t[4]||(t[4]=function(){return o.moveToTrash&&o.moveToTrash.apply(o,arguments)})},[Ha(a,{name:"trash"})],8,eR),qa("li",{class:"back","data-balloon":e.i18n.back,"data-balloon-pos":"bottom-right",onClick:t[5]||(t[5]=function(t){return e.$emit("close")})},[Ha(a,{name:"arrow-left"})],8,tR)])]),r.loading?(Ta(),Ma("div",nR,[t[14]||(t[14]=Ka('<div class="bricks-logo-animated"><div class="cube top-left"></div><div class="cube top-right"></div><div class="cube bottom-left"></div><div class="cube bottom-right"></div></div>',1)),qa("p",{textContent:he(e.i18n.loadingFontData)},null,8,iR)])):(Ta(),Ma("div",rR,[qa("div",oR,[qa("div",aR,[qa("h3",{textContent:he("".concat(Array.isArray(r.fontData.variations)&&r.fontData.variations.length?"".concat(e.i18n.fontVariations," (").concat(r.fontData.variations.length,")"):e.i18n.fontVariations))},null,8,sR)]),r.showImportZone&&!r.isImportingFonts?(Ta(),Ma("div",{key:0,class:"import-form-wrapper",ref:"fontImportForm",onDrop:t[7]||(t[7]=bc(function(){return o.handleFontDrop&&o.handleFontDrop.apply(o,arguments)},["prevent"])),onDragover:t[8]||(t[8]=bc(function(){},["prevent"])),onDragenter:t[9]||(t[9]=function(){return o.handleDragEnter&&o.handleDragEnter.apply(o,arguments)}),onDragleave:t[10]||(t[10]=function(){return o.handleDragLeave&&o.handleDragLeave.apply(o,arguments)})},[Xn(qa("p",{textContent:he(e.i18n.dropFilesJSON)},null,8,lR),[[pl,e.$_importHasDnDSupport]]),qa("input",{type:"file",id:"bricks-font-import-input",name:"files[]",multiple:"",accept:".ttf,.woff,.woff2",onChange:t[6]||(t[6]=function(e){return o.handleFontFiles(e.target.files)})},null,32),qa("label",{for:"bricks-font-import-input",textContent:he(e.i18n.selectFilesToImport)},null,8,cR)],544)):r.isImportingFonts?(Ta(),Ma("div",uR,UB(t[15]||(t[15]=[Ka('<div class="bricks-logo-animated"><div class="cube top-left"></div><div class="cube top-right"></div><div class="cube bottom-left"></div><div class="cube bottom-right"></div></div>',1)])))):Qa("",!0),qa("div",dR,[(Ta(!0),Ma(Ca,null,Rr(r.fontData.variations,function(n,i){return Ta(),Ma("div",{key:i,class:"variation-item"},[qa("div",pR,[n.url?(Ta(),Ma("div",fR,[qa("div",{class:"variation-preview",style:Y(o.getVariationPreviewStyle(n,i))}," The quick brown fox jumps over the lazy dog ",4),qa("div",{class:"variation-filename",onClick:function(e){return o.selectFile(i)},title:n.filename||o.getFileName(n.url)},he(n.filename||o.getFileName(n.url)),9,mR)])):(Ta(),Ma("button",{key:0,class:"variation-no-file",onClick:function(e){return o.selectFile(i)}},he(e.i18n.fontVariationNoFile),9,hR)),qa("div",gR,[o.isDuplicateVariation(i)?(Ta(),Ma("span",{key:0,class:"variation-duplicate","data-balloon":e.i18n.duplicateFontVariation,"data-balloon-pos":"bottom",textContent:he(e.i18n.duplicate)},null,8,vR)):Qa("",!0),qa("div",yR,[qa("button",{class:te(["unicode-range-toggle",{active:n.unicodeRange}]),"data-balloon":e.i18n.unicodeRange,"data-balloon-pos":"bottom",onClick:function(e){return o.toggleUnicodeInput(i)}},[Ha(a,{name:"globe"})],10,bR),n.showUnicodeInput?(Ta(),Ma("div",{key:0,class:"unicode-range-tooltip",onMousedown:t[11]||(t[11]=bc(function(){},["stop"]))},[qa("div",kR,[qa("span",wR,he(e.i18n.unicodeRange),1)]),Xn(qa("input",{type:"text","onUpdate:modelValue":function(e){return n.unicodeRange=e},ref_for:!0,ref:"unicodeInput",onChange:function(e){return o.handleUnicodeChange(i)},placeholder:e.i18n.unicodeRange,class:"unicode-range-input"},null,40,_R),[[ac,n.unicodeRange]])],32)):Qa("",!0)]),Ha(s,{value:n.weight,control:{options:r.weightOptions,clearable:!1,selected:n.weight},"data-balloon":e.i18n.fontWeight,class:"weight-select","onUpdate:value":function(e){return o.handleWeightChange(i,e)}},null,8,["value","control","data-balloon","onUpdate:value"]),Ha(s,{value:n.style,control:{options:r.styleOptions,clearable:!1,selected:n.style},"data-balloon":e.i18n.fontStyle,class:"style-select","onUpdate:value":function(e){return o.handleStyleChange(i,e)}},null,8,["value","control","data-balloon","onUpdate:value"])]),qa("div",CR,[qa("button",{"data-balloon":n.url?e.i18n.edit:e.i18n.upload,onClick:function(e){return o.selectFile(i)}},[Ha(a,{name:n.url?"edit":"export",class:"edit-file"},null,8,["name"])],8,xR),qa("button",{class:"remove-file","data-balloon":e.i18n.delete,onClick:function(e){return o.removeVariation(i)}},[Ha(a,{name:"trash"})],8,SR)])])])}),128))]),qa("div",ER,[qa("button",{onClick:t[12]||(t[12]=function(){return o.addVariation&&o.addVariation.apply(o,arguments)})},[Ha(a,{name:"add"}),qa("span",{textContent:he(e.i18n.add)},null,8,AR)]),qa("button",{onClick:t[13]||(t[13]=function(e){return r.showImportZone=!r.showImportZone})},[Ha(a,{name:"import"}),qa("span",{textContent:he(e.i18n.import)},null,8,DR)])])])]))])}]]);var dV=uV,pV={class:"two-column-popup"},hV={class:"flex"},fV=["textContent"],mV={class:"actions"},gV={class:"two-column-content"},vV={key:0,class:"sidebar"},yV={class:"main-content"};var bV={props:{title:{type:String,required:!0},description:{type:String,default:""},searchPlaceholder:{type:String,default:""},showSidebar:{type:Boolean,default:!0}},data:function(){return{searchQuery:""}}};var kV=(0,xx.A)(bV,[["render",function(e,t,n,i,r,o){return Ta(),Ma("div",pV,[qr(e.$slots,"style"),qa("header",hV,[qa("h2",{class:"title",textContent:he(n.title)},null,8,fV),qa("ul",mV,[qr(e.$slots,"header-actions")])]),qa("div",gV,[n.showSidebar?(Ta(),Ma("div",vV,[qr(e.$slots,"sidebar")])):Qa("",!0),qa("div",yV,[qr(e.$slots,"main-content")])])])}]]);function wV(e){return wV="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wV(e)}function _V(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return CV(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?CV(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function CV(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function xV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function SV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xV(Object(n),!0).forEach(function(t){EV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function EV(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=wV(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=wV(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==wV(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var AV={name:"PopupFonts",components:{FontItem:zB,FontItemEdit:dV,TwoColumnPopup:kV},data:function(){return{search:"",searchFonts:"",selectedFontSet:"favorites",isTrashView:!1,trashedFonts:[],fontPreviewInput:"",fontPreviewInputShow:!1,fontSets:{favorites:{title:this.i18n.favorites,fonts:[]},custom:{title:this.i18n.fontsCustom,fonts:[]},google:{title:this.i18n.fontsGoogle,fonts:[]},standard:{title:this.i18n.fontsStandard,fonts:[]},adobe:{title:this.i18n.fontsAdobe,fonts:[]}},initialFontsState:null}},computed:{fontPreviewText:function(){return this.fontPreviewInput||"The quick brown fox jumps over the lazy dog"},filteredFonts:function(){var e=this.fontSets[this.selectedFontSet].fonts.map(function(e){return SV(SV({},e),{},{key:Math.random().toString(36).substring(7)})});if(this.searchFonts){var t=this.searchFonts.toLowerCase();e=e.filter(function(e){var n,i=e.family.toLowerCase().includes(t),r=null===(n=e.category)||void 0===n?void 0:n.toLowerCase().includes(t),o=e.type.toLowerCase().includes(t);return i||r||o})}return e}},methods:{populateFavorites:function(){var e=this;this.fontSets.favorites.fonts=[],this.$_state.fontFavorites.forEach(function(t){var n=_V(t.split("_"),2),i=n[0],r=n[1];if(i&&r)if("custom"===i){var o=e.fontSets.custom.fonts.find(function(e){return e.id===t});o&&e.fontSets.favorites.fonts.push(o)}else e.fontSets[i].fonts.forEach(function(t){t.family===r&&e.fontSets.favorites.fonts.push(t)})})},populateFontSets:function(){var e,t,n,i=this,r=this.$_state.fonts;if(this.resetFontSets(),this.initialFontsState||(this.initialFontsState=this.$_clone(r)),null!==(e=r.adobe)&&void 0!==e&&e.length&&r.adobe.forEach(function(e){var t,n=e.slug||(null===(t=e.css_names)||void 0===t?void 0:t[0])||e.name.toLowerCase().replace(/\s+/g,"-");i.fontSets.adobe.fonts.push({family:n,displayName:e.name,type:"adobe",adobeFontSlug:e.slug,adobeFontCssNames:e.css_names})}),r.custom){var o=Object.entries(r.custom).map(function(e){var t=_V(e,2),n=t[0],i=t[1];return{id:n,family:i.family,type:"custom",fontFaces:i.fontFaces,variants:[]}});o.sort(function(e,t){var n=(e.family||"").toLowerCase(),i=(t.family||"").toLowerCase();return n.localeCompare(i)}),this.fontSets.custom.fonts=o}null!==(t=r.google)&&void 0!==t&&t.length&&r.google.forEach(function(e){i.fontSets.google.fonts.push({family:e.family,type:"google",variants:e.variants||[],category:e.category||""})}),null!==(n=r.standard)&&void 0!==n&&n.length&&r.standard.forEach(function(e){i.fontSets.standard.fonts.push({family:e,type:"standard",variants:[],category:"sans-serif"})}),this.populateFavorites()},resetFontSets:function(){var e=this;Object.keys(this.fontSets).forEach(function(t){e.fontSets[t].fonts=[]})},downloadFont:function(e){this.$emit("download",e)},startEditFont:function(e){Xh.editingFont=e},handleFontDownloaded:function(e){this.fontSets.custom.fonts.push({id:e.id,family:e.family,type:"custom",fontFaces:e.fontFaces,variants:[]})},addNewFont:function(){var e=this;this.$_http({data:{action:"bricks_create_draft_font"},success:function(t){if(t.success&&t.data){var n=t.data.fontId,i={id:n,family:"",type:"custom",fontFaces:{},variants:[]};e.$_state.fonts.custom||(e.$_state.fonts.custom={}),e.$_state.fonts.custom=SV(SV({},e.$_state.fonts.custom),{},EV({},n,{family:"",type:"custom",fontFaces:{}})),e.fontSets.custom.fonts.push(i),e.$_state.fontChanges.families.added.push(n),e.$_state.editingFont=i}},error:function(){e.$_showError(e.i18n.errorCreatingFont)}})},closeEditFont:function(){var e=this.$_state.editingFont;if(e&&this.shouldAutoDeleteFont(e)&&this.$_state.fonts.custom&&this.$_state.fonts.custom[e.id]){var t=SV({},this.$_state.fonts.custom);delete t[e.id],this.$_state.fonts.custom=t}this.populateFontSets(),this.$_state.editingFont=null},shouldAutoDeleteFont:function(e){var t,n=!e.family||""===e.family.trim(),i=null===(t=this.$_state.fonts.custom)||void 0===t?void 0:t[e.id],r=!(null!=i&&i.fontFaces)||"object"===wV(i.fontFaces)&&0===Object.keys(i.fontFaces).length||"string"==typeof i.fontFaces&&!i.fontFaces.trim();return n&&r},loadTrashedFonts:function(){var e=this;this.$_http({data:{action:"bricks_get_trashed_fonts"},success:function(t){t.success&&(e.trashedFonts=t.data)},error:function(t){console.error("Error loading trashed fonts:",t),e.$_showError("Error loading trashed fonts")}})},toggleTrashView:function(){this.isTrashView=!this.isTrashView,this.isTrashView&&this.loadTrashedFonts()},restoreFont:function(e){var t=this;this.$_http({data:{action:"bricks_restore_font",id:e.replace("custom_font_","")},success:function(n){if(n.success){t.$_state.fonts.custom||(t.$_state.fonts.custom={});var i=n.data;t.$_state.fonts.custom[e]={family:i.family,type:"custom",fontFaces:i.fontFaces};var r=t.$_state.fontChanges.families.deleted.indexOf(e);r>-1&&t.$_state.fontChanges.families.deleted.splice(r,1),t.trashedFonts=t.trashedFonts.filter(function(t){return t.id!==e}),t.populateFontSets(),t.$_showMessage(t.i18n.fontRestored)}else{var o;t.$_showError((null===(o=n.data)||void 0===o?void 0:o.message)||t.i18n.fontRestoreError)}},error:function(e){console.error("Error restoring font:",e),t.$_showError(t.i18n.fontRestoreError)}})},deleteFontPermanently:function(e){var t=this;confirm(this.i18n.fontDeletedPermanentlyConfirm)&&this.$_http({data:{action:"bricks_delete_font_permanently",id:e.replace("custom_font_","")},success:function(n){var i;n.success?(t.trashedFonts=t.trashedFonts.filter(function(t){return t.id!==e}),t.$_showMessage(t.i18n.fontDeletedPermanently)):t.$_showError((null===(i=n.data)||void 0===i?void 0:i.message)||t.i18n.errorDeletingFont)},error:function(e){console.error("Error deleting font permanently:",e),t.$_showError(t.i18n.errorDeletingFont)}})}},created:function(){this.$_state.editingFont=null,this.loadTrashedFonts()},beforeUnmount:function(){if(this.$_state.unsavedChanges.includes("fonts")){var e,t=this.$_clone(this.initialFontsState);this.$_state.fonts.custom&&(t.custom=SV(SV({},t.custom),this.$_state.fonts.custom)),((null===(e=this.$_state.fontChanges)||void 0===e||null===(e=e.families)||void 0===e?void 0:e.deleted)||[]).forEach(function(e){t.custom&&t.custom[e]&&delete t.custom[e]}),this.$_state.fonts=t}},watch:{"$_state.fonts":{handler:function(e){e&&(this.populateFontSets(),this.isTrashView||this.loadTrashedFonts())},deep:!0,immediate:!0},"$_state.fontFavorites":{handler:function(){this.populateFavorites()},deep:!0,immediate:!0}}};const DV=(0,xx.A)(AV,[["render",function(e,t,n,i,r,o){var a=$r("icon"),s=$r("control-info"),l=$r("font-item"),c=$r("two-column-popup"),u=$r("font-item-edit");return this.$_state.editingFont?(Ta(),Ma("div",kB,[Ha(u,{font:this.$_state.editingFont,fontPreviewText:o.fontPreviewText,onClose:o.closeEditFont,onSave:o.closeEditFont},null,8,["font","fontPreviewText","onClose","onSave"])])):(Ta(),La(c,{key:0,title:r.isTrashView?"".concat(e.i18n.fontManager,": ").concat(e.i18n.trash):e.i18n.fontManager,"show-sidebar":!r.isTrashView},{"header-actions":Jn(function(){return[r.isTrashView?Qa("",!0):(Ta(),Ma("li",Zj,[qa("div",eB,[Xn(qa("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=function(e){return r.searchFonts=e}),placeholder:e.i18n.searchFor},null,8,tB),[[ac,r.searchFonts]])])])),r.isTrashView?Qa("",!0):(Ta(),Ma("li",{key:1,class:"add","data-balloon":"".concat(e.i18n.create," (").concat(e.i18n.customFont,")"),"data-balloon-pos":"bottom-right",onClick:t[1]||(t[1]=function(){return o.addNewFont&&o.addNewFont.apply(o,arguments)})},[Ha(a,{name:"add"})],8,nB)),!r.isTrashView&&o.filteredFonts.length?(Ta(),Ma("li",{key:2,class:te(["preview-text",{active:r.fontPreviewInputShow}]),"data-balloon":e.i18n.fontPreviewTextCustom,"data-balloon-pos":"bottom-right",onClick:t[2]||(t[2]=function(e){return r.fontPreviewInputShow=!r.fontPreviewInputShow})},[Ha(a,{name:"preview"})],10,iB)):Qa("",!0),qa("li",{class:"trash","data-balloon":r.isTrashView?e.i18n.back:e.i18n.trash,"data-balloon-pos":"bottom-right",onClick:t[3]||(t[3]=function(){return o.toggleTrashView&&o.toggleTrashView.apply(o,arguments)})},[Ha(a,{name:r.isTrashView?"arrow-left":"trash"},null,8,["name"]),!r.isTrashView&&r.trashedFonts.length?(Ta(),Ma("div",{key:0,class:"count",textContent:he(r.trashedFonts.length)},null,8,oB)):Qa("",!0)],8,rB)]}),sidebar:Jn(function(){return[(Ta(!0),Ma(Ca,null,Rr(r.fontSets,function(e,t){return Ta(),Ma("div",{class:te(["font-set-item",{active:r.selectedFontSet===t}]),key:t,onClick:function(e){return r.selectedFontSet=t}},[qa("span",sB,he(e.title),1),qa("span",lB,he(e.fonts.length),1)],10,aB)}),128))]}),"main-content":Jn(function(){return[r.isTrashView?(Ta(),Ma(Ca,{key:0},[r.trashedFonts.length?Qa("",!0):(Ta(),La(s,{key:0,control:{content:e.i18n.nothingFound}},null,8,["control"])),qa("div",cB,[(Ta(!0),Ma(Ca,null,Rr(r.trashedFonts,function(t){return Ta(),Ma("div",{key:t.id,class:"font-item"},[qa("div",uB,[qa("div",dB,[qa("h3",{class:"font-title",textContent:he(t.family)},null,8,pB),qa("div",hB,[qa("button",{class:"action-button restore","data-balloon":e.i18n.restore,"data-balloon-pos":"bottom-right",onClick:function(e){return o.restoreFont(t.id)}},[Ha(a,{name:"undo"})],8,fB),qa("button",{class:"action-button delete","data-balloon":e.i18n.deletePermanently,"data-balloon-pos":"bottom-right",onClick:function(e){return o.deleteFontPermanently(t.id)}},[Ha(a,{name:"trash"})],8,mB)])]),qa("div",{class:"font-preview",style:Y({fontFamily:t.family}),textContent:he(o.fontPreviewText)},null,12,gB)])])}),128))])],64)):(Ta(),Ma(Ca,{key:1},["favorites"===r.selectedFontSet?(Ta(),Ma("p",{key:0,class:"font-favorites-description",innerHTML:e.i18n.fontFavoritesDescription},null,8,vB)):Qa("",!0),qa("div",yB,[o.filteredFonts.length&&r.fontPreviewInputShow?Xn((Ta(),Ma("input",{key:0,type:"text","onUpdate:modelValue":t[4]||(t[4]=function(e){return r.fontPreviewInput=e}),placeholder:"".concat(e.i18n.fontPreviewTextCustom," ...")},null,8,bB)),[[ac,r.fontPreviewInput]]):Qa("",!0),o.filteredFonts.length?Qa("",!0):(Ta(),La(s,{key:1,class:"no-results",control:{content:1==e.bricks.googleFontsDisabled&&"google"===r.selectedFontSet?e.i18n.googleFontsDisabled:e.i18n.nothingFound}},null,8,["control"])),(Ta(!0),Ma(Ca,null,Rr(o.filteredFonts,function(e){return Ta(),La(l,Za({key:e.key},{ref_for:!0},e,{fontPreviewText:o.fontPreviewText,onFontDownloaded:o.handleFontDownloaded}),null,16,["fontPreviewText","onFontDownloaded"])}),128))])],64))]}),_:1},8,["title","show-sidebar"]))}]]);var TV=DV,IV={class:"flex"},OV={class:"title"},PV={class:"flex"},FV={class:"main flex"};var $V={class:"sub-header flex"},MV={class:"active-element-controls"},LV={for:"columns"},NV=["value"],jV={class:"number-control-buttons",style:{display:"flex","flex-direction":"column"}},BV={for:"rows"},RV=["value"],VV={class:"number-control-buttons",style:{display:"flex","flex-direction":"column"}},qV={for:"gap"},HV=["value"],zV=["data-balloon"],UV={for:"useMinMax",class:"disabled"},WV={"data-control":"checkbox"},GV=["value"];var KV={props:{columns:{type:Number},rows:{type:Number},gap:{type:[Number,String]},computedGap:{type:[Number,String]}},emits:["update:columns","update:rows","update:gap","update:useMinMax"],computed:{useMinMaxEnabled:function(){return"true"===localStorage.getItem("bricksUseMinMax")}},methods:{onInput:function(e,t){""!==e.target.value&&this.updateData(e.target.value,t)},onBlur:function(e,t){e.target.value!==this[t]&&this.updateData(e.target.value,t)},updateData:function(e,t){this.$emit("update:".concat(t),e)},onMinMaxChange:function(e){localStorage.setItem("bricksUseMinMax",e.target.checked),this.$emit("update:useMinMax",e.target.checked)}}};const QV=(0,xx.A)(KV,[["render",function(e,t,n,i,r,o){return Ta(),Ma("div",$V,[qa("ul",MV,[qa("li",null,[qa("label",LV,he(e.i18n.columns),1),qa("input",{id:"columns",value:n.columns,type:"number",onInput:t[0]||(t[0]=function(e){return o.onInput(e,"columns")}),onBlur:t[1]||(t[1]=function(e){return o.onBlur(e,"columns")})},null,40,NV),qa("div",jV,[qa("button",{class:"number-control-btn up",onClick:t[2]||(t[2]=function(e){return o.onBlur({target:{value:n.columns+1}},"columns")})}," + "),qa("button",{class:"number-control-btn down",onClick:t[3]||(t[3]=function(e){return o.onBlur({target:{value:Math.max(1,n.columns-1)}},"columns")})}," - ")])]),qa("li",null,[qa("label",BV,he(e.i18n.rows),1),qa("input",{id:"rows",value:n.rows,type:"number",onInput:t[4]||(t[4]=function(e){return o.onInput(e,"rows")}),onBlur:t[5]||(t[5]=function(e){return o.onBlur(e,"rows")})},null,40,RV),qa("div",VV,[qa("button",{class:"number-control-btn up",onClick:t[6]||(t[6]=function(e){return o.onBlur({target:{value:n.rows+1}},"rows")})}," + "),qa("button",{class:"number-control-btn down",onClick:t[7]||(t[7]=function(e){return o.onBlur({target:{value:Math.max(1,n.rows-1)}},"rows")})}," - ")])]),qa("li",null,[qa("label",qV,he(e.i18n.gap),1),qa("input",{id:"gap",value:n.gap,type:"text",onChange:t[8]||(t[8]=function(e){return o.updateData(e.target.value,"gap")})},null,40,HV)]),qa("li",{"data-balloon":e.i18n.useMinMaxDescription,"data-balloon-pos":"bottom-right","data-balloon-length":"medium"},[qa("label",UV,he(e.i18n.useMinMax),1),qa("div",WV,[qa("input",{id:"useMinMax",value:o.useMinMaxEnabled,type:"checkbox",name:"useMinMax",onChange:t[9]||(t[9]=function(){return o.onMinMaxChange&&o.onMinMaxChange.apply(o,arguments)})},null,40,GV)])],8,zV)])])}]]);var YV=QV,JV={class:"grid-breakpoints"},XV=["data-balloon","onClick"];var ZV={computed:{currentBreakpoint:function(){var e=this;return this.$_state.breakpoints.find(function(t){return t.key===e.$_state.breakpointActive})}},methods:{setBreakpoint:function(e){this.$_state.breakpointActive=e.key}}};var eq=(0,xx.A)(ZV,[["render",function(e,t,n,i,r,o){var a=$r("icon");return Ta(),Ma("div",JV,[(Ta(!0),Ma(Ca,null,Rr(e.$_state.breakpoints,function(e){return Ta(),Ma("button",{key:e.key,class:te(["grid-breakpoint-button",{active:e.key===o.currentBreakpoint.key}]),"data-balloon":e.label,onClick:function(t){return o.setBreakpoint(e)}},[Ha(a,{name:e.icon},null,8,["name"])],10,XV)}),128))])}]]),tq={class:"grid-actions"},nq=["data-balloon"],iq=["data-balloon"];var rq={emits:["resetGrid","fillGrid"],methods:{resetGrid:function(){this.$emit("resetGrid")},fillGrid:function(){this.$emit("fillGrid")}}};const oq=(0,xx.A)(rq,[["render",function(e,t,n,i,r,o){var a=$r("icon");return Ta(),Ma("div",tq,[qa("button",{class:te(["grid-reset-button"]),"data-balloon":"".concat(e.i18n.reset," (").concat(e.i18n.grid,")"),onClick:t[0]||(t[0]=function(){return o.resetGrid&&o.resetGrid.apply(o,arguments)})},[Ha(a,{name:"undo4"})],8,nq),qa("button",{class:te(["grid-fill-button"]),"data-balloon":"".concat(e.i18n.fillGrid),onClick:t[1]||(t[1]=function(){return o.fillGrid&&o.fillGrid.apply(o,arguments)})},[Ha(a,{name:"tab-layout"})],8,iq)])}]]);var aq=oq,sq={class:"grid-history"},lq=["data-balloon"],cq=["data-balloon"];var uq={emits:["history:updated"],methods:{doAction:function(e){this.$_state.historyInProgress||this.$_goto(e),this.$emit("history:updated")}}};var dq=(0,xx.A)(uq,[["render",function(e,t,n,i,r,o){var a=$r("icon");return Ta(),Ma("div",sq,[qa("button",{class:te(["undo",{disabled:e.$_state.historyInProgress||e.$_state.history.length<2||0===e.$_state.historyIndex}]),"data-balloon":e.i18n.undo,tabindex:"0",onKeyup:t[0]||(t[0]=wc(function(e){return o.doAction("undo")},["enter"])),onClick:t[1]||(t[1]=bc(function(e){return o.doAction("undo")},["stop"]))},[Ha(a,{name:"undo3"})],42,lq),qa("button",{class:te(["redo",{disabled:e.$_state.historyInProgress||e.$_state.historyIndex===e.$_state.history.length||e.$_state.historyIndex+1===e.$_state.history.length}]),"data-balloon":e.i18n.redo,tabindex:"0",onKeyup:t[2]||(t[2]=wc(function(e){return o.doAction("redo")},["enter"])),onClick:t[3]||(t[3]=bc(function(e){return o.doAction("redo")},["stop"]))},[Ha(a,{name:"redo3"})],42,cq)])}]]);function pq(e){return function(e){if(Array.isArray(e))return hq(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return hq(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hq(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hq(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var fq={class:"grid-panel-placeholder"};const mq={};var gq=(0,xx.A)(mq,[["render",function(e,t){return Ta(),Ma("div",fq,pq(t[0]||(t[0]=[qa("div",{class:"panel-element-data"},null,-1)])))}]]),vq={ref:"resizing",class:"grid-panel-element-resizing"},yq={class:"panel-element-data"},bq=["title","value"],kq={class:"panel-info-meta index"},wq=["textContent","title"],_q=["title"];var Cq={props:{data:{type:Object,default:function(){return{}}},placeholders:{type:Array,default:function(){return[]}},hoveringData:{type:Object,default:function(){return{}}},refreshKey:{type:Number,default:0},recalculate:{type:Number,default:0}},emits:["resize:start","resize:update","resize:end","move:start","move:update","move:end","refresh","onHover","element:reset","update:bounding-box","update:size"],data:function(){return{elementNode:null,gridColumnStart:0,gridColumnEnd:0,gridRowStart:0,gridRowEnd:0,isMoving:!1,size:{columns:0,rows:0},isResizing:!1,resizeDirection:null,startX:0,startY:0,startColumnSpan:0,startRowSpan:0}},computed:{gridAreaStyle:function(){return this.refreshKey,this.elementNode?{gridArea:window.getComputedStyle(this.elementNode).getPropertyValue("grid-area")}:{}},settings:function(){return this.element.settings},element:function(){return this.data.element},isActive:function(){return this.isResizing||this.isMoving},isHighlighted:function(){var e;return!(null===(e=this.hoveringData)||void 0===e||null===(e=e.element)||void 0===e||null===(e=e.settings)||void 0===e||!e.hasLoop)&&(this.hoveringData.element.id==this.data.element.id&&!this.isActive)}},watch:{recalculate:function(){this.recalculateGridData()}},beforeMount:function(){if(this.elementNode=this.$_getElementNode(this.element,"iframe"),this.data.id.includes("-"))for(var e=Number(this.data.id.split("-")[1]),t=0;t<e&&(this.elementNode=this.elementNode.nextElementSibling,this.elementNode);t++);},methods:{editElement:function(){this.$_state.activeId=this.element.id,this.$_state.activePanel="element",this.$_state.popup=!1},clearElement:function(){this.$_updateSetting(this.element.id,"_gridItemColumnSpan",""),this.$_updateSetting(this.element.id,"_gridItemRowSpan",null),this.$emit("element:reset",this.data)},onInputLabel:function(e,t){this.$_stopPostMessages();var n=e.target.value;n?t.label=n:delete t.label},onResizeStart:function(e,t){2!==t.button&&(t.preventDefault(),t.stopPropagation(),this.isResizing=!1,this.resizeDirection=e,this.startX=t.clientX,this.startY=t.clientY,this.startColumnSpan=this.gridColumnEnd-this.gridColumnStart,this.startRowSpan=this.gridRowEnd-this.gridRowStart,document.addEventListener("mousemove",this.onResize),document.addEventListener("mouseup",this.onResizeEnd))},onResize:function(e){var t=e.clientX-this.startX,n=e.clientY-this.startY;if(!this.isResizing&&(Math.abs(t)>5||Math.abs(n)>5)&&(this.isResizing=!0,this.$emit("resize:start",this.element)),this.isResizing){var i=this.$refs.resizing;switch(this.resizeDirection){case"top-left":i.style.top="".concat(n,"px"),i.style.left="".concat(t,"px");break;case"top-right":i.style.top="".concat(n,"px"),i.style.right="".concat(-t,"px");break;case"bottom-right":i.style.bottom="".concat(-n,"px"),i.style.right="".concat(-t,"px");break;case"bottom-left":i.style.bottom="".concat(-n,"px"),i.style.left="".concat(t,"px")}this.$emit("resize:update",this.element,i.getBoundingClientRect())}},onResizeEnd:function(){if(this.isResizing){this.isResizing=!1,this.resizeDirection=null;var e=this.$refs.resizing;e.style.top=0,e.style.left=0,e.style.right=0,e.style.bottom=0,this.$emit("resize:end",this.data)}document.removeEventListener("mousemove",this.onResize),document.removeEventListener("mouseup",this.onResizeEnd)},onMoveStart:function(e){2!==e.button&&(this.isMoving=!1,this.startX=e.clientX,this.startY=e.clientY,document.addEventListener("mousemove",this.onMove),document.addEventListener("mouseup",this.onMoveEnd))},onMove:function(e){var t=e.clientX-this.startX,n=e.clientY-this.startY;if(!this.isMoving&&(Math.abs(t)>10||Math.abs(n)>10)&&(this.isMoving=!0,this.$emit("move:start",this.element),this.recalculateGridData()),this.isMoving){var i={x:e.clientX,y:e.clientY};this.$refs.elementNode.style.transform="translate(".concat(t,"px, ").concat(n,"px)"),this.$emit("move:update",i,this.size)}},onMoveEnd:function(){this.isMoving&&(this.isMoving=!1,this.$refs.elementNode.style.transform="none",this.$emit("move:end",this.data,this.size));document.removeEventListener("mousemove",this.onMove),document.removeEventListener("mouseup",this.onMoveEnd)},onMouseOver:function(){this.$emit("onHover",!0,this.data)},onMouseLeave:function(){this.$emit("onHover",!1,this.data)},recalculateGridData:function(){var e=this,t=null,n=null,i=null,r=null,o=this.$refs.elementNode.getBoundingClientRect(),a={left:o.left+1,right:o.right-1,top:o.top+1,bottom:o.bottom-1};this.$emit("update:bounding-box",{left:o.left,right:o.right,top:o.top,bottom:o.bottom}),this.data.boundingBox=a,this.placeholders.forEach(function(o){e.isIntersecting(a,o.boundingBox)&&(null===t&&(t=o.column),null===n&&(n=o.column),null===i&&(i=o.row),null===r&&(r=o.row),t=Math.min(t,o.column),n=Math.max(n,o.column+1),i=Math.min(i,o.row),r=Math.max(r,o.row+1))}),this.gridColumnStart=t,this.gridColumnEnd=n,this.gridRowStart=i,this.gridRowEnd=r,this.size={columns:this.gridColumnEnd-this.gridColumnStart,rows:this.gridRowEnd-this.gridRowStart},this.$emit("update:size",this.size)},convertToNumber:function(e){return e.includes("span")?parseInt(e.split(" ")[1],10):isNaN(e)?e:parseInt(e,10)},isIntersecting:function(e,t){return!(t.left>e.right||t.right<e.left||t.top>e.bottom||t.bottom<e.top)}}};const xq=(0,xx.A)(Cq,[["render",function(e,t,n,i,r,o){var a=$r("icon");return Ta(),Ma("div",{ref:"elementNode",class:te(["grid-panel-element",{active:o.isActive,highlighted:o.isHighlighted}]),style:Y(o.gridAreaStyle),onMousedown:t[6]||(t[6]=function(){return o.onMoveStart&&o.onMoveStart.apply(o,arguments)}),onMouseover:t[7]||(t[7]=function(){return o.onMouseOver&&o.onMouseOver.apply(o,arguments)}),onMouseleave:t[8]||(t[8]=function(){return o.onMouseLeave&&o.onMouseLeave.apply(o,arguments)})},[qa("div",vq,[qa("div",{class:"handle handle-top-left",onMousedown:t[0]||(t[0]=function(e){return o.onResizeStart("top-left",e)})},null,32),qa("div",{class:"handle handle-top-right",onMousedown:t[1]||(t[1]=function(e){return o.onResizeStart("top-right",e)})},null,32),qa("div",{class:"handle handle-bottom-right",onMousedown:t[2]||(t[2]=function(e){return o.onResizeStart("bottom-right",e)})},null,32),qa("div",{class:"handle handle-bottom-left",onMousedown:t[3]||(t[3]=function(e){return o.onResizeStart("bottom-left",e)})},null,32)],512),qa("div",yq,[qa("input",{class:"panel-info-label",type:"text",autocomplete:"off",spellcheck:"false",title:e.i18n.rename,value:e.$_getElementLabel(o.element),onInput:t[4]||(t[4]=function(e){return o.onInputLabel(e,o.element)})},null,40,bq),qa("div",kq,[qa("span",{textContent:he(n.data.index),title:"".concat(e.i18n.index," (DOM)")},null,8,wq),Ha(a,{name:"edit",class:"edit",title:"".concat(e.i18n.edit," (").concat(e.i18n.element,")"),onClick:t[5]||(t[5]=function(e){return o.editElement()})},null,8,["title"]),Ha(a,{name:"undo4",class:"edit",title:"".concat(e.i18n.reset," (").concat(e.i18n.gridItem,")"),onClick:o.clearElement},null,8,["title","onClick"])]),o.element.settings.hasLoop?(Ta(),Ma("div",{key:0,class:"panel-info-meta loop",title:e.i18n.queryLoop},[Ha(a,{name:"loop"}),qa("span",null,"["+he(n.data.id.split("-")[1])+"]",1)],8,_q)):Qa("",!0)])],38)}]]);function Sq(e){return Sq="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sq(e)}function Eq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Aq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Eq(Object(n),!0).forEach(function(t){Dq(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Eq(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Dq(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Sq(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Sq(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Sq(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tq(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Iq(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Iq(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Iq(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var Oq={components:{GridPanelPlaceholder:gq,GridPanelElement:xq},props:{elements:{type:Array,default:function(){return[]}},columns:{type:Array,default:function(){return[]}},rows:{type:Array,default:function(){return[]}},gap:{type:[Number,String],default:0},individual:{type:Boolean,default:!0},gridTemplateColumns:{type:String,default:"repeat(1, 1fr)"},gridTemplateRows:{type:String,default:"repeat(1, 1fr)"},gridGap:{type:String,default:"0px"},updateNow:{type:Number,default:0},resetAll:{type:Number,default:0},fillAll:{type:Number,default:0}},emits:["element:moved","element:resized","element:reset","reinit"],data:function(){return{refreshKey:0,isResizing:!1,isMoving:!1,movingTo:null,hoveringData:null,originalCustomCSS:{},boundingBoxes:{},elementSize:{},startMarker:"/** VISUAL GRID BUILDER - START **/",endMarker:"/** VISUAL GRID BUILDER - END **/"}},computed:{placeholders:function(){if(this.columns.length&&this.rows.length){for(var e=[],t=1;t<=this.rows.length;t++)for(var n=1;n<=this.columns.length;n++)e.push({row:t,column:n,boundingBox:null,node:null});return e}return[]},activeSelector:function(){var e,t=this.$_state.activeClass;return t?".".concat(t.name):"#brxe-".concat(null===(e=this.$_state.activeElement)||void 0===e?void 0:e.id)},activeId:function(){var e,t;return(null===(e=this.$_state.activeClass)||void 0===e?void 0:e.id)||(null===(t=this.$_state.activeElement)||void 0===t?void 0:t.id)},isClassActive:function(){return!!this.$_state.activeClass},style:function(){return{}}},watch:{"$_state.breakpointActive":function(){this.refresh()},updateNow:function(){this.refresh()},resetAll:function(){var e=this;this.elements.forEach(function(t){e.onElementReset(t,!0,!0)}),this.$_updateSetting(this.activeId,"_gridTemplateRows",""),this.$_updateSetting(this.activeId,"_gridTemplateColumns","");var t=this.getCustomCSS();t=this.cleanGridBuilderSection(t,!1),this.$_updateSetting(this.activeId,"_cssCustom",t),this.refresh(this.isClassActive?250:50)},fillAll:function(){var e=this;this.handlePlaceholders(),this.$nextTick(function(){var t=e.placeholders.length;Object.entries(e.elementSize).forEach(function(e){var n=Tq(e,2)[1];n&&(t-=n.rows*n.columns)});for(var n=0;n<t;n++){var i,r=e.$_createElement({name:"block"});e.$_addToStore(r,"",null===(i=e.$_state.activeElement)||void 0===i?void 0:i.id)}t>0&&setTimeout(function(){e.$emit("reinit")},300)})}},mounted:function(){this.handlePlaceholders()},methods:{onElementReset:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.$_updateSetting(e.element.id,"_gridItemColumnSpan",""),this.$_updateSetting(e.element.id,"_gridItemRowSpan",null),!t){var i=Number(e.id.includes("-")?e.id.split("-")[1]:e.index),r=this.generateCustomCSS(e.element,i+1,null);this.$_updateSetting(this.activeId,"_cssCustom",r)}this.refresh(),n||this.$emit("element:reset")},onResizeStart:function(e){this.isResizing=e.id,this.handlePlaceholders()},onResizeUpdate:function(e,t){var n=this;this.placeholders.forEach(function(e){e.node&&e.boundingBox&&(n.isIntersecting(t,e.boundingBox)?e.node.classList.add("highlighted"):e.node.classList.remove("highlighted"))})},onResizeEnd:function(e){var t=this,n=this.placeholders.filter(function(e){return e.node.classList.contains("highlighted")}).reduce(function(e,t){var n=parseInt(t.column),i=parseInt(t.row);return n<e.minColumn&&(e.minColumn=n),n>e.maxColumn&&(e.maxColumn=n),i<e.minRow&&(e.minRow=i),i>e.maxRow&&(e.maxRow=i),e},{minColumn:1/0,maxColumn:-1/0,minRow:1/0,maxRow:-1/0}),i=n.minColumn,r=n.maxColumn+1,o=n.minRow,a=n.maxRow+1,s="".concat(i," / ").concat(r),l="".concat(o," / ").concat(a);if(e.element.settings.hasLoop){var c=Number(e.id.split("-")[1]),u=this.generateCustomCSS(e.element,c+1,{"grid-column":s,"grid-row":l});this.$_updateSetting(this.activeId,"_cssCustom",u)}else{if(this.updateCustomCss(e.element)){var d=this.generateCustomCSS(e.element,e.index+1,{"grid-column":s,"grid-row":l});this.$_updateSetting(this.activeId,"_cssCustom",d)}else this.removeGeneratedCustomCSS(e.index+1);this.$_updateSetting(this.isResizing,"_gridItemColumnSpan",s),this.$_updateSetting(this.isResizing,"_gridItemRowSpan",l)}this.$refs.placeholders.forEach(function(e){e.$el.classList.remove("highlighted")}),this.isResizing=!1,this.refresh(250),setTimeout(function(){t.$emit("element:resized")},270)},onMoveStart:function(e){this.isMoving=e.id,this.handlePlaceholders()},onMoveUpdate:function(e,t){var n=this,i={left:e.x,right:e.x,top:e.y,bottom:e.y};this.placeholders.forEach(function(e){if(e.boundingBox)if(n.isIntersecting(i,e.boundingBox))e.node&&e.node.classList.add("highlighted"),n.movingTo=e;else{if(n.movingTo===e&&(n.movingTo=null),n.movingTo&&e.row<=n.movingTo.row+t.rows-1&&e.column<=n.movingTo.column+t.columns-1&&e.row>=n.movingTo.row&&e.column>=n.movingTo.column)return void(e.node&&e.node.classList.add("highlighted"));e.node&&e.node.classList.remove("highlighted")}else n.handlePlaceholders()})},onMoveEnd:function(e,t){if(this.$refs.placeholders.forEach(function(e){e.$el.classList.remove("highlighted")}),this.movingTo){var n="".concat(this.movingTo.column," / ").concat(this.movingTo.column+t.columns),i="".concat(this.movingTo.row," / ").concat(this.movingTo.row+t.rows);if(e.element.settings.hasLoop){var r=Number(e.id.split("-")[1]),o=this.generateCustomCSS(e.element,r+1,{"grid-column":n,"grid-row":i});this.$_updateSetting(this.activeId,"_cssCustom",o)}else if(this.updateCustomCss(e.element)){var a=this.generateCustomCSS(e.element,e.index+1,{"grid-column":n,"grid-row":i});this.$_updateSetting(this.activeId,"_cssCustom",a)}else this.removeGeneratedCustomCSS(e.index+1),this.$_updateSetting(this.isMoving,"_gridItemColumnSpan",n),this.$_updateSetting(this.isMoving,"_gridItemRowSpan",i);this.$emit("element:moved",{column:this.movingTo.column+t.columns-1,row:this.movingTo.row+t.rows-1})}this.isMoving=null,this.movingTo=null,this.refresh(250)},updateCustomCss:function(e){if(this.isClassActive||!this.$_isNestable(e)||this.$_isComponentRoot(e))return!0},onHover:function(e,t){this.hoveringData=e?t:null},getCustomCSS:function(){var e=this,t=this.getActiveSettings();if(!t)return"";var n="",i=this.$_state.breakpoints.find(function(t){return t.key===e.$_state.breakpointActive});return n=null!=i&&i.base?"":":"+this.$_state.breakpointActive,t["_cssCustom".concat(n)]||""},generateCustomCSS:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.getActiveSettings()&&e){var i=this.getCustomCSS();i=this.ensureGridBuilderMarkers(i);var r=this.getGridBuilderCSS(i),o=this.updateElementGridCSS(r,e,t,n);return i=this.updateGridBuilderSection(i,o),i=this.cleanGridBuilderSection(i)}},removeGeneratedCustomCSS:function(e){var t=this.getCustomCSS();if(t){var n=this.getGridBuilderCSS(t);if(n){var i=this.removeElementGridCSSByNumber(n,e);i!==n&&(t=this.updateGridBuilderSection(t,i),t=this.cleanGridBuilderSection(t),this.$_updateSetting(this.activeId,"_cssCustom",t))}}},ensureGridBuilderMarkers:function(e){var t=e.indexOf(this.startMarker),n=e.indexOf(this.endMarker);if(-1!==t&&-1!==n&&n>t)return e;var i=e;return""!==e.trim()&&!e.endsWith("\n")&&(i+="\n\n"),i+=this.startMarker+"\n\n"+this.endMarker},getGridBuilderCSS:function(e){var t="/** VISUAL GRID BUILDER - START **/",n=e.indexOf(t),i=e.indexOf("/** VISUAL GRID BUILDER - END **/");return-1!==n&&-1!==i&&i>n?e.substring(n+35,i).trim():""},updateElementGridCSS:function(e,t,n,i){var r;if(!t.id)return e;var o=e||"",a=!(null===(r=t.settings)||void 0===r||!r.hasLoop),s=a?"/** ".concat(t.id," - LOOP ITEM - ").concat(n," **/"):"/** ".concat(t.id," - ").concat(n," **/"),l=o.indexOf(s),c=-1,u=-1;if(-1!==l&&-1!==(c=o.indexOf("{",l))){var d=1;for(u=c+1;d>0&&u<o.length;)"{"===o[u]?d++:"}"===o[u]&&d--,u++}if(null===i)return-1===l||-1===c||-1===u?o:(o=o.substring(0,l)+o.substring(u).replace(/^\s*\n/,"")).replace(/\n\s*\n\s*\n/g,"\n\n").trim();var p=0;p=a?n:this.elements.findIndex(function(e){return e.id===t.id})+1;for(var h=a?"".concat(this.activeSelector," :nth-child(").concat(p," of .brxe-").concat(t.id,")"):"".concat(this.activeSelector," :nth-child(").concat(p,")"),f="",m=0,g=Object.entries(i);m<g.length;m++){var v=Tq(g[m],2),y=v[0],b=v[1];f+=" ".concat(y,": ").concat(b,";\n")}var k="".concat(s,"\n")+"".concat(h," {\n")+"".concat(f)+"}\n";if(-1!==l&&-1!==c&&-1!==u){var w=o.substring(0,l),_=o.substring(u);o=w+k+_}else o&&!o.endsWith("\n")&&(o+="\n"),o+=k;return o},removeElementGridCSSByNumber:function(e,t){for(var n=e||"",i=this.findElementGridCSSBlockByNumber(n,t);i;)n=n.substring(0,i.commentIndex)+n.substring(i.blockEndIndex).replace(/^\s*\n/,""),i=this.findElementGridCSSBlockByNumber(n,t);return n.replace(/\n\s*\n\s*\n/g,"\n\n").trim()},findElementGridCSSBlockByNumber:function(e,t){for(var n=" - ".concat(t," **/"),i=0;i<e.length;){var r=e.indexOf("/** ",i);if(-1===r)return null;var o=e.indexOf("**/",r);if(-1===o)return null;var a=e.substring(r,o+3);if(a.endsWith(n)&&!a.includes(" - LOOP ITEM - ")){var s=this.getGridCSSBlockBoundaries(e,r);if(s)return Aq({commentIndex:r},s)}i=o+3}return null},getGridCSSBlockBoundaries:function(e,t){var n=e.indexOf("{",t);if(-1===n)return null;for(var i=1,r=n+1;i>0&&r<e.length;)"{"===e[r]?i++:"}"===e[r]&&i--,r++;return i>0?null:{blockStartIndex:n,blockEndIndex:r}},updateGridBuilderSection:function(e,t){var n=e.indexOf(this.startMarker),i=e.indexOf(this.endMarker);if(-1!==n&&-1!==i&&i>n){var r=e.substring(0,n+this.startMarker.length),o=e.substring(i),a="\n\n";return""!==t.trim()&&(a+=t.trim()+"\n\n"),r+a+o}return e},cleanGridBuilderSection:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.indexOf(this.startMarker),i=e.indexOf(this.endMarker);if(-1!==n&&-1!==i&&i>n){var r=e.substring(n+this.startMarker.length,i).trim();if(!t||!r){var o=e.substring(0,n).trimEnd(),a=e.substring(i+this.endMarker.length).trimStart();return o&&a?o+"\n\n"+a:o+a}}return e},escapeRegExp:function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},isIntersecting:function(e,t){return!(!e||!t)&&!(t.left>e.right||t.right<e.left||t.top>e.bottom||t.bottom<e.top)},handlePlaceholders:function(){var e=this;this.placeholders.forEach(function(t,n){var i=e.$refs.placeholders[n];if(!i)return t.node=null,void(t.boundingBox=null);t.boundingBox=i.$el.getBoundingClientRect(),t.node=i.$el})},getActiveSettings:function(){var e,t;return(null===(e=this.$_state.activeClass)||void 0===e?void 0:e.settings)||(null===(t=this.$_state.activeElement)||void 0===t?void 0:t.settings)},refresh:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;0!==t?setTimeout(function(){e.refreshKey++},t):this.refreshKey++}}};const Pq=(0,xx.A)(Oq,[["render",function(e,t,n,i,r,o){var a=$r("grid-panel-placeholder"),s=$r("grid-panel-element");return Ta(),Ma("div",{class:te(["grid-panel",{"is-resizing":r.isResizing,"is-moving":r.isMoving}]),style:Y(o.style)},[qa("div",{class:"grid-panel-placeholders",style:Y({gridTemplateColumns:n.gridTemplateColumns,gridTemplateRows:n.gridTemplateRows,gridGap:n.gridGap})},[(Ta(!0),Ma(Ca,null,Rr(o.placeholders.length,function(e){return Ta(),La(a,{ref_for:!0,ref:"placeholders",key:"".concat(e)})}),128))],4),qa("div",{class:"grid-panel-elements",style:Y({gridTemplateColumns:n.gridTemplateColumns,gridTemplateRows:n.gridTemplateRows,gridGap:n.gridGap})},[(Ta(!0),Ma(Ca,null,Rr(n.elements,function(e){return Ta(),La(s,{key:e.id,ref_for:!0,ref:"elements",element:e.element,data:e,placeholders:o.placeholders,"refresh-key":r.refreshKey,recalculate:n.fillAll,"hovering-data":r.hoveringData,"onResize:start":o.onResizeStart,"onResize:update":o.onResizeUpdate,"onResize:end":o.onResizeEnd,"onMove:start":o.onMoveStart,"onMove:update":o.onMoveUpdate,"onMove:end":o.onMoveEnd,onOnHover:o.onHover,"onElement:reset":o.onElementReset,"onUpdate:boundingBox":function(t){return r.boundingBoxes[e.id]=t},"onUpdate:size":function(t){return r.elementSize[e.id]=t}},null,8,["element","data","placeholders","refresh-key","recalculate","hovering-data","onResize:start","onResize:update","onResize:end","onMove:start","onMove:update","onMove:end","onOnHover","onElement:reset","onUpdate:boundingBox","onUpdate:size"])}),128))],4)],6)}]]);var Fq=["data-balloon"],$q=["min","value","onKeyup","onBlur"];function Mq(e){return function(e){if(Array.isArray(e))return Lq(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Lq(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lq(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lq(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var Nq={props:{controlFor:{type:String},gridGap:{type:String},columns:{type:Array,default:function(){return[]}},rows:{type:Array,default:function(){return[]}},calculatedColumns:{type:String,default:"1fr"},calculatedRows:{type:String,default:"1fr"}},emits:["update:columns","update:rows"],computed:{items:function(){return"columns"===this.controlFor?this.columns:this.rows},gridTemplateColumns:function(){return this.columns.join(" ")},gridTemplateRows:function(){return this.rows.join(" ")},style:function(){var e={};return"columns"===this.controlFor?e.gridTemplateColumns=this.calculatedColumns:e.gridTemplateRows=this.calculatedRows,e.gap=this.gridGap,e}},methods:{updateGridTemplate:function(e,t){var n=Mq(this.items);n[e]=t,this.$emit("update:".concat(this.controlFor),n)}}};function jq(e){return function(e){if(Array.isArray(e))return Bq(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Bq(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bq(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bq(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var Rq={components:{ControlsPanel:YV,GridPanel:Pq,GridHistory:dq,GridBreakpoints:eq,GridControls:(0,xx.A)(Nq,[["render",function(e,t,n,i,r,o){return Ta(),Ma("div",{class:te(["grid-controls","grid-controls-".concat(n.controlFor)]),style:Y(o.style)},[(Ta(!0),Ma(Ca,null,Rr(o.items,function(t,i){return Ta(),Ma("div",{key:i,"data-balloon":"".concat("columns"===n.controlFor?e.i18n.column:e.i18n.row," ").concat(i+1)},[qa("input",{type:"text",spellcheck:"false",min:"columns"===n.controlFor?1:0,value:t,onKeyup:wc(function(e){return o.updateGridTemplate(i,e.target.value)},["enter"]),onBlur:function(e){return o.updateGridTemplate(i,e.target.value)}},null,40,$q)],8,Fq)}),128))],6)}]]),GridActions:aq},data:function(){return{refreshKey:0,individual:!0,resetAll:0,fillAll:0,activeElement:null,activeElementNode:null,activeElementChildren:[],columns:[],rows:[],gap:"",computedGap:"",calculatedColumns:"",calculatedRows:"",recalculateTimeout:null,resizeTimeout:null}},computed:{isIframeRtl:function(){try{var e=this.$_getIframeDoc();if(!e)return!1;var t=e.documentElement;return"rtl"===(t.getAttribute("dir")||window.getComputedStyle(t).direction)}catch(e){return!1}},gridTemplateColumns:function(){return this.columns.map(function(e){return e=e.replace(/auto/g,"80px")}).join(" ")},gridTemplateRows:function(){return this.rows.map(function(e){return e=e.replace(/auto/g,"80px")}).join(" ")},activeId:function(){var e,t;return(null===(e=this.$_state.activeClass)||void 0===e?void 0:e.id)||(null===(t=this.$_state.activeElement)||void 0===t?void 0:t.id)},numberOfChildren:function(){return this.activeElementChildrenList.length},activeElementChildrenList:function(){var e=this,t=[],n=0;return this.activeElementChildren.forEach(function(i){var r;if(i.cid){var o=e.$_components.value.find(function(e){return e.id===i.cid});if(o&&o.elements){var a=o.elements.find(function(e){var t;return 0===e.parent&&!0===(null===(t=e.settings)||void 0===t?void 0:t.hasLoop)});if(a){for(var s=a.id,l=e.activeElementNode.querySelectorAll(".brxe-".concat(s)).length,c=0;c<l;c++)t.push({id:"".concat(a.id,"-").concat(c),element:a,boundingBox:null,index:n});n++}else t.push({id:i.id,element:i,boundingBox:null,index:n}),n++}else t.push({id:i.id,element:i,boundingBox:null,index:n}),n++}else if(null!==(r=i.settings)&&void 0!==r&&r.hasLoop){for(var u=i.id,d=jq(e.activeElementNode.children).filter(function(e){return e.classList.contains("brxe-".concat(u))}).length,p=0;p<d;p++)t.push({id:"".concat(i.id,"-").concat(p),element:i,boundingBox:null,index:n});n++}else t.push({id:i.id,element:i,boundingBox:null,index:n}),n++}),t},showQueryMaxResults:function(){return!!this.$_state.queryMaxResults&&(0!==this.numberOfChildren&&!!this.activeElementChildren.some(function(e){var t;return null===(t=e.settings)||void 0===t?void 0:t.hasLoop}))}},watch:{"$_state.breakpointActive":"recalculateGrid"},beforeMount:function(){this.onInit()},methods:{onInit:function(){var e;if(this.activeElement=this.$_state.activeElement,this.activeElement){this.activeElementNode=this.$_getElementNode(this.activeElement.value,"iframe");var t=this.activeElement.children;t||(this.activeElementChildren=[]);var n=(null===(e=this.$_state.activeComponent)||void 0===e?void 0:e.elements)||this.$_dynamicElements.value;this.activeElementChildren=t.map(function(e){return n.find(function(t){return t.id===e})}).filter(Boolean),this.recalculateGrid()}},onGridReset:function(){this.resetAll++,this.columns=[this.getDefaultValue()],this.calculatedColumns="1",this.updateRows(this.numberOfChildren)},onGridFill:function(){this.fillAll++},isClassActive:function(){return!!this.$_state.activeClass},updateColumns:function(e){var t=this,n=[];if(!Array.isArray(e)||e.length!==this.columns.length||!e.every(function(e,n){return e===t.columns[n]})){if(Array.isArray(e))n=e;else for(var i=0;i<Number(e);i++)this.columns[i]?n.push(this.columns[i]):n.push(this.getDefaultValue());this.$_updateSetting(this.activeId,"_gridTemplateColumns",n.join(" ")),this.columns=n,this.calculatedColumns=n.length+"",this.recalculateGrid(this.isClassActive()?400:50)}},updateRows:function(e){var t=this,n=[];if(!Array.isArray(e)||e.length!==this.rows.length||!e.every(function(e,n){return e===t.rows[n]})){if(Array.isArray(e))n=e;else for(var i=0;i<Number(e);i++)this.rows[i]?n.push(this.rows[i]):n.push(this.getDefaultValue());this.$_updateSetting(this.activeId,"_gridTemplateRows",n.join(" ")),this.rows=n,this.calculatedRows=n.length+"",this.recalculateGrid(this.isClassActive()?400:50)}},updateGap:function(e){this.gap=null===e?"":e,this.$_updateSetting(this.activeId,"_gridGap",e),this.recalculateGrid(20)},updateUseMinMax:function(e){var t=[],n=[];e?(t=this.columns.map(function(e){return e.startsWith("minmax")?e:"minmax(0, ".concat(e,")")}),n=this.rows.map(function(e){return e.startsWith("minmax")?e:"minmax(0, ".concat(e,")")})):(t=this.columns.map(function(e){return e.replace(/minmax\([^,]+,\s*(.*)\)/,"$1")}),n=this.rows.map(function(e){return e.replace(/minmax\([^,]+,\s*(.*)\)/,"$1")})),this.updateColumns(t),this.updateRows(n),this.recalculateGrid(20)},recalculateGrid:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=function(){var t=window.getComputedStyle(e.activeElementNode);e.calculatedColumns="auto";var n=t.getPropertyValue("grid-template-columns").split(" "),i=t.getPropertyValue("grid-template-rows").split(" "),r=e.getSetting("_gridTemplateColumns"),o=e.getSetting("_gridTemplateRows"),a=e.getSetting("_gridGap");null!==a&&(isNaN(a)?e.gap=a:e.gap="".concat(a,"px"));var s=r?e.splitBySpaceOutsideBrackets(r):[],l=[];s.forEach(function(t){if(t.includes("repeat")){var n=e.expandRepeatFunction(t);l.push.apply(l,jq(n))}else l.push(t)});var c=o?e.splitBySpaceOutsideBrackets(o):[],u=[];c.forEach(function(t){if(t.startsWith("repeat")){var n=e.expandRepeatFunction(t);u.push.apply(u,jq(n))}else u.push(t)}),l.length===n.length?e.columns=l:e.columns=n.map(function(){return e.getDefaultValue()}),u.length===i.length?e.rows=u:e.rows=i.map(function(){return e.getDefaultValue()});var d=parseInt(t.getPropertyValue("gap"));e.computedGap=isNaN(d)?d:"".concat(d,"px"),setTimeout(function(){var t,n=null===(t=e.$refs.gridPanelWrapper)||void 0===t?void 0:t.querySelector(".grid-panel-placeholders");if(n){var i=window.getComputedStyle(n);e.calculatedColumns=i.getPropertyValue("grid-template-columns"),e.calculatedRows=i.getPropertyValue("grid-template-rows")}},0)};this.recalculateTimeout&&(clearTimeout(this.recalculateTimeout),this.recalculateTimeout=null),t?this.recalculateTimeout=setTimeout(n,t):n()},autoResizeGrid:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=function(){var t=window.getComputedStyle(e.activeElementNode),n=t.getPropertyValue("grid-template-columns").split(" "),i=t.getPropertyValue("grid-template-rows").split(" ");n.length!=e.columns.length&&e.updateColumns(n.length),i.length!=e.rows.length&&e.updateRows(i.length)};this.resizeTimeout&&(clearTimeout(this.resizeTimeout),this.resizeTimeout=null),t?this.resizeTimeout=setTimeout(n,t):n()},onHistoryUpdated:function(){this.activeElementChildren.length!==this.activeElement.children.length?this.onInit():(this.recalculateGrid(100),this.refresh())},getActiveSettings:function(){var e,t;return(null===(e=this.$_state.activeClass)||void 0===e?void 0:e.settings)||(null===(t=this.$_state.activeElement)||void 0===t?void 0:t.settings)},getSetting:function(e){var t=this,n=this.getActiveSettings();if(!n)return null;if(!this.$_state)return null;var i="",r=this.$_state.breakpoints.find(function(e){return e.key===t.$_state.breakpointActive});return r&&"desktop"!==r.key&&(i=":".concat(this.$_state.breakpointActive)),void 0!==n[e+i]?n[e+i]:this.$_getNextBreakpointSetting(n,e)},ensureElementIsInsideGrid:function(e){this.columns.length<e.column&&this.updateColumns(e.column),this.rows.length<e.row&&this.updateRows(e.row),this.refresh()},getDefaultValue:function(){return"true"===localStorage.getItem("bricksUseMinMax")?"minmax(0, 1fr)":"1fr"},splitBySpaceOutsideBrackets:function(e){if(!e)return[];for(var t=[],n="",i=0,r=0;r<e.length;r++){var o=e[r];"("===o?(i++,n+=o):")"===o?(i--,n+=o):" "===o&&0===i?(n.trim()&&t.push(n.trim()),n=""):n+=o}return n.trim()&&t.push(n.trim()),t},expandRepeatFunction:function(e){if(!e||"string"!=typeof e)return[];if(!e.startsWith("repeat"))return[e];var t=e.match(/repeat\(\s*(\d+)\s*,\s*(.*)\)/);if(!t)return[e];for(var n=parseInt(t[1],10),i=t[2].trim(),r=[],o=0;o<n;o++)r.push(i);return r},refresh:function(){this.refreshKey++}}};var Vq=(0,xx.A)(Rq,[["render",function(e,t,n,i,r,o){var a=$r("control-info"),s=$r("grid-actions"),l=$r("grid-breakpoints"),c=$r("grid-history"),u=$r("controls-panel"),d=$r("grid-controls"),p=$r("grid-panel");return Ta(),Ma("div",null,[!r.gap&&r.computedGap?(Ta(),La(Lr("style"),{key:0},{default:Jn(function(){return[Ga(" .grid-controls, .grid-panel-placeholders, .grid-panel-elements { gap: "+he(r.computedGap)+" !important; } ",1)]}),_:1})):Qa("",!0),qa("header",IV,[qa("h2",OV,he(e.i18n.visualGridBuilder),1),qa("div",PV,[o.showQueryMaxResults?(Ta(),La(a,{key:0,control:{content:e.i18n.queryMaxResultsInfo}},null,8,["control"])):Qa("",!0),Ha(s,{onResetGrid:o.onGridReset,onFillGrid:o.onGridFill},null,8,["onResetGrid","onFillGrid"]),Ha(l),Ha(c,{"onHistory:updated":o.onHistoryUpdated},null,8,["onHistory:updated"])])]),Ha(u,{columns:r.columns.length,rows:r.rows.length,gap:r.gap,computedGap:r.computedGap,"onUpdate:rows":o.updateRows,"onUpdate:columns":o.updateColumns,"onUpdate:gap":o.updateGap,"onUpdate:useMinMax":o.updateUseMinMax},null,8,["columns","rows","gap","computedGap","onUpdate:rows","onUpdate:columns","onUpdate:gap","onUpdate:useMinMax"]),qa("div",FV,[qa("div",{ref:"gridPanelWrapper",class:"grid-panel-wrapper",style:Y({direction:o.isIframeRtl?"rtl":"ltr"})},[Ha(d,{"control-for":"columns",columns:r.columns,rows:r.rows,"calculated-columns":o.gridTemplateColumns,"calculated-rows":o.gridTemplateRows,"grid-gap":r.gap,"onUpdate:columns":o.updateColumns,"onUpdate:rows":o.updateRows},null,8,["columns","rows","calculated-columns","calculated-rows","grid-gap","onUpdate:columns","onUpdate:rows"]),Ha(d,{"control-for":"rows",columns:r.columns,rows:r.rows,"calculated-columns":o.gridTemplateColumns,"calculated-rows":o.gridTemplateRows,"grid-gap":r.gap,"onUpdate:columns":o.updateColumns,"onUpdate:rows":o.updateRows},null,8,["columns","rows","calculated-columns","calculated-rows","grid-gap","onUpdate:columns","onUpdate:rows"]),Ha(p,{columns:r.columns,rows:r.rows,elements:o.activeElementChildrenList,"grid-template-rows":o.gridTemplateRows,"grid-template-columns":o.gridTemplateColumns,"grid-gap":r.gap,gap:r.gap,"update-now":r.refreshKey,individual:r.individual,"reset-all":r.resetAll,"fill-all":r.fillAll,"onElement:moved":o.ensureElementIsInsideGrid,"onElement:resized":o.autoResizeGrid,"onElement:reset":t[0]||(t[0]=function(){return o.recalculateGrid(50)}),onReinit:o.onInit},null,8,["columns","rows","elements","grid-template-rows","grid-template-columns","grid-gap","gap","update-now","individual","reset-all","fill-all","onElement:moved","onElement:resized","onReinit"])],4)])])}]]),qq={class:"search-wrapper"},Hq=["placeholder"],zq={key:0,class:"icon-set-section custom"},Uq=["textContent"],Wq=["title","onClick","onDrop"],Gq={class:"icon-set-name"},Kq={class:"icon-set-name-left"},Qq=["value","onBlur","onKeyup"],Yq=["textContent"],Jq={key:0,class:"icon-set-info"},Xq={class:"icon-set-actions"},Zq=["data-balloon","onClick"],eH=["data-balloon"],tH=["data-balloon","onClick"],nH={class:"icon-set-section default"},iH={class:"sidebar-section-title"},rH=["onClick"],oH=["textContent"],aH={class:"sidebar-create-new"},sH={class:"input-wrapper"},lH=["placeholder"],cH={key:0,class:"actions"},uH={key:0,class:"icon-set built-in"},dH={class:"icon-set-header"},pH={class:"header-title"},hH=["textContent"],fH=["textContent"],mH={class:"icon-set-actions"},gH=["data-balloon"],vH=["checked"],yH={class:"icon-class-name"},bH={key:0,class:"icon-actions"},kH=["onClick","data-balloon"],wH={key:1,class:"icon-set custom"},_H={class:"icon-set-header"},CH={class:"header-content"},xH={class:"header-title"},SH=["textContent"],EH={class:"icon-set-actions"},AH={key:0,class:"move-to-wrapper"},DH=["data-balloon"],TH=["value"],IH=["data-balloon"],OH=["data-balloon"],PH=["data-balloon"],FH=["checked"],$H={key:1,class:"empty-set"},MH=["textContent"],LH={key:3,class:"no-search-results"},NH=["textContent"],jH={key:2,class:"no-set-selected"},BH=["textContent"];var RH={class:te(["icon-preview","move"])},VH=["src"],qH={class:"icon-name"},HH=["textContent"],zH=["title"],UH={class:"icon-actions"},WH=["data-balloon"],GH=["data-balloon"];var KH={name:"IconItem",props:{icon:{type:Object,required:!0},isBuiltIn:{type:Boolean,default:!1},isSelected:{type:Boolean,default:!1},selectedIconsCount:{type:Number,default:0}},data:function(){return{editedName:this.icon.name||"",isEditing:!1}},computed:{showInsertButton:function(){return this.$_state.iconManagerSource}},watch:{"icon.name":{handler:function(e){this.editedName=e},immediate:!0}},methods:{startEditing:function(){var e=this;this.isEditing=!0,this.$nextTick(function(){e.$refs.nameInput.focus()})},finishEditing:function(){this.isEditing=!1,this.editedName.trim()?this.editedName!==this.icon.name&&this.$emit("updateName",{icon:this.icon,name:this.editedName,originalName:this.icon.name}):this.editedName=this.icon.name||"Unnamed icon"},insertIcon:function(){this.$emit("insert",this.icon)},confirmDeletePermanently:function(){confirm(this.i18n.confirmDeletePermanently)&&this.$emit("deletePermanently",this.icon)}}};const QH=(0,xx.A)(KH,[["render",function(e,t,n,i,r,o){var a=$r("icon");return Ta(),Ma("div",{class:te(["icon-item",{"is-selected":n.isSelected,"in-trash":n.icon.trashed}]),onClick:t[5]||(t[5]=function(t){return e.$emit("select",n.icon)})},[qa("div",RH,[n.icon.url?(Ta(),Ma("img",{key:0,src:n.icon.url,alt:"SVG Icon"},null,8,VH)):Qa("",!0)]),qa("div",qH,[n.isBuiltIn?(Ta(),Ma("span",{key:0,textContent:he(n.icon.name)},null,8,HH)):Xn((Ta(),Ma("input",{key:1,type:"text","onUpdate:modelValue":t[0]||(t[0]=function(e){return r.editedName=e}),title:e.i18n.rename,onBlur:t[1]||(t[1]=function(){return o.finishEditing&&o.finishEditing.apply(o,arguments)}),onKeyup:t[2]||(t[2]=wc(function(e){return e.target.blur()},["enter"])),ref:"nameInput"},null,40,zH)),[[ac,r.editedName]])]),qa("div",UH,[o.showInsertButton&&(!n.isSelected||n.selectedIconsCount<=1)?(Ta(),Ma("button",{key:0,class:"icon-action insert","data-balloon":e.i18n.insert,"data-balloon-pos":"top-right",onClick:t[3]||(t[3]=bc(function(){return o.insertIcon&&o.insertIcon.apply(o,arguments)},["stop"]))},[Ha(a,{name:"import"})],8,WH)):Qa("",!0),n.isBuiltIn||n.isSelected&&!(n.selectedIconsCount<=1)?Qa("",!0):(Ta(),Ma("button",{key:1,class:"icon-action delete","data-balloon":e.i18n.removeFromIconSet,"data-balloon-pos":"top-right",onClick:t[4]||(t[4]=bc(function(t){return e.$emit("delete",n.icon)},["stop"]))},[Ha(a,{name:"trash"})],8,GH))])],2)}]]);function YH(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||XH(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function JH(e){return function(e){if(Array.isArray(e))return ZH(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||XH(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function XH(e,t){if(e){if("string"==typeof e)return ZH(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ZH(e,t):void 0}}function ZH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var ez={name:"PopupIcons",components:{IconItem:QH,TwoColumnPopup:kV},data:function(){return{draggingIconType:"",isLoading:!1,activeSet:"",activeSubType:"",searchTerm:"",foundIcons:[],newIconSetName:"",editingSetId:null,selectedIcons:[],lastSelectedIcon:null,moveToSetId:"",uploadedIcons:[],builtInIcons:{fontawesomeBrands:{},fontawesomeRegular:{},fontawesomeSolid:{},ionicons:{},themify:{}},builtInLibraries:{fontawesomeBrands:"Fontawesome - Brands",fontawesomeRegular:"Fontawesome - Regular",fontawesomeSolid:"Fontawesome - Solid",ionicons:"Ionicons",themify:"Themify"}}},computed:{iconSets:function(){return this.$_state.iconSets||[]},customIcons:function(){return this.$_state.customIcons||[]},backgroundColorIconItem:function(){var e=this.getIconSetBackgroundColor(this.activeSet);return e?".icon-preview { background-color: ".concat(e,"; }"):""},activeIconSet:function(){var e=this;return!this.activeSet||this.isBuiltInLibrary?null:this.iconSets.find(function(t){return t.id===e.activeSet})||null},activeSetName:function(){return this.isBuiltInLibrary?this.builtInLibraries[this.activeSet]||"":this.activeIconSet?this.activeIconSet.name:""},isBuiltInLibrary:function(){return Object.keys(this.builtInLibraries).includes(this.activeSet)},isCustomSet:function(){return!this.isBuiltInLibrary&&""!==this.activeSet},moveToSets:function(){var e=this;return this.iconSets.filter(function(t){return t.id!==e.activeSet})},filteredIcons:function(){var e=this.iconsForSet(this.activeSet);if(!e.length)return[];if(this.searchTerm){var t=this.searchTerm.toLowerCase();return e.filter(function(e){var n=e.name&&e.name.toLowerCase().includes(t),i=e.tags&&e.tags.some(function(e){return e.toLowerCase().includes(t)});return n||i})}return e},filteredBuiltInIcons:function(){if(!this.isBuiltInLibrary)return{};var e=this.builtInIcons[this.activeSet]||{};if(this.searchTerm){var t=this.searchTerm.toLowerCase(),n={};return Object.keys(e).forEach(function(i){i.toLowerCase().includes(t)&&(n[i]=e[i])}),n}return e},controlMoveToSet:function(){return{options:this.moveToSets.reduce(function(e,t){return e[t.id]=t.name,e},{}),placeholder:"".concat(this.i18n.moveSelected," (").concat(this.selectedIcons.length,")"),clearable:!1}}},watch:{moveToSetId:function(e){e&&this.moveSelectedIconsToSet()}},created:function(){this.$_state.editingIcon=null,this.setDefaultActiveSet()},mounted:function(){this.initBuiltInIcons()},unmounted:function(){this.$_state.iconManagerSource&&(this.$_state.iconManagerSource=null)},methods:{iconsForSet:function(e){return e&&this.customIcons.filter(function(t){return t.setId===e})||[]},startEditingSetName:function(e){var t=this;this.editingSetId=e.id,this.$nextTick(function(){if(t.$refs.setNameInput){var e=Array.isArray(t.$refs.setNameInput)?t.$refs.setNameInput[0]:t.$refs.setNameInput;e&&e.focus()}})},finishEditingSetName:function(e,t){t&&""!==t.trim()&&(e.name=t.trim(),this.updateIconSetName(e)),this.editingSetId=null},initBuiltInIcons:function(){var e=this;Vf.forEach(function(t){t="fab ".concat(t),e.builtInIcons.fontawesomeBrands[t]='<i class="'.concat(t,'"></i>')}),Rf.forEach(function(t){t="fa ".concat(t),e.builtInIcons.fontawesomeRegular[t]='<i class="'.concat(t,'"></i>')}),Bf.forEach(function(t){t="fas ".concat(t),e.builtInIcons.fontawesomeSolid[t]='<i class="'.concat(t,'"></i>')}),jf.forEach(function(t){e.builtInIcons.ionicons[t]='<i class="'.concat(t,'"></i>')}),Nf.forEach(function(t){e.builtInIcons.themify[t]='<i class="'.concat(t,'"></i>')}),this.setDefaultActiveSet()},openMediaLibrary:function(){this.$_openMediaLibrary("image/svg+xml",!0,{title:this.i18n.selectSvgIcons,button:{text:this.i18n.addToIconSet}},this.handleMediaLibrarySelection)},handleMediaLibrarySelection:function(e){var t=this;if(e){var n=Array.isArray(e)?e:e.images?e.images:[e];if(n.length){this.isLoading=!0;var i=n.filter(function(e){return e&&(e.url||e.full)&&e.id}).map(function(e){var n=e.url||e.full,i=n.split("/"),r=i[i.length-1].replace(/\.[^.]+$/,"");return r||(r="icon"),{id:"icon_"+Math.random().toString(36).substring(2,11),name:r,url:n,setId:t.activeSet,attachment_id:e.id}});i.length?this.activeIconSet?(this.$_state.customIcons=[].concat(JH(this.$_state.customIcons),JH(i)),this.isLoading=!1,this.$_showMessage(this.i18n.iconsImported)):(this.isLoading=!1,this.$_showError(this.i18n.noActiveSet)):this.isLoading=!1}}},deleteIcon:function(e){var t=this.$_state.customIcons.findIndex(function(t){return t.id===e.id});-1!==t&&(confirm(this.i18n.iconRemoveConfirmation)&&(this.$_state.customIcons.splice(t,1),this.$_showMessage("".concat(this.i18n.icon,": ").concat(this.i18n.removed))))},createNewIconSet:function(){if(this.newIconSetName){var e={id:"set_"+Math.random().toString(36).substring(2,11),name:this.newIconSetName};this.$_state.iconSets.push(e),this.activeSet=e.id,this.newIconSetName=""}},updateIconSetName:function(e){e.name.trim()||(e.name="Unnamed Set")},deleteIconSet:function(e){if(confirm(this.i18n.confirmDeleteIconSet)){var t=this.$_state.iconSets.findIndex(function(t){return t.id===e.id});-1!==t&&this.$_state.iconSets.splice(t,1),this.$_state.customIcons=this.$_state.customIcons.filter(function(t){return t.setId!==e.id}),this.activeSet===e.id&&(this.activeSet=this.iconSets.length>0?this.iconSets[0].id:"fontawesomeSolid")}},editIcon:function(e){this.$_state.editingIcon=e},setDefaultActiveSet:function(){(!this.activeSet||this.isCustomSet&&!this.activeIconSet)&&(this.iconSets.length>0?this.activeSet=this.iconSets[0].id:this.activeSet="fontawesomeSolid")},getIconSetBackgroundColor:function(e){var t=this.iconSets.find(function(t){return t.id===e});return null==t?void 0:t.backgroundColor},setIconSetBackgroundColor:function(e,t){var n=this.iconSets.find(function(t){return t.id===e});n&&(t?n.backgroundColor=t:delete n.backgroundColor)},updateIconName:function(e){var t=e.icon,n=e.name,i=this.$_state.customIcons.findIndex(function(e){return e.id===t.id});-1!==i&&(this.$_state.customIcons[i].name=n)},handleIconSort:function(e){var t=e.oldIndex,n=e.newIndex,i=this.iconsForSet(this.activeSet),r=this.$_state.customIcons.findIndex(function(e){return e.id===i[t].id}),o=this.$_state.customIcons.findIndex(function(e){return e.id===i[n].id}),a=YH(this.$_state.customIcons.splice(r,1),1)[0];this.$_state.customIcons.splice(o,0,a)},handleDragEnter:function(e){var t;"item"===this.draggingIconType&&(null===(t=e.target.closest(".icon-set-item"))||void 0===t||t.classList.add("drag-over"))},handleDragLeave:function(e){var t;"item"===this.draggingIconType&&(null===(t=e.target.closest(".icon-set-item"))||void 0===t||t.classList.remove("drag-over"))},handleIconDragStart:function(e,t){if(this.draggingIconType="item",this.selectedIcons.length>0&&this.isIconSelected(t)){var n={type:"multiple",ids:this.selectedIcons.map(function(e){return e.id})};e.dataTransfer.setData("application/json",JSON.stringify(n))}else{var i={type:"single",id:t.id};e.dataTransfer.setData("application/json",JSON.stringify(i))}e.dataTransfer.effectAllowed="move"},handleIconSetDrop:function(e,t){var n,i=this;(e.preventDefault(),"item"===this.draggingIconType)&&(null===(n=e.target.closest(".icon-set-item"))||void 0===n||n.classList.remove("drag-over"));try{var r=e.dataTransfer.getData("application/json");if(!r)return;var o=JSON.parse(r);if(!o||!o.type)return;if("multiple"===o.type)o.ids.forEach(function(e){var n=i.$_state.customIcons.findIndex(function(t){return t.id===e});-1!==n&&i.$_state.customIcons[n].setId!==t&&(i.$_state.customIcons[n].setId=t)}),this.selectedIcons=[];else if("single"===o.type){var a=this.$_state.customIcons.findIndex(function(e){return e.id===o.id});-1!==a&&(this.$_state.customIcons[a].setId=t)}}catch(e){console.error("Failed to parse drag data:",e)}},isSetDisabled:function(e){return this.$_state.disabledIconSets.includes(e)},toggleIconSet:function(e){var t=this.$_state.disabledIconSets,n=t.indexOf(e);-1===n?t.push(e):t.splice(n,1),this.$_state.disabledIconSets=JH(t)},handleIconClick:function(e,t){var n=this;if(e.metaKey||e.ctrlKey){var i=this.selectedIcons.findIndex(function(e){return e.id===t.id});return-1===i?this.selectedIcons.push(t):this.selectedIcons.splice(i,1),void(this.lastSelectedIcon=t)}if(e.shiftKey&&this.lastSelectedIcon){var r=this.filteredIcons,o=r.findIndex(function(e){return e.id===n.lastSelectedIcon.id}),a=r.findIndex(function(e){return e.id===t.id});if(-1!==o&&-1!==a){var s=Math.min(o,a),l=Math.max(o,a),c=r.slice(s,l+1);this.selectedIcons=JH(new Set([].concat(JH(this.selectedIcons),JH(c))))}}else this.isIconSelected(t)&&1===this.selectedIcons.length?(this.selectedIcons=[],this.lastSelectedIcon=null):(this.selectedIcons=[t],this.lastSelectedIcon=t)},isIconSelected:function(e){return this.selectedIcons.some(function(t){return t.id===e.id})},deleteSelectedIcons:function(){var e=this;if(this.selectedIcons.length&&confirm(this.i18n.confirmIconManageRemoveIcons)){var t=JH(this.selectedIcons);t.forEach(function(t){var n=e.$_state.customIcons.findIndex(function(e){return e.id===t.id});-1!==n&&e.$_state.customIcons.splice(n,1)}),this.selectedIcons=[],this.lastSelectedIcon=null,this.$_showMessage("".concat(this.i18n.iconsDeleted," (").concat(t.length,")"))}},moveSelectedIconsToSet:function(){var e=this;if(this.selectedIcons.length&&this.moveToSetId){var t=JH(this.selectedIcons);t.forEach(function(t){var n=e.$_state.customIcons.findIndex(function(e){return e.id===t.id});-1!==n&&(e.$_state.customIcons[n].setId=e.moveToSetId)}),this.activeSet=this.moveToSetId;var n=t.length;this.$nextTick(function(){e.moveToSetId=""}),this.$_showMessage("".concat(n," ").concat(this.i18n.icons,": ").concat(this.i18n.moved))}},insertBuiltInIconToControl:function(e){var t=this;if(this.$_state.iconManagerSource){var n=this.$_state.iconManagerSource.control;n.$emit("input",{library:this.activeSet}),this.$nextTick(function(){n.$emit("input",{library:t.activeSet,icon:e}),t.$_state.iconManagerSource=null,t.$_state.popup=!1})}},insertIconToControl:function(e){if(this.$_state.iconManagerSource){var t=this.$_state.iconManagerSource.control;if(this.isCustomSet){var n=this.$_clone(this.$_state.iconManagerSource.value||t.value||{});n.library="custom_"+this.activeSet,n.svg={id:Number(e.attachment_id),icon_id:e.id,url:e.url},delete n.icon,t.$emit("input",n),this.$_state.iconManagerSource=null,this.$_state.popup=!1}}}}};const tz=(0,xx.A)(ez,[["render",function(e,t,n,i,r,o){var a=$r("icon"),s=$r("sortable"),l=$r("control-info"),c=$r("control-select"),u=$r("icon-item"),d=$r("two-column-popup");return Ta(),La(d,{title:e.i18n.iconManager,"show-sidebar":!0},{style:Jn(function(){return[o.backgroundColorIconItem?(Ta(),La(Lr("style"),{key:0,scoped:"",innerHTML:o.backgroundColorIconItem},null,8,["innerHTML"])):Qa("",!0)]}),"header-actions":Jn(function(){return[qa("li",null,[qa("div",qq,[Xn(qa("input",{type:"search","onUpdate:modelValue":t[0]||(t[0]=function(e){return r.searchTerm=e}),placeholder:e.i18n.searchFor,autocomplete:"off",spellcheck:"false"},null,8,Hq),[[ac,r.searchTerm]])])])]}),sidebar:Jn(function(){return[o.iconSets.length?(Ta(),Ma("div",zq,[qa("h3",{class:"sidebar-section-title",textContent:he(e.i18n.customIconSets)},null,8,Uq),Ha(s,{tag:"div",class:"icon-sets-list",parent:o.iconSets,options:{direction:"vertical",itemClass:"icon-set-item",handleClass:"move",updateOn:"dragend"}},{default:Jn(function(){return[(Ta(!0),Ma(Ca,null,Rr(o.iconSets,function(n){return Ta(),Ma("div",{key:n.id,class:te([{"is-disabled":o.isSetDisabled(n.id),active:r.activeSet===n.id},"icon-set-item"]),title:o.isSetDisabled(n.id)?e.i18n.disabled:null,onClick:function(e){return r.activeSet=n.id},onDragover:t[2]||(t[2]=bc(function(){},["prevent"])),onDragstart:t[3]||(t[3]=function(e){return r.draggingIconType="set"}),onDragenter:t[4]||(t[4]=function(e){return o.handleDragEnter(e)}),onDragleave:t[5]||(t[5]=function(e){return o.handleDragLeave(e)}),onDrop:function(e){return o.handleIconSetDrop(e,n.id)}},[qa("div",Gq,[qa("div",Kq,[r.editingSetId===n.id?(Ta(),Ma("input",{key:0,type:"text",value:n.name,onClick:t[1]||(t[1]=bc(function(){},["stop"])),onBlur:function(e){return o.finishEditingSetName(n,e.target.value)},onKeyup:wc(function(e){return o.finishEditingSetName(n,e.target.value)},["enter"]),ref_for:!0,ref:"setNameInput"},null,40,Qq)):(Ta(),Ma("span",{key:1,textContent:he(n.name)},null,8,Yq))]),r.editingSetId!==n.id?(Ta(),Ma("div",Jq,[qa("div",Xq,[qa("button",{class:"rename","data-balloon":e.i18n.rename,onClick:bc(function(e){return o.startEditingSetName(n)},["stop"])},[Ha(a,{name:"edit"})],8,Zq),qa("button",{class:"move","data-balloon":e.i18n.move},[Ha(a,{name:"move"})],8,eH),qa("button",{class:"delete","data-balloon":e.i18n.delete,onClick:bc(function(e){return o.deleteIconSet(n)},["stop"])},[Ha(a,{name:"trash"})],8,tH)])])):Qa("",!0)])],42,Wq)}),128))]}),_:1},8,["parent"])])):Qa("",!0),qa("div",nH,[qa("h3",iH,he(e.i18n.builtInIconSets),1),(Ta(!0),Ma(Ca,null,Rr(r.builtInLibraries,function(e,t){return Ta(),Ma("div",{class:te(["icon-set-item",{active:r.activeSet===t,"is-disabled":o.isSetDisabled(t)}]),key:t,onClick:function(e){return r.activeSet=t}},[qa("div",{class:"icon-set-name",textContent:he(e)},null,8,oH)],10,rH)}),128))]),qa("div",aH,[qa("div",sH,[Xn(qa("input",{ref:"iconSetInput","onUpdate:modelValue":t[6]||(t[6]=function(e){return r.newIconSetName=e}),type:"text",autocomplete:"off",spellcheck:"false",placeholder:"".concat(e.i18n.createIconSet," ..."),onKeyup:t[7]||(t[7]=wc(function(e){return o.createNewIconSet()},["enter"]))},null,40,lH),[[ac,r.newIconSetName]]),r.newIconSetName?(Ta(),Ma("div",cH,[Ha(a,{name:"save","data-balloon":e.i18n.create,"data-balloon-pos":"top-right",onClick:t[8]||(t[8]=function(e){return o.createNewIconSet()})},null,8,["data-balloon"])])):Qa("",!0)])])]}),"main-content":Jn(function(){return[o.isBuiltInLibrary?(Ta(),Ma("div",uH,[qa("div",dH,[qa("div",pH,[o.isSetDisabled(r.activeSet)?(Ta(),Ma("button",{key:0,textContent:he(e.i18n.disabled)},null,8,hH)):Qa("",!0),qa("h3",{class:te({"is-disabled":o.isSetDisabled(r.activeSet)}),textContent:he("".concat(r.builtInLibraries[r.activeSet]," (").concat(Object.keys(o.filteredBuiltInIcons).length,")"))},null,10,fH)]),qa("div",mH,[qa("label",{class:"toggle-switch","data-balloon":o.isSetDisabled(r.activeSet)?"".concat(e.i18n.iconSet,": ").concat(e.i18n.disabled):"".concat(e.i18n.iconSet,": ").concat(e.i18n.active),"data-balloon-pos":"bottom-right"},[qa("input",{type:"checkbox",checked:!o.isSetDisabled(r.activeSet),onChange:t[9]||(t[9]=function(e){return o.toggleIconSet(r.activeSet)})},null,40,vH),t[16]||(t[16]=qa("span",{class:"slider"},null,-1))],8,gH)])]),o.isSetDisabled(r.activeSet)?(Ta(),La(l,{key:0,class:"icon-set-disabled",control:{content:e.i18n.iconSetDisabledInfo}},null,8,["control"])):Qa("",!0),qa("div",{class:te(["icon-grid",{"is-disabled":o.isSetDisabled(r.activeSet)}])},[(Ta(!0),Ma(Ca,null,Rr(o.filteredBuiltInIcons,function(t,n){return Ta(),Ma("div",{key:n,class:"built-in-icon-item"},[qa("i",{class:te(n)},null,2),qa("div",yH,he(n),1),e.$_state.iconManagerSource?(Ta(),Ma("div",bH,[qa("button",{class:"icon-action insert",onClick:function(e){return o.insertBuiltInIconToControl(n)},"data-balloon":e.i18n.insert,"data-balloon-pos":"top-right"},[Ha(a,{name:"import"})],8,kH)])):Qa("",!0)])}),128))],2)])):o.isCustomSet?(Ta(),Ma("div",wH,[qa("div",_H,[qa("div",CH,[qa("div",xH,[qa("h3",{class:te({"is-disabled":o.isSetDisabled(r.activeSet)}),textContent:he("".concat(o.activeSetName," (").concat(o.iconsForSet(r.activeSet).length,")"))},null,10,SH)]),qa("div",EH,[r.selectedIcons.length&&o.iconSets.length>1?(Ta(),Ma("div",AH,[Ha(c,{value:r.moveToSetId,"onUpdate:value":t[10]||(t[10]=function(e){return r.moveToSetId=e}),control:o.controlMoveToSet},null,8,["value","control"])])):Qa("",!0),qa("div",{class:"icon-set-background-color","data-balloon":"".concat(e.i18n.backgroundColor," (").concat(e.i18n.iconSet,")"),"data-balloon-pos":"bottom-right"},[qa("input",{type:"text",value:o.getIconSetBackgroundColor(r.activeSet),placeholder:"#3d4752",onInput:t[11]||(t[11]=function(e){return o.setIconSetBackgroundColor(r.activeSet,e.target.value)})},null,40,TH)],8,DH),r.selectedIcons.length>1?(Ta(),Ma("button",{key:1,class:"bulk-delete","data-balloon":"".concat(e.i18n.removeSelected," (").concat(r.selectedIcons.length,")"),"data-balloon-pos":"bottom-right",onClick:t[12]||(t[12]=function(){return o.deleteSelectedIcons&&o.deleteSelectedIcons.apply(o,arguments)})},[Ha(a,{name:"trash"})],8,IH)):Qa("",!0),qa("button",{class:"add-icon","data-balloon":"".concat(e.i18n.addToIconSet," (SVG)"),"data-balloon-pos":"bottom-right",onClick:t[13]||(t[13]=function(){return o.openMediaLibrary&&o.openMediaLibrary.apply(o,arguments)})},[Ha(a,{name:"add"})],8,OH),qa("label",{class:"toggle-switch","data-balloon":o.isSetDisabled(r.activeSet)?"".concat(e.i18n.iconSet,": ").concat(e.i18n.disabled):"".concat(e.i18n.iconSet,": ").concat(e.i18n.active),"data-balloon-pos":"bottom-right"},[qa("input",{type:"checkbox",checked:!o.isSetDisabled(r.activeSet),onChange:t[14]||(t[14]=function(e){return o.toggleIconSet(r.activeSet)})},null,40,FH),t[17]||(t[17]=qa("span",{class:"slider"},null,-1))],8,PH)])])]),o.isSetDisabled(r.activeSet)?(Ta(),La(l,{key:0,class:"icon-set-disabled",control:{content:e.i18n.iconSetDisabledInfo}},null,8,["control"])):Qa("",!0),o.iconsForSet(r.activeSet).length?Qa("",!0):(Ta(),Ma("div",$H,[Ha(a,{name:"no-results"}),qa("p",{textContent:he(e.i18n.nothingFound)},null,8,MH),qa("button",{class:"upload-button",onClick:t[15]||(t[15]=function(){return o.openMediaLibrary&&o.openMediaLibrary.apply(o,arguments)})},[Ha(a,{name:"upload"}),Ga(" "+he(e.i18n.addToIconSet),1)])])),o.filteredIcons.length?(Ta(),La(s,{key:2,tag:"div",class:te(["icon-grid",{"is-disabled":o.isSetDisabled(r.activeSet)}]),parent:o.filteredIcons,options:{direction:"horizontal",itemClass:"none",handleClass:"icon-preview",updateOn:"dragend"},onUpdate:o.handleIconSort},{default:Jn(function(){return[(Ta(!0),Ma(Ca,null,Rr(o.filteredIcons,function(e){return Ta(),La(u,{key:e.id,icon:e,"is-built-in":!1,"is-selected":o.isIconSelected(e),"selected-icons-count":r.selectedIcons.length,draggable:"false",onClick:function(t){return o.handleIconClick(t,e)},onDragstart:function(t){return o.handleIconDragStart(t,e)},onDelete:o.deleteIcon,onUpdateName:o.updateIconName,onInsert:o.insertIconToControl,onEdit:o.editIcon},null,8,["icon","is-selected","selected-icons-count","onClick","onDragstart","onDelete","onUpdateName","onInsert","onEdit"])}),128))]}),_:1},8,["class","parent","onUpdate"])):o.iconsForSet(r.activeSet).length>0?(Ta(),Ma("div",LH,[Ha(a,{name:"no-results"}),qa("p",{textContent:he(e.i18n.nothingFoundKeyword)},null,8,NH)])):Qa("",!0)])):(Ta(),Ma("div",jH,[qa("p",{textContent:he(e.i18n.selectIconSet)},null,8,BH)]))]}),_:1},8,["title"])}]]);var nz=tz,iz={class:"popup-code-editor"},rz={class:"popup-header"},oz=["textContent"];var az={name:"PopupCodeEditor",data:function(){return{isRunning:!1,hasUnexecutedCode:!1,initializedFromControl:!1,latestCodeValue:null,lastAppliedCodeValue:null,showDynamicPicker:!1,showVariablePicker:!1}},computed:{activeCodeEditor:function(){return this.$_state.activeCodeEditor},hasUnsignedCode:function(){var e,t;return this.$_state.unsignedCodeIds.includes(null===(e=this.activeCodeEditor)||void 0===e||null===(e=e.element)||void 0===e?void 0:e.id)||(null===(t=this.activeCodeEditor)||void 0===t?void 0:t.hasUnexecutedCode)&&!this.initializedFromControl},element:function(){var e;return null===(e=this.activeCodeEditor)||void 0===e?void 0:e.element},codeMode:function(){if(!this.activeCodeEditor)return"";var e=this.activeCodeEditor.mode;return"css"===e?"CSS":"javascript"===e?"JavaScript":"php"===e||"application/x-httpd-php"===e||"application/x-httpd-php-open"===e||"text/x-php"===e?"PHP":"htmlmixed"===e||"text/html"===e?"HTML":"json"===e?"JSON":e||""}},methods:{syncCodeChange:function(e){var t;void 0===e&&(e=this.latestCodeValue),null!=e&&this.lastAppliedCodeValue!==e&&null!==(t=this.activeCodeEditor)&&void 0!==t&&t.updateCallback&&(this.activeCodeEditor.updateCallback(e),this.lastAppliedCodeValue=e)},handleCodeChange:function(e){var t=this;this.latestCodeValue=e,this.$_debounce("popupCodeEditor",function(){t.syncCodeChange(e)})},handleUnexecutedStateChange:function(e){},handleCodeSigningComplete:function(){var e,t;if(this.hasUnexecutedCode=!1,null!==(e=this.activeCodeEditor)&&void 0!==e&&null!==(e=e.element)&&void 0!==e&&e.id){var n=this.$_state.unsignedCodeIds.indexOf(this.activeCodeEditor.element.id);n>-1&&this.$_state.unsignedCodeIds.splice(n,1)}null!==(t=this.activeCodeEditor)&&void 0!==t&&t.onCodeSigned&&this.activeCodeEditor.onCodeSigned()},initializeFromControl:function(){this.$refs.codeControl&&(this.hasUnexecutedCode=this.$refs.codeControl.hasUnexecutedCode||!1,this.initializedFromControl=!0)}},mounted:function(){var e,t=this;null!==(e=this.activeCodeEditor)&&void 0!==e&&e.cursorPosition&&this.$nextTick(function(){var e,n=null===(e=t.$refs.codeControl)||void 0===e?void 0:e.codemirror;n&&n.setCursor(t.activeCodeEditor.cursorPosition)}),this.$nextTick(function(){t.initializeFromControl()})},beforeUnmount:function(){this.syncCodeChange()},watch:{"$refs.codeControl":{handler:function(e){e&&!this.initializedFromControl&&this.initializeFromControl()}}}};var sz=(0,xx.A)(az,[["render",function(e,t,n,i,r,o){var a,s,l,c,u,d,p,h,f,m=$r("control-code");return Ta(),Ma("div",iz,[qa("div",rz,[qa("h2",{textContent:he(o.codeMode)},null,8,oz)]),Ha(m,{ref:"codeControl",value:null===(a=o.activeCodeEditor)||void 0===a?void 0:a.code,control:{mode:null===(s=o.activeCodeEditor)||void 0===s?void 0:s.mode,lint:null===(l=o.activeCodeEditor)||void 0===l?void 0:l.lint,theme:null===(c=o.activeCodeEditor)||void 0===c?void 0:c.theme,readOnly:null===(u=o.activeCodeEditor)||void 0===u?void 0:u.readOnly,placeholder:null===(d=o.activeCodeEditor)||void 0===d?void 0:d.placeholder,executeCode:null===(p=o.activeCodeEditor)||void 0===p?void 0:p.executeCode,signCode:null===(h=o.activeCodeEditor)||void 0===h?void 0:h.signCode,element:null===(f=o.activeCodeEditor)||void 0===f?void 0:f.element,hasDynamicData:"content"===e.$_state.activePanelTab,hasVariables:!0},onInput:o.handleCodeChange,onUnexecutedStateChange:o.handleUnexecutedStateChange,onCodeSigningComplete:o.handleCodeSigningComplete},null,8,["value","control","onInput","onUnexecutedStateChange","onCodeSigningComplete"])])}]]);function lz(e){return function(e){if(Array.isArray(e))return cz(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return cz(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cz(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cz(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var uz,dz={class:"title"},pz=["textContent"],hz={class:"content"},fz={class:"search-wrapper"},mz={class:"search-input-wrapper"},gz=["placeholder"],vz=["placeholder"],yz={key:1,class:"autocomplete-suggestions"},bz=["onClick"],kz=["textContent"],wz=["textContent"],_z=["disabled","textContent"],Cz=["title"],xz=["data-scope","onClick"],Sz={class:"text"},Ez={class:"icon"},Az={class:"results-wrapper"},Dz=["title"],Tz=["onClick"],Iz={class:"text"},Oz={class:"icon"},Pz={key:2,class:"results-count"},Fz={class:"count"},$z={class:"refresh"},Mz={key:3,class:"loading bricks-logo-animated"},Lz=["onClick","onMouseenter"],Nz=["innerHTML"],jz={key:0,class:"actions"},Bz=["href","data-balloon"],Rz=["href","data-balloon"],Vz=["href","data-balloon"],qz=["textContent"],Hz=["textContent"],zz=["textContent"];function Uz(e,t,n){const i=typeof n,r=typeof e;if("undefined"!==i){if("undefined"!==r){if(n){if("function"===r&&i===r)return function(t){return e(n(t))};if((t=e.constructor)===n.constructor){if(t===Array)return n.concat(e);if(t===Map){var o=new Map(n);for(var a of e)o.set(a[0],a[1]);return o}if(t===Set){for(o of(a=new Set(n),e.values()))a.add(o);return a}}}return e}return n}return"undefined"===r?t:e}function Wz(e,t){return void 0===e?t:e}function Gz(){return Object.create(null)}function Kz(e){return"string"==typeof e}function Qz(e){return"object"==typeof e}function Yz(e,t){if(Kz(t))e=e[t];else for(let n=0;e&&n<t.length;n++)e=e[t[n]];return e}const Jz=/[^\p{L}\p{N}]+/u,Xz=/(\d{3})/g,Zz=/(\D)(\d{3})/g,eU=/(\d{3})(\D)/g,tU=/[\u0300-\u036f]/g;function nU(e={}){if(!this||this.constructor!==nU)return new nU(...arguments);if(arguments.length)for(e=0;e<arguments.length;e++)this.assign(arguments[e]);else this.assign(e)}function iU(e){e.F=null,e.B.clear(),e.D.clear()}function rU(e,t,n){n||(t||"object"!=typeof e?"object"==typeof t&&(n=t,t=0):n=e),n&&(e=n.query||e,t=n.limit||t);let i=""+(t||0);n&&(i+=(n.offset||0)+!!n.context+!!n.suggest+(!1!==n.resolve)+(n.resolution||this.resolution)+(n.boost||0)),e=(""+e).toLowerCase(),this.cache||(this.cache=new oU);let r=this.cache.get(e+i);if(!r){const o=n&&n.cache;o&&(n.cache=!1),r=this.search(e,t,n),o&&(n.cache=o),this.cache.set(e+i,r)}return r}function oU(e){this.limit=e&&!0!==e?e:1e3,this.cache=new Map,this.h=""}(uz=nU.prototype).assign=function(e){this.normalize=Uz(e.normalize,!0,this.normalize);let t,n=e.include,i=n||e.exclude||e.split;if(i||""===i){if("object"==typeof i&&i.constructor!==RegExp){let e="";t=!n,n||(e+="\\p{Z}"),i.letter&&(e+="\\p{L}"),i.number&&(e+="\\p{N}",t=!!n),i.symbol&&(e+="\\p{S}"),i.punctuation&&(e+="\\p{P}"),i.control&&(e+="\\p{C}"),(i=i.char)&&(e+="object"==typeof i?i.join(""):i);try{this.split=new RegExp("["+(n?"^":"")+e+"]+","u")}catch(e){this.split=/\s+/}}else this.split=i,t=!1===i||"a1a".split(i).length<2;this.numeric=Uz(e.numeric,t)}else{try{this.split=Uz(this.split,Jz)}catch(e){this.split=/\s+/}this.numeric=Uz(e.numeric,Uz(this.numeric,!0))}if(this.prepare=Uz(e.prepare,null,this.prepare),this.finalize=Uz(e.finalize,null,this.finalize),i=e.filter,this.filter="function"==typeof i?i:Uz(i&&new Set(i),null,this.filter),this.dedupe=Uz(e.dedupe,!0,this.dedupe),this.matcher=Uz((i=e.matcher)&&new Map(i),null,this.matcher),this.mapper=Uz((i=e.mapper)&&new Map(i),null,this.mapper),this.stemmer=Uz((i=e.stemmer)&&new Map(i),null,this.stemmer),this.replacer=Uz(e.replacer,null,this.replacer),this.minlength=Uz(e.minlength,1,this.minlength),this.maxlength=Uz(e.maxlength,1024,this.maxlength),this.rtl=Uz(e.rtl,!1,this.rtl),(this.cache=i=Uz(e.cache,!0,this.cache))&&(this.F=null,this.L="number"==typeof i?i:2e5,this.B=new Map,this.D=new Map,this.I=this.H=128),this.h="",this.J=null,this.A="",this.K=null,this.matcher)for(const e of this.matcher.keys())this.h+=(this.h?"|":"")+e;if(this.stemmer)for(const e of this.stemmer.keys())this.A+=(this.A?"|":"")+e;return this},uz.addStemmer=function(e,t){return this.stemmer||(this.stemmer=new Map),this.stemmer.set(e,t),this.A+=(this.A?"|":"")+e,this.K=null,this.cache&&iU(this),this},uz.addFilter=function(e){return"function"==typeof e?this.filter=e:(this.filter||(this.filter=new Set),this.filter.add(e)),this.cache&&iU(this),this},uz.addMapper=function(e,t){return"object"==typeof e?this.addReplacer(e,t):e.length>1?this.addMatcher(e,t):(this.mapper||(this.mapper=new Map),this.mapper.set(e,t),this.cache&&iU(this),this)},uz.addMatcher=function(e,t){return"object"==typeof e?this.addReplacer(e,t):e.length<2&&(this.dedupe||this.mapper)?this.addMapper(e,t):(this.matcher||(this.matcher=new Map),this.matcher.set(e,t),this.h+=(this.h?"|":"")+e,this.J=null,this.cache&&iU(this),this)},uz.addReplacer=function(e,t){return"string"==typeof e?this.addMatcher(e,t):(this.replacer||(this.replacer=[]),this.replacer.push(e,t),this.cache&&iU(this),this)},uz.encode=function(e,t){if(this.cache&&e.length<=this.H)if(this.F){if(this.B.has(e))return this.B.get(e)}else this.F=setTimeout(iU,50,this);this.normalize&&(e="function"==typeof this.normalize?this.normalize(e):tU?e.normalize("NFKD").replace(tU,"").toLowerCase():e.toLowerCase()),this.prepare&&(e=this.prepare(e)),this.numeric&&e.length>3&&(e=e.replace(Zz,"$1 $2").replace(eU,"$1 $2").replace(Xz,"$1 "));const n=!(this.dedupe||this.mapper||this.filter||this.matcher||this.stemmer||this.replacer);let i,r,o=[],a=Gz(),s=this.split||""===this.split?e.split(this.split):[e];for(let e,c,u=0;u<s.length;u++)if((e=c=s[u])&&!(e.length<this.minlength||e.length>this.maxlength)){if(t){if(a[e])continue;a[e]=1}else{if(i===e)continue;i=e}if(n)o.push(e);else if(!this.filter||("function"==typeof this.filter?this.filter(e):!this.filter.has(e))){if(this.cache&&e.length<=this.I)if(this.F){var l=this.D.get(e);if(l||""===l){l&&o.push(l);continue}}else this.F=setTimeout(iU,50,this);if(this.stemmer){let t;for(this.K||(this.K=new RegExp("(?!^)("+this.A+")$"));t!==e&&e.length>2;)t=e,e=e.replace(this.K,e=>this.stemmer.get(e))}if(e&&(this.mapper||this.dedupe&&e.length>1)){l="";for(let t,n,i=0,r="";i<e.length;i++)t=e.charAt(i),t===r&&this.dedupe||((n=this.mapper&&this.mapper.get(t))||""===n?n===r&&this.dedupe||!(r=n)||(l+=n):l+=r=t);e=l}if(this.matcher&&e.length>1&&(this.J||(this.J=new RegExp("("+this.h+")","g")),e=e.replace(this.J,e=>this.matcher.get(e))),e&&this.replacer)for(l=0;e&&l<this.replacer.length;l+=2)e=e.replace(this.replacer[l],this.replacer[l+1]);if(this.cache&&c.length<=this.I&&(this.D.set(c,e),this.D.size>this.L&&(this.D.clear(),this.I=this.I/1.1|0)),e){if(e!==c)if(t){if(a[e])continue;a[e]=1}else{if(r===e)continue;r=e}o.push(e)}}}return this.finalize&&(o=this.finalize(o)||o),this.cache&&e.length<=this.H&&(this.B.set(e,o),this.B.size>this.L&&(this.B.clear(),this.H=this.H/1.1|0)),o},oU.prototype.set=function(e,t){this.cache.set(this.h=e,t),this.cache.size>this.limit&&this.cache.delete(this.cache.keys().next().value)},oU.prototype.get=function(e){const t=this.cache.get(e);return t&&this.h!==e&&(this.cache.delete(e),this.cache.set(this.h=e,t)),t},oU.prototype.remove=function(e){for(const t of this.cache){const n=t[0];t[1].includes(e)&&this.cache.delete(n)}},oU.prototype.clear=function(){this.cache.clear(),this.h=""};const aU={normalize:!1,numeric:!1,dedupe:!1},sU={},lU=new Map([["b","p"],["v","f"],["w","f"],["z","s"],["x","s"],["d","t"],["n","m"],["c","k"],["g","k"],["j","k"],["q","k"],["i","e"],["y","e"],["u","o"]]),cU=new Map([["ae","a"],["oe","o"],["sh","s"],["kh","k"],["th","t"],["ph","f"],["pf","f"]]),uU=[/([^aeo])h(.)/g,"$1$2",/([aeo])h([^aeo]|$)/g,"$1$2",/(.)\1+/g,"$1"],dU={a:"",e:"",i:"",o:"",u:"",y:"",b:1,f:1,p:1,v:1,c:2,g:2,j:2,k:2,q:2,s:2,x:2,z:2,"ß":2,d:3,t:3,l:4,m:5,n:5,r:6};var pU={Exact:aU,Default:sU,Normalize:sU,LatinBalance:{mapper:lU},LatinAdvanced:{mapper:lU,matcher:cU,replacer:uU},LatinExtra:{mapper:lU,replacer:uU.concat([/(?!^)[aeo]/g,""]),matcher:cU},LatinSoundex:{dedupe:!1,include:{letter:!0},finalize:function(e){for(let n=0;n<e.length;n++){var t=e[n];let i=t.charAt(0),r=dU[i];for(let e,n=1;n<t.length&&(e=t.charAt(n),"h"===e||"w"===e||!(e=dU[e])||e===r||(i+=e,r=e,4!==i.length));n++);e[n]=i}}},CJK:{split:""},LatinExact:aU,LatinDefault:sU,LatinSimple:sU};function hU(e,t,n,i){let r=[];for(let o,a=0;a<e.index.length;a++)if(o=e.index[a],t>=o.length)t-=o.length;else{const a=(t=o[i?"splice":"slice"](t,n)).length;if(a&&(r=r.length?r.concat(t):t,n-=a,i&&(e.length-=a),!n))break;t=0}return r}function fU(e){if(!this||this.constructor!==fU)return new fU(e);this.index=e?[e]:[],this.length=e?e.length:0;const t=this;return new Proxy([],{get(e,n){return"length"===n?t.length:"push"===n?function(e){t.index[t.index.length-1].push(e),t.length++}:"pop"===n?function(){if(t.length)return t.length--,t.index[t.index.length-1].pop()}:"indexOf"===n?function(e){let n=0;for(let i,r,o=0;o<t.index.length;o++){if(i=t.index[o],r=i.indexOf(e),r>=0)return n+r;n+=i.length}return-1}:"includes"===n?function(e){for(let n=0;n<t.index.length;n++)if(t.index[n].includes(e))return!0;return!1}:"slice"===n?function(e,n){return hU(t,e||0,n||t.length,!1)}:"splice"===n?function(e,n){return hU(t,e||0,n||t.length,!0)}:"constructor"===n?Array:"symbol"!=typeof n?(e=t.index[n/2**31|0])&&e[n]:void 0},set(e,n,i){return e=n/2**31|0,(t.index[e]||(t.index[e]=[]))[n]=i,t.length++,!0}})}function mU(e=8){if(!this||this.constructor!==mU)return new mU(e);this.index=Gz(),this.h=[],this.size=0,e>32?(this.B=yU,this.A=BigInt(e)):(this.B=vU,this.A=e)}function gU(e=8){if(!this||this.constructor!==gU)return new gU(e);this.index=Gz(),this.h=[],this.size=0,e>32?(this.B=yU,this.A=BigInt(e)):(this.B=vU,this.A=e)}function vU(e){let t=2**this.A-1;if("number"==typeof e)return e&t;let n=0,i=this.A+1;for(let r=0;r<e.length;r++)n=(n*i^e.charCodeAt(r))&t;return 32===this.A?n+2**31:n}function yU(e){let t=BigInt(2)**this.A-BigInt(1);var n=typeof e;if("bigint"===n)return e&t;if("number"===n)return BigInt(e)&t;n=BigInt(0);let i=this.A+BigInt(1);for(let r=0;r<e.length;r++)n=(n*i^BigInt(e.charCodeAt(r)))&t;return n}let bU,kU,wU,_U,CU;async function xU(e){var t=(e=e.data).task;const n=e.id;let i=e.args;if("init"===t)kU=e.options||{},(t=e.factory)?(Function("return "+t)()(self),bU=new self.FlexSearch.Index(kU),delete self.FlexSearch):bU=new fW(kU),postMessage({id:n});else{let r;"export"===t&&(i[1]?(i[0]=kU.export,i[2]=0,i[3]=1):i=null),"import"===t?i[0]&&(e=await kU.import.call(bU,i[0]),bU.import(i[0],e)):((r=i&&bU[t].apply(bU,i))&&r.then&&(r=await r),r&&r.await&&(r=await r.await),"search"===t&&r.result&&(r=r.result)),postMessage("search"===t?{id:n,msg:r}:{id:n})}}function SU(e){AU.call(e,"add"),AU.call(e,"append"),AU.call(e,"search"),AU.call(e,"update"),AU.call(e,"remove"),AU.call(e,"searchCache")}function EU(){wU=CU=0}function AU(e){this[e+"Async"]=function(){const t=arguments;var n=t[t.length-1];let i;if("function"==typeof n&&(i=n,delete t[t.length-1]),wU?CU||(CU=Date.now()-_U>=this.priority*this.priority*3):(wU=setTimeout(EU,0),_U=Date.now()),CU){const n=this;return new Promise(i=>{setTimeout(function(){i(n[e+"Async"].apply(n,t))},0)})}const r=this[e].apply(this,t);return n=r.then?r:new Promise(e=>e(r)),i&&n.then(i),n}}fU.prototype.clear=function(){this.index.length=0},fU.prototype.push=function(){},mU.prototype.get=function(e){const t=this.index[this.B(e)];return t&&t.get(e)},mU.prototype.set=function(e,t){var n=this.B(e);let i=this.index[n];i?(n=i.size,i.set(e,t),(n-=i.size)&&this.size++):(this.index[n]=i=new Map([[e,t]]),this.h.push(i),this.size++)},gU.prototype.add=function(e){var t=this.B(e);let n=this.index[t];n?(t=n.size,n.add(e),(t-=n.size)&&this.size++):(this.index[t]=n=new Set([e]),this.h.push(n),this.size++)},(uz=mU.prototype).has=gU.prototype.has=function(e){const t=this.index[this.B(e)];return t&&t.has(e)},uz.delete=gU.prototype.delete=function(e){const t=this.index[this.B(e)];t&&t.delete(e)&&this.size--},uz.clear=gU.prototype.clear=function(){this.index=Gz(),this.h=[],this.size=0},uz.values=gU.prototype.values=function*(){for(let e=0;e<this.h.length;e++)for(let t of this.h[e].values())yield t},uz.keys=gU.prototype.keys=function*(){for(let e=0;e<this.h.length;e++)for(let t of this.h[e].keys())yield t},uz.entries=gU.prototype.entries=function*(){for(let e=0;e<this.h.length;e++)for(let t of this.h[e].entries())yield t};let DU=0;function TU(e={},t){function i(n){function i(e){const t=(e=e.data||e).id,n=t&&a.h[t];n&&(n(e.msg),delete a.h[t])}if(this.worker=n,this.h=Gz(),this.worker)return o?this.worker.on("message",i):this.worker.onmessage=i,e.config?new Promise(function(t){DU>1e9&&(DU=0),a.h[++DU]=function(){t(a)},a.worker.postMessage({id:DU,task:"init",factory:r,options:e})}):(this.priority=e.priority||4,this.encoder=t||null,this.worker.postMessage({task:"init",factory:r,options:e}),this)}if(!this||this.constructor!==TU)return new TU(e);let r="undefined"!=typeof self?self._factory:"undefined"!=typeof window?window._factory:null;r&&(r=r.toString());const o="undefined"==typeof window,a=this,s=function(e,t,i){return t?"undefined"!=typeof module?new(require("worker_threads").Worker)(__dirname+"/worker/node.js"):n.e(7809).then(n.t.bind(n,17809,19)).then(function(e){return new e.Worker(void 0+"/node/node.mjs")}):e?new window.Worker(URL.createObjectURL(new Blob(["onmessage="+xU.toString()],{type:"text/javascript"}))):new window.Worker("string"==typeof i?i:"file:///Users/tom/Sites/bricks/wp-content/themes/bricks/node_modules/flexsearch/dist/flexsearch.bundle.module.min.mjs".replace("/worker.js","/worker/worker.js").replace("flexsearch.bundle.module.min.js","module/worker/worker.js").replace("flexsearch.bundle.module.min.mjs","module/worker/worker.js"),{type:"module"})}(r,o,e.worker);return s.then?s.then(function(e){return i.call(a,e)}):i.call(this,s)}function IU(e){TU.prototype[e]=function(){const t=this,n=[].slice.call(arguments);var i=n[n.length-1];let r;return"function"==typeof i&&(r=i,n.pop()),i=new Promise(function(i){"export"===e&&"function"==typeof n[0]&&(n[0]=null),DU>1e9&&(DU=0),t.h[++DU]=i,t.worker.postMessage({task:e,id:DU,args:n})}),r?(i.then(r),this):i}}function OU(e,t,n,i,r,o){if(e=e[r],i===n.length-1)t[r]=o||e;else if(e)if(e.constructor===Array)for(t=t[r]=Array(e.length),r=0;r<e.length;r++)OU(e,t,n,i,r);else t=t[r]||(t[r]=Gz()),r=n[++i],OU(e,t,n,i,r)}function PU(e,t,n,i,r,o,a,s){if(e=e[a])if(i===t.length-1){if(e.constructor===Array){if(n[i]){for(t=0;t<e.length;t++)r.add(o,e[t],!0,!0);return}e=e.join(" ")}r.add(o,e,s,!0)}else if(e.constructor===Array)for(a=0;a<e.length;a++)PU(e,t,n,i,r,o,a,s);else a=t[++i],PU(e,t,n,i,r,o,a,s)}function FU(e,t,n,i){if(!e.length)return e;if(1===e.length)return e=e[0],e=n||e.length>t?e.slice(n,n+t):e,i?KU.call(this,e):e;let r=[];for(let o,a,s=0;s<e.length;s++)if((o=e[s])&&(a=o.length)){if(n){if(n>=a){n-=a;continue}o=o.slice(n,n+t),a=o.length,n=0}if(a>t&&(o=o.slice(0,t),a=t),!r.length&&a>=t)return i?KU.call(this,o):o;if(r.push(o),!(t-=a))break}return r=r.length>1?[].concat.apply([],r):r[0],i?KU.call(this,r):r}function $U(e,t,n,i){var r=i[0];if(r[0]&&r[0].query)return e[t].apply(e,r);if(!("and"!==t&&"not"!==t||e.result.length||e.await||r.suggest))return i.length>1&&(r=i[i.length-1]),(i=r.resolve)?e.await||e.result:e;let o,a,s,l,c,u=[],d=0,p=0;for(t=0;t<i.length;t++)if(r=i[t]){var h=void 0;if(r.constructor===VU)h=r.await||r.result;else if(r.then||r.constructor===Array)h=r;else{d=r.limit||0,p=r.offset||0,s=r.suggest,a=r.resolve,o=((l=r.highlight||e.highlight)||r.enrich)&&a,h=r.queue;let n=r.async||h,i=r.index,f=r.query;if(i?e.index||(e.index=i):i=e.index,f||r.tag){const o=r.field||r.pluck;if(o&&(!f||e.query&&!l||(e.query=f,e.field=o,e.highlight=l),i=i.index.get(o)),h&&(c||e.await)){let o;c=1;const a=e.C.length,s=new Promise(function(e){o=e});(function(t,i){s.h=function(){i.index=null,i.resolve=!1;let r=n?t.searchAsync(i):t.search(i);return r.then?r.then(function(t){return e.C[a]=t=t.result||t,o(t),t}):(r=r.result||r,o(r),r)}})(i,Object.assign({},r)),e.C.push(s),u[t]=s;continue}r.resolve=!1,r.index=null,h=n?i.searchAsync(r):i.search(r),r.resolve=a,r.index=i}else if(r.and)h=MU(r,"and",i);else if(r.or)h=MU(r,"or",i);else if(r.not)h=MU(r,"not",i);else{if(!r.xor)continue;h=MU(r,"xor",i)}}h.await?(c=1,h=h.await):h.then?(c=1,h=h.then(function(e){return e.result||e})):h=h.result||h,u[t]=h}if(c&&!e.await&&(e.await=new Promise(function(t){e.return=t})),c){const t=Promise.all(u).then(function(i){for(let r=0;r<e.C.length;r++)if(e.C[r]===t){e.C[r]=function(){return n.call(e,i,d,p,o,a,s,l)};break}qU(e)});e.C.push(t)}else{if(!e.await)return n.call(e,u,d,p,o,a,s,l);e.C.push(function(){return n.call(e,u,d,p,o,a,s,l)})}return a?e.await||e.result:e}function MU(e,t,n){const i=(e=e[t])[0]||e;return i.index||(i.index=n),n=new VU(i),e.length>1&&(n=n[t].apply(n,e.slice(1))),n}function LU(e,t,n,i,r,o,a){return e.length&&(this.result.length&&e.push(this.result),e.length<2?this.result=e[0]:(this.result=zU(e,t,n,!1,this.h),n=0)),r&&(this.await=null),r?this.resolve(t,n,i,a):this}function NU(e,t,n,i,r,o,a){if(!o&&!this.result.length)return r?this.result:this;let s;if(e.length)if(this.result.length&&e.unshift(this.result),e.length<2)this.result=e[0];else{let i=0;for(let t,n,r=0;r<e.length;r++)if((t=e[r])&&(n=t.length))i<n&&(i=n);else if(!o){i=0;break}i?(this.result=HU(e,i,t,n,o,this.h,r),s=!0):this.result=[]}else o||(this.result=e);return r&&(this.await=null),r?this.resolve(t,n,i,a,s):this}function jU(e,t,n,i,r,o,a){if(e.length)if(this.result.length&&e.unshift(this.result),e.length<2)this.result=e[0];else{e:{o=n;var s=this.h;const i=[],a=Gz();let l=0;for(let t,n=0;n<e.length;n++)if(t=e[n]){l<t.length&&(l=t.length);for(let e,n=0;n<t.length;n++)if(e=t[n])for(let t,n=0;n<e.length;n++)t=e[n],a[t]=a[t]?2:1}for(let n,c=0,u=0;c<l;c++)for(let l,d=0;d<e.length;d++)if((l=e[d])&&(n=l[c]))for(let l,p=0;p<n.length;p++)if(l=n[p],1===a[l])if(o)o--;else if(r){if(i.push(l),i.length===t){e=i;break e}}else{const n=c+(d?s:0);if(i[n]||(i[n]=[]),i[n].push(l),++u===t){e=i;break e}}e=i}this.result=e,s=!0}else o||(this.result=e);return r&&(this.await=null),r?this.resolve(t,n,i,a,s):this}function BU(e,t,n,i,r,o,a){if(!o&&!this.result.length)return r?this.result:this;if(e.length&&this.result.length){e:{o=n;var s=[];e=new Set(e.flat().flat());for(let n,i=0,a=0;i<this.result.length;i++)if(n=this.result[i])for(let l,c=0;c<n.length;c++)if(l=n[c],!e.has(l))if(o)o--;else if(r){if(s.push(l),s.length===t){e=s;break e}}else if(s[i]||(s[i]=[]),s[i].push(l),++a===t){e=s;break e}e=s}this.result=e,s=!0}return r&&(this.await=null),r?this.resolve(t,n,i,a,s):this}function RU(e,t,n,i,r){let o,a,s;"string"==typeof r?(o=r,r=""):o=r.template,a=o.indexOf("$1"),s=o.substring(a+2),a=o.substring(0,a);let l=r&&r.boundary,c=!r||!1!==r.clip,u=r&&r.merge&&s&&a&&new RegExp(s+" "+a,"g");var d=0;if("object"==typeof(r=r&&r.ellipsis)){var p=r.template;d=p.length-2,r=r.pattern}let h,f;"string"!=typeof r&&(r=!1===r?"":"..."),d&&(r=p.replace("$1",r)),p=r.length-d,"object"==typeof l&&(h=l.before,0===h&&(h=-1),f=l.after,0===f&&(f=-1),l=l.total||9e5),d=new Map;for(let F,$,M,L=0;L<t.length;L++){let N;if(i)N=t,M=i;else{var m=t[L];if(M=m.field,!M)continue;N=m.result}$=n.get(M),F=$.encoder,"string"!=typeof(m=d.get(F))&&(m=F.encode(e),d.set(F,m));for(let e=0;e<N.length;e++){var g=N[e].doc;if(!g)continue;if(!(g=Yz(g,M)))continue;var v=g.trim().split(/\s+/);if(!v.length)continue;g="";var y=[];let t=[];for(var b=-1,k=-1,w=0,_=0;_<v.length;_++){var C=v[_],x=F.encode(C);let e;if((x=x.length>1?x.join(" "):x[0])&&C){for(var S=C.length,E=(F.split?C.replace(F.split,""):C).length-x.length,A="",D=0,T=0;T<m.length;T++){var I=m[T];if(I){var O=I.length;O+=E<0?0:E,D&&O<=D||(I=x.indexOf(I))>-1&&(A=(I?C.substring(0,I):"")+a+C.substring(I,I+O)+s+(I+O<S?C.substring(I+O):""),D=O,e=!0)}}A&&(l&&(b<0&&(b=g.length+(g?1:0)),k=g.length+(g?1:0)+A.length,w+=S,t.push(y.length),y.push({match:A})),g+=(g?" ":"")+A)}if(e){if(l&&w>=l)break}else g+=(g?" ":"")+(C=v[_]),l&&y.push({text:C})}if(w=t.length*(o.length-2),h||f||l&&g.length-w>l)if(_=k-b,h>0&&(_+=h),f>0&&(_+=f),_<=(w=l+w-2*p))v=h?b-(h>0?h:0):b-((w-_)/2|0),y=f?k+(f>0?f:0):v+w,c||(v>0&&" "!==g.charAt(v)&&" "!==g.charAt(v-1)&&((v=g.indexOf(" ",v))<0&&(v=0)),y<g.length&&" "!==g.charAt(y-1)&&" "!==g.charAt(y)&&((y=g.lastIndexOf(" ",y))<k?y=k:++y)),g=(v?r:"")+g.substring(v,y)+(y<g.length?r:"");else{for(k=[],b={},w={},_={},C={},x={},A=E=S=0,T=D=1;;){var P=void 0;for(let e,n=0;n<t.length;n++){if(e=t[n],A)if(E!==A){if(_[n+1])continue;if(e+=A,b[e]){S-=p,w[n+1]=1,_[n+1]=1;continue}if(e>=y.length-1){if(e>=y.length){_[n+1]=1,e>=v.length&&(w[n+1]=1);continue}S-=p}if(g=y[e].text,O=f&&x[n]){if(!(O>0)){_[n+1]=1;continue}if(g.length>O){if(_[n+1]=1,!c)continue;g=g.substring(0,O)}(O-=g.length)||(O=-1),x[n]=O}if(S+g.length+1<=l)g=" "+g,k[n]+=g;else{if(!c){_[n+1]=1;continue}(P=l-S-1)>0&&(g=" "+g.substring(0,P),k[n]+=g),_[n+1]=1}}else{if(_[n])continue;if(e-=E,b[e]){S-=p,_[n]=1,w[n]=1;continue}if(e<=0){if(e<0){_[n]=1,w[n]=1;continue}S-=p}if(g=y[e].text,O=h&&C[n]){if(!(O>0)){_[n]=1;continue}if(g.length>O){if(_[n]=1,!c)continue;g=g.substring(g.length-O)}(O-=g.length)||(O=-1),C[n]=O}if(S+g.length+1<=l)g+=" ",k[n]=g+k[n];else{if(!c){_[n]=1;continue}(P=g.length+1-(l-S))>=0&&P<g.length&&(g=g.substring(P)+" ",k[n]=g+k[n]),_[n]=1}}else{let t;if(g=y[e].match,h&&(C[n]=h),f&&(x[n]=f),n&&S++,e?!n&&p&&(S+=p):(w[n]=1,_[n]=1),e>=v.length-1||e<y.length-1&&y[e+1].match?t=1:p&&(S+=p),S-=o.length-2,n&&!(S+g.length<=l)){P=D=T=w[n]=0;break}k[n]=g,t&&(w[n+1]=1,_[n+1]=1)}S+=g.length,P=b[e]=1}if(P)E===A?A++:E++;else{if(E===A?D=0:T=0,!D&&!T)break;D?A=++E:A++}}g="";for(let e,t=0;t<k.length;t++)e=(w[t]?t?" ":"":(t&&!r?" ":"")+r)+k[t],g+=e;r&&!w[k.length]&&(g+=r)}u&&(g=g.replace(u," ")),N[e].highlight=g}if(i)break}return t}function VU(e,t){if(!this||this.constructor!==VU)return new VU(e,t);let n,i,r,o,a,s,l=0;if(e&&e.index){const n=e;if(t=n.index,l=n.boost||0,i=n.query){r=n.field||n.pluck,o=n.highlight;const i=n.resolve;e=n.async||n.queue,n.resolve=!1,n.index=null,e=e?t.searchAsync(n):t.search(n),n.resolve=i,n.index=t,e=e.result||e}else e=[]}if(e&&e.then){const t=this;n=[e=e.then(function(e){t.C[0]=t.result=e.result||e,qU(t)})],e=[],a=new Promise(function(e){s=e})}this.index=t||null,this.result=e||[],this.h=l,this.C=n||[],this.await=a||null,this.return=s||null,this.highlight=o||null,this.query=i||"",this.field=r||""}function qU(e,t){let n=e.result;var i=e.await;e.await=null;for(let t,r=0;r<e.C.length;r++)if(t=e.C[r])if("function"==typeof t)n=t(),e.C[r]=n=n.result||n,r--;else if(t.h)n=t.h(),e.C[r]=n=n.result||n,r--;else if(t.then)return e.await=i;return i=e.return,e.C=[],e.return=null,t||i(n),n}function HU(e,t,n,i,r,o,a){const s=e.length;let l,c,u=[];l=Gz();for(let d,p,h,f,m=0;m<t;m++)for(let t=0;t<s;t++)if(h=e[t],m<h.length&&(d=h[m]))for(let e=0;e<d.length;e++){if(p=d[e],(c=l[p])?l[p]++:(c=0,l[p]=1),f=u[c]||(u[c]=[]),!a){let e=m+(t||!r?0:o||0);f=f[e]||(f[e]=[])}if(f.push(p),a&&n&&c===s-1&&f.length-i===n)return i?f.slice(i):f}if(e=u.length)if(r)u=u.length>1?zU(u,n,i,a,o):(u=u[0])&&n&&u.length>n||i?u.slice(i,n+i):u;else{if(e<s)return[];if(u=u[e-1],n||i)if(a)(u.length>n||i)&&(u=u.slice(i,n+i));else{r=[];for(let e,t=0;t<u.length;t++)if(e=u[t])if(i&&e.length>i)i-=e.length;else if((n&&e.length>n||i)&&(e=e.slice(i,n+i),n-=e.length,i&&(i-=e.length)),r.push(e),!n)break;u=r}}return u}function zU(e,t,n,i,r){const o=[],a=Gz();let s;var l=e.length;let c;if(i){for(r=l-1;r>=0;r--)if(c=(i=e[r])&&i.length)for(l=0;l<c;l++)if(s=i[l],!a[s])if(a[s]=1,n)n--;else if(o.push(s),o.length===t)return o}else for(let u,d=l-1,p=0;d>=0;d--){u=e[d];for(let e=0;e<u.length;e++)if(c=(i=u[e])&&i.length)for(let u=0;u<c;u++)if(s=i[u],!a[s])if(a[s]=1,n)n--;else{let n=(e+(d<l-1&&r||0))/(d+1)|0;if((o[n]||(o[n]=[])).push(s),++p===t)return o}}return o}function UU(e,t,n,i,r){const o=Gz(),a=[];for(let e,n=0;n<t.length;n++){e=t[n];for(let t=0;t<e.length;t++)o[e[t]]=1}if(r){for(let t,r=0;r<e.length;r++)if(t=e[r],o[t])if(i)i--;else if(a.push(t),o[t]=0,n&&0===--n)break}else for(let n,i,r=0;r<e.result.length;r++)for(n=e.result[r],t=0;t<n.length;t++)i=n[t],o[i]&&((a[r]||(a[r]=[])).push(i),o[i]=0);return a}function WU(e){const t=[],n=Gz(),i=Gz();for(let r,o,a,s,l,c,u,d=0;d<e.length;d++){r=e[d],o=r.field,a=r.result;for(let e=0;e<a.length;e++)l=a[e],"object"!=typeof l?l={id:s=l}:s=l.id,(c=n[s])?c.push(o):(l.field=n[s]=[o],t.push(l)),(u=l.highlight)&&(c=i[s],c||(i[s]=c={},l.highlight=c),c[o]=u)}return t}function GU(e,t,n,i,r){return(e=this.tag.get(e))&&(e=e.get(t))?((t=e.length-i)>0&&((n&&t>n||i)&&(e=e.slice(i,i+n)),r&&(e=KU.call(this,e))),e):[]}function KU(e){if(!this||!this.store)return e;if(this.db)return this.index.get(this.field[0]).db.enrich(e);const t=Array(e.length);for(let n,i=0;i<e.length;i++)n=e[i],t[i]={id:n,doc:this.store.get(n)};return t}function QU(e){if(!this||this.constructor!==QU)return new QU(e);const t=e.document||e.doc||e;let n,i;if(this.B=[],this.field=[],this.D=[],this.key=(n=t.key||t.id)&&JU(n,this.D)||"id",(i=e.keystore||0)&&(this.keystore=i),this.fastupdate=!!e.fastupdate,this.reg=!this.fastupdate||e.worker||e.db?i?new gU(i):new Set:i?new mU(i):new Map,this.h=(n=t.store||null)&&n&&!0!==n&&[],this.store=n?i?new mU(i):new Map:null,this.cache=(n=e.cache||null)&&new oU(n),e.cache=!1,this.worker=e.worker||!1,this.priority=e.priority||4,this.index=YU.call(this,e,t),this.tag=null,(n=t.tag)&&("string"==typeof n&&(n=[n]),n.length)){this.tag=new Map,this.A=[],this.F=[];for(let e,t,i=0;i<n.length;i++){if(e=n[i],t=e.field||e,!t)throw Error("The tag field from the document descriptor is undefined.");e.custom?this.A[i]=e.custom:(this.A[i]=JU(t,this.D),e.filter&&("string"==typeof this.A[i]&&(this.A[i]=new String(this.A[i])),this.A[i].G=e.filter)),this.F[i]=t,this.tag.set(t,new Map)}}if(this.worker){this.fastupdate=!1,e=[];for(const t of this.index.values())t.then&&e.push(t);if(e.length){const t=this;return Promise.all(e).then(function(e){let n=0;for(const i of t.index.entries()){const r=i[0];let o=i[1];o.then&&(o=e[n],t.index.set(r,o),n++)}return t})}}else e.db&&(this.fastupdate=!1,this.mount(e.db))}function YU(e,t){const n=new Map;let i=t.index||t.field||t;Kz(i)&&(i=[i]);for(let t,o,a=0;a<i.length;a++){if(t=i[a],Kz(t)||(o=t,t=t.field),o=Qz(o)?Object.assign({},e,o):e,this.worker){var r=void 0;r=new TU(o,r=(r=o.encoder)&&r.encode?r:new nU("string"==typeof r?pU[r]:r||{})),n.set(t,r)}this.worker||n.set(t,new fW(o,this.reg)),o.custom?this.B[a]=o.custom:(this.B[a]=JU(t,this.D),o.filter&&("string"==typeof this.B[a]&&(this.B[a]=new String(this.B[a])),this.B[a].G=o.filter)),this.field[a]=t}if(this.h){Kz(e=t.store)&&(e=[e]);for(let t,n,i=0;i<e.length;i++)t=e[i],n=t.field||t,t.custom?(this.h[i]=t.custom,t.custom.O=n):(this.h[i]=JU(n,this.D),t.filter&&("string"==typeof this.h[i]&&(this.h[i]=new String(this.h[i])),this.h[i].G=t.filter))}return n}function JU(e,t){const n=e.split(":");let i=0;for(let r=0;r<n.length;r++)"]"===(e=n[r])[e.length-1]&&(e=e.substring(0,e.length-2))&&(t[i]=!0),e&&(n[i++]=e);return i<n.length&&(n.length=i),i>1?n:n[0]}function XU(e,t=0){let n=[],i=[];t&&(t=25e4/t*5e3|0);for(const r of e.entries())i.push(r),i.length===t&&(n.push(i),i=[]);return i.length&&n.push(i),n}function ZU(e,t){t||(t=new Map);for(let n,i=0;i<e.length;i++)n=e[i],t.set(n[0],n[1]);return t}function eW(e,t=0){let n=[],i=[];t&&(t=25e4/t*1e3|0);for(const r of e.entries())i.push([r[0],XU(r[1])[0]||[]]),i.length===t&&(n.push(i),i=[]);return i.length&&n.push(i),n}function tW(e,t){t||(t=new Map);for(let n,i,r=0;r<e.length;r++)n=e[r],i=t.get(n[0]),t.set(n[0],ZU(n[1],i));return t}function nW(e){let t=[],n=[];for(const i of e.keys())n.push(i),25e4===n.length&&(t.push(n),n=[]);return n.length&&t.push(n),t}function iW(e,t){t||(t=new Set);for(let n=0;n<e.length;n++)t.add(e[n]);return t}function rW(e,t,n,i,r,o,a=0){const s=i&&i.constructor===Array;var l=s?i.shift():i;if(!l)return this.export(e,t,r,o+1);if((l=e((t?t+".":"")+(a+1)+"."+n,JSON.stringify(l)))&&l.then){const c=this;return l.then(function(){return rW.call(c,e,t,n,s?i:null,r,o,a+1)})}return rW.call(this,e,t,n,s?i:null,r,o,a+1)}function oW(e,t){let n="";for(const i of e.entries()){e=i[0];const r=i[1];let o="";for(let e,n=0;n<r.length;n++){e=r[n]||[""];let i="";for(let n=0;n<e.length;n++)i+=(i?",":"")+("string"===t?'"'+e[n]+'"':e[n]);i="["+i+"]",o+=(o?",":"")+i}o='["'+e+'",['+o+"]]",n+=(n?",":"")+o}return n}function aW(e,t){let n=0;var i=void 0===t;if(e.constructor===Array){for(let r,o,a,s=0;s<e.length;s++)if((r=e[s])&&r.length){if(i)return 1;if(o=r.indexOf(t),o>=0){if(r.length>1)return r.splice(o,1),1;if(delete e[s],n)return 1;a=1}else{if(a)return 1;n++}}}else for(let r of e.entries())i=r[0],aW(r[1],t)?n++:e.delete(i);return n}IU("add"),IU("append"),IU("search"),IU("update"),IU("remove"),IU("clear"),IU("export"),IU("import"),TU.prototype.searchCache=rU,SU(TU.prototype),QU.prototype.add=function(e,t,n){if(Qz(e)&&(e=Yz(t=e,this.key)),t&&(e||0===e)){if(!n&&this.reg.has(e))return this.update(e,t);for(let o,a=0;a<this.field.length;a++){o=this.B[a];var i=this.index.get(this.field[a]);if("function"==typeof o){var r=o(t);r&&i.add(e,r,n,!0)}else(!(r=o.G)||r(t))&&(o.constructor===String?o=[""+o]:Kz(o)&&(o=[o]),PU(t,o,this.D,0,i,e,o[0],n))}if(this.tag)for(i=0;i<this.A.length;i++){var o=this.A[i];r=this.tag.get(this.F[i]);let s=Gz();if("function"==typeof o){if(!(o=o(t)))continue}else{var a=o.G;if(a&&!a(t))continue;o.constructor===String&&(o=""+o),o=Yz(t,o)}if(r&&o){Kz(o)&&(o=[o]);for(let t,i,l=0;l<o.length;l++)if(t=o[l],!s[t]&&(s[t]=1,(a=r.get(t))?i=a:r.set(t,i=[]),!n||!i.includes(e))){if(i.length===2**31-1){if(a=new fU(i),this.fastupdate)for(let e of this.reg.values())e.includes(i)&&(e[e.indexOf(i)]=a);r.set(t,i=a)}i.push(e),this.fastupdate&&((a=this.reg.get(e))?a.push(i):this.reg.set(e,[i]))}}}if(this.store&&(!n||!this.store.has(e))){let i;if(this.h){i=Gz();for(let e,r=0;r<this.h.length;r++){if(e=this.h[r],(n=e.G)&&!n(t))continue;let o;if("function"==typeof e){if(o=e(t),!o)continue;e=[e.O]}else if(Kz(e)||e.constructor===String){i[e]=t[e];continue}OU(t,i,e,0,e[0],o)}}this.store.set(e,i||t)}this.worker&&(this.fastupdate||this.reg.add(e))}return this},VU.prototype.or=function(){return $U(this,"or",LU,arguments)},VU.prototype.and=function(){return $U(this,"and",NU,arguments)},VU.prototype.xor=function(){return $U(this,"xor",jU,arguments)},VU.prototype.not=function(){return $U(this,"not",BU,arguments)},(uz=VU.prototype).limit=function(e){if(this.await){const t=this;this.C.push(function(){return t.limit(e).result})}else if(this.result.length){const t=[];for(let n,i=0;i<this.result.length;i++)if(n=this.result[i]){if(!(n.length<=e)){t[i]=n.slice(0,e);break}if(t[i]=n,!(e-=n.length))break}this.result=t}return this},uz.offset=function(e){if(this.await){const t=this;this.C.push(function(){return t.offset(e).result})}else if(this.result.length){const t=[];for(let n,i=0;i<this.result.length;i++)(n=this.result[i])&&(n.length<=e?e-=n.length:(t[i]=n.slice(e),e=0));this.result=t}return this},uz.boost=function(e){if(this.await){const t=this;this.C.push(function(){return t.boost(e).result})}else this.h+=e;return this},uz.resolve=function(e,t,n,i,r){let o=this.await?qU(this,!0):this.result;if(o.then){const a=this;return o.then(function(){return a.resolve(e,t,n,i,r)})}return o.length&&("object"==typeof e?(i=e.highlight||this.highlight,n=!!i||e.enrich,t=e.offset,e=e.limit):(i=i||this.highlight,n=!!i||n),o=r?n?KU.call(this.index,o):o:FU.call(this.index,o,e||100,t,n)),this.finalize(o,i)},uz.finalize=function(e,t){if(e.then){const n=this;return e.then(function(e){return n.finalize(e,t)})}t&&e.length&&this.query&&(e=RU(this.query,e,this.index.index,this.field,t));const n=this.return;return this.highlight=this.index=this.result=this.C=this.await=this.return=null,this.query=this.field="",n&&n(e),e},Gz(),QU.prototype.search=function(e,t,n,i){n||(!t&&Qz(e)?(n=e,e=""):Qz(t)&&(n=t,t=0));let r=[];var o=[];let a,s,l,c,u,d,p,h,f=0,m=!0;if(n){n.constructor===Array&&(n={index:n}),e=n.query||e,a=n.pluck,s=n.merge,c=n.boost,d=a||n.field||(d=n.index)&&(d.index?null:d);var g=this.tag&&n.tag;l=n.suggest,m=!1!==n.resolve,u=n.cache,p=m&&this.store&&n.highlight;var v=!!p||m&&this.store&&n.enrich;t=n.limit||t;var y=n.offset||0;if(t||(t=m?100:0),g&&(!this.db||!i)){g.constructor!==Array&&(g=[g]);var b=[];for(let e,t=0;t<g.length;t++)if(e=g[t],e.field&&e.tag){var k=e.tag;if(k.constructor===Array)for(var w=0;w<k.length;w++)b.push(e.field,k[w]);else b.push(e.field,k)}else{k=Object.keys(e);for(let t,n,i=0;i<k.length;i++)if(t=k[i],n=e[t],n.constructor===Array)for(w=0;w<n.length;w++)b.push(t,n[w]);else b.push(t,n)}if(g=b,!e){if(o=[],b.length)for(g=0;g<b.length;g+=2){if(this.db){if(!(i=this.index.get(b[g])))continue;o.push(i=i.db.tag(b[g+1],t,y,v))}else i=GU.call(this,b[g],b[g+1],t,y,v);r.push(m?{field:b[g],tag:b[g+1],result:i}:[i])}if(o.length){const e=this;return Promise.all(o).then(function(t){for(let e=0;e<t.length;e++)m?r[e].result=t[e]:r[e]=t[e];return m?r:new VU(r.length>1?HU(r,1,0,0,l,c):r[0],e)})}return m?r:new VU(r.length>1?HU(r,1,0,0,l,c):r[0],this)}}m||a||!(d=d||this.field)||(Kz(d)?a=d:(d.constructor===Array&&1===d.length&&(d=d[0]),a=d.field||d.index)),d&&d.constructor!==Array&&(d=[d])}d||(d=this.field),b=(this.worker||this.db)&&!i&&[];for(let a,s,c,C=0;C<d.length;C++){if(s=d[C],this.db&&this.tag&&!this.B[C])continue;let x;if(Kz(s)||(x=s,s=x.field,e=x.query||e,t=Wz(x.limit,t),y=Wz(x.offset,y),l=Wz(x.suggest,l),p=m&&this.store&&Wz(x.highlight,p),v=!!p||m&&this.store&&Wz(x.enrich,v),u=Wz(x.cache,u)),i)a=i[C];else{w=(k=x||n||{}).enrich;var _=this.index.get(s);if(g&&(this.db&&(k.tag=g,k.field=d,h=_.db.support_tag_search),!h&&w&&(k.enrich=!1),h||(k.limit=0,k.offset=0)),a=u?_.searchCache(e,g&&!h?0:t,k):_.search(e,g&&!h?0:t,k),g&&!h&&(k.limit=t,k.offset=y),w&&(k.enrich=w),b){b[C]=a;continue}}if(c=(a=a.result||a)&&a.length,g&&c){if(k=[],w=0,this.db&&i){if(!h)for(_=d.length;_<i.length;_++){let e=i[_];if(e&&e.length)w++,k.push(e);else if(!l)return m?r:new VU(r,this)}}else for(let e,t,n=0;n<g.length;n+=2){if(e=this.tag.get(g[n]),!e){if(l)continue;return m?r:new VU(r,this)}if(t=(e=e&&e.get(g[n+1]))&&e.length)w++,k.push(e);else if(!l)return m?r:new VU(r,this)}if(w){if(a=UU(a,k,t,y,m),c=a.length,!c&&!l)return m?a:new VU(a,this);w--}}if(c)o[f]=s,r.push(a),f++;else if(1===d.length)return m?r:new VU(r,this)}if(b){if(this.db&&g&&g.length&&!h)for(v=0;v<g.length;v+=2){if(!(o=this.index.get(g[v]))){if(l)continue;return m?r:new VU(r,this)}b.push(o.db.tag(g[v+1],t,y,!1))}const i=this;return Promise.all(b).then(function(r){return n&&(n.resolve=m),r.length&&(r=i.search(e,t,n,r)),r})}if(!f)return m?r:new VU(r,this);if(a&&(!v||!this.store))return r=r[0],m?r:new VU(r,this);for(b=[],y=0;y<o.length;y++){if(g=r[y],v&&g.length&&void 0===g[0].doc&&(this.db?b.push(g=this.index.get(this.field[0]).db.enrich(g)):g=KU.call(this,g)),a)return m?p?RU(e,g,this.index,a,p):g:new VU(g,this);r[y]={field:o[y],result:g}}if(v&&this.db&&b.length){const t=this;return Promise.all(b).then(function(n){for(let e=0;e<n.length;e++)r[e].result=n[e];return p&&(r=RU(e,r,t.index,a,p)),s?WU(r):r})}return p&&(r=RU(e,r,this.index,a,p)),s?WU(r):r},(uz=QU.prototype).mount=function(e){let t=this.field;if(this.tag)for(let e,i=0;i<this.F.length;i++){e=this.F[i];var n=void 0;this.index.set(e,n=new fW({},this.reg)),t===this.field&&(t=t.slice(0)),t.push(e),n.tag=this.tag.get(e)}n=[];const i={db:e.db,type:e.type,fastupdate:e.fastupdate};for(let r,o,a=0;a<t.length;a++){i.field=o=t[a],r=this.index.get(o);const s=new e.constructor(e.id,i);s.id=e.id,n[a]=s.mount(r),r.document=!0,a?r.bypass=!0:r.store=this.store}const r=this;return this.db=Promise.all(n).then(function(){r.db=!0})},uz.commit=async function(){const e=[];for(const t of this.index.values())e.push(t.commit());await Promise.all(e),this.reg.clear()},uz.destroy=function(){const e=[];for(const t of this.index.values())e.push(t.destroy());return Promise.all(e)},uz.append=function(e,t){return this.add(e,t,!0)},uz.update=function(e,t){return this.remove(e).add(e,t)},uz.remove=function(e){for(var t of(Qz(e)&&(e=Yz(e,this.key)),this.index.values()))t.remove(e,!0);if(this.reg.has(e)){if(this.tag&&!this.fastupdate)for(let n of this.tag.values())for(let i of n){t=i[0];const r=i[1],o=r.indexOf(e);o>-1&&(r.length>1?r.splice(o,1):n.delete(t))}this.store&&this.store.delete(e),this.reg.delete(e)}return this.cache&&this.cache.remove(e),this},uz.clear=function(){const e=[];for(const t of this.index.values()){const n=t.clear();n.then&&e.push(n)}if(this.tag)for(const e of this.tag.values())e.clear();return this.store&&this.store.clear(),this.cache&&this.cache.clear(),e.length?Promise.all(e):this},uz.contain=function(e){return this.db?this.index.get(this.field[0]).db.has(e):this.reg.has(e)},uz.cleanup=function(){for(const e of this.index.values())e.cleanup();return this},uz.get=function(e){return this.db?this.index.get(this.field[0]).db.enrich(e).then(function(e){return e[0]&&e[0].doc||null}):this.store.get(e)||null},uz.set=function(e,t){return"object"==typeof e&&(e=Yz(t=e,this.key)),this.store.set(e,t),this},uz.searchCache=rU,uz.export=function(e,t,n=0,i=0){if(n<this.field.length){const r=this.field[n];if((t=this.index.get(r).export(e,r,n,i=1))&&t.then){const i=this;return t.then(function(){return i.export(e,r,n+1)})}return this.export(e,r,n+1)}let r,o;switch(i){case 0:r="reg",o=nW(this.reg),t=null;break;case 1:r="tag",o=this.tag&&eW(this.tag,this.reg.size),t=null;break;case 2:r="doc",o=this.store&&XU(this.store),t=null;break;default:return}return rW.call(this,e,t,r,o||null,n,i)},uz.import=function(e,t){var n=e.split(".");"json"===n[n.length-1]&&n.pop();const i=n.length>2?n[0]:"";if(n=n.length>2?n[2]:n[1],this.worker&&i)return this.index.get(i).import(e);if(t){if("string"==typeof t&&(t=JSON.parse(t)),i)return this.index.get(i).import(n,t);switch(n){case"reg":this.fastupdate=!1,this.reg=iW(t,this.reg);for(let e,t=0;t<this.field.length;t++)e=this.index.get(this.field[t]),e.fastupdate=!1,e.reg=this.reg;if(this.worker){t=[];for(const n of this.index.values())t.push(n.import(e));return Promise.all(t)}break;case"tag":this.tag=tW(t,this.tag);break;case"doc":this.store=ZU(t,this.store)}}},SU(QU.prototype),fW.prototype.remove=function(e,t){const n=this.reg.size&&(this.fastupdate?this.reg.get(e):this.reg.has(e));if(n){if(this.fastupdate){for(let t,i,r=0;r<n.length;r++)if((t=n[r])&&(i=t.length))if(t[i-1]===e)t.pop();else{const n=t.indexOf(e);n>=0&&t.splice(n,1)}}else aW(this.map,e),this.depth&&aW(this.ctx,e);t||this.reg.delete(e)}return this.db&&(this.commit_task.push({del:e}),this.M&&mW(this)),this.cache&&this.cache.remove(e),this};const sW={memory:{resolution:1},performance:{resolution:3,fastupdate:!0,context:{depth:1,resolution:1}},match:{tokenize:"forward"},score:{resolution:9,context:{depth:2,resolution:3}}};function lW(e,t,n,i,r,o,a){let s,l;if(!(s=t[n])||a&&!s[a]){if(a?((t=s||(t[n]=Gz()))[a]=1,l=e.ctx,(s=l.get(a))?l=s:l.set(a,l=e.keystore?new mU(e.keystore):new Map)):(l=e.map,t[n]=1),(s=l.get(n))?l=s:l.set(n,l=s=[]),o)for(let n,o=0;o<s.length;o++)if((n=s[o])&&n.includes(r)){if(o<=i)return;n.splice(n.indexOf(r),1),e.fastupdate&&(t=e.reg.get(r))&&t.splice(t.indexOf(n),1);break}if(l=l[i]||(l[i]=[]),l.push(r),l.length===2**31-1){if(t=new fU(l),e.fastupdate)for(let n of e.reg.values())n.includes(l)&&(n[n.indexOf(l)]=t);s[i]=l=t}e.fastupdate&&((i=e.reg.get(r))?i.push(l):e.reg.set(r,[l]))}}function cW(e,t,n,i,r){return n&&e>1?t+(i||0)<=e?n+(r||0):(e-1)/(t+(i||0))*(n+(r||0))+1|0:0}function uW(e,t,n,i,r,o,a){let s=e.length,l=e;if(s>1)l=HU(e,t,n,i,r,o,a);else if(1===s)return a?FU.call(null,e[0],n,i):new VU(e[0],this);return a?l:new VU(l,this)}function dW(e,t,n,i,r,o,a){return e=hW(this,e,t,n,i,r,o,a),this.db?e.then(function(e){return r?e||[]:new VU(e,this)}):e&&e.length?r?FU.call(this,e,n,i):new VU(e,this):r?[]:new VU([],this)}function pW(e,t,n,i){let r=[];if(e&&e.length){if(e.length<=i)return void t.push(e);for(let t,n=0;n<i;n++)(t=e[n])&&(r[n]=t);if(r.length)return void t.push(r)}if(!n)return r}function hW(e,t,n,i,r,o,a,s){let l;return n&&(l=e.bidirectional&&t>n)&&(l=n,n=t,t=l),e.db?e.db.get(t,n,i,r,o,a,s):e=n?(e=e.ctx.get(n))&&e.get(t):e.map.get(t)}function fW(e,t){if(!this||this.constructor!==fW)return new fW(e);if(e){var n=Kz(e)?e:e.preset;n&&(e=Object.assign({},sW[n],e))}else e={};const i=!0===(n=e.context)?{depth:1}:n||{},r=Kz(e.encoder)?pU[e.encoder]:e.encode||e.encoder||{};this.encoder=r.encode?r:"object"==typeof r?new nU(r):{encode:r},this.resolution=e.resolution||9,this.tokenize=n=(n=e.tokenize)&&"default"!==n&&"exact"!==n&&n||"strict",this.depth="strict"===n&&i.depth||0,this.bidirectional=!1!==i.bidirectional,this.fastupdate=!!e.fastupdate,this.score=e.score||null,(n=e.keystore||0)&&(this.keystore=n),this.map=n?new mU(n):new Map,this.ctx=n?new mU(n):new Map,this.reg=t||(this.fastupdate?n?new mU(n):new Map:n?new gU(n):new Set),this.N=i.resolution||3,this.rtl=r.rtl||e.rtl||!1,this.cache=(n=e.cache||null)&&new oU(n),this.resolve=!1!==e.resolve,(n=e.db)&&(this.db=this.mount(n)),this.M=!1!==e.commit,this.commit_task=[],this.commit_timer=null,this.priority=e.priority||4}function mW(e){e.commit_timer||(e.commit_timer=setTimeout(function(){e.commit_timer=null,e.db.commit(e)},1))}fW.prototype.add=function(e,t,n,i){if(t&&(e||0===e)){if(!i&&!n&&this.reg.has(e))return this.update(e,t);i=this.depth;const c=(t=this.encoder.encode(t,!i)).length;if(c){const u=Gz(),d=Gz(),p=this.resolution;for(let h=0;h<c;h++){let f=t[this.rtl?c-1-h:h];var r=f.length;if(r&&(i||!d[f])){var o=this.score?this.score(t,f,h,null,0):cW(p,c,h),a="";switch(this.tokenize){case"tolerant":if(lW(this,d,f,o,e,n),r>2){for(let t,i,s,l,c=1;c<r-1;c++)t=f.charAt(c),i=f.charAt(c+1),s=f.substring(0,c)+i,l=f.substring(c+2),lW(this,d,a=s+t+l,o,e,n),lW(this,d,a=s+l,o,e,n);lW(this,d,f.substring(0,f.length-1),o,e,n)}break;case"full":if(r>2){for(let i,l=0;l<r;l++)for(o=r;o>l;o--){a=f.substring(l,o),i=this.rtl?r-1-l:l;var s=this.score?this.score(t,f,h,a,i):cW(p,c,h,r,i);lW(this,d,a,s,e,n)}break}case"bidirectional":case"reverse":if(r>1){for(s=r-1;s>0;s--){a=f[this.rtl?r-1-s:s]+a;var l=this.score?this.score(t,f,h,a,s):cW(p,c,h,r,s);lW(this,d,a,l,e,n)}a=""}case"forward":if(r>1){for(s=0;s<r;s++)lW(this,d,a+=f[this.rtl?r-1-s:s],o,e,n);break}default:if(lW(this,d,f,o,e,n),i&&c>1&&h<c-1)for(r=this.N,a=f,o=Math.min(i+1,this.rtl?h+1:c-h),s=1;s<o;s++){f=t[this.rtl?c-1-h-s:h+s];lW(this,u,(l=this.bidirectional&&f>a)?a:f,this.score?this.score(t,a,h,f,s-1):cW(r+(c/2>r?0:1),c,h,o-1,s-1),e,n,l?f:a)}}}}this.fastupdate||this.reg.add(e)}}return this.db&&(this.commit_task.push(n?{ins:e}:{del:e}),this.M&&mW(this)),this},fW.prototype.search=function(e,t,n){if(n||(t||"object"!=typeof e?"object"==typeof t&&(n=t,t=0):(n=e,e="")),n&&n.cache)return n.cache=!1,e=this.searchCache(e,t,n),n.cache=!0,e;let i,r,o,a,s,l,c,u,d=[],p=0;n&&(e=n.query||e,t=n.limit||t,p=n.offset||0,r=n.context,o=n.suggest,u=(a=n.resolve)&&n.enrich,l=n.boost,c=n.resolution,s=this.db&&n.tag),void 0===a&&(a=this.resolve),r=this.depth&&!1!==r;let h=this.encoder.encode(e,!r);if(i=h.length,t=t||(a?100:0),1===i)return dW.call(this,h[0],"",t,p,a,u,s);if(2===i&&r&&!o)return dW.call(this,h[1],h[0],t,p,a,u,s);let f,m=Gz(),g=0;if(r&&(f=h[0],g=1),c||0===c||(c=f?this.N:this.resolution),this.db){if(this.db.search&&!1!==(n=this.db.search(this,h,t,p,o,a,u,s)))return n;const e=this;return async function(){for(let t,n;g<i;g++){if((n=h[g])&&!m[n]){if(m[n]=1,t=await hW(e,n,f,0,0,!1,!1),t=pW(t,d,o,c)){d=t;break}f&&(o&&t&&d.length||(f=n))}o&&f&&g===i-1&&!d.length&&(c=e.resolution,f="",g=-1,m=Gz())}return uW(d,c,t,p,o,l,a)}()}for(let e,t;g<i;g++){if((t=h[g])&&!m[t]){if(m[t]=1,e=hW(this,t,f,0,0,!1,!1),e=pW(e,d,o,c)){d=e;break}f&&(o&&e&&d.length||(f=t))}o&&f&&g===i-1&&!d.length&&(c=this.resolution,f="",g=-1,m=Gz())}return uW(d,c,t,p,o,l,a)},(uz=fW.prototype).mount=function(e){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),e.mount(this)},uz.commit=function(){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.commit(this)},uz.destroy=function(){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.destroy()},uz.clear=function(){return this.map.clear(),this.ctx.clear(),this.reg.clear(),this.cache&&this.cache.clear(),this.db?(this.commit_timer&&clearTimeout(this.commit_timer),this.commit_timer=null,this.commit_task=[],this.db.clear()):this},uz.append=function(e,t){return this.add(e,t,!0)},uz.contain=function(e){return this.db?this.db.has(e):this.reg.has(e)},uz.update=function(e,t){const n=this,i=this.remove(e);return i&&i.then?i.then(()=>n.add(e,t)):this.add(e,t)},uz.cleanup=function(){return this.fastupdate?(aW(this.map),this.depth&&aW(this.ctx),this):this},uz.searchCache=rU,uz.export=function(e,t,n=0,i=0){let r,o;switch(i){case 0:r="reg",o=nW(this.reg);break;case 1:r="cfg",o=null;break;case 2:r="map",o=XU(this.map,this.reg.size);break;case 3:r="ctx",o=eW(this.ctx,this.reg.size);break;default:return}return rW.call(this,e,t,r,o,n,i)},uz.import=function(e,t){if(t)switch("string"==typeof t&&(t=JSON.parse(t)),e=e.split("."),"json"===e[e.length-1]&&e.pop(),3===e.length&&e.shift(),e=e.length>1?e[1]:e[0],e){case"reg":this.fastupdate=!1,this.reg=iW(t,this.reg);break;case"map":this.map=ZU(t,this.map);break;case"ctx":this.ctx=tW(t,this.ctx)}},uz.serialize=function(e=!0){let t="",n="",i="";if(this.reg.size){let e;for(var r of this.reg.keys())e||(e=typeof r),t+=(t?",":"")+("string"===e?'"'+r+'"':r);t="index.reg=new Set(["+t+"]);",n=oW(this.map,e),n="index.map=new Map(["+n+"]);";for(const t of this.ctx.entries()){r=t[0];let n=oW(t[1],e);n="new Map(["+n+"])",n='["'+r+'",'+n+"]",i+=(i?",":"")+n}i="index.ctx=new Map(["+i+"]);"}return e?"function inject(index){"+t+n+i+"}":t+n+i},SU(fW.prototype);const gW="undefined"!=typeof window&&(window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),vW=["map","ctx","tag","reg","cfg"],yW=Gz();function bW(e,t={}){if(!this||this.constructor!==bW)return new bW(e,t);"object"==typeof e&&(t=e,e=e.name),e||console.info("Default storage space was used, because a name was not passed."),this.id="flexsearch"+(e?":"+e.toLowerCase().replace(/[^a-z0-9_\-]/g,""):""),this.field=t.field?t.field.toLowerCase().replace(/[^a-z0-9_\-]/g,""):"",this.type=t.type,this.fastupdate=this.support_tag_search=!1,this.db=null,this.h={}}function kW(e,t,n){const i=e.value;let r,o=0;for(let e,a=0;a<i.length;a++){if(e=n?i:i[a]){for(let n,o,s=0;s<t.length;s++)if(o=t[s],n=e.indexOf(o),n>=0){if(r=1,!(e.length>1)){i[a]=[];break}e.splice(n,1)}o+=e.length}if(n)break}o?r&&e.update(i):e.delete(),e.continue()}function wW(e,t){return new Promise((n,i)=>{e.onsuccess=e.oncomplete=function(){t&&t(this.result),t=null,n(this.result)},e.onerror=e.onblocked=i,e=null})}(uz=bW.prototype).mount=function(e){return e.index?e.mount(this):(e.db=this,this.open())},uz.open=function(){if(this.db)return this.db;let e=this;navigator.storage&&navigator.storage.persist&&navigator.storage.persist(),yW[e.id]||(yW[e.id]=[]),yW[e.id].push(e.field);const t=gW.open(e.id,1);return t.onupgradeneeded=function(){const t=e.db=this.result;for(let n,i=0;i<vW.length;i++){n=vW[i];for(let i,r=0;r<yW[e.id].length;r++)i=yW[e.id][r],t.objectStoreNames.contains(n+("reg"!==n&&i?":"+i:""))||t.createObjectStore(n+("reg"!==n&&i?":"+i:""))}},e.db=wW(t,function(t){e.db=t,e.db.onversionchange=function(){e.close()}})},uz.close=function(){this.db&&this.db.close(),this.db=null},uz.destroy=function(){return wW(gW.deleteDatabase(this.id))},uz.clear=function(){const e=[];for(let t,n=0;n<vW.length;n++){t=vW[n];for(let n,i=0;i<yW[this.id].length;i++)n=yW[this.id][i],e.push(t+("reg"!==t&&n?":"+n:""))}const t=this.db.transaction(e,"readwrite");for(let n=0;n<e.length;n++)t.objectStore(e[n]).clear();return wW(t)},uz.get=function(e,t,n=0,i=0,r=!0,o=!1){e=this.db.transaction((t?"ctx":"map")+(this.field?":"+this.field:""),"readonly").objectStore((t?"ctx":"map")+(this.field?":"+this.field:"")).get(t?t+":"+e:e);const a=this;return wW(e).then(function(e){let t=[];if(!e||!e.length)return t;if(r){if(!n&&!i&&1===e.length)return e[0];for(let r,o=0;o<e.length;o++)if((r=e[o])&&r.length){if(i>=r.length){i-=r.length;continue}const e=n?i+Math.min(r.length-i,n):r.length;for(let n=i;n<e;n++)t.push(r[n]);if(i=0,t.length===n)break}return o?a.enrich(t):t}return e})},uz.tag=function(e,t=0,n=0,i=!1){e=this.db.transaction("tag"+(this.field?":"+this.field:""),"readonly").objectStore("tag"+(this.field?":"+this.field:"")).get(e);const r=this;return wW(e).then(function(e){return!e||!e.length||n>=e.length?[]:t||n?(e=e.slice(n,n+t),i?r.enrich(e):e):e})},uz.enrich=function(e){"object"!=typeof e&&(e=[e]);const t=this.db.transaction("reg","readonly").objectStore("reg"),n=[];for(let i=0;i<e.length;i++)n[i]=wW(t.get(e[i]));return Promise.all(n).then(function(t){for(let n=0;n<t.length;n++)t[n]={id:e[n],doc:t[n]?JSON.parse(t[n]):null};return t})},uz.has=function(e){return wW(e=this.db.transaction("reg","readonly").objectStore("reg").getKey(e)).then(function(e){return!!e})},uz.search=null,uz.info=function(){},uz.transaction=function(e,t,n){e+="reg"!==e&&this.field?":"+this.field:"";let i=this.h[e+":"+t];if(i)return n.call(this,i);let r=this.db.transaction(e,t);this.h[e+":"+t]=i=r.objectStore(e);const o=n.call(this,i);return this.h[e+":"+t]=null,wW(r).finally(function(){return o})},uz.commit=async function(e){let t=e.commit_task,n=[];e.commit_task=[];for(let e,i=0;i<t.length;i++)e=t[i],e.del&&n.push(e.del);n.length&&await this.remove(n),e.reg.size&&(await this.transaction("map","readwrite",function(t){for(const n of e.map){const e=n[0],i=n[1];i.length&&(t.get(e).onsuccess=function(){let n=this.result;var r;if(n&&n.length){const e=Math.max(n.length,i.length);for(let t,o,a=0;a<e;a++)if((o=i[a])&&o.length){if((t=n[a])&&t.length)for(r=0;r<o.length;r++)t.push(o[r]);else n[a]=o;r=1}}else n=i,r=1;r&&t.put(n,e)})}}),await this.transaction("ctx","readwrite",function(t){for(const n of e.ctx){const e=n[0],i=n[1];for(const n of i){const i=n[0],r=n[1];r.length&&(t.get(e+":"+i).onsuccess=function(){let n=this.result;var o;if(n&&n.length){const e=Math.max(n.length,r.length);for(let t,i,a=0;a<e;a++)if((i=r[a])&&i.length){if((t=n[a])&&t.length)for(o=0;o<i.length;o++)t.push(i[o]);else n[a]=i;o=1}}else n=r,o=1;o&&t.put(n,e+":"+i)})}}}),e.store?await this.transaction("reg","readwrite",function(t){for(const n of e.store){const e=n[0],i=n[1];t.put("object"==typeof i?JSON.stringify(i):1,e)}}):e.bypass||await this.transaction("reg","readwrite",function(t){for(const n of e.reg.keys())t.put(1,n)}),e.tag&&await this.transaction("tag","readwrite",function(t){for(const n of e.tag){const e=n[0],i=n[1];i.length&&(t.get(e).onsuccess=function(){let n=this.result;n=n&&n.length?n.concat(i):i,t.put(n,e)})}}),e.map.clear(),e.ctx.clear(),e.tag&&e.tag.clear(),e.store&&e.store.clear(),e.document||e.reg.clear())},uz.remove=function(e){return"object"!=typeof e&&(e=[e]),Promise.all([this.transaction("map","readwrite",function(t){t.openCursor().onsuccess=function(){const t=this.result;t&&kW(t,e)}}),this.transaction("ctx","readwrite",function(t){t.openCursor().onsuccess=function(){const t=this.result;t&&kW(t,e)}}),this.transaction("tag","readwrite",function(t){t.openCursor().onsuccess=function(){const t=this.result;t&&kW(t,e,!0)}}),this.transaction("reg","readwrite",function(t){for(let n=0;n<e.length;n++)t.delete(e[n])})])};const _W=fW;function CW(e){return CW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},CW(e)}function xW(e){return function(e){if(Array.isArray(e))return DW(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||AW(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function SW(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=AW(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function EW(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||AW(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function AW(e,t){if(e){if("string"==typeof e)return DW(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?DW(e,t):void 0}}function DW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function TW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function IW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TW(Object(n),!0).forEach(function(t){OW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TW(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function OW(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=CW(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=CW(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==CW(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var PW={data:function(){return{action:"",elementStructureLabel:"",elementPrompts:[],focusableElements:[],scopes:[{name:"builder",label:this.i18n.builder,shortcut:"#"},{name:"goto",label:this.i18n.postTypes,shortcut:"/"},{name:"elements",label:this.i18n.elements,shortcut:"+"}],scope:"builder",searchQuery:"",searchResults:[],searchResultsKey:Date.now(),selectedResultIndex:0,selectedPostType:"",newPostPrompt:null,db:[],dbFiltered:[],postData:[],isLoadingPosts:!1,searchIndices:{builder:null,elements:null,goto:{}},autocompleteSuggestions:[]}},computed:{elementPromptsControl:function(){return{type:"select",options:this.elementPrompts.map(function(e){return{value:null==e?void 0:e.prompt,label:null==e?void 0:e.label}}),value:this.searchQuery,placeholder:this.i18n.commandPaletteSelectPlaceholderElements,delete:!0}},insertElementsMode:function(){return"elements"===this.scope&&this.searchQuery&&this.searchQuery.startsWith("@")&&this.$_userCanAddAllElements()},searchQueryPlain:function(){var e=this.searchQuery?this.$_clone(this.searchQuery).trim():"";if(e.startsWith("/")){e=e.slice(1).trim();var t=e.match(/^(\d+)/);if(t){var n=t[1];e=e.replace(n,"").trim()}}if(this.insertElementsMode){var i=e.split(/[@>+^]/).map(function(e){return e.trim()});e=i[i.length-1]}return e},postTypeSupportsBricks:function(){return!!this.selectedPostType&&Object.keys(this.bricks.postTypesSupported).includes(this.selectedPostType)},postTypeOptions:function(){var e=this,t={};return this.$_userHasPermission("edit_templates")&&(t.bricks_template="".concat(this.i18n.template," (Bricks)")),"goto"===this.scope&&(t=IW({any:this.i18n.all},t)),Object.keys(this.bricks.postTypesRegistered).forEach(function(n){"attachment"!==n&&e.$_userHasPermission("access_builder_".concat(n))&&(t[n]=e.bricks.postTypesRegistered[n])}),t},searchInputPlaceholder:function(){return"builder"===this.scope?this.i18n.commandPaletteInputPlaceholder:"goto"===this.scope?this.i18n.commandPaletteInputPlaceholderGoTo:"elements"===this.scope?this.i18n.commandPaletteInputPlaceholderElements:void 0},newPostPromptContent:function(){if(!this.newPostPrompt)return null;var e='"<strong>'.concat(this.newPostPrompt.title,'</strong>" has been created successfully! 🥳<br>');return this.postTypeSupportsBricks?e+='<a href="'.concat(this.newPostPrompt.editUrl,'">').concat(this.i18n.editWithBricks,'</a> | <a href="').concat(this.newPostPrompt.editUrlWp,'">').concat(this.i18n.editInWordPress,"</a>"):this.newPostPrompt.editUrlWp&&(e+='<a href="'.concat(this.newPostPrompt.editUrlWp,'">').concat(this.i18n.editInWordPress,"</a>")),e}},methods:{saveElements:function(){var e=this.$_clone(this.searchQuery).trim();this.elementPrompts.find(function(t){return t.prompt===e})||(this.elementPrompts.push({prompt:e,label:this.elementStructureLabel}),localStorage.setItem("brx_command_palette_element_prompts",JSON.stringify(this.elementPrompts)),this.$_showMessage("".concat(this.i18n.saved," (localStorage)"),2e3)),this.clearSave()},clearSave:function(){this.action="",this.elementStructureLabel=""},deleteElementPrompt:function(e){(e=e?this.$_clone(e).trim():null)&&(this.elementPrompts=this.elementPrompts.filter(function(t){return(null==t?void 0:t.prompt)!==e}),localStorage.setItem("brx_command_palette_element_prompts",JSON.stringify(this.elementPrompts)),this.$_showMessage(this.i18n.deleted,2e3))},insertElementPrompt:function(e){e&&e.trim()&&(this.searchQuery="@",this.searchQuery=e.trim(),this.$refs.searchQuery&&this.$refs.searchQuery.focus())},insertElements:function(e){var t=this.$_clone(this.searchQuery).trim();if(t){for(var n=[],i="",r=!1,o=0;o<t.length;o++){var a=t[o];if("{"!==a)if("}"!==a)if(">"!==a&&"+"!==a&&"^"!==a||r)i+=a;else{if(i.trim())if(n.push({type:"element",value:i.trim()}),i="",n.length>0&&"element"===n[n.length-1].type)"section"===n[n.length-1].value&&n.push({type:"element",value:"@container"});n.push({type:"operator",value:a})}else r=!1,i+=a;else r=!0,i+=a}i.trim()&&n.push({type:"element",value:i.trim()});var s=[null],l=[],c=0;n.forEach(function(e,t){e.value&&e.value.includes("@section")&&(n.splice(t+1,0,{type:"operator",value:">"}),n.splice(t+2,0,{type:"element",value:"@container"}))});for(var u=0;u<n.length;u++){var d=n[u];if("operator"===d.type)">"===d.value?s[++c]=l.map(function(e){return e.id}):"+"===d.value||"^"===d.value&&(c=Math.max(0,c-1));else if("element"===d.type){var p=EW(d.value.split("*").map(function(e){return null==e?void 0:e.trim()}),2),h=p[0],f=p[1],m=f?parseInt(f,10):1,g=void 0;if(h.includes("{")&&h.includes("}")){var v=h.indexOf("{");h.lastIndexOf("}");g=(g=h.substring(0,v)).startsWith("@")?g.substring(1):g}else g=h.startsWith("@")?h.substring(1):h;if(!this.bricks.elements[g])return void this.$_showError("".concat(this.i18n.error,": ").concat(this.i18n.infoElementNotFound,' "').concat(g,'"'),2e3);var y,b=s[c]||[null],k=[],w=SW(b);try{for(w.s();!(y=w.n()).done;)for(var _=y.value,C=0;C<m;C++){var x={element:{name:g},parent:_,nestableChildrenSkip:!0};c>0&&(x.index=999),x=this.$_addNewElement(x,e),k.push(x)}}catch(e){w.e(e)}finally{w.f()}l=k,u>0&&"operator"===n[u-1].type&&"+"===n[u-1].value||(s[c]=b)}}this.$_showMessage(this.i18n.inserted)}},parseSettingsString:function(e){for(var t={},n=0,i="",r="",o=!1,a=!0;n<e.length;){var s=e[n];"="===s&&a?(a=!1,n++):","!==s||o?'"'!==s||a?(a?i+=s:r+=s,n++):(o=!o,n++):(t[i.trim()]=this.parseSettingValue(r.trim()),i="",r="",a=!0,n++)}return i.trim()&&(t[i.trim()]=this.parseSettingValue(r.trim())),t},parseSettingValue:function(e){return e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'")?e.substring(1,e.length-1):isNaN(e)||""===e.trim()?"true"===e||"false"!==e&&e:parseFloat(e)},duplicatePost:function(e){var t=this,n=e.id.replace("goto-","");this.$_http({type:"POST",data:{action:"bricks_duplicate_post_page",postId:n},success:function(e){e.success?(t.newPostPrompt=e.data,t.$_showMessage("".concat(t.i18n.duplicate,": ").concat(t.i18n.created)),t.loadPostData(!1)):console.log("Error: ".concat(e.data))}})},setScope:function(e){this.scope!==e&&("builder"===e?(this.searchQuery="",this.scope="builder"):"goto"===e?(this.searchQuery="/",this.selectedPostType=this.$_state.postType,this.scope="goto"):"elements"===e&&(this.$_userCanAddAllElements()?(this.searchQuery="",this.scope="elements"):this.$_showError(this.i18n.noPermission)))},initSearchIndexBuilder:function(){var e=this,t=[];this.$_hasStyleManagerAccess()&&t.push({scope:"builder",prefix:this.i18n.manage,title:this.i18n.styles,keywords:["class","css","style","manage"],state:"popup",target:"styles"}),this.$_userHasPermission("access_theme_styles")&&t.push({scope:"builder",prefix:this.i18n.manage,title:this.i18n.themeStyles,keywords:[],state:"popup",target:"styles",popupTab:"theme-styles"}),this.$_userHasPermission("access_class_manager")&&t.push({scope:"builder",prefix:this.i18n.manage,title:this.i18n.classes,keywords:[],state:"popup",target:"styles",popupTab:"classes"}),this.$_userHasPermission("access_variable_manager")&&t.push({scope:"builder",prefix:this.i18n.manage,title:this.i18n.variables,keywords:[],state:"popup",target:"styles",popupTab:"variables"}),this.$_userHasPermission("edit_color_palettes")&&t.push({scope:"builder",prefix:this.i18n.manage,title:this.i18n.colors,keywords:[],state:"popup",target:"styles",popupTab:"colors"}),(this.$_userHasPermission("create_templates")||this.$_userHasPermission("edit_templates")||this.$_userHasPermission("insert_templates"))&&t.push({scope:"builder",prefix:this.i18n.manage,title:this.i18n.templates,keywords:["template","design","manage"],state:"popup",target:"templates"}),this.$_userHasPermission("access_font_manager")&&t.push({scope:"builder",prefix:this.i18n.manage,title:this.i18n.fonts,keywords:["font","typography","manage"],state:"popup",target:"fonts"}),this.$_userHasPermission("access_icon_manager")&&t.push({scope:"builder",prefix:this.i18n.manage,title:this.i18n.icons,keywords:["icon","manage"],state:"popup",target:"icons"}),this.$_userHasPermission("access_query_manager")&&t.push({scope:"builder",prefix:this.i18n.manage,title:this.i18n.query,keywords:["query","manage"],state:"popup",target:"queries"}),(this.$_userHasPermission("access_page_settings")||this.$_userHasPermission("access_template_settings")||this.$_userHasPermission("access_theme_styles"))&&t.push({scope:"builder",prefix:this.i18n.open,title:"".concat(this.i18n.settings," (").concat(this.i18n.builder,")"),keywords:[],state:"activePanel",target:"settings"}),(this.$_userHasPermission("access_page_settings")||this.$_userHasPermission("access_template_settings")||this.$_userHasPermission("access_theme_styles"))&&t.push({scope:"builder",prefix:this.i18n.open,title:"".concat(this.i18n.settings," (").concat(this.i18n.dashboard,")"),keywords:[],link:this.bricks.settingsUrl}),t.push({scope:"builder",prefix:this.i18n.open,title:this.i18n.documentation,keywords:["doc","help"],state:"popup",target:"docs"}),t.push({scope:"builder",prefix:this.i18n.open,title:"Unsplash",keywords:["unsplash",this.i18n.image],state:"popup",target:"unsplash"}),t=t.map(function(e,t){return IW(IW({},e),{},{id:"builder-".concat(t)})}),this.db=xW(t),this.searchIndices.builder=new _W({tokenize:"forward",optimize:!0,context:!0,minlength:1}),t.forEach(function(t){var n=t.title.toLowerCase();t.keywords&&Array.isArray(t.keywords)&&(n+=" "+t.keywords.join(" ")),e.searchIndices.builder.add(t.id,n)})},initSearchIndexElements:function(){var e=this,t=[],n=this.$_clone(this.bricks.elements);for(var i in n){var r=n[i],o=r.keywords||[];o.push(i),this.bricks.loadData.elementManager[i]||t.push({scope:"elements",id:"element-".concat(i),name:i,title:r.label||i,prefix:"",suffix:r.label?null:i,keywords:o})}this.db=[].concat(xW(this.db),t),this.searchIndices.elements=new _W({tokenize:"forward",optimize:!0,context:!0,minlength:1}),t.forEach(function(t){var n=t.title.toLowerCase();t.keywords&&Array.isArray(t.keywords)&&(n+=" "+t.keywords.join(" ")),e.searchIndices.elements.add(t.id,n)})},setSelectedPostType:function(e,t){var n=this;"goto"===this.scope&&(this.selectedPostType=e,this.searchQuery=e?"/".concat(t," ").concat(this.searchQueryPlain).trim():"/".concat(this.searchQueryPlain),this.$nextTick(function(){n.$refs.searchQuery&&n.$refs.searchQuery.focus(),n.search()}))},createPost:function(){var e=this;"goto"===this.scope&&this.searchQueryPlain&&this.selectedPostType&&this.$_http({type:"POST",data:{action:"bricks_create_new_page",title:this.searchQueryPlain,postType:this.selectedPostType},success:function(t){e.$_showMessage("".concat(e.i18n.created,": ").concat(e.searchQueryPlain," [").concat(e.selectedPostType,"]")),e.$refs.searchQuery&&e.$refs.searchQuery.focus();var n=t.data;e.newPostPrompt=n,e.searchQuery=e.searchQuery.replace(e.searchQueryPlain,"").trim(),e.loadPostData(!1),e.setDbFiltered()}})},getTitle:function(e){var t=[];return e.hasOwnProperty("prefix")?e.prefix&&(t.push('<span class="prefix">'.concat(e.prefix,"</span>")),t.push('<span class="sep">:</span>')):null!=e&&e.scope&&this.i18n[e.scope]&&(t.push('<span class="prefix">'.concat(this.i18n[e.scope],"</span>")),t.push('<span class="sep">:</span>')),t.push('<span class="name">'.concat(e.title,"</span>")),this.insertElementsMode&&e.name&&t.push('<span class="suffix">[@'.concat(e.name,"]</span>")),null!=e&&e.suffix&&t.push('<span class="suffix">['.concat(e.suffix,"]</span>")),t.join("")},searchDo:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;if(this.$_state.showCommandPalette){if(null!=t&&t.postType&&(this.selectedPostType=t.postType),-1!==i&&(this.selectedResultIndex=i),"builder"===this.scope)this.$_state.popup=!1,null!=t&&t.state&&null!=t&&t.target?(this.$_state[t.state]=t.target,null!=t&&t.popupTab&&this.$nextTick(function(){return e.$_state.popupTab=t.popupTab}),setTimeout(function(){e.$_state.showCommandPalette=!1},0)):null!=t&&t.link&&window.open(t.link,"_blank"),this.searchQuery="";else if("goto"===this.scope){var r=n&&(n.metaKey||n.ctrlKey);if(t.editUrl){if(t.postType&&t.editUrlWp&&!Object.keys(this.bricks.postTypesSupported).includes(t.postType)&&"bricks_template"!==t.postType&&(t.editUrl=t.editUrlWp,r=!0),!r){var o=parseInt(t.id.replace("goto-",""));return void(o?(this.$_loadPage(o,t.editUrl),this.$_state.showCommandPalette=!1):window.location.href=t.editUrl)}window.open(t.editUrl,"_blank")}else if(t.permalink){if(!r)return void(window.location.href=t.permalink);window.open(t.permalink,"_blank")}this.searchQuery="/"}else if("elements"===this.scope)if(this.insertElementsMode){var a=this.searchQuery.match(/(@[^>+^]*)$/);a?this.searchQuery.endsWith("@")?this.searchQuery=this.searchQuery.replace(/@$/,"@"+t.name):this.searchQuery=this.searchQuery.replace(a[0],"@"+t.name):(this.searchQuery=this.searchQuery.replace(/[^@>+^]*$/," "),this.searchQuery+="@"+t.name)}else if(t.name){var s=this.$_createElement({name:t.name});this.$_addNewElement({element:s},n),this.searchQuery="",this.$_showMessage(this.i18n.inserted)}this.selectedResultIndex=0}},search:function(){var e=this;if(this.selectedResultIndex=0,this.searchQuery){var t=this.searchQuery.charAt(0);if("#"===t)"builder"!==this.scope&&(this.scope="builder");else if("/"===t){"goto"!==this.scope&&(this.scope="goto");var n=this.searchQuery.match(/^\/(\d+)/);if(n){var i=parseInt(n[1],10),r=Object.keys(this.postTypeOptions);i>=0&&i<r.length?this.selectedPostType=r[i]:this.selectedPostType=this.$_state.postType}}else"+"!==this.searchQuery&&"@"!==this.searchQuery||("elements"!==this.scope&&this.setScope("elements"),"+"===this.searchQuery&&(this.searchQuery=""))}var o=this.searchQueryPlain.toLowerCase();if(!o.length||!this.searchQueryPlain.length)return this.searchResults=this.dbFiltered,void(this.searchResultsKey=Date.now());var a="goto"===this.scope?this.searchIndices.goto[this.selectedPostType]:this.searchIndices[this.scope];if(a){this.searchResults=[];var s=a.search({query:o,fuzzy:.4}),l=[];s.forEach(function(t){var n=e.dbFiltered.find(function(e){return e.id===t});n&&l.push(n)}),this.searchResults=l,this.searchResultsKey=Date.now()}},generateAutocompleteSuggestions:function(e,t){if(!e||e.length<2)this.autocompleteSuggestions=[];else{var n=new Set;t.forEach(function(t){t.title&&t.title.toLowerCase().startsWith(e)&&n.add({id:t.id,title:t.title,keywords:t.keywords||"",prefix:t.prefix||"",suffix:t.suffix||""}),Array.isArray(t.keywords)&&t.keywords.forEach(function(t){t.toLowerCase().startsWith(e)&&n.add(t)})}),this.autocompleteSuggestions=Array.from(n).slice(0,5)}},onKeydown:function(e){if(!e.target.closest(".control-select")){if("Enter"===e.key||13===e.keyCode){if(e[this.$_state.isMac?"metaKey":"ctrlKey"]&&this.insertElementsMode)return void this.insertElements(e);if("BUTTON"===document.activeElement.tagName)return;if(e.preventDefault(),!this.searchResults.length)return;var t=this.searchResults[this.selectedResultIndex];if(!t)return;this.searchDo(t,e,this.selectedResultIndex)}if("Escape"!==e.key&&27!==e.keyCode){if("Tab"===e.key||9===e.keyCode){var n=this.focusableElements[0],i=this.focusableElements[this.focusableElements.length-1];e.shiftKey?document.activeElement===n&&(e.preventDefault(),i.focus()):document.activeElement===i&&(e.preventDefault(),n.focus())}"ArrowDown"===e.key&&(e.preventDefault(),this.selectedResultIndex<this.searchResults.length-1&&this.selectedResultIndex++,this.$nextTick(function(){var e=document.querySelector(".search-results .selected");e&&e.scrollIntoView({block:"nearest",behavior:"smooth"})})),"ArrowUp"===e.key&&(e.preventDefault(),this.selectedResultIndex>0&&this.selectedResultIndex--,this.$nextTick(function(){var e=document.querySelector(".search-results .selected");e&&e.scrollIntoView({block:"nearest",behavior:"smooth"})}))}else this.$_state.showCommandPalette=!1}},handleMouseEnter:function(e){this.selectedResultIndex=e},refreshPosts:function(){this.loadPostData(!1),this.newPostPrompt=null},loadPostData:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this.isLoadingPosts)if(t&&this.searchIndices.goto.hasOwnProperty(this.selectedPostType))this.setDbFiltered();else{this.isLoadingPosts=!0;var n=new FormData;n.append("action","bricks_command_palette_get_posts"),n.append("nonce",this.bricks.nonce),n.append("postId",this.$_state.postId),n.append("postType",this.selectedPostType),fetch(this.bricks.ajaxUrl,{method:"POST",credentials:"same-origin",body:n}).then(function(e){return e.json()}).then(function(t){t.success?e.processPostData(t.data):console.warn("Failed to load post data for finder")}).catch(function(e){console.error("Error loading post data:",e)}).finally(function(){e.isLoadingPosts=!1})}},processPostData:function(e){var t=this;Array.isArray(e)&&(this.postData=e.map(function(e){return{scope:"goto",id:"goto-".concat(e.id),title:e.title,suffix:e.postType,slug:e.slug,postType:e.postType,keywords:[e.title,e.slug],editUrl:e.editUrl,editUrlWp:e.editUrlWp,permalink:e.permalink,status:e.status||"publish"}}),"any"===this.selectedPostType?this.db=this.db.filter(function(e){return"goto"!==e.scope}):this.db=this.db.filter(function(e){return e.postType!==t.selectedPostType}),this.db=this.db.concat(this.postData),this.setDbFiltered(),this.searchIndices.goto[this.selectedPostType]=new _W({tokenize:"full",optimize:!0,context:!0,minlength:1}),this.postData.forEach(function(e){var n=e.title.toLowerCase();t.searchIndices.goto[t.selectedPostType].add(e.id,n)}),this.searchResultsKey=Date.now())},setDbFiltered:function(){var e=this,t=this.$_clone(this.db);this.dbFiltered=t.filter(function(t){return t.scope===e.scope}),"goto"===this.scope&&"any"!==this.selectedPostType&&(this.dbFiltered=this.dbFiltered.filter(function(t){return t.postType===e.selectedPostType})),this.search()},applyAutocompleteSuggestion:function(e){var t=this;if("goto"===this.scope&&this.searchQuery.startsWith("/")){var n=this.searchQuery.match(/^(\/\d* ?)/),i=n?n[0]:"/";this.searchQuery=i+e}else this.searchQuery=e;this.$nextTick(function(){t.$refs.searchQuery&&t.$refs.searchQuery.focus(),t.search()})}},mounted:function(){var e=this;this.$_userCanAddAllElements()||(this.scopes=this.scopes.filter(function(e){return"elements"!==e.name}));var t=localStorage.getItem("brx_command_palette_scope"),n=this.scopes.map(function(e){return e.name});t&&n.includes(t)&&this.setScope(t);var i=localStorage.getItem("brx_command_palette_element_prompts");if(i)try{this.elementPrompts=JSON.parse(i)}catch(e){console.error("Failed to parse stored element prompts:",e)}this.initSearchIndexBuilder(),this.initSearchIndexElements(),this.setDbFiltered(),this.focusableElements=Array.from(this.$el.querySelectorAll('button, input, select, textarea, a[href], [tabindex]:not([tabindex="-1"])')),this.focusableElements=this.focusableElements.filter(function(e){return!e.disabled}),this.$nextTick(function(){e.$refs.searchQuery.focus()})},watch:{"$_state.showCommandPalette":function(e){var t=this;e?(document.addEventListener("keydown",this.onKeydown),this.$_state.popup&&(this.$_state.popup=!1),this.$nextTick(function(){t.$refs.searchQuery.focus()})):(this.searchQuery="",this.clearSave(),document.removeEventListener("keydown",this.onKeydown))},action:function(){var e=this;"save"===this.action&&setTimeout(function(){e.$refs.elementStructureLabel&&e.$refs.elementStructureLabel.focus()},10)},isLoadingPosts:function(e,t){!e&&t&&this.searchQueryPlain&&this.search()},searchQuery:function(){this.searchQuery||this.clearSave(),this.search()},selectedPostType:function(){"goto"===this.scope&&(this.newPostPrompt=null,this.searchResults=[],this.selectedResultIndex=0,this.loadPostData())},scope:function(e){var t=this;this.clearSave(),this.setDbFiltered(),localStorage.setItem("brx_command_palette_scope",e),"goto"===e?(this.selectedPostType=this.$_state.postType,this.searchQuery.startsWith("/")||(this.searchQuery="/"+this.searchQuery.trim())):"builder"===e&&setTimeout(function(){t.searchQuery=""},10),this.newPostPrompt=null,this.search(),this.$nextTick(function(){t.$refs.searchQuery.focus()})}}};const FW=(0,xx.A)(PW,[["render",function(e,t,n,i,r,o){var a=$r("panel-control"),s=$r("control-info"),l=$r("icon");return Ta(),Ma("div",{class:te(["scope-".concat(r.scope)])},[qa("header",null,[qa("h2",dz,[qa("span",{textContent:he(e.i18n.commandPalette),class:"name"},null,8,pz)])]),qa("main",hz,[qa("div",fz,[qa("div",mz,[Xn(qa("input",{ref:"searchQuery",type:"text",autocomplete:"off",spellcheck:"false",class:"search-input",placeholder:o.searchInputPlaceholder,"onUpdate:modelValue":t[0]||(t[0]=function(e){return r.searchQuery=e})},null,8,gz),[[ac,r.searchQuery]]),r.searchQuery&&"save"===r.action?Xn((Ta(),Ma("input",{key:0,ref:"elementStructureLabel",type:"text",autocomplete:"off",spellcheck:"false",class:"search-input",placeholder:e.i18n.commandPaletteInputPlaceholderSave,"onUpdate:modelValue":t[1]||(t[1]=function(e){return r.elementStructureLabel=e})},null,8,vz)),[[ac,r.elementStructureLabel]]):Qa("",!0),r.autocompleteSuggestions.length?(Ta(),Ma("div",yz,[(Ta(!0),Ma(Ca,null,Rr(r.autocompleteSuggestions,function(e,t){return Ta(),Ma("div",{key:t,class:"autocomplete-suggestion",onClick:function(t){return o.applyAutocompleteSuggestion(e)}},he(e.title),9,bz)}),128))])):Qa("",!0),o.insertElementsMode&&!r.action?(Ta(),Ma("button",{key:2,type:"button","data-action":"insert",onClick:t[2]||(t[2]=bc(function(e){return o.insertElements(e)},["stop"])),textContent:he(e.i18n.insert)},null,8,kz)):Qa("",!0),o.insertElementsMode?(Ta(),Ma("button",{key:3,type:"button","data-action":"save",onClick:t[3]||(t[3]=bc(function(e){return"save"===r.action?o.saveElements():r.action="save"},["stop"])),textContent:he(e.i18n.save)},null,8,wz)):Qa("",!0),"goto"===r.scope&&r.selectedPostType&&"attachment"!==r.selectedPostType&&e.bricks.loadData.userCan.editPosts&&o.searchQueryPlain?(Ta(),Ma("button",{key:4,type:"button","data-action":"create",disabled:!o.searchQueryPlain,onClick:t[4]||(t[4]=bc(function(){return o.createPost&&o.createPost.apply(o,arguments)},["stop"])),textContent:he(e.i18n.create)},null,8,_z)):Qa("",!0)]),r.elementPrompts.length&&"elements"===r.scope&&!r.action?(Ta(),La(a,{key:0,control:o.elementPromptsControl,controlKey:"searchQuery",onUpdated:t[5]||(t[5]=function(e){return o.insertElementPrompt(e)}),onDeleted:t[6]||(t[6]=function(e){return o.deleteElementPrompt(e)})},null,8,["control"])):Qa("",!0),qa("div",{class:"scopes",title:e.i18n.scope},[(Ta(!0),Ma(Ca,null,Rr(r.scopes,function(e){return Ta(),Ma("button",{key:e.name,class:te(["scope",{active:r.scope===e.name}]),"data-scope":e.name,type:"button",onClick:bc(function(t){return o.setScope(e.name)},["stop"])},[qa("span",Sz,he(e.label),1),qa("span",Ez,he(e.shortcut),1)],10,xz)}),128))],8,Cz)]),qa("div",Az,[Xn(qa("div",{class:"scopes post-types",title:e.i18n.postTypes},[(Ta(!0),Ma(Ca,null,Rr(o.postTypeOptions,function(e,t,n){return Ta(),Ma("div",{key:t,class:te(["scope",{active:r.selectedPostType===t}]),onClick:bc(function(e){return o.setSelectedPostType(t,n)},["stop"])},[qa("span",Iz,he(e),1),qa("span",Oz,he(n),1)],10,Tz)}),128))],8,Dz),[[pl,"goto"===r.scope]]),o.newPostPromptContent?(Ta(),La(s,{key:0,class:"success",control:{content:o.newPostPromptContent}},null,8,["control"])):Qa("",!0),"elements"===r.scope?(Ta(),La(s,{key:1,class:"info",control:{content:e.i18n.commandPaletteInsertElementsInfo}},null,8,["control"])):Qa("",!0),!r.isLoadingPosts&&r.searchResults.length?(Ta(),Ma("div",Pz,[qa("div",Fz,he(e.i18n.results)+": "+he(r.searchResults.length),1),qa("div",$z,[Xn(Ha(l,{name:"refresh",class:te(["icon",{disabled:r.isLoadingPosts}]),title:e.i18n.reload,onClick:bc(o.refreshPosts,["stop"])},null,8,["class","title","onClick"]),[[pl,"goto"===r.scope]])])])):Qa("",!0),"goto"===r.scope&&r.isLoadingPosts?(Ta(),Ma("div",Mz,lz(t[10]||(t[10]=[qa("div",{class:"cube top-left"},null,-1),qa("div",{class:"cube top-right"},null,-1),qa("div",{class:"cube bottom-left"},null,-1),qa("div",{class:"cube bottom-right"},null,-1)])))):Qa("",!0),!r.isLoadingPosts&&r.searchResults.length?(Ta(),Ma("ul",{key:r.searchResultsKey,class:"search-results"},[(Ta(!0),Ma(Ca,null,Rr(r.searchResults.slice(0,1e3),function(n,i){return Ta(),Ma("li",{key:n.id,class:te([{selected:r.selectedResultIndex===i}]),onClick:bc(function(e){return o.searchDo(n,e,i)},["stop"]),onMouseenter:function(e){return o.handleMouseEnter(i)}},[qa("span",{class:"title",innerHTML:o.getTitle(n)},null,8,Nz),"goto"===r.scope&&i===r.selectedResultIndex?(Ta(),Ma("div",jz,[Ha(l,{name:"clone",class:"icon","data-balloon":e.i18n.duplicate,"data-balloon-pos":"top-right",onClick:bc(function(e){return o.duplicatePost(n)},["stop"])},null,8,["data-balloon","onClick"]),null!=n&&n.editUrl&&o.postTypeSupportsBricks?(Ta(),Ma("a",{key:0,href:n.editUrl,"data-balloon":e.i18n.editWithBricks,"data-balloon-pos":"top-right",onClick:t[7]||(t[7]=bc(function(){},["stop"])),target:"_blank"},[Ha(l,{name:"b",class:"icon"})],8,Bz)):Qa("",!0),null!=n&&n.editUrlWp?(Ta(),Ma("a",{key:1,href:n.editUrlWp,"data-balloon":e.i18n.editInWordPress,"data-balloon-pos":"top-right",onClick:t[8]||(t[8]=bc(function(){},["stop"])),target:"_blank"},[Ha(l,{name:"wordpress",class:"icon"})],8,Rz)):Qa("",!0),null!=n&&n.permalink?(Ta(),Ma("a",{key:2,href:n.permalink,"data-balloon":e.i18n.viewOnFrontend,"data-balloon-pos":"top-right",onClick:t[9]||(t[9]=bc(function(){},["stop"])),target:"_blank"},[Ha(l,{name:"new-tab",class:"icon"})],8,Vz)):Qa("",!0)])):Qa("",!0),e.bricks.debug&&e.bricks.debug.includes("commandPalette")?(Ta(),Ma("pre",{key:1,class:"debug",textContent:he(n)},null,8,qz)):Qa("",!0)],42,Lz)}),128)),Xn(qa("li",{textContent:he(e.i18n.commandPaletteMoreResults),class:"more-results"},null,8,Hz),[[pl,r.searchResults.length>1e3]])])):r.isLoadingPosts||r.searchResults.length||!r.searchQuery?Qa("",!0):(Ta(),Ma("div",{key:5,class:"description no-results",textContent:he("".concat(e.i18n.noResults,"."))},null,8,zz))])]),Qa("",!0)],2)}]]);var $W=FW,MW=["data-balloon"],LW={class:"query-api-controls"},NW={class:"bricks-panel"},jW={class:"api-data-preview"},BW={class:"preview-header"},RW={class:"title"},VW=["textContent"],qW={class:"preview-actions"},HW=["disabled"],zW=["textContent"],UW=["textContent"],WW={class:"preview-content"},GW={key:0,class:"extracted"},KW={class:"title"},QW={class:"description"},YW={key:1,class:"full"},JW=["textContent"],XW={key:2,class:"extracted"},ZW={class:"title"},eG={class:"description"},tG={key:3,class:"full"},nG=["textContent"],iG={key:1,class:"bricks-panel settings-changed"},rG={class:"no-results"},oG={key:2,class:"bricks-panel no-data-state"},aG={class:"no-results"},sG={key:3,class:"shortcuts"},lG={class:"title"},cG=["textContent"],uG={class:"shortcuts-controls"},dG={key:0,class:"create-shortcut"},pG={class:"shortcut-preview"},hG={class:"shortcut-input"},fG=["placeholder"],mG=["disabled"],gG=["textContent"],vG={key:1,class:"existing-shortcuts"},yG={class:"shortcut-list"},bG={class:"shortcut-name"},kG={class:"shortcut-path"},wG=["onClick","data-balloon"],_G=["onClick","data-balloon"];function CG(e){return function(e){if(Array.isArray(e))return xG(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return xG(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xG(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xG(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var SG={class:"api-data-tree"},EG=["onClick"],AG={class:"node-key"},DG={class:"node-type"},TG=["title"],IG={key:2,class:"node-info"},OG={class:"actions"},PG=["data-balloon","onClick"],FG=["data-balloon","onClick"],$G={key:0,class:"node-children"};function MG(e){return function(e){if(Array.isArray(e))return LG(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return LG(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?LG(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function LG(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function NG(e){return NG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},NG(e)}var jG={name:"ApiDataTree",props:{data:{type:[Object,Array],required:!0},path:{type:Array,default:function(){return[]}},defaultExpanded:{type:Boolean,default:!0},maxExpandDepth:{type:Number,default:2},highlightPath:String,allowFieldSelection:{type:Boolean,default:!0}},emits:["fieldSelect"],data:function(){return{expandedNodes:new Set}},methods:{isObject:function(e){return"object"===NG(e)&&null!==e},isCopyable:function(e){return!("object"===NG(e)&&null!==e&&"array"!==this.getValueType(e))},getValueType:function(e){return Array.isArray(e)?"array":null===e?"null":NG(e)},valueToString:function(e){return null===e?"null":void 0===e?"undefined":"boolean"==typeof e||"number"==typeof e?e.toString():"string"==typeof e?e:String(e)},formatValue:function(e){var t=this.valueToString(e);return"string"==typeof e?t.length>50?'"'.concat(t.substring(0,50),'..."'):'"'.concat(t,'"'):t},titleValue:function(e){return this.valueToString(e)},getObjectInfo:function(e){if(Array.isArray(e))return"[".concat(e.length," items]");if("object"===NG(e)&&null!==e){var t=Object.keys(e);return"{".concat(t.length," keys}")}return""},isExpanded:function(e){return this.expandedNodes.has(e)},toggleNode:function(e){this.expandedNodes.has(e)?this.expandedNodes.delete(e):this.expandedNodes.add(e)},copyField:function(e){var t=[].concat(MG(this.path),[e]).join("|");t=this.removeArrayIndexFromPath(t);var n="{query_api @key:'".concat(t,"'}");this.$_copyToClipboard(n,"".concat(this.i18n.copied,": ").concat(n))},selectField:function(e){var t=[].concat(MG(this.path),[e]).join("|");t=this.removeArrayIndexFromPath(t),this.$emit("fieldSelect",t)},removeArrayIndexFromPath:function(e){var t=e.split("|");return t.length>0&&/^\d+$/.test(t[0])?t.slice(1).join("|"):e},initializeExpandedNodes:function(){var e=this;this.data&&"object"===NG(this.data)&&this.defaultExpanded&&(this.path.length>=this.maxExpandDepth||Object.keys(this.data).forEach(function(t){var n=e.data[t];e.isObject(n)&&e.expandedNodes.add(t)}))},isHighlightedPath:function(e){if(!this.highlightPath)return!1;var t=[].concat(MG(this.path),[e]).join("|"),n=this.highlightPath;return n===t||n.startsWith(t+"|")},isInHighlightChain:function(e){if(!this.highlightPath)return!1;var t=[].concat(MG(this.path),[e]).join("|");return this.highlightPath.startsWith(t)}},created:function(){this.initializeExpandedNodes()}};function BG(e){return BG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},BG(e)}function RG(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return VG(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?VG(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function VG(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function qG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function HG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qG(Object(n),!0).forEach(function(t){zG(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zG(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=BG(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=BG(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==BG(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UG(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var l=i&&i.prototype instanceof s?i:s,c=Object.create(l.prototype);return WG(c,"_invoke",function(n,i,r){var o,s,l,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return o=t,s=0,l=e,p.n=n,a}};function h(n,i){for(s=n,l=i,t=0;!d&&c&&!r&&t<u.length;t++){var r,o=u[t],h=p.p,f=o[2];n>3?(r=f===i)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=h&&((r=n<2&&h<o[1])?(s=0,p.v=i,p.n=o[1]):h<f&&(r=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,p.n=f,s=0))}if(r||n>1)return a;throw d=!0,i}return function(r,u,f){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,f),s=u,l=f;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(p.n=-1),h(s,l)):p.n=l:p.v=l);try{if(c=2,o){if(s||(r="next"),t=o[r]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=e}else if((t=(d=p.n<0)?l:n.call(i,p))!==a)break}catch(t){o=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,r,o),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][i]?t(t([][i]())):(WG(t={},i,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,WG(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,WG(d,"constructor",c),WG(c,"constructor",l),l.displayName="GeneratorFunction",WG(c,r,"GeneratorFunction"),WG(d),WG(d,r,"Generator"),WG(d,i,function(){return this}),WG(d,"toString",function(){return"[object Generator]"}),(UG=function(){return{w:o,m:p}})()}function WG(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}WG=function(e,t,n,i){function o(t,n){WG(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},WG(e,t,n,i)}function GG(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,r)}function KG(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var o=e.apply(t,n);function a(e){GG(o,i,r,a,s,"next",e)}function s(e){GG(o,i,r,a,s,"throw",e)}a(void 0)})}}var QG={components:{TwoColumnPopup:kV,ApiDataTree:(0,xx.A)(jG,[["render",function(e,t,n,i,r,o){var a=$r("icon"),s=$r("api-data-tree",!0);return Ta(),Ma("div",SG,[(Ta(!0),Ma(Ca,null,Rr(n.data,function(i,r){return Ta(),Ma("div",{key:r,class:te({"tree-node":!0,highlighted:o.isHighlightedPath(r),"in-highlight-chain":o.isInHighlightChain(r)})},[qa("div",{class:"node-header",onClick:function(e){return o.toggleNode(r)}},[o.isObject(i)?(Ta(),La(a,{key:0,name:o.isExpanded(r)?"arrow-down":"arrow-right"},null,8,["name"])):Qa("",!0),qa("span",AG,he(r),1),qa("span",DG,he(o.getValueType(i)),1),o.isObject(i)?(Ta(),Ma("span",IG,he(o.getObjectInfo(i)),1)):(Ta(),Ma("span",{key:1,class:"node-value",title:o.titleValue(i)},he(o.formatValue(i)),9,TG)),qa("ul",OG,[o.isCopyable(i)&&n.allowFieldSelection&&(o.isInHighlightChain(r)||!n.highlightPath)?(Ta(),Ma("li",{key:0,"data-balloon":"".concat(e.i18n.copyToClipboard,": ").concat(e.i18n.dynamicDataTag),"data-balloon-pos":"top-right",onClick:bc(function(e){return o.copyField(r)},["stop"])},[Ha(a,{name:"clipboard"})],8,PG)):Qa("",!0),o.isObject(i)||!n.allowFieldSelection||!o.isInHighlightChain(r)&&n.highlightPath?Qa("",!0):(Ta(),Ma("li",{key:1,"data-balloon":"".concat(e.i18n.create,": ").concat(e.i18n.dynamicDataTag),"data-balloon-pos":"top-right",onClick:bc(function(e){return o.selectField(r)},["stop"])},[Ha(a,{name:"add"})],8,FG))])],8,EG),o.isObject(i)&&o.isExpanded(r)?(Ta(),Ma("div",$G,[Ha(s,{data:i,path:[].concat(CG(n.path),[r]),allowFieldSelection:n.allowFieldSelection,onFieldSelect:t[0]||(t[0]=function(t){return e.$emit("fieldSelect",t)})},null,8,["data","path","allowFieldSelection"])])):Qa("",!0)],2)}),128))])}]])},data:function(){return{view:"tree",isMounted:!1,isLoadingPreview:!1,connectionStatus:null,selectedFields:[],selectedField:"",newShortcutName:"",localShortcuts:[],elementId:null,isEditingShortcut:!1,allSettingsSnapshot:null,apiSettingsSnapshot:null,localApiSettingsData:{},hasApiChanges:!1,hasAnyChanges:!1}},computed:{currentElementId:function(){return this.$_state.queryApiElementId},currentElementData:function(){return this.currentElementId&&this.$_state.queryApiData?this.$_state.queryApiData[this.currentElementId]:null},currentShortcuts:function(){var e=this;return this.localShortcuts.filter(function(t){return t.queryId===e.currentElementId})},existingShortcut:function(){var e=this;return this.selectedField?this.currentShortcuts.find(function(t){return t.path===e.selectedField}):null},isEditMode:function(){return!!this.existingShortcut},localApiSettings:function(){return this.localApiSettingsData},currentElementSettings:function(){var e;return(null===(e=this.currentElementData)||void 0===e?void 0:e.settings)||{}},fullApiResponse:function(){var e;return(null===(e=this.currentElementData)||void 0===e?void 0:e.fullResponse)||null},extractedData:function(){return this.localApiSettings.response_path?this.fullApiResponse?this.extractDataByPath(this.fullApiResponse,this.localApiSettings.response_path):null:this.fullApiResponse},apiPreviewData:function(){var e;return this.hasApiChanges||"error"===(null===(e=this.connectionStatus)||void 0===e?void 0:e.type)?null:this.localApiSettings.response_path?this.extractedData:this.fullApiResponse},canFetch:function(){return this.localApiSettings.api_url&&!this.isLoadingPreview},activeQueryId:function(){var e;return(null===(e=this.currentElementData)||void 0===e?void 0:e.activeQueryId)||null},currentPropertyId:function(){var e;return(null===(e=this.currentElementData)||void 0===e?void 0:e.propertyId)||null},lastFetchTime:function(){var e;return this.hasApiChanges?null:(null===(e=this.currentElementData)||void 0===e?void 0:e.lastFetch)||null},apiControls:function(){return{api_docs:{type:"info",content:this.hasApiChanges?this.i18n.hasUnsavedChanges:this.i18n.queryApiDocsInfo},api_sep:{type:"separator",label:"API: ".concat(this.i18n.request)},api_name:{type:"text",label:"".concat(this.i18n.name," (").concat(this.i18n.optional,")"),hasDynamicData:!1,description:this.i18n.queryApiNameDesc},api_url:{type:"text",label:"URL (".concat(this.i18n.required,")"),placeholder:"https://example.com/wp-json/wp/v2/products",desc:this.i18n.queryApiUrlDesc},api_method:{type:"toggle",label:this.i18n.httpMethod,options:{GET:"GET",POST:"POST"},placeholder:"GET"},api_auth_sep:{type:"separator",label:this.i18n.authorization},api_auth_type:{type:"select",inline:!0,label:this.i18n.type,options:{apiKey:this.i18n.apiKey,bearer:"Bearer Token",basic:"Basic Auth"},placeholder:this.i18n.none},api_auth_api_location:{type:"select",inline:!0,label:"".concat(this.i18n.apiKey,": ").concat(this.i18n.location),options:{header:"Header",query:this.i18n.urlParameter},required:["api_auth_type","=","apiKey"],placeholder:"Header"},api_auth_api_key_name:{type:"text",inline:!0,label:"".concat(this.i18n.apiKey,": ").concat(this.i18n.name),placeholder:this.i18n.authorization,required:["api_auth_type","=","apiKey"]},api_auth_api_key_value:{type:"text",inline:!0,label:"".concat(this.i18n.apiKey,": ").concat(this.i18n.value),required:[["api_auth_type","=","apiKey"],["api_auth_api_key_use_constant","=",!1]]},api_auth_api_key_use_constant:{type:"checkbox",inline:!0,label:this.i18n.queryApiUseConstant,required:["api_auth_type","=","apiKey"]},api_auth_api_key_use_constant_info:{type:"info",content:this.useConstantInfo("api"),required:[["api_auth_type","=","apiKey"],["api_auth_api_key_use_constant","=",!0]]},api_auth_bearer_token:{type:"text",inline:!0,label:"Bearer Token",required:[["api_auth_type","=","bearer"],["api_auth_bearer_use_constant","=",!1]]},api_auth_bearer_use_constant:{type:"checkbox",inline:!0,label:this.i18n.queryApiUseConstant,required:["api_auth_type","=","bearer"]},api_auth_bearer_use_constant_info:{type:"info",content:this.useConstantInfo("bearer"),required:[["api_auth_type","=","bearer"],["api_auth_bearer_use_constant","=",!0]]},api_auth_basic_username:{type:"text",inline:!0,label:this.i18n.username,placeholder:this.i18n.username,required:[["api_auth_type","=","basic"],["api_auth_basic_use_constant","=",!1]]},api_auth_basic_password:{type:"text",inline:!0,label:this.i18n.password,placeholder:this.i18n.password,required:[["api_auth_type","=","basic"],["api_auth_basic_use_constant","=",!1]]},api_auth_basic_use_constant:{type:"checkbox",inline:!0,label:this.i18n.queryApiUseConstant,required:["api_auth_type","=","basic"]},api_auth_basic_use_constant_info:{type:"info",content:this.useConstantInfo("basic"),required:[["api_auth_type","=","basic"],["api_auth_basic_use_constant","=",!0]]},headers_separator:{type:"separator",label:"Headers",description:"Content-Type: application/json<br>User-Agent: BricksBuilder/{CURRENT_VERSION}"},api_headers:{type:"repeater",titleProperty:"key",placeholder:"Header",fields:{key:{type:"text",label:this.i18n.key,placeholder:"Content-Type"},value:{type:"text",label:this.i18n.value,placeholder:"application/json"}}},api_params_sep:{type:"separator",label:this.i18n.urlParameters,description:this.i18n.parametersDesc},api_params:{type:"repeater",titleProperty:"key",placeholder:this.i18n.parameter,fields:{key:{type:"text",label:this.i18n.key,placeholder:"limit"},value:{type:"text",label:this.i18n.value,placeholder:"10"}}},body_separator:{type:"separator",label:this.i18n.requestBody,required:["api_method","=","POST"]},api_body_type:{type:"select",label:this.i18n.requestBodyType,options:{none:this.i18n.none,json:"JSON",formData:"Form Data",xwwwformurlencoded:"x-www-form-urlencoded"},placeholder:this.i18n.none,required:["api_method","=","POST"]},api_body_params:{type:"repeater",label:this.i18n.bodyParams,titleProperty:"key",fields:{key:{type:"text",label:"Key",placeholder:"Key"},value:{type:"text",label:"Value",placeholder:"Value"}},description:this.i18n.bodyParamsDesc,required:[["api_method","=","POST"],["api_body_type","=",["formData","xwwwformurlencoded"]]]},api_body_json:{type:"textarea",label:"JSON",placeholder:'{"key": "value"}',description:this.i18n.jsonBodyDesc,required:[["api_method","=","POST"],["api_body_type","=","json"]]},response_separator:{type:"separator",label:"API: ".concat(this.i18n.response)},response_path:{type:"text",inline:!0,label:this.i18n.responsePath,hasDynamicData:!1,placeholder:"data.results",description:this.i18n.responsePathDesc},cache_time:{type:"number",label:"".concat(this.i18n.cacheDuration," (sec)"),placeholder:300,description:this.i18n.cacheDurationDesc},pagination_separator:{type:"separator",label:this.i18n.pagination},pagination_enabled:{type:"checkbox",label:this.i18n.paginationEnabled,description:this.i18n.paginationEnabledDesc},pagination_param_location:{type:"select",label:this.i18n.paginationParamLocation,options:{query:this.i18n.urlParameter,header:"Header",body:this.i18n.requestBody},placeholder:this.i18n.urlParameter,required:["pagination_enabled","=",!0],description:this.i18n.paginationParamLocationDesc},pagination_method:{type:"select",label:this.i18n.paginationMethod,options:{page:this.i18n.pageNumber,offset:this.i18n.offset},placeholder:this.i18n.pageNumber,required:["pagination_enabled","=",!0],description:this.i18n.paginationMethodDesc},pagination_page_param:{type:"text",label:this.i18n.paginationPageParam,placeholder:"page",required:["pagination_enabled","=",!0],description:this.i18n.paginationPageParamDesc},pagination_page_offset_key:{type:"text",label:this.i18n.paginationOffsetKey,required:[["pagination_enabled","=",!0],["pagination_method","=","offset"]],description:this.i18n.paginationOffsetKeyDesc},pagination_page_offset_key_location:{type:"select",label:this.i18n.paginationOffsetKeyLocation,options:{query:this.i18n.urlParameter,header:"Header",body:this.i18n.requestBody},placeholder:this.i18n.urlParameter,required:[["pagination_enabled","=",!0],["pagination_method","=","offset"]],description:this.i18n.paginationOffsetKeyLocationDesc},pagination_total_extract:{type:"text",label:this.i18n.paginationTotalExtract,placeholder:"body.total",required:["pagination_enabled","=",!0],description:this.i18n.paginationTotalExtractDesc}}}},methods:{updateApiSetting:function(e,t){if(e.includes(".")){for(var n=e.split("."),i=this.apiSettings,r=0;r<n.length-1;r++)i[n[r]]||(i[n[r]]={}),i=i[n[r]];i[n[n.length-1]]=t}else this.apiSettings[e]=t;this.hasApiChanges=!0},initializeLocalSettings:function(){this.localApiSettingsData=JSON.parse(JSON.stringify(this.currentElementSettings))},getAllSettings:function(){return this.localApiSettings||{}},getApiSettings:function(){var e=this,t={};return Object.keys(this.localApiSettings||{}).forEach(function(n){n.startsWith("pagination_")||"api_name"===n||(t[n]=e.localApiSettings[n])}),t},takeSettingsSnapshot:function(){this.apiSettingsSnapshot=JSON.stringify(this.getApiSettings()),this.allSettingsSnapshot=JSON.stringify(this.getAllSettings()),this.hasApiChanges=!1,this.hasAnyChanges=!1},useConstantInfo:function(e){var t,n={api:{prefix:"BRX_QUERY_API_KEY_",label:"".concat(this.i18n.apiKey,": ").concat(this.i18n.value)},bearer:{prefix:"BRX_QUERY_BEARER_TOKEN_",label:"Bearer Token"},basic:{prefix:["BRX_QUERY_BASIC_AUTH_USERNAME_","BRX_QUERY_BASIC_AUTH_PASSWORD_"],label:[this.i18n.username,this.i18n.password]}}[e];if(!n)return"";var i=null===(t=this.currentElementId)||void 0===t?void 0:t.toUpperCase();if("basic"===e){var r="<br>".concat(n.prefix[0]).concat(i),o="<br>".concat(n.prefix[1]).concat(i);return"".concat(n.label[0]," ").concat(this.i18n.queryApiUseConstantInfo,": ").concat(r,"<br>").concat(n.label[1]," ").concat(this.i18n.queryApiUseConstantInfo,": ").concat(o)}var a="<br>".concat(n.prefix).concat(i);return"".concat(n.label," ").concat(this.i18n.queryApiUseConstantInfo,": ").concat(a)},fetchData:function(){var e=this;return KG(UG().m(function t(){var n,i;return UG().w(function(t){for(;;)switch(t.p=t.n){case 0:if(e.canFetch){t.n=1;break}return t.a(2);case 1:return e.isLoadingPreview=!0,e.connectionStatus=null,t.p=2,t.n=3,e.fetchApiData();case 3:(n=t.v)&&(e.currentElementData.fullResponse=n.full_response,e.currentElementData.extractedData=n.extracted_data,e.currentElementData.previewData=n.preview_data,e.currentElementData.responsePath=n.response_path,e.currentElementData.lastFetch=1e3*n.last_fetch,e.connectionStatus={type:"success",message:"".concat(e.i18n.request,": ").concat(e.i18n.successful)}),t.n=5;break;case 4:t.p=4,i=t.v,e.clearCachedData(),e.connectionStatus={type:"error",message:"".concat(e.i18n.request,": ").concat(e.i18n.error," (").concat(i.message,")")};case 5:return t.p=5,e.isLoadingPreview=!1,e.hasApiChanges=!1,t.f(5);case 6:return t.a(2)}},t,null,[[2,4,5,6]])}))()},fetchApiData:function(){var e=this;return KG(UG().m(function t(){return UG().w(function(t){for(;;)if(0===t.n)return t.a(2,new Promise(function(t,n){e.$_http({data:{action:"bricks_query_api",settings:e.localApiSettings,elementId:e.currentElementId},success:function(i){if(i.success&&i.data){var r={full_response:i.data.full_response||i.data.data||i.data,extracted_data:i.data.extracted_data||i.data.data||i.data,response_path:i.data.response_path||"",status:i.data.status||500,headers:i.data.headers||{},last_fetch:i.data.last_fetch||Date.now()/1e3};Array.isArray(r.extracted_data)&&r.extracted_data.length>10?r.preview_data=r.extracted_data.slice(0,10):r.preview_data=r.extracted_data,t(r)}else n(new Error(i.data.message||"".concat(e.i18n.request,": ").concat(e.i18n.error)))},error:function(t){n(new Error(t.message||"".concat(e.i18n.request,": ").concat(e.i18n.error)))}})}))},t)}))()},toggleView:function(){this.view="tree"===this.view?"raw":"tree"},onFieldSelect:function(e){var t=this;this.selectedField=e;var n=this.currentShortcuts.find(function(t){return t.path===e});n?(this.newShortcutName=n.label,this.isEditingShortcut=!0):(this.newShortcutName="",this.isEditingShortcut=!1),this.$nextTick(function(){t.$refs.shortcutInput&&t.$refs.shortcutInput.focus()})},createShortcut:function(){var e;if(this.selectedField&&this.newShortcutName.trim()){var t={queryId:this.currentElementId,apiName:(null===(e=this.localApiSettings)||void 0===e?void 0:e.api_name)||"",label:this.newShortcutName.trim(),path:this.selectedField,dynamicTag:"{query_api @key:'".concat(this.selectedField,"'}"),created:Date.now()};this.addQueryShortcut(t),this.$_showMessage("".concat(this.isEditingShortcut?this.i18n.updated:this.i18n.created,": ").concat(t.label)),this.clearShortcutForm()}},removeShortcut:function(e){var t=this.currentShortcuts.filter(function(t){return t.path===e})[0];t&&(this.isEditingShortcut&&this.selectedField===e&&this.clearShortcutForm(),this.removeQueryShortcut(this.currentElementId,e),this.$_showMessage("".concat(this.i18n.removed,": ").concat(t.label)))},clearShortcutForm:function(){this.selectedField="",this.newShortcutName="",this.isEditingShortcut=!1},addQueryShortcut:function(e){var t=this.localShortcuts.findIndex(function(t){return t.queryId===e.queryId&&t.path===e.path});t>-1?this.localShortcuts.splice(t,1,e):this.localShortcuts.push(e),this.saveShortcutsToStorage()},removeQueryShortcut:function(e,t){var n=this.localShortcuts.findIndex(function(n){return n.queryId===e&&n.path===t});n>-1&&(this.localShortcuts.splice(n,1),this.saveShortcutsToStorage())},saveShortcutsToStorage:function(){localStorage.setItem("bricks_query_api_shortcuts",JSON.stringify(this.localShortcuts))},loadShortcutsFromStorage:function(){var e=localStorage.getItem("bricks_query_api_shortcuts");this.localShortcuts=e?JSON.parse(e):[]},finalizeSettingsSave:function(){var e,t,n,i,r,o,a=this,s=this.$_state.activeElement,l=s&&s.cid,c=this.activeQueryId||(null==s||null===(e=s.settings)||void 0===e||null===(e=e.query)||void 0===e?void 0:e.id),u=this.$_state.globalQueries.find(function(e){return e.id===c});u?(u.settings=HG({},this.localApiSettings),l?this.$_rerenderCid(s.id):this.$_state.rerenderGlobalQueryIds=[c]):s&&(l?(s.properties||(s.properties={}),this.currentPropertyId&&(s.properties[this.currentPropertyId]||(s.properties[this.currentPropertyId]={objectType:"api"}),s.properties[this.currentPropertyId]=HG({},this.localApiSettings),this.currentElementData&&(this.currentElementData.settings=HG({},this.localApiSettings)))):(s.settings||(s.settings={}),s.settings.query||(s.settings.query={objectType:"api"}),s.settings.query=HG({},this.localApiSettings),this.currentElementData&&(this.currentElementData.settings=HG({},this.localApiSettings)))),this.localShortcuts=this.localShortcuts.map(function(e){var t;return e.queryId===a.currentElementId?HG(HG({},e),{},{apiName:(null===(t=a.localApiSettings)||void 0===t?void 0:t.api_name)||""}):e}),this.saveShortcutsToStorage(),this.takeSettingsSnapshot(),this.updateCacheData({fullResponse:(null===(t=this.currentElementData)||void 0===t?void 0:t.fullResponse)||null,extractedData:(null===(n=this.currentElementData)||void 0===n?void 0:n.extractedData)||null,data:(null===(i=this.currentElementData)||void 0===i?void 0:i.data)||null,responsePath:(null===(r=this.currentElementData)||void 0===r?void 0:r.responsePath)||null,lastFetch:(null===(o=this.currentElementData)||void 0===o?void 0:o.lastFetch)||null}),this.$nextTick(function(){a.$_savePost(),a.$_rerenderControls()})},saveSettings:function(){var e=this;return KG(UG().m(function t(){var n;return UG().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,e.fetchData();case 1:t.n=3;break;case 2:t.p=2,n=t.v,console.warn("Fetch failed during save, proceeding with save:",n);case 3:e.finalizeSettingsSave();case 4:return t.a(2)}},t,null,[[0,2]])}))()},extractDataByPath:function(e,t){if(!t||!e)return e;var n,i=e,r=RG(t.split("."));try{for(r.s();!(n=r.n()).done;){var o=n.value;if(!i||"object"!==BG(i)||!(o in i))return e;i=i[o]}}catch(e){r.e(e)}finally{r.f()}return i},updateCacheData:function(e){window.bricksData.loadData||(window.bricksData.loadData={}),window.bricksData.loadData.queryApiCache||(window.bricksData.loadData.queryApiCache={}),window.bricksData.loadData.queryApiCache[this.currentElementId]={full_response:(null==e?void 0:e.fullResponse)||null,extracted_data:(null==e?void 0:e.extractedData)||null,data:(null==e?void 0:e.data)||null,response_path:(null==e?void 0:e.responsePath)||null,last_fetch:null!=e&&e.lastFetch?Math.floor(e.lastFetch/1e3):null}},loadCacheData:function(){if(this.currentElementId&&window.bricksData&&window.bricksData.loadData&&window.bricksData.loadData.queryApiCache&&window.bricksData.loadData.queryApiCache[this.currentElementId]){var e=window.bricksData.loadData.queryApiCache[this.currentElementId];this.currentElementData||(this.$_state.queryApiData[this.currentElementId]={settings:{},cachedData:null,lastFetch:null}),this.currentElementData.fullResponse||(this.currentElementData.fullResponse=e.full_response||e.data,this.currentElementData.extractedData=e.extracted_data||e.data,this.currentElementData.data=e.data,this.currentElementData.lastFetch=e.last_fetch?1e3*e.last_fetch:null)}},clearCachedData:function(){this.currentElementData&&(this.currentElementData.fullResponse=null,this.currentElementData.extractedData=null,this.currentElementData.previewData=null,this.currentElementData.responsePath=null,this.currentElementData.lastFetch=null,delete window.bricksData.loadData.queryApiCache[this.currentElementId])}},beforeUnmount:function(){delete this.$_state.queryApiData[this.currentElementId],this.$_state.queryApiElementId=null},mounted:function(){var e=this;this.$_state.queryApiData||(this.$_state.queryApiData={}),this.loadShortcutsFromStorage(),this.loadCacheData(),this.initializeLocalSettings(),this.$nextTick(function(){e.takeSettingsSnapshot(),e.isMounted=!0})},watch:{localApiSettings:{handler:function(){this.isMounted&&(this.hasApiChanges=JSON.stringify(this.getApiSettings())!==this.apiSettingsSnapshot,this.hasAnyChanges=JSON.stringify(this.getAllSettings())!==this.allSettingsSnapshot)},deep:!0,immediate:!1},hasAnyChanges:{handler:function(){this.hasAnyChanges?this.$_state.popupCloseDialog={callback:this.saveSettings}:this.$_state.popupCloseDialog=null},immediate:!1}}};const YG=(0,xx.A)(QG,[["render",function(e,t,n,i,r,o){var a=$r("icon"),s=$r("panel-control"),l=$r("control-info"),c=$r("api-data-tree"),u=$r("control-code"),d=$r("two-column-popup");return Ta(),La(d,{title:"".concat(e.i18n.queryApi,": ").concat(e.i18n.settings),"show-sidebar":!0},{"header-actions":Jn(function(){return[qa("li",{class:te({active:r.hasAnyChanges}),"data-balloon":"".concat(e.i18n.save),onClick:t[0]||(t[0]=bc(function(e){return o.saveSettings()},["stop"]))},[Ha(a,{name:"save"})],10,MW)]}),sidebar:Jn(function(){return[qa("div",LW,[qa("div",NW,[(Ta(!0),Ma(Ca,null,Rr(o.apiControls,function(e,t){return Ta(),La(s,{key:t,control:e,controls:o.apiControls,controlKey:t,settings:o.localApiSettings},null,8,["control","controls","controlKey","settings"])}),128))])])]}),"main-content":Jn(function(){var n;return[qa("div",jW,[qa("div",BW,[qa("div",RW,[qa("h3",{textContent:he("API: ".concat(e.i18n.response))},null,8,VW),qa("div",qW,[qa("button",{class:"button",disabled:r.isLoadingPreview||!o.canFetch,onClick:t[1]||(t[1]=bc(function(){return o.fetchData&&o.fetchData.apply(o,arguments)},["stop"]))},[qa("span",{textContent:he(r.isLoadingPreview?"".concat(e.i18n.queryApiFetching," ..."):e.i18n.queryApiFetch)},null,8,zW)],8,HW),o.apiPreviewData?(Ta(),Ma("button",{key:0,class:"button",onClick:t[2]||(t[2]=function(){return o.toggleView&&o.toggleView.apply(o,arguments)})},he("raw"===r.view?"Tree View":"Raw JSON"),1)):Qa("",!0)])]),o.lastFetchTime?(Ta(),Ma("div",{key:0,class:"cache-info",textContent:he("".concat(e.i18n.queryApiLastFetch,": ").concat(new Date(o.lastFetchTime).toLocaleTimeString()))},null,8,UW)):Qa("",!0),null!==(n=r.connectionStatus)&&void 0!==n&&n.message&&!r.hasApiChanges?(Ta(),La(l,{key:1,control:{content:r.connectionStatus.message,success:"success"===r.connectionStatus.type,error:"error"===r.connectionStatus.type}},null,8,["control"])):Qa("",!0)]),qa("div",WW,[o.apiPreviewData?(Ta(),Ma(Ca,{key:0},["tree"===r.view&&o.localApiSettings.response_path&&o.extractedData!==o.fullApiResponse?(Ta(),Ma("section",GW,[qa("h4",KW,[Ga(he(e.i18n.responsePath)+": ",1),qa("code",null,he(o.localApiSettings.response_path),1)]),qa("span",QW,he(e.i18n.queryApiResponsePathInfo),1),Ha(c,{data:o.extractedData,path:[],defaultExpanded:!0,allowFieldSelection:!0,onFieldSelect:o.onFieldSelect},null,8,["data","onFieldSelect"])])):Qa("",!0),"tree"===r.view?(Ta(),Ma("section",YW,[qa("h4",{class:"title",textContent:he(e.i18n.responseFull)},null,8,JW),Ha(c,{data:o.fullApiResponse,path:[],defaultExpanded:!o.localApiSettings.response_path||o.extractedData===o.fullApiResponse,highlightPath:o.localApiSettings.response_path,allowFieldSelection:!o.localApiSettings.response_path,onFieldSelect:o.onFieldSelect},null,8,["data","defaultExpanded","highlightPath","allowFieldSelection","onFieldSelect"])])):Qa("",!0),"raw"===r.view&&o.extractedData&&o.localApiSettings.response_path?(Ta(),Ma("section",XW,[qa("h4",ZW,[Ga(he(e.i18n.responsePath)+": ",1),qa("code",null,he(o.localApiSettings.response_path),1)]),qa("span",eG,he(e.i18n.queryApiResponsePathInfo),1),Ha(u,{control:{mode:"javascript",replace:!1,readOnly:!0},value:JSON.stringify(o.extractedData,null,2)},null,8,["value"])])):Qa("",!0),"raw"===r.view?(Ta(),Ma("section",tG,[qa("h4",{class:"title",textContent:he(e.i18n.responseFull)},null,8,nG),Ha(u,{control:{mode:"javascript",replace:!1,readOnly:!0},value:JSON.stringify(o.fullApiResponse,null,2)},null,8,["value"])])):Qa("",!0)],64)):r.hasApiChanges?(Ta(),Ma("div",iG,[qa("div",rG,[Ha(a,{name:"info"}),qa("p",null,he(e.i18n.queryApiSettingChangedHelp),1)])])):(Ta(),Ma("div",oG,[qa("div",aG,[Ha(a,{name:"info"}),qa("p",null,he(e.i18n.queryApiNoDataHelp),1)])])),o.apiPreviewData?(Ta(),Ma("section",sG,[qa("h4",lG,he(e.i18n.dynamicData),1),qa("p",{class:"description",textContent:he(e.i18n.queryApiShortcutsInfo)},null,8,cG),qa("div",uG,[r.selectedField?(Ta(),Ma("div",dG,[qa("div",pG,[qa("strong",null,he(e.i18n.queryApiSelectedField)+":",1),qa("code",null,he(r.selectedField),1)]),qa("div",hG,[Xn(qa("input",{type:"text","onUpdate:modelValue":t[3]||(t[3]=function(e){return r.newShortcutName=e}),placeholder:e.i18n.queryApiShortcutNamePlaceholder,onKeyup:t[4]||(t[4]=wc(function(){return o.createShortcut&&o.createShortcut.apply(o,arguments)},["enter"])),ref:"shortcutInput"},null,40,fG),[[ac,r.newShortcutName]]),qa("button",{class:"button",onClick:t[5]||(t[5]=function(){return o.createShortcut&&o.createShortcut.apply(o,arguments)}),disabled:!r.newShortcutName.trim()},he(o.isEditMode?e.i18n.update:e.i18n.create),9,mG),qa("button",{class:"button",onClick:t[6]||(t[6]=function(){return o.clearShortcutForm&&o.clearShortcutForm.apply(o,arguments)}),title:"Cancel",textContent:he(e.i18n.cancel)},null,8,gG)])])):Qa("",!0),o.currentShortcuts.length?(Ta(),Ma("div",vG,[qa("div",yG,[(Ta(!0),Ma(Ca,null,Rr(o.currentShortcuts,function(t,n){return Ta(),Ma("div",{key:n,class:"shortcut-item"},[qa("span",bG,he(t.label),1),qa("code",kG,he(t.path),1),qa("button",{class:"button",onClick:bc(function(e){return o.onFieldSelect(t.path)},["stop"]),"data-balloon":e.i18n.edit},[Ha(a,{name:"edit"})],8,wG),qa("button",{class:"button danger",onClick:function(e){return o.removeShortcut(t.path)},"data-balloon":e.i18n.delete},[Ha(a,{name:"trash"})],8,_G)])}),128))])])):Qa("",!0)])])):Qa("",!0)])])]}),_:1},8,["title"])}]]);var JG=YG,XG={id:"bricks-popup-close-dialog"},ZG={class:"inner"},eK={key:0,class:"header"},tK={class:"title"},nK={key:1,class:"body"},iK={class:"actions"};function rK(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var l=i&&i.prototype instanceof s?i:s,c=Object.create(l.prototype);return oK(c,"_invoke",function(n,i,r){var o,s,l,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return o=t,s=0,l=e,p.n=n,a}};function h(n,i){for(s=n,l=i,t=0;!d&&c&&!r&&t<u.length;t++){var r,o=u[t],h=p.p,f=o[2];n>3?(r=f===i)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=h&&((r=n<2&&h<o[1])?(s=0,p.v=i,p.n=o[1]):h<f&&(r=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,p.n=f,s=0))}if(r||n>1)return a;throw d=!0,i}return function(r,u,f){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,f),s=u,l=f;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(p.n=-1),h(s,l)):p.n=l:p.v=l);try{if(c=2,o){if(s||(r="next"),t=o[r]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=e}else if((t=(d=p.n<0)?l:n.call(i,p))!==a)break}catch(t){o=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,r,o),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][i]?t(t([][i]())):(oK(t={},i,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,oK(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,oK(d,"constructor",c),oK(c,"constructor",l),l.displayName="GeneratorFunction",oK(c,r,"GeneratorFunction"),oK(d),oK(d,r,"Generator"),oK(d,i,function(){return this}),oK(d,"toString",function(){return"[object Generator]"}),(rK=function(){return{w:o,m:p}})()}function oK(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}oK=function(e,t,n,i){function o(t,n){oK(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},oK(e,t,n,i)}function aK(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,r)}var sK={computed:{title:function(){var e;return(null===(e=this.$_state.popupCloseDialog)||void 0===e?void 0:e.title)||this.i18n.hasUnsavedChanges},message:function(){var e;return(null===(e=this.$_state.popupCloseDialog)||void 0===e?void 0:e.message)||""},confirmText:function(){var e;return(null===(e=this.$_state.popupCloseDialog)||void 0===e?void 0:e.confirmText)||"".concat(this.i18n.save," & ").concat(this.i18n.close)},cancelText:function(){var e;return(null===(e=this.$_state.popupCloseDialog)||void 0===e?void 0:e.cancelText)||"".concat(this.i18n.discard," & ").concat(this.i18n.close)}},methods:{confirm:function(){var e,t=this;return(e=rK().m(function e(){return rK().w(function(e){for(;;)switch(e.p=e.n){case 0:if("function"!=typeof t.$_state.popupCloseDialog.callback){e.n=4;break}return e.p=1,e.n=2,t.$_state.popupCloseDialog.callback();case 2:e.n=4;break;case 3:e.p=3,e.v;case 4:t.$nextTick(function(){t.close()});case 5:return e.a(2)}},e,null,[[1,3]])}),function(){var t=this,n=arguments;return new Promise(function(i,r){var o=e.apply(t,n);function a(e){aK(o,i,r,a,s,"next",e)}function s(e){aK(o,i,r,a,s,"throw",e)}a(void 0)})})()},close:function(){this.$_state.popupCloseDialog=null,this.$_state.popup=!1}}};const lK=(0,xx.A)(sK,[["render",function(e,t,n,i,r,o){return Ta(),Ma("div",XG,[qa("div",ZG,[o.title?(Ta(),Ma("div",eK,[qa("h2",tK,he(o.title),1)])):Qa("",!0),o.message?(Ta(),Ma("div",nK,[qa("p",null,he(o.message),1)])):Qa("",!0),qa("div",iK,[qa("button",{class:"button",onClick:t[0]||(t[0]=function(){return o.close&&o.close.apply(o,arguments)})},he(o.cancelText),1),qa("button",{class:"button",onClick:t[1]||(t[1]=function(){return o.confirm&&o.confirm.apply(o,arguments)})},he(o.confirmText),1)])])])}]]);var cK=lK;function uK(e){return function(e){if(Array.isArray(e))return dK(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return dK(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dK(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dK(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var pK={class:"content-wrapper"},hK={key:0,class:"icon-sidebar"},fK={class:"icon-tabs"},mK=["data-balloon","data-balloon-pos","onClick"],gK={class:"tab-index"},vK={class:"main-inner"},yK={key:0,class:"popup-filters"},bK={key:3,class:"main bricks-panel"},kK={key:0,class:"canvas-preview-wrapper"};var wK={key:1,class:"import action-wrapper"},_K=["textContent"];var CK={class:"toolbar"},xK=["textContent"],SK={class:"actions flex"},EK=["textContent"],AK=["textContent"],DK=["data-balloon"],TK=["data-balloon"],IK=["data-balloon"],OK=["data-balloon"],PK=["data-balloon"],FK=["data-balloon"],$K=["data-balloon"],MK=["data-balloon"],LK={class:"content"},NK={key:0,class:"scanning"},jK=["data-id","data-index"],BK={class:"move name",dir:"ltr"},RK=["textContent"],VK=["textContent"],qK=["textContent"],HK={key:2,class:"no-results"},zK={key:0,class:"input-wrapper"},UK=["placeholder"],WK={class:"actions"};function GK(e){return function(e){if(Array.isArray(e))return KK(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return KK(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?KK(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function KK(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var QK={props:{importMode:{type:Boolean,default:!1},classes:{type:Array,default:function(){return[]}}},setup:function(){return{activeClass:ln(Xh,"activeClass"),popupFilteredItems:ln(Xh,"popupFilteredItems"),popupSelectedItems:ln(Xh,"popupSelectedItems")}},data:function(){return{action:void 0,selectorInput:""}},computed:{activeClassId:function(){var e;return null===(e=this.activeClass)||void 0===e?void 0:e.id},classesTitle:function(){var e=this.i18n.classes;this.importMode?e=this.i18n.importClasses:"trash"===this.$_state.popupView&&(e=this.i18n.trash);var t=this.$_state.popupIsLoadingItems?"(...)":"(".concat(this.classes.length,")");return"".concat(e," ").concat(t)},lockState:function(){return this.$_state.globalClassesLocked.includes(this.popupSelectedItems[0])?"locked":"unlocked"}},methods:{acceptClasses:function(e){var t=e?[e.id]:this.popupSelectedItems.length?this.popupSelectedItems:this.classes.map(function(e){return e.id});this.$emit("accept-classes",t),this.popupSelectedItems=[]},rejectClasses:function(e){var t=e?[e.id]:this.popupSelectedItems.length?this.popupSelectedItems:this.classes.map(function(e){return e.id});this.$emit("reject-classes",t),this.popupSelectedItems=[]},restoreSelectedClasses:function(){this.$_restoreGlobalClasses(this.$_state.popupSelectedItems),this.$_showMessage("".concat(this.i18n.restored,": ").concat(this.i18n.classes," (").concat(this.$_state.popupSelectedItems.length,")")),this.$_state.popupSelectedItems=[]},showMarkToOverride:function(e){var t=this;return!!this.importMode&&(e?!e._override&&this.hasConflict(e):this.popupSelectedItems.some(function(e){var n=t.classes.find(function(t){return t.id===e});return n&&t.hasConflict(n)&&!n._override}))},showUnmarkOverride:function(e){var t=this;return!!this.importMode&&(e?e._override:this.popupSelectedItems.some(function(e){var n=t.classes.find(function(t){return t.id===e});return n&&n._override}))},selectAll:function(){this.popupSelectedItems.length?this.popupSelectedItems=[]:this.popupSelectedItems=this.popupFilteredItems.map(function(e){return e.id})},exportSelectedClasses:function(){var e=this,t=this.$_state.globalClasses.filter(function(t){return e.popupSelectedItems.includes(t.id)}),n=this.$_addCategoryMetadataToClasses(t);this.$_exportAsJsonFile(n,"bricks-selected-global-classes")},deleteSelectedClassesPermanently:function(){var e=this;this.$_deleteClassesPermanently(this.popupSelectedItems).then(function(t){e.$_showMessage("".concat(e.i18n.deleted,": ").concat(e.i18n.classes," (").concat(t.length,")")),e.popupSelectedItems=[]}).catch(function(t){console.error("Error deleting classes",t),e.$_showError(e.i18n.errorDeletingClass)}),this.$_state.deleteItem=null},moveSelectedClassesToTrash:function(e){if(this.importMode)this.$emit("remove-classes",null!=e&&e.id?[e.id]:this.popupSelectedItems),this.$_showMessage("".concat(this.i18n.class,": ").concat(this.i18n.discarded," (").concat(this.popupSelectedItems.length,")"));else{var t=this.$_moveGlobalClassesToTrash(this.popupSelectedItems);this.$_showMessage("".concat(this.i18n.movedToTrash,": ").concat(t.length," ").concat(this.i18n.classes))}this.popupSelectedItems=[]},deleteGlobalClass:function(e){if(this.importMode)this.$emit("remove-classes",[e]),this.$_showMessage("".concat(this.i18n.class,": ").concat(this.i18n.discarded));else{var t=d_.moveGlobalClassesToTrash(e);if(t.length>0){var n=t[0];this.$_showMessage("".concat(this.i18n.movedToTrash,": .").concat(n.name))}}this.activeClassId&&this.activeClassId===e&&(this.activeClass=void 0)},lockToggleSelectedClasses:function(){var e=this;this.popupSelectedItems.forEach(function(t){var n=e.$_state.globalClassesLocked.indexOf(t);-1===n?e.$_state.globalClassesLocked.push(t):e.$_state.globalClassesLocked.splice(n,1)})},hasConflict:function(e){return this.$_importClassConflict(e)},markSelectedToOverride:function(e,t){var n=this,i=GK(this.classes),r=this.popupSelectedItems;t&&(r=[null==t?void 0:t.id]),r.forEach(function(t){var r=i.findIndex(function(e){return e.id===t});e&&n.hasConflict(i[r])?i[r]._override=!0:delete i[r]._override}),this.$emit("update-classes",i)},hasIdConflict:function(e){var t=this.$_state.globalClassIndexById[e.id];return void 0!==t&&this.$_state.globalClasses[t].name!==e.name}},watch:{"$_state.globalClassesLocked":{handler:function(){this.$_state.activeClassIsLocked=this.activeClassId&&this.$_state.globalClassesLocked.includes(this.activeClassId)}}}};var YK=(0,xx.A)(QK,[["render",function(e,t,n,i,r,o){var a=$r("icon"),s=$r("control-info"),l=$r("sortable");return Ta(),Ma("div",{class:te(["column","items",{trash:"trash"===e.$_state.popupView}])},[qa("div",CK,[qa("h6",{textContent:he(o.classesTitle)},null,8,xK),qa("ul",SK,[n.importMode&&i.popupSelectedItems.length>1?(Ta(),Ma("li",{key:0,class:"accept success",onClick:t[0]||(t[0]=bc(function(e){return o.acceptClasses()},["stop"]))},[Ha(a,{name:"check"}),qa("span",{textContent:he("".concat(e.i18n.accept,": ").concat(e.i18n.selected))},null,8,EK)])):Qa("",!0),n.importMode&&i.popupSelectedItems.length>1?(Ta(),Ma("li",{key:1,class:"reject danger",onClick:t[1]||(t[1]=bc(function(e){return o.rejectClasses()},["stop"]))},[Ha(a,{name:"close"}),qa("span",{textContent:he("".concat(e.i18n.reject,": ").concat(e.i18n.selected))},null,8,AK)])):Qa("",!0),!n.importMode&&o.showMarkToOverride()?(Ta(),Ma("li",{key:2,"data-balloon":e.i18n.overrideLocalClass,"data-balloon-pos":"bottom-right",onClick:t[2]||(t[2]=bc(function(e){return o.markSelectedToOverride(!0)},["stop"]))},[Ha(a,{name:"redo3"})],8,DK)):Qa("",!0),!n.importMode&&o.showUnmarkOverride()?(Ta(),Ma("li",{key:3,"data-balloon":"".concat(e.i18n.undo,": ").concat(e.i18n.overrideLocalClass),"data-balloon-pos":"bottom-right",onClick:t[3]||(t[3]=bc(function(e){return o.markSelectedToOverride(!1)},["stop"]))},[Ha(a,{name:"undo3"})],8,TK)):Qa("",!0),"trash"===e.$_state.popupView&&i.popupSelectedItems.length?(Ta(),Ma("li",{key:4,"data-balloon":"".concat(e.i18n.restore,": ").concat(e.i18n.selected," (").concat(i.popupSelectedItems.length,")"),"data-balloon-pos":"bottom-right",onClick:t[4]||(t[4]=bc(function(e){return o.restoreSelectedClasses()},["stop"]))},[Ha(a,{name:"undo4"})],8,IK)):Qa("",!0),"trash"!==e.$_state.popupView&&!n.importMode&&i.popupSelectedItems.length?(Ta(),Ma("li",{key:5,"data-balloon":"".concat("locked"===o.lockState?e.i18n.unlock:e.i18n.lock,": ").concat(e.i18n.selected," (").concat(i.popupSelectedItems.length,")"),"data-balloon-pos":"bottom-right",onClick:t[5]||(t[5]=bc(function(e){return o.lockToggleSelectedClasses()},["stop"]))},[Ha(a,{name:"locked"===o.lockState?"unlocked":"locked"},null,8,["name"])],8,OK)):Qa("",!0),"trash"!==e.$_state.popupView&&!n.importMode&&i.popupSelectedItems.length?(Ta(),Ma("li",{key:6,"data-balloon":"".concat(e.i18n.export,": ").concat(e.i18n.selected," (").concat(i.popupSelectedItems.length,")"),"data-balloon-pos":"bottom-right",onClick:t[6]||(t[6]=bc(function(e){return o.exportSelectedClasses()},["stop"]))},[Ha(a,{name:"export"})],8,PK)):Qa("",!0),"trash"===e.$_state.popupView&&i.popupSelectedItems.length?(Ta(),Ma("li",{key:7,"data-balloon":"classes"===e.$_state.deleteItem?e.i18n.sure:"".concat(e.i18n.deletePermanently," (").concat(i.popupSelectedItems.length,")"),"data-balloon-pos":"bottom-right",onClick:t[7]||(t[7]=bc(function(t){return"trashClasses"===e.$_state.deleteItem?o.deleteSelectedClassesPermanently():e.$_deleteConfirmation("trashClasses")},["stop"]))},[Ha(a,{name:"trashClasses"===e.$_state.deleteItem?"check":"trash"},null,8,["name"])],8,FK)):!n.importMode&&i.popupSelectedItems.length?(Ta(),Ma("li",{key:8,"data-balloon":"classes"===e.$_state.deleteItem?e.i18n.sure:"".concat(e.i18n.moveToTrash," (").concat(i.popupSelectedItems.length,")"),"data-balloon-pos":"bottom-right",onClick:t[8]||(t[8]=bc(function(t){return"classes"===e.$_state.deleteItem?o.moveSelectedClassesToTrash():e.$_deleteConfirmation("classes")},["stop"]))},[Ha(a,{name:"classes"===e.$_state.deleteItem?"check":"trash"},null,8,["name"])],8,$K)):Qa("",!0),n.importMode?Qa("",!0):(Ta(),Ma("li",{key:9,"data-balloon":i.popupSelectedItems.length?"".concat(e.i18n.clear,": ").concat(e.i18n.selected," (").concat(i.popupSelectedItems.length,")"):"".concat(e.i18n.select,": ").concat(e.i18n.all),"data-balloon-pos":"bottom-right",onClick:t[9]||(t[9]=bc(function(e){return o.selectAll()},["stop"]))},[Ha(a,{name:i.popupSelectedItems.length?"square-fill":"square"},null,8,["name"])],8,MK))])]),qa("div",LK,[e.$_state.popupIsLoadingItems?(Ta(),Ma("div",NK,[Ha(s,{control:{content:e.i18n.scanningSiteClassesInfo}},null,8,["control"])])):n.classes.length?(Ta(),La(l,{key:1,tag:"ul",ref:"sortableList",parent:n.importMode?n.classes:e.$_state.globalClasses,options:{direction:"vertical",itemClass:"sortable",handleClass:"move"}},{default:Jn(function(){return[(Ta(!0),Ma(Ca,null,Rr(n.classes,function(t,r){return Ta(),Ma("li",{ref_for:!0,ref:"classItem",key:t.id,class:te(["sortable",{selected:i.popupSelectedItems.includes(t.id),conflict:n.importMode&&o.hasIdConflict(t),exists:n.importMode&&t._exists,override:t._override}]),"data-id":t.id,"data-index":r},[qa("span",BK," ."+he(t.name),1),qa("div",{class:te(["actions","flex",{"always-visible":n.importMode&&i.popupSelectedItems.length<2}])},[n.importMode&&i.popupSelectedItems.length<2&&t._override?(Ta(),La(a,{key:0,class:"reason","data-balloon":e.i18n.override,"data-balloon-pos":"bottom-right"},null,8,["data-balloon"])):n.importMode&&i.popupSelectedItems.length<2&&o.hasIdConflict(t)?(Ta(),Ma("button",{key:1,class:"reason",textContent:he("".concat(e.i18n.conflict,": ID"))},null,8,RK)):n.importMode&&i.popupSelectedItems.length<2&&t._exists?(Ta(),Ma("button",{key:2,class:"reason",textContent:he("".concat(e.i18n.conflict,": ").concat(e.i18n.name))},null,8,VK)):n.importMode&&i.popupSelectedItems.length<2?(Ta(),Ma("button",{key:3,class:"reason",textContent:he(e.i18n.newClass)},null,8,qK)):Qa("",!0),n.importMode&&i.popupSelectedItems.length<2?(Ta(),La(a,{key:4,name:"check",title:e.i18n.accept,onClick:bc(function(e){return o.acceptClasses(t)},["stop"])},null,8,["title","onClick"])):Qa("",!0),n.importMode&&i.popupSelectedItems.length<2?(Ta(),La(a,{key:5,name:"close",title:e.i18n.reject,onClick:bc(function(e){return o.rejectClasses(t)},["stop"])},null,8,["title","onClick"])):Qa("",!0),!n.importMode&&o.showMarkToOverride(t)?(Ta(),La(a,{key:6,name:"redo3",title:e.i18n.overrideLocalClass,onClick:bc(function(e){return o.markSelectedToOverride(!0,t)},["stop"])},null,8,["title","onClick"])):Qa("",!0),!n.importMode&&o.showUnmarkOverride(t)?(Ta(),La(a,{key:7,name:"undo3",title:"".concat(e.i18n.undo,": ").concat(e.i18n.overrideLocalClass),onClick:bc(function(e){return o.markSelectedToOverride(!1,t)},["stop"])},null,8,["title","onClick"])):Qa("",!0)],2)],10,jK)}),128))]}),_:1},8,["parent"])):(Ta(),Ma("div",HK,[Ha(s,{control:{content:e.i18n.nothingFound}},null,8,["control"])]))]),!n.importMode&&"trash"!==e.$_state.popupView&&e.$_userHasPermission("create_global_classes")?(Ta(),Ma("div",zK,[Xn(qa("input",{ref:"selectorInput","onUpdate:modelValue":t[10]||(t[10]=function(e){return r.selectorInput=e}),type:"text",autocomplete:"off",spellcheck:"false",placeholder:"".concat(e.i18n.classNameNewPlaceholder," ..."),onKeyup:t[11]||(t[11]=wc(function(t){return e.$_createGlobalClasses()},["enter"]))},null,40,UK),[[ac,r.selectorInput]]),qa("div",WK,[Ha(a,{class:te({disabled:0===r.selectorInput.length}),name:"save","data-balloon":"".concat(e.i18n.create," (").concat(e.i18n.class,")"),"data-balloon-pos":"top-right",onClick:t[12]||(t[12]=function(t){return e.$_createGlobalClasses()})},null,8,["class","data-balloon"])])])):Qa("",!0)],2)}]]),JK={class:"column edit"},XK={class:"toolbar"},ZK=["textContent"],eQ={class:"content"},tQ={class:"actions flex"},nQ=["textContent"],iQ=["textContent"],rQ=["textContent"],oQ=["textContent"],aQ={key:0,class:"rename"},sQ={key:0,class:"form-group"},lQ=["textContent"],cQ={key:1,class:"form-group"},uQ=["textContent"],dQ={key:2,class:"form-group"},pQ=["textContent"],hQ={key:3,class:"form-group"},fQ=["textContent"],mQ={key:4,class:"form-group"},gQ=["textContent"],vQ={class:"quick-actions"},yQ=["textContent","disabled"],bQ={class:"form-group"},kQ=["textContent"],wQ={class:"quick-actions"},_Q=["textContent","disabled"],CQ={key:2,class:"lock"},xQ={key:3,class:"duplicate"},SQ={class:"form-group"},EQ=["textContent"],AQ={class:"form-group"},DQ=["textContent"],TQ={class:"form-group"},IQ=["textContent"],OQ={class:"form-group"},PQ=["textContent"],FQ={class:"quick-actions"},$Q=["textContent","disabled"],MQ={class:"selected-classes"},LQ=["textContent"],NQ=["textContent"],jQ={key:4,class:"preview-classes"},BQ=["textContent"],RQ=["innerHTML"];function VQ(e){return VQ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},VQ(e)}function qQ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return HQ(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?HQ(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function HQ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function zQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function UQ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zQ(Object(n),!0).forEach(function(t){WQ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zQ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function WQ(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=VQ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=VQ(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==VQ(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var GQ={props:{importMode:{type:Boolean,default:!1},classes:{type:Array,default:function(){return[]}}},data:function(){return{action:"rename",selectedCategory:"",activeClass:"",renameFindString:"",renameReplaceString:"",renamePrefix:"",renameSuffix:"",duplicateFindString:"",duplicateReplaceString:"",duplicatePrefix:"",duplicateSuffix:""}},computed:{selectedClassPreview:function(){var e=this,t=[];return["rename","duplicate"].includes(this.action)?(this.selectedClassIds.forEach(function(n){var i;if(e.importMode){var r=e.classes.find(function(e){return e.id===n});i=null==r?void 0:r.name}else i=e.$_getGlobalClassName(n);i&&(e.activeClass.name&&(i=e.activeClass.name),"rename"===e.action?(e.renameFindString&&(i=i.replace(new RegExp(e.renameFindString,"g"),"<span>".concat(e.renameReplaceString,"</span>"))),e.renamePrefix&&(i="<span>".concat(e.renamePrefix,"</span>").concat(i)),e.renameSuffix&&(i="".concat(i,"<span>").concat(e.renameSuffix,"</span>"))):"duplicate"===e.action&&(e.duplicateFindString&&(i=i.replace(new RegExp(e.duplicateFindString,"g"),"<span>".concat(e.duplicateReplaceString,"</span>"))),e.duplicatePrefix&&(i="<span>".concat(e.duplicatePrefix,"</span>").concat(i)),e.duplicateSuffix&&(i="".concat(i,"<span>").concat(e.duplicateSuffix,"</span>"))),i&&t.push(i))}),t):t},selectedClassIds:function(){return this.$_state.popupSelectedItems},categoryControl:function(){var e={uncategorized:this.i18n.uncategorized};return this.$_state.globalClassesCategories.forEach(function(t){e[t.id]=t.name}),{options:e,placeholder:this.i18n.select}},canRename:function(){return this.activeClass?this.activeClass.name!==this.getOriginalClassName(this.activeClass.id)&&!!this.activeClass.name.trim():this.selectedClassIds.length>1&&!!(this.renameFindString||this.renamePrefix||this.renameSuffix)},canDuplicate:function(){return!(!(this.duplicateFindString||this.duplicatePrefix||this.duplicateSuffix)||!this.selectedClassIds.length)},hasConflict:function(){var e=this,t=!1;return this.selectedClassIds.forEach(function(n){var i=!!e.importMode&&e.classes.find(function(e){return e.id===n}),r=!!i&&e.$_importClassConflict(i);r&&(t=r)}),t},conflictMessage:function(){if(this.hasConflict){if(1===this.selectedClassIds.length){var e,t;if("id"===(null===(e=this.hasConflict)||void 0===e?void 0:e.by))return this.i18n.importClassConflictById;if("name"===(null===(t=this.hasConflict)||void 0===t?void 0:t.by))return this.i18n.importClassConflictByName}return this.i18n.importClassesConflict}},getOriginalClassName:function(){var e=this;return function(t){var n;return e.importMode?null===(n=e.classes.find(function(e){return e.id===t}))||void 0===n?void 0:n.name:e.$_getGlobalClassName(t)}},canUpdateCategory:function(){var e=this;return!(!this.selectedClassIds.length||!this.selectedCategory)&&!this.selectedClassIds.every(function(t){var n=e.importMode?e.classes.find(function(e){return e.id===t}):e.$_state.globalClasses.find(function(e){return e.id===t});return(null==n?void 0:n.category)===e.selectedCategory})}},methods:{setCategory:function(){var e=this;if(this.selectedCategory){var t=this.importMode?this.classes:this.$_state.globalClasses;this.selectedClassIds.forEach(function(n){var i=t.findIndex(function(e){return e.id===n});if(-1!==i){var r=UQ({},t[i]);"uncategorized"===e.selectedCategory?r.category="":r.category=e.selectedCategory,e.importMode?e.$emit("update-class",{index:i,classObj:r}):e.$_state.globalClasses[i]=r}}),this.$_showMessage(this.i18n.updated)}},lockClasses:function(){var e=this;this.importMode?this.selectedClassIds.forEach(function(t){var n=e.classes.findIndex(function(e){return e.id===t});if(-1!==n){var i=UQ(UQ({},e.classes[n]),{},{_locked:!0});e.$emit("update-class",{index:n,classObj:i})}}):this.selectedClassIds.forEach(function(t){e.$_state.globalClassesLocked.includes(t)||e.$_state.globalClassesLocked.push(t)}),this.$_showMessage(this.i18n.locked)},unlockClasses:function(){var e=this;this.importMode?this.selectedClassIds.forEach(function(t){var n=e.classes.findIndex(function(e){return e.id===t});if(-1!==n){var i=UQ(UQ({},e.classes[n]),{},{_locked:!1});e.$emit("update-class",{index:n,classObj:i})}}):this.selectedClassIds.forEach(function(t){var n=e.$_state.globalClassesLocked.indexOf(t);-1!==n&&e.$_state.globalClassesLocked.splice(n,1)}),this.$_showMessage(this.i18n.unlocked)},renameClasses:function(){var e=this;if(this.canRename)if(this.activeClass){var t=this.importMode?this.classes:this.$_state.globalClasses,n=t.findIndex(function(t){return t.id===e.activeClass.id});if(t.find(function(t){return t.name===e.activeClass.name}))return alert("".concat(this.i18n.error,": ").concat(this.i18n.classNameExists)),void(this.activeClass.name=t[n].name);if(this.importMode){var i;Object.entries(null===(i=this.activeClass)||void 0===i?void 0:i.settings).forEach(function(i){var r=qQ(i,2),o=r[0],a=r[1];o.startsWith("_cssCustom")&&(e.activeClass.settings[o]=e.$_replaceCustomCssRoot(".".concat(t[n].name),".".concat(e.activeClass.name),a))});var r=UQ(UQ({},this.activeClass),{},{_exists:this.$_importClassConflict(this.activeClass),_override:!1});this.$emit("update-class",{index:n,classObj:r})}else{var o,a;Object.entries(null===(o=this.activeClass)||void 0===o?void 0:o.settings).forEach(function(i){var r=qQ(i,2),o=r[0],a=r[1];o.startsWith("_cssCustom")&&(e.$_state.globalClasses[n].settings[o]=e.$_replaceCustomCssRoot(".".concat(t[n].name),".".concat(e.activeClass.name),a))}),this.$_state.globalClasses[n].name=this.activeClass.name,(null===(a=this.$_state.activeClass)||void 0===a?void 0:a.id)===this.activeClass.id&&(this.$_state.activeClass.name=this.activeClass.name)}this.$nextTick(function(){e.$_state.rerenderClassNames=Date.now()})}else if(this.renamePrefix||this.renameSuffix||this.renameFindString){var s=0,l=this.importMode?this.classes:this.$_state.globalClasses;this.selectedClassIds.forEach(function(t){var n=l.findIndex(function(e){return e.id===t}),i=e.$_clone(l[n]),r=i.name;e.renameFindString&&(r=r.replace(new RegExp(e.renameFindString,"g"),e.renameReplaceString));var o="".concat(e.renamePrefix).concat(r).concat(e.renameSuffix);if(o&&!l.some(function(e){return e.name===o})){var a;if(i.name=o,Object.entries(null===(a=i)||void 0===a?void 0:a.settings).forEach(function(t){var r=qQ(t,2),a=r[0],s=r[1];a.startsWith("_cssCustom")&&(i.settings[a]=e.$_replaceCustomCssRoot(".".concat(l[n].name),".".concat(o),s))}),e.importMode){var c=e.$_state.globalClasses.some(function(e){return e.name===o}),u=void 0!==e.$_state.globalClassIndexById[i.id];i=UQ(UQ({},i),{},{_exists:c||u,_override:!1}),e.$emit("update-class",{index:n,classObj:i})}else e.$_state.globalClasses[n]=i;s++}}),this.$_showMessage("".concat(this.i18n.classesRenamed," (").concat(s,")")),this.renameFindString="",this.renameReplaceString="",this.renamePrefix="",this.renameSuffix="",this.$nextTick(function(){e.$_state.rerenderClassNames=Date.now()})}},duplicateClasses:function(){var e=this;if(this.canDuplicate){var t=this.importMode?this.classes:this.$_state.globalClasses,n=0;this.selectedClassIds.forEach(function(i){var r=t.findIndex(function(e){return e.id===i});if(-1!==r){var o=e.$_clone(t[r]),a=o.name;e.duplicateFindString&&(a=a.replace(new RegExp(e.duplicateFindString,"g"),e.duplicateReplaceString));var s="".concat(e.duplicatePrefix).concat(a).concat(e.duplicateSuffix);if(s)if(null!=o&&o.settings&&"object"===VQ(o.settings)&&Object.entries(o.settings).forEach(function(t){var n=qQ(t,2),i=n[0],r=n[1];i.startsWith("_cssCustom")&&(o.settings[i]=e.$_replaceCustomCssRoot(".".concat(o.name),".".concat(s),r))}),e.importMode){var l=e.$_state.globalClasses.some(function(e){return e.name===s}),c=void 0!==e.$_state.globalClassIndexById[o.id],u=UQ(UQ({},o),{},{id:e.$_generateId(),name:s,_exists:l||c,_override:!1});e.$emit("add-class",{index:r+1,classObj:u}),n++}else if(!t.some(function(e){return e.name===s})){var d=UQ(UQ({},o),{},{id:e.$_generateId(),name:s});e.$_state.globalClasses.splice(r+1,0,d),n++}}}),this.$_showMessage("".concat(this.i18n.classesDuplicated," (").concat(n,")")),this.duplicateFindString="",this.duplicateReplaceString="",this.duplicatePrefix="",this.duplicateSuffix=""}}},watch:{"$_state.popupSelectedItems":{handler:function(e){if(1===e.length){var t=(this.importMode?this.classes:this.$_state.globalClasses).find(function(t){return t.id===e[0]});t?(this.activeClass=this.$_clone(t),t.category?this.selectedCategory=t.category:this.selectedCategory=""):(this.activeClass="",this.selectedCategory="")}else this.activeClass="",this.selectedCategory=""},immediate:!0,deep:!0}}};const KQ=(0,xx.A)(GQ,[["render",function(e,t,n,i,r,o){var a=$r("control-info"),s=$r("control-select"),l=$r("icon");return Ta(),Ma("div",JK,[qa("div",XK,[qa("h6",{textContent:he("".concat(e.i18n.edit," (").concat(e.$_state.popupSelectedItems.length,")"))},null,8,ZK)]),n.importMode&&o.conflictMessage?(Ta(),La(a,{key:0,class:"error",control:{content:o.conflictMessage}},null,8,["control"])):Qa("",!0),qa("div",eQ,[qa("div",tQ,[qa("button",{class:te({active:"rename"===r.action}),onClick:t[0]||(t[0]=function(e){return r.action="rename"}),textContent:he(e.i18n.rename)},null,10,nQ),e.$_state.globalClassesCategories.length?(Ta(),Ma("button",{key:0,class:te({active:"categorize"===r.action}),onClick:t[1]||(t[1]=function(e){return r.action="categorize"}),textContent:he(e.i18n.categorize)},null,10,iQ)):Qa("",!0),qa("button",{class:te({active:"lock"===r.action}),onClick:t[2]||(t[2]=function(e){return r.action="lock"}),textContent:he(e.i18n.lock)},null,10,rQ),qa("button",{class:te({active:"duplicate"===r.action}),onClick:t[3]||(t[3]=function(e){return r.action="duplicate"}),textContent:he(e.i18n.duplicate)},null,10,oQ)]),"rename"===r.action?(Ta(),Ma("div",aQ,[qa("form",{onSubmit:t[10]||(t[10]=bc(function(){},["prevent"]))},[1===e.$_state.popupSelectedItems.length?(Ta(),Ma("div",sQ,[qa("label",{textContent:he(e.i18n.name)},null,8,lQ),Xn(qa("input",{"onUpdate:modelValue":t[4]||(t[4]=function(e){return r.activeClass.name=e}),type:"text",spellcheck:"false",autocomplete:"off"},null,512),[[ac,r.activeClass.name]])])):Qa("",!0),e.$_state.popupSelectedItems.length>1?(Ta(),Ma("div",cQ,[qa("label",{textContent:he(e.i18n.find)},null,8,uQ),Xn(qa("input",{"onUpdate:modelValue":t[5]||(t[5]=function(e){return r.renameFindString=e}),type:"text",spellcheck:"false",autocomplete:"off"},null,512),[[ac,r.renameFindString]])])):Qa("",!0),e.$_state.popupSelectedItems.length>1?(Ta(),Ma("div",dQ,[qa("label",{textContent:he(e.i18n.replaceWith)},null,8,pQ),Xn(qa("input",{"onUpdate:modelValue":t[6]||(t[6]=function(e){return r.renameReplaceString=e}),type:"text",spellcheck:"false",autocomplete:"off"},null,512),[[ac,r.renameReplaceString]])])):Qa("",!0),e.$_state.popupSelectedItems.length>1?(Ta(),Ma("div",hQ,[qa("label",{textContent:he(e.i18n.addPrefix)},null,8,fQ),Xn(qa("input",{"onUpdate:modelValue":t[7]||(t[7]=function(e){return r.renamePrefix=e}),type:"text",spellcheck:"false",autocomplete:"off"},null,512),[[ac,r.renamePrefix]])])):Qa("",!0),e.$_state.popupSelectedItems.length>1?(Ta(),Ma("div",mQ,[qa("label",{textContent:he(e.i18n.addSuffix)},null,8,gQ),Xn(qa("input",{"onUpdate:modelValue":t[8]||(t[8]=function(e){return r.renameSuffix=e}),type:"text",spellcheck:"false",autocomplete:"off"},null,512),[[ac,r.renameSuffix]])])):Qa("",!0),qa("div",vQ,[qa("button",{class:"save",onClick:t[9]||(t[9]=function(){return o.renameClasses&&o.renameClasses.apply(o,arguments)}),textContent:he(e.i18n.rename),disabled:!o.canRename},null,8,yQ)])],32)])):"categorize"===r.action?(Ta(),Ma("form",{key:1,onSubmit:t[13]||(t[13]=bc(function(){},["prevent"])),class:"categorize"},[qa("div",bQ,[qa("label",{textContent:he(e.i18n.category)},null,8,kQ),Ha(s,{value:r.selectedCategory,"onUpdate:value":t[11]||(t[11]=function(e){return r.selectedCategory=e}),control:o.categoryControl},null,8,["value","control"])]),qa("div",wQ,[qa("button",{class:"save",onClick:t[12]||(t[12]=function(){return o.setCategory&&o.setCategory.apply(o,arguments)}),textContent:he(e.i18n.update),disabled:!o.canUpdateCategory},null,8,_Q)])],32)):"lock"===r.action?(Ta(),Ma("div",CQ,[qa("form",{onSubmit:t[16]||(t[16]=bc(function(){},["prevent"])),class:"quick-actions"},[qa("button",{onClick:t[14]||(t[14]=function(){return o.lockClasses&&o.lockClasses.apply(o,arguments)})},[Ha(l,{class:"lock",name:"locked"}),Ga(" "+he(e.i18n.lock),1)]),qa("button",{onClick:t[15]||(t[15]=function(){return o.unlockClasses&&o.unlockClasses.apply(o,arguments)})},[Ha(l,{class:"unlock",name:"unlocked"}),Ga(" "+he(e.i18n.unlock),1)])],32)])):"duplicate"===r.action?(Ta(),Ma("div",xQ,[qa("form",{onSubmit:t[22]||(t[22]=bc(function(){},["prevent"]))},[qa("div",SQ,[qa("label",{textContent:he(e.i18n.find)},null,8,EQ),Xn(qa("input",{"onUpdate:modelValue":t[17]||(t[17]=function(e){return r.duplicateFindString=e}),type:"text",spellcheck:"false",autocomplete:"off"},null,512),[[ac,r.duplicateFindString]])]),qa("div",AQ,[qa("label",{textContent:he(e.i18n.replaceWith)},null,8,DQ),Xn(qa("input",{"onUpdate:modelValue":t[18]||(t[18]=function(e){return r.duplicateReplaceString=e}),type:"text",spellcheck:"false",autocomplete:"off"},null,512),[[ac,r.duplicateReplaceString]])]),qa("div",TQ,[qa("label",{textContent:he(e.i18n.addPrefix)},null,8,IQ),Xn(qa("input",{"onUpdate:modelValue":t[19]||(t[19]=function(e){return r.duplicatePrefix=e}),type:"text",spellcheck:"false",autocomplete:"off"},null,512),[[ac,r.duplicatePrefix]])]),qa("div",OQ,[qa("label",{textContent:he(e.i18n.addSuffix)},null,8,PQ),Xn(qa("input",{"onUpdate:modelValue":t[20]||(t[20]=function(e){return r.duplicateSuffix=e}),type:"text",spellcheck:"false",autocomplete:"off"},null,512),[[ac,r.duplicateSuffix]])]),qa("div",FQ,[qa("button",{class:"save",onClick:t[21]||(t[21]=function(){return o.duplicateClasses&&o.duplicateClasses.apply(o,arguments)}),textContent:he(e.i18n.duplicate),disabled:!o.canDuplicate},null,8,$Q)])],32)])):Qa("",!0),qa("div",MQ,[qa("h6",{textContent:he("".concat(e.i18n.selectedClasses," (").concat(o.selectedClassIds.length,")"))},null,8,LQ),qa("ul",null,[(Ta(!0),Ma(Ca,null,Rr(o.selectedClassIds,function(t,i){var r;return Ta(),Ma("li",{key:t},[qa("span",{textContent:he(".".concat(n.importMode?null===(r=n.classes.find(function(e){return e.id===t}))||void 0===r?void 0:r.name:e.$_getGlobalClassName(t)))},null,8,NQ),Ha(l,{name:"close-box",onClick:function(t){return e.$_state.popupSelectedItems.splice(i,1)}},null,8,["onClick"])])}),128))])]),o.selectedClassPreview.length?(Ta(),Ma("div",jQ,[qa("h6",{textContent:he("".concat(e.i18n.preview,":"))},null,8,BQ),qa("ul",null,[(Ta(!0),Ma(Ca,null,Rr(o.selectedClassPreview,function(e,t){return Ta(),Ma("li",{key:t,innerHTML:e},null,8,RQ)}),128))])])):Qa("",!0)])])}]]);function QQ(e){return QQ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},QQ(e)}function YQ(e){return function(e){if(Array.isArray(e))return JQ(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return JQ(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?JQ(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function JQ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function XQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function ZQ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XQ(Object(n),!0).forEach(function(t){eY(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XQ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eY(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=QQ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=QQ(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==QQ(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tY={emits:["importMode"],components:{PopupManagerCategories:vj,PopupClassesItems:YK,PopupClassesEditor:KQ},data:function(){return{importResults:[],importMode:!1,importedClasses:[],importCallback:null,cancelCallback:null}},computed:{popupView:function(){return this.$_state.popupView},classes:function(){return this.importMode?this.importedClasses:this.$_state.popupFilteredItems}},methods:{acceptAllClasses:function(){var e=this.importedClasses.map(function(e){return e.id});this.acceptClasses(e)},rejectAllClasses:function(){var e=this.importedClasses.map(function(e){return e.id});this.rejectClasses(e)},acceptClasses:function(e){var t,n=this;if(Array.isArray(e)&&e.length){var i=0,r={},o=(null===(t=window.bricksData)||void 0===t?void 0:t.builderGlobalClassesImport)||"conflicts",a=this.importedClasses.filter(function(t){return e.includes(t.id)});a.forEach(function(e){var t=n.$_state.globalClasses.findIndex(function(t){return t.id===e.id}),a=-1!==t?-1:n.$_state.globalClasses.findIndex(function(t){return t.name===e.name}),s=ZQ({},e);if(delete s._exists,delete s._override,delete s._mappedId,s.modified=Math.round(Date.now()/1e3),s.user_id=n.bricks.loadData.currentUserId,i++,-1!==t||-1!==a){var l=-1!==t?t:a,c=n.$_state.globalClasses[l];e._override&&!["new","never"].includes(o)||(r[e.id]=c.id),-1!==a&&s.id!==c.id&&(s.id=c.id),n.$_state.globalClasses[l]=s}else n.$_state.globalClasses.push(s)}),this.$_state.importClassIdMappings=ZQ(ZQ({},this.$_state.importClassIdMappings||{}),r),this.importedClasses=this.importedClasses.filter(function(t){return!e.includes(t.id)}),0===this.importedClasses.length&&(this.importMode=!1,this.$_state.popupSelectedItems=[],this.importCallback&&(this.importCallback(a),this.importCallback=null)),this.$_showMessage("".concat(this.i18n.imported,": ").concat(this.i18n.classes," (").concat(i,")")),this.$_state.rerenderClassNames=Date.now()}},rejectClasses:function(e){Array.isArray(e)&&e.length&&(this.importedClasses=this.importedClasses.filter(function(t){return!e.includes(t.id)}),0===this.importedClasses.length&&(this.importMode=!1,this.$_state.popupSelectedItems=[],this.cancelCallback&&(this.cancelCallback(),this.cancelCallback=null)),this.$_showMessage("".concat(this.i18n.class,": ").concat(this.i18n.discarded," (").concat(e.length,")")))},classesImported:function(e){if(Array.isArray(e)&&e.length){var t=e.flat(),n=this.$_state.globalClasses.length,i=this.$_processClassesForImport(t),r=this.$_state.globalClasses.length>n;if(!i.length){if(r){var o=this.$_state.globalClasses.length-n;this.$_showMessage("".concat(this.i18n.imported,": ").concat(this.i18n.classes," (").concat(o,")"))}else this.$_showMessage(this.i18n.noClassesToImport);return this.importMode=!1,this.importedClasses=[],void(this.$_state.popupView=null)}this.importMode=!0,this.importedClasses=i,this.$_state.popupView=null}},handleClassUpdate:function(e){var t=e.index,n=e.classObj;if(this.importMode){var i=this.$_clone(this.importedClasses);i[t]=n,this.importedClasses=i}},handleAddClass:function(e){var t=e.index,n=e.classObj;if(this.importMode){var i=YQ(this.importedClasses);i.splice(t,0,n),this.importedClasses=i}},removeClassesFromImport:function(e){this.importedClasses=this.importedClasses.filter(function(t){return!e.includes(t.id)})},updateClasses:function(e){this.importMode&&(this.importedClasses=e)},exportClasses:function(){var e=this.$_addCategoryMetadataToClasses(this.$_state.globalClasses);this.$_exportAsJsonFile(e,"bricks-css-classes")}},watch:{importMode:{handler:function(e,t){e||!0!==t||this.$_cleanupCategoryImportFlags(),this.$emit("importMode",e)},immediate:!0},"$_state.classesImportData":{handler:function(e){e&&(this.importMode=!0,this.importedClasses=e.classes,this.importCallback=e.onImport,this.cancelCallback=e.onCancel,this.$_state.classesImportData=null)},immediate:!0,deep:!0}}};var nY=(0,xx.A)(tY,[["render",function(e,t,n,i,r,o){var a=$r("popup-manager-categories"),s=$r("popup-classes-items"),l=$r("popup-classes-editor"),c=$r("control-file-import");return Ta(),Ma(Ca,null,["import"!==e.$_state.popupView?(Ta(),Ma("div",{key:0,class:te(["columns",{"import-mode":r.importMode}])},[r.importMode||"trash"===o.popupView?Qa("",!0):(Ta(),La(a,{key:0,items:e.$_state.globalClasses},null,8,["items"])),Ha(s,{"import-mode":r.importMode,classes:o.classes,onAcceptClasses:o.acceptClasses,onRejectClasses:o.rejectClasses,onRemoveClasses:o.removeClassesFromImport,onUpdateClasses:o.updateClasses},null,8,["import-mode","classes","onAcceptClasses","onRejectClasses","onRemoveClasses","onUpdateClasses"]),!r.importMode&&"trash"!==e.$_state.popupView&&e.$_state.popupSelectedItems.length?(Ta(),La(l,{key:1,"import-mode":r.importMode,classes:o.classes,onUpdateClass:o.handleClassUpdate,onAddClass:o.handleAddClass},null,8,["import-mode","classes","onUpdateClass","onAddClass"])):Qa("",!0)],2)):Qa("",!0),"import"===o.popupView?(Ta(),Ma("div",wK,[qa("div",{class:"title",textContent:he("".concat(e.i18n.import,": ").concat(e.i18n.classes))},null,8,_K),Ha(c,{control:{fileType:"application/json",dragAndDropNote:e.i18n.dropFilesJSON},results:r.importResults,onImported:o.classesImported,onCloseMe:t[0]||(t[0]=function(e){return o.popupView=null})},null,8,["control","results","onImported"])])):Qa("",!0)],64)}]]),iY={key:0,class:"import action-wrapper"},rY=["textContent"],oY={class:"import-textarea"},aY=["textContent"],sY=["textContent"],lY={key:1,class:"columns"};var cY={class:"column items"},uY={class:"toolbar"},dY=["textContent"],pY={class:"actions flex"},hY=["data-balloon"],fY=["data-balloon"],mY=["data-balloon"],gY={key:0,class:"content"},vY=["data-id","data-index"],yY={class:"variable-item"},bY={class:"variable-name"},kY=["readonly","value","onBlur"],wY={class:"variable-value"},_Y=["readonly","value","onBlur"],CY={class:"new-variable variable-item"},xY={class:"variable-name"},SY=["placeholder"],EY={class:"variable-value"},AY=["placeholder"],DY={class:"actions"};var TY={props:{variables:{type:Array,default:function(){return[]}}},setup:function(){return{popupSelectedItems:ln(Xh,"popupSelectedItems")}},data:function(){return{newVariableName:"",newVariableValue:""}},methods:{focusNewVariableNameInput:function(){var e=this;this.$nextTick(function(){e.$refs.newVariableNameInput&&e.$refs.newVariableNameInput.focus()})},updateVariable:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.$_state.globalVariables.find(function(t){return t.id===e});if(i){var r=!1;if(n){var o=i.name;i.name=t,o===t||this.$_state.globalVariablesRenamed.includes(e)||(this.$_state.globalVariablesOriginalNames[e]=o,this.$_state.globalVariablesRenamed.push(e),r=!0)}else t!==i.value&&(i.value=t,r=!0);r&&this.$_showMessage("".concat(this.i18n.variable,": ").concat(this.i18n.updated))}},selectAll:function(){this.popupSelectedItems.length?this.popupSelectedItems=[]:this.popupSelectedItems=this.variables.map(function(e){return e.id})},exportSelectedVariables:function(){var e=this,t=this.$_state.globalVariables.filter(function(t){return e.popupSelectedItems.includes(t.id)}),n=[];t.forEach(function(e){e.category&&!n.includes(e.category)&&n.push(e.category)});var i={variables:t,categories:this.$_state.globalVariablesCategories.filter(function(e){return n.includes(e.id)})};this.$_exportAsJsonFile(i,"bricks-selected-global-variables")},deleteSelectedVariables:function(){var e=this;this.$_state.globalVariables=this.$_state.globalVariables.filter(function(t){return!e.popupSelectedItems.includes(t.id)});var t=this.popupSelectedItems.length;this.$_showMessage("".concat(this.i18n.deleted,": ").concat(this.i18n.variables," (").concat(t,")")),this.popupSelectedItems=[]},createVariable:function(){var e=this;if(this.newVariableName){this.newVariableName.startsWith("var(")&&(this.newVariableName=this.newVariableName.substring(4,this.newVariableName.length-1)),this.newVariableName.startsWith("--")&&(this.newVariableName=this.newVariableName.substring(2));var t=this.newVariableName.trim().replace(/^var\(--/,"").replace(/\)$/,"");if(t)if(this.$_state.globalVariables.find(function(e){return e.name===t}))this.$_showError("".concat(this.i18n.variableNewAlreadyExists," [").concat(this.i18n.variableManager,"]"));else{var n=this.$_state.colorPalette.some(function(e){return Array.isArray(e.colors)&&e.colors.some(function(e){return e.raw==="var(--".concat(t,")")})});if(n)this.$_showError(" ".concat(this.i18n.variableNameExists," [").concat(this.i18n.colorPalette,"]"));else{var i={id:this.$_generateId(),name:t,value:this.newVariableValue.trim()};if(1===this.$_state.popupFilters.categories.length){var r=this.$_state.popupFilters.categories[0];r&&"uncategorized"!==r&&(i.category=r)}var o=this.popupSelectedItems[this.popupSelectedItems.length-1],a=this.$_state.globalVariables.findIndex(function(e){return e.id===o});-1!==a?this.$_state.globalVariables.splice(a+1,0,i):this.$_state.globalVariables.push(i),setTimeout(function(){var t=e.$el.querySelector('[data-id="'.concat(i.id,'"]'));t&&t.scrollIntoView({behavior:"smooth",block:"nearest"})},0),this.newVariableName="",this.newVariableValue="",this.focusNewVariableNameInput(),this.$_showMessage("".concat(this.bricks.i18n.variable,": ").concat(this.bricks.i18n.created))}}else this.$_showError(this.i18n.variableNewNoName)}else this.$_showError(this.i18n.variableNewNoName)},isColor:function(e){return this.$_isGlobalVariableTypeColor(e)}}};var IY=(0,xx.A)(TY,[["render",function(e,t,n,i,r,o){var a=$r("icon"),s=$r("sortable");return Ta(),Ma("div",cY,[qa("div",uY,[qa("h6",{textContent:he("".concat(e.i18n.variables," (").concat(n.variables.length,")"))},null,8,dY),qa("ul",pY,[Xn(qa("li",{"data-balloon":"".concat(e.i18n.export,": ").concat(e.i18n.selected," (").concat(i.popupSelectedItems.length,")"),"data-balloon-pos":"bottom-right",onClick:t[0]||(t[0]=function(e){return o.exportSelectedVariables()})},[Ha(a,{name:"export"})],8,hY),[[pl,i.popupSelectedItems.length]]),Xn(qa("li",{"data-balloon":"".concat(e.i18n.delete," (").concat(i.popupSelectedItems.length,")"),"data-balloon-pos":"bottom-right",onClick:t[1]||(t[1]=function(t){return"variables"===e.$_state.deleteItem?o.deleteSelectedVariables():e.$_deleteConfirmation("variables")})},[Ha(a,{name:"variables"===e.$_state.deleteItem?"check":"trash"},null,8,["name"])],8,fY),[[pl,i.popupSelectedItems.length]]),Xn(qa("li",{"data-balloon":i.popupSelectedItems.length?"".concat(e.i18n.clear,": ").concat(e.i18n.selected," (").concat(i.popupSelectedItems.length,")"):"".concat(e.i18n.select,": ").concat(e.i18n.all),"data-balloon-pos":"bottom-right",onClick:t[2]||(t[2]=function(e){return o.selectAll()})},[Ha(a,{name:i.popupSelectedItems.length?"square-fill":"square"},null,8,["name"])],8,mY),[[pl,e.$_state.popupFilteredItems.length]])])]),n.variables.length?(Ta(),Ma("div",gY,[Ha(s,{tag:"ul",parent:e.$_state.globalVariables,options:{direction:"vertical",itemClass:"sortable",handleClass:"move"}},{default:Jn(function(){return[(Ta(!0),Ma(Ca,null,Rr(n.variables,function(e,n){return Ta(),Ma("li",{ref_for:!0,ref:"variableItem",key:e.id,class:te([{selected:i.popupSelectedItems.includes(e.id),sortable:!0}]),"data-id":e.id,"data-index":n},[qa("div",yY,[qa("div",bY,[t[8]||(t[8]=qa("span",{class:"variable-prefix"},"--",-1)),qa("input",{type:"text",class:"move name",dir:"ltr",autocomplete:"off",spellcheck:"false",readonly:i.popupSelectedItems[0]!==e.id,value:e.name,onBlur:function(t){return o.updateVariable(e.id,t.target.value,!0)}},null,40,kY)]),qa("div",wY,[Ha(a,{name:"equal",class:"value-icon"}),o.isColor(e)?(Ta(),Ma("div",{key:0,class:"color-indicator",style:Y({backgroundColor:e.value})},null,4)):Qa("",!0),qa("input",{type:"text",class:"move name",dir:"ltr",autocomplete:"off",spellcheck:"false",readonly:i.popupSelectedItems[0]!==e.id,value:e.value,onBlur:function(t){return o.updateVariable(e.id,t.target.value,!1)}},null,40,_Y)])])],10,vY)}),128))]}),_:1},8,["parent"])])):Qa("",!0),qa("div",CY,[qa("div",xY,[t[9]||(t[9]=qa("span",{class:"variable-prefix"},"--",-1)),Xn(qa("input",{ref:"newVariableNameInput","onUpdate:modelValue":t[3]||(t[3]=function(e){return r.newVariableName=e}),type:"text",placeholder:e.i18n.variableNamePlaceholder,onKeyup:t[4]||(t[4]=wc(function(e){return o.createVariable()},["enter"]))},null,40,SY),[[ac,r.newVariableName]])]),qa("div",EY,[Ha(a,{name:"equal",class:"value-icon"}),Xn(qa("input",{"onUpdate:modelValue":t[5]||(t[5]=function(e){return r.newVariableValue=e}),type:"text",spellcheck:"false",placeholder:e.i18n.value,onKeyup:t[6]||(t[6]=wc(function(e){return o.createVariable()},["enter"]))},null,40,AY),[[ac,r.newVariableValue]])]),qa("div",DY,[Ha(a,{name:"save",class:te({disabled:!r.newVariableName}),"data-balloon":"".concat(e.i18n.create," (").concat(e.i18n.variable,")"),"data-balloon-pos":"top-right",onClick:t[7]||(t[7]=function(e){return o.createVariable()})},null,8,["class","data-balloon"])])])])}]]),OY={class:"column edit"},PY={class:"toolbar"},FY=["textContent"],$Y={class:"content"},MY={class:"actions flex"},LY=["textContent"],NY=["textContent"],jY=["textContent"],BY={key:0,class:"rename"},RY={key:0,class:"form-group"},VY=["textContent"],qY={key:1,class:"form-group"},HY=["textContent"],zY={key:2,class:"form-group"},UY=["textContent"],WY={key:3,class:"form-group"},GY=["textContent"],KY={key:4,class:"form-group"},QY=["textContent"],YY={class:"quick-actions"},JY=["textContent","disabled"],XY={class:"form-group"},ZY=["textContent"],eJ={class:"quick-actions"},tJ=["textContent"],nJ={key:2,class:"duplicate"},iJ={class:"form-group"},rJ=["textContent"],oJ={class:"form-group"},aJ=["textContent"],sJ={class:"form-group"},lJ=["textContent"],cJ={class:"form-group"},uJ=["textContent"],dJ={class:"quick-actions"},pJ=["textContent","disabled"],hJ={class:"selected-variables"},fJ=["textContent"],mJ=["textContent"],gJ={key:3,class:"preview-variables"},vJ=["textContent"],yJ=["innerHTML"];function bJ(e){return bJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bJ(e)}function kJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function wJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kJ(Object(n),!0).forEach(function(t){_J(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kJ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _J(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=bJ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=bJ(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==bJ(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var CJ={props:["variables"],data:function(){return{action:"rename",selectedCategory:"",activeVariable:"",renameFindString:"",renameReplaceString:"",renamePrefix:"",renameSuffix:"",duplicateFindString:"",duplicateReplaceString:"",duplicatePrefix:"",duplicateSuffix:""}},computed:{selectedVariablePreview:function(){var e=this,t=[];return["rename","duplicate"].includes(this.action)?(this.selectedVariableIds.forEach(function(n){var i=e.$_state.globalVariables.find(function(e){return e.id===n}),r=null==i?void 0:i.name;r&&(e.activeVariable.name&&(r=e.activeVariable.name),"rename"===e.action?(e.renameFindString&&(r=r.replace(new RegExp(e.renameFindString,"g"),"<span>".concat(e.renameReplaceString,"</span>"))),e.renamePrefix&&(r="<span>".concat(e.renamePrefix,"</span>").concat(r)),e.renameSuffix&&(r="".concat(r,"<span>").concat(e.renameSuffix,"</span>"))):"duplicate"===e.action&&(e.duplicateFindString&&(r=r.replace(new RegExp(e.duplicateFindString,"g"),"<span>".concat(e.duplicateReplaceString,"</span>"))),e.duplicatePrefix&&(r="<span>".concat(e.duplicatePrefix,"</span>").concat(r)),e.duplicateSuffix&&(r="".concat(r,"<span>").concat(e.duplicateSuffix,"</span>"))),r&&t.push(r))}),t):t},selectedVariableIds:function(){return this.$_state.popupSelectedItems},categoryControl:function(){var e={uncategorized:this.i18n.uncategorized};return this.$_state.globalVariablesCategories.forEach(function(t){e[t.id]=t.name}),{options:e,placeholder:this.i18n.select}},canRename:function(){var e;return!(null===(e=this.activeVariable)||void 0===e||!e.name)||!!((this.renameFindString||this.renamePrefix||this.renameSuffix)&&this.selectedVariableIds.length>1)},canDuplicate:function(){return!(!(this.duplicateFindString||this.duplicatePrefix||this.duplicateSuffix)||!this.selectedVariableIds.length)}},methods:{setCategory:function(){var e=this;this.selectedCategory&&(this.$_state.globalVariables.forEach(function(t,n){e.selectedVariableIds.includes(t.id)&&("uncategorized"===e.selectedCategory?t.category="":t.category=e.selectedCategory,e.$_state.globalVariables[n]=t)}),this.$_showMessage(this.i18n.updated))},renameVariables:function(){var e=this;if(this.canRename)if(this.activeVariable){var t=this.$_state.globalVariables.findIndex(function(t){return t.id===e.activeVariable.id});if(this.$_state.globalVariables.find(function(t){return t.name===e.activeVariable.name}))alert("".concat(this.i18n.error,": ").concat(this.i18n.variableNameExists)),this.activeVariable.name=this.$_state.globalVariables[t].name;else{var n=this.$_state.globalVariables[t].name,i=this.activeVariable.name;this.$_state.globalVariables[t].name=i,n===i||this.$_state.globalVariablesRenamed.includes(this.activeVariable.id)||(this.$_state.globalVariablesOriginalNames[this.activeVariable.id]=n,this.$_state.globalVariablesRenamed.push(this.activeVariable.id))}}else if(this.renamePrefix||this.renameSuffix||this.renameFindString){var r=0;this.selectedVariableIds.forEach(function(t){var n=e.$_state.globalVariables.findIndex(function(e){return e.id===t}),i=e.$_clone(e.$_state.globalVariables[n]),o=i.name,a=o;e.renameFindString&&(o=o.replace(new RegExp(e.renameFindString,"g"),e.renameReplaceString));var s="".concat(e.renamePrefix).concat(o).concat(e.renameSuffix);s&&(e.$_state.globalVariables.some(function(e){return e.name===s})||(i.name=s,e.$_state.globalVariables[n]=i,a===s||e.$_state.globalVariablesRenamed.includes(t)||(e.$_state.globalVariablesOriginalNames[t]=a,e.$_state.globalVariablesRenamed.push(t)),r++))}),this.$_showMessage("".concat(this.i18n.variablesRenamed," (").concat(r,")")),this.renameFindString="",this.renameReplaceString="",this.renamePrefix="",this.renameSuffix=""}},duplicateVariables:function(){var e=this;if(this.canDuplicate){var t=[],n=0;this.selectedVariableIds.forEach(function(i){var r=e.$_state.globalVariables.findIndex(function(e){return e.id===i}),o=e.$_clone(e.$_state.globalVariables[r]),a=o.name;e.duplicateFindString&&(a=a.replace(new RegExp(e.duplicateFindString,"g"),e.duplicateReplaceString));var s="".concat(e.duplicatePrefix).concat(a).concat(e.duplicateSuffix);if(s&&!e.$_state.globalVariables.some(function(e){return e.name===s})){var l=wJ(wJ({},o),{},{id:e.$_generateId(),name:s});t.push(l),e.$_state.globalVariables.splice(r+1,0,l),n++}}),this.$_showMessage("".concat(this.i18n.variablesDuplicated," (").concat(n,")")),this.duplicateFindString="",this.duplicateReplaceString="",this.duplicatePrefix="",this.duplicateSuffix=""}}},watch:{"$_state.popupSelectedItems":{handler:function(e){if(1===e.length){var t=this.$_state.globalVariables.find(function(t){return t.id===e[0]});this.activeVariable=this.$_clone(t),t.category?this.selectedCategory=t.category:this.selectedCategory=""}else this.activeVariable="",this.selectedCategory=""},immediate:!0,deep:!0}}};const xJ=(0,xx.A)(CJ,[["render",function(e,t,n,i,r,o){var a=$r("control-select"),s=$r("icon");return Ta(),Ma("div",OY,[qa("div",PY,[qa("h6",{textContent:he("".concat(e.i18n.edit," (").concat(n.variables.length,")"))},null,8,FY)]),qa("div",$Y,[qa("div",MY,[qa("button",{class:te({active:"rename"===r.action}),onClick:t[0]||(t[0]=function(e){return r.action="rename"}),textContent:he(e.i18n.rename)},null,10,LY),e.$_state.globalVariablesCategories.length?(Ta(),Ma("button",{key:0,class:te({active:"categorize"===r.action}),onClick:t[1]||(t[1]=function(e){return r.action="categorize"}),textContent:he(e.i18n.categorize)},null,10,NY)):Qa("",!0),qa("button",{class:te({active:"duplicate"===r.action}),onClick:t[2]||(t[2]=function(e){return r.action="duplicate"}),textContent:he(e.i18n.duplicate)},null,10,jY)]),"rename"===r.action?(Ta(),Ma("div",BY,[qa("form",{onSubmit:t[9]||(t[9]=bc(function(){},["prevent"]))},[1===n.variables.length?(Ta(),Ma("div",RY,[qa("label",{textContent:he(e.i18n.name)},null,8,VY),Xn(qa("input",{"onUpdate:modelValue":t[3]||(t[3]=function(e){return r.activeVariable.name=e}),type:"text",spellcheck:"false",autocomplete:"off"},null,512),[[ac,r.activeVariable.name]])])):Qa("",!0),n.variables.length>1?(Ta(),Ma("div",qY,[qa("label",{textContent:he(e.i18n.find)},null,8,HY),Xn(qa("input",{"onUpdate:modelValue":t[4]||(t[4]=function(e){return r.renameFindString=e}),type:"text",spellcheck:"false",autocomplete:"off"},null,512),[[ac,r.renameFindString]])])):Qa("",!0),n.variables.length>1?(Ta(),Ma("div",zY,[qa("label",{textContent:he(e.i18n.replaceWith)},null,8,UY),Xn(qa("input",{"onUpdate:modelValue":t[5]||(t[5]=function(e){return r.renameReplaceString=e}),type:"text",spellcheck:"false",autocomplete:"off"},null,512),[[ac,r.renameReplaceString]])])):Qa("",!0),n.variables.length>1?(Ta(),Ma("div",WY,[qa("label",{textContent:he(e.i18n.addPrefix)},null,8,GY),Xn(qa("input",{"onUpdate:modelValue":t[6]||(t[6]=function(e){return r.renamePrefix=e}),type:"text",spellcheck:"false",autocomplete:"off"},null,512),[[ac,r.renamePrefix]])])):Qa("",!0),n.variables.length>1?(Ta(),Ma("div",KY,[qa("label",{textContent:he(e.i18n.addSuffix)},null,8,QY),Xn(qa("input",{"onUpdate:modelValue":t[7]||(t[7]=function(e){return r.renameSuffix=e}),type:"text",spellcheck:"false",autocomplete:"off"},null,512),[[ac,r.renameSuffix]])])):Qa("",!0),qa("div",YY,[qa("button",{class:"save",onClick:t[8]||(t[8]=function(){return o.renameVariables&&o.renameVariables.apply(o,arguments)}),textContent:he(e.i18n.rename),disabled:!o.canRename},null,8,JY)])],32)])):"categorize"===r.action?(Ta(),Ma("form",{key:1,onSubmit:t[12]||(t[12]=bc(function(){},["prevent"])),class:"categorize"},[qa("div",XY,[qa("label",{textContent:he(e.i18n.category)},null,8,ZY),Ha(a,{value:r.selectedCategory,"onUpdate:value":t[10]||(t[10]=function(e){return r.selectedCategory=e}),control:o.categoryControl},null,8,["value","control"])]),qa("div",eJ,[qa("button",{class:"save",onClick:t[11]||(t[11]=function(){return o.setCategory&&o.setCategory.apply(o,arguments)}),textContent:he(e.i18n.update)},null,8,tJ)])],32)):"duplicate"===r.action?(Ta(),Ma("div",nJ,[qa("form",{onSubmit:t[18]||(t[18]=bc(function(){},["prevent"]))},[qa("div",iJ,[qa("label",{textContent:he(e.i18n.find)},null,8,rJ),Xn(qa("input",{"onUpdate:modelValue":t[13]||(t[13]=function(e){return r.duplicateFindString=e}),type:"text",spellcheck:"false",autocomplete:"off"},null,512),[[ac,r.duplicateFindString]])]),qa("div",oJ,[qa("label",{textContent:he(e.i18n.replaceWith)},null,8,aJ),Xn(qa("input",{"onUpdate:modelValue":t[14]||(t[14]=function(e){return r.duplicateReplaceString=e}),type:"text",spellcheck:"false",autocomplete:"off"},null,512),[[ac,r.duplicateReplaceString]])]),qa("div",sJ,[qa("label",{textContent:he(e.i18n.addPrefix)},null,8,lJ),Xn(qa("input",{"onUpdate:modelValue":t[15]||(t[15]=function(e){return r.duplicatePrefix=e}),type:"text",spellcheck:"false",autocomplete:"off"},null,512),[[ac,r.duplicatePrefix]])]),qa("div",cJ,[qa("label",{textContent:he(e.i18n.addSuffix)},null,8,uJ),Xn(qa("input",{"onUpdate:modelValue":t[16]||(t[16]=function(e){return r.duplicateSuffix=e}),type:"text",spellcheck:"false",autocomplete:"off"},null,512),[[ac,r.duplicateSuffix]])]),qa("div",dJ,[qa("button",{class:"save",onClick:t[17]||(t[17]=function(){return o.duplicateVariables&&o.duplicateVariables.apply(o,arguments)}),textContent:he(e.i18n.duplicate),disabled:!o.canDuplicate},null,8,pJ)])],32)])):Qa("",!0),qa("div",hJ,[qa("h6",{textContent:he("".concat(e.i18n.selectedVariables," (").concat(o.selectedVariableIds.length,")"))},null,8,fJ),qa("ul",null,[(Ta(!0),Ma(Ca,null,Rr(o.selectedVariableIds,function(t,i){return Ta(),Ma("li",{key:t},[qa("span",{textContent:he("--".concat(e.$_getGlobalVariableName(t)))},null,8,mJ),Ha(s,{name:"close-box",onClick:function(e){return n.variables.splice(i,1)}},null,8,["onClick"])])}),128))])]),o.selectedVariablePreview.length?(Ta(),Ma("div",gJ,[qa("h6",{textContent:he("".concat(e.i18n.preview,":"))},null,8,vJ),qa("ul",null,[(Ta(!0),Ma(Ca,null,Rr(o.selectedVariablePreview,function(e,t){return Ta(),Ma("li",{key:t,innerHTML:e},null,8,yJ)}),128))])])):Qa("",!0)])])}]]);var SJ=xJ,EJ={class:"column edit colors"},AJ={class:"toolbar"},DJ=["textContent"],TJ={class:"sliders","data-control":""},IJ=["textContent"],OJ=["placeholder"],PJ=["textContent"],FJ=["textContent"],$J=["textContent"],MJ={class:"alpha-control"},LJ={class:"bricks-control-transparency-pattern"},NJ={class:"color-compare","data-control":""},jJ={class:"title-wrapper"},BJ=["textContent"],RJ={class:"bricks-control-transparency-pattern"},VJ=["textContent"],qJ=["textContent"],HJ=["textContent"],zJ={class:"quick-actions"},UJ=["textContent"],WJ=["textContent"];function GJ(e){return GJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},GJ(e)}var KJ=/^\s+/,QJ=/\s+$/;function YJ(e,t){if(t=t||{},(e=e||"")instanceof YJ)return e;if(!(this instanceof YJ))return new YJ(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,i=null,r=null,o=null,a=!1,s=!1;"string"==typeof e&&(e=function(e){e=e.replace(KJ,"").replace(QJ,"").toLowerCase();var t,n=!1;if(hX[e])e=hX[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=EX.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=EX.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=EX.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=EX.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=EX.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=EX.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=EX.hex8.exec(e))return{r:yX(t[1]),g:yX(t[2]),b:yX(t[3]),a:_X(t[4]),format:n?"name":"hex8"};if(t=EX.hex6.exec(e))return{r:yX(t[1]),g:yX(t[2]),b:yX(t[3]),format:n?"name":"hex"};if(t=EX.hex4.exec(e))return{r:yX(t[1]+""+t[1]),g:yX(t[2]+""+t[2]),b:yX(t[3]+""+t[3]),a:_X(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=EX.hex3.exec(e))return{r:yX(t[1]+""+t[1]),g:yX(t[2]+""+t[2]),b:yX(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==GJ(e)&&(AX(e.r)&&AX(e.g)&&AX(e.b)?(t=function(e,t,n){return{r:255*gX(e,255),g:255*gX(t,255),b:255*gX(n,255)}}(e.r,e.g,e.b),a=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):AX(e.h)&&AX(e.s)&&AX(e.v)?(i=kX(e.s),r=kX(e.v),t=function(e,t,n){e=6*gX(e,360),t=gX(t,100),n=gX(n,100);var i=Math.floor(e),r=e-i,o=n*(1-t),a=n*(1-r*t),s=n*(1-(1-r)*t),l=i%6,c=[n,a,o,o,s,n][l],u=[s,n,n,a,o,o][l],d=[o,o,s,n,n,a][l];return{r:255*c,g:255*u,b:255*d}}(e.h,i,r),a=!0,s="hsv"):AX(e.h)&&AX(e.s)&&AX(e.l)&&(i=kX(e.s),o=kX(e.l),t=function(e,t,n){var i,r,o;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=gX(e,360),t=gX(t,100),n=gX(n,100),0===t)i=r=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;i=a(l,s,e+1/3),r=a(l,s,e),o=a(l,s,e-1/3)}return{r:255*i,g:255*r,b:255*o}}(e.h,i,o),a=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a));return n=mX(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function JJ(e,t,n){e=gX(e,255),t=gX(t,255),n=gX(n,255);var i,r,o=Math.max(e,t,n),a=Math.min(e,t,n),s=(o+a)/2;if(o==a)i=r=0;else{var l=o-a;switch(r=s>.5?l/(2-o-a):l/(o+a),o){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:r,l:s}}function XJ(e,t,n){e=gX(e,255),t=gX(t,255),n=gX(n,255);var i,r,o=Math.max(e,t,n),a=Math.min(e,t,n),s=o,l=o-a;if(r=0===o?0:l/o,o==a)i=0;else{switch(o){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:r,v:s}}function ZJ(e,t,n,i){var r=[bX(Math.round(e).toString(16)),bX(Math.round(t).toString(16)),bX(Math.round(n).toString(16))];return i&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function eX(e,t,n,i){return[bX(wX(i)),bX(Math.round(e).toString(16)),bX(Math.round(t).toString(16)),bX(Math.round(n).toString(16))].join("")}function tX(e,t){t=0===t?0:t||10;var n=YJ(e).toHsl();return n.s-=t/100,n.s=vX(n.s),YJ(n)}function nX(e,t){t=0===t?0:t||10;var n=YJ(e).toHsl();return n.s+=t/100,n.s=vX(n.s),YJ(n)}function iX(e){return YJ(e).desaturate(100)}function rX(e,t){t=0===t?0:t||10;var n=YJ(e).toHsl();return n.l+=t/100,n.l=vX(n.l),YJ(n)}function oX(e,t){t=0===t?0:t||10;var n=YJ(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),YJ(n)}function aX(e,t){t=0===t?0:t||10;var n=YJ(e).toHsl();return n.l-=t/100,n.l=vX(n.l),YJ(n)}function sX(e,t){var n=YJ(e).toHsl(),i=(n.h+t)%360;return n.h=i<0?360+i:i,YJ(n)}function lX(e){var t=YJ(e).toHsl();return t.h=(t.h+180)%360,YJ(t)}function cX(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=YJ(e).toHsl(),i=[YJ(e)],r=360/t,o=1;o<t;o++)i.push(YJ({h:(n.h+o*r)%360,s:n.s,l:n.l}));return i}function uX(e){var t=YJ(e).toHsl(),n=t.h;return[YJ(e),YJ({h:(n+72)%360,s:t.s,l:t.l}),YJ({h:(n+216)%360,s:t.s,l:t.l})]}function dX(e,t,n){t=t||6,n=n||30;var i=YJ(e).toHsl(),r=360/n,o=[YJ(e)];for(i.h=(i.h-(r*t>>1)+720)%360;--t;)i.h=(i.h+r)%360,o.push(YJ(i));return o}function pX(e,t){t=t||6;for(var n=YJ(e).toHsv(),i=n.h,r=n.s,o=n.v,a=[],s=1/t;t--;)a.push(YJ({h:i,s:r,v:o})),o=(o+s)%1;return a}YJ.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,i=this.toRgb();return e=i.r/255,t=i.g/255,n=i.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=mX(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=XJ(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=XJ(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),i=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+i+"%)":"hsva("+t+", "+n+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var e=JJ(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=JJ(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),i=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+i+"%)":"hsla("+t+", "+n+"%, "+i+"%, "+this._roundA+")"},toHex:function(e){return ZJ(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,i,r){var o=[bX(Math.round(e).toString(16)),bX(Math.round(t).toString(16)),bX(Math.round(n).toString(16)),bX(wX(i))];if(r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*gX(this._r,255))+"%",g:Math.round(100*gX(this._g,255))+"%",b:Math.round(100*gX(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*gX(this._r,255))+"%, "+Math.round(100*gX(this._g,255))+"%, "+Math.round(100*gX(this._b,255))+"%)":"rgba("+Math.round(100*gX(this._r,255))+"%, "+Math.round(100*gX(this._g,255))+"%, "+Math.round(100*gX(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(fX[ZJ(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+eX(this._r,this._g,this._b,this._a),n=t,i=this._gradientType?"GradientType = 1, ":"";if(e){var r=YJ(e);n="#"+eX(r._r,r._g,r._b,r._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,i=this._a<1&&this._a>=0;return t||!i||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return YJ(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(rX,arguments)},brighten:function(){return this._applyModification(oX,arguments)},darken:function(){return this._applyModification(aX,arguments)},desaturate:function(){return this._applyModification(tX,arguments)},saturate:function(){return this._applyModification(nX,arguments)},greyscale:function(){return this._applyModification(iX,arguments)},spin:function(){return this._applyModification(sX,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(dX,arguments)},complement:function(){return this._applyCombination(lX,arguments)},monochromatic:function(){return this._applyCombination(pX,arguments)},splitcomplement:function(){return this._applyCombination(uX,arguments)},triad:function(){return this._applyCombination(cX,[3])},tetrad:function(){return this._applyCombination(cX,[4])}},YJ.fromRatio=function(e,t){if("object"==GJ(e)){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]="a"===i?e[i]:kX(e[i]));e=n}return YJ(e,t)},YJ.equals=function(e,t){return!(!e||!t)&&YJ(e).toRgbString()==YJ(t).toRgbString()},YJ.random=function(){return YJ.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},YJ.mix=function(e,t,n){n=0===n?0:n||50;var i=YJ(e).toRgb(),r=YJ(t).toRgb(),o=n/100;return YJ({r:(r.r-i.r)*o+i.r,g:(r.g-i.g)*o+i.g,b:(r.b-i.b)*o+i.b,a:(r.a-i.a)*o+i.a})},YJ.readability=function(e,t){var n=YJ(e),i=YJ(t);return(Math.max(n.getLuminance(),i.getLuminance())+.05)/(Math.min(n.getLuminance(),i.getLuminance())+.05)},YJ.isReadable=function(e,t,n){var i,r,o=YJ.readability(e,t);switch(r=!1,(i=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+i.size){case"AAsmall":case"AAAlarge":r=o>=4.5;break;case"AAlarge":r=o>=3;break;case"AAAsmall":r=o>=7}return r},YJ.mostReadable=function(e,t,n){var i,r,o,a,s=null,l=0;r=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var c=0;c<t.length;c++)(i=YJ.readability(e,t[c]))>l&&(l=i,s=YJ(t[c]));return YJ.isReadable(e,s,{level:o,size:a})||!r?s:(n.includeFallbackColors=!1,YJ.mostReadable(e,["#fff","#000"],n))};var hX=YJ.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},fX=YJ.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(hX);function mX(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function gX(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function vX(e){return Math.min(1,Math.max(0,e))}function yX(e){return parseInt(e,16)}function bX(e){return 1==e.length?"0"+e:""+e}function kX(e){return e<=1&&(e=100*e+"%"),e}function wX(e){return Math.round(255*parseFloat(e)).toString(16)}function _X(e){return yX(e)/255}var CX,xX,SX,EX=(xX="[\\s|\\(]+("+(CX="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+CX+")[,|\\s]+("+CX+")\\s*\\)?",SX="[\\s|\\(]+("+CX+")[,|\\s]+("+CX+")[,|\\s]+("+CX+")[,|\\s]+("+CX+")\\s*\\)?",{CSS_UNIT:new RegExp(CX),rgb:new RegExp("rgb"+xX),rgba:new RegExp("rgba"+SX),hsl:new RegExp("hsl"+xX),hsla:new RegExp("hsla"+SX),hsv:new RegExp("hsv"+xX),hsva:new RegExp("hsva"+SX),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function AX(e){return!!EX.CSS_UNIT.exec(e)}var DX={data:function(){return{inputHue:0,inputSaturation:100,inputLightness:50,inputAlpha:1,globalVariable:null,newValue:null,newValueInput:"",inputAlphaStyles:{},inputSaturationStyles:{},inputLightnessStyles:{},colorModeOptions:{options:{hex:"HEX",rgb:"RGB",hsl:"HSL"},placeholder:"HEX",clearable:!1},colorMode:"hex"}},computed:{newValueFormatted:function(){var e=YJ(this.newValue);if(e.isValid())switch(this.colorMode){case"hex":return 1===e.getAlpha()?e.toHexString():e.toHex8String();case"rgb":return e.toRgbString();case"hsl":return e.toHslString()}return""}},methods:{setSliderColor:function(){var e=YJ(this.newValue);if(!e.isValid())return this.inputHue=0,this.inputSaturation=100,this.inputLightness=50,void(this.inputAlpha=1);this.inputHue=e.toHsl().h,this.inputSaturation=100*e.toHsl().s,this.inputLightness=100*e.toHsl().l,this.inputAlpha=e.toHsl().a},updateColor:function(){var e=YJ({h:this.inputHue,s:this.inputSaturation/100,l:this.inputLightness/100,a:this.inputAlpha}).toString();"hex"===this.colorMode&&1==this.inputAlpha?this.newValue=YJ(e).toHexString():"hex8"===this.colorMode&&this.inputAlpha<1?this.newValue=YJ(e).toHex8String():"rgb"===this.colorMode?this.newValue=YJ(e).toRgbString():this.newValue=YJ(e).toHslString(),this.updateInputRangeStyles();var t=YJ(this.newValue).getFormat();["hsl","rgb","hex"].includes(t)?"hex"===this.colorMode&&(this.colorMode=t):this.colorMode="hex"},updateInputRangeStyles:function(){var e=YJ(this.newValue),t=this.bricks.isRtl?"to left":"to right";e.isValid()&&(this.inputSaturationStyles={backgroundImage:"linear-gradient(".concat(t,", gray, ").concat(e.toHslString(),")")},this.inputLightnessStyles={backgroundImage:"linear-gradient(".concat(t,", black, ").concat(e.toHslString(),", white)")},this.inputAlphaStyles={backgroundImage:"linear-gradient(".concat(t,", transparent, ").concat(e.toHslString(),")")})},updateVariable:function(){var e=this,t=this.$_state.globalVariables.find(function(t){return t.id===e.globalVariable.id});t&&(t.value=this.newValueFormatted)},updateNewValue:function(e){this.newValue=e,this.setSliderColor()}},watch:{colorMode:function(){"hex"===this.colorMode&&(this.inputAlpha=1),this.newValue=this.newValueFormatted},"$_state.popupSelectedItems":{handler:function(e){var t;this.globalVariable=this.$_getGlobalVariable(e[0]),this.newValue=null===(t=this.globalVariable)||void 0===t?void 0:t.value,this.updateInputRangeStyles(),this.setSliderColor();var n=YJ(this.newValue).getFormat();["hsl","rgb","hex"].includes(n)?this.colorMode=n:this.colorMode="hex"},deep:!0,immediate:!0}}};const TX=(0,xx.A)(DX,[["render",function(e,t,n,i,r,o){var a,s,l=$r("control-select");return Ta(),Ma("div",EJ,[qa("div",AJ,[qa("h6",{textContent:he(e.i18n.popupManagerColorEditTitle)},null,8,DJ)]),qa("form",{class:"content",onSubmit:t[15]||(t[15]=bc(function(){},["prevent"]))},[qa("div",TJ,[qa("label",{class:"hue title",textContent:he(e.i18n.hue)},null,8,IJ),Xn(qa("input",{"onUpdate:modelValue":t[0]||(t[0]=function(e){return r.inputHue=e}),type:"range",min:"0",max:"360",step:"1",class:"hue-picker title",placeholder:r.inputHue?null:"#000000",onInput:t[1]||(t[1]=function(){return o.updateColor&&o.updateColor.apply(o,arguments)})},null,40,OJ),[[ac,r.inputHue]]),qa("label",{class:"title",textContent:he(e.i18n.saturation)},null,8,PJ),Xn(qa("input",{"onUpdate:modelValue":t[2]||(t[2]=function(e){return r.inputSaturation=e}),type:"range",min:"0",max:"100",step:"1",style:Y(r.inputSaturationStyles),class:"saturation-picker",onInput:t[3]||(t[3]=function(){return o.updateColor&&o.updateColor.apply(o,arguments)})},null,36),[[ac,r.inputSaturation]]),qa("label",{class:"title",textContent:he(e.i18n.lightness)},null,8,FJ),Xn(qa("input",{"onUpdate:modelValue":t[4]||(t[4]=function(e){return r.inputLightness=e}),type:"range",min:"0",max:"100",step:"1",style:Y(r.inputLightnessStyles),class:"lightness-picker",onInput:t[5]||(t[5]=function(){return o.updateColor&&o.updateColor.apply(o,arguments)})},null,36),[[ac,r.inputLightness]]),qa("label",{class:"title",textContent:he(e.i18n.alpha)},null,8,$J),qa("div",MJ,[qa("div",LJ,[Xn(qa("input",{"onUpdate:modelValue":t[6]||(t[6]=function(e){return r.inputAlpha=e}),type:"range",min:"0",max:"1",step:"0.01",style:Y(r.inputAlphaStyles),class:"alpha-picker",onInput:t[7]||(t[7]=function(){return o.updateColor&&o.updateColor.apply(o,arguments)})},null,36),[[ac,r.inputAlpha]])])])]),qa("div",NJ,[qa("div",jJ,[qa("label",{class:"title",textContent:he(e.i18n.colorPreview)},null,8,BJ),Ha(l,{class:"color-mode",value:r.colorMode,"onUpdate:value":t[8]||(t[8]=function(e){return r.colorMode=e}),"data-balloon":e.i18n.mode,control:r.colorModeOptions},null,8,["value","data-balloon","control"])]),qa("div",RJ,[qa("div",{class:"color-preview",style:Y({backgroundColor:null===(a=r.globalVariable)||void 0===a?void 0:a.value})},[qa("div",{class:"label",textContent:he(e.i18n.current)},null,8,VJ),qa("div",{class:"value",textContent:he(null===(s=r.globalVariable)||void 0===s?void 0:s.value)},null,8,qJ)],4),qa("div",{class:"color-preview",style:Y({backgroundColor:r.newValue})},[qa("div",{class:"label",textContent:he(e.i18n.new)},null,8,HJ),Xn(qa("input",{"onUpdate:modelValue":t[9]||(t[9]=function(e){return r.newValue=e}),onInput:t[10]||(t[10]=function(e){return o.updateNewValue(e.target.value)}),class:"value",spellcheck:"false"},null,544),[[ac,r.newValue]])],4)])]),Qa("",!0),qa("div",zJ,[qa("button",{class:"save",onClick:t[13]||(t[13]=bc(function(){return o.updateVariable&&o.updateVariable.apply(o,arguments)},["stop"])),textContent:he(e.i18n.save)},null,8,UJ),qa("button",{class:"reset",onClick:t[14]||(t[14]=bc(function(){var e;return o.updateNewValue(null===(e=r.globalVariable)||void 0===e?void 0:e.value)},["stop"])),textContent:he(e.i18n.reset)},null,8,WJ)])],32)])}]]);function IX(e){return function(e){if(Array.isArray(e))return OX(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return OX(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?OX(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function OX(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var PX={components:{PopupManagerCategories:vj,PopupVariablesItems:IY,PopupVariablesEditor:SJ,PopupVariablesEditorColor:TX},data:function(){return{category:null,importResults:[],cssVariablesInput:""}},beforeUnmount:function(){this.processRenamedVariables()},methods:{parseCSSVariables:function(){return this.cssVariablesInput.split(";").map(function(e){return e.trim()}).filter(function(e){return e.startsWith("--")}).map(function(e){var t=e.indexOf(":");return-1===t?{name:e.replace(/^--/,""),value:""}:{name:e.slice(0,t).trim().replace(/^--/,""),value:e.slice(t+1).trim()}})},importVariablesFromTextarea:function(){var e=this.parseCSSVariables(),t=this.addUniqueVariables(e);this.importResults.push({text:"".concat(this.i18n.variablesImported," (").concat(t.length,")"),type:t.length?"success":"info"}),this.cssVariablesInput=""},importVariablesFromFile:function(e){var t=this;Array.isArray(e)&&e.length&&(this.importResults=[],e.forEach(function(e){var n=(null==e?void 0:e.variables)||[],i=t.addUniqueVariables(n);t.importResults.push({text:"".concat(t.i18n.variablesImported," (").concat(i.length,"/").concat(n.length,")"),type:i.length?"success":"info"});var r=(null==e?void 0:e.categories)||[],o=[];(r.forEach(function(e){t.$_state.globalVariablesCategories.find(function(t){return t.name===e.name})||o.push(e)}),o.length)&&(confirm(t.i18n.variableCategoriesImportConfirm)&&(t.$_state.globalVariablesCategories=[].concat(IX(t.$_state.globalVariablesCategories),o),t.importResults.push({text:"".concat(t.i18n.categoriesImported," (").concat(o.length,"/").concat(r.length,")"),type:o.length?"success":"info"})))}))},addUniqueVariables:function(e){var t=this,n=[];return e.forEach(function(e){t.$_state.globalVariables.find(function(t){return t.name===e.name})||(e.id=t.$_generateId(),t.$_state.globalVariables.push(e),n.push(e))}),n},processRenamedVariables:function(){var e=this;Array.isArray(this.$_state.globalVariablesRenamed)&&0!==this.$_state.globalVariablesRenamed.length&&(this.$_state.globalVariablesRenamed.forEach(function(t){var n=e.$_state.globalVariables.find(function(e){return e.id===t}),i=e.$_state.globalVariablesOriginalNames[t];if(i&&n){var r=n.name;i!==r&&e.$_updateGlobalVariableReferences(i,r)}}),this.$_state.globalVariablesOriginalNames={})}}};const FX=(0,xx.A)(PX,[["render",function(e,t,n,i,r,o){var a=$r("control-textarea"),s=$r("control-file-import"),l=$r("popup-manager-categories"),c=$r("popup-variables-items"),u=$r("popup-variables-editor"),d=$r("popup-variables-editor-color");return"import"===e.$_state.popupView?(Ta(),Ma("div",iY,[qa("div",{class:"title",textContent:he("".concat(e.i18n.import,": ").concat(e.i18n.variables))},null,8,rY),qa("div",oY,[qa("p",{class:"desc",textContent:he("".concat(e.i18n.popupManagerImportTextarea,":"))},null,8,aY),Ha(a,{control:{placeholder:"--size-small: 1em;\n--size-medium: 1.3em;\n--size-large: 1.6em;",rows:5,hasDynamicData:!1,spellcheck:!1},value:r.cssVariablesInput,onInput:t[0]||(t[0]=function(e){return r.cssVariablesInput=e})},null,8,["value"]),r.cssVariablesInput?(Ta(),Ma("button",{key:0,onClick:t[1]||(t[1]=function(){return o.importVariablesFromTextarea&&o.importVariablesFromTextarea.apply(o,arguments)}),textContent:he(e.i18n.importCssVariables)},null,8,sY)):Qa("",!0)]),Ha(s,{control:{fileType:"application/json",dragAndDropNote:e.i18n.dropFilesJSON},results:r.importResults,onImported:o.importVariablesFromFile,onCloseMe:t[2]||(t[2]=function(t){return e.$_state.popupView=null})},null,8,["control","results","onImported"])])):(Ta(),Ma("div",lY,[Ha(l,{items:e.$_state.globalVariables},null,8,["items"]),Ha(c,{variables:e.$_state.popupFilteredItems},null,8,["variables"]),e.$_state.popupSelectedItems.length>1?(Ta(),La(u,{key:0,variables:e.$_state.popupSelectedItems},null,8,["variables"])):1===e.$_state.popupSelectedItems.length&&e.$_isGlobalVariableTypeColor(e.$_state.popupSelectedItems[0])?(Ta(),La(d,{key:1})):Qa("",!0)]))}]]);var $X=FX,MX={key:0,class:"import action-wrapper"},LX=["textContent"],NX={key:1,class:"settings-wrapper"},jX={class:"title-wrapper"},BX=["textContent"],RX={class:"has-border"};function VX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function qX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VX(Object(n),!0).forEach(function(t){HX(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function HX(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=zX(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=zX(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==zX(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zX(e){return zX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zX(e)}var UX={data:function(){return{importResults:[]}},computed:{themeStyleHtmlFontSize:function(){var e,t,n=(null===(e=this.$_getBaseBreakpointKey)||void 0===e?void 0:e.call(this))||"desktop",i=(null===(t=this.$_state.themeStyleSettings)||void 0===t?void 0:t.typography)||{},r="desktop"===n?"typographyHtml":"typographyHtml:".concat(n);return(null==i?void 0:i[r])||""},styleManager:function(){return this.$_state.styleManager},themeStyleHtmlFontSizeInPx:function(){var e=String(this.themeStyleHtmlFontSize||"").trim().toLowerCase();return e?/^-?[\d.]+px$/.test(e)?parseFloat(e):/^-?[\d.]+rem$/.test(e)?16*parseFloat(e):/^-?[\d.]+%$/.test(e)?parseFloat(e)/100*16:null:null},htmlFontSizePlaceholder:function(){var e;if(null!==(e=this.styleManager)&&void 0!==e&&e.htmlFontSize)return this.styleManager.htmlFontSize;if(this.themeStyleHtmlFontSizeInPx){var t=parseFloat(this.themeStyleHtmlFontSizeInPx.toFixed(2));return"".concat(this.themeStyleHtmlFontSize," (1rem = ").concat(t,"px)")}return this.themeStyleHtmlFontSize?this.themeStyleHtmlFontSize:this.i18n.styleManagerHtmlFontSizeOptionCompact},htmlFontSizeDesc:function(){var e;if(null!==(e=this.styleManager)&&void 0!==e&&e.htmlFontSize)return this.i18n.styleManagerHtmlFontSizeDescOverride;if(!this.themeStyleHtmlFontSize)return this.i18n.styleManagerHtmlFontSizeDescDefault;if(!this.themeStyleHtmlFontSizeInPx)return this.i18n.styleManagerHtmlFontSizeDescUnsupported;var t=parseFloat(this.themeStyleHtmlFontSizeInPx.toFixed(2)),n="".concat(this.themeStyleHtmlFontSize," (1rem = ").concat(t,"px)");return this.i18n.styleManagerHtmlFontSizeDescThemeStyles.replace("%s",n)}},methods:{settingsImported:function(e){var t=this;Array.isArray(e)&&e.length&&(e.flat().forEach(function(e){"object"===zX(null==e?void 0:e.styleManager)&&null!==(null==e?void 0:e.styleManager)&&(t.$_state.styleManager=qX(qX({},t.$_state.styleManager),e.styleManager))}),this.$_state.popupView=null,this.$_showMessage(this.i18n.settingsImported))}},mounted:function(){Array.isArray(this.$_state.styleManager)&&(this.$_state.styleManager={}),this.$_state.styleManager||(this.$_state.styleManager={defaultMode:"light",htmlFontSize:"",minScreenWidth:360,maxScreenWidth:1440,created:null,modified:null})}};var WX=(0,xx.A)(UX,[["render",function(e,t,n,i,r,o){var a=$r("control-file-import"),s=$r("panel-control");return"import"===e.$_state.popupView?(Ta(),Ma("div",MX,[qa("div",{class:"title",textContent:he("".concat(e.i18n.import,": ").concat(e.i18n.settings))},null,8,LX),Ha(a,{control:{fileType:"application/json",dragAndDropNote:e.i18n.dropFilesJSON},results:r.importResults,onImported:o.settingsImported,onCloseMe:t[0]||(t[0]=function(t){return e.$_state.popupView=null})},null,8,["control","results","onImported"])])):(Ta(),Ma("div",NX,[qa("div",jX,[qa("h1",{textContent:he(e.i18n.settings)},null,8,BX)]),qa("form",RX,[qa("div",null,[Ha(s,{controlKey:"defaultMode",control:{type:"select",label:e.i18n.defaultMode,options:{light:"".concat(e.i18n.light," (").concat(e.i18n.default,")"),dark:e.i18n.dark,auto:e.i18n.auto},inline:!0,placeholder:e.i18n.light,desc:e.i18n.styleManagerDefaultModeDesc},settings:{defaultMode:o.styleManager.defaultMode},value:o.styleManager.defaultMode,onUpdated:t[1]||(t[1]=function(e){return o.styleManager.defaultMode=e})},null,8,["control","settings","value"]),Ha(s,{controlKey:"scalesSep",control:{type:"separator",label:e.i18n.scales,desc:e.i18n.styleManagerSettingsDesc}},null,8,["control"]),Ha(s,{controlKey:"htmlFontSize",control:{type:"select",label:e.i18n.htmlFontSize,options:{"":this.i18n.styleManagerHtmlFontSizeThemeStylesAuto,"10px":this.i18n.styleManagerHtmlFontSizeOptionCompact,"16px":this.i18n.styleManagerHtmlFontSizeOptionDefault},inline:!0,placeholder:o.htmlFontSizePlaceholder,desc:o.htmlFontSizeDesc},settings:{htmlFontSize:o.styleManager.htmlFontSize},value:o.styleManager.htmlFontSize,onUpdated:t[2]||(t[2]=function(e){return o.styleManager.htmlFontSize=e})},null,8,["control","settings","value"]),Ha(s,{controlKey:"minScreenWidth",control:{type:"number",label:e.i18n.minScreenWidth,units:!1,min:0,step:1,inline:!0,placeholder:360},settings:{minScreenWidth:o.styleManager.minScreenWidth},value:o.styleManager.minScreenWidth,onUpdated:t[3]||(t[3]=function(e){return o.styleManager.minScreenWidth=e})},null,8,["control","settings","value"]),Ha(s,{controlKey:"maxScreenWidth",control:{type:"number",label:e.i18n.maxScreenWidth,units:!1,min:0,step:1,inline:!0,placeholder:1440},settings:{maxScreenWidth:o.styleManager.maxScreenWidth},value:o.styleManager.maxScreenWidth,onUpdated:t[4]||(t[4]=function(e){return o.styleManager.maxScreenWidth=e})},null,8,["control","settings","value"])])])]))}]]);function GX(e){return function(e){if(Array.isArray(e))return KX(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return KX(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?KX(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function KX(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var QX={class:"title-wrapper"},YX=["textContent"],JX=["innerHTML"],XX={key:1,class:"toolbar"},ZX=["placeholder"],eZ={class:"actions-wrapper"},tZ=["data-balloon"],nZ=["data-balloon"],iZ=["data-balloon"],rZ=["data-balloon"],oZ=["data-balloon"],aZ=["data-balloon"],sZ=["data-balloon"],lZ=["data-balloon"],cZ={key:3,class:"generated-css-preview"},uZ={class:"section-header"},dZ=["textContent"],pZ={class:"actions-wrapper"},hZ=["data-balloon"],fZ={key:4,class:"edit-palette"},mZ=["data-id","data-index"],gZ={key:0,class:"color-inner converter"},vZ=["data-balloon"],yZ={class:"color-swatch-wrapper"},bZ=["data-balloon"],kZ=["textContent"],wZ=["placeholder"],_Z={class:"actions-wrapper"},CZ=["data-balloon","onClick"],xZ=["data-balloon","onClick"],SZ=["data-balloon","onClick"],EZ={key:1,class:"color-inner"},AZ=["data-balloon"],DZ=["data-balloon","onClick"],TZ=["data-balloon","onClick"],IZ={class:"raw var-name"},OZ=["readonly","onUpdate:modelValue","onFocus","onBlur","onInput"],PZ=["data-balloon"],FZ=["readonly","title","onUpdate:modelValue"],$Z=["data-balloon"],MZ=["readonly","title","onUpdate:modelValue"],LZ={class:"actions shades"},NZ=["data-balloon"],jZ=["data-balloon"],BZ=["data-balloon"],RZ=["data-balloon"],VZ={class:"actions-wrapper"},qZ=["data-balloon","onClick"],HZ=["data-balloon","onClick"],zZ=["data-balloon","onClick"],UZ={class:"preview"},WZ=["textContent"],GZ={class:"colors"},KZ=["data-balloon"],QZ=["value","onBlur"],YZ=["disabled","textContent"],JZ={key:2,class:"edit-color"},XZ={class:"edit-shade"},ZZ={class:"utility-classes"},e1={class:"section-header"},t1=["textContent"],n1=["textContent"],i1={class:"utility-config"},r1=["data-balloon","textContent","onClick"],o1={class:"add-color"},a1=["placeholder"],s1={class:"color-preview-wrapper"},l1=["data-balloon"],c1=["placeholder"],u1=["disabled","textContent"],d1={class:"new-palette-wrapper"},p1={key:0,class:"add-palette"},h1={class:"form-group"},f1=["textContent"],m1=["placeholder"],g1=["innerHTML"],v1={class:"form-group buttons"},y1=["disabled","textContent"],b1=["textContent"],k1={key:1,class:"import action-wrapper"},w1=["textContent"];var _1={class:"edit-shade"},C1=["data-id"],x1={class:"icons"},S1=["data-id"],E1={class:"icons"};function A1(e){return(A1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var D1=/^\s+/,T1=/\s+$/;function I1(e,t){if(t=t||{},(e=e||"")instanceof I1)return e;if(!(this instanceof I1))return new I1(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,i=null,r=null,o=null,a=!1,s=!1;return"string"==typeof e&&(e=function(e){e=e.replace(D1,"").replace(T1,"").toLowerCase();var t,n=!1;if(G1[e])e=G1[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=a0.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=a0.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=a0.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=a0.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=a0.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=a0.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=a0.hex8.exec(e))?{r:X1(t[1]),g:X1(t[2]),b:X1(t[3]),a:n0(t[4]),format:n?"name":"hex8"}:(t=a0.hex6.exec(e))?{r:X1(t[1]),g:X1(t[2]),b:X1(t[3]),format:n?"name":"hex"}:(t=a0.hex4.exec(e))?{r:X1(t[1]+""+t[1]),g:X1(t[2]+""+t[2]),b:X1(t[3]+""+t[3]),a:n0(t[4]+""+t[4]),format:n?"name":"hex8"}:!!(t=a0.hex3.exec(e))&&{r:X1(t[1]+""+t[1]),g:X1(t[2]+""+t[2]),b:X1(t[3]+""+t[3]),format:n?"name":"hex"}}(e)),"object"==A1(e)&&(s0(e.r)&&s0(e.g)&&s0(e.b)?(t=function(e,t,n){return{r:255*Y1(e,255),g:255*Y1(t,255),b:255*Y1(n,255)}}(e.r,e.g,e.b),a=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):s0(e.h)&&s0(e.s)&&s0(e.v)?(i=e0(e.s),r=e0(e.v),t=function(e,t,n){e=6*Y1(e,360),t=Y1(t,100),n=Y1(n,100);var i=Math.floor(e),r=e-i,o=n*(1-t),a=n*(1-r*t),s=n*(1-(1-r)*t),l=i%6,c=[n,a,o,o,s,n][l],u=[s,n,n,a,o,o][l],d=[o,o,s,n,n,a][l];return{r:255*c,g:255*u,b:255*d}}(e.h,i,r),a=!0,s="hsv"):s0(e.h)&&s0(e.s)&&s0(e.l)&&(i=e0(e.s),o=e0(e.l),t=function(e,t,n){var i,r,o;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=Y1(e,360),t=Y1(t,100),n=Y1(n,100),0===t)i=r=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;i=a(l,s,e+1/3),r=a(l,s,e),o=a(l,s,e-1/3)}return{r:255*i,g:255*r,b:255*o}}(e.h,i,o),a=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=Q1(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function O1(e,t,n){e=Y1(e,255),t=Y1(t,255),n=Y1(n,255);var i,r,o=Math.max(e,t,n),a=Math.min(e,t,n),s=(o+a)/2;if(o==a)i=r=0;else{var l=o-a;switch(r=s>.5?l/(2-o-a):l/(o+a),o){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:r,l:s}}function P1(e,t,n){e=Y1(e,255),t=Y1(t,255),n=Y1(n,255);var i,r,o=Math.max(e,t,n),a=Math.min(e,t,n),s=o,l=o-a;if(r=0===o?0:l/o,o==a)i=0;else{switch(o){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:r,v:s}}function F1(e,t,n,i){var r=[Z1(Math.round(e).toString(16)),Z1(Math.round(t).toString(16)),Z1(Math.round(n).toString(16))];return i&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function $1(e,t,n,i){return[Z1(t0(i)),Z1(Math.round(e).toString(16)),Z1(Math.round(t).toString(16)),Z1(Math.round(n).toString(16))].join("")}function M1(e,t){t=0===t?0:t||10;var n=I1(e).toHsl();return n.s-=t/100,n.s=J1(n.s),I1(n)}function L1(e,t){t=0===t?0:t||10;var n=I1(e).toHsl();return n.s+=t/100,n.s=J1(n.s),I1(n)}function N1(e){return I1(e).desaturate(100)}function j1(e,t){t=0===t?0:t||10;var n=I1(e).toHsl();return n.l+=t/100,n.l=J1(n.l),I1(n)}function B1(e,t){t=0===t?0:t||10;var n=I1(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),I1(n)}function R1(e,t){t=0===t?0:t||10;var n=I1(e).toHsl();return n.l-=t/100,n.l=J1(n.l),I1(n)}function V1(e,t){var n=I1(e).toHsl(),i=(n.h+t)%360;return n.h=i<0?360+i:i,I1(n)}function q1(e){var t=I1(e).toHsl();return t.h=(t.h+180)%360,I1(t)}function H1(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=I1(e).toHsl(),i=[I1(e)],r=360/t,o=1;o<t;o++)i.push(I1({h:(n.h+o*r)%360,s:n.s,l:n.l}));return i}function z1(e){var t=I1(e).toHsl(),n=t.h;return[I1(e),I1({h:(n+72)%360,s:t.s,l:t.l}),I1({h:(n+216)%360,s:t.s,l:t.l})]}function U1(e,t,n){t=t||6,n=n||30;var i=I1(e).toHsl(),r=360/n,o=[I1(e)];for(i.h=(i.h-(r*t>>1)+720)%360;--t;)i.h=(i.h+r)%360,o.push(I1(i));return o}function W1(e,t){t=t||6;for(var n=I1(e).toHsv(),i=n.h,r=n.s,o=n.v,a=[],s=1/t;t--;)a.push(I1({h:i,s:r,v:o})),o=(o+s)%1;return a}I1.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,i=this.toRgb();return e=i.r/255,t=i.g/255,n=i.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=Q1(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=P1(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=P1(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),i=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+i+"%)":"hsva("+t+", "+n+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var e=O1(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=O1(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),i=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+i+"%)":"hsla("+t+", "+n+"%, "+i+"%, "+this._roundA+")"},toHex:function(e){return F1(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,i,r){var o=[Z1(Math.round(e).toString(16)),Z1(Math.round(t).toString(16)),Z1(Math.round(n).toString(16)),Z1(t0(i))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*Y1(this._r,255))+"%",g:Math.round(100*Y1(this._g,255))+"%",b:Math.round(100*Y1(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*Y1(this._r,255))+"%, "+Math.round(100*Y1(this._g,255))+"%, "+Math.round(100*Y1(this._b,255))+"%)":"rgba("+Math.round(100*Y1(this._r,255))+"%, "+Math.round(100*Y1(this._g,255))+"%, "+Math.round(100*Y1(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(K1[F1(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+$1(this._r,this._g,this._b,this._a),n=t,i=this._gradientType?"GradientType = 1, ":"";if(e){var r=I1(e);n="#"+$1(r._r,r._g,r._b,r._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,i=this._a<1&&this._a>=0;return!t&&i&&("hex"===e||"hex6"===e||"hex3"===e||"hex4"===e||"hex8"===e||"name"===e)?"name"===e&&0===this._a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return I1(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(j1,arguments)},brighten:function(){return this._applyModification(B1,arguments)},darken:function(){return this._applyModification(R1,arguments)},desaturate:function(){return this._applyModification(M1,arguments)},saturate:function(){return this._applyModification(L1,arguments)},greyscale:function(){return this._applyModification(N1,arguments)},spin:function(){return this._applyModification(V1,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(U1,arguments)},complement:function(){return this._applyCombination(q1,arguments)},monochromatic:function(){return this._applyCombination(W1,arguments)},splitcomplement:function(){return this._applyCombination(z1,arguments)},triad:function(){return this._applyCombination(H1,[3])},tetrad:function(){return this._applyCombination(H1,[4])}},I1.fromRatio=function(e,t){if("object"==A1(e)){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]="a"===i?e[i]:e0(e[i]));e=n}return I1(e,t)},I1.equals=function(e,t){return!(!e||!t)&&I1(e).toRgbString()==I1(t).toRgbString()},I1.random=function(){return I1.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},I1.mix=function(e,t,n){n=0===n?0:n||50;var i=I1(e).toRgb(),r=I1(t).toRgb(),o=n/100;return I1({r:(r.r-i.r)*o+i.r,g:(r.g-i.g)*o+i.g,b:(r.b-i.b)*o+i.b,a:(r.a-i.a)*o+i.a})},I1.readability=function(e,t){var n=I1(e),i=I1(t);return(Math.max(n.getLuminance(),i.getLuminance())+.05)/(Math.min(n.getLuminance(),i.getLuminance())+.05)},I1.isReadable=function(e,t,n){var i,r,o=I1.readability(e,t);switch(r=!1,i=function(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA"),"small"!==n&&"large"!==n&&(n="small"),{level:t,size:n}}(n),i.level+i.size){case"AAsmall":case"AAAlarge":r=o>=4.5;break;case"AAlarge":r=o>=3;break;case"AAAsmall":r=o>=7}return r},I1.mostReadable=function(e,t,n){var i,r,o,a,s=null,l=0;r=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var c=0;c<t.length;c++)(i=I1.readability(e,t[c]))>l&&(l=i,s=I1(t[c]));return I1.isReadable(e,s,{level:o,size:a})||!r?s:(n.includeFallbackColors=!1,I1.mostReadable(e,["#fff","#000"],n))};var G1=I1.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},K1=I1.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(G1);function Q1(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Y1(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function J1(e){return Math.min(1,Math.max(0,e))}function X1(e){return parseInt(e,16)}function Z1(e){return 1==e.length?"0"+e:""+e}function e0(e){return e<=1&&(e=100*e+"%"),e}function t0(e){return Math.round(255*parseFloat(e)).toString(16)}function n0(e){return X1(e)/255}var i0,r0,o0,a0=(r0="[\\s|\\(]+("+(i0="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+i0+")[,|\\s]+("+i0+")\\s*\\)?",o0="[\\s|\\(]+("+i0+")[,|\\s]+("+i0+")[,|\\s]+("+i0+")[,|\\s]+("+i0+")\\s*\\)?",{CSS_UNIT:new RegExp(i0),rgb:new RegExp("rgb"+r0),rgba:new RegExp("rgba"+o0),hsl:new RegExp("hsl"+r0),hsla:new RegExp("hsla"+o0),hsv:new RegExp("hsv"+r0),hsva:new RegExp("hsva"+o0),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function s0(e){return!!a0.CSS_UNIT.exec(e)}const l0=(e,t,n=!1)=>{if(!n){let n=t;"hex"===t&&e.getAlpha()<1&&(n="hex8");let i=e.toString(n);try{i=JSON.parse(i)}catch{}return i}switch(t){case"rgb":return e.toRgb();case"prgb":return e.toPercentageRgb();case"hsl":return e.toHsl();case"hsv":return e.toHsv();default:return null}},c0=(e,t)=>!!(Object.prototype.hasOwnProperty.call(e,t)&&typeof e[t]<"u"),u0=e=>typeof e>"u",d0=["update:tinyColor","update:modelValue","input"];function p0(e,t,n){let i,r;const o=xs({get:()=>{const{modelValue:t,tinyColor:n,value:o}=e,a=n??t??o;return u0(r)&&(u0(o)||(r=I1(o).getFormat()),u0(t)||(r=I1(t).getFormat())),u0(i)&&("object"==typeof o&&!(o instanceof I1)&&(i=!0),"object"==typeof t&&(i=!0)),I1(a)},set:e=>{a(e)}}),a=n=>{const o=I1(n);if(c0(e,"tinyColor")&&t("update:tinyColor",o),c0(e,"modelValue")){const e=l0(o,r,i);t("update:modelValue",e)}if(c0(e,"value")){const e=l0(o,r,i);t("input",e)}};return o}const h0=e=>{const t={x:0,y:0};return e instanceof MouseEvent&&(t.x=e.pageX,t.y=e.pageY),typeof TouchEvent<"u"&&e instanceof TouchEvent&&(t.x=e.touches?.[0]?e.touches[0].pageX:e.changedTouches?.[0]?e.changedTouches[0].pageX:0,t.y=e.touches?.[0]?e.touches[0].pageY:e.changedTouches?.[0]?e.changedTouches[0].pageY:0),t},f0=e=>{const{x:t,y:n}={x:window.scrollX||window.pageXOffset||document.documentElement.scrollLeft||0,y:window.scrollY||window.pageYOffset||document.documentElement.scrollTop||0},i=e.getBoundingClientRect();return{x:i.left+t,y:i.top+n}},m0=e=>"ArrowUp"===e.code||38===e.keyCode?"up":"ArrowDown"===e.code||40===e.keyCode?"down":"ArrowLeft"===e.code||37===e.keyCode?"left":"ArrowRight"===e.code||39===e.keyCode?"right":null;function g0(e,t,n){return Math.min(Math.max(e,t),n)}const v0=(e,t=20)=>{let n,i,r;return(...o)=>{n?(clearTimeout(i),i=setTimeout(()=>{Date.now()-r>=t&&(e(...o),r=Date.now())},Math.max(t-(Date.now()-r),0))):(e(...o),r=Date.now(),n=!0)}},y0=["aria-valuetext"],b0=Bi({__name:"SaturationSlider",props:{hue:{},tinyColor:{},modelValue:{},value:{}},emits:["change"].concat(d0),setup(e,{emit:t}){const n=t,i=e,r=Gt(0),o=p0(i,n),a=xs(()=>o.value.toHsv()),s=xs(()=>i.hue??a.value.h),l=xs(()=>`hsl(${s.value}, 100%, 50%)`),c=xs(()=>-100*a.value.v+1+100+"%"),u=xs(()=>a.value.v<=.01?100*r.value+"%":100*a.value.s+"%"),d=Gt(null);function p(e){o.value=e}const h=v0(function(e){const t=d.value;if(!t)return;const n=t.clientWidth,i=t.clientHeight,{x:o,y:l}=f0(t),{x:c,y:u}=h0(e),h=g0(c-o,0,n),f=g0(u-l,0,i),m=h/n,g=g0(1-f/i,0,1);r.value=m;let v=Math.round(100*m),y=Math.round(100*g);1===v&&(v=.01),1===y&&(y=.01),p({h:s.value,s:v,v:y,a:a.value.a})},20);function f(e){e.preventDefault(),e.type.startsWith("mouse")?(window.addEventListener("mousemove",h),window.addEventListener("mouseup",h),window.addEventListener("mouseup",m)):e.type.startsWith("touch")&&(window.addEventListener("touchmove",h),window.addEventListener("touchend",h),window.addEventListener("touchend",m))}function m(){g()}function g(){window.removeEventListener("mousemove",h),window.removeEventListener("mouseup",h),window.removeEventListener("mouseup",m),window.removeEventListener("touchmove",h),window.removeEventListener("touchend",h),window.removeEventListener("touchend",m)}function v(e){switch(e.preventDefault(),m0(e)){case"left":{const e=a.value.s-.01;p({...a.value,s:e>=0?e:0});break}case"right":{const e=a.value.s+.01;p({...a.value,s:e>1?1:e});break}case"up":{const e=a.value.v+.01;p({...a.value,v:e>1?1:e});break}case"down":{const e=a.value.v-.01;p({...a.value,v:e<0?0:e});break}}}return Ar(()=>{g()}),(e,t)=>(Ta(),Ma("div",{class:"vc-saturation-slider bg",style:Y({background:l.value}),ref_key:"containerRef",ref:d,onMousedown:f,onTouchstart:f,role:"application","aria-label":"Saturation and brightness picker"},[t[1]||(t[1]=qa("div",{class:"bg white"},null,-1)),t[2]||(t[2]=qa("div",{class:"bg black"},null,-1)),qa("div",{class:"picker-wrap",style:Y({top:c.value,left:u.value}),role:"slider",tabindex:"0","aria-valuemin":"0","aria-valuemax":"1","aria-label":"press arrow to change saturation or brightness","aria-valuenow":"?","aria-valuetext":`saturation: ${a.value.s.toFixed(0)}%, brightness: ${a.value.v.toFixed(0)}%`,onKeydown:v},t[0]||(t[0]=[qa("div",{class:"picker"},null,-1)]),44,y0)],36))}}),k0=(e,t)=>{const n=e.__vccOpts||e;for(const[e,i]of t)n[e]=i;return n},w0=k0(b0,[["__scopeId","data-v-4d048d6e"]]),_0=e=>typeof e<"u",C0={class:"vc-base-slider"},x0={key:0,class:"background"},S0=["aria-label","aria-valuemax","aria-valuenow"],E0=Bi({__name:"BaseSlider",props:{direction:{default:"horizontal"},modelValue:{default:0},value:{default:0},max:{default:100},step:{},ariaLabel:{default:"slider"}},emits:["input","update:modelValue"],setup(e,{emit:t}){const n=e,i=t,r=xs(()=>n.modelValue??n.value),o=xs(()=>{let e=r.value/n.max;return"vertical"===n.direction&&(e=1-e),100*e+"%"}),a=Gt(null);function s(e){_0(e)&&(i("input",e),i("update:modelValue",e))}function l(e){const{direction:t,max:i}=n,r=a.value;if(!r)return;const o=r.clientWidth,l=r.clientHeight,{x:c,y:u}=f0(r),{x:d,y:p}=h0(e),h=d-c,f=p-u;let m;m="vertical"===t?f<0?i:f>l?0:(1-f/l)*i:h<0?0:h>o?i:h/o*i,s(m)}const c=v0(l);function u(e){l(e),e.type.startsWith("mouse")?(window.addEventListener("mousemove",c),window.addEventListener("mouseup",d)):(window.addEventListener("touchmove",c),window.addEventListener("touchend",d))}function d(){p()}function p(){window.removeEventListener("mousemove",c),window.removeEventListener("mouseup",d),window.removeEventListener("touchmove",c),window.removeEventListener("touchend",d)}function h(e){e.preventDefault();const{direction:t,max:i}=n,o=m0(e),a=n.step??i/100,l=r.value;let c;switch(o){case"left":if("horizontal"!==t)return;c=l-a<0?0:l-a;break;case"right":if("horizontal"!==t)return;c=l+a>i?i:l+a;break;case"down":if("vertical"!==t)return;c=l-a<0?0:l-a;break;case"up":if("vertical"!==t)return;c=l+a>i?i:l+a}s(c)}return Ar(()=>{p()}),(e,t)=>(Ta(),Ma("div",C0,[e.$slots.background?(Ta(),Ma("div",x0,[qr(e.$slots,"background",{},void 0,!0)])):Qa("",!0),qa("div",{class:te({slider:!0,horizontal:"horizontal"===e.direction,vertical:"vertical"===e.direction}),ref_key:"containerRef",ref:a,onMousedown:u,onTouchstart:u,role:"slider","aria-label":e.ariaLabel,"aria-valuemax":e.max,"aria-valuemin":"0","aria-valuenow":r.value.toFixed(1),tabindex:"0",onKeydown:h},[qa("div",{class:"picker-wrap",style:Y({left:"horizontal"===e.direction?o.value:0,top:"vertical"===e.direction?o.value:0}),role:"presentation"},[qr(e.$slots,"picker",{},()=>[t[0]||(t[0]=qa("div",{class:"picker"},null,-1))],!0)],4)],42,S0)]))}}),A0=k0(E0,[["__scopeId","data-v-972b0fad"]]),D0=Bi({__name:"HueSlider",props:{direction:{default:"horizontal"},modelValue:{default:0}},emits:["update:modelValue"],setup(e,{emit:t}){ml(e=>({"2f44f39d":r.value}));const n=e,i=t,r=xs(()=>`linear-gradient(to ${"horizontal"===n.direction?"right":"top"}, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%)`),o=xs(()=>{const e=Number(n.modelValue);return Number.isNaN(e)?0:e}),a=Gt();li(o,(e,t)=>{0!==e&&e-t>0&&(a.value="right"),0!==e&&e-t<0&&(a.value="left")});const s=xs(()=>"vertical"===n.direction?0===o.value&&"right"===a.value?0:o.value:"horizontal"===n.direction?0===o.value&&"right"===a.value?360:o.value:0);function l(e){!function(e){i("update:modelValue",e)}(Math.round(e))}return(e,t)=>(Ta(),La(A0,{class:"vc-hue-slider",max:360,step:1,modelValue:s.value,direction:e.direction,"onUpdate:modelValue":l,"aria-label":"Hue"},{background:Jn(()=>t[0]||(t[0]=[qa("div",{class:"gradient"},null,-1)])),picker:Jn(()=>[qr(e.$slots,"default",{},void 0,!0)]),_:3},8,["modelValue","direction"]))}}),T0=k0(D0,[["__scopeId","data-v-5367c985"]]),I0=Bi({__name:"CheckerboardBG",props:{size:{default:8},white:{default:"#fff"},grey:{default:"#e6e6e6"}},setup(e){const t=e;function n(e,t,n){return function(e,t,n){if(typeof document>"u")return null;var i=document.createElement("canvas");i.width=i.height=2*n;var r=i.getContext("2d");return r?(r.fillStyle=e,r.fillRect(0,0,i.width,i.height),r.fillStyle=t,r.fillRect(0,0,n,n),r.translate(n,n),r.fillRect(0,0,n,n),i.toDataURL()):null}(e,t,n)}const i=xs(()=>`url(${n(t.white,t.grey,t.size)})`);return(e,t)=>(Ta(),Ma("div",{class:"vc-checkerboard",style:Y({backgroundImage:i.value})},null,4))}}),O0=k0(I0,[["__scopeId","data-v-37d61ccd"]]),P0=Bi({__name:"AlphaSlider",props:{tinyColor:{},modelValue:{},value:{}},emits:d0,setup(e,{emit:t}){const n=p0(e,t),i=xs(()=>{const e=n.value.toRgb(),t=[e.r,e.g,e.b].join(",");return"linear-gradient(to right, rgba("+t+", 0) 0%, rgba("+t+", 1) 100%)"}),r=xs(()=>n.value.getAlpha());function o(e){n.value=n.value.setAlpha(e).clone()}return(e,t)=>(Ta(),La(A0,{class:"vc-alpha-slider",modelValue:r.value,max:1,"aria-label":"Transparency","onUpdate:modelValue":o},{background:Jn(()=>[Ha(O0),qa("div",{class:"gradient",style:Y({background:i.value})},null,4)]),_:1},8,["modelValue"]))}}),F0=k0(P0,[["__scopeId","data-v-07dd346b"]]),$0={class:"vc-editable-input"},M0=["value","aria-label"],L0={key:0,class:"vc-input-desc","aria-hidden":"true"},N0=Bi({__name:"EditableInput",props:{value:{},label:{},desc:{},max:{},min:{},step:{default:1},a11y:{}},emits:["change","blur"],setup(e,{emit:t}){const n=e,i=t,r=n.a11y?.label??n.label,o=`input__label__${r}__${Math.random().toString().slice(2,5)}`;function a(e){const{min:t,max:r}=n;_0(r)&&+e>r?i("change",r):_0(t)&&+e<t?i("change",t):i("change",e)}function s(e){a(e.target?.value)}function l(e){i("blur",e)}function c(e){let t=Number(n.value);if(!isNaN(t)){let i=n.step;const r=function(e){const t=e.toString();return-1!==t.indexOf(".")?t.split(".")[1].length:0}(i),o=m0(e);"up"===o&&(a((t+i).toFixed(r)),e.preventDefault()),"down"===o&&(a((t-i).toFixed(r)),e.preventDefault())}}return(e,t)=>(Ta(),Ma("div",$0,[qa("input",{class:"vc-input-input",value:n.value,onKeydown:c,onInput:s,onBlur:l,"aria-label":Xt(r),id:o},null,40,M0),qa("label",{for:o,class:"vc-input-label","aria-hidden":"true"},he(n.label),1),e.desc?(Ta(),Ma("span",L0,he(e.desc),1)):Qa("",!0)]))}}),j0=k0(N0,[["__scopeId","data-v-9c267b2b"]]),B0=e=>I1(e).isValid(),R0=e=>0===I1(e).getAlpha(),V0=Bi({__name:"HexInput",props:{value:{},label:{},desc:{},a11y:{},type:{default:"hex"},withHash:{type:Boolean,default:!1}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,r={label:"hex"===n.type?"Hex":"Hex with transparency",...n.a11y},o=(e,t="hex")=>{let i="";return"hex"===t&&(i=I1(e).toHexString()),"hex8"===t&&(i=I1(e).toHex8String()),!0!==n.withHash&&(i=i.replace("#","")),i},a=Gt(o(n.value,n.type));li(()=>n.value,e=>{I1.equals(e,a.value)||(a.value=o(e,n.type))});const s=e=>{if(!e)return;a.value=e;let t=e.length;"#"===e[0]&&(t-=1),("hex"!==n.type||t%3==0||8===t)&&("hex8"===n.type&&8!==t||B0(e)&&i("change",e))},l=()=>{let e=a.value.length;"#"===a.value[0]&&(e-=1),(!B0(a.value)||!("hex"===n.type&&6===e||"hex8"===n.type&&8===e))&&(a.value=o(n.value,n.type))};return(e,t)=>(Ta(),La(j0,{label:n.label,a11y:r,value:a.value,onChange:s,onBlur:l},null,8,["label","value"]))}});const q0=e=>{const t=Gt(0),n=`__from__vc__hue__${function(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";return e.charAt(Math.floor(62*Math.random()))+e.charAt(Math.floor(62*Math.random()))}()}`;return li(e,e=>{if(e[n])return;const i=e.toHsl().h;0===i&&0!==t.value||(t.value=i)},{immediate:!0}),{hueRef:t,updateHueRef:i=>{const r=I1({...e.value.toHsl(),h:i});r[n]=!0,e.value=r,t.value=i}}},H0={class:"saturation"},z0={class:"body"},U0={class:"controls"},W0={class:"color-wrap"},G0=["aria-label"],K0={class:"sliders"},Q0={class:"hue-wrap"},Y0={key:0,class:"alpha-wrap"},J0={key:0,class:"fieldsWrap","data-testid":"fields"},X0={key:0,class:"fields"},Z0={class:"field"},e2={class:"field"},t2={class:"field"},n2={key:0,class:"field"},i2={key:1,class:"fields"},r2={class:"field"},o2={key:2,class:"fields"},a2={class:"field"},s2={class:"field"},l2={class:"field"},c2={key:0,class:"field"},u2={class:"toggle-icon",role:"presentation"},d2={style:{width:"24px",height:"24px"},viewBox:"0 0 24 24"},p2={class:"toggle-icon_highlighted",role:"presentation"},h2=Bi({__name:"ChromePicker",props:{disableAlpha:{type:Boolean},disableFields:{type:Boolean},formats:{default:()=>["rgb","hex","hsl"]},tinyColor:{},modelValue:{},value:{}},emits:d0,setup(e,{emit:t}){const n=e,i=p0(n,t),{hueRef:r,updateHueRef:o}=q0(i),a=Gt(0);let s=Gt(!1);const l=xs(()=>{const e=i.value.toRgb();return"rgba("+[e.r,e.g,e.b,i.value.getAlpha()].join(",")+")"}),c=xs(()=>{const{h:e,s:t,l:n}=i.value.toHsl();return{h:e.toFixed(),s:`${(100*t).toFixed()}%`,l:`${(100*n).toFixed()}%`}}),u=xs(()=>i.value.toRgb()),d=xs(()=>Number(i.value.getAlpha().toFixed(2))),p=new Set(["hex","hsl","rgb"]),h=xs(()=>{const e=new Set,t=[],i=n.formats;for(const n of i)if(p.has(n)){const i=n;e.has(i)||(e.add(i),t.push(i))}return t}),f=xs(()=>{const{disableFields:e,formats:t}=n;return!(!0===e||!Array.isArray(t)||0===h.value.length)}),m=e=>h.value.includes(e),g=e=>h.value.indexOf(e),v=e=>{i.value=e},y=(e,t)=>{if(!t||isNaN(Number(t)))return;const n={[e]:t};i.value={...u.value,a:d.value,...n}},b=(e,t)=>{if(!t)return;const n={[e]:+t};("s"===e||"l"===e)&&(n[e]=+t.replace("%","")/100),i.value={...i.value.toHsl(),a:d.value,...n}},k=()=>{a.value!==h.value.length-1?a.value++:a.value=0},w=()=>{s.value=!0},_=()=>{s.value=!1};return(e,t)=>(Ta(),Ma("div",{role:"application","aria-label":"Chrome Color Picker",class:te(["vc-chrome-picker",e.disableAlpha?"alpha-disabled":""])},[qa("div",H0,[Ha(w0,{tinyColor:Xt(i),"onUpdate:tinyColor":t[0]||(t[0]=e=>Wt(i)?i.value=e:null),hue:Xt(r)},null,8,["tinyColor","hue"])]),qa("div",z0,[qa("div",U0,[qa("div",W0,[qa("div",{class:"active-color",style:Y({backgroundColor:l.value}),role:"presentation","aria-live":"polite","aria-label":`Current color is ${l.value}`},null,12,G0),n.disableAlpha?Qa("",!0):(Ta(),La(O0,{key:0}))]),qa("div",K0,[qa("div",Q0,[Ha(T0,{modelValue:Xt(r),"onUpdate:modelValue":Xt(o)},null,8,["modelValue","onUpdate:modelValue"])]),n.disableAlpha?Qa("",!0):(Ta(),Ma("div",Y0,[Ha(F0,{tinyColor:Xt(i),"onUpdate:tinyColor":t[1]||(t[1]=e=>Wt(i)?i.value=e:null)},null,8,["tinyColor"])]))])]),f.value?(Ta(),Ma("div",J0,[m("rgb")?Xn((Ta(),Ma("div",X0,[qa("div",Z0,[Ha(j0,{label:"r",value:u.value.r,onChange:t[2]||(t[2]=e=>y("r",e)),a11y:{label:"Red"}},null,8,["value"])]),qa("div",e2,[Ha(j0,{label:"g",value:u.value.g,onChange:t[3]||(t[3]=e=>y("g",e)),a11y:{label:"Green"}},null,8,["value"])]),qa("div",t2,[Ha(j0,{label:"b",value:u.value.b,onChange:t[4]||(t[4]=e=>y("b",e)),a11y:{label:"Blue"}},null,8,["value"])]),e.disableAlpha?Qa("",!0):(Ta(),Ma("div",n2,[Ha(j0,{label:"a",value:d.value,step:.01,max:1,onChange:t[5]||(t[5]=e=>y("a",e)),a11y:{label:"Transparency"}},null,8,["value"])]))],512)),[[pl,a.value===g("rgb")]]):Qa("",!0),m("hex")?Xn((Ta(),Ma("div",i2,[qa("div",r2,[Ha(V0,{type:1===d.value?"hex":"hex8",label:"hex",value:Xt(i).toHex8String(),onChange:v,"with-hash":!0},null,8,["type","value"])])],512)),[[pl,a.value===g("hex")]]):Qa("",!0),m("hsl")?Xn((Ta(),Ma("div",o2,[qa("div",a2,[Ha(j0,{label:"h",value:Xt(r).toFixed(),onChange:t[6]||(t[6]=e=>b("h",e)),a11y:{label:"Hue"}},null,8,["value"])]),qa("div",s2,[Ha(j0,{label:"s",value:c.value.s,onChange:t[7]||(t[7]=e=>b("s",e)),a11y:{label:"Saturation"}},null,8,["value"])]),qa("div",l2,[Ha(j0,{label:"l",value:c.value.l,onChange:t[8]||(t[8]=e=>b("l",e)),a11y:{label:"Lightness"}},null,8,["value"])]),e.disableAlpha?Qa("",!0):(Ta(),Ma("div",c2,[Ha(j0,{label:"a",value:d.value,step:.01,max:1,onChange:t[9]||(t[9]=e=>b("a",e)),a11y:{label:"Transparency"}},null,8,["value"])]))],512)),[[pl,a.value===g("hsl")]]):Qa("",!0),h.value.length>1?(Ta(),Ma("div",{key:3,class:"toggle-btn",onClick:k,onKeydown:[wc(k,["enter"]),wc(k,["space"])],onMouseover:w,onMouseenter:w,onMouseout:_,onFocus:w,onBlur:_,role:"button","aria-label":"Change color format",tabindex:"0"},[qa("div",u2,[(Ta(),Ma("svg",d2,t[10]||(t[10]=[qa("path",{fill:"currentColor",d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"},null,-1)])))]),Xn(qa("div",p2,null,512),[[pl,Xt(s)]])],32)):Qa("",!0)])):Qa("",!0)])],2))}}),f2=k0(h2,[["__scopeId","data-v-dfdde7e0"]]),m2={class:"vc-compact-picker",role:"application","aria-label":"Compact color picker",tabindex:"0"},g2={class:"colors",role:"listbox","aria-label":"Pick a color"},v2=["onClick","aria-label","aria-selected","title","onKeydown"],y2={class:"dot"},b2=["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#CCCCCC","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],k2=(["change"].concat(d0),{role:"application","aria-label":"Grayscale color picker",class:"vc-grayscale-picker"}),w2={class:"colors",role:"listbox","aria-label":"Select a grayscale color",tabindex:"0"},_2=["onClick","aria-label","aria-selected","title","onKeydown"],C2={class:"dot"},x2=["#FFFFFF","#F2F2F2","#E6E6E6","#D9D9D9","#CCCCCC","#BFBFBF","#B3B3B3","#A6A6A6","#999999","#8C8C8C","#808080","#737373","#666666","#595959","#4D4D4D","#404040","#333333","#262626","#0D0D0D","#000000"],S2=(["change"].concat(d0),{class:"title","aria-hidden":"true"}),E2={class:"body"},A2={class:"saturation"},D2={class:"hue"},T2={class:"preview"},I2={class:"preview-label","aria-hidden":"true"},O2={class:"preview-swatches"},P2=["aria-label"],F2=["aria-label"],$2={class:"preview-label","aria-hidden":"true"},M2={key:0,class:"actions"},L2=["aria-label"],N2={class:"fields"},j2=["aria-label"],B2=(Boolean,Boolean,d0.concat(["ok","cancel","reset"]),{class:"saturation"}),R2={class:"controls"},V2={class:"sliders"},q2={class:"hue"},H2={key:0,class:"alpha"},z2={class:"color"},U2=["aria-label"],W2={key:0,class:"field"},G2={class:"field_double"},K2={class:"field_single"},Q2={class:"field_single"},Y2={class:"field_single"},J2={key:0,class:"field_single"},X2={class:"presets",role:"listbox","aria-label":"A color preset, pick one to set as current color"},Z2=["onClick","title","aria-label","aria-selected","onKeydown"],e4=["onClick","aria-selected","title","onKeydown"],t4=["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF","rgba(0,0,0,0)"],n4=(Boolean,Boolean,["change"].concat(d0),{role:"application","aria-label":"Slider color picker",class:"vc-slider-picker"}),i4={class:"hue"},r4={key:0,class:"alpha"},o4={key:1,class:"swatches",role:"listbox","aria-label":"Color segments in different shades of one color",tabindex:"0"},a4=["onClick","aria-label","title","onKeydown","aria-selected"],s4=.5,l4=[{s:s4,l:.8},{s:s4,l:.65},{s:s4,l:.5},{s:s4,l:.35},{s:s4,l:.2}];Boolean;const c4={class:"vc-hsl-sliders"},u4={class:"slider-wrap h-slider"},d4={class:"slider-wrap s-slider"},p4={class:"slider-wrap l-slider"},h4={key:0,class:"slider-wrap a-slider"};Boolean,Boolean;const f4={class:"vc-hsv-sliders"},m4={class:"slider-wrap h-slider"},g4={class:"slider-wrap s-slider"},v4={class:"slider-wrap b-slider"},y4={key:0,class:"slider-wrap"};Boolean,Boolean;const b4={class:"vc-rgb-sliders"},k4={class:"slider-wrap"},w4={class:"slider-wrap"},_4={class:"slider-wrap"},C4={key:0,class:"slider-wrap a-slider"},x4=(e,t)=>{const n=[];for(let i=1;i<=255;i++){const{r:r,g:o,b:a}={...t,[e]:i};n.push(`rgb(${r}, ${o}, ${a})`)}return`linear-gradient(to right, ${n.join(", ")})`};Boolean,Boolean;var S4={props:["activePaletteId","activeColor","activeColorId","shadeType"],components:{ChromePicker:f2},data:function(){return{activeShadeId:null,shadesEnabled:!1,shadeSteps:0,showColorPicker:!1,colorPickerValue:"hsla(46, 100%, 65%, 1)",colorPickerFormats:["hsl","rgb","hex"],colorPickerFormat:"hsl",colorPickerPopupStyle:null,activeShadeIconEl:null}},computed:{activePalette:function(){var e=this;return this.$_state.colorPalette.find(function(t){return t.id===e.activePaletteId})},activeShade:function(){var e=this;if(this.activePalette&&this.activeShadeId)return this.activePalette.colors.find(function(t){return t.id===e.activeShadeId})},shades:function(){var e,t=this;return(null===(e=this.activePalette)||void 0===e?void 0:e.colors.filter(function(e){return e.type===t.shadeType&&e.parent===t.activeColorId&&e.light}))||[]},shadesDarkMode:function(){var e,t=this;return(null===(e=this.activePalette)||void 0===e?void 0:e.colors.filter(function(e){return e.type===t.shadeType&&e.parent===t.activeColorId&&e.dark}))||[]},shadeLabel:function(){return"light"===this.shadeType?this.i18n.colorShadeLight:"dark"===this.shadeType?this.i18n.colorShadeDark:this.i18n.colorShadeTransparent}},methods:{onColorPickerClick:function(e){e.target.closest(".toggle-btn")&&("hsl"===this.colorPickerFormat?this.colorPickerFormat="rgb":"rgb"===this.colorPickerFormat?this.colorPickerFormat="hex":this.colorPickerFormat="hsl")},onStepInput:function(e){var t=parseInt(e);(isNaN(t)||t<0)&&(t=""),this.shadeSteps=t},generateShades:function(e){var t,n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"light",r=YJ(this.activeColor[i]),o=r.getFormat(),a=[],s=parseInt(this.shadeSteps),l="#ffffff",c=null;"dark"===this.shadeType?l="#000000":"transparent"===this.shadeType&&(l="rgba(255, 255, 255, 0)",c=r.toHsl());for(var u=0;u<s;u++){var d="transparent"===this.shadeType?100/(s+1)*(u+1):100/(s+1)*(s-u),p="transparent"===this.shadeType?YJ({h:c.h,s:c.s,l:c.l,a:d/100}):YJ.mix(l,r,d),h=this.activeColor.raw,f=this.activeColor.raw.match(/var\((--[a-zA-Z0-9-_]+)\)/);f&&f[1]&&(h="var(".concat(f[1],"-").concat(e.charAt(0),"-").concat(u+1,")"));var m={id:this.$_generateId(),type:e,raw:h,index:u,parent:this.activeColor.id};"light"===i?"rgb"===o||"prgb"===o?m.light=p.toRgbString():"hsl"===o||"hsla"===o||"transparent"===this.shadeType&&["name","hex"].includes(o)?m.light=p.toHslString():m.light=p.toHexString():"dark"===i&&this.activeColor.darkModeEnabled&&("rgb"===o||"prgb"===o?m.dark=p.toRgbString():"hsl"===o||"hsla"===o||"transparent"===this.shadeType&&["name","hex"].includes(o)?m.dark=p.toHslString():m.dark=p.toHexString()),a.push(m)}this.activePalette.colors=this.activePalette.colors.filter(function(t){return!(t.type===e&&t.parent===n.activeColorId&&("light"===i&&t.light||"dark"===i&&t.dark))}),(t=this.activePalette.colors).push.apply(t,a)},updateColorPickerPosition:function(){if(this.showColorPicker){var e=this.$el.querySelector('.shade[data-id="'.concat(this.showColorPicker,'"]')),t=null==e?void 0:e.querySelector(".color-picker-popup"),n=this.activeShadeIconEl||(null==e?void 0:e.querySelector(".icon.edit"));if(t&&n){var i=n.getBoundingClientRect(),r=t.getBoundingClientRect(),o=window.innerWidth,a=window.innerHeight,s=i.left+i.width/2-r.width/2;s=Math.max(8,s),s=Math.min(s,o-r.width-8);var l=i.bottom+10;l+r.height+8>a&&(l=i.top-r.height-10,l=Math.max(8,l)),this.colorPickerPopupStyle={position:"fixed",left:"".concat(Math.round(s),"px"),top:"".concat(Math.round(l),"px"),right:"auto",marginTop:"0",transform:"none"}}}},handlePickerViewportChange:function(){var e=this;this.showColorPicker&&this.$nextTick(function(){e.updateColorPickerPosition()})},editShade:function(e,t){var n,i,r=this;this.activeShadeId=e===this.activeShadeId?null:e,this.activeShadeIconEl=(null==t?void 0:t.currentTarget)||null;var o=YJ((null===(n=this.activeShade)||void 0===n?void 0:n.light)||(null===(i=this.activeShade)||void 0===i?void 0:i.dark));if(o.isValid()){var a=o.getFormat();"hsl"===a?(this.colorPickerValue=o.toHslString(),this.colorPickerFormat="hsl",this.colorPickerFormats=["hsl","rgb","hex"]):"rgb"===a?(this.colorPickerValue=o.toRgbString(),this.colorPickerFormat="rgb",this.colorPickerFormats=["rgb","hex","hsl"]):(this.colorPickerValue=o.toHexString(),this.colorPickerFormat="hex",this.colorPickerFormats=["hex","hsl","rgb"])}this.$nextTick(function(){r.showColorPicker=r.activeShadeId,r.handlePickerViewportChange()})},confirmShadeDelete:function(e){if("INPUT"===e.target.tagName){var t=confirm(this.i18n.colorShadesDeleteConfirm);t||e.preventDefault()}else e.preventDefault()},shadeToggle:function(e){var t=this;e?(this.generateShades(this.shadeType),this.activeColor.darkModeEnabled&&this.generateShades(this.shadeType,"dark")):this.shades&&(this.activePalette.colors=this.activePalette.colors.filter(function(e){return!(e.type===t.shadeType&&e.parent===t.activeColorId)}),this.shadeSteps=10),this.shadesEnabled=e},copyToClipboard:function(e){var t=this;e&&navigator.clipboard.writeText(e).then(function(){t.$_showMessage("".concat(t.i18n.copiedToClipboard,": ").concat(e))},function(e){t.$_showError("Could not copy text: ".concat(e))})}},beforeUnmount:function(){window.removeEventListener("resize",this.handlePickerViewportChange),window.removeEventListener("scroll",this.handlePickerViewportChange,!0)},watch:{"activeColor.light":{handler:function(){this.shadesEnabled&&this.generateShades(this.shadeType)}},"activeColor.dark":{handler:function(){this.shadesEnabled&&this.activeColor.darkModeEnabled&&this.generateShades(this.shadeType,"dark")}},activeShadeId:function(){var e,t,n=(null===(e=this.activeShade)||void 0===e?void 0:e.light)||(null===(t=this.activeShade)||void 0===t?void 0:t.dark);n&&(this.colorPickerValue=n)},shadeSteps:{handler:function(e,t){t&&this.shadesEnabled&&(this.generateShades(this.shadeType),this.activeColor.darkModeEnabled&&this.generateShades(this.shadeType,"dark"))},immediate:!1},showColorPicker:function(e){if(!e)return this.activeShadeId=null,this.activeShadeIconEl=null,this.colorPickerPopupStyle=null,window.removeEventListener("resize",this.handlePickerViewportChange),void window.removeEventListener("scroll",this.handlePickerViewportChange,!0);window.addEventListener("resize",this.handlePickerViewportChange),window.addEventListener("scroll",this.handlePickerViewportChange,!0),this.handlePickerViewportChange()},colorPickerValue:function(e){if(this.showColorPicker){var t="";if("string"==typeof e)t=e;else if(e&&e.hex){if(void 0!==e.a&&e.a<1)t=YJ(e).toRgbString();else t=e.hex}if(this.activeShade){var n,i,r=YJ(t);"hsl"===this.colorPickerFormat&&r.isValid()?t=r.toHslString():"rgb"===this.colorPickerFormat&&r.isValid()?t=r.toRgbString():"hex"===this.colorPickerFormat&&r.isValid()&&(t=r.toHexString()),null!==(n=this.activeShade)&&void 0!==n&&n.light&&t!==this.activeShade.light?this.activeShade.light=t:null!==(i=this.activeShade)&&void 0!==i&&i.dark&&t!==this.activeShade.dark&&(this.activeShade.dark=t)}}},activeColorId:{handler:function(){this.shades.length?(this.shadesEnabled=!0,this.shadeSteps=this.shades.length):(this.shadesEnabled=!1,this.shadeSteps=10),this.showColorPicker=!1,this.activeShadeId=null},immediate:!0}}};var E4=(0,xx.A)(S4,[["render",function(e,t,n,i,r,o){var a=$r("panel-control"),s=$r("icon"),l=$r("ChromePicker"),c=Nr("clickaway");return Ta(),Ma("div",_1,[Ha(a,{control:{type:"checkbox",label:o.shadeLabel,clearable:!1},controlKey:"shadesEnabled",settings:{shadesEnabled:r.shadesEnabled},value:r.shadesEnabled,onClick:t[0]||(t[0]=bc(function(e){return r.shadesEnabled?o.confirmShadeDelete(e):null},["stop"])),onUpdated:t[1]||(t[1]=function(e){return o.shadeToggle(e)})},null,8,["control","settings","value"]),r.shadesEnabled?(Ta(),La(a,{key:0,control:{type:"number",label:e.i18n.steps,min:1,max:20,step:1,small:!0,clearable:!1},controlKey:"shadeSteps",settings:{shadeSteps:r.shadeSteps},value:r.shadeSteps,onInput:t[2]||(t[2]=function(e){return o.onStepInput(e.target.value)}),onUpdated:t[3]||(t[3]=function(e){r.shadeSteps=e})},null,8,["control","settings","value"])):Qa("",!0),r.shadesEnabled&&Array.isArray(o.shades)?(Ta(),Ma("div",{key:1,class:te(["shades",n.shadeType]),"data-mode":"light"},[this.activeColor.darkModeEnabled?(Ta(),La(s,{key:0,name:"sun",class:"mode light","data-balloon":"".concat(e.i18n.light," (").concat(e.i18n.mode,")")},null,8,["data-balloon"])):Qa("",!0),(Ta(!0),Ma(Ca,null,Rr(o.shades,function(n){return Ta(),Ma("div",{key:n.id,class:"shade",style:Y({color:n.light}),"data-id":n.id},[qa("div",x1,[Ha(s,{name:"css3",class:"icon clipboard","data-balloon":n.raw,"data-balloon-pos":"top",onClick:bc(function(e){return o.copyToClipboard(n.raw)},["stop"])},null,8,["data-balloon","onClick"]),Ha(s,{name:"color",class:"icon clipboard","data-balloon":n.light,"data-balloon-pos":"top",onClick:bc(function(e){return o.copyToClipboard(n.light)},["stop"])},null,8,["data-balloon","onClick"]),Ha(s,{name:"edit",class:"icon edit","data-balloon":e.i18n.edit,"data-balloon-pos":"top",onClick:bc(function(e){return o.editShade(n.id,e)},["stop"])},null,8,["data-balloon","onClick"]),n.id&&n.id===r.showColorPicker?Xn((Ta(),Ma("div",{key:0,onClick:t[5]||(t[5]=function(e){return o.onColorPickerClick(e)}),style:Y(r.colorPickerPopupStyle),class:"color-picker-popup"},[Ha(l,{modelValue:r.colorPickerValue,"onUpdate:modelValue":t[4]||(t[4]=function(e){return r.colorPickerValue=e}),formats:r.colorPickerFormats},null,8,["modelValue","formats"])],4)),[[c,function(){return r.showColorPicker=!1}]]):Qa("",!0)])],12,C1)}),128))],2)):Qa("",!0),r.shadesEnabled&&Array.isArray(o.shadesDarkMode)&&o.shadesDarkMode.length?(Ta(),Ma("div",{key:2,class:te(["shades",n.shadeType]),"data-mode":"dark"},[this.activeColor.darkModeEnabled?(Ta(),La(s,{key:0,name:"moon",class:"mode dark","data-balloon":"".concat(e.i18n.dark," (").concat(e.i18n.mode,")")},null,8,["data-balloon"])):Qa("",!0),(Ta(!0),Ma(Ca,null,Rr(o.shadesDarkMode,function(n){return Ta(),Ma("div",{key:n.id,class:"shade",style:Y({color:n.dark}),"data-id":n.id},[qa("div",E1,[Ha(s,{name:"css3",class:"icon clipboard","data-balloon":n.raw,"data-balloon-pos":"top",onClick:bc(function(e){return o.copyToClipboard(n.raw)},["stop"])},null,8,["data-balloon","onClick"]),Ha(s,{name:"color",class:"icon clipboard","data-balloon":n.dark,"data-balloon-pos":"top",onClick:bc(function(e){return o.copyToClipboard(n.dark)},["stop"])},null,8,["data-balloon","onClick"]),Ha(s,{name:"edit",class:"icon edit","data-balloon":e.i18n.edit,"data-balloon-pos":"top",onClick:bc(function(e){return o.editShade(n.id,e)},["stop"])},null,8,["data-balloon","onClick"]),n.id&&n.id===r.showColorPicker?Xn((Ta(),Ma("div",{key:0,onClick:t[7]||(t[7]=function(e){return o.onColorPickerClick(e)}),style:Y(r.colorPickerPopupStyle),class:"color-picker-popup"},[Ha(l,{modelValue:r.colorPickerValue,"onUpdate:modelValue":t[6]||(t[6]=function(e){return r.colorPickerValue=e}),formats:r.colorPickerFormats},null,8,["modelValue","formats"])],4)),[[c,function(){return r.showColorPicker=!1}]]):Qa("",!0)])],12,S1)}),128))],2)):Qa("",!0)])}]]),A4=n(40100),D4=n.n(A4),T4=n(11945),I4={insert:"head",singleton:!1};D4()(T4.A,I4),T4.A.locals;function O4(e){return O4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O4(e)}function P4(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||$4(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F4(e){return function(e){if(Array.isArray(e))return M4(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||$4(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $4(e,t){if(e){if("string"==typeof e)return M4(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M4(e,t):void 0}}function M4(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var L4={components:{PopupColorShades:E4,ChromePicker:f2},data:function(){return{action:"add",activePaletteId:null,activeColorId:null,activeColorUpdate:"light",paletteName:"",newColorRaw:"",newColorValue:"",colorPickerShow:!1,colorPickerValue:"hsl(46 100% 65%)",tcColorPickerValue:"hsl(46 100% 65%)",colorPickerFormats:["hsl","rgb","hex"],colorPickerFormat:"hsl",colorHarmonyColorId:null,colorHarmonyModel:"analogous",colorHarmonyColors:[],colorRawHasFocus:!1,importResults:[],paletteGeneratedCss:"",utilityClassesConfig:{bg:{cssProperty:"background-color",cssPrefix:"bg"},text:{cssProperty:"color",cssPrefix:"text"},border:{cssProperty:"border-color",cssPrefix:"border"},outline:{cssProperty:"outline-color",cssPrefix:"outline"},fill:{cssProperty:"fill",cssPrefix:"fill"},stroke:{cssProperty:"stroke",cssPrefix:"stroke"}},colorRawOriginalValue:null}},computed:{activePaletteColors:function(){if(!this.activePalette)return[];var e=this.activePalette.colors;return Array.isArray(e)?F4(e):[]},activePaletteMainColors:function(){return this.activePaletteColors.filter(function(e){return!e.type})},hasConvertableColors:function(){return!(!this.activePaletteColors.length||this.activeColorId)&&this.activePaletteColors.some(function(e){return!e.hasOwnProperty("light")&&!e.hasOwnProperty("dark")})},hasPopulatableColorsFromVariableManager:function(){var e=this;return!(!this.activePaletteColors.length||this.activeColorId)&&this.activePaletteColors.some(function(t){return!(null!=t&&t.light)&&!e.getColorValue(t,"light",!1)&&e.getColorValue(t,"light",!0)})},hasShades:function(){var e=this;return!!this.activePaletteColors.length&&this.activePaletteColors.some(function(t){return t.type&&t.parent===e.activeColorId})},palettes:function(){return this.$_state.colorPalette},activePalette:function(){var e=this;return this.$_state.colorPalette.find(function(t){return t.id===e.activePaletteId})},options:function(){return this.$_state.colorPalette.map(function(e){return{label:e.name,value:e.id}})},activeColor:function(){var e=this;if(this.activePaletteColors.length&&this.activeColorId)return this.activePaletteColors.find(function(t){return t.id===e.activeColorId})}},methods:{reorderActivePaletteColors:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.items,i=void 0===n?[]:n,r=t.oldIndex,o=t.newIndex;if(Array.isArray(null===(e=this.activePalette)||void 0===e?void 0:e.colors)&&this.activePalette.colors.length){var a=F4(this.activePaletteColors),s=Array.isArray(i)?i.filter(function(e){return!e.type}):[];if(!s.length){if(!Number.isInteger(r)||!Number.isInteger(o)||r===o)return;var l=P4((s=F4(this.activePaletteMainColors)).splice(r,1),1)[0];if(!l)return;s.splice(o,0,l)}var c=[],u=new Set(s.map(function(e){return e.id}));s.forEach(function(e){c.push(e),c.push.apply(c,F4(a.filter(function(t){return t.type&&t.parent===e.id})))}),c.push.apply(c,F4(a.filter(function(e){return e.type&&!u.has(e.parent)}))),c.push.apply(c,F4(a.filter(function(e){return!e.type&&!u.has(e.id)}))),this.activePalette.colors=c}},onColorPickerClick:function(e){e.target.closest(".toggle-btn")&&("hsl"===this.colorPickerFormat?this.colorPickerFormat="rgb":"rgb"===this.colorPickerFormat?this.colorPickerFormat="hex":this.colorPickerFormat="hsl")},tcColorUpdated:function(e){var t,n=e._format;t="hex"===n||"hex8"===n?e._originalInput:"rgb"===n?"object"===O4(e._originalInput)?"rgba(".concat(e._originalInput.r,", ").concat(e._originalInput.g,", ").concat(e._originalInput.b,", ").concat(e._originalInput.a,")"):e._originalInput:"hex"===this.colorPickerFormat&&null!=e&&e._a&&e._a<1?e.toString("hex8"):e.toString(this.colorPickerFormat),"new"===this.colorPickerShow?this.newColorValue=t:this.activeColor&&this.colorPickerShow===this.activeColor.id&&("light"===this.activeColorUpdate?this.activeColor.light=t:"dark"===this.activeColorUpdate&&(this.activeColor.dark=t))},utilityClassesNameFromColor:function(e,t){var n=this.$_extractNameFromCssVariable(t.raw).replace(/^--/,"");return".".concat(e,"-").concat(n)},setColorHarmonyColorId:function(e,t){t?t.target.closest(".bricks-control-popup")||(this.colorHarmonyColorId=e&&e===this.colorHarmonyColorId?null:e):this.colorHarmonyColorId=null},getColorValue:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"light",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return"dark"===t?null==e?void 0:e.dark:"light"===t&&null!=e&&e.light?e.light:null!=e&&e.raw&&!e.raw.startsWith("var(")?e.raw:null!=e&&e.hsl?e.hsl:null!=e&&e.rgb||null!=e&&e.rgb?e.rgb:null!=e&&e.hex?e.hex:n?this.getColorValueFromVariableManger(e):void 0},getColorValueFromVariableManger:function(e){if(null!=e&&e.raw&&e.raw.startsWith("var(--")){var t=e.raw.replace(/^var\(--/,"").replace(/\)$/,""),n=this.$_state.globalVariables.find(function(e){return e.name===t});if(n&&n.value)return n.value}},closeImport:function(){this.action="edit",this.importResults=[]},handleVariableNameFocus:function(e,t){var n;null!=e&&e.id&&this.activeColorId===e.id&&(this.colorRawHasFocus=!0,this.colorRawOriginalValue=null===(n=this.activeColor)||void 0===n?void 0:n.raw)},handleVariableNameBlur:function(e,t){null!=e&&e.id&&this.activeColorId===e.id&&(this.colorRawHasFocus=!1,this.onVariableNameBlur(e,t))},importPalettes:function(e){var t=this;e&&e.length&&(this.importResults=[],e.forEach(function(e){if(t.$_state.colorPalette.some(function(t){return t.name===e.name}))t.importResults.push({text:t.i18n.colorPaletteImportErrorName.replace("%s",e.name),type:"error"});else{var n={id:t.$_generateId(),name:e.name,colors:e.colors};t.$_state.colorPalette.push(n),t.activePaletteId=n.id,t.action="edit",t.importResults.push({text:t.i18n.fileImported.replace("%s",n.name),type:"success"})}}),this.savePalettesInDatabase().then(function(e){null!=e&&e.success?t.$_showMessage(t.i18n.colorPaletteImportSuccessMessage):t.$_showError(t.i18n.colorPaletteImportErrorMessage),t.$_state.unsavedChanges=t.$_state.unsavedChanges.filter(function(e){return"colorPalette"!==e}),t.action="edit"}))},savePalettesInDatabase:function(){var e=this;return new Promise(function(t){e.$_http({data:{action:"bricks_save_color_palette",colorPalette:e.$_state.colorPalette},success:function(e){t(e)}})})},toggleGeneratedCss:function(){this.action="css"===this.action?"edit":"css","css"===this.action&&this.generatePaletteGeneratedCss()},generatePaletteGeneratedCss:function(){if(this.activePalette){var e=this.$_generateUtilityClassesCss({palette:this.activePalette,includeVariables:!0,includeAllColors:!0});this.paletteGeneratedCss=e.trim()}},utilityClassesEnabled:function(e,t){return!!Array.isArray(e.utilityClasses)&&e.utilityClasses.includes(t)},utilityClassesToggle:function(e){this.activeColor.utilityClasses&&Array.isArray(this.activeColor.utilityClasses)||(this.activeColor.utilityClasses=[]),this.activeColor.utilityClasses.includes(e)?this.activeColor.utilityClasses=this.activeColor.utilityClasses.filter(function(t){return t!==e}):this.activeColor.utilityClasses.push(e),this.activeColor.utilityClasses.length||delete this.activeColor.utilityClasses,this.generateUtilityClassesCss(this.activeColor),this.utilityClassesGenerate(this.activeColor)},utilityClassesGenerate:function(e){var t=this;if(this.activePalette&&e){var n=this.activePaletteColors.filter(function(t){return t.type&&t.parent===e.id}),i=[e].concat(F4(n)),r=[],o=[];i.forEach(function(n){var i=t.$_extractNameFromCssVariable(n.raw);i=i.replace(/^--/,""),Object.entries(t.utilityClassesConfig).forEach(function(a){var s=P4(a,2),l=s[0],c=s[1];if(t.utilityClassesEnabled(e,l)){var u=c.cssPrefix||l,d="".concat(u,"-").concat(i),p="brxuc_color_".concat(t.activeColor.id,"_").concat(l);n.type&&(p+="_".concat(n.type.charAt(0),"_").concat(n.index));var h=t.$_state.globalClasses.find(function(e){return e.name===d||e.id===p});if(h)d!==h.name&&(h.name=d,r.push(h));else{var f={id:p,name:d,category:"",settings:{}};t.$_state.globalClasses.push(f),o.push(f)}}})})}},generateUtilityClassesCss:function(e){if(this.activePalette&&e)return this.$_generateUtilityClassesCss({palette:this.activePalette,color:e,includeVariables:!0,includeAllColors:!1})},exportUtilityClasses:function(e){var t=this.generateUtilityClassesCss(e),n=this.$_extractNameFromCssVariable(e.raw).replace(/^--/,""),i=new Blob([t],{type:"text/css"}),r=URL.createObjectURL(i),o=document.createElement("a");o.href=r,o.download="bricks-colors-".concat(n,".css"),document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(r)},exportAllUtilityClasses:function(){if(this.activePalette){var e="";e+=this.$_generateUtilityClassesCss({palette:this.activePalette,includeVariables:!0,includeAllColors:!0});var t=new Blob([e],{type:"text/css"}),n=URL.createObjectURL(t),i=document.createElement("a");i.href=n,i.download="bricks-color-palette-".concat(this.activePalette.name.toLowerCase().replace(/\s+/g,"-"),".css"),document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(n)}},toggleUtilityClass:function(e){this.utilityClassesConfig[e].enabled=!this.utilityClassesConfig[e].enabled},onVariableNameInput:function(e,t){this.activeColor&&(this.activeColor.raw=t.replace(/[^a-z0-9\-_()]/gi,""))},onVariableNameBlur:function(e,t){var n,i=this;if(t&&t.trim()){t.startsWith("--")&&(t="var(".concat(t,")")),t.startsWith("var(--")||(t="var(--"+t.replace(/^var\(--/,"")),t.endsWith(")")||(t=t.replace(/\)$/,"")+")");var r=t.replace(/^var\(--?/,"").replace(/\)$/,"").trim();if(r){r=r.replace(/[^a-z0-9\-_]/gi,"");var o="var(--".concat(r,")");if(this.$_state.globalVariables.some(function(e){return"var(--".concat(e.name,")")===o}))return this.$_showError("".concat(this.i18n.error,": ").concat(this.i18n.variableNameExists," [").concat(this.i18n.variableManager,"]")),this.activeColor&&this.colorRawOriginalValue&&(this.activeColor.raw=this.colorRawOriginalValue),void(this.colorRawOriginalValue=null);if(this.$_state.colorPalette.some(function(e){return Array.isArray(e.colors)&&e.colors.some(function(e){return e.raw===o&&e.id!==i.activeColorId})}))return this.$_showError("".concat(this.i18n.error,": ").concat(this.i18n.variableNameExists," [").concat(this.i18n.colorPalette,"]")),this.activeColor&&this.colorRawOriginalValue&&(this.activeColor.raw=this.colorRawOriginalValue),void(this.colorRawOriginalValue=null);this.activeColor&&(this.activeColor.raw=o),this.activePaletteColors.length&&this.activePaletteColors.forEach(function(e){if(e.parent===i.activeColorId){var t,n=null===(t=e.raw)||void 0===t||null===(t=t.match(/-[a-z]-([0-9]+)\)$/i))||void 0===t?void 0:t[1],o=Number.isFinite(Number(n))?Number(n):Number.isFinite(Number(e.index))?Number(e.index)+1:1;e.raw="var(--".concat(r,"-").concat(e.type.charAt(0),"-").concat(o,")")}}),null!==(n=this.activeColor)&&void 0!==n&&n.utilityClasses&&this.utilityClassesGenerate(e),this.colorRawOriginalValue=null}else{if(this.colorRawOriginalValue)this.activeColor&&(this.activeColor.raw=this.colorRawOriginalValue);else{var a=this.$_generateId(),s="var(--bricks-color-".concat(a,")");this.activeColor&&(this.activeColor.raw=s)}this.colorRawOriginalValue=null}}else{if(this.colorRawOriginalValue)this.activeColor&&(this.activeColor.raw=this.colorRawOriginalValue);else{var l=this.$_generateId(),c="var(--bricks-color-".concat(l,")");this.activeColor&&(this.activeColor.raw=c)}this.colorRawOriginalValue=null}},getShades:function(e,t){return this.activePaletteColors.filter(function(n){return n.type===e&&n.parent===t.id})},updateHarmonyColorRaw:function(e,t){this.colorHarmonyColors[e]&&(t.startsWith("var(--")||(t="var(--"+t.replace(/^var\(--/,"")),t.endsWith(")")||(t=t.replace(/\)$/,"")+")"),t=t.replace(/[^a-z0-9-_()]/gi,""),this.colorHarmonyColors[e].raw=t)},addHarmonyColorsToPalette:function(){var e=this;if(this.colorHarmonyColors.length&&this.activePalette){this.colorHarmonyColors.forEach(function(t){var n,i=Array.isArray(null===(n=e.activePalette)||void 0===n?void 0:n.colors)?e.activePalette.colors.findIndex(function(e){return e.raw===t.raw}):-1;-1!==i&&e.activePalette.colors.splice(i,1)});var t,n=this.activePaletteColors.findIndex(function(t){return t.id===e.colorHarmonyColorId});if(-1!==n&&Array.isArray(this.activePalette.colors))(t=this.activePalette.colors).splice.apply(t,[n+1,0].concat(F4(this.colorHarmonyColors)));this.colorHarmonyColors=[],this.colorHarmonyColorId=null}},generateHarmonyColors:function(){var e=this;if(this.colorHarmonyColors=[],this.colorHarmonyColorId&&this.activePalette){var t=this.activePaletteColors.find(function(t){return t.id===e.colorHarmonyColorId});if(t){var n="harmony-";if(t.raw){var i=t.raw.match(/var\(--([a-z0-9-_]+)\)/i);i&&i[1]&&(n=i[1]+"-")}var r=YJ(t.light);if(r.isValid()){var o=YJ(t.light)[this.colorHarmonyModel]();Array.isArray(o)||(o=[o]),o.forEach(function(t,i){if(t.toHexString()!==r.toHexString()){var o="var(--".concat(n+(i+1),")"),a={id:e.$_generateId(),name:"",raw:o,light:e.convertToHslString(t)};e.colorHarmonyColors.push(a)}})}}}},populateColorValueFromVariableManager:function(e){var t=this;if(e||!this.activePalette){var n,i=null!=e&&e.raw?this.$_extractNameFromCssVariable(e.raw).replace(/^--/,""):null,r=i?this.$_state.globalVariables.find(function(e){return e.name===i}):null;if(null!=r&&r.value)e.light=r.value,null!=e&&null!==(n=e.raw)&&void 0!==n&&n.startsWith("var(")&&null!=e&&e.name&&delete e.name,this.$_showMessage("".concat(this.i18n.colorPalettePopulatedFromVariableManager," (").concat(i,")"))}else{this.activePaletteColors.filter(function(e){return!(null!=e&&e.light)&&!t.getColorValue(e,"light",!1)&&t.getColorValue(e,"light",!0)}).forEach(function(e){t.populateColorValueFromVariableManager(e)})}},convertColors:function(){var e=this;this.activePalette&&this.activePaletteColors.filter(function(e){return!e.light}).forEach(function(t){e.convertColor(t)})},convertColor:function(e){var t=this.getColorValue(e),n=YJ(t);if(t&&!n.isValid())return console.warn("Invalid color",e,t),void this.$_showError(this.i18n.colorPaletteConvertErrorInvalidColor);var i="";null!=e&&e.raw&&e.raw.startsWith("var(")?i=this.$_extractNameFromCssVariable(e.raw):null!=e&&e.name?i=this.$_extractNameFromCssVariable(e.name):this.activePaletteColors.length&&(i="color-"+(this.activePaletteColors.length+1)),i=i.replace(/[^a-z0-9-_]/gi,""),e.raw="var(".concat(i,")");var r=n.getFormat();e.light=t?this.formatColorByScheme(n,r):null,e.id||(e.id=this.$_generateId()),delete e.name,delete e.hex,delete e.rgb,delete e.hsl},convertToHslString:function(e){var t=e.toHsl(),n=function(e){return Number((100*e).toFixed(2))};return"hsl(".concat(Math.round(t.h)," ").concat(n(t.s),"% ").concat(n(t.l),"%").concat(t.a<1?" / ".concat(t.a):"",")")},formatColorByScheme:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hex";return"rgb"===t||"prgb"===t?e.toRgbString():"hsl"===t||"hsla"===t?this.convertToHslString(e):e.toHexString()},editColor:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"light";e&&(this.activeColorUpdate=i,this.activeColorId=e!==this.activeColorId||n?e:null,n&&this.$nextTick(function(){var e=YJ(t.getColorValue(t.activeColor,i));if(e.isValid()){var n=e.getFormat();"hsl"===n?(t.colorPickerValue=e.toHslString(),t.colorPickerFormat="hsl",t.colorPickerFormats=["hsl","rgb","hex"]):"rgb"===n?(t.colorPickerValue=e.toRgbString(),t.colorPickerFormat="rgb",t.colorPickerFormats=["rgb","hex","hsl"]):(t.colorPickerValue=e.toHexString(),t.colorPickerFormat="hex",t.colorPickerFormats=["hex","hsl","rgb"]),t.tcColorPickerValue=t.colorPickerValue}setTimeout(function(){t.colorPickerShow=t.activeColorId},0)}))},deleteColor:function(e){if(this.$_state.deleteItem===e){if(this.activePaletteColors.length){var t,n=this.activePaletteColors.findIndex(function(t){return t.id===e});-1!==n&&Array.isArray(null===(t=this.activePalette)||void 0===t?void 0:t.colors)&&(this.activePalette.colors.splice(n,1),this.activePalette.colors=this.activePalette.colors.filter(function(t){return t.parent!==e}))}this.activeColorId===e&&(this.activeColorId=null),this.$_state.deleteItem=null}else this.$_deleteConfirmation(e)},addColor:function(){var e=this;if(this.newColorValue){var t=this.newColorRaw?this.newColorRaw.trim():"",n=this.newColorValue.trim(),i=this.$_generateId();if(t||(t="var(--bricks-color-".concat(i,")")),t.startsWith("var(")||(t="var(".concat(this.$_extractNameFromCssVariable(t),")")),this.$_state.globalVariables.some(function(e){return"var(--".concat(e.name,")")===t}))this.$_showError("".concat(this.i18n.error,": ").concat(this.i18n.variableNameExists," [").concat(this.i18n.variableManager,"]"));else{var r=this.$_state.colorPalette.some(function(e){return Array.isArray(e.colors)&&e.colors.some(function(e){return e.raw===t})});if(r)this.$_showError("".concat(this.i18n.error,": ").concat(this.i18n.variableNameExists," [").concat(this.i18n.colorPalette,"]"));else{var o={id:i,raw:t,light:n};null;var a=this.$_state.colorPalette.find(function(t){return t.id===e.activePaletteId});a&&(null!=a&&a.colors||(a.colors=[]),a.colors.push(o)),this.newColorRaw="",this.newColorValue="",this.colorPickerValue="hsl(46 100% 65%)",this.tcColorPickerValue=this.colorPickerValue,this.colorPickerShow=!1,this.activeColorId=o.id}}}},createPalette:function(){var e=this;if(this.paletteName){var t={id:this.$_generateId(),name:this.paletteName,colors:[]};this.$_state.colorPalette.push(t),this.activePaletteId=t.id,this.action="edit",this.paletteName="",this.$nextTick(function(){var t=e.$refs.newColorRawInput;t&&t.focus()})}},exportPalette:function(){var e=this,t=this.$_state.colorPalette.find(function(t){return t.id===e.activePaletteId});if(t){var n=t.name.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-_]/g,"");this.$_exportAsJsonFile(t,"bricks-styles-color-palette-".concat(n))}},deletePalette:function(){var e=this;if(this.$_state.deleteItem===this.activePaletteId){var t,n=this.$_state.colorPalette.findIndex(function(t){return t.id===e.activePaletteId});-1!==n&&this.$_state.colorPalette.splice(n,1),this.activePaletteId=(null===(t=this.$_state.colorPalette[0])||void 0===t?void 0:t.id)||null,this.action=this.activePaletteId?"edit":"add",this.$_state.deleteItem=null}else this.$_deleteConfirmation(this.activePaletteId)},toggleDarkMode:function(e){var t=this;if(this.activeColor){if(!e)if(!confirm(this.i18n.darkModeDisableAlert))return this.activeColor.darkModeEnabled=!0,void this.$_rerenderControls();if(e){var n;this.activeColor.darkModeEnabled=!0;var i=null!==(n=this.activeColor)&&void 0!==n&&n.light?YJ(this.activeColor.light):null;if(i&&i.isValid()){var r=i.getFormat(),o=i.toHsl();o.l=1-o.l,o.l>.4&&o.l<.6&&(o.l=o.l<.5?.2:.8),this.activeColor.dark=this.formatColorByScheme(YJ(o),r)}}else{var a;delete this.activeColor.darkModeEnabled,delete this.activeColor.dark,Array.isArray(null===(a=this.activePalette)||void 0===a?void 0:a.colors)&&this.activePalette.colors.length&&(this.activePalette.colors=this.activePalette.colors.filter(function(e){return!(e.parent===t.activeColorId&&e.dark)}))}}}},mounted:function(){var e;if(null!==(e=this.$_state.colorPalette)&&void 0!==e&&e.length&&this.$_state.colorPalette.forEach(function(e){Array.isArray(e.colors)||(e.colors=[]),e.colors.forEach(function(e){"string"==typeof(null==e?void 0:e.raw)&&e.raw.startsWith("var(")&&null!=e&&e.name&&delete e.name})}),this.palettes.length){var t=localStorage.getItem("brx_builder_color_palette_id");if(t&&this.palettes.some(function(e){return e.id===t}))this.activePaletteId=t;else{var n=this.palettes.find(function(e){return e.default});this.activePaletteId=n?n.id:this.palettes[this.palettes.length-1].id}this.action="edit"}},watch:{colorHarmonyModel:function(){this.generateHarmonyColors()},colorHarmonyColorId:function(){this.generateHarmonyColors()},activeColorId:function(){this.colorPickerShow=!1},activePaletteId:function(e){e&&localStorage.setItem("brx_builder_color_palette_id",e),"css"===this.action&&this.generatePaletteGeneratedCss(),this.activeColorId=null},"activePalette.colors":{handler:function(){"css"===this.action&&this.generatePaletteGeneratedCss()},deep:!0},colorPickerShow:function(){if("new"===this.colorPickerShow){var e=YJ(this.newColorValue);if(e.isValid()){var t=e.getFormat();"hsl"===t?(this.colorPickerValue=e.toHslString(),this.colorPickerFormat="hsl",this.colorPickerFormats=["hsl","rgb","hex"]):"rgb"===t?(this.colorPickerValue=e.toRgbString(),this.colorPickerFormat="rgb",this.colorPickerFormats=["rgb","hex","hsl"]):(this.colorPickerValue=e.toHexString(),this.colorPickerFormat="hex",this.colorPickerFormats=["hex","hsl","rgb"])}else this.colorPickerValue="hsl(46 100% 65%)",this.colorPickerFormat="hsl",this.colorPickerFormats=["hsl","rgb","hex"];this.tcColorPickerValue=this.colorPickerValue}}}};const N4=(0,xx.A)(L4,[["render",function(e,t,n,i,r,o){var a,s=$r("control-info"),l=$r("control-select"),c=$r("icon"),u=$r("panel-control"),d=$r("ChromePicker"),p=$r("panel-control-popup"),h=$r("popup-color-shades"),f=$r("sortable"),m=$r("control-file-import"),g=Nr("clickaway");return Ta(),Ma(Ca,null,[qa("div",QX,[qa("h1",{textContent:he(e.i18n.colors)},null,8,YX),qa("p",{class:"description",innerHTML:e.i18n.colorManagerDesc},null,8,JX)]),o.palettes.length?(Ta(),Ma("div",XX,["palette"===r.action&&o.activePalette?Xn((Ta(),Ma("input",{key:0,type:"text",placeholder:e.i18n.colorPalette,spellcheck:"false","onUpdate:modelValue":t[0]||(t[0]=function(e){return o.activePalette.name=e})},null,8,ZX)),[[ac,o.activePalette.name]]):(Ta(),La(l,{key:1,control:{options:o.options,placeholder:e.i18n.select,clearable:!1},"data-balloon":"".concat(e.i18n.colorPalette," (").concat(e.i18n.active,")"),value:r.activePaletteId,"onUpdate:value":t[1]||(t[1]=function(e){return r.activePaletteId=e})},null,8,["control","data-balloon","value"])),qa("div",eZ,[o.hasPopulatableColorsFromVariableManager?(Ta(),Ma("div",{key:0,class:"action convert","data-balloon":e.i18n.colorPalettePopulateAllColorsFromVarManager,"data-balloon-pos":"top-right",onClick:t[2]||(t[2]=bc(function(e){return o.populateColorValueFromVariableManager()},["stop"]))},[Ha(c,{name:"curly-brackets"})],8,tZ)):o.hasConvertableColors?(Ta(),Ma("div",{key:1,class:"action convert","data-balloon":e.i18n.colorPaletteConvertAllColorsToVariable,"data-balloon-pos":"top-right",onClick:t[3]||(t[3]=bc(function(e){return o.convertColors()},["stop"]))},[Ha(c,{name:"convert"})],8,nZ)):Qa("",!0),qa("div",{class:te(["action",{active:"palette"===r.action}]),"data-balloon":"".concat(e.i18n.rename," / ").concat(e.i18n.delete," (").concat(e.i18n.colorPalette,")"),"data-balloon-pos":"top-right",onClick:t[4]||(t[4]=function(e){return r.action="palette"===r.action?"edit":"palette"})},[Ha(c,{name:"edit"})],10,iZ),"palette"!==r.action?(Ta(),Ma("div",{key:2,class:te(["action",{active:"add"===r.action}]),"data-balloon":"".concat(e.i18n.create," (").concat(e.i18n.colorPalette,")"),"data-balloon-pos":"top-right",onClick:t[5]||(t[5]=function(e){return r.action="add"})},[Ha(c,{name:"add"})],10,rZ)):Qa("",!0),"palette"!==r.action?(Ta(),Ma("div",{key:3,class:te(["action","import",{active:"import"===r.action}]),"data-balloon":"".concat(e.i18n.import," (").concat(e.i18n.colorPalette,")"),"data-balloon-pos":"top-right",onClick:t[6]||(t[6]=function(e){return r.action="import"===r.action?"edit":"import"})},[Ha(c,{name:"import"})],10,oZ)):Qa("",!0),"palette"!==r.action?(Ta(),Ma("div",{key:4,class:te(["action","export",{active:"export"===r.action}]),"data-balloon":"".concat(e.i18n.export," (").concat(e.i18n.colorPalette,")"),"data-balloon-pos":"top-right",onClick:t[7]||(t[7]=function(e){return o.exportPalette()})},[Ha(c,{name:"export"})],10,aZ)):Qa("",!0),"palette"===r.action&&o.activePalette?(Ta(),Ma("div",{key:5,class:"action","data-balloon":"".concat(e.i18n.delete," (").concat(e.i18n.colorPalette,")"),"data-balloon-pos":"top-right",onClick:t[8]||(t[8]=function(e){return o.deletePalette()})},[Ha(c,{name:e.$_state.deleteItem===(null===(a=o.activePalette)||void 0===a?void 0:a.id)?"check":"trash"},null,8,["name"])],8,sZ)):Qa("",!0),"edit"!==r.action&&"css"!==r.action||!o.activePaletteColors.some(function(e){return!e.type&&e.light})?Qa("",!0):(Ta(),Ma("div",{key:6,class:te(["action",{active:"css"===r.action}]),"data-balloon":e.i18n.generatedCss,"data-balloon-pos":"top-right",onClick:t[9]||(t[9]=function(e){return o.toggleGeneratedCss()})},[Ha(c,{name:"css3"})],10,lZ))])])):(Ta(),La(s,{key:0,control:{content:e.i18n.colorPalettesEmpty}},null,8,["control"])),o.hasConvertableColors&&"edit"===r.action?(Ta(),La(s,{key:2,control:{content:e.i18n.colorPaletteConvertAllColorsInfo,dismissible:!0}},null,8,["control"])):Qa("",!0),"css"===r.action&&o.activePalette?(Ta(),Ma("div",cZ,[qa("div",uZ,[qa("h5",{class:"title",textContent:he(e.i18n.generatedCss)},null,8,dZ),qa("div",pZ,[qa("div",{class:"action","data-balloon":"".concat(e.i18n.export,": ").concat(e.i18n.file," (CSS)"),"data-balloon-pos":"top-right",onClick:t[10]||(t[10]=function(e){return o.exportAllUtilityClasses()})},[Ha(c,{name:"export"})],8,hZ)])]),(Ta(),La(u,{key:r.paletteGeneratedCss.length,controlKey:"paletteGeneratedCss",control:{type:"code",readonly:!0,mode:"css",header:!1},settings:{paletteGeneratedCss:r.paletteGeneratedCss}},null,8,["settings"]))])):Qa("",!0),"edit"===r.action&&o.activePalette?(Ta(),Ma("div",fZ,[o.activePaletteColors.length?Qa("",!0):(Ta(),La(s,{key:0,control:{content:e.i18n.colorPaletteNoColorsDescription}},null,8,["control"])),o.activePaletteMainColors.length?(Ta(),La(f,{key:1,tag:"ul",class:"color-list",parent:o.activePaletteMainColors,options:{direction:"vertical",itemClass:"sortable",handleClass:"move",updateOn:"dragend"},onUpdate:o.reorderActivePaletteColors},{default:Jn(function(){return[(Ta(!0),Ma(Ca,null,Rr(o.activePaletteMainColors,function(n,i){var a;return Ta(),Ma("li",{key:"".concat(i,"-").concat(n.id),class:te(["sortable",{active:r.activeColorId===n.id}]),"data-id":n.id,"data-index":i},[n.hasOwnProperty("light")?(Ta(),Ma("div",EZ,[r.activeColorId?Qa("",!0):(Ta(),Ma("div",{key:0,class:"action move","data-balloon":e.i18n.move},GX(t[32]||(t[32]=[qa("span",{class:"handle-bar","aria-hidden":"true"},null,-1)])),8,AZ)),qa("div",{class:te(["color-swatch-wrapper",{"has-dark-mode":n.darkModeEnabled}])},[qa("div",{style:Y({backgroundColor:o.getColorValue(n,"light")}),class:"color-swatch light","data-balloon":e.i18n.edit,onClick:bc(function(e){return o.editColor(n.id,!0,"light")},["stop"])},null,12,DZ),n.darkModeEnabled?(Ta(),Ma("div",{key:0,style:Y({backgroundColor:o.getColorValue(n,"dark")}),class:"color-swatch dark","data-balloon":"".concat(e.i18n.edit," (").concat(e.i18n.darkMode,")"),onClick:bc(function(e){return o.editColor(n.id,!0,"dark")},["stop"])},null,12,TZ)):Qa("",!0),r.colorPickerShow===n.id?Xn((Ta(),Ma("div",{key:1,onClick:t[13]||(t[13]=function(e){return o.onColorPickerClick(e)}),class:"color-picker-popup"},[Ha(d,{tinyColor:r.tcColorPickerValue,"onUpdate:tinyColor":[t[11]||(t[11]=function(e){return r.tcColorPickerValue=e}),t[12]||(t[12]=function(e){return o.tcColorUpdated(e)})],formats:r.colorPickerFormats},null,8,["tinyColor","formats"])])),[[g,function(){return r.colorPickerShow=!1}]]):Qa("",!0)],2),qa("div",IZ,[Xn(qa("input",{type:"text",spellcheck:"false",readonly:r.activeColorId!==n.id,"onUpdate:modelValue":function(e){return n.raw=e},onFocus:function(e){return o.handleVariableNameFocus(n,e.target.value)},onBlur:function(e){return o.handleVariableNameBlur(n,e.target.value)},onInput:function(e){return o.onVariableNameInput(n,e.target.value)}},null,40,OZ),[[ac,n.raw]])]),qa("div",{class:"raw color light","data-balloon":e.i18n.color,"data-balloon-pos":"top-left"},[Xn(qa("input",{type:"text",spellcheck:"false",readonly:r.activeColorId!==n.id,title:n.light,"onUpdate:modelValue":function(e){return n.light=e}},null,8,FZ),[[ac,n.light]])],8,PZ),n.darkModeEnabled?(Ta(),Ma("div",{key:1,class:"raw color dark","data-balloon":"".concat(e.i18n.color," (").concat(e.i18n.darkMode,")"),"data-balloon-pos":"top-left"},[Xn(qa("input",{type:"text",spellcheck:"false",readonly:r.activeColorId!==n.id,title:n.dark,"onUpdate:modelValue":function(e){return n.dark=e}},null,8,MZ),[[ac,n.dark]])],8,$Z)):Qa("",!0),qa("div",LZ,[qa("div",{class:te(["action",{empty:!o.getShades("light",n).length}]),"data-balloon":"".concat(e.i18n.colorShadeLight," (").concat(o.getShades("light",n).length,")"),"data-balloon-pos":"top-right"},[Ha(c,{name:"sun"})],10,NZ),qa("div",{class:te(["action",{empty:!o.getShades("dark",n).length}]),"data-balloon":"".concat(e.i18n.colorShadeDark," (").concat(o.getShades("dark",n).length,")"),"data-balloon-pos":"top-right"},[Ha(c,{name:"moon"})],10,jZ),qa("div",{class:te(["action",{empty:!o.getShades("transparent",n).length}]),"data-balloon":"".concat(e.i18n.colorShadeTransparent," (").concat(o.getShades("transparent",n).length,")"),"data-balloon-pos":"top-right"},[Ha(c,{name:"opacity"})],10,BZ),qa("div",{class:te(["action",{empty:!(null!=n&&n.utilityClasses)}]),"data-balloon":"".concat(e.i18n.utilityClasses," (").concat(Array.isArray(n.utilityClasses)?n.utilityClasses.length:0,")"),"data-balloon-pos":"top-right"},[Ha(c,{name:"css3"})],10,RZ)]),qa("div",VZ,[r.activeColorId===n.id?(Ta(),Ma("div",{key:0,class:te(["action","delete",{active:e.$_state.deleteItem===n.id}]),"data-balloon":e.i18n.delete,"data-balloon-pos":"top-right",onClick:bc(function(e){return o.deleteColor(n.id)},["stop"])},[Ha(c,{name:e.$_state.deleteItem===n.id?"check":"trash"},null,8,["name"])],10,qZ)):Qa("",!0),qa("div",{class:te(["action","edit",{active:r.activeColorId===n.id}]),"data-balloon":e.i18n.edit,"data-balloon-pos":"top-right",onClick:bc(function(e){return o.editColor(n.id)},["stop"])},[Ha(c,{name:"edit"})],10,HZ),qa("div",{class:te(["action","harmony",{active:r.colorHarmonyColorId===n.id}]),"data-balloon":"".concat(e.i18n.create,": ").concat(e.i18n.colorHarmonies),"data-balloon-pos":"top-right",onClick:bc(function(e){return o.setColorHarmonyColorId(n.id,e)},["stop"])},[Ha(c,{name:"design-palette"}),Xn((Ta(),La(p,{class:"color-harmony-popup"},{default:Jn(function(){return[Ha(u,{control:{type:"select",options:[{value:"analogous",label:e.i18n.colorHarmonyAnalogous},{value:"monochromatic",label:e.i18n.colorHarmonyMonochromatic},{value:"complement",label:e.i18n.colorHarmonyComplementary},{value:"splitcomplement",label:e.i18n.colorHarmonySplitComplementary},{value:"triad",label:e.i18n.colorHarmonyTriadic},{value:"tetrad",label:e.i18n.colorHarmonyTetradic}],label:e.i18n.colorHarmony,placeholder:e.i18n.select,clearable:!1},controlKey:"colorHarmonyModel",settings:{colorHarmonyModel:r.colorHarmonyModel},value:r.colorHarmonyModel,onUpdated:t[14]||(t[14]=function(e){return r.colorHarmonyModel=e})},null,8,["control","settings","value"]),qa("div",UZ,[qa("label",{textContent:he(e.i18n.colorPreview)},null,8,WZ),qa("ul",GZ,[(Ta(!0),Ma(Ca,null,Rr(r.colorHarmonyColors,function(e,t){return Ta(),Ma("li",{key:e.raw,class:"color"},[qa("div",{class:"swatch","data-balloon":e.light,style:Y({backgroundColor:e.light})},[Ha(c,{name:"trash",class:"icon delete",onClick:bc(function(e){return r.colorHarmonyColors.splice(t,1)},["stop"])},null,8,["onClick"])],12,KZ),qa("input",{class:"variable-name",value:e.raw,onBlur:function(e){return o.updateHarmonyColorRaw(t,e.target.value)},spellcheck:"false"},null,40,QZ)])}),128))])]),qa("button",{type:"submit",class:"generate-harmony",disabled:!r.colorHarmonyColors.length,onClick:t[15]||(t[15]=function(e){return o.addHarmonyColorsToPalette()}),textContent:he(e.i18n.generateColors)},null,8,YZ)]}),_:1})),[[pl,r.colorHarmonyColorId===n.id],[g,function(){return o.setColorHarmonyColorId(null)}]])],10,zZ)]),r.activeColorId===n.id?(Ta(),Ma("div",JZ,[r.colorRawHasFocus&&o.hasShades?(Ta(),La(s,{key:0,control:{content:e.i18n.colorVariableNameFocusInfo,dismissible:!0}},null,8,["control"])):Qa("",!0),qa("div",XZ,[Ha(u,{control:{type:"checkbox",label:e.i18n.enableDarkMode},controlKey:"darkModeEnabled",settings:o.activeColor,value:null===(a=o.activeColor)||void 0===a?void 0:a.darkModeEnabled,onUpdated:t[16]||(t[16]=function(e){return o.toggleDarkMode(e)})},null,8,["control","settings","value"])]),(Ta(),Ma(Ca,null,Rr(["light","dark","transparent"],function(e){return Ha(h,{key:e,activePaletteId:r.activePaletteId,activeColorId:r.activeColorId,activeColor:o.activeColor,colorPickerFormats:r.colorPickerFormats,shadeType:e},null,8,["activePaletteId","activeColorId","activeColor","colorPickerFormats","shadeType"])}),64)),qa("div",ZZ,[qa("div",e1,[qa("h5",{class:"title",textContent:he(e.i18n.utilityClasses)},null,8,t1)]),qa("p",{class:"description",textContent:he(e.i18n.utilityClassesDescriptionColors)},null,8,n1),qa("div",i1,[(Ta(!0),Ma(Ca,null,Rr(r.utilityClassesConfig,function(e,t){return Ta(),Ma("div",{key:t,class:te(["utility-toggle",t,{active:o.utilityClassesEnabled(o.activeColor,t)}]),"data-balloon":o.utilityClassesNameFromColor(e.cssPrefix,o.activeColor),textContent:he(e.cssProperty),onClick:bc(function(e){return o.utilityClassesToggle(t)},["stop"])},null,10,r1)}),128))])])])):Qa("",!0)])):(Ta(),Ma("div",gZ,[r.activeColorId?Qa("",!0):(Ta(),Ma("div",{key:0,class:"action move","data-balloon":e.i18n.move},GX(t[31]||(t[31]=[qa("span",{class:"handle-bar","aria-hidden":"true"},null,-1)])),8,vZ)),qa("div",yZ,[qa("div",{style:Y({backgroundColor:o.getColorValue(n,"light",!0)}),class:"color-swatch","data-balloon":o.getColorValue(n,"light",!0)},null,12,bZ)]),qa("div",{class:"raw",textContent:he(n.name)},null,8,kZ),qa("input",{type:"text",class:"value read-only",spellcheck:"false",readonly:!0,placeholder:o.getColorValue(n,"light",!0)},null,8,wZ),qa("div",_Z,[o.getColorValueFromVariableManger(n)?(Ta(),Ma("div",{key:0,class:"action convert variable-manager","data-balloon":e.i18n.colorPalettePopulateFromVariableManager,"data-balloon-pos":"top-right",onClick:bc(function(e){return o.populateColorValueFromVariableManager(n)},["stop"])},[Ha(c,{name:"curly-brackets"})],8,CZ)):(Ta(),Ma("div",{key:1,class:"action convert","data-balloon":e.i18n.colorPaletteConvertToVariable,"data-balloon-pos":"top-right",onClick:bc(function(e){return o.convertColor(n)},["stop"])},[Ha(c,{name:"convert"})],8,xZ)),qa("div",{class:te(["action","delete",{active:e.$_state.deleteItem===n.id}]),"data-balloon":e.i18n.delete,"data-balloon-pos":"top-right",onClick:bc(function(e){return o.deleteColor(n.id)},["stop"])},[Ha(c,{name:e.$_state.deleteItem===n.id?"check":"trash"},null,8,["name"])],10,SZ)])]))],10,mZ)}),128))]}),_:1},8,["parent","onUpdate"])):Qa("",!0),qa("div",o1,[t[33]||(t[33]=qa("div",{class:"var"},"--",-1)),Xn(qa("input",{ref:"newColorRawInput",type:"text",class:"raw","onUpdate:modelValue":t[17]||(t[17]=function(e){return r.newColorRaw=e}),placeholder:e.i18n.variableName,onKeyup:t[18]||(t[18]=wc(function(e){return o.addColor()},["enter"]))},null,40,a1),[[ac,r.newColorRaw]]),qa("div",s1,[qa("div",{class:"color-preview","data-balloon":e.i18n.colorPicker,style:Y({backgroundColor:r.newColorValue}),onClick:t[19]||(t[19]=function(e){return r.colorPickerShow=!r.colorPickerShow&&"new"})},[Xn(Ha(c,{name:"color"},null,512),[[pl,!r.newColorValue]])],12,l1),"new"==r.colorPickerShow?Xn((Ta(),Ma("div",{key:0,onClick:t[22]||(t[22]=function(e){return o.onColorPickerClick(e)}),class:"color-picker-popup"},[Ha(d,{tinyColor:r.tcColorPickerValue,"onUpdate:tinyColor":[t[20]||(t[20]=function(e){return r.tcColorPickerValue=e}),t[21]||(t[21]=function(e){return o.tcColorUpdated(e)})],formats:r.colorPickerFormats},null,8,["tinyColor","formats"])])),[[g,function(){return r.colorPickerShow=!1}]]):Qa("",!0)]),Xn(qa("input",{type:"text",class:"value","onUpdate:modelValue":t[23]||(t[23]=function(e){return r.newColorValue=e}),spellcheck:"false",placeholder:e.i18n.color,onKeyup:t[24]||(t[24]=wc(function(e){return o.addColor()},["enter"]))},null,40,c1),[[ac,r.newColorValue]]),qa("button",{type:"submit",disabled:!r.newColorValue,textContent:he(e.i18n.colorAdd),onClick:t[25]||(t[25]=function(e){return o.addColor()})},null,8,u1)])])):Qa("",!0),qa("div",d1,["add"!==r.action&&o.palettes.length?Qa("",!0):(Ta(),Ma("div",p1,[qa("form",{class:"has-border",onSubmit:t[29]||(t[29]=bc(function(){},["prevent"]))},[qa("div",h1,[qa("label",{for:"new-palette-name",textContent:he("".concat(e.i18n.create,": ").concat(e.i18n.colorPalette))},null,8,f1),Xn(qa("input",{type:"text",id:"new-palette-name",autocomplete:"off",spellcheck:"false",placeholder:e.i18n.colorPalette,"onUpdate:modelValue":t[26]||(t[26]=function(e){return r.paletteName=e})},null,8,m1),[[ac,r.paletteName]])]),qa("p",{class:"description",innerHTML:e.i18n.colorPaletteNewDescription},null,8,g1),qa("div",v1,[qa("button",{type:"submit",disabled:!r.paletteName,textContent:he(e.i18n.create),onClick:t[27]||(t[27]=bc(function(e){return r.paletteName?o.createPalette():null},["stop"]))},null,8,y1),o.activePalette?(Ta(),Ma("button",{key:0,type:"button",class:"cancel",onClick:t[28]||(t[28]=bc(function(e){return r.action="edit"},["stop"])),textContent:he(e.i18n.cancel)},null,8,b1)):Qa("",!0)])],32)])),o.palettes.length&&"import"!==r.action?Qa("",!0):(Ta(),Ma("div",k1,[qa("div",{class:"title",textContent:he("".concat(e.i18n.import,": ").concat(e.i18n.colorPalette))},null,8,w1),Ha(m,{control:{fileType:"application/json",schema:["id","name","colors"],dragAndDropNote:e.i18n.dropFilesJSON},results:r.importResults,onImported:o.importPalettes,onCloseMe:t[30]||(t[30]=function(e){return o.closeImport()})},null,8,["control","results","onImported"])]))])],64)}]]);var j4={class:"title-wrapper"},B4=["textContent"],R4=["innerHTML"],V4={key:0,class:"add-scale"},q4={class:"form-group"},H4=["textContent"],z4=["textContent"],U4={class:"buttons"},W4=["textContent"],G4=["textContent"],K4={key:1,class:"edit-scale"},Q4={class:"toolbar"},Y4=["placeholder"],J4={class:"actions-wrapper"},X4=["data-balloon"],Z4=["data-balloon"],e3=["data-balloon"],t3=["data-balloon"],n3={key:0,class:"generated-css-preview"},i3={class:"section-header"},r3=["textContent"],o3={class:"actions-wrapper"},a3=["data-balloon"],s3={key:1,class:"scale-editor"},l3={class:"form-group inline"},c3={class:"form-group-title"},u3={for:"manual-type-scale"},d3={class:"form-group"},p3={class:"form-group-title"},h3={for:"variable-prefix"},f3=["disabled","readonly","value"],m3={class:"form-group"},g3={class:"form-group-title"},v3=["textContent"],y3={key:1,class:"form-group"},b3={class:"form-group-title"},k3=["textContent"],w3=["disabled","readonly","value"],_3={class:"form-group"},C3={class:"form-group-title"},x3=["textContent"],S3={class:"form-group"},E3={class:"form-group-title"},A3={for:"min-font-size"},D3=["disabled","readonly","value"],T3={class:"form-group"},I3={class:"form-group-title"},O3=["textContent"],P3={key:2,class:"form-group"},F3={class:"form-group-title"},$3={for:"min-scale-ratio"},M3=["disabled","readonly","value"],L3={class:"form-group"},N3={class:"form-group-title"},j3={for:"max-font-size"},B3=["disabled","readonly","value"],R3={class:"form-group"},V3={class:"form-group-title"},q3=["textContent"],H3={key:3,class:"form-group"},z3={class:"form-group-title"},U3={for:"max-scale-ratio"},W3=["disabled","readonly","value"],G3={class:"quick-actions-sticky"},K3=["textContent"],Q3={key:0,class:"variables-editor"},Y3=["onClick"],J3=["title","onClick"],X3=["title","onClick"],Z3={key:1,class:"actions-wrapper below"},e5=["data-balloon"],t5=["textContent"],n5={key:2,class:"scale-preview typography"},i5={class:"min"},r5={class:"type"},o5=["textContent"],a5=["placeholder","value","onBlur"],s5=["textContent"],l5={class:"max"},c5={class:"type"},u5=["textContent"],d5=["placeholder","value","onBlur"],p5=["textContent"],h5={key:3,class:"scale-preview spacing"},f5={class:"min"},m5={class:"type"},g5=["textContent"],v5=["placeholder","value","onBlur"],y5={class:"max"},b5={class:"type"},k5=["textContent"],w5=["placeholder","value","onBlur"],_5={key:2,class:"utility-classes"},C5={class:"section-header"},x5=["textContent"],S5={class:"actions-wrapper"},E5=["data-balloon"],A5=["data-balloon"],D5=["textContent"],T5={class:"utility-class-fields"},I5={class:"field class-name"},O5=["textContent"],P5=["placeholder","value","onInput"],F5={class:"field css-property"},$5=["textContent"],M5=["value","onInput"],L5=["data-balloon","onClick"];function N5(e){return N5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N5(e)}function j5(e){return function(e){if(Array.isArray(e))return B5(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return B5(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B5(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B5(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function R5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function V5(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R5(Object(n),!0).forEach(function(t){q5(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R5(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function q5(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=N5(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=N5(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==N5(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var H5={data:function(){return{action:"edit",category:null,utilityClasses:[],variables:[],scaleName:"",scaleGeneratedCss:"",previewText:"Amazingly few discotheques provide jukeboxes",defaultScaleNames:{tshirt:["2xs","xs","s","m","l","xl","2xl"],numeric:[1,2,3,4,5,6],custom:[]},scaleRatioControl:{options:{1.067:"1.067 (Minor Second)",1.125:"1.125 (Major Second)",1.2:"1.2 (Minor Third)",1.25:"1.25 (Major Third)",1.333:"1.333 (Perfect Fourth)",1.414:"1.414 (Augmented Fourth)",1.5:"1.5 (Perfect Fifth)",1.618:"1.618 (Golden Ratio)",1.667:"1.667 (Major Sixth)",1.778:"1.778 (Minor Seventh)",1.875:"1.875 (Major Seventh)",2:"2 (Octave)",custom:"Custom"},clearable:!1}}},computed:{baseSizeLabel:function(){return"spacing"===this.$_state.popupTab?this.i18n.baseSize:this.i18n.baseFontSize},scaleRatioLabel:function(){return"spacing"===this.$_state.popupTab?this.i18n.scaleRatio:this.i18n.typeScaleRatio},scaleDescription:function(){return"typography"===this.$_state.popupTab?this.i18n.scaleDescriptionTypography:"spacing"===this.$_state.popupTab?this.i18n.scaleDescriptionSpacing:""},scaleDefaults:function(){var e="text-";return"spacing"===this.$_state.popupTab&&(e="space-"),{scaleScope:this.$_state.popupTab,scaleType:"tshirt",scaleNames:["2xs","xs","s","m","l","xl","2xl"],prefix:e,minFontSize:16,minScaleRatio:1.25,minScaleRatioSelect:1.25,maxFontSize:20,maxScaleRatio:1.333,maxScaleRatioSelect:1.333,baseline:"m"}},scaleNames:function(){var e,t,n;if(Array.isArray(null===(e=this.category)||void 0===e||null===(e=e.scale)||void 0===e?void 0:e.scaleNames)&&(null===(t=this.category)||void 0===t?void 0:t.scale.scaleNames.length)>0)return null===(n=this.category)||void 0===n?void 0:n.scale.scaleNames;var i=this.getValue("scaleType","tshirt");return"tshirt"===i?this.defaultScaleNames.tshirt:"numeric"===i?this.defaultScaleNames.numeric:"custom"===i?this.defaultScaleNames.custom:void 0},baselineControl:function(){return{options:this.scaleNames.reduce(function(e,t){return e[t]=t,e},{}),clearable:!1}},scales:function(){var e=this;return this.$_state.globalVariablesCategories.filter(function(t){var n;return(null===(n=t.scale)||void 0===n?void 0:n.scaleScope)===e.$_state.popupTab})},baselineScaleIndex:function(){var e=this.getValue("baseline",""),t=this.scaleNames.indexOf(e);return-1!==t?t:Math.floor(this.scaleNames.length/2)}},methods:{editScale:function(e){var t=this.scales.find(function(t){return t.id===e});t&&(this.action="edit",this.scaleName=t.name,this.category=t,this.utilityClasses=t.utilityClasses||[],this.$_state.popupFilters.categories=[t.id])},toggleGeneratedCss:function(){this.action="css"===this.action?"edit":"css","css"===this.action&&this.generateScaleGeneratedCss()},generateScaleGeneratedCss:function(){var e,t=this;if(this.category&&this.variables.length){var n="/* Variables for scale: ".concat(this.category.name," */\n\n");n+=":root {\n",this.variables.forEach(function(e,i){var r=i-t.baselineScaleIndex,o=t.$_createVariableObject(t.category,r);n+=" --".concat(e.name,": ").concat(null==o?void 0:o.value,";\n")}),n+="}\n\n",null!==(e=this.utilityClasses)&&void 0!==e&&e.length&&(n+="/* Utility classes for scale: ".concat(this.category.name," */\n\n"),this.utilityClasses.forEach(function(e){var i=e.className,r=e.cssProperty;i&&r&&t.variables.forEach(function(o,a){var s=o.name.replace(t.getValue("prefix",""),"");i=(i=e.className).includes("*")?i.replace("*",s):i+s,n+=".".concat(i," {\n"),n+=" ".concat(r,": var(--").concat(o.name,");\n"),n+="}\n\n"})})),this.scaleGeneratedCss=n.trim()}},exportGeneratedCss:function(){var e=this.scaleGeneratedCss;if(e){var t=this.category.name.replace(/[^a-z0-9-_]/gi,"-").toLowerCase(),n=new Blob([e],{type:"text/css"}),i=URL.createObjectURL(n),r=document.createElement("a");r.href=i,r.download="bricks-scale-".concat(t,".css"),document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(i)}},isSelected:function(e){return this.$_state.popupSelectedItems.includes(e)},getManualValue:function(e,t){var n;if(null===(n=this.category)||void 0===n||null===(n=n.scale)||void 0===n||null===(n=n.manualValues)||void 0===n||!n[e]){var i=e-this.baselineScaleIndex,r=this.$_createVariableObject(this.category,i,t);return this.stripPx(r)}var o=this.category.scale.manualValues[e][t];return this.stripPx(o)},setManualValue:function(e,t,n){var i,r=this;if(null!==(i=this.category)&&void 0!==i&&i.scale){var o=parseFloat(n);if(!isNaN(o)){var a=o+"px";this.category.scale.manualValues||(this.category.scale.manualValues=[]);var s=this.variables[e];if(s){if(!this.category.scale.manualValues[e]){var l=e-this.baselineScaleIndex;this.category.scale.manualValues[e]={name:s.name,min:this.$_createVariableObject(this.category,l,"min"),max:this.$_createVariableObject(this.category,l,"max")}}this.category.scale.manualValues[e][t]=a;var c=this.$_state.globalVariablesCategories.find(function(e){return e.id===r.category.id});c&&(c.scale.manualValues||(c.scale.manualValues=[]),c.scale.manualValues[e]||(c.scale.manualValues[e]={name:s.name}),c.scale.manualValues[e][t]=a)}}}},getPreviewValue:function(e,t){var n;if(this.getValue("isManual",!1)&&null!==(n=this.category)&&void 0!==n&&null!==(n=n.scale)&&void 0!==n&&null!==(n=n.manualValues)&&void 0!==n&&null!==(n=n[e])&&void 0!==n&&n[t])return this.category.scale.manualValues[e][t];var i=e-this.baselineScaleIndex;return this.$_createVariableObject(this.category,i,t)},stripPx:function(e){return"string"==typeof e&&e.endsWith("px")?e.slice(0,-2):e},hasChanged:function(e){var t,n=this;if(null===(t=this.category)||void 0===t||!t.scale)return!1;var i=this.$_state.globalVariablesCategories.find(function(e){return e.id===n.category.id});return JSON.stringify(this.category.scale[e])!==JSON.stringify(null==i?void 0:i.scale[e])},selectItem:function(e){this.$_state.popupSelecpopupSelectedItemstedItems=[e]},getValue:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(e=this.category)&&void 0!==e&&null!==(e=e.scale)&&void 0!==e&&e[t]&&this.category.scale[t]||n},setValue:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!==(n=this.category)&&void 0!==n&&n.scale){if("isManual"===e&&!0===t){var o=new Map;Array.isArray(this.category.scale.manualValues)&&this.category.scale.manualValues.forEach(function(e){e.name&&o.set(e.name,e)});var a=[];this.variables.forEach(function(e,t){var n=o.get(e.name);if(n)a.push({name:e.name,min:n.min,max:n.max});else{var r=t-i.baselineScaleIndex,s=i.$_createVariableObject(i.category,r,"min"),l=i.$_createVariableObject(i.category,r,"max");a.push({name:e.name,min:s,max:l})}}),this.category.scale.manualValues=a}if("prefix"===e&&this.category.scale.manualValues){var s=this.getValue("prefix",""),l=t;this.category.scale.manualValues=this.category.scale.manualValues.map(function(e){var t=e.name.replace(s,"");return V5(V5({},e),{},{name:l+t})})}if("scaleType"===e){var c=this.scaleNames.indexOf(this.getValue("baseline","")),u=[];if("tshirt"===t?(u=this.generateScales("tshirt",this.variables.length||7),this.setValue("scaleNames",u)):"numeric"===t&&(u=this.generateScales("numeric",this.variables.length||6),this.setValue("scaleNames",u)),this.category.scale.manualValues&&u.length){var d=this.getValue("prefix","");this.category.scale.manualValues=this.category.scale.manualValues.map(function(e,t){var n=u[t];return void 0!==n?V5(V5({},e),{},{name:d+n}):e})}var p=this.scaleNames[c]||this.scaleNames[Math.floor(this.scaleNames.length/2)];this.setValue("baseline",p)}else if("scaleNames"===e&&"custom"===this.getValue("scaleType","")&&!1!==r.updateBaseline){var h=t[Math.floor(t.length/2)]||t[0];if(this.setValue("baseline",h),this.category.scale.manualValues){var f=this.getValue("prefix",""),m=this.scaleNames,g=[];t.forEach(function(e,t){var n=m.indexOf(e);if(-1!==n&&n===t){var r=i.category.scale.manualValues[n];if(r)g.push(V5(V5({},r),{},{name:f+e}));else{var o=t-i.baselineScaleIndex;g.push({name:f+e,min:i.$_createVariableObject(i.category,o,"min"),max:i.$_createVariableObject(i.category,o,"max")})}}else if(-1!==n){var a=i.category.scale.manualValues[n];if(a)g.push(V5(V5({},a),{},{name:f+e}));else{var s=t-i.baselineScaleIndex;g.push({name:f+e,min:i.$_createVariableObject(i.category,s,"min"),max:i.$_createVariableObject(i.category,s,"max")})}}else if(-1===n&&t<i.category.scale.manualValues.length){var l=i.category.scale.manualValues[t];if(l)g.push(V5(V5({},l),{},{name:f+e}));else{var c=t-i.baselineScaleIndex;g.push({name:f+e,min:i.$_createVariableObject(i.category,c,"min"),max:i.$_createVariableObject(i.category,c,"max")})}}else{var u=t-i.baselineScaleIndex;g.push({name:f+e,min:i.$_createVariableObject(i.category,u,"min"),max:i.$_createVariableObject(i.category,u,"max")})}}),this.category.scale.manualValues=g}}var v=V5(V5({},this.category.scale),{},q5({},e,t));this.category.scale=v,r.updateGlobal&&(this.$_state.globalVariablesCategories=this.$_state.globalVariablesCategories.map(function(e){return e.id===i.category.id&&(e.scale=v),e})),this.generateVariables(!0)}},createNewScale:function(){var e=this;if(this.scaleName)if(this.scales.some(function(t){return t.name.toLowerCase()===e.scaleName.toLowerCase()}))alert(this.i18n.scaleErrorDuplicateName);else{var t=this.category,n=j5(this.$_state.popupFilters.categories||[]);if(this.category={id:this.$_generateId(),name:this.scaleName,scale:V5({},this.scaleDefaults)},this.$_state.globalVariablesCategories.push(this.category),this.$_state.popupFilters.categories=[this.category.id],!this.generateVariables())return this.$_state.globalVariablesCategories=this.$_state.globalVariablesCategories.filter(function(t){return t.id!==e.category.id}),this.$_state.popupFilters.categories=n,void(this.category=t);this.action="edit"}else alert(this.i18n.scaleErrorNoName)},onGenerateVariablesFormSubmit:function(){this.generateVariables()},generateVariables:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.getValue("baseline",""),i=this.scaleNames.findIndex(function(e){return String(e).toLowerCase()===String(n).toLowerCase()});-1===i&&(i=Math.floor(this.scaleNames.length/2));var r=this.scaleNames.map(function(t,n){var r=n-i;return e.$_createVariableObject(e.category,r)});if(!t){var o=new Set(this.$_state.globalVariables.filter(function(t){return t.category!==e.category.id}).map(function(e){return e.name})),a=new Set,s=r.filter(function(e){return!(!o.has(e.name)||a.has(e.name))&&(a.add(e.name),!0)}).map(function(e){return e.name});if(s.length&&!confirm("".concat(this.i18n.scaleGenerateVariablesDuplicateConfirm,"\n\n").concat(s.join(", "))))return!1}if(!t&&"edit"===this.action&&this.variables.length&&!confirm(this.i18n.scaleGenerateVariablesConfirm))return!1;t||(this.$_state.globalVariables=this.$_state.globalVariables.filter(function(t){return t.category!==e.category.id})),t||(this.$_state.globalVariablesCategories=this.$_state.globalVariablesCategories.map(function(t){return t.id===e.category.id&&(t.scale=e.category.scale),t}));var l=[];return r.forEach(function(n){t||e.$_state.globalVariables.push(n),l.push(n)}),this.variables=l,t||this.$_showMessage("".concat(this.i18n.variableManager,": ").concat(this.i18n.added," (").concat(this.variables.length,")")),!0},addScale:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=e?this.scaleNames[this.scaleNames.length-1]:this.scaleNames[0],n=this.scaleNames.indexOf(this.getValue("baseline","")),i=this.scaleNames.indexOf(t)-n,r=e?i+1:i-1,o=this.$_createVariableObject(this.category,r);e?this.$_state.globalVariables.push(o):this.$_state.globalVariables.unshift(o),e?this.variables.push(o):this.variables.unshift(o);var a=j5(this.scaleNames);e?a.push(o.name.replace(this.getValue("prefix",""),"")):a.unshift(o.name.replace(this.getValue("prefix",""),"")),this.setValue("scaleNames",a,{updateGlobal:!0,updateBaseline:!1}),this.getValue("isManual",!1)&&(this.setValue("isManual",!1),this.setValue("isManual",!0))},removeScale:function(){var e=this,t=null,n=(t=arguments.length>0&&void 0!==arguments[0]&&arguments[0]?this.variables[this.variables.length-1]:this.variables[0]).name.replace(this.getValue("prefix",""),"");if(n!==this.getValue("baseline","").toString()){this.$_state.globalVariables=this.$_state.globalVariables.filter(function(n){return!(n.name===t.name&&n.category===e.category.id)}),this.variables=this.variables.filter(function(e){return e.name!==t.name});var i=this.scaleNames.filter(function(e){return e.toString()!==n});this.setValue("scaleNames",i,{updateGlobal:!0,updateBaseline:!1}),this.getValue("isManual",!1)&&(this.setValue("isManual",!1),this.setValue("isManual",!0))}else alert(this.i18n.scaleErrorCannotRemoveBaseline)},generateScales:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:7;if("tshirt"===e){for(var n=[],i=Math.floor(t/2),r=0;r<t;r++){var o=r-i,a=void 0;if(0===o)a="m";else if(o<0){var s=Math.abs(o);a=1===s?"s":2===s?"xs":"".concat(s-1,"xs")}else a=1===o?"l":2===o?"xl":"".concat(o-1,"xl");n.push(a)}return n}return"numeric"===e?Array.from({length:t},function(e,t){return t+1}):[]},selectScale:function(){this.scales.length>0?(this.$_state.popupFilters.categories=[this.scales[0].id],this.action="edit"):this.action="add"},resetValue:function(e){e?"baseline"==e?"tshirt"==this.getValue("scaleType")?(this.setValue("scaleNames",this.defaultScaleNames.tshirt),this.setValue("baseline",this.scaleDefaults[e])):"numeric"==this.getValue("scaleType")?(this.setValue("scaleNames",this.defaultScaleNames.numeric),this.setValue("baseline",4)):"custom"==this.getValue("scaleType")&&(this.setValue("scaleNames",["a","b","c"]),this.setValue("baseline","b")):this.setValue(e,this.scaleDefaults[e]):this.category.scale=this.scaleDefaults},addUtilityClass:function(){var e=this;this.utilityClasses.push({id:this.$_generateId(),className:"",cssProperty:""}),this.$_state.globalVariablesCategories=this.$_state.globalVariablesCategories.map(function(t){return t.id===e.category.id&&(t.scale=V5({},e.category.scale)),t})},updateUtilityClass:function(e,t,n){var i,r=this;null!==(i=this.utilityClasses)&&void 0!==i&&i[e]&&(this.utilityClasses[e][t]=n,this.$_state.globalVariablesCategories=this.$_state.globalVariablesCategories.map(function(e){return e.id===r.category.id&&(e.scale=V5({},r.category.scale)),e}))},removeUtilityClass:function(e){var t,n=this,i=null===(t=this.utilityClasses[e])||void 0===t?void 0:t.id;if(i){var r=this.$_state.globalClasses.length;this.$_state.globalClasses=this.$_state.globalClasses.filter(function(e){return(null==e?void 0:e.utilityClassId)!==i});var o=r-this.$_state.globalClasses.length;o&&this.$_showMessage("".concat(this.i18n.deleted,": ").concat(this.i18n.utilityClasses," (").concat(o,")")),this.$_state.globalVariablesCategories=this.$_state.globalVariablesCategories.map(function(e){return e.id===n.category.id&&(e.scale=V5({},n.category.scale)),e}),this.utilityClasses.splice(e,1)}},getUtilityClassName:function(e,t){if(!e.className||!t)return"";var n=t.name.replace(this.getValue("prefix",""),"");return e.className.includes("*")?e.className.replace("*",n):e.className+n},generateUtilityClasses:function(){var e,t,n,i=this;if(null!==(e=this.utilityClasses)&&void 0!==e&&e.length&&null!==(t=this.variables)&&void 0!==t&&t.length)if(this.utilityClasses.some(function(e){return!e.className||!e.cssProperty}))alert(this.i18n.utilityClassesEmptyFields);else{var r=null===(n=this.$_state.globalClassesCategories.find(function(e){return e.name===i.category.name}))||void 0===n?void 0:n.id;if(!r){var o={id:this.$_generateId(),name:this.category.name,scale:V5({},this.category.scale)};this.$_state.globalClassesCategories.push(o),r=o.id}var a=[],s=[];this.utilityClasses.forEach(function(e){var t=e.id,n=e.className;e.cssProperty;i.variables.forEach(function(e){var o=e.name.replace(i.getValue("prefix",""),""),l=n.includes("*")?n.replace("*",o):n+o,c=i.$_state.globalClasses.find(function(e){return(null==e?void 0:e.scaleId)===i.category.id&&(null==e?void 0:e.utilityClassId)===t&&(null==e?void 0:e.scaleName)===o});if(c)c.name!==l&&(c.name=l,s.push(c));else{var u={id:i.$_generateId(),name:l,category:r,utilityClassId:t,scaleId:i.category.id,scaleName:o,settings:{}};i.$_state.globalClasses.push(u),a.push(u)}})}),a.length?this.$_showMessage("".concat(this.i18n.created,": ").concat(this.i18n.utilityClasses," (").concat(a.length,")")):s.length?this.$_showMessage("".concat(this.i18n.updated,": ").concat(this.i18n.utilityClasses," (").concat(s.length,")")):this.$_showMessage(this.i18n.utilityClassesAlreadyExist),this.$_state.css.utilityClasses=this.$_generateCss("utilityClasses")}}},mounted:function(){this.selectScale()},watch:{action:function(){"add"===this.action&&(this.scaleName=this.i18n[this.$_state.popupTab]||this.i18n.scale,this.scales.length&&(this.scaleName+=" (".concat(this.scales.length+1,")")))},variables:{handler:function(){"css"===this.action&&this.generateScaleGeneratedCss()},deep:!0},utilityClasses:{handler:function(e){var t=this;this.category&&("css"===this.action&&this.generateScaleGeneratedCss(),this.$_state.globalVariablesCategories=this.$_state.globalVariablesCategories.map(function(n){return n.id===t.category.id&&(n.utilityClasses=e),n}))},deep:!0},scaleName:function(){var e=this;this.category&&"rename"===this.action&&(this.$_state.globalVariablesCategories=this.$_state.globalVariablesCategories.map(function(t){return t.id===e.category.id&&e.scaleName&&(t.name=e.scaleName),t}))},"$_state.popupTab":{handler:function(e){this.selectScale(),"add"===this.action&&(this.scaleName=this.i18n[e]||this.i18n.scale)}},"$_state.popupFilters.categories":{handler:function(e){var t=e.length>0?e[0]:null,n=this.$_state.globalVariablesCategories.find(function(e){return e.id===t});n?(this.category=this.$_clone(n),this.utilityClasses=this.category.utilityClasses||[],this.scaleName=this.category.name,this.generateVariables(!0)):this.category={id:null,scale:this.scaleDefaults}},deep:!0,immediate:!0}}};var z5={class:"title-wrapper toolbar"},U5=["innerHTML"],W5={class:"actions-wrapper"},G5=["data-balloon"],K5=["data-balloon"],Q5={key:1,class:"import action-wrapper"},Y5=["textContent"],J5={class:"bricks-panel-selectors"},X5={class:"input-wrapper"},Z5=["contenteditable","textContent"],e8=["size","title","textContent"],t8={key:0,class:"actions"},n8={key:0,class:"input-wrapper"},i8=["placeholder"],r8={class:"actions"},o8={key:1,class:"theme-styles"},a8=["onClick"],s8=["textContent"],l8={class:"actions"},c8=["textContent"],u8={key:3,class:"pseudo-classes"},d8=["onClick"],p8=["textContent"],h8={class:"actions"};function f8(e){return f8="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f8(e)}function m8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function g8(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m8(Object(n),!0).forEach(function(t){v8(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m8(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function v8(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=f8(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=f8(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==f8(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y8(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return b8(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b8(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b8(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var k8={setup:function(){return{activePanelGroup:ln(Xh,"activePanelGroup"),themeStyles:ln(Xh,"themeStyles"),themeStyleActiveId:ln(Xh,"themeStyleActiveId"),themeStyleSettings:ln(Xh,"themeStyleSettings")}},data:function(){return{showDropdown:!1,showSelectors:!1,activeStyle:void 0,action:void 0,infoMessage:void 0,importResults:[],selectorInput:""}},computed:{selectorSettingsCount:function(){var e=this,t=0;return this.$_state.pseudoClasses.forEach(function(n){t+=e.pseudoClassSettingsCount(n)}),t},activeStyleName:function(){return this.activeStyle?this.themeStyles[this.activeStyle].label:""},themeStylesSorted:function(){var e=this,t=this.$_clone(this.themeStyles),n={},i={},r={};this.$_state.themeStyleActiveIds.length&&(i=Object.fromEntries(Object.entries(t).filter(function(t){var n=y8(t,1)[0];return e.$_state.themeStyleActiveIds.includes(n)})),i=g8(g8({},{activeGroupTitle:{label:this.i18n.activeStyles}}),i));(r=Object.fromEntries(Object.entries(t).filter(function(t){var n=y8(t,1)[0];return!e.$_state.themeStyleActiveIds.includes(n)})),Object.keys(r).length)&&(r=g8(g8({},{otherGroupTitle:{label:this.i18n.otherStyles}}),r));return n=g8(g8({},i),r),n},themeStyle:function(){var e;return{label:this.activeStyleName,controls:(null===(e=this.bricks.controls.themeStyles.controls)||void 0===e?void 0:e[this.activePanelGroup])||this.bricks.controls.themeStyles.controls,controlGroups:this.bricks.controls.themeStyles.controlGroups}},settings:function(){var e;return(null===(e=this.themeStyleSettings)||void 0===e?void 0:e[this.activePanelGroup])||{}},themeStyleInfo:function(){var e;return(e=this.infoMessage?this.infoMessage:this.activeStyle?this.i18n.themeStyleActiveInfo:this.i18n.themeStyleSelectInfo)?{content:e}:{}},themeStyleInfoLoadingMethod:function(){return{content:"all"===this.bricks.themeStylesLoadingMethod?this.i18n.themeStyleInfoLoadAll:this.i18n.themeStyleInfoLoadSpecific}},fileImportControl:function(){return{fileType:"application/json",schema:["id","label","settings"],dragAndDropNote:this.i18n.dropFilesJSON}}},methods:{deletePseudo:function(e){this.$_state.pseudoClasses=this.$_clone(this.$_state.pseudoClasses).filter(function(t){return t!==e})},pseudoClassSettingsCount:function(e){var t=0;for(var n in this.themeStyleSettings){var i=this.themeStyleSettings[n];Object.keys(i).forEach(function(n){n.endsWith(e)&&t++})}return t},setActiveStyle:function(e){this.activeStyle=this.activeStyle===e?void 0:e},setActivePseudoClass:function(e){this.$_state.pseudoClassActive=this.pseudoClassActive===e?void 0:e},clearPseudoClassSettings:function(e){var t=this,n=function(n){var i=t.themeStyleSettings[n];Object.keys(i).forEach(function(i){i.endsWith(e)&&delete t.themeStyleSettings[n][i]})};for(var i in this.themeStyleSettings)n(i)},toggleSelectors:function(){this.cancel(),this.showSelectors=!this.showSelectors,this.showDropdown=this.showSelectors},clearActiveSelector:function(){this.$_state.activeSelector=void 0,this.$_state.pseudoClassActive=void 0,this.showSelectors=!1},cancel:function(){this.action=void 0,this.infoMessage=void 0,this.selectorInput=void 0},closeMe:function(){this.action=void 0,this.importResults=[]},closeDropdown:function(){this.showDropdown=!1},renameThemeStyle:function(e){var t,n=this;if(e&&(e=e.trim()))if(e!==this.activeStyleName){var i=this.activeStyle,r=e.toLowerCase().replace(/-|\s/g,"_");if(r!==i&&Object.keys(this.themeStyles).includes(r))this.infoMessage=this.i18n.themeStyleNameExists;else{var o=this.$_clone(this.themeStyles),a=(null==o||null===(t=o[i])||void 0===t?void 0:t.settings)||{};if(r===i)return o[i].label=e,this.themeStyles=o,this.action=void 0,this.infoMessage=void 0,void this.$_showMessage("".concat(this.i18n.renamed," : ").concat(this.i18n.themeStyle));var s={id:r,oldId:i,label:e,settings:a};this.storeNewStyles([s]).then(function(){o[r]={label:e,settings:a},delete o[i],n.themeStyles=o,n.activeStyle=r,n.$_state.themeStyleActiveIds.includes(i)&&(n.$_state.themeStyleActiveIds=n.$_state.themeStyleActiveIds.map(function(e){return e===i?r:e})),n.action=void 0,n.infoMessage=void 0,n.$_showMessage("".concat(n.i18n.renamed," : ").concat(n.i18n.themeStyle))})}}else this.action=void 0},createThemeStyle:function(){var e=this;if(this.selectorInput){var t=this.selectorInput.toLowerCase().replace(/-|\s/g,"_");if(Object.keys(this.themeStyles).includes(t))this.infoMessage=this.i18n.themeStyleNameExists;else{this.infoMessage=void 0;var n=this.$_clone(this.themeStyles),i=this.activeStyle,r={id:t,label:this.selectorInput,settings:{_custom:!0}};0===Object.keys(n).length&&(r.settings.conditions={conditions:[{id:this.$_generateId(),main:"any"}]}),"rename"===this.action&&(r.oldId=i,r.settings=n[i].settings),n[r.id]={label:r.label,settings:r.settings},this.storeNewStyles([r]).then(function(t){e.activeStyle=r.id,"rename"===e.action&&delete n[i],e.themeStyles=n,e.themeStyleSettings=r.settings,e.$nextTick(function(){e.$_showMessage("created"===e.action?"".concat(e.i18n.created,": ").concat(e.i18n.themeStyle):"".concat(e.i18n.saved,": ").concat(e.i18n.themeStyle)),e.action=void 0,e.selectorInput=void 0})})}}},deleteThemeStyle:function(e){var t=this;this.$_http({data:{action:"bricks_delete_style",styleId:e},success:function(n){t.activeStyle===e&&(t.activeStyle=void 0),delete t.$_state.themeStyles[e],t.$_state.themeStyleActiveIds.includes(e)&&(t.$_state.themeStyleActiveIds=t.$_state.themeStyleActiveIds.filter(function(t){return t!==e})),t.$_state.themeStyleActiveId===e&&(t.activeStyle=void 0),t.action=void 0,t.selectorInput=void 0,t.$_showMessage("".concat(t.i18n.deleted,": ").concat(t.i18n.themeStyle))}})},exportThemeStyle:function(){var e=this.$_clone(this.themeStyles[this.activeStyle]);e.id=this.activeStyle,this.$_exportAsJsonFile(e,"bricks-theme-style-".concat(this.activeStyle))},importThemeStyle:function(e){var t=this;if(Array.isArray(e)&&e.length){this.importResults=[];var n=this.$_clone(this.themeStyles),i=[];e.forEach(function(e){n.hasOwnProperty(e.id)?t.importResults.push({text:t.i18n.fileNotImportedAlreadyExists.replace("%s",e.label),type:"error"}):(n[e.id]={label:e.label,settings:e.settings},i.push(e),t.importResults.push({text:t.i18n.fileImported.replace("%s",e.label),type:"success"}))}),i.length&&this.storeNewStyles(i).then(function(e){t.themeStyles=n})}},storeNewStyles:function(e){var t=this;return new Promise(function(n,i){t.$_http({data:{action:"bricks_create_styles",styles:e},success:function(e){n(e)}})})}},created:function(){this.activeStyle=this.themeStyleActiveId,Array.isArray(this.themeStyles)&&(this.themeStyles={})},beforeUnmount:function(){this.$_state.activePanelGroup=void 0,this.$_state.activePanelGroupParent=void 0},watch:{activePanelGroup:function(){this.activePanelGroup&&!this.themeStyleSettings.hasOwnProperty(this.activePanelGroup)&&(this.themeStyleSettings[this.activePanelGroup]={})},activeStyle:function(){this.showDropdown=!1,this.activePanelGroup="",this.themeStyleActiveId=this.activeStyle,this.themeStyleSettings=this.activeStyle?this.themeStyles[this.activeStyle].settings:{}},showDropdown:function(e){var t=this;e?this.$nextTick(function(){t.$refs.selectorInput&&t.$refs.selectorInput.focus()}):this.showSelectors=!1},action:function(e){var t=this;"import"===e?this.showDropdown=!1:"rename"===e&&this.$nextTick(function(){t.$refs.activeSelectorInput.focus()})}}};var w8={class:"title-wrapper"},_8=["textContent"],C8=["textContent"],x8={key:0,class:"import"},S8={class:"import-code"},E8=["disaled","textContent"],A8={key:1,class:"tabs"},D8=["textContent"],T8=["textContent"],I8={key:2,class:"parsed-wrapper"},O8={class:"categories-wrapper"},P8=["textContent","onClick"],F8={key:0,class:"generate-framework"},$8={key:0,class:"prefix-preview"},M8=["textContent"],L8=["textContent"],N8={key:3,class:"parsed-wrapper"},j8=["textContent"],B8={key:0,class:"generate-framework"},R8={key:0,class:"prefix-preview"},V8=["textContent"],q8=["textContent"];function H8(e){return H8="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},H8(e)}function z8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function U8(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z8(Object(n),!0).forEach(function(t){W8(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z8(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function W8(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=H8(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=H8(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==H8(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G8(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return K8(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?K8(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function K8(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var Q8={data:function(){return{importResults:[],action:"import",activeTab:"classes",activeCategory:"all",parsedVariables:"",cssStringToImport:"",classesCategory:"",classesPrefix:"",classesAddSettings:!0,variablesCategory:"",variablesPrefix:"",variablesAddValue:!1,categories:{all:{label:this.i18n.all,rules:""},layout:{label:this.i18n.layout,rules:""},typography:{label:this.i18n.typography,rules:""},colors:{label:this.i18n.colors,rules:""},spacing:{label:this.i18n.spacing,rules:""},borders:{label:this.i18n.borders,rules:""},shadows:{label:this.i18n.shadows,rules:""},positioning:{label:this.i18n.positioning,rules:""},sizing:{label:this.i18n.sizing,rules:""},visibility:{label:this.i18n.visibility,rules:""},utilities:{label:this.i18n.utilities,rules:""}}}},computed:{currentClassesCount:function(){var e=this.getParsedClassNames(this.parsedClasses).length;if("all"===this.activeCategory)return e;var t=this.getParsedClassNames(this.categories.all.rules);return"".concat(e," / ").concat(t.length)},currentVariablesCount:function(){var e=0;if(this.parsedVariables){var t=this.parsedVariables.split("\n");e=(t=t.filter(function(e){return""!==e.trim()})).length}return e},parsedClasses:function(){return this.categories[this.activeCategory].rules}},methods:{setClassCategory:function(e){var t=this;if((e=e.trim())&&!this.$_state.globalClassesCategories.find(function(t){return t.id===e||t.name===e})){var n=this.$_generateId();this.$_state.globalClassesCategories.push({id:n,name:e}),this.$nextTick(function(){t.classesCategory=n})}},setVariableCategory:function(e){var t=this;if((e=e.trim())&&!this.$_state.globalVariablesCategories.find(function(t){return t.id===e||t.name===e})){var n=this.$_generateId();this.$_state.globalVariablesCategories.push({id:n,name:e}),this.$nextTick(function(){t.variablesCategory=n})}},collectParsedClassesFromCategories:function(){var e=this,t="";Object.keys(this.categories).forEach(function(n){if("all"!==n){var i=e.categories[n].rules;i&&(t+="".concat(t?"\n\n":"").concat(i))}}),this.categories.all.rules=t},updateClasses:function(e){this.categories[this.activeCategory].rules=e},updateVariables:function(e){this.parsedVariables=e},escapeRegExp:function(e){return String(e).replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},getFrameworkSelectorInfo:function(e){if(!e||"."!==e.charAt(0))return null;var t="__bricks_escaped_colon__",n=ig(e.replace(/\\:/g,t)).base.replaceAll(t,"\\:");if(!n.startsWith(".")||/[ >+~,\[#]/.test(n)||n.slice(1).includes("."))return null;var i=n.slice(1);return i?{className:i,classSelector:n}:null},renameFrameworkSelector:function(e,t,n){var i=new RegExp("^\\.".concat(this.escapeRegExp(t)));return e.replace(i,".".concat(n))},stringifyFrameworkRule:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.entries(t||{});if(!e||!n.length)return"";var i=n.map(function(e){var t=G8(e,2),n=t[0],i=t[1];return"\t".concat(n,": ").concat(i,";")}).join("\n");return"".concat(e," {\n").concat(i,"\n}")},groupFrameworkRulesByClass:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i={};return wm(e).forEach(function(e){e.isAtRule||e.selectors.forEach(function(r){var o=t.getFrameworkSelectorInfo(r);if(o){var a=o.className,s=n?"".concat(n).concat(a):a,l=n?t.renameFrameworkSelector(r,a,s):r;i[a]||(i[a]=[]),i[a].push({selector:l,declarations:U8({},e.declarations)})}})}),i},getParsedClassNames:function(e){return Object.keys(this.groupFrameworkRulesByClass(e))},getCategoryFromSelector:function(e,t){var n=e.substring(1);if(/^(container|row|col|d-|grid|flex|justify-|align-|order-)/.test(n))return"layout";if(/^(text-|font-|h[1-6]|display-|lead|small)/.test(n))return"typography";if(/^(text-|bg-|border-)(primary|secondary|success|danger|warning|info|light|dark|white|black|muted|transparent)/.test(n))return"colors";if(/^[mp][trblxy]?-/.test(n))return"spacing";if(/^border/.test(n))return"borders";if(/^shadow/.test(n))return"shadows";if(/^(position-|top-|bottom-|left-|right-|translate)/.test(n))return"positioning";if(/^[wh]-/.test(n))return"sizing";if(/^(visible|invisible|d-)/.test(n))return"visibility";var i=t.toLowerCase();return/\b(display|flex|grid|justify-content|align-items|align-content|flex-direction|flex-wrap|grid-template|grid-gap|gap|place-items)\b/.test(i)?"layout":/\b(font-|text-|letter-spacing|line-height|word-spacing|white-space)\b/.test(i)?"typography":/\b(color|background|border-color|outline-color)\b/.test(i)?"colors":/\b(margin|padding|gap)\b/.test(i)?"spacing":/\b(border|outline)\b/.test(i)?"borders":/\b(box-shadow|text-shadow|drop-shadow)\b/.test(i)?"shadows":/\b(position|top|bottom|left|right|z-index|transform|translate)\b/.test(i)?"positioning":/\b(width|height|min-width|min-height|max-width|max-height)\b/.test(i)?"sizing":/\b(visibility|opacity|overflow)\b/.test(i)?"visibility":"utilities"},onImported:function(e){var t=this;this.action="parsed",this.activeCategory="all",e.forEach(function(e){t.parseClasses(e),t.parseVariables(e)})},parseClasses:function(e){var t=this;wm(e).forEach(function(e){e.isAtRule||e.selectors.forEach(function(n){var i=t.getFrameworkSelectorInfo(n);if(i){var r=t.stringifyFrameworkRule(n,e.declarations);if(r){var o=t.getCategoryFromSelector(i.classSelector,r);t.categories[o]&&(t.categories[o].rules+=t.categories[o].rules?"\n\n"+r:r),t.categories.all.rules+="".concat(t.categories.all.rules?"\n\n":"").concat(r)}}})})},parseVariables:function(e){for(var t,n=e.replace(/\/\*[\s\S]*?\*\//g,""),i=/(?:^|[;}])\s*([^{}]*:root[^{]*)\{([^}]+)\}/g;null!==(t=i.exec(n));){var r=t[1].trim(),o=t[2];if(r.includes(":root"))for(var a=/(--[\w-]+):\s*([^;]+);/g,s=void 0;null!==(s=a.exec(o));){var l=s[1],c=s[2].trim();this.parsedVariables+="".concat(this.parsedVariables?"\n":"").concat(l,": ").concat(c)}}},generateVariables:function(){var e,t=this,n=[],i=[],r=this.parsedVariables?this.parsedVariables.split("\n"):[];(r.forEach(function(e){var r=e.split(": "),o=r[0].trim(),a=r[1]?r[1].trim():"";if(t.variablesPrefix){var s=t.variablesPrefix.replace(/^--/,"");o="".concat(s).concat(o)}o=o.replace(/^--/,"");var l=t.$_state.globalVariables.find(function(e){return e.name===o});if(!l){var c="var(--".concat(o,")"),u=t.$_state.colorPalette.some(function(e){return Array.isArray(e.colors)&&e.colors.some(function(e){return e.raw===c})});if(u)return void i.push({name:o})}if(l)i.push(l);else{a=!1===t.variablesAddValue?"":a.replace(/;$/,"");var d={id:t.$_generateId(),name:o,value:a};t.variablesCategory&&(d.category=t.variablesCategory),n.push(d)}}),n.length)?((e=this.$_state.globalVariables).push.apply(e,n),this.$_showMessage(i.length?"".concat(this.i18n.variablesCreated," (").concat(n.length,"/").concat(r.length,")"):"".concat(this.i18n.variablesCreated," (").concat(n.length,")"))):this.$_showMessage(this.i18n.variableNameExists)},generateClasses:function(){var e,t=this,n=[],i=[],r=this.groupFrameworkRulesByClass(this.categories.all.rules,this.classesPrefix),o=Object.keys(r).length;(Object.entries(r).forEach(function(e){var r=G8(e,2),o=r[0],a=r[1],s=t.classesPrefix?"".concat(t.classesPrefix).concat(o):o,l=t.$_state.globalClassesTrash.find(function(e){return e.name===s});if(l)i.push(l);else if(l=t.$_state.globalClasses.find(function(e){return e.name===s}))i.push(l);else{var c={id:t.$_generateId(),name:s,settings:{}};if(t.classesAddSettings){var u=Cm(wm(a.map(function(e){var n=e.selector,i=e.declarations;return t.stringifyFrameworkRule(n,i)}).filter(Boolean).join("\n\n")),[s])[s],d=bg(s,u);c=U8(U8({},c),{},{settings:d.settings||{}})}t.classesCategory&&(c.category=t.classesCategory),n.push(c)}}),n.length)?((e=this.$_state.globalClasses).push.apply(e,n),this.$_showMessage(i.length?"".concat(this.i18n.classesCreated," (").concat(n.length,"/").concat(o,")"):"".concat(this.i18n.classesCreated," (").concat(n.length,")"))):this.$_showMessage(this.i18n.classNameExists)}},watch:{activeCategory:function(e,t){var n=this;if("classes"===this.activeTab)if("all"===t){Object.keys(this.categories).forEach(function(e){"all"!==e&&(n.categories[e].rules="")});var i=this.categories.all.rules;this.categories.all.rules="",this.parseClasses(i)}else this.collectParsedClassesFromCategories()},action:function(){"parsed"===this.action&&(this.cssStringToImport&&(this.parseClasses(this.cssStringToImport),this.parseVariables(this.cssStringToImport)),this.cssStringToImport="")}}};function Y8(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return J8(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?J8(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function J8(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var X8={components:{PopupManagerHeader:WN,PopupStylesClasses:nY,PopupStylesVariables:$X,PopupStylesColors:N4,PopupStylesScaleEditor:(0,xx.A)(H5,[["render",function(e,t,n,i,r,o){var a,s,l=$r("control-info"),c=$r("control-select"),u=$r("icon"),d=$r("panel-control"),p=$r("control-checkbox"),h=$r("sortable");return Ta(),Ma(Ca,null,[qa("div",j4,[qa("h1",{textContent:he(e.i18n[e.$_state.popupTab])},null,8,B4),qa("p",{class:"description",innerHTML:"typography"===e.$_state.popupTab?e.i18n.styleManagerScalesTypographyDesc:e.i18n.styleManagerScalesSpacingDesc},null,8,R4)]),"add"!==r.action&&o.scales.length?(Ta(),Ma("div",K4,[qa("div",Q4,["rename"===r.action&&null!==(a=r.category)&&void 0!==a&&a.id?Xn((Ta(),Ma("input",{key:0,type:"text",class:te({error:!r.category.name}),placeholder:e.i18n.scaleName,spellcheck:"false","onUpdate:modelValue":t[3]||(t[3]=function(e){return r.scaleName=e})},null,10,Y4)),[[ac,r.scaleName]]):(Ta(),La(c,{key:1,"data-balloon":"".concat(e.i18n.scale," (= ").concat(e.i18n.variableCategory,")"),value:null===(s=r.category)||void 0===s?void 0:s.id,control:{options:o.scales.reduce(function(e,t){return e[t.id]=t.name,e},{}),clearable:!1},onInput:t[4]||(t[4]=function(e){return o.editScale(e)})},null,8,["data-balloon","value","control"])),qa("div",J4,[qa("div",{class:te(["action",{active:"rename"===r.action}]),"data-balloon":"".concat(e.i18n.rename," (").concat(e.i18n.scale,")"),"data-balloon-pos":"top-right",onClick:t[5]||(t[5]=function(e){return r.action="rename"===r.action?"edit":"rename"})},[Ha(u,{name:"edit"})],10,X4),qa("div",{class:"action","data-balloon":"".concat(e.i18n.create," (").concat(e.i18n.scale,")"),"data-balloon-pos":"top-right",onClick:t[6]||(t[6]=function(e){return r.action="add"})},[Ha(u,{name:"add"})],8,Z4),qa("div",{class:"action","data-balloon":"".concat(e.i18n.reset," (").concat(e.i18n.scale,")"),"data-balloon-pos":"top-right",onClick:t[7]||(t[7]=function(e){return o.resetValue(null)})},[Ha(u,{name:"undo4"})],8,e3),"edit"!==r.action&&"css"!==r.action||!r.variables.length?Qa("",!0):(Ta(),Ma("div",{key:0,class:te(["action",{active:"css"===r.action}]),"data-balloon":e.i18n.generatedCss,"data-balloon-pos":"top-right",onClick:t[8]||(t[8]=function(e){return o.toggleGeneratedCss()})},[Ha(u,{name:"css3"})],10,t3))])]),"css"===r.action&&r.category?(Ta(),Ma("div",n3,[qa("div",i3,[qa("h5",{class:"title",textContent:he(e.i18n.generatedCss)},null,8,r3),qa("div",o3,[qa("div",{class:"action","data-balloon":"".concat(e.i18n.export,": ").concat(e.i18n.file," (CSS)"),"data-balloon-pos":"top-right",onClick:t[9]||(t[9]=function(e){return o.exportGeneratedCss()})},[Ha(u,{name:"export"})],8,a3)])]),(Ta(),La(d,{key:r.scaleGeneratedCss.length,controlKey:"scaleGeneratedCss",control:{type:"code",readonly:!0,mode:"css",header:!1},settings:{scaleGeneratedCss:r.scaleGeneratedCss}},null,8,["settings"]))])):Qa("",!0),"edit"===r.action?(Ta(),Ma("div",s3,[qa("form",{class:te({"has-border":!0,"is-manual":o.getValue("isManual",!1)}),onSubmit:t[32]||(t[32]=bc(function(){},["prevent"]))},[Qa("",!0),qa("div",l3,[qa("div",c3,[qa("label",u3,he(e.i18n.manual)+" ("+he(e.i18n.values)+")",1)]),Ha(p,{controlKey:"manual-type-scale",value:o.getValue("isManual",!1),onInput:t[11]||(t[11]=function(e){return o.setValue("isManual",e,{updateGlobal:!0})})},null,8,["value"])]),qa("div",d3,[qa("div",p3,[qa("label",h3,he(e.i18n.variablePrefix),1),Ha(u,{name:"undo4",onClick:t[12]||(t[12]=function(e){return o.resetValue("prefix")}),"data-balloon":e.i18n.reset},null,8,["data-balloon"])]),qa("input",{type:"text",id:"variable-prefix",spellcheck:"false",disabled:o.getValue("isManual",!1),readonly:o.getValue("isManual",!1),class:te({changed:o.hasChanged("prefix")}),value:o.getValue("prefix"),onInput:t[13]||(t[13]=function(e){return o.setValue("prefix",e.target.value)})},null,42,f3)]),qa("div",m3,[qa("div",g3,[qa("label",{for:"scale-type",textContent:he(e.i18n.scaleType)},null,8,v3),Ha(u,{name:"undo4",onClick:t[14]||(t[14]=function(e){return o.resetValue("scaleType")}),"data-balloon":e.i18n.reset},null,8,["data-balloon"])]),Ha(c,{id:"scale-type",value:o.getValue("scaleType"),disabled:o.getValue("isManual",!1),readonly:o.getValue("isManual",!1),onInput:t[15]||(t[15]=function(e){return o.setValue("scaleType",e)}),class:te({changed:o.hasChanged("scaleType")}),control:{options:{tshirt:this.i18n.tshirt,numeric:this.i18n.numeric,custom:this.i18n.custom},clearable:!1}},null,8,["value","disabled","readonly","class","control"])]),"custom"===o.getValue("scaleType")?(Ta(),Ma("div",y3,[qa("div",b3,[qa("label",{for:"scale-type-custom",textContent:he("".concat(e.i18n.scaleSteps," (,)"))},null,8,k3)]),qa("input",{type:"text",id:"scale-type-custom",spellcheck:"false",disabled:o.getValue("isManual",!1),readonly:o.getValue("isManual",!1),class:te({changed:o.hasChanged("scaleNames")}),placeholder:"2xs,xs,s,m,l,xl",value:o.getValue("scaleNames"),onInput:t[16]||(t[16]=function(e){return o.setValue("scaleNames",e.target.value.split(",").map(function(e){return e.trim()}))})},null,42,w3)])):Qa("",!0),qa("div",_3,[qa("div",C3,[qa("label",{for:"baseline",textContent:he(e.i18n.baselineStep)},null,8,x3),Ha(u,{name:"undo4",onClick:t[17]||(t[17]=function(e){return o.resetValue("baseline")}),"data-balloon":e.i18n.reset},null,8,["data-balloon"])]),Ha(c,{id:"baseline",disabled:o.getValue("isManual",!1),readonly:o.getValue("isManual",!1),value:o.getValue("baseline"),onInput:t[18]||(t[18]=function(e){return o.setValue("baseline",e)}),class:te({changed:o.hasChanged("baseline")}),control:o.baselineControl},null,8,["disabled","readonly","value","class","control"])]),qa("h6",null,he(e.i18n.minimum)+" ("+he(e.i18n.mobile)+")",1),qa("div",S3,[qa("div",E3,[qa("label",A3,he(o.baseSizeLabel)+" (px)",1),Ha(u,{name:"undo4",onClick:t[19]||(t[19]=function(e){return o.resetValue("minFontSize")}),"data-balloon":e.i18n.reset},null,8,["data-balloon"])]),qa("input",{type:"number",id:"min-font-size",spellcheck:"false",disabled:o.getValue("isManual",!1),readonly:o.getValue("isManual",!1),class:te({changed:o.hasChanged("minFontSize")}),value:o.getValue("minFontSize",0),onInput:t[20]||(t[20]=function(e){return o.setValue("minFontSize",e.target.value)})},null,42,D3)]),qa("div",T3,[qa("div",I3,[qa("label",{for:"scale-type",textContent:he(o.scaleRatioLabel)},null,8,O3),Ha(u,{name:"undo4",onClick:t[21]||(t[21]=function(e){return o.resetValue("minScaleRatioSelect")}),"data-balloon":e.i18n.reset},null,8,["data-balloon"])]),Ha(c,{id:"min-scale-ratio-select",disabled:o.getValue("isManual",!1),readonly:o.getValue("isManual",!1),value:o.getValue("minScaleRatioSelect"),onInput:t[22]||(t[22]=function(e){return o.setValue("minScaleRatioSelect",e)}),control:r.scaleRatioControl,class:te({changed:o.hasChanged("minScaleRatioSelect")})},null,8,["disabled","readonly","value","control","class"])]),"custom"==o.getValue("minScaleRatioSelect")?(Ta(),Ma("div",P3,[qa("div",F3,[qa("label",$3,he(o.scaleRatioLabel),1),Ha(u,{name:"undo4",onClick:t[23]||(t[23]=function(e){return o.resetValue("minScaleRatio")}),"data-balloon":e.i18n.reset},null,8,["data-balloon"])]),qa("input",{type:"number",id:"min-scale-ratio",step:"0.01",disabled:o.getValue("isManual",!1),readonly:o.getValue("isManual",!1),class:te({changed:o.hasChanged("minScaleRatio")}),value:o.getValue("minScaleRatio",1),onInput:t[24]||(t[24]=function(e){return o.setValue("minScaleRatio",e.target.value)})},null,42,M3)])):Qa("",!0),qa("h6",null,he(e.i18n.maximum)+" ("+he(e.i18n.desktop)+")",1),qa("div",L3,[qa("div",N3,[qa("label",j3,he(o.baseSizeLabel),1),Ha(u,{name:"undo4",onClick:t[25]||(t[25]=function(e){return o.resetValue("maxFontSize")}),"data-balloon":e.i18n.reset},null,8,["data-balloon"])]),qa("input",{type:"number",id:"max-font-size",disabled:o.getValue("isManual",!1),readonly:o.getValue("isManual",!1),class:te({changed:o.hasChanged("maxFontSize")}),onInput:t[26]||(t[26]=function(e){return o.setValue("maxFontSize",e.target.value)}),value:o.getValue("maxFontSize",0)},null,42,B3)]),qa("div",R3,[qa("div",V3,[qa("label",{for:"scale-type",textContent:he(o.scaleRatioLabel)},null,8,q3),Ha(u,{name:"undo4",onClick:t[27]||(t[27]=function(e){return o.resetValue("maxScaleRatioSelect")}),"data-balloon":e.i18n.reset},null,8,["data-balloon"])]),Ha(c,{id:"max-scale-ratio-select",disabled:o.getValue("isManual",!1),readonly:o.getValue("isManual",!1),value:o.getValue("maxScaleRatioSelect"),onInput:t[28]||(t[28]=function(e){return o.setValue("maxScaleRatioSelect",e)}),control:r.scaleRatioControl,class:te({changed:o.hasChanged("maxScaleRatioSelect")})},null,8,["disabled","readonly","value","control","class"])]),"custom"==o.getValue("maxScaleRatioSelect","custom")?(Ta(),Ma("div",H3,[qa("div",z3,[qa("label",U3,he(o.scaleRatioLabel)+" ("+he(e.i18n.custom)+")",1),Ha(u,{name:"undo4",onClick:t[29]||(t[29]=function(e){return o.resetValue("maxScaleRatio")}),"data-balloon":e.i18n.reset},null,8,["data-balloon"])]),qa("input",{type:"number",id:"max-scale-ratio",step:"0.01",disabled:o.getValue("isManual",!1),readonly:o.getValue("isManual",!1),class:te({changed:o.hasChanged("maxScaleRatio")}),value:o.getValue("maxScaleRatio",1),onInput:t[30]||(t[30]=function(e){return o.setValue("maxScaleRatio",e.target.value)})},null,42,W3)])):Qa("",!0),qa("div",G3,[qa("button",{type:"submit",class:"generate",textContent:he(e.i18n.generateVariables),onClick:t[31]||(t[31]=function(e){return o.onGenerateVariablesFormSubmit()})},null,8,K3)])],34),r.variables.length?(Ta(),Ma("div",Q3,[(Ta(),La(h,{tag:"ul",key:r.category.id,parent:r.variables,options:{direction:"vertical",itemClass:"sortable",handleClass:"move"}},{default:Jn(function(){return[(Ta(!0),Ma(Ca,null,Rr(r.variables,function(n,i){return Ta(),Ma("li",{key:n.id,class:te(["variable",{selected:o.isSelected(n.id),"is-manual":o.getValue("isManual",!1)}]),onClick:bc(function(e){return o.selectItem(n.id)},["stop"])},[0==i||i==r.variables.length-1?(Ta(),Ma("div",{key:0,class:te({"actions-wrapper":!0,above:0===i||1===r.variables.length,below:i===r.variables.length-1&&r.variables.length>1})},["custom"!==o.getValue("scaleType")?(Ta(),Ma("div",{key:0,class:"action add",title:e.i18n.add,onClick:bc(function(e){return o.addScale(i===r.variables.length-1&&r.variables.length>1)},["stop"])},[Ha(u,{name:"add"})],8,J3)):Qa("",!0),r.variables.length>1?(Ta(),Ma("div",{key:1,class:"action remove",title:e.i18n.remove,onClick:bc(function(e){return o.removeScale(i===r.variables.length-1)},["stop"])},[Ha(u,{name:"trash"})],8,X3)):Qa("",!0)],2)):Qa("",!0),1==r.variables.length&&"custom"!==o.getValue("scaleType")?(Ta(),Ma("div",Z3,["custom"!==o.getValue("scaleType")?(Ta(),Ma("div",{key:0,class:"action add","data-balloon":e.i18n.add,"data-balloon-pos":"top-right",onClick:t[33]||(t[33]=bc(function(e){return o.addScale(!0)},["stop"]))},[Ha(u,{name:"add"})],8,e5)):Qa("",!0)])):Qa("",!0),qa("div",{class:"variable-name",textContent:he("--".concat(n.name))},null,8,t5),"typography"===e.$_state.popupTab?(Ta(),Ma("div",n5,[qa("div",i5,[qa("div",r5,"min "+he(o.getValue("isManual",!1)?"(px)":""),1),o.getValue("isManual",!1)?(Ta(),Ma("input",{key:1,type:"number",class:"manual-input min",placeholder:e.$_createVariableObject(r.category,i-o.baselineScaleIndex,"min"),value:o.getManualValue(i,"min"),onBlur:function(e){return o.setManualValue(i,"min",e.target.value)},onClick:t[34]||(t[34]=bc(function(){},["stop"]))},null,40,a5)):(Ta(),Ma("div",{key:0,class:"value",textContent:he(e.$_createVariableObject(r.category,i-o.baselineScaleIndex,"min"))},null,8,o5)),qa("div",{class:"preview",textContent:he(r.previewText),style:Y({fontSize:e.$_createVariableObject(r.category,i-o.baselineScaleIndex,"min")})},null,12,s5)]),qa("div",l5,[qa("div",c5,"max "+he(o.getValue("isManual",!1)?"(px)":""),1),o.getValue("isManual",!1)?(Ta(),Ma("input",{key:1,type:"number",class:"manual-input max",placeholder:e.$_createVariableObject(r.category,i-o.baselineScaleIndex,"max"),value:o.getManualValue(i,"max"),onBlur:function(e){return o.setManualValue(i,"max",e.target.value)},onClick:t[35]||(t[35]=bc(function(){},["stop"]))},null,40,d5)):(Ta(),Ma("div",{key:0,class:"value",textContent:he(e.$_createVariableObject(r.category,i-o.baselineScaleIndex,"max"))},null,8,u5)),qa("div",{class:"preview",textContent:he(r.previewText),style:Y({fontSize:e.$_createVariableObject(r.category,i-o.baselineScaleIndex,"max")})},null,12,p5)])])):"spacing"===e.$_state.popupTab?(Ta(),Ma("div",h5,[qa("div",f5,[qa("div",m5,"min "+he(o.getValue("isManual",!1)?"(px)":""),1),o.getValue("isManual",!1)?(Ta(),Ma("input",{key:1,type:"number",class:"manual-input min",placeholder:e.$_createVariableObject(r.category,i-o.baselineScaleIndex,"min"),value:o.getManualValue(i,"min"),onBlur:function(e){return o.setManualValue(i,"min",e.target.value)},onClick:t[36]||(t[36]=bc(function(){},["stop"]))},null,40,v5)):(Ta(),Ma("div",{key:0,class:"value",textContent:he(e.$_createVariableObject(r.category,i-o.baselineScaleIndex,"min"))},null,8,g5)),qa("div",{class:"preview",style:Y({width:o.getPreviewValue(i,"min")})},null,4)]),qa("div",y5,[qa("div",b5,"max "+he(o.getValue("isManual",!1)?"(px)":""),1),o.getValue("isManual",!1)?(Ta(),Ma("input",{key:1,type:"number",class:"manual-input max",placeholder:e.$_createVariableObject(r.category,i-o.baselineScaleIndex,"max"),value:o.getManualValue(i,"max"),onBlur:function(e){return o.setManualValue(i,"max",e.target.value)},onClick:t[37]||(t[37]=bc(function(){},["stop"]))},null,40,w5)):(Ta(),Ma("div",{key:0,class:"value",textContent:he(e.$_createVariableObject(r.category,i-o.baselineScaleIndex,"max"))},null,8,k5)),qa("div",{class:"preview",style:Y({width:o.getPreviewValue(i,"max")})},null,4)])])):Qa("",!0)],10,Y3)}),128))]}),_:1},8,["parent"]))])):Qa("",!0)])):Qa("",!0),"edit"===r.action&&r.variables.length?(Ta(),Ma("div",_5,[qa("div",C5,[qa("h5",{class:"title",textContent:he(e.i18n.utilityClasses)},null,8,x5),qa("div",S5,[qa("button",{class:"action","data-balloon":e.i18n.addUtilityClass,"data-balloon-pos":"top-right",onClick:t[38]||(t[38]=function(e){return o.addUtilityClass()})},[Ha(u,{name:"add"})],8,E5),r.utilityClasses.length?(Ta(),Ma("button",{key:0,class:"action","data-balloon":e.i18n.utilityClassesGenerate,"data-balloon-pos":"top-right",onClick:t[39]||(t[39]=function(e){return o.generateUtilityClasses()})},[Ha(u,{name:"refresh"})],8,A5)):Qa("",!0)])]),qa("p",{class:"description",textContent:he(e.i18n.utilityClassesDescriptionScales)},null,8,D5),qa("form",{onSubmit:t[40]||(t[40]=bc(function(){},["prevent"]))},[(Ta(!0),Ma(Ca,null,Rr(r.utilityClasses,function(t,n){return Ta(),Ma("div",{key:n,class:"utility-class-item"},[qa("div",T5,[qa("div",I5,[qa("label",{textContent:he(e.i18n.className)},null,8,O5),qa("input",{type:"text",placeholder:"".concat(o.getValue("prefix"),"*"),spellcheck:"false",value:t.className,onInput:function(e){return o.updateUtilityClass(n,"className",e.target.value)}},null,40,P5)]),qa("div",F5,[qa("label",{textContent:he(e.i18n.cssProperty)},null,8,$5),qa("input",{type:"text",placeholder:"font-size",spellcheck:"false",value:t.cssProperty,onInput:function(e){return o.updateUtilityClass(n,"cssProperty",e.target.value)}},null,40,M5)]),qa("div",{class:"actions-wrapper remove","data-balloon":e.i18n.remove,"data-balloon-pos":"top-right",onClick:function(e){return o.removeUtilityClass(n)}},[Ha(u,{name:"close",class:"action"})],8,L5)])])}),128))],32)])):Qa("",!0)])):(Ta(),Ma("div",V4,[o.scales.length?Qa("",!0):(Ta(),La(l,{key:0,control:{content:e.i18n.scalesEmpty}},null,8,["control"])),qa("form",{class:"has-border",onSubmit:t[2]||(t[2]=bc(function(e){return o.createNewScale()},["prevent"]))},[qa("div",q4,[qa("label",{for:"new-scale-name",textContent:he(e.i18n.scaleName)},null,8,H4),Xn(qa("input",{type:"text",id:"new-scale-name",autocomplete:"off",spellcheck:"false",class:te({error:!r.scaleName}),"onUpdate:modelValue":t[0]||(t[0]=function(e){return r.scaleName=e})},null,2),[[ac,r.scaleName]])]),qa("p",{class:"description",textContent:he(o.scaleDescription)},null,8,z4),qa("div",U4,[qa("button",{type:"submit",textContent:he(e.i18n.create)},null,8,W4),o.scales.length?(Ta(),Ma("button",{key:0,type:"button",class:"cancel",textContent:he(e.i18n.cancel),onClick:t[1]||(t[1]=function(e){return r.action="edit"})},null,8,G4)):Qa("",!0)])],32)]))],64)}]]),PopupStylesThemeStyles:(0,xx.A)(k8,[["render",function(e,t,n,i,r,o){var a,s,l=$r("icon"),c=$r("control-info"),u=$r("control-file-import"),d=$r("panel-control-popup"),p=$r("panel-controls");return Ta(),Ma(Ca,null,[qa("div",z5,[qa("h1",{class:"title",innerHTML:e.i18n.themeStyles},null,8,U5),qa("ul",W5,[r.activeStyle&&!r.selectorInput?(Ta(),Ma("li",{key:0,class:te(["export",{active:"export"===r.action}]),"data-balloon":e.i18n.export,"data-balloon-pos":"bottom-right",onClick:t[0]||(t[0]=bc(function(e){return o.exportThemeStyle()},["stop"]))},[Ha(l,{name:"export"})],10,G5)):Qa("",!0),r.selectorInput?Qa("",!0):(Ta(),Ma("li",{key:1,class:te(["import",{active:"import"===r.action}]),"data-balloon":e.i18n.import,"data-balloon-pos":"bottom-right",onClick:t[1]||(t[1]=bc(function(e){return r.action="import"===r.action?null:"import"},["stop"]))},[Ha(l,{name:"import"})],10,K5))])]),null!==(a=i.themeStyleSettings)&&void 0!==a&&a.conditions&&Object.keys(null===(s=i.themeStyleSettings)||void 0===s?void 0:s.conditions).length?Qa("",!0):(Ta(),La(c,{key:0,control:o.themeStyleInfo},null,8,["control"])),Ha(c,{control:o.themeStyleInfoLoadingMethod},null,8,["control"]),"import"===r.action?(Ta(),Ma("div",Q5,[qa("div",{class:"title",textContent:he("".concat(e.i18n.import,": ").concat(e.i18n.themeStyle))},null,8,Y5),Ha(u,{control:o.fileImportControl,results:r.importResults,onImported:o.importThemeStyle,onCloseMe:t[2]||(t[2]=function(e){return o.closeMe()})},null,8,["control","results","onImported"])])):(Ta(),Ma(Ca,{key:2},[qa("div",J5,[qa("div",{class:te(["active-selector",{"show-popup":r.showDropdown}]),onClick:t[9]||(t[9]=bc(function(e){return r.showDropdown=!r.showDropdown},["stop"]))},[qa("div",X5,[qa("span",{ref:"activeSelectorInput",class:te(["input",{active:r.activeStyle||e.$_state.pseudoClassActive},{empty:!o.activeStyleName},{"has-selector":e.$_state.pseudoClassActive}]),contenteditable:"rename"===r.action,autocomplete:"off",spellcheck:"false",textContent:he(o.activeStyleName||"".concat(e.i18n.select,": ").concat(e.i18n.themeStyle)),onBlur:t[3]||(t[3]=function(e){return o.renameThemeStyle(e.target.innerText)}),onKeyup:t[4]||(t[4]=wc(function(e){return o.renameThemeStyle(e.target.innerText)},["enter"]))},null,42,Z5),e.$_state.pseudoClassActive?(Ta(),Ma("span",{key:0,type:"text",class:"input selector",autocomplete:"off",spellcheck:"false",size:e.$_state.pseudoClassActive.length,title:e.i18n.selector,textContent:he(e.$_state.pseudoClassActive),onClick:t[5]||(t[5]=bc(function(e){return o.toggleSelectors()},["stop"]))},null,8,e8)):Qa("",!0)]),r.activeStyle?(Ta(),Ma("div",t8,[!r.action&&e.$_state.pseudoClassActive?(Ta(),La(l,{key:0,name:"close",class:"clear","data-balloon":e.i18n.deselect,"data-balloon-pos":"top-right",onClick:t[6]||(t[6]=bc(function(e){return o.clearActiveSelector()},["stop"]))},null,8,["data-balloon"])):r.action||e.$_state.pseudoClassActive||!r.activeStyle?Qa("",!0):(Ta(),La(l,{key:1,name:"close",class:"clear","data-balloon":e.i18n.deselect,"data-balloon-pos":"top-right",onClick:t[7]||(t[7]=bc(function(e){return r.activeStyle=void 0},["stop"]))},null,8,["data-balloon"])),qa("div",{class:te(["actions",{"no-selectors-permission":!e.$_userHasPermission("access_pseudo_selectors")}])},[e.$_userHasPermission("access_pseudo_selectors")?(Ta(),Ma("div",{key:0,class:"selectors-wrapper",onClick:t[8]||(t[8]=bc(function(e){return o.toggleSelectors()},["stop"]))},[r.activeStyle?(Ta(),La(l,{key:0,name:"cursor",class:te(["selectors",{active:r.showSelectors},{"has-settings":o.selectorSettingsCount}]),"data-balloon":o.selectorSettingsCount?"".concat(e.i18n.selectors," (").concat(o.selectorSettingsCount,")"):e.i18n.selectors,"data-balloon-pos":"top-right"},null,8,["class","data-balloon"])):Qa("",!0)])):Qa("",!0)],2)])):Qa("",!0)],2),Ha(d,{show:r.showDropdown,onClosePopup:o.closeDropdown},{default:Jn(function(){return[r.showSelectors?Qa("",!0):(Ta(),Ma("div",n8,[Xn(qa("input",{ref:"selectorInput","onUpdate:modelValue":t[10]||(t[10]=function(e){return r.selectorInput=e}),type:"text",autocomplete:"off",spellcheck:"false",placeholder:r.showSelectors?e.i18n.selectors:e.i18n.themeStyleNewName,onKeyup:t[11]||(t[11]=wc(function(e){return o.createThemeStyle()},["enter"]))},null,40,i8),[[ac,r.selectorInput]]),qa("div",r8,[r.selectorInput&&!r.showSelectors?(Ta(),La(l,{key:0,name:"save","data-balloon":"".concat(e.i18n.create,": ").concat(e.i18n.themeStyle),"data-balloon-pos":"top-right",onClick:t[12]||(t[12]=function(e){return o.createThemeStyle()})},null,8,["data-balloon"])):Qa("",!0)])])),r.showSelectors?Qa("",!0):(Ta(),Ma("ul",o8,[(Ta(!0),Ma(Ca,null,Rr(o.themeStylesSorted,function(n,i){return Ta(),Ma("li",{key:i,class:te({active:r.activeStyle===i,"group-title":i.endsWith("GroupTitle")}),onClick:bc(function(e){return i.endsWith("GroupTitle")?null:o.setActiveStyle(i)},["stop"])},[null!=n&&n.label?(Ta(),Ma("span",{key:0,textContent:he(n.label)},null,8,s8)):Qa("",!0),qa("div",l8,[i===r.activeStyle?(Ta(),La(l,{key:0,name:"edit","data-balloon":e.i18n.rename,"data-balloon-pos":"top-right",onClick:t[13]||(t[13]=bc(function(e){return r.action="rename"},["stop"]))},null,8,["data-balloon"])):Qa("",!0),e.$_state.deleteItem!==i?(Ta(),La(l,{key:1,name:"trash","data-balloon":e.i18n.delete,"data-balloon-pos":"top-right",onClick:bc(function(t){return e.$_deleteConfirmation(i)},["stop"])},null,8,["data-balloon","onClick"])):Qa("",!0),e.$_state.deleteItem===i?(Ta(),La(l,{key:2,name:"check","data-balloon":e.i18n.sure,"data-balloon-pos":"top-right",onClick:bc(function(e){return o.deleteThemeStyle(i)},["stop"])},null,8,["data-balloon","onClick"])):Qa("",!0)])],10,a8)}),128))])),r.showSelectors?(Ta(),Ma("h6",{key:2,class:"title",textContent:he("".concat(e.i18n.pseudos," (").concat(e.i18n.global,")"))},null,8,c8)):Qa("",!0),r.showSelectors?(Ta(),Ma("ul",u8,[(Ta(!0),Ma(Ca,null,Rr(e.$_state.pseudoClasses,function(t){return Ta(),Ma("li",{key:t,class:te([{active:e.$_state.pseudoClassActive===t},"skip"]),onClick:function(e){return o.setActivePseudoClass(t)}},[qa("span",{class:"name",textContent:he(t)},null,8,p8),qa("div",h8,[e.$_state.deleteItem===t||[":hover",":active",":focus"].includes(t)?Qa("",!0):(Ta(),La(l,{key:0,class:"delete on-hover",name:"trash","data-balloon":e.i18n.delete,"data-balloon-pos":"top-right",onClick:bc(function(n){return e.$_state.deleteItem=t},["stop"])},null,8,["data-balloon","onClick"])),e.$_state.deleteItem===t?(Ta(),La(l,{key:1,class:"confirm on-hover",name:"check","data-balloon":e.i18n.sure,"data-balloon-pos":"top-right",onClick:bc(function(e){return o.deletePseudo(t)},["stop"])},null,8,["data-balloon","onClick"])):Qa("",!0),o.pseudoClassSettingsCount(t)?(Ta(),La(l,{key:2,class:"clear",name:"close","data-balloon":e.i18n.clear,"data-balloon-pos":"top-right",onClick:bc(function(e){return o.clearPseudoClassSettings(t)},["stop"])},null,8,["data-balloon","onClick"])):Qa("",!0)])],10,d8)}),128))])):Qa("",!0)]}),_:1},8,["show","onClosePopup"])]),r.activeStyle&&"create"!==r.action?(Ta(),La(p,{key:0,type:"style",block:o.themeStyle,settings:o.settings},null,8,["block","settings"])):Qa("",!0)],64))],64)}]]),PopupStylesFramework:(0,xx.A)(Q8,[["render",function(e,t,n,i,r,o){$r("control-file-import");var a=$r("control-code"),s=$r("control-text"),l=$r("control-select"),c=$r("panel-control");return Ta(),Ma(Ca,null,[qa("div",w8,[qa("h1",{textContent:he("parsed"===r.action?e.i18n.parsedCss:e.i18n.framework)},null,8,_8),qa("p",{class:"description",textContent:he("parsed"===r.action?e.i18n.styleManagerFrameworkParsedClassesDesc:e.i18n.styleManagerFrameworkDesc)},null,8,C8)]),"import"===r.action?(Ta(),Ma("div",x8,[qa("div",S8,[Qa("",!0),Ha(a,{control:{mode:"css",placeholder:".class1 { property: value; }\n.class2 { property: value; }",header:!1},value:r.cssStringToImport,onInput:t[1]||(t[1]=function(e){return r.cssStringToImport=e})},null,8,["value"]),qa("button",{type:"submit",disaled:!r.cssStringToImport,textContent:he(e.i18n.parseCss),onClick:t[2]||(t[2]=function(e){return r.action="parsed"})},null,8,E8)])])):Qa("",!0),"parsed"===r.action?(Ta(),Ma("div",A8,[e.$_userHasPermission("access_class_manager")?(Ta(),Ma("button",{key:0,class:te(["tab",{active:"classes"===r.activeTab}]),textContent:he("".concat(e.i18n.classes," (").concat(o.currentClassesCount,")")),onClick:t[3]||(t[3]=function(e){return r.activeTab="classes"})},null,10,D8)):Qa("",!0),e.$_userHasPermission("access_variable_manager")?(Ta(),Ma("button",{key:1,class:te(["tab",{active:"variables"===r.activeTab}]),textContent:he("".concat(e.i18n.variables," (").concat(o.currentVariablesCount,")")),onClick:t[4]||(t[4]=function(e){return r.activeTab="variables"})},null,10,T8)):Qa("",!0)])):Qa("",!0),"parsed"===r.action&&"classes"===r.activeTab?(Ta(),Ma("div",I8,[qa("div",O8,[(Ta(!0),Ma(Ca,null,Rr(r.categories,function(e,t){return Ta(),Ma("button",{key:t,class:te(["category",t,{active:r.activeCategory===t},{empty:!e.rules}]),textContent:he(e.label),onClick:function(e){return r.activeCategory=t}},null,10,P8)}),128))]),(Ta(),La(a,{value:r.categories[r.activeCategory].rules,key:r.activeCategory,onInput:t[5]||(t[5]=function(e){return o.updateClasses(e)}),control:{mode:"css",header:!1}},null,8,["value"])),r.categories.all.rules?(Ta(),Ma("div",F8,[Ha(s,{value:r.classesPrefix,"onUpdate:value":t[6]||(t[6]=function(e){return r.classesPrefix=e}),controlKey:"classesPrefix",control:{dd:!1,placeholder:"".concat(e.i18n.prefix," (").concat(e.i18n.className,")")}},null,8,["value","control"]),r.classesPrefix?(Ta(),Ma("code",$8,[t[17]||(t[17]=qa("span",{class:"name"},".",-1)),qa("span",{class:"prefix",textContent:he("".concat(r.classesPrefix))},null,8,M8),t[18]||(t[18]=qa("span",{class:"name"},"class-name",-1))])):Qa("",!0),Ha(l,{value:r.classesCategory,"onUpdate:value":t[7]||(t[7]=function(e){return r.classesCategory=e}),controlKey:"classesCategory",control:{options:e.$_state.globalClassesCategories.map(function(e){return{value:e.id,label:e.name}}),add:!0,nothingFound:"".concat(e.i18n.category," (").concat(e.i18n.classManager,")"),placeholder:"".concat(e.i18n.category," (").concat(e.i18n.classManager,")")},onInput:t[8]||(t[8]=function(e){return o.setClassCategory(e)})},null,8,["value","control"]),Ha(c,{controlKey:"classesAddSettings",control:{type:"checkbox",inline:!0,label:e.i18n.styleManagerFrameworkAddCustomCss,desc:e.i18n.styleManagerFrameworkAddCustomCssDesc},value:r.classesAddSettings,onUpdated:t[9]||(t[9]=function(e){return r.classesAddSettings=e})},null,8,["control","value"]),qa("button",{type:"submit",textContent:he("".concat(e.i18n.addToClassManager)),onClick:t[10]||(t[10]=function(e){return o.generateClasses()})},null,8,L8)])):Qa("",!0)])):Qa("",!0),"parsed"===r.action&&"variables"===r.activeTab?(Ta(),Ma("div",N8,[qa("p",{class:"description",textContent:he(e.i18n.styleManagerFrameworkParsedVariablesDesc)},null,8,j8),Ha(a,{value:r.parsedVariables,onInput:t[11]||(t[11]=function(e){return o.updateVariables(e)}),control:{mode:"css",header:!1}},null,8,["value"]),r.parsedVariables?(Ta(),Ma("div",B8,[Ha(s,{value:r.variablesPrefix,"onUpdate:value":t[12]||(t[12]=function(e){return r.variablesPrefix=e}),control:{dd:!1,placeholder:"".concat(e.i18n.prefix," (").concat(e.i18n.variableName,")")}},null,8,["value","control"]),r.variablesPrefix?(Ta(),Ma("code",R8,[t[19]||(t[19]=qa("span",{class:"name"},"--",-1)),qa("span",{class:"prefix",textContent:he("".concat(r.variablesPrefix))},null,8,V8),t[20]||(t[20]=qa("span",{class:"name"},"variable-name",-1))])):Qa("",!0),Ha(l,{value:r.variablesCategory,"onUpdate:value":t[13]||(t[13]=function(e){return r.variablesCategory=e}),control:{label:e.i18n.category,options:e.$_state.globalVariablesCategories.map(function(e){return{value:e.id,label:e.name}}),add:!0,nothingFound:"".concat(e.i18n.category," (").concat(e.i18n.variableManager,")"),placeholder:"".concat(e.i18n.category," (").concat(e.i18n.variableManager,")")},onInput:t[14]||(t[14]=function(e){return o.setVariableCategory(e)})},null,8,["value","control"]),Ha(c,{controlKey:"variablesAddValue",control:{type:"checkbox",inline:!0,label:e.i18n.styleManagerFrameworkAddVariableValues,desc:e.i18n.styleManagerFrameworkAddVariableValuesDesc},value:r.variablesAddValue,onUpdated:t[15]||(t[15]=function(e){return r.variablesAddValue=e})},null,8,["control","value"]),qa("button",{type:"submit",textContent:he("".concat(e.i18n.addToVariableManager)),onClick:t[16]||(t[16]=function(e){return o.generateVariables()})},null,8,q8)])):Qa("",!0)])):Qa("",!0)],64)}]]),PopupStylesSettings:WX},data:function(){return{importMode:!1,canvasWidthPercent:40,isResizing:!1,initialX:0,initialWidth:0,canvasVisible:!1,popupElement:null,viewportWidth:window.innerWidth}},computed:{showCanvasPreview:function(){return!this.importMode&&["theme-styles","colors","classes","variables","typography","spacing"].includes(this.$_state.popupTab)},contentMinWidth:function(){var e=this.$_state.popupTab;return["classes","variables"].includes(e)?1100:"colors"===e?650:400},canvasDisabledDueToSpace:function(){if(!this.showCanvasPreview)return!1;return this.viewportWidth-this.contentMinWidth<20*this.viewportWidth/100},canvasPreviewVisible:function(){return!!this.showCanvasPreview&&(!this.canvasDisabledDueToSpace&&this.canvasVisible)},showBreakpointsInHeader:function(){return"theme-styles"===this.$_state.popupTab||this.showCanvasPreview&&this.canvasPreviewVisible},filteredBreakpoints:function(){return this.$_state.breakpoints.filter(function(e){return!e.paused})},breakpoints:function(){return this.$_state.breakpoints.filter(function(e){return!e.paused})},sidebarItems:function(){var e={"theme-styles":{label:this.i18n.themeStyles,icon:"design-palette",type:"manage"},classes:{label:this.i18n.classes,icon:"css3",type:"manage"},variables:{label:this.i18n.variables,icon:"curly-brackets",type:"manage"},colors:{label:this.i18n.colors,icon:"color",type:"manage"},typography:{label:this.i18n.typography,icon:"tab-typography",type:"generate"},spacing:{label:this.i18n.spacing,icon:"width_",type:"generate"},framework:{label:this.i18n.framework,icon:"tab-layout",type:"generate"},settings:{label:this.i18n.settings,icon:"settings"}};return!this.bricks.disableClassManager&&this.$_userHasPermission("access_class_manager")||delete e.classes,!this.bricks.disableVariablesManager&&this.$_userHasPermission("access_variable_manager")||(delete e.variables,delete e.typography,delete e.spacing),this.$_userHasPermission("edit_color_palettes")||delete e.colors,this.$_userHasPermission("access_theme_styles")||delete e["theme-styles"],(!this.$_userHasPermission("access_class_manager")&&!this.$_userHasPermission("access_variable_manager")||this.bricks.disableClassManager&&this.bricks.disableVariablesManager)&&delete e.framework,(this.bricks.disableClassManager&&this.bricks.disableVariablesManager||!this.$_userHasPermission("access_class_manager")&&!this.$_userHasPermission("access_variable_manager"))&&delete e.settings,e},visibleTabsWithIndex:function(){return Object.entries(this.sidebarItems).map(function(e,t){var n=Y8(e,2);return{key:n[0],item:n[1],index:t+1}})},filterByOptions:function(){var e={};return"classes"===this.$_state.popupTab?this.importMode?{hasConflict:this.i18n.hasConflict,noConflict:this.i18n.noConflict,hasStyles:this.i18n.hasStyles,hasNoStyles:this.i18n.hasNoStyles}:(e.usedOnPage=this.i18n.usedOnThisPage,e.unusedOnPage=this.i18n.unusedOnThisPage,e.usedOnThisSite=this.i18n.usedOnThisSite,e.unusedOnThisSite=this.i18n.unusedOnThisSite,e.hasStyles=this.i18n.hasStyles,e.hasNoStyles=this.i18n.hasNoStyles,e.locked=this.i18n.locked,e.unlocked=this.i18n.unlocked,e):(e.usedOnPage=this.i18n.usedOnThisPage,e.unusedOnPage=this.i18n.unusedOnThisPage,e)}},methods:{setBreakpoint:function(e){this.$_state.breakpointActive=e},onWindowResize:function(){this.viewportWidth=window.innerWidth},setPopupTab:function(e){this.$_state.popupTab=e,["import","export"].includes(e)?this.$_state.popupView=e:this.$_state.popupView=null,localStorage.setItem("brx_builder_popuptab",e)},toggleCanvasPreview:function(){var e=this;if(!this.canvasDisabledDueToSpace){var t="brx_builder_popup_canvas_preview_".concat(this.$_state.popupTab);this.canvasVisible=!this.canvasVisible,localStorage.setItem(t,this.canvasVisible.toString()),this.$nextTick(function(){e.updateCanvasWidth()})}},startResize:function(e){var t;this.isResizing=!0,this.initialX=e.detail.clientX,this.initialWidth=this.canvasWidthPercent,this.popupElement=(null===(t=this.$el)||void 0===t?void 0:t.closest(".bricks-popup.styles"))||document.querySelector(".bricks-popup.styles"),document.addEventListener("mousemove",this.onResize),document.addEventListener("mouseup",this.stopResize),document.body.style.cursor="col-resize",document.body.style.userSelect="none",document.body.classList.add("is-resizing-canvas")},onResize:function(e){if(this.isResizing){var t=document.querySelector(".bricks-popup.styles main.content"),n=t?t.offsetWidth:window.innerWidth,i=(e.clientX-this.initialX)/n*100,r=this.bricks.isRtl?this.initialWidth+i:this.initialWidth-i,o=n-this.contentMinWidth,a=Math.min(60,o/n*100);this.canvasWidthPercent=Math.max(20,Math.min(a,r)),this.updateCanvasWidth()}},stopResize:function(){if(this.isResizing){this.isResizing=!1,document.removeEventListener("mousemove",this.onResize),document.removeEventListener("mouseup",this.stopResize),document.body.style.cursor="",document.body.style.userSelect="",document.body.classList.remove("is-resizing-canvas");var e="brx_builder_popup_canvas_width_".concat(this.$_state.popupTab);localStorage.setItem(e,this.canvasWidthPercent.toString())}},updateCanvasWidth:function(){var e;if(this.canvasPreviewVisible){var t=null===(e=this.$el)||void 0===e?void 0:e.closest(".bricks-popup.styles");t||(t=document.querySelector(".bricks-popup.styles")),t&&t.style.setProperty("--canvas-width-percent",this.canvasWidthPercent.toString())}},loadCanvasPreferences:function(){var e="brx_builder_popup_canvas_width_".concat(this.$_state.popupTab),t=localStorage.getItem(e);if(t){var n=parseFloat(t);this.canvasWidthPercent=Math.max(20,Math.min(60,n))}else this.canvasWidthPercent=40;var i="brx_builder_popup_canvas_preview_".concat(this.$_state.popupTab),r=localStorage.getItem(i);this.canvasVisible=null!==r&&"true"===r,this.updateCanvasWidth()},handleAcceptAll:function(){this.$refs.classesComponent&&this.$refs.classesComponent.acceptAllClasses()},handleRejectAll:function(){this.$refs.classesComponent&&this.$refs.classesComponent.rejectAllClasses()}},watch:{"$_state.popupTab":function(){this.loadCanvasPreferences()},visibleTabsWithIndex:{handler:function(e){this.$_state.styleManagerVisibleTabs=e.map(function(e){return e.key})},immediate:!0}},created:function(){Array.isArray(this.$_state.globalVariablesCategories)&&this.$_state.globalVariablesCategories.forEach(function(e){e.fluid&&(console.warn(e),e.scale=e.fluid,delete e.fluid)})},mounted:function(){var e,t,n=null!==(e=localStorage.getItem("brx_builder_popuptab"))&&void 0!==e?e:"colors";Object.keys(this.sidebarItems).includes(n)||(n="colors"),"classes"!==n||this.$_userHasPermission("access_class_manager")||(n="colors",localStorage.removeItem("brx_builder_popuptab")),["variables","typography","spacing"].includes(n)&&!this.$_userHasPermission("access_variable_manager")&&(n="colors",localStorage.removeItem("brx_builder_popuptab")),"colors"!==n||this.$_userHasPermission("edit_color_palettes")||(n="colors",localStorage.removeItem("brx_builder_popuptab")),"theme-styles"!==n||this.$_userHasPermission("access_theme_styles")||(n="colors",localStorage.removeItem("brx_builder_popuptab")),this.$_state.popupTab||(this.$_state.popupTab=n),localStorage.getItem("brx_builder_popuptab")||localStorage.setItem("brx_builder_popuptab",n),this.loadCanvasPreferences(),window.addEventListener("resize",this.onWindowResize),window.addEventListener("canvas-resize-start",this.startResize);var i=null===(t=this.$el)||void 0===t?void 0:t.closest(".bricks-popup.styles");i&&i.addEventListener("toggle-canvas-preview",this.toggleCanvasPreview)},beforeUnmount:function(){var e;document.removeEventListener("mousemove",this.onResize),document.removeEventListener("mouseup",this.stopResize),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("canvas-resize-start",this.startResize);var t=null===(e=this.$el)||void 0===e?void 0:e.closest(".bricks-popup.styles");t&&t.removeEventListener("toggle-canvas-preview",this.toggleCanvasPreview),document.body.style.cursor="",document.body.style.userSelect=""}};const Z8=(0,xx.A)(X8,[["render",function(e,t,n,i,r,o){var a=$r("popup-manager-header"),s=$r("icon"),l=$r("control-text"),c=$r("control-select"),u=$r("popup-styles-classes"),d=$r("popup-styles-variables"),p=$r("popup-styles-theme-styles"),h=$r("popup-styles-colors"),f=$r("popup-styles-scale-editor"),m=$r("popup-styles-framework"),g=$r("popup-styles-settings");return Ta(),Ma("div",null,[Ha(a,{importMode:r.importMode,breakpoints:o.filteredBreakpoints,activeBreakpoint:e.$_state.breakpointActive,canvasPreviewVisible:o.canvasPreviewVisible,canvasDisabled:o.canvasDisabledDueToSpace,showBreakpoints:o.showBreakpointsInHeader,showCanvasToggle:o.showCanvasPreview,onAcceptAll:o.handleAcceptAll,onRejectAll:o.handleRejectAll,onSetBreakpoint:o.setBreakpoint,onToggleCanvasPreview:o.toggleCanvasPreview},null,8,["importMode","breakpoints","activeBreakpoint","canvasPreviewVisible","canvasDisabled","showBreakpoints","showCanvasToggle","onAcceptAll","onRejectAll","onSetBreakpoint","onToggleCanvasPreview"]),qa("main",{class:te(["content",e.$_state.popupTab,{"import-mode":r.importMode},{"show-canvas":o.showCanvasPreview&&o.canvasPreviewVisible}])},[qa("div",pK,[r.importMode?Qa("",!0):(Ta(),Ma("div",hK,[qa("ul",fK,[(Ta(!0),Ma(Ca,null,Rr(o.visibleTabsWithIndex,function(t,n){var i=t.key,r=t.item,a=t.index;return Ta(),Ma("li",{key:i,class:te(["icon-tab",r.type,{active:e.$_state.popupTab===i}]),"data-balloon":r.label,"data-balloon-pos":e.bricks.isRtl?"left":"right",onClick:bc(function(e){return o.setPopupTab(i)},["stop"])},[r.icon?(Ta(),La(s,{key:0,name:r.icon},null,8,["name"])):Qa("",!0),qa("span",gK,he(a),1)],10,mK)}),128))])])),qa("div",vK,[!r.importMode&&"import"!==e.$_state.popupView&&["classes","variables"].includes(e.$_state.popupTab)?(Ta(),Ma("ul",yK,[qa("li",{class:te([{active:e.$_state.popupFilters.include}])},[Ha(s,{name:"search"}),Ha(l,{value:e.$_state.popupFilters.include,"onUpdate:value":t[0]||(t[0]=function(t){return e.$_state.popupFilters.include=t}),control:{dd:!1,clearable:!0,autoComplete:"off",spellcheck:!1,placeholder:"".concat(e.i18n.name," (").concat(e.i18n.include,")")}},null,8,["value","control"])],2),qa("li",{class:te([{active:e.$_state.popupFilters.exclude}])},[Ha(s,{name:"search"}),Ha(l,{value:e.$_state.popupFilters.exclude,"onUpdate:value":t[1]||(t[1]=function(t){return e.$_state.popupFilters.exclude=t}),control:{dd:!1,clearable:!0,placeholder:"".concat(e.i18n.name," (").concat(e.i18n.exclude,")")}},null,8,["value","control"])],2),qa("li",{class:te([{active:e.$_state.popupFilters.sort}])},[Ha(s,{name:"sort-a-to-z"}),Ha(c,{value:e.$_state.popupFilters.sort,"onUpdate:value":t[2]||(t[2]=function(t){return e.$_state.popupFilters.sort=t}),control:{options:{alphabetically:e.i18n.alphabetically},placeholder:e.i18n.sort}},null,8,["value","control"])],2),qa("li",{class:te([{active:e.$_state.popupFilters.by}])},[Ha(s,{name:"filter-by"}),Ha(c,{value:e.$_state.popupFilters.by,"onUpdate:value":t[3]||(t[3]=function(t){return e.$_state.popupFilters.by=t}),control:{options:o.filterByOptions,multiple:!0,placeholder:e.i18n.filter}},null,8,["value","control"])],2)])):Qa("",!0),"classes"===e.$_state.popupTab?(Ta(),La(u,{key:1,ref:"classesComponent",onImportMode:t[4]||(t[4]=function(e){return r.importMode=e})},null,512)):"variables"===e.$_state.popupTab?(Ta(),La(d,{key:2})):(Ta(),Ma("div",bK,["theme-styles"===e.$_state.popupTab?(Ta(),La(p,{key:0})):"colors"===e.$_state.popupTab?(Ta(),La(h,{key:1})):["typography","spacing"].includes(e.$_state.popupTab)?(Ta(),La(f,{key:2})):"framework"===e.$_state.popupTab?(Ta(),La(m,{key:3})):"settings"===e.$_state.popupTab?(Ta(),La(g,{key:4})):Qa("",!0)]))])]),o.showCanvasPreview&&o.canvasPreviewVisible?(Ta(),Ma("div",kK,uK(t[5]||(t[5]=[qa("div",{class:"canvas-preview"},null,-1)])))):Qa("",!0)],2)])}]]);function e6(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var l=i&&i.prototype instanceof s?i:s,c=Object.create(l.prototype);return t6(c,"_invoke",function(n,i,r){var o,s,l,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return o=t,s=0,l=e,p.n=n,a}};function h(n,i){for(s=n,l=i,t=0;!d&&c&&!r&&t<u.length;t++){var r,o=u[t],h=p.p,f=o[2];n>3?(r=f===i)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=h&&((r=n<2&&h<o[1])?(s=0,p.v=i,p.n=o[1]):h<f&&(r=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,p.n=f,s=0))}if(r||n>1)return a;throw d=!0,i}return function(r,u,f){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,f),s=u,l=f;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(p.n=-1),h(s,l)):p.n=l:p.v=l);try{if(c=2,o){if(s||(r="next"),t=o[r]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=e}else if((t=(d=p.n<0)?l:n.call(i,p))!==a)break}catch(t){o=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,r,o),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][i]?t(t([][i]())):(t6(t={},i,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,t6(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,t6(d,"constructor",c),t6(c,"constructor",l),l.displayName="GeneratorFunction",t6(c,r,"GeneratorFunction"),t6(d),t6(d,r,"Generator"),t6(d,i,function(){return this}),t6(d,"toString",function(){return"[object Generator]"}),(e6=function(){return{w:o,m:p}})()}function t6(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}t6=function(e,t,n,i){function o(t,n){t6(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},t6(e,t,n,i)}function n6(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,r)}var i6={props:{popupType:{type:String,default:""}},components:{PopupComponents:qF,PopupCodeSignatures:i$,PopupQueries:Xj,PopupDocs:F$,PopupLockedUser:R$,PopupTemplates:AL,PopupUnsplash:yN,PopupFonts:TV,PopupVisualGridBuilder:Vq,PopupIcons:nz,PopupCodeEditor:sz,PopupCommandPalette:$W,PopupQueryApi:JG,PopupCloseDialog:cK,PopupStyles:Z8},data:function(){return{clickStartedOnBackdrop:!1}},computed:{isGlobalManager:function(){return["styles","queries"].includes(this.$_state.popup)},globalClassesHash:function(){return this.$_state.globalClasses.length?this.$_state.globalClasses.map(function(e){return"".concat(null==e?void 0:e.id,"-").concat(null==e?void 0:e.name,"-").concat(null==e?void 0:e.category)}).join("|"):""},globalClassesTrashLength:function(){return this.$_state.globalClassesTrash.length},globalVariablesHash:function(){return this.$_state.globalVariables.length?this.$_state.globalVariables.map(function(e){return"".concat(null==e?void 0:e.id,"-").concat(null==e?void 0:e.name,"-").concat(null==e?void 0:e.value,"-").concat(null==e?void 0:e.category)}).join("|"):""},globalQueryHash:function(){return this.$_state.globalQueries.length?this.$_state.globalQueries.map(function(e){return"".concat(null==e?void 0:e.id,"-").concat(null==e?void 0:e.name,"-").concat(null==e?void 0:e.category)}).join("|"):""}},methods:{startClick:function(){this.clickStartedOnBackdrop=!0},endClick:function(){this.clickStartedOnBackdrop&&this.close(),this.clickStartedOnBackdrop=!1},close:function(){this.$_closePopup(),this.$_state.showCommandPalette&&(this.$_state.showCommandPalette=!1)},updateFilteredItems:function(){var e,t=this;return(e=e6().m(function e(){return e6().w(function(e){for(;;)switch(e.n){case 0:if(t.isGlobalManager){e.n=1;break}return t.$_state.popupFilteredItems=[],e.a(2);case 1:return e.n=2,t.$_filterPopupItems();case 2:t.$_state.popupFilteredItems=e.v;case 3:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(i,r){var o=e.apply(t,n);function a(e){n6(o,i,r,a,s,"next",e)}function s(e){n6(o,i,r,a,s,"throw",e)}a(void 0)})})()}},created:function(){localStorage.getItem("brx_builder_popupFullScreen")&&(this.$_state.popupFullScreen=!0)},watch:{globalClassesHash:function(){"classes"===this.$_state.popupTab&&this.updateFilteredItems()},globalClassesTrashLength:function(){"classes"===this.$_state.popupTab&&"trash"===this.$_state.popupView&&this.updateFilteredItems()},globalVariablesHash:function(){"variables"===this.$_state.popupTab&&this.updateFilteredItems()},globalQueryHash:function(){"queries"===this.$_state.popup&&this.updateFilteredItems()},"$_state.popupTab":function(e){this.$_state.popupSelectedItems=[],["classes","variables"].includes(e)&&(this.$_state.popupFilters.categories=[],this.updateFilteredItems())},"$_state.popupFilters":{handler:function(){this.updateFilteredItems(),this.$_state.popupSelectedItems=[]},immediate:!0,deep:!0},"$_state.popup":function(e,t){var n=this;this.$_state.popupSelectedItems=[],this.$_state.popupIsLoadingItems=!1,e&&t&&e!==t&&(this.$_state.popupTab=!1,this.$_state.popupView=!1),Object.keys(this.$_state.popupFilters).forEach(function(e){Array.isArray(n.$_state.popupFilters[e])?n.$_state.popupFilters[e]=[]:n.$_state.popupFilters[e]=""});var i=window.top.document.documentElement;i.style.overflow=e?"hidden":""},"$_state.iframeLoaded":function(e){e&&(this.$_state.renderCommandPalette=!0)}}};const r6=(0,xx.A)(i6,[["render",function(e,t,n,i,r,o){var a,s=$r("popup-close-dialog");return Ta(),Ma("div",{id:"bricks-popup",class:te(["bricks-popup",{fullscreen:e.$_state.popupFullScreen}]),onMousedown:t[0]||(t[0]=bc(function(){return o.startClick&&o.startClick.apply(o,arguments)},["self"])),onMouseup:t[1]||(t[1]=bc(function(){return o.endClick&&o.endClick.apply(o,arguments)},["self"]))},["command-palette"!==n.popupType?(Ta(),La(Lr(n.popupType?"popup-".concat(n.popupType):null),{key:0,class:"bricks-popup-inner"})):e.$_state.renderCommandPalette?(Ta(),La(Lr("popup-command-palette"),{key:1,class:"bricks-popup-inner"})):Qa("",!0),null!==(a=e.$_state.popupCloseDialog)&&void 0!==a&&a.show?(Ta(),La(s,{key:2})):Qa("",!0)],34)}]]);var o6={id:"bricks-template-type","data-builder-mode":"light"},a6={class:"inner"},s6=["innerHTML"],l6=["innerHTML"];var c6={data:function(){return{control:{options:this.bricks.controlOptions.templateTypes,placeholder:this.i18n.select}}},methods:{setTemplateType:function(e){this.$_state.templateType=e}}};function u6(e){return u6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u6(e)}function d6(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=u6(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=u6(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u6(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p6={components:{TheNotification:$F,ThePopup:r6,TheTemplateType:(0,xx.A)(c6,[["render",function(e,t,n,i,r,o){var a=$r("control-select");return Ta(),Ma("div",o6,[qa("div",a6,[qa("h2",{class:"title",innerHTML:e.i18n.templateType},null,8,s6),qa("p",{class:"subtitle",innerHTML:e.i18n.templateTypeDescription},null,8,l6),Ha(a,{control:r.control,onInput:t[0]||(t[0]=function(e){return o.setTemplateType(e)})},null,8,["control"])])])}]])},data:function(){return{canvasPreviewRect:null,canvasPreviewLoop:null}},computed:{unsignedCodeIds:function(){var e=this;if(!this.$_state.codeExecutionEnabled)return[];var t=[],n=this.$_clone(this.$_dynamicElements.value);if(this.$_state.activeComponent){var i=this.$_clone(this.$_state.activeComponent);null!=i&&i.elements&&(n=i.elements,delete i.elements),n.push(i)}var r=function(e,t){t.includes(e)||t.push(e)},o=function(e,t){var n,i,o,a,s,l,c,u,d;"code"!==(null==e?void 0:e.name)||null==e||null===(n=e.settings)||void 0===n||!n.code||null==e||null===(i=e.settings)||void 0===i||!i.executeCode||null!=e&&null!==(o=e.settings)&&void 0!==o&&o.signature||r(e.id,t),"svg"!==(null==e?void 0:e.name)||null==e||null===(a=e.settings)||void 0===a||!a.code||null!=e&&null!==(s=e.settings)&&void 0!==s&&s.signature||r(e.id,t),null==e||null===(l=e.settings)||void 0===l||null===(l=l.query)||void 0===l||!l.queryEditor||null==e||null===(c=e.settings)||void 0===c||null===(c=c.query)||void 0===c||!c.useQueryEditor||null!=e&&null!==(u=e.settings)&&void 0!==u&&null!==(u=u.query)&&void 0!==u&&u.signature||r(e.id,t),null!==(d=window)&&void 0!==d&&null!==(d=d.bricksData)&&void 0!==d&&null!==(d=d.loadData)&&void 0!==d&&d.invalidCodeSignatures&&window.bricksData.loadData.invalidCodeSignatures.includes(e.id)&&r(e.id,t)};return n.forEach(function(n){var i=e.$_getGlobalElement(n);i&&(n=i,null!=i&&i.global&&(n.id=i.global));var r=e.$_getComponent(n);r&&(n.settings=e.$_getComponentSettings(r,n)),o(n,t),null!=r&&r.elements&&r.elements.forEach(function(e){o(e,t)})}),t.reduce(function(e,t){return e.includes(t)||e.push(t),e},[])},unsignedCodeCount:function(){return this.$_state.codeExecutionEnabled&&this.unsignedCodeIds.length},urlParams:function(){return new URLSearchParams(document.location.search.substring(1))},previewData:function(){return this.urlParams.get("preview")},isCanvasPreview:function(){return"styles"===this.$_state.popup&&["theme-styles","colors","classes","variables","typography","spacing"].includes(this.$_state.popupTab)},previewCss:function(){if("css"===this.previewData&&this.$_state.activeElement)return this.$_generateCss("element",this.$_state.activeElement)},previewState:function(){if(this.previewData&&"css"!==this.previewData)return this.$_state[this.previewData]},marginLeft:function(){return(this.$_state.previewWrapperWidth-this.$_state.previewWidth*this.$_previewScale.value)/2},popup:function(){var e=this.$_state.popup;return e},classes:function(){var e=[this.$_state.breakpointActive];return this.$_state.isPreviewing&&e.push("is-previewing"),this.isCanvasPreview&&e.push("canvas-preview-active"),this.$_state.isPreviewing||(this.$_state.isResizing&&e.push("resizing-panel"),this.$_state.isReloadingCanvas&&!this.$_state.popup&&e.push("is-reloading-canvas")),e},previewUrl:function(){try{var e=new URL(window.location.href);return e.searchParams.set("bricks","run"),e.searchParams.set(this.bricks.builderPreviewParam,!0),e.hash="",e.toString()}catch(e){var t=window.location.href.split("#")[0],n=t.includes("?")?"&":"?";return"".concat(t).concat(n).concat(this.bricks.builderPreviewParam)}},iframeStyle:function(){var e=this,t={},n=this.$_state.previewHeight,i=this.$_state.previewWidth;if(this.isCanvasPreview&&this.canvasPreviewRect){var r=this.canvasPreviewRect,o=this.$_state.previewWidth||this.$_state.previewWrapperWidth,a=Math.min(1,r.width/o),s=(r.width-o*a)/2,l=r.height/a;return{position:"fixed",top:"".concat(r.top,"px"),left:"".concat(r.left+s,"px"),width:"".concat(o,"px"),height:"".concat(l,"px"),transform:"scale(".concat(a,")"),transformOrigin:"0 0",zIndex:1e5,backgroundColor:"#fff",boxShadow:"0 0 0 1px var(--builder-border-color)",borderRadius:"var(--builder-border-radius)",overflow:"hidden"}}if(this.$_state.isPreviewing){if(t.height=n?"".concat(n,"px"):null,t.width=i?"".concat(i,"px"):null,i>window.innerWidth)return t.width="100%",t;var c=this.$_state.breakpoints.filter(function(e){return!e.hasOwnProperty("paused")}),u=c.findIndex(function(t){return t.key===e.$_state.breakpointActive}),d=c[u],p=null==d?void 0:d.width;return i!==p&&i+1!==p&&(this.$_isMobileFirst.value?u===c.length-1&&(t.width="100%"):0===u&&(t.width="100%")),t}var h=this.$_previewScale.value;if(1!==h){var f=this.$_state.previewWrapperHeight/h;t.height="".concat(f,"px")}return this.$_state.previewScaleActive||delete t.height,n&&(t.height="".concat(n,"px")),i&&(t.width="".concat(i,"px"),this.$_state.previewScaleActive||i>this.$_state.previewWrapperWidth&&(t.width="".concat(this.$_state.previewWrapperWidth,"px"),this.$_state.previewWidth=this.$_state.previewWrapperWidth)),this.bricks.isRtl?t.marginRight=this.$_state.previewWrapperWidth>i*h?"".concat(this.marginLeft,"px"):null:t.marginLeft=this.$_state.previewWrapperWidth>i*h?"".concat(this.marginLeft,"px"):null,t.transform=this.$_state.previewScaleActive&&1!==h?"scale(".concat(h,")"):null,t},canvasResizerStyle:function(){if(!this.isCanvasPreview||!this.canvasPreviewRect)return{};var e=this.canvasPreviewRect,t=this.bricks.isRtl?"right":"left",n=this.bricks.isRtl?"".concat(window.innerWidth-e.left-e.width-24,"px"):"".concat(e.left-24,"px"),i=document.querySelector(".bricks-popup.styles main.content"),r=i?i.getBoundingClientRect():e;return d6(d6(d6({},t,n),"top","".concat(r.top,"px")),"height","".concat(r.height,"px"))}},methods:{startCanvasResize:function(e){window.dispatchEvent(new CustomEvent("canvas-resize-start",{detail:{clientX:e.clientX}}))},toggleCanvasPreviewClass:function(e){var t,n=this.$refs.iframe;if(n){var i=n.contentDocument||(null===(t=n.contentWindow)||void 0===t?void 0:t.document);if(null!=i&&i.body)if(e){if(!i.getElementById("bricks-canvas-preview-styles")){var r=i.createElement("style");r.id="bricks-canvas-preview-styles",r.textContent="\n\t\t\t\t\t\t\t\t#bricks-preview-element-actions {\n\t\t\t\t\t\t\t\t\tdisplay: none !important;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t.bricks-draggable-item.is-active-element,\n\t\t\t\t\t\t\t\t[data-id][data-script-id].is-active-element {\n\t\t\t\t\t\t\t\t\toutline: none !important;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t",i.head.appendChild(r)}}else{var o=i.getElementById("bricks-canvas-preview-styles");o&&o.remove()}}},updateCanvasPreviewRect:function(){var e=document.querySelector(".canvas-preview");if(e){var t=e.getBoundingClientRect();this.canvasPreviewRect&&this.canvasPreviewRect.top===t.top&&this.canvasPreviewRect.left===t.left&&this.canvasPreviewRect.width===t.width&&this.canvasPreviewRect.height===t.height||(this.canvasPreviewRect=t)}else this.canvasPreviewRect=null;this.isCanvasPreview&&(this.canvasPreviewLoop=requestAnimationFrame(this.updateCanvasPreviewRect))},iframeLoaded:function(){var e=this;this.$refs.iframe.contentWindow.performance.now=function(){return performance.now()},this.$refs.iframe.contentWindow.addEventListener("click",function(t){Object.defineProperty(t,"timeStamp",{get:function(){return performance.now()}}),e.isCanvasPreview&&t.target.closest("a")&&t.preventDefault()},!0),this.populateBuilder().then(function(){setTimeout(function(){e.$_checkForOrphanedElements(),e.$_state.iframeLoaded=!0,e.isCanvasPreview&&e.toggleCanvasPreviewClass(!0),e.$_state.showStructure=!0},200),setTimeout(function(){e.initHeartbeatApi(),e.initAutosave(),e.$_getRevisions(!0)},1e3)})},scrollIframe:function(e){var t,n=null===(t=this.$refs.iframe)||void 0===t?void 0:t.contentWindow;n&&n.scrollBy({top:e.deltaY,left:e.deltaX,behavior:"auto"})},populateBuilder:function(){var e=this;return new Promise(function(t){var n=window.bricksData.loadData;n.hasOwnProperty("blocks")&&(console.info(n.blocks),delete n.blocks),Object.keys(n).forEach(function(t){e.$_state.hasOwnProperty(t)&&(e.$_state[t]=n[t])}),window.bricksData.debug&&console.warn("loadData",n);var i=window.navigator.userAgentData?window.navigator.userAgentData.platform:window.navigator.platform;e.$_state.isMac=i.toLowerCase().includes("mac"),t()})},initHeartbeatApi:function(){var e=this;jQuery(document).on({"heartbeat-send":function(t,n){n.bricks={postId:e.$_state.postId}},"heartbeat-tick":function(t,n){var i=!!n.hasOwnProperty("lockedUser")&&n.lockedUser;i&&(e.$_state.popup="locked-user",e.$_state.lockedUser=i)},"heartbeat-tick.wp-refresh-nonces":function(e,t){t.hasOwnProperty("bricks")&&(t.bricks.hasOwnProperty("heartbeatNonce")&&(window.heartbeatSettings.nonce=t.bricks.heartbeatNonce),t.bricks.hasOwnProperty("bricksNonce")&&(window.bricksData.nonce=t.bricks.bricksNonce,wp.heartbeat&&wp.heartbeat.connectNow()))},"heartbeat-error":function(e,t,n,i){console.log(n),console.log(i)}}),wp.heartbeat&&wp.heartbeat.connectNow()},initAutosave:function(){var e=this;if(!this.bricks.autosave.disabled){var t=this.bricks.autosave.interval;t<15&&(t=15),setInterval(function(){e.$_state.isSaving||e.$_state.unsavedChanges.includes(e.$_dynamicArea.value)&&e.$_http({data:{action:"bricks_create_autosave",area:e.$_dynamicArea.value,elements:JSON.stringify(e.$_dynamicElements.value)},beforeSend:function(){e.$_state.isSaving=!0},success:function(){e.$_state.isSaving=!1}})},1e3*t)}}},mounted:function(){var e=this;new ResizeObserver(function(){setTimeout(function(){var t;null!==(t=e.$_getIframeDoc())&&void 0!==t&&null!==(t=t.body)&&void 0!==t&&t.classList.contains("bricks-is-previewing")||(e.$_state.previewWrapperWidth=e.$refs.preview.offsetWidth),e.$_state.previewWrapperHeight=e.$refs.preview.offsetHeight},0)}).observe(this.$refs.preview)},watch:{"$_state.activeUnsignedCodeId":{handler:function(e){e&&(this.$_state.popup="code-signatures")}},unsignedCodeCount:{handler:function(){this.$_state.unsignedCodeIds=this.unsignedCodeIds},immediate:!0},isCanvasPreview:{handler:function(e){this.toggleCanvasPreviewClass(e),e?(this.$_state.isPreviewing=!0,this.updateCanvasPreviewRect()):(this.$_state.isPreviewing=!1,cancelAnimationFrame(this.canvasPreviewLoop),this.canvasPreviewRect=null)},immediate:!0}}};const h6=(0,xx.A)(p6,[["render",function(e,t,n,i,r,o){var a=$r("the-notification"),s=$r("the-popup"),l=$r("the-template-type"),c=$r("control-code");return Ta(),Ma("div",{ref:"preview",id:"bricks-preview",class:te(o.classes)},[qa("div",{id:"bricks-builder-iframe-wrapper",ref:"iframeWrapper",style:Y(o.iframeStyle)},[o.isCanvasPreview?(Ta(),Ma("div",{key:0,class:"canvas-preview-overlay",onWheel:t[0]||(t[0]=bc(function(){return o.scrollIframe&&o.scrollIframe.apply(o,arguments)},["stop","prevent"]))},null,32)):Qa("",!0),qa("iframe",{ref:"iframe",id:"bricks-builder-iframe",src:o.previewUrl,onLoad:t[1]||(t[1]=function(){return o.iframeLoaded&&o.iframeLoaded.apply(o,arguments)})},null,40,TF)],4),o.isCanvasPreview?(Ta(),Ma("div",{key:0,class:"canvas-resizer",style:Y(o.canvasResizerStyle),onMousedown:t[2]||(t[2]=function(){return o.startCanvasResize&&o.startCanvasResize.apply(o,arguments)})},null,36)):Qa("",!0),Ha(a),e.$_state.popup?(Ta(),La(s,{key:1,class:te([e.$_state.popup,e.$_state.popupTab]),popupType:e.$_state.popup},null,8,["class","popupType"])):Qa("",!0),Ha(s,{class:te(["command-palette",{hidden:!e.$_state.showCommandPalette}]),popupType:"command-palette"},null,8,["class"]),o.iframeLoaded||!e.$_state.isTemplate||e.$_state.templateType?Qa("",!0):(Ta(),La(l,{key:2})),o.previewCss?(Ta(),La(c,{class:"bricks-builder-data-preview css",key:o.previewCss,control:{mode:"css",replace:!1,readOnly:!0},value:o.previewCss},null,8,["value"])):o.previewState?(Ta(),La(c,{class:"bricks-builder-data-preview state",key:o.previewState,control:{mode:"javascript",replace:!1,readOnly:!0},value:o.previewState},null,8,["value"])):Qa("",!0)],2)}]]);var f6=h6,m6={id:"bricks-panel-header"},g6={key:0,class:"component"},v6={class:"label"},y6=["textContent"],b6=["innerHTML"],k6={class:"actions"},w6=["data-balloon"],_6=["data-balloon"],C6=["data-balloon"],x6=["data-balloon"],S6=["data-balloon"],E6=["data-balloon"],A6={class:"panel-content"},D6={key:1,class:"no-results"},T6=["textContent"];var I6={setup:function(){return{dynamicElements:lf,rootElements:cf}},data:function(){return{structureWidth:this.$_state.structureWidth,structureWidthNew:void 0,minimizePanel:!1,showMinimize:!1,mouseX:void 0}},computed:{rootElements:function(){var e;return this.$_state.activeComponent?[null===(e=this.$_activeComponent.value)||void 0===e?void 0:e.elements.find(function(e){return 0==(null==e?void 0:e.parent)})]:this.$_rootElements.value},hasUnsignedCode:function(){return this.$_state.userCan.executeCode&&this.$_state.codeExecutionEnabled&&this.$_state.unsignedCodeIds.length}},methods:{copyElements:function(){var e=this.$_dynamicElements.value;this.$_state.activeComponent&&(e=this.$_getComponentChildren(this.$_state.activeComponent,{cid:this.$_state.activeComponent.id}));this.$_copyElements(e,"".concat(this.i18n.copiedToClipboard,": ").concat(this.i18n.elements))},removeElements:function(){this.$_showPanel(),this.$_state.activeComponent||(this.$_state[this.$_dynamicArea.value]=[]),this.$_state.activeId=null},deselectActiveElement:function(e){!this.$_state.activeComponent&&e.target.classList.contains("bricks-draggable-root")&&("element"===this.$_state.activePanel&&(this.$_state.activePanel="elements"),this.$_state.activeId=null)},startResizingPanel:function(e){"bricks-structure-resizable"===e.target.id&&(this.mouseX=e.clientX,this.$_state.isResizing="structure")},resizingPanel:function(e){if("structure"===this.$_state.isResizing){var t=e.clientX-this.mouseX;this.bricks.isRtl&&(t=-t),this.structureWidthNew=this.$_state.structureWidth-t,this.structureWidthNew<240&&(this.structureWidthNew=240),this.structureWidthNew>600&&(this.structureWidthNew=600),this.$el.style.width="".concat(this.structureWidthNew,"px")}},stopResizingPanel:function(){"structure"===this.$_state.isResizing&&(this.$_state.isResizing=!1,this.$_state.structureWidth=this.structureWidthNew,localStorage.setItem("brx_builder_structure_width",this.structureWidthNew),this.$_http({data:{action:"bricks_save_panel_width",structureWidth:this.structureWidthNew,type:"structure"}}))}},created:function(){var e=this,t=localStorage.getItem("brx_builder_structure_width");t>=240&&t<=600&&(this.$_state.structureWidth=parseInt(t)),window.addEventListener("mousedown",function(t){0==t.button&&e.startResizingPanel(t)}),window.addEventListener("mousemove",function(t){e.resizingPanel(t)}),window.addEventListener("mouseup",function(t){e.stopResizingPanel(t)})},watch:{"$_state.revisionId":{handler:function(e){this.$_state.showStructure=!e}},"$_state.draggingElement":{handler:function(e){if(!e){var t=document.getElementById("bricks-draggable-placeholder");t&&(t.classList.remove("show"),document.body.appendChild(t))}}},"$_state.activeId":{handler:function(e){var t=this;if(this.bricks.structureAutoSync&&this.$_state.showStructure){var n=this.$el.querySelector("#element-".concat(e));n&&setTimeout(function(){if(!t.$_state.showContextMenu||"main"!==t.$_state.messageOrigin){var e="structure"===t.$_state.selectionSource;if(t.$_state.selectionSource=null,!e){var i=n.getBoundingClientRect(),r=t.$refs.structure.getBoundingClientRect();if(!(i.top>=r.top&&i.bottom<=r.bottom)){var o=i.top-r.top,a=t.$refs.structure.clientHeight/2,s=t.$refs.structure.scrollTop+o-a;t.$refs.structure.scrollTo({top:s,behavior:"smooth"})}}}},10)}},immediate:!1}}};var O6=(0,xx.A)(I6,[["render",function(e,t,n,i,r,o){var a=$r("debug-info"),s=$r("icon"),l=$r("structure-sortable");return Xn((Ta(),Ma("div",{id:"bricks-structure",ref:"structure",class:te(["bricks-panel",{"is-previewing":e.$_state.isPreviewing},{"is-resizing":this.$_state.isResizing},{component:e.$_state.activeComponent}]),style:Y({width:"".concat(e.$_state.structureWidth,"px")})},[e.bricks.debug?(Ta(),La(a,{key:0})):Qa("",!0),qa("div",m6,[e.$_state.activeComponent?(Ta(),Ma("div",g6,[qa("h6",v6,[qa("div",{class:"component",textContent:he(e.i18n.structure)},null,8,y6)])])):(Ta(),Ma("div",{key:1,class:"title",innerHTML:e.i18n.structure},null,8,b6)),qa("ul",k6,[o.hasUnsignedCode&&!e.$_state.activeComponent?(Ta(),Ma("li",{key:0,class:"unsigned-code","data-balloon":e.i18n.unsignedCode,"data-balloon-pos":"bottom-left",onClick:t[0]||(t[0]=function(t){return e.$_state.popup="code-signatures"})},[Ha(s,{name:"touch-id"})],8,w6)):Qa("",!0),e.$_state.activeComponent?(Ta(),Ma("li",{key:1,"data-balloon":e.$_backToTooltip(),"data-balloon-pos":"bottom-right"},[Ha(s,{name:"arrow-left",onClick:t[1]||(t[1]=function(t){return e.$_state.componentInstanceId?e.$_backToPreviousActiveId():e.$_backToComponentsPanel()})})],8,_6)):Qa("",!0),e.$_userHasPermission("copy_paste_elements")&&o.rootElements.length&&!e.$_state.activeComponent?(Ta(),Ma("li",{key:2,"data-balloon":"".concat(e.i18n.copy," (").concat(e.i18n.all,")"),"data-balloon-pos":"bottom-right"},[Ha(s,{name:"clipboard",onClick:t[2]||(t[2]=function(e){return o.copyElements()})})],8,C6)):Qa("",!0),e.$_userHasPermission("copy_paste_elements")&&!e.$_state.activeComponent?(Ta(),Ma("li",{key:3,"data-balloon":"".concat(e.i18n.paste," (").concat(e.i18n.all,")"),"data-balloon-pos":"bottom-right"},[Ha(s,{name:"import",onClick:t[3]||(t[3]=function(t){return e.$_pasteElements(e.i18n.elements)})})],8,x6)):Qa("",!0),e.$_userHasPermission("delete_elements")&&o.rootElements.length&&!e.$_state.activeComponent?(Ta(),Ma("li",{key:4,"data-balloon":"structure"===e.$_state.deleteItem?e.i18n.sure:"".concat(e.i18n.remove," (").concat(e.$_state.activeComponent?e.i18n.component:e.i18n.all,")"),"data-balloon-pos":"bottom-right"},[Ha(s,{name:"structure"===e.$_state.deleteItem?"check":"trash",onClick:t[4]||(t[4]=function(t){return"structure"===e.$_state.deleteItem?o.removeElements():e.$_deleteConfirmation("structure")})},null,8,["name"])],8,S6)):Qa("",!0),o.rootElements.length?(Ta(),Ma("li",{key:5,"data-balloon":e.$_state.structureExpandAll?"".concat(e.i18n.collapse," (").concat(e.i18n.all,")"):"".concat(e.i18n.expand," (").concat(e.i18n.all,")"),"data-balloon-pos":"bottom-right"},[Ha(s,{name:e.$_state.structureExpandAll?"collapse":"expand",onClick:t[5]||(t[5]=function(t){return e.$_state.structureExpandAll=!e.$_state.structureExpandAll})},null,8,["name"])],8,E6)):Qa("",!0)])]),qa("main",A6,[o.rootElements.length?(Ta(),La(l,{key:0,onClick:t[6]||(t[6]=bc(function(e){return o.deselectActiveElement(e)},["self"])),class:"bricks-draggable-root",elements:o.rootElements},null,8,["elements"])):(Ta(),Ma("div",D6,[Ha(s,{name:"cursor-click"}),qa("p",{textContent:he(e.i18n.placeholderEmptyCanvas)},null,8,T6)])),qa("div",{id:"bricks-structure-resizable",onMouseenter:t[7]||(t[7]=function(e){return r.showMinimize=!0}),onMouseleave:t[8]||(t[8]=function(e){return r.showMinimize=!1})},null,32)]),t[9]||(t[9]=qa("div",{id:"bricks-draggable-placeholder"},null,-1))],6)),[[pl,e.$_state.showStructure]])}]]),P6={class:"bricks-loading-inner"},F6={class:"title"},$6=["src"],M6=["innerHTML"];var L6={data:function(){return{show:!0,loading:!1,loaded:!1}},computed:{version:function(){var e=this.bricks.version;if(e.includes("-")){var t=e.split("-");return'<span class="number">'.concat(t[0],'</span><span class="type">').concat(t[1],"</span>")}return'<span class="number">'.concat(e,"</span>")}},mounted:function(){var e=this;setTimeout(function(){e.loading=!0},0),setTimeout(function(){e.show=!1},5e3)},watch:{"$_state.iframeLoaded":function(e){var t=this;e&&setTimeout(function(){t.loaded=!0,setTimeout(function(){t.show=!1},200)},400)}}};var N6=(0,xx.A)(L6,[["render",function(e,t,n,i,r,o){return r.show?(Ta(),Ma("div",{key:0,id:"bricks-preloader",class:te([{loaded:r.loaded,loading:r.loading}])},[qa("div",P6,[t[0]||(t[0]=Ka('<div class="bricks-logo-animated"><div class="cube top-left"></div><div class="cube top-right"></div><div class="cube bottom-left"></div><div class="cube bottom-right"></div></div>',1)),qa("div",F6,[qa("img",{src:e.bricks.assetsUrl+"images/bricks-logo-text.svg",alt:"Bricks"},null,8,$6),qa("label",{class:"version",innerHTML:o.version},null,8,M6)]),t[1]||(t[1]=qa("a",{class:"sub-title",href:"https://bricksbuilder.io",target:"_blank"},"bricksbuilder.io",-1))])],2)):Qa("",!0)}]]),j6=["innerHTML"];n(75834);var B6={data:function(){return{message:"",error:!1,show:!1,style:{},messageTimeoutId:null,messageCleanupTimeoutId:null}},methods:{centerMessage:function(){var e=document.getElementById("bricks-builder-iframe-wrapper");if(e){var t=e.getBoundingClientRect();this.style.left=t.left+t.width/2+"px"}}},mounted:function(){var e=this.$_getIframeWindow();if(e){var t=this.centerMessage;e.addEventListener("resize",this.$_debounce("centerMessage",t))}},watch:{"$_state.iframeLoaded":function(){var e=this;setTimeout(function(){e.centerMessage()},200)},"$_state.showStructure":function(){var e=this;setTimeout(function(){e.centerMessage()},200)},"$_state.isPreviewing":function(){var e=this;setTimeout(function(){e.centerMessage()},200)},"$_state.popup":{handler:function(e){e?this.style={}:this.centerMessage()}},"$_state.message":function(e){var t=this;if(this.messageTimeoutId&&(clearTimeout(this.messageTimeoutId),this.messageTimeoutId=null),this.messageCleanupTimeoutId&&(clearTimeout(this.messageCleanupTimeoutId),this.messageCleanupTimeoutId=null),null!=e&&e.text){if(this.message=e.text,this.error=null==e?void 0:e.error,this.show=!0,null!=e&&e.persistent)return;this.messageTimeoutId=setTimeout(function(){t.show=!1,t.messageCleanupTimeoutId=setTimeout(function(){t.message="",t.$_state.message=!1},100)},(null==e?void 0:e.duration)||2e3)}else this.message="",this.error=!1,this.show=!1}}};var R6=(0,xx.A)(B6,[["render",function(e,t,n,i,r,o){return Ta(),Ma("div",{id:"bricks-message",class:te({show:r.show,error:r.error}),style:Y(r.style),onClick:t[0]||(t[0]=function(t){return e.$_state.message=!1}),innerHTML:r.message},null,14,j6)}]]),V6={key:0},q6=["textContent"],H6={key:1,class:"sep"},z6=["title","textContent"],U6=["title","textContent"],W6=["title","textContent"],G6=["title","textContent"],K6=["title","textContent"],Q6={key:7,class:"hide-element sep"},Y6=["textContent"],J6=["data-balloon"],X6=["data-balloon"],Z6={key:8,class:"insert sep"},e9=["textContent"],t9={class:"buttons"},n9=["data-balloon"],i9=["data-balloon"],r9={"data-balloon":"Div","data-balloon-pos":"top-right"},o9={key:9,class:"wrap sep"},a9=["textContent"],s9={class:"buttons"},l9=["data-balloon"],c9=["data-balloon"],u9=["data-balloon"],d9={"data-balloon":"Div","data-balloon-pos":"top-right"},p9={key:10,class:"unwrap sep"},h9=["textContent"],f9=["textContent"],m9={class:"buttons"},g9=["data-balloon"],v9=["data-balloon"],y9=["data-balloon"],b9={"data-balloon":"Div","data-balloon-pos":"top-right"},k9=["innerHTML"],w9=["innerHTML"],_9=["textContent"],C9=["textContent"];function x9(e){return x9="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x9(e)}function S9(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||A9(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E9(e){return function(e){if(Array.isArray(e))return D9(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||A9(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A9(e,t){if(e){if("string"==typeof e)return D9(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D9(e,t):void 0}}function D9(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function T9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function I9(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T9(Object(n),!0).forEach(function(t){O9(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T9(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function O9(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=x9(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=x9(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==x9(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var P9={data:function(){return{show:!1,insertLabel:void 0,wrapLabel:void 0,convertLabel:void 0,editTemplateUrl:void 0,parentComponent:void 0}},computed:{selectedElements:function(){return this.$_state.selectedElements.length?this.$_state.selectedElements:[this.element]},hideElementBuilder:function(){return this.selectedElements.every(function(e){var t;return null==e||null===(t=e.settings)||void 0===t?void 0:t._hideElementBuilder})},hideElementFrontend:function(){return this.selectedElements.every(function(e){var t;return null==e||null===(t=e.settings)||void 0===t?void 0:t._hideElementFrontend})},isActiveComponentRoot:function(){return this.$_isActiveComponentRoot()},canUnlinkComponent:function(){var e;return(null===(e=this.activeElement)||void 0===e?void 0:e.cid)||!1},component:function(){var e;return null!==(e=this.activeElement)&&void 0!==e&&e.cid?this.$_getComponentById(this.activeElement.cid):null},activeComponent:function(){return this.$_state.activeComponent},activeElement:function(){return this.$_state.activeElement},element:function(){var e,t;return this.component&&(null===(e=this.activeElement)||void 0===e?void 0:e.cid)===(null===(t=this.activeComponent)||void 0===t?void 0:t.id)?this.component:this.activeElement||{}},elementConfig:function(){var e;return this.$_getElementConfig(null===(e=this.element)||void 0===e?void 0:e.name)},elementConditions:function(){var e;return null===(e=this.element)||void 0===e||null===(e=e.settings)||void 0===e?void 0:e._conditions},elementInteractions:function(){var e;return null===(e=this.element)||void 0===e||null===(e=e.settings)||void 0===e?void 0:e._interactions},elementAttributes:function(){var e;return null===(e=this.element)||void 0===e||null===(e=e.settings)||void 0===e?void 0:e._attributes},elementGlobalClasses:function(){var e;return null===(e=this.element)||void 0===e||null===(e=e.settings)||void 0===e?void 0:e._cssGlobalClasses},globalElement:function(){return this.$_getGlobalElement(this.element)},canWrap:function(){if(this.isBulkEditing){var e=this.selectedElements.map(function(e){return e.parent});return 1===new Set(e).size}return!this.isActiveComponentRoot},canUnwrap:function(){var e=this;return this.selectedElements.every(function(t){return e.$_isNestable(t)&&!(null!=t&&t.cid)&&Array.isArray(null==t?void 0:t.children)&&t.children.length&&!e.selectedElements.some(function(e){return e.parent===t.id})})},canConvert:function(){var e,t=this,n=this.selectedElements.every(function(e){return t.$_isNestable(e)});return n&&!(null!==(e=this.element)&&void 0!==e&&e.cid)||this.activeComponent},canInsert:function(){return this.$_isNestable()&&this.canConvert},canSaveAsComponent:function(){var e,t;return"template"!==(null===(e=this.element)||void 0===e?void 0:e.name)&&!(null!==(t=this.element)&&void 0!==t&&null!==(t=t.name)&&void 0!==t&&t.startsWith("filter-"))},hasLoop:function(){var e=this.activeElement&&!this.isBulkEditing?this.$_getElementSettings():null;return null==e?void 0:e.hasLoop},isBulkEditing:function(){return this.$_isBulkEditing()},builderDirection:function(){var e;return(null===(e=(window.self!==window.top?window.parent:window).bricksData)||void 0===e?void 0:e.isRtl)||!1}},methods:{saveAsComponent:function(){this.canSaveAsComponent&&(this.$_state.popup="components")},unlinkComponent:function(){var e,t,n=this;if(confirm(this.i18n.unlinkComponentConfirm)){var i=this.$_clone(this.component),r=(null==i?void 0:i.elements)||[],o=r.find(function(e){return 0==(null==e?void 0:e.parent)});if(null!=o&&o.name&&(this.element.name=o.name),this.element.settings=this.$_getComponentSettings(i,this.element),null!=o&&o.label&&(this.element.label=o.label),null!=o&&o.selectors&&(this.element.selectors=o.selectors),null===(e=this.element)||void 0===e||delete e.cid,Array.isArray(null===(t=this.$_state.activeComponent)||void 0===t?void 0:t.elements)){var a=this.$_state.activeComponent.elements.find(function(e){return e.id===n.$_state.activeId});null!=a&&a.cid&&delete a.cid}var s={},l=function(e,t){var a=[],c=t;e.forEach(function(e,t){var o,u=r.find(function(t){return(null==t?void 0:t.id)===e});if(u){var d=c;if(d in s&&(d=s[d]),"slot"!==u.name){var p=null!=u&&u.children?n.$_clone(null==u?void 0:u.children):null,h=n.$_getComponentSettings(i,I9(I9({},u),{},{cid:null,properties:null===(o=n.element)||void 0===o?void 0:o.properties})),f={element:{id:u.id,name:u.name,parent:d,label:u.label,settings:h},index:t,parent:d,keepLabel:!0};null!=u&&u.cid&&(f.element.cid=u.cid),null!=u&&u.selectors&&(f.element.selectors=u.selectors);var m=n.$_addNewElement(f,{},!0);s[e]=m.id,a.push(m.id),Array.isArray(p)&&l(p,u.id)}else{var g,v=(null===(g=n.element.slotChildren)||void 0===g?void 0:g[u.id])||[];v.length>0&&v.forEach(function(e){var t,i=((null===(t=n.$_state.activeComponent)||void 0===t?void 0:t.elements)||n.$_dynamicElements.value).find(function(t){return t.id===e});i&&(i.parent=d,a.push(i.id))})}}else console.warn("createComponentChildren: Component element with ID ".concat(e," not found."))});var u=c;if(u in s&&(u=s[u]),0==(null==o?void 0:o.parent)&&c===n.element.id)n.element.children=a;else{var d,p=((null===(d=n.$_state.activeComponent)||void 0===d?void 0:d.elements)||n.$_dynamicElements.value).find(function(e){return e.id===u});p&&(p.children=a)}};Array.isArray(null==o?void 0:o.children)&&l(o.children,this.element.id),this.element.slotChildren&&delete this.element.slotChildren,this.$_showMessage("".concat(this.i18n.unlinked,": ").concat(this.i18n.component))}},editTemplate:function(){window.open(this.editTemplateUrl,"_blank")},copyCssId:function(){var e=this.$_getElementId(this.element);this.$_copyToClipboard("#".concat(e),"".concat(this.i18n.copied,": #").concat(e))},copyQueryId:function(){var e,t=(null===(e=this.element)||void 0===e?void 0:e.id)||"";this.$_state.activeComponent&&this.hasLoop&&this.$_state.componentInstanceId&&(t=this.$_state.activeComponent.id===this.element.id?this.$_state.componentInstanceId:"".concat(t,"-").concat(this.$_state.componentInstanceId)),t&&this.$_copyToClipboard(t,"".concat(this.i18n.copied,": ").concat(t))},copyElementConditions:function(){var e=this.$_clone(this.elementConditions);if(this.$_state.activeComponent){var t,n,i=this.$_state.activeComponent,r=(null===(t=this.element)||void 0===t?void 0:t.cid)||(null===(n=this.element)||void 0===n?void 0:n.id);Array.isArray(i.properties)&&e.forEach(function(e){e.forEach(function(e){var t=[];i.properties.forEach(function(n){var i;null!=n&&null!==(i=n.connections)&&void 0!==i&&i[r]&&n.connections[r].forEach(function(i){i.startsWith("_conditions|".concat(e.id,"|"))&&t.push({propertyId:n.id,connectionKey:i})})}),t.length>0&&(e._propertyConnections=t)})})}this.$_writeToClipboard("bricksCopiedElementConditions",e,"".concat(this.i18n.copied,": ").concat(this.i18n.conditions))},copyElementInteractions:function(){this.$_writeToClipboard("bricksCopiedElementInteractions",this.elementInteractions,"".concat(this.i18n.copied,": ").concat(this.i18n.interactions))},copyElementGlobalClasses:function(){this.$_writeToClipboard("bricksCopiedElementGlobalClasses",this.elementGlobalClasses,"".concat(this.i18n.copied,": ").concat(this.i18n.classes))},copyElementAttributes:function(){this.$_writeToClipboard("bricksCopiedElementAttributes",this.elementAttributes,"".concat(this.i18n.copied,": ").concat(this.i18n.attributes))},pasteElementConditions:function(){var e=this;this.$_readFromClipboard("bricksCopiedElementConditions").then(function(t){var n=e.$_clone(t.content);if(Array.isArray(n)){var i=[];n.forEach(function(t,r){t.forEach(function(t,o){t.id;var a=e.$_generateId();t._propertyConnections&&Array.isArray(t._propertyConnections)&&(t._propertyConnections.forEach(function(e){i.push({propertyId:e.propertyId,oldConnectionKey:e.connectionKey,newConditionId:a})}),delete t._propertyConnections),n[r][o].id=a})});var r=e.element.settings._conditions||[];if(e.element.settings._conditions=[].concat(E9(r),E9(n)),e.$_state.activeComponent&&i.length>0){var o,a,s=e.$_state.activeComponent,l=(null===(o=e.element)||void 0===o?void 0:o.cid)||(null===(a=e.element)||void 0===a?void 0:a.id);Array.isArray(s.properties)&&i.forEach(function(e){var t=s.properties.find(function(t){return t.id===e.propertyId});if(t){t.connections||(t.connections={}),t.connections[l]||(t.connections[l]=[]);var n=e.oldConnectionKey.split("|");n[1]=e.newConditionId;var i=n.join("|");t.connections[l].includes(i)||t.connections[l].push(i)}})}e.$_state.showConditions=!0,e.$_showMessage("".concat(e.i18n.pasted,": ").concat(e.i18n.conditions))}}).catch(function(){})},pasteElementInteractions:function(){var e=this;this.$_readFromClipboard("bricksCopiedElementInteractions").then(function(t){var n=e.$_clone(t.content);n.forEach(function(t,i){n[i].id=e.$_generateId()});var i=e.element.settings._interactions||[];e.element.settings._interactions=[].concat(E9(i),E9(n)),e.$_state.showInteractions=!0,e.$_showMessage("".concat(e.i18n.pasted,": ").concat(e.i18n.interactions))}).catch(function(){})},pasteElementAttributes:function(){var e=this;this.$_readFromClipboard("bricksCopiedElementAttributes").then(function(t){var n=e.$_clone(t.content);n.forEach(function(t,i){n[i].id=e.$_generateId()}),e.element.settings._attributes=n,e.$_showMessage("".concat(e.i18n.pasted,": ").concat(e.i18n.attributes))}).catch(function(){})},pasteElementGlobalClasses:function(){var e=this;this.$_readFromClipboard("bricksCopiedElementGlobalClasses").then(function(t){var n=e.$_clone(t.content);e.element.settings||(e.element.settings={}),e.element.settings._cssGlobalClasses||(e.element.settings._cssGlobalClasses=[]),e.element.settings._cssGlobalClasses=E9(new Set([].concat(E9(e.element.settings._cssGlobalClasses),E9(n)))),e.$_showMessage("".concat(e.i18n.pasted,": ").concat(e.i18n.classes))}).catch(function(){})},unwrap:function(){var e=this;this.selectedElements.forEach(function(t){var n,i,r=null==t?void 0:t.parent,o=null==t?void 0:t.children;if(Array.isArray(o)&&o.length){t.children=[];var a=e.$_getDynamicElementById(r),s=null==a?void 0:a.children,l=null!==(n=null===(i=s)||void 0===i?void 0:i.indexOf(t.id))&&void 0!==n?n:-1,c=!1;if(null!=a&&a.slotChildren)for(var u=0,d=Object.entries(a.slotChildren);u<d.length;u++){var p=S9(d[u],2),h=(p[0],p[1]),f=h.indexOf(t.id);if(f>-1){c=!0,l=f,s=h;break}}!c&&l<0&&(l=e.$_getElementIndex(t)),o.forEach(function(t,n){var i=e.$_getDynamicElementById(t);i.parent=r,0==r?e.$_moveElement({element:i,parentId:r,index:l+n}):s.splice(l+n,0,t)}),e.$nextTick(function(){e.deleteElement(t,!0)})}})},cloneElement:function(){this.$_isCloneable(this.element)&&this.$_cloneElements()},deleteElement:function(e,t){this.$_isDeletable(e)&&(t&&(e._deleteSelected=!0),this.$_state.deleteElement=e)},hideElement:function(e,t){t||(this.hideElementBuilder||this.hideElementBuilder?(delete e.settings._hideElementBuilder,delete e.settings._hideElementFrontend):(e.settings._hideElementBuilder=!0,e.settings._hideElementFrontend=!0)),"builder"===t?this.hideElementBuilder?delete e.settings._hideElementBuilder:e.settings._hideElementBuilder=!0:"frontend"===t&&(this.hideElementFrontend?delete e.settings._hideElementFrontend:e.settings._hideElementFrontend=!0)},convertTo:function(e,t){if(this.canConvert){if(this.selectedElements.forEach(function(e){e.name=t}),this.$_state.componentInstanceId){var n=this.$_getDynamicElementById(this.$_state.componentInstanceId);n&&(n.name=t)}this.closeMe()}},insertNewElement:function(e,t){var n=this;this.selectedElements.forEach(function(i){var r=Array.isArray(i.children)?i.children.length:0;n.$_addNewElement({element:{name:e},index:r,parent:i.id},t)})},closeMe:function(e){var t=this,n=null==e?void 0:e.target.closest(".action");n&&n.classList.contains("keep-open")||!this.$_state.showContextMenu||null!=e&&e.ctrlKey||this.$nextTick(function(){return t.$_state.showContextMenu=!1})},saveAsTemplate:function(){this.$_state.saveAsTemplate=this.element,this.$_state.popup="templates"},onKeyDown:function(e){this.$_state.activeId&&(this.$_isShortcutModifier(e)?this.$_state.insertAfter=!0:"Shift"!==e.key&&this.$_state.insertAfter&&(this.$_state.insertAfter=!1))},onKeyUp:function(e){this.$_state.insertAfter&&(this.$_state.insertAfter=!1)}},mounted:function(){window.addEventListener("keydown",this.onKeyDown),window.addEventListener("keyup",this.onKeyUp)},beforeUnmount:function(){window.removeEventListener("keydown",this.onKeyDown),window.removeEventListener("keyup",this.onKeyUp)},watch:{show:function(){var e=this;if(this.show){var t=navigator.userAgent,n=/Firefox/i.test(t),i=/Safari/i.test(t)&&!/Chrome|Chromium|Edg|OPR/i.test(t);if(n||i)return;this.$_readFromClipboard().then(function(t){e.$_state.clipboardData=t}).catch(function(){})}},"$_state.showContextMenu":{handler:function(e){e?("main"===this.$_state.messageOrigin&&window.self==window.top||"iframe"===this.$_state.messageOrigin&&window.self!=window.top)&&(this.show=!0):this.show=!1,this.show&&(this.$_state.insertAfter=!1,this.$_state.isInlineEditing=!1)}},"$_state.activeId":{handler:function(e){e?this.editTemplateUrl=this.$_getEditTemplateUrl():this.$_state.showContextMenu=!1}},"$_state.breakpointActive":{handler:function(){this.$_state.showContextMenu=!1}},"$_state.draggingElement":{handler:function(e){e&&(this.$_state.showContextMenu=!1)}}}};const F9=(0,xx.A)(P9,[["render",function(e,t,n,i,r,o){var a,s,l,c,u,d,p,h,f,m,g,v,y,b,k,w,_,C,x,S,E,A,D,T,I,O,P,F,$,M=this,L=$r("icon"),N=Nr("clickaway");return Xn((Ta(),Ma("div",{id:"bricks-builder-context-menu",onClickCapture:t[62]||(t[62]=function(){return o.closeMe&&o.closeMe.apply(o,arguments)}),style:Y({direction:o.builderDirection?"rtl":"ltr"})},[qa("ul",null,[r.editTemplateUrl?(Ta(),Ma("li",V6,[qa("span",{onClick:t[0]||(t[0]=bc(function(e){return o.editTemplate()},["stop"])),textContent:he(e.i18n.editTemplate)},null,8,q6)])):Qa("",!0),r.editTemplateUrl?(Ta(),Ma("li",H6)):Qa("",!0),e.$_userHasPermission("copy_paste_elements")?(Ta(),Ma("li",{key:2,onClick:t[8]||(t[8]=function(t){return e.$_copyElements()})},[qa("span",{class:"label",title:"".concat(e.$_state.isMac?"CMD":"CTRL"," + C"),textContent:he(e.i18n.copy)},null,8,z6),e.$_userHasPermission("copy_paste_element_attributes")&&!o.isBulkEditing?(Ta(),La(L,{key:0,name:"hash",class:"action css-id","data-balloon":"CSS ID","data-balloon-pos":"top-right",onClick:bc(o.copyCssId,["stop"])},null,8,["onClick"])):Qa("",!0),e.$_userHasPermission("copy_paste_element_attributes")&&!o.isBulkEditing?(Ta(),La(L,{key:1,name:"b",class:"action bricks-id","data-balloon":"Bricks ID","data-balloon-pos":"top-right",onClick:t[1]||(t[1]=bc(function(t){var n,i;return e.$_copyToClipboard(null===(n=o.element)||void 0===n?void 0:n.id,"".concat(e.i18n.copied,": ").concat(null===(i=o.element)||void 0===i?void 0:i.id))},["stop"]))})):Qa("",!0),e.$_userHasPermission("copy_paste_element_attributes")&&!o.isBulkEditing&&o.hasLoop?(Ta(),La(L,{key:2,name:"loop",class:"action query-id","data-balloon":"Query ID","data-balloon-pos":"top-right",onClick:t[2]||(t[2]=bc(function(e){return o.copyQueryId()},["stop"]))})):Qa("",!0),e.$_userHasPermission("copy_paste_element_styles")?(Ta(),La(L,{key:3,name:"color",class:te(["action","styles",{disabled:o.isBulkEditing}]),"data-balloon":e.i18n.styles,"data-balloon-pos":"top-right",onClick:t[3]||(t[3]=bc(function(t){var n;return null!==(n=e.$_state.activeClass)&&void 0!==n&&n.id?e.$_copyStylesFromClass(e.$_state.activeClass.id):e.$_copyStylesFromElement(o.element)},["stop"]))},null,8,["class","data-balloon"])):Qa("",!0),o.elementConditions&&e.$_userHasPermission("copy_paste_element_conditions")?(Ta(),La(L,{key:4,name:"conditions",class:"action conditions","data-balloon":e.i18n.conditions,"data-balloon-pos":"top-right",onClick:t[4]||(t[4]=bc(function(e){return o.copyElementConditions()},["stop"]))},null,8,["data-balloon"])):Qa("",!0),o.elementInteractions&&e.$_userHasPermission("copy_paste_element_interactions")?(Ta(),La(L,{key:5,name:"interactions",class:"action interactions","data-balloon":e.i18n.interactions,"data-balloon-pos":"top-right",onClick:t[5]||(t[5]=bc(function(e){return o.copyElementInteractions()},["stop"]))},null,8,["data-balloon"])):Qa("",!0),o.elementGlobalClasses&&e.$_userHasPermission("copy_paste_element_styles")?(Ta(),La(L,{key:6,name:"css3",class:"action global-classes","data-balloon":e.i18n.classes,"data-balloon-pos":"top-right",onClick:t[6]||(t[6]=bc(function(e){return o.copyElementGlobalClasses()},["stop"]))},null,8,["data-balloon"])):Qa("",!0),o.elementAttributes&&e.$_userHasPermission("copy_paste_element_attributes")?(Ta(),La(L,{key:7,name:"html",class:"action attributes","data-balloon":e.i18n.attributes,"data-balloon-pos":"top-right",onClick:t[7]||(t[7]=bc(function(e){return o.copyElementAttributes()},["stop"]))},null,8,["data-balloon"])):Qa("",!0)])):Qa("",!0),e.$_userHasPermission("copy_paste_elements")?(Ta(),Ma("li",{key:3,class:"sep",onClick:t[14]||(t[14]=function(t){return e.$_pasteElements()})},[qa("span",{class:"label",title:"".concat(e.$_state.isMac?"CMD":"CTRL"," + V"),textContent:he(e.i18n.paste)},null,8,U6),"bricksCopiedElementStyles"===(null===(a=e.$_state.clipboardData)||void 0===a?void 0:a.source)||"bricksCopiedGlobalClassStyles"===(null===(s=e.$_state.clipboardData)||void 0===s?void 0:s.source)?(Ta(),La(L,{key:0,name:"color",class:te(["action",{disabled:e.$_isLocked()}]),"data-balloon":e.i18n.styles,"data-balloon-pos":"bottom-right",onClick:t[9]||(t[9]=bc(function(t){var n;return e.$_pasteStyles(null===(n=e.$_state.activeClass)||void 0===n?void 0:n.id)},["stop"]))},null,8,["class","data-balloon"])):Qa("",!0),e.$_userHasPermission("copy_paste_element_conditions")&&"bricksCopiedElementConditions"===(null===(l=e.$_state.clipboardData)||void 0===l?void 0:l.source)?(Ta(),La(L,{key:1,name:"conditions",class:"action conditions","data-balloon":e.i18n.conditions,"data-balloon-pos":"bottom-right",onClick:t[10]||(t[10]=bc(function(e){return o.pasteElementConditions()},["stop"]))},null,8,["data-balloon"])):Qa("",!0),e.$_userHasPermission("copy_paste_element_interactions")&&"bricksCopiedElementInteractions"===(null===(c=e.$_state.clipboardData)||void 0===c?void 0:c.source)?(Ta(),La(L,{key:2,name:"interactions",class:"action interactions","data-balloon":e.i18n.interactions,"data-balloon-pos":"bottom-right",onClick:t[11]||(t[11]=bc(function(e){return o.pasteElementInteractions()},["stop"]))},null,8,["data-balloon"])):Qa("",!0),e.$_userHasPermission("copy_paste_element_attributes")&&"bricksCopiedElementAttributes"===(null===(u=e.$_state.clipboardData)||void 0===u?void 0:u.source)?(Ta(),La(L,{key:3,name:"html",class:"action attributes","data-balloon":e.i18n.attributes,"data-balloon-pos":"bottom-right",onClick:t[12]||(t[12]=bc(function(e){return o.pasteElementAttributes()},["stop"]))},null,8,["data-balloon"])):Qa("",!0),e.$_userHasPermission("copy_paste_element_styles")&&"bricksCopiedElementGlobalClasses"===(null===(d=e.$_state.clipboardData)||void 0===d?void 0:d.source)?(Ta(),La(L,{key:4,name:"css3",class:"action global-classes","data-balloon":e.i18n.classes,"data-balloon-pos":"bottom-right",onClick:t[13]||(t[13]=bc(function(e){return o.pasteElementGlobalClasses()},["stop"]))},null,8,["data-balloon"])):Qa("",!0)])):Qa("",!0),e.$_userHasPermission("duplicate_elements")&&!o.isActiveComponentRoot?(Ta(),Ma("li",{key:4,class:te([{disabled:!e.$_isCloneable(o.element)}]),onClick:t[15]||(t[15]=bc(function(e){return o.cloneElement()},["stop"]))},[qa("span",{class:"label",title:"".concat(e.$_state.isMac?"CMD":"CTRL"," + SHIFT + D"),textContent:he(e.i18n.duplicate)},null,8,W6)],2)):Qa("",!0),o.isBulkEditing&&e.$_userHasPermission("delete_elements")&&!o.isActiveComponentRoot?(Ta(),Ma("li",{key:5,class:te(["delete",{disabled:!e.$_isDeletable(o.element)}]),title:"".concat(e.$_state.isMac?"CMD":"CTRL"," + DELETE"),textContent:he("".concat(e.i18n.deleteSelected," (").concat(o.selectedElements.length,")")),onClickCapture:t[16]||(t[16]=bc(function(e){return o.deleteElement(o.element,!0)},["stop"]))},null,42,G6)):Qa("",!0),o.isBulkEditing||!e.$_userHasPermission("delete_elements")||o.isActiveComponentRoot?Qa("",!0):(Ta(),Ma("li",{key:6,class:te(["delete","sep",{disabled:!e.$_isDeletable(o.element)}]),title:o.isBulkEditing?null:"".concat(e.$_state.isMac?"CMD":"CTRL"," + DELETE"),textContent:he(e.i18n.delete),onClick:t[17]||(t[17]=bc(function(e){return o.deleteElement(o.element)},["stop"]))},null,10,K6)),!e.$_userHasPermission("access_element_hide")||null!==(p=o.element)&&void 0!==p&&p.cid?Qa("",!0):(Ta(),Ma("li",Q6,[qa("span",{class:"label",textContent:he(o.hideElementBuilder&&o.hideElementFrontend?e.i18n.showElement:e.i18n.hideElement),onClickCapture:t[18]||(t[18]=bc(function(t){return e.$_hideElements(o.selectedElements,"both")},["stop"]))},null,40,Y6),qa("span",{class:te(["action","keep-open","builder",{active:null===(h=o.element)||void 0===h||null===(h=h.settings)||void 0===h?void 0:h._hideElementBuilder}]),"data-balloon":e.i18n.builder,"data-balloon-pos":"top-right",onClickCapture:t[19]||(t[19]=bc(function(t){return e.$_hideElements(o.selectedElements,"builder")},["stop"]))},"B",42,J6),qa("span",{class:te(["action","keep-open","frontend",{active:null===(f=o.element)||void 0===f||null===(f=f.settings)||void 0===f?void 0:f._hideElementFrontend}]),"data-balloon":e.i18n.frontend,"data-balloon-pos":"top-right",onClickCapture:t[20]||(t[20]=bc(function(t){return e.$_hideElements(o.selectedElements,"frontend")},["stop"]))},"F",42,X6)])),o.canInsert?(Ta(),Ma("li",Z6,[qa("span",{class:"label",textContent:he("".concat(e.$_state.insertAfter?e.i18n.insertAfter:e.i18n.insert," (").concat(r.insertLabel||e.i18n[null===(m=this.bricks)||void 0===m?void 0:m.builderInsertElement]||"block",")")),onClick:t[21]||(t[21]=function(e){var t;return o.insertNewElement((null===(t=M.bricks)||void 0===t?void 0:t.builderInsertElement)||"block",e)})},null,8,e9),qa("div",t9,[Xn(qa("span",{"data-balloon":e.i18n.container,"data-balloon-pos":"top-right"},[qa("i",{class:te(null===(g=e.$_getElementConfig("container"))||void 0===g?void 0:g.icon),onClick:t[22]||(t[22]=function(e){return o.insertNewElement("container")}),onMouseenter:t[23]||(t[23]=function(t){return r.insertLabel=e.i18n.container}),onMouseleave:t[24]||(t[24]=function(e){return r.insertLabel=void 0})},null,34)],8,n9),[[pl,"container"!==(null===(v=this.bricks)||void 0===v?void 0:v.builderInsertElement)]]),Xn(qa("span",{"data-balloon":e.i18n.block,"data-balloon-pos":"top-right"},[qa("i",{class:te(null===(y=e.$_getElementConfig("block"))||void 0===y?void 0:y.icon),onClick:t[25]||(t[25]=function(e){return o.insertNewElement("block")}),onMouseenter:t[26]||(t[26]=function(t){return r.insertLabel=e.i18n.block}),onMouseleave:t[27]||(t[27]=function(e){return r.insertLabel=void 0})},null,34)],8,i9),[[pl,"block"!==(null===(b=this.bricks)||void 0===b?void 0:b.builderInsertElement)]]),Xn(qa("span",r9,[qa("i",{class:te(null===(k=e.$_getElementConfig("div"))||void 0===k?void 0:k.icon),onMouseenter:t[28]||(t[28]=function(t){return r.insertLabel=e.i18n.div}),onMouseleave:t[29]||(t[29]=function(e){return r.insertLabel=void 0}),onClick:t[30]||(t[30]=function(e){return o.insertNewElement("div")})},null,34)],512),[[pl,"div"!==(null===(w=this.bricks)||void 0===w?void 0:w.builderInsertElement)]])])])):Qa("",!0),o.canWrap?(Ta(),Ma("li",o9,[qa("span",{class:"label",textContent:he("".concat(e.i18n.wrap," (").concat(r.wrapLabel||e.i18n[null===(_=this.bricks)||void 0===_?void 0:_.builderWrapElement]||e.i18n.block,")")),onClick:t[31]||(t[31]=function(t){var n;return e.$_wrapInNestable(null,(null===(n=M.bricks)||void 0===n?void 0:n.builderWrapElement)||"block")})},null,8,a9),qa("div",s9,[Xn(qa("span",{"data-balloon":e.i18n.section,"data-balloon-pos":"top-right"},[qa("i",{class:te(null===(C=e.$_getElementConfig("section"))||void 0===C?void 0:C.icon),onClick:t[32]||(t[32]=function(t){return e.$_wrapInNestable(null,"section")}),onMouseenter:t[33]||(t[33]=function(t){return r.wrapLabel=e.i18n.section}),onMouseleave:t[34]||(t[34]=function(e){return r.wrapLabel=void 0})},null,34)],8,l9),[[pl,0==o.element.parent&&"section"!=o.element.name]]),Xn(qa("span",{"data-balloon":e.i18n.container,"data-balloon-pos":"top-right"},[qa("i",{class:te(null===(x=e.$_getElementConfig("container"))||void 0===x?void 0:x.icon),onClick:t[35]||(t[35]=function(t){return e.$_wrapInNestable(null,"container")}),onMouseenter:t[36]||(t[36]=function(t){return r.wrapLabel=e.i18n.container}),onMouseleave:t[37]||(t[37]=function(e){return r.wrapLabel=void 0})},null,34)],8,c9),[[pl,"container"!==(null===(S=this.bricks)||void 0===S?void 0:S.builderWrapElement)]]),Xn(qa("span",{"data-balloon":e.i18n.block,"data-balloon-pos":"top-right"},[qa("i",{class:te(null===(E=e.$_getElementConfig("block"))||void 0===E?void 0:E.icon),onClick:t[38]||(t[38]=function(t){return e.$_wrapInNestable(null,"block")}),onMouseenter:t[39]||(t[39]=function(t){return r.wrapLabel=e.i18n.block}),onMouseleave:t[40]||(t[40]=function(e){return r.wrapLabel=void 0})},null,34)],8,u9),[[pl,"block"!==(null===(A=this.bricks)||void 0===A?void 0:A.builderWrapElement)]]),Xn(qa("span",d9,[qa("i",{class:te(null===(D=e.$_getElementConfig("div"))||void 0===D?void 0:D.icon),onMouseenter:t[41]||(t[41]=function(t){return r.wrapLabel=e.i18n.div}),onMouseleave:t[42]||(t[42]=function(e){return r.wrapLabel=void 0}),onClick:t[43]||(t[43]=function(t){return e.$_wrapInNestable(null,"div")})},null,34)],512),[[pl,"div"!==(null===(T=this.bricks)||void 0===T?void 0:T.builderWrapElement)]])])])):Qa("",!0),o.canUnwrap?(Ta(),Ma("li",p9,[qa("span",{class:"label",textContent:he(e.i18n.unwrap),onClick:t[44]||(t[44]=function(e){return o.unwrap()})},null,8,h9)])):Qa("",!0),o.canConvert&&["section","container","block","div"].includes(o.element.name)?(Ta(),Ma("li",{key:11,class:"convert sep",onClick:t[57]||(t[57]=bc(function(){},["stop"]))},[qa("span",{class:"label",textContent:he("".concat(e.i18n.convert," ").concat(r.convertLabel?"(".concat(r.convertLabel,")"):""))},null,8,f9),qa("div",m9,[Xn(qa("span",{"data-balloon":e.i18n.section,"data-balloon-pos":"top-right"},[qa("i",{class:te(null===(I=e.$_getElementConfig("section"))||void 0===I?void 0:I.icon),onClick:t[45]||(t[45]=function(e){return o.convertTo(o.element,"section")}),onMouseenter:t[46]||(t[46]=function(t){return r.convertLabel=e.i18n.section}),onMouseleave:t[47]||(t[47]=function(e){return r.convertLabel=void 0})},null,34)],8,g9),[[pl,!(null!==(O=o.element)&&void 0!==O&&O.parent&&0!=o.element.parent||"section"==o.element.name)]]),Xn(qa("span",{"data-balloon":e.i18n.container,"data-balloon-pos":"top-right"},[qa("i",{class:te(null===(P=e.$_getElementConfig("container"))||void 0===P?void 0:P.icon),onClick:t[48]||(t[48]=function(e){return o.convertTo(o.element,"container")}),onMouseenter:t[49]||(t[49]=function(t){return r.convertLabel=e.i18n.container}),onMouseleave:t[50]||(t[50]=function(e){return r.convertLabel=void 0})},null,34)],8,v9),[[pl,"container"!=o.element.name]]),Xn(qa("span",{"data-balloon":e.i18n.block,"data-balloon-pos":"top-right"},[qa("i",{class:te(null===(F=e.$_getElementConfig("block"))||void 0===F?void 0:F.icon),onMouseenter:t[51]||(t[51]=function(t){return r.convertLabel=e.i18n.block}),onMouseleave:t[52]||(t[52]=function(e){return r.convertLabel=void 0}),onClick:t[53]||(t[53]=function(e){return o.convertTo(o.element,"block")})},null,34)],8,y9),[[pl,"block"!=o.element.name]]),Xn(qa("span",b9,[qa("i",{class:te(null===($=e.$_getElementConfig("div"))||void 0===$?void 0:$.icon),onMouseenter:t[54]||(t[54]=function(t){return r.convertLabel=e.i18n.div}),onMouseleave:t[55]||(t[55]=function(e){return r.convertLabel=void 0}),onClick:t[56]||(t[56]=function(e){return o.convertTo(o.element,"div")})},null,34)],512),[[pl,"div"!=o.element.name]])])])):Qa("",!0),!e.$_userHasPermission("create_components")||o.isBulkEditing||this.globalElement||this.component||this.activeComponent?Qa("",!0):(Ta(),Ma("li",{key:12,class:te(["save","sep",{disabled:!o.canSaveAsComponent}]),onClick:t[58]||(t[58]=function(e){return o.saveAsComponent()}),innerHTML:e.i18n.saveAsComponent},null,10,k9)),e.$_userHasPermission("edit_components")&&o.canUnlinkComponent?(Ta(),Ma("li",{key:13,class:"components sep",onClick:t[59]||(t[59]=function(t){return e.$_setActiveComponent(o.element)})},[qa("span",{innerHTML:e.i18n.editComponent},null,8,w9),Ha(L,{name:"link",class:"action unlink-component","data-balloon":e.i18n.unlinkComponent,"data-balloon-pos":"top-right",onClick:bc(o.unlinkComponent,["stop"])},null,8,["data-balloon","onClick"])])):Qa("",!0),!e.$_userHasPermission("create_templates")||!e.$_isNestable(o.element)||o.isBulkEditing||o.component||o.activeComponent?Qa("",!0):(Ta(),Ma("li",{key:14,class:"save sep",onClick:t[60]||(t[60]=function(e){return o.saveAsTemplate()}),textContent:he(e.i18n.saveAsTemplate)},null,8,_9)),e.$_userHasPermission("manage_global_elements")&&!o.isBulkEditing&&o.globalElement&&!o.activeComponent?(Ta(),Ma("li",{key:15,class:"unlink",onClick:t[61]||(t[61]=function(t){return e.$_unlinkGlobalElement()}),textContent:he("".concat(e.i18n.unlink," (").concat(e.i18n.globalElement,")"))},null,8,C9)):Qa("",!0)])],36)),[[pl,r.show],[N,o.closeMe]])}]]);var $9={setup:function(){var e,t,n=Gt(!0);return e="main",window.addEventListener("message",function(t){var n,i=function(e){try{var t=JSON.parse(e);if("object"===MC(t)&&t.hasOwnProperty("key")&&t.hasOwnProperty("value"))return t}catch(e){return!1}return!1}(t.data);if(i){var r;if(null!=i&&i.ignoreOrigin)return"css"===(null==i?void 0:i.key)&&null!=i&&null!==(r=i.value)&&void 0!==r&&r.utilityClasses?void(Xh.css=FC(FC({},Xh.css),i.value)):void(Xh[i.key]=i.value);"messageOrigin"!==i.key&&Xh.messageOrigin===e||("css"===(null==i?void 0:i.key)&&null!=i&&null!==(n=i.value)&&void 0!==n&&n.utilityClasses?Xh.css=FC(FC({},Xh.css),i.value):Xh[i.key]=i.value)}}),t="iframe",Object.keys(Xh).forEach(function(e){li(function(){return Xh[e]},function(n){if(Xh.messageOrigin!==t&&(!1!==Xh.sendPostMessage||!["components","globalClasses",sf.value].includes(e))&&"debounceIds"!==e&&"globalClassIndexById"!==e&&"rerenderLoopIds"!==e&&"rerenderElementIds"!==e&&"ajaxAnimIds"!==e&&"importImages"!==e&&"imagesToImport"!==e){null==n&&(n="");var i={key:e,value:n};(window.bricksData.message.includes(e)||"any"===window.bricksData.message)&&console.info({time:Date.now(),key:e,value:n,size:NC()(JSON.stringify(i)),store:NC()(JSON.stringify(Xh))});var r=JSON.stringify(i),o=document.getElementById("bricks-builder-iframe");window.top==window.self?o&&o.contentWindow.postMessage(r,window.bricksData.siteUrl):window.top.postMessage(r,window.bricksData.siteUrl)}},{deep:!0})}),_r(function(){var e=window.bricksData.adminUrl,t=new XMLHttpRequest;t.open("GET",e,!0),t.onreadystatechange=function(){t.readyState===XMLHttpRequest.DONE&&d_.http({method:"GET",fetch:!1,data:{action:"bricks_get_current_user_id"},error:function(e){n.value=!1,window.bricksData.debug.includes("bricks_get_current_user_id")&&console.warn("bricks_get_current_user_id:error",e),window.bricksData.loginUrl&&(window.location=window.bricksData.loginUrl)},success:function(e){window.bricksData.debug.includes("bricks_get_current_user_id")&&console.info("bricks_get_current_user_id:success",e)}})},t.send()}),Cr(function(){var e,t;!function(){eC.apply(this,arguments)}(),e=function(){var e,t,n,i,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.activeElement;if(!r)return!1;if(r.isContentEditable)return!0;var o=null===(e=r.tagName)||void 0===e?void 0:e.toLowerCase();return"input"===o||"textarea"===o||"select"===o||!(null===(t=r.closest)||void 0===t||!t.call(r,".CodeMirror"))||!(null===(n=window.tinymce)||void 0===n||null===(n=n.activeEditor)||void 0===n||null===(i=n.hasFocus)||void 0===i||!i.call(n))},document.addEventListener("keyup",function(){Xh.elementQuickAccessHover&&(Xh.elementQuickAccessHover=!1)}),document.addEventListener("keydown",function(t){var n,i,r,o,a,s,l=af.value,c=lf.value,u=cf.value,d=t.key?t.key.toLowerCase():"",p=Xh.isMac?"metaKey":"ctrlKey";if(window.bricksData.debug.includes("keydown")&&(console.info("keydown:metaKey === Mac; ctrlKey === Windows"),console.warn("keydown:key:cmdCtrl:e",d,p,t)),"element"===Xh.activePanel&&t[p]&&t.altKey&&!t.repeat&&!t.target.isContentEditable){if(Array.from(document.querySelectorAll('button, input, select, textarea, a[href], [tabindex]:not([tabindex="-1"])')).includes(document.activeElement)&&document.querySelector("#bricks-panel-element")&&document.querySelector("#bricks-panel-element").contains(document.activeElement))return;if(Xh.elementQuickAccessHover=!0,t.code.startsWith("Digit")||t.code.startsWith("Numpad")){t.preventDefault(),Xh.showHideElement=!1,Xh.showConditions=!1,Xh.showInteractions=!1;var h=t.code.replace(/\D/g,"");Xh.elementQuickAccessHover=h}}if("Tab"!==t.code||t.repeat||setTimeout(function(){if("INPUT"===document.activeElement.tagName&&document.activeElement.closest(".structure-item")){var e=document.activeElement.closest(".structure-item").parentNode.getAttribute("data-id");e&&(Xh.activeId=e,Xh.scrollToElementId=Xh.activeId,Xh.activePanel="element")}},0),t.altKey&&"KeyT"===t.code){var f,m=window.top.document.querySelector("#bricks-toolbar");null==m||null===(f=m.querySelector('a, [tabindex="0"]'))||void 0===f||f.focus()}if("escape"===d)d_.closePopup(),Xh.showContainerLayouts=!1,Xh.showContextMenu=!1,Xh.breakpointManager=!1,(null===(s=Xh.activeElement)||void 0===s?void 0:s.cid)||Xh.activeComponent?Xh.componentInstanceId?d_.backToPreviousActiveId():d_.backToComponentsPanel():"search"===document.activeElement.getAttribute("type")?document.activeElement.blur():document.activeElement.closest("[contenteditable]")?document.activeElement.closest("[contenteditable]").blur():("BODY"===document.activeElement.tagName||document.activeElement.closest("#bricks-structure")||document.activeElement.closest("#bricks-panel-search"))&&(Xh.activePanel="elements",Xh.activeId=!1);else if(t[p]&&t.shiftKey)switch(d){case"arrowright":if(d_.isEditable())return;null!=l&&null!==(n=l.children)&&void 0!==n&&n.length&&(t.preventDefault(),Xh.activeId=l.children[0],Xh.scrollToElementId=Xh.activeId,Xh.activePanel="element");break;case"arrowleft":if(d_.isEditable()||null==l||!l.id)return;t.preventDefault(),0!=l.parent?(Xh.activeId=l.parent,Xh.scrollToElementId=Xh.activeId,Xh.activePanel="element"):(Xh.activeId=!1,Xh.activePanel="elements");break;case"arrowup":case"arrowdown":if(d_.isEditable()||Xh.isInlineEditing)return;if(t.preventDefault(),!Xh.activeId)return Xh.activeId=u[0].id,Xh.scrollToElementId=Xh.activeId,void(Xh.activePanel="element");if(null!=l&&l.id&&l.parent){var g,v=l.parent,y=c.find(function(e){return e.id===v});if(null!=y&&null!==(g=y.children)&&void 0!==g&&g.length){var b=y.children.findIndex(function(e){return e===Xh.activeId}),k="arrowdown"===d?b+1:b-1;y.children[k]&&(Xh.activeId=y.children[k],Xh.scrollToElementId=Xh.activeId,Xh.activePanel="element")}}else if(!l.parent){var w=u.findIndex(function(e){return e.id===Xh.activeId});return void(u[w="arrowdown"===d?w+1:w-1]&&(Xh.activeId=u[w].id,Xh.scrollToElementId=Xh.activeId,Xh.activePanel="element"))}break;case"c":t.preventDefault(),d_.showPanel(),Xh.activePanelTab="components";break;case"e":t.preventDefault(),d_.showPanel(),Xh.activePanelTab="content";var _=window.top.document.getElementById("bricks-panel-search");_&&_.focus();break;case"f":t.preventDefault(),Xh.searchControlFocus=Date.now();break;case"s":t.preventDefault(),d_.savePost({force:!0});break;case"v":if(e(t.target||document.activeElement))break;t.preventDefault();var C=window.top.document.querySelector("#bricks-toolbar .new-tab a");C&&C.click();break;case"z":if(Xh.isInlineEditing)return;if(null!==(i=document.activeElement)&&void 0!==i&&i.closest(".CodeMirror"))return;t.preventDefault(),OC.goto("redo");break;case"d":Sy(l)&&(t.preventDefault(),by(l));break;case"l":t.preventDefault(),(d_.userHasPermission("edit_templates")||d_.userHasPermission("create_templates")||d_.userHasPermission("delete_templates")||d_.userHasPermission("insert_templates"))&&(Xh.popup=!Xh.popup&&"templates");break;case"p":t.preventDefault(),_y(null,null===(r=window.bricksData)||void 0===r?void 0:r.builderWrapElement);break;case"x":t.preventDefault(),Xh.showStructure=!Xh.showStructure;break;case"h":t.preventDefault(),d_.showPanel({panel:"history"})}else if(t[p])switch(d){case"k":t.preventDefault(),Xh.showCommandPalette=!Xh.showCommandPalette;break;case".":var x;vC()&&(null===(x=document.activeElement)||void 0===x||x.blur(),Xh.popup="styles"===Xh.popup?null:"styles");break;case"enter":window.bricksData.disableGlobalClasses||Xh.isInlineEditing||null==l||!l.id||(Xh.showElementClasses=!Xh.showElementClasses);break;case"delete":if(e(t.target||document.activeElement))break;Ey(l)&&!Xh.isInlineEditing&&null!=l&&l.id&&(Xh.selectedElements.length&&(l._deleteSelected=!0),Xh.deleteElement=l);break;case"b":t.preventDefault(),!Xh.isInlineEditing&&document.activeElement&&document.activeElement.blur();var S,E,A=d_.clone(Xh.breakpoints).filter(function(e){return!(null!=e&&e.paused)}),D=A.findIndex(function(e){return e.key===Xh.breakpointActive});null!==(o=A[D+=1])&&void 0!==o&&o.key?Xh.breakpointActive=null===(S=A[D])||void 0===S?void 0:S.key:Xh.breakpointActive=null===(E=A[0])||void 0===E?void 0:E.key;break;case"p":if(t.preventDefault(),"styles"===Xh.popup){if(["theme-styles","colors","classes","variables"].includes(Xh.popupTab)){var T=window.top.document.querySelector(".bricks-popup.styles");if(T){var I=new CustomEvent("toggle-canvas-preview");T.dispatchEvent(I)}}}else Xh.isPreviewing=!Xh.isPreviewing;break;case"s":t.shiftKey||(t.preventDefault(),d_.savePost());break;case"c":case"v":if(!d_.userHasPermission("copy_paste_elements")||Xh.isPreviewing||Xh.isPanelExpanded||d_.isEditable()||window.getSelection().toString())return;if("c"===d)t.preventDefault(),Ly();else if("v"===d){if(("INPUT"===document.activeElement.tagName||document.activeElement.hasAttribute("readonly"))&&!document.activeElement.closest(".structure-item"))return;t.preventDefault(),zy()}break;case"z":if(Xh.isInlineEditing)return;if(t.shiftKey)return;if(null!==(a=document.activeElement)&&void 0!==a&&a.closest(".CodeMirror"))return;t.preventDefault(),OC.goto("undo")}else if("styles"===Xh.popup&&!t.repeat&&!t[p]&&!t.altKey&&!t.shiftKey&&(t.code.startsWith("Digit")||t.code.startsWith("Numpad"))){var O,P;if(["INPUT","TEXTAREA","SELECT"].includes(null===(O=document.activeElement)||void 0===O?void 0:O.tagName)||(null===(P=document.activeElement)||void 0===P?void 0:P.isContentEditable))return;t.preventDefault();var F=parseInt(t.code.replace(/\D/g,""));if(0===F)return;var $=(Xh.styleManagerVisibleTabs||[])[F-1];$&&(Xh.popupTab=$)}}),t="main",li(function(){return Xh.unsavedChanges},function(e){e.length&&!window.location.search.includes("dev")?window.onbeforeunload=function(){return"Are you sure you want to leave the builder without saving? All your unsaved changes will be lost!"}:window.onbeforeunload=null},{deep:!0}),["header","content","footer","pageSettings","templateSettings","components","breakpoints","colorPalette","styleManager","globalClasses","globalClassesLocked","globalClassesCategories","globalElements","globalVariables","globalVariablesRenamed","globalVariablesCategories","globalQueries","globalQueriesCategories","pinnedElements","pseudoClasses","themeStyles","fontChanges","fontFavorites","fonts","iconSets","customIcons","disabledIconSets"].forEach(function(e){li(function(){return Xh[e]},function(n){Xh.messageOrigin===t&&Xh.iframeLoaded&&(Xh.isBroadcasting||Xh.unsavedChanges.includes(e)||Xh.unsavedChanges.push(e))},{deep:!0})}),d_.isLodash(),d_.initdynamicDataActiveGroups(),d_.initDynamicDataPinnedTags(),d_.initPinnedControlGroups(),window.addEventListener("focus",function(e){setTimeout(function(){Xh.messageOrigin="main",Xh.showContainerLayouts=!1,Xh.isInlineEditing=!1},1)}),window.addEventListener("mousedown",function(e){Xh.messageOrigin="main",Xh.showContainerLayouts=!1,Xh.isInlineEditing=!1})}),{secure:n}},computed:{hasPopupNotifications:function(){return["styles","queries"].includes(this.$_state.popup)}},watch:{"$_state.templateType":function(e){e&&Y_("main")},"$_state.deleteElement":{handler:function(e){e&&this.$_deleteElement(e)}},"$_state.importImages":{handler:function(e){e&&this.$_importImages(e)}},"$_selectedElementSettings.value":{handler:function(e,t){this.$_state.isChangingSelection||this.$_selectedElementsSetSettings(e,t)},immediate:!1}},components:{TheBreakpoints:Sx,TheNotifications:Xx,TheToolbar:$S,ThePanel:DF,ThePreview:f6,TheStructure:O6,ThePreloader:N6,TheMessage:R6,TheContextMenu:F9,TheNotification:$F}};var M9=(0,xx.A)($9,[["render",function(e,t,n,i,r,o){var a=$r("the-breakpoints"),s=$r("the-notifications"),l=$r("the-toolbar"),c=$r("the-panel"),u=$r("the-preview"),d=$r("the-structure"),p=$r("the-preloader"),h=$r("the-message"),f=$r("the-context-menu");return Ta(),Ma(Ca,null,[i.secure&&e.bricks.customBreakpoints?(Ta(),La(a,{key:0})):Qa("",!0),i.secure&&!o.hasPopupNotifications?(Ta(),La(s,{key:1})):Qa("",!0),i.secure?(Ta(),La(l,{key:2})):Qa("",!0),i.secure?(Ta(),La(c,{key:3})):Qa("",!0),i.secure?(Ta(),La(u,{key:4})):Qa("",!0),i.secure?(Ta(),La(d,{key:5})):Qa("",!0),i.secure?(Ta(),La(p,{key:6})):Qa("",!0),i.secure?(Ta(),La(h,{key:7})):Qa("",!0),i.secure?(Ta(),La(f,{key:8})):Qa("",!0)],64)}]]),L9={controlUnits:{px:{min:-9999,max:9999,step:1},em:{min:-999,max:999,step:.1},rem:{min:-999,max:999,step:.1},vh:{min:-999,max:999,step:1},vw:{min:-999,max:999,step:1},"%":{min:-999,max:999,step:1},auto:{min:0,max:0,step:1},"-":{min:0,max:0,step:1}}};var N9={id:"bricks-debug-info"},j9=["for","textContent"],B9=["textContent"];var R9={data:function(){return{show:!0}},computed:{debug:function(){var e=this,t=this.bricks.debug?this.bricks.debug.split(","):[],n=[];return this.bricks.debug&&t.forEach(function(t){e.$_state.hasOwnProperty(t)&&n.push(t)}),n}}};var V9=(0,xx.A)(R9,[["render",function(e,t,n,i,r,o){return Ta(),Ma("ul",N9,[(Ta(!0),Ma(Ca,null,Rr(o.debug,function(t,n){return Xn((Ta(),Ma("li",{key:t,class:te(t)},[qa("label",{for:t,textContent:he(t)},null,8,j9),qa("pre",{textContent:he(e.$_state[t])},null,8,B9)],2)),[[pl,r.show]])}),128)),qa("li",{class:"debug-toggle",onClick:t[0]||(t[0]=function(e){return r.show=!r.show}),"data-balloon":"Debug Info","data-balloon-pos":"bottom"}," x ")])}]]),q9=["data-name","innerHTML"];var H9={props:{name:{type:String,required:!0}},methods:{getSVG:function(){try{return n(78345)("./".concat(this.name,".svg"))}catch(e){this.bricks.debug.includes("catch")&&console.warn("Icon.vue:error",e)}}}};var z9=(0,xx.A)(H9,[["render",function(e,t,n,i,r,o){return Ta(),Ma("span",{class:"bricks-svg-wrapper","data-name":n.name,innerHTML:o.getSVG()},null,8,q9)}]]);function U9(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var l=i&&i.prototype instanceof s?i:s,c=Object.create(l.prototype);return W9(c,"_invoke",function(n,i,r){var o,s,l,c=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return o=t,s=0,l=e,p.n=n,a}};function h(n,i){for(s=n,l=i,t=0;!d&&c&&!r&&t<u.length;t++){var r,o=u[t],h=p.p,f=o[2];n>3?(r=f===i)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=h&&((r=n<2&&h<o[1])?(s=0,p.v=i,p.n=o[1]):h<f&&(r=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,p.n=f,s=0))}if(r||n>1)return a;throw d=!0,i}return function(r,u,f){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,f),s=u,l=f;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(p.n=-1),h(s,l)):p.n=l:p.v=l);try{if(c=2,o){if(s||(r="next"),t=o[r]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=e}else if((t=(d=p.n<0)?l:n.call(i,p))!==a)break}catch(t){o=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,r,o),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][i]?t(t([][i]())):(W9(t={},i,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,W9(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,W9(d,"constructor",c),W9(c,"constructor",l),l.displayName="GeneratorFunction",W9(c,r,"GeneratorFunction"),W9(d),W9(d,r,"Generator"),W9(d,i,function(){return this}),W9(d,"toString",function(){return"[object Generator]"}),(U9=function(){return{w:o,m:p}})()}function W9(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}W9=function(e,t,n,i){function o(t,n){W9(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},W9(e,t,n,i)}function G9(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,r)}function K9(e){return function(e){if(Array.isArray(e))return Y9(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Q9(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q9(e,t){if(e){if("string"==typeof e)return Y9(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Y9(e,t):void 0}}function Y9(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var J9={name:"sortable",emits:["dragstart","update","end"],props:{tag:{required:!1,type:String,default:"div"},element:{type:Object,default:function(){return{}}},parent:{required:!0,type:Array,default:function(){return[]}},options:{type:Object,default:function(){return{}}}},data:function(){var e,t,n,i,r;return{updateOn:(null===(e=this.options)||void 0===e?void 0:e.updateOn)||"dragend",direction:(null===(t=this.options)||void 0===t?void 0:t.direction)||"vertical",itemClass:(null===(n=this.options)||void 0===n?void 0:n.itemClass)||"bricks-sortable-item",handleClass:(null===(i=this.options)||void 0===i?void 0:i.handleClass)||!1,sortingClass:(null===(r=this.options)||void 0===r?void 0:r.sortingClass)||"sorting",itemNodes:[],draggable:!1,oldIndex:!1,newIndex:!1,delay:0,isShiftPressed:!1,isCtrlPressed:!1}},methods:{keydown:function(e){"Control"!==e.key&&"Meta"!==e.key||(this.isCtrlPressed=!0),"Shift"===e.key&&(this.isShiftPressed=!0)},keyup:function(e){"Control"!==e.key&&"Meta"!==e.key||(this.isCtrlPressed=!1),"Shift"===e.key&&(this.isShiftPressed=!1)},windowBlur:function(){this.isShiftPressed=!1,this.isCtrlPressed=!1},click:function(e){if(["styles","queries"].includes(this.$_state.popup)){var t=e.target.closest("li"),n=null==t?void 0:t.dataset.index,i=null==t?void 0:t.dataset.id;if(i){var r=e.target.closest(".column.categories"),o=r?this.$parent.getCategories():this.$_state.popupFilteredItems,a=r?this.$_state.popupFilters.categories:this.$_state.popupSelectedItems;if(this.isShiftPressed&&-1!==this.selectedIndex)for(var s=o.findIndex(function(e){return e.id===a[0]}),l=n,c=Math.min(s,l),u=Math.max(s,l),d=c;d<=u;d++){var p=o[d];null!=p&&p.id&&!a.includes(p.id)&&a.push(p.id)}else if(this.isCtrlPressed){var h=a.indexOf(i);-1!==h?a.splice(h,1):a.push(i)}else a=r||1!==a.length||a[0]!==i?[i]:[];if(r){if(["typography","spacing"].includes(this.$_state.popupTab)){var f=null==t?void 0:t.dataset.categoryId;f&&(a=[f])}this.$_state.popupFilters.categories=a}else this.$_state.popupSelectedItems=a;this.selectedIndex=n}else console.warn("Sortable: No item ID found in click event",e,t)}},mousedown:function(e){if(e.stopPropagation(),0===e.button&&this.handleClass){var t=e.target.closest(".".concat(this.handleClass));t&&t.contains(e.target)&&(e.target.isContentEditable||Array.isArray(this.parent)&&this.parent.length<2||(this.draggable=t.closest(".".concat(this.itemClass)),this.draggable&&this.draggable&&(this.draggable.setAttribute("draggable",!0),this.addListeners())))}},dragstart:function(){this.$emit("dragstart"),this.draggable.classList.add(this.sortingClass),this.itemNodes=K9(this.draggable.parentNode.querySelectorAll(":scope > .".concat(this.itemClass))),this.oldIndex=this.itemNodes.indexOf(this.draggable),this.newIndex=this.oldIndex,this.$_state.popupSelectedItems.length||(this.$_state.popupSelectedItems=[this.itemNodes[this.oldIndex].dataset.id])},dragover:function(e){var t=this;if(e.preventDefault(),e.dataTransfer.dropEffect="move",Number.isInteger(this.oldIndex)){var n=e.target.closest(".".concat(this.itemClass));if(n&&n.parentNode===this.draggable.parentNode&&n!==this.draggable){this.itemNodes=K9(this.draggable.parentNode.querySelectorAll(":scope > .".concat(this.itemClass)));var i=this.itemNodes.indexOf(n);if(Number.isInteger(i)){this.newIndex=i;var r=this.newIndex<this.oldIndex?"before":"after";if("horizontal"===this.direction){var o=n.getBoundingClientRect();r=e.clientX-o.left<o.width/2?"before":"after"}n.insertAdjacentElement("before"===r?"beforebegin":"afterend",this.draggable),"dragover"===this.updateOn&&this.updateStore(),setTimeout(function(){t.itemNodes=K9(t.$el.querySelectorAll(":scope > .".concat(t.itemClass)))},0)}}}},end:function(e){var t=this;this.draggable&&(e.preventDefault(),"dragover"!==this.updateOn&&(this.itemNodes=K9(this.draggable.parentNode.querySelectorAll(":scope > .".concat(this.itemClass))),this.newIndex=this.itemNodes.indexOf(this.draggable),this.updateStore()),this.$emit("end",{oldIndex:this.oldIndex,newIndex:this.newIndex,items:Array.isArray(this.parent)?K9(this.parent):[]}),Fn(function(){t.removeListeners()}))},updateStore:function(){var e,t=this;if(Number.isInteger(this.oldIndex)&&Number.isInteger(this.newIndex)&&this.oldIndex!==this.newIndex)if(["styles","queries"].includes(null===(e=this.$_state)||void 0===e?void 0:e.popup)){var n,i=new Map,r=new Map;this.parent.forEach(function(e,t){i.set(e.id,e),r.set(e.id,t)});var o,a=[],s=[],l=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Q9(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(this.itemNodes);try{for(l.s();!(o=l.n()).done;){var c=o.value.dataset.id,u=i.get(c);u&&(a.push(u),s.push(r.get(c)))}}catch(e){l.e(e)}finally{l.f()}[].concat(s).sort(function(e,t){return e-t}).forEach(function(e,n){t.parent[e]=a[n]});var d=i.get(null===(n=this.itemNodes[this.oldIndex])||void 0===n?void 0:n.dataset.id);this.$emit("update",{items:this.parent,item:d,oldIndex:this.oldIndex,newIndex:this.newIndex})}else{var p=this.parent.splice(this.oldIndex,1);this.parent.splice(this.newIndex,0,p[0]),this.$emit("update",{items:this.parent,item:p[0],oldIndex:this.oldIndex,newIndex:this.newIndex})}},addListeners:function(){this.draggable&&(this.draggable.addEventListener("dragstart",this.dragstart),this.draggable.addEventListener("dragend",this.end)),this.$el.addEventListener("dragover",this.dragover)},removeListeners:function(){this.draggable&&(this.draggable.removeEventListener("dragstart",this.dragstart),this.draggable.removeEventListener("dragend",this.end),this.draggable.removeAttribute("draggable"),this.draggable.classList.remove(this.sortingClass),this.draggable=void 0),this.oldIndex=void 0,this.newIndex=void 0,this.$el.removeEventListener("dragover",this.dragover)}},mounted:function(){var e=this;this.$el.addEventListener("mousedown",this.mousedown),this.$el.addEventListener("click",this.click),window.addEventListener("keydown",this.keydown),window.addEventListener("keyup",this.keyup),window.addEventListener("blur",this.windowBlur),window.addEventListener("mouseup",this.end),window.addEventListener("drop",this.end),this.$el.addEventListener("dragenter",function(t){"LI"===t.target.tagName&&t.target.closest(".categories")&&!e.draggable&&t.target.classList.add("add")}),this.$el.addEventListener("dragleave",function(t){"LI"===t.target.tagName&&t.target.closest(".categories")&&!e.draggable&&t.target.classList.remove("add")}),this.$el.addEventListener("dragover",function(e){e.preventDefault()}),this.$el.addEventListener("drop",function(t){var n;if(!e.draggable&&t.target.classList.contains("add")){t.preventDefault();var i=t.target.dataset.categoryId;null!==(n=e.$parent)&&void 0!==n&&n.importMode?(e.$_state.popupSelectedItems.forEach(function(t){var n=e.$parent.classes.find(function(e){return e.id===t});n&&(i?n.category=i:delete n.category)}),e.$parent.$emit("update-classes",K9(e.$parent.classes))):e.$_state.popupSelectedItems.length&&e.$_state.popupSelectedItems.forEach(function(t){var n=e.$parent.items.find(function(e){return e.id===t});n&&(i?n.category=i:delete n.category)});var r=function(){var t,n=(t=U9().m(function t(){return U9().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,e.$_filterPopupItems();case 1:e.$_state.popupFilteredItems=t.v;case 2:return t.a(2)}},t)}),function(){var e=this,n=arguments;return new Promise(function(i,r){var o=t.apply(e,n);function a(e){G9(o,i,r,a,s,"next",e)}function s(e){G9(o,i,r,a,s,"throw",e)}a(void 0)})});return function(){return n.apply(this,arguments)}}();r(),e.$_state.popupSelectedItems=[],t.target.classList.remove("add")}})},beforeUnmount:function(){this.$el.removeEventListener("mousedown",this.mousedown),this.$el.removeEventListener("click",this.click),window.removeEventListener("keydown",this.keydown),window.removeEventListener("keyup",this.keyup),window.removeEventListener("blur",this.windowBlur),window.removeEventListener("mouseup",this.end),window.removeEventListener("drop",this.end)},render:function(){return Ss(this.tag,{},this.$slots.default())}},X9=J9;function Z9(e){return function(e){if(Array.isArray(e))return e7(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return e7(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e7(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e7(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var t7={key:0,class:"no-results search-controls"},n7=["textContent"],i7=["textContent"],r7=["data-controlkey"],o7={key:2,class:"control-groups"},a7=["data-control-group"],s7=["onClick"],l7=["title"],c7=["innerHTML"],u7=["innerHTML"],d7={class:"control-group-actions"},p7=["data-controlkey"],h7={key:0,class:"control"},f7={class:"control-inner"},m7=["data-control-group"],g7={class:"pinned-group-title"},v7=["title"],y7=["innerHTML"],b7=["innerHTML"],k7={class:"pinned-group-controls"},w7=["data-controlkey"];function _7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function C7(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_7(Object(n),!0).forEach(function(t){x7(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_7(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function x7(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=S7(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=S7(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==S7(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S7(e){return S7="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S7(e)}var E7={setup:function(){return{activeId:ln(Xh,"activeId"),activePanel:ln(Xh,"activePanel"),activePanelTab:ln(Xh,"activePanelTab"),activePanelGroup:ln(Xh,"activePanelGroup"),themeStyleSettings:ln(Xh,"themeStyleSettings")}},props:{type:{type:String,required:!0},block:{type:Object,required:!1,default:function(){return{}}},settings:{type:Object,required:!1,default:function(){return{}}},disablePinnedControlGroups:{type:Boolean,required:!1,default:!1}},data:function(){return{refreshKey:this.$_generateId(),resizingPinned:!1,resizeStartY:0,resizeStartHeight:0,pinnedSectionHeightBeforeExpand:300}},computed:{name:function(){var e;return null===(e=this.block)||void 0===e?void 0:e.name},config:function(){return"element"===this.type?this.$_getElementConfig(this.name):this.block},controls:function(){var e,t,n=this,i="object"===S7(null===(e=this.config)||void 0===e?void 0:e.controls)?this.$_clone(this.config.controls):{};if(!["brx-nav-nested-items","brx-dropdown-content"].includes(null===(t=this.block)||void 0===t||null===(t=t.settings)||void 0===t||null===(t=t._hidden)||void 0===t?void 0:t._cssClasses)||this.settings.hasOwnProperty("hasLoop")||this.settings.hasOwnProperty("query")||(i=Object.keys(i).filter(function(e){return"hasLoop"!==e&&"query"!==e&&"loopSeparator"!==e}).reduce(function(e,t){return e[t]=i[t],e},{})),"nav-menu"===this.name&&this.$_isNavMenuInsideDropdown(this.block)&&(i=Object.keys(i).filter(function(e){var t;return"menu"===e||"style"===(null===(t=i[e])||void 0===t?void 0:t.tab)}).reduce(function(e,t){return e[t]=i[t],e},{})),this.$_state.searchControlKeyword&&(i=Object.keys(i).filter(function(e){return"separator"!==i[e].type&&(-1!==e.toLowerCase().indexOf(n.$_state.searchControlKeyword.toLowerCase())||i[e].hasOwnProperty("label")&&-1!==i[e].label.toLowerCase().indexOf(n.$_state.searchControlKeyword.toLowerCase()))}).reduce(function(e,t){return e[t]=i[t],e},{})),this.activePanel.includes("settings")||"theme-styles"===this.$_state.popupTab||this.$_userHasPermission("access_element_styles")&&this.$_userHasPermission("access_element_content")||(i=Object.keys(i).filter(function(e){var t,r,o;return!(!n.$_userHasPermission("access_element_styles")&&null!==(t=i[e])&&void 0!==t&&t.css)&&(!!(n.$_userHasPermission("access_element_content")||null!==(r=i[e])&&void 0!==r&&r.css)&&(null===(o=i[e])||void 0===o||!o.fullAccess))}).reduce(function(e,t){return e[t]=i[t],e},{})),"code"!==this.name||this.$_state.userCan.executeCode||(this.settings.hasOwnProperty("executeCode")&&this.settings.executeCode?i=Object.keys(i).filter(function(e){return"_"===e[0]||"infoExecuteCodeOff"===e}).reduce(function(e,t){return e[t]=i[t],e},{}):delete i.executeCode),"object"!==S7(i))return{};if(this.isSearchingControls)for(var r in i)i[r].hasOwnProperty("group")||(i[r].group="_content"),i[r].tab="content";return this.$_state.searchControlModified&&(i=Object.keys(i).filter(function(e){var t,i,r=n.$_getControlKeyActive(e),o=n.activeClass?null===(t=n.activeClass)||void 0===t?void 0:t.settings:n.settings;n.$_state.activeSelector&&(o=(null===(i=n.$_state.activeSelector)||void 0===i?void 0:i.settings)||{});return o.hasOwnProperty(r)}).reduce(function(e,t){return e[t]=i[t],e},{})),i},controlsGroupless:function(){var e={};for(var t in this.controls){var n=this.controls[t];null!=n&&n.hidden||null!=n&&n.group||null==n||!n.tab||"style"===n.tab||this.isDeprecated(n,t)||(e[t]=n)}return Object.keys(e).length?e:void 0},controlGroups:function(){var e,t=this,n=null===(e=this.config)||void 0===e?void 0:e.controlGroups;if(n)return(this.$_state.searchControlKeyword||this.$_state.searchControlModified)&&Object.keys(this.controls).some(function(e){var n;return"_content"===(null===(n=t.controls[e])||void 0===n?void 0:n.group)})&&(n=C7({_content:{title:this.i18n.content,icon:"box",tab:"content"}},n)),"nav-menu"===this.name&&this.$_isNavMenuInsideDropdown(this.block)&&(n=Object.keys(n).filter(function(e){var t;return"style"===(null===(t=n[e])||void 0===t?void 0:t.tab)}).reduce(function(e,t){return e[t]=n[t],e},{})),n},activeClass:function(){return this.$_state.activeClass},isSearchingControls:function(){return this.$_isSearchingControls()},pinnedControlGroups:function(){var e=this;if(this.disablePinnedControlGroups||!this.controlGroups||!this.$_state.pinnedControlGroups.length)return{};if(this.$_isSearchingControls())return{};var t={};return this.$_state.pinnedControlGroups.forEach(function(n){e.controlGroups[n]&&(t[n]=e.controlGroups[n])}),t},regularControlGroups:function(){var e=this;if(!this.controlGroups)return{};if(this.disablePinnedControlGroups||this.isSearchingControls)return this.controlGroups;var t={};return Object.keys(this.controlGroups).forEach(function(n){e.$_state.pinnedControlGroups.includes(n)||(t[n]=e.controlGroups[n])}),t},regularControlsWrapperStyle:function(){return Object.keys(this.pinnedControlGroups).length?{paddingBottom:"".concat(this.$_state.pinnedSectionHeight+20,"px")}:{}}},methods:{renderControl:function(e,t){return!this.isDeprecated(e,t)&&(!!this.isSearchingControls||(!this.$_isBulkEditing()||"_cssId"!==t)&&this.activePanelGroup===(null==e?void 0:e.group))},showControlGroup:function(e,t){var n=this;return!(!this.isSearchingControls&&this.isGroupPinned(e))&&(this.isSearchingControls?Object.keys(this.controls).some(function(t){var i;return(null===(i=n.controls[t])||void 0===i?void 0:i.group)===e}):null!=t&&t.parent?this.$_state.activePanelGroupParent===t.parent:this.activePanelTab===(null==t?void 0:t.tab)||"element"!==this.type)},getSource:function(e){var t,n="icon"!==this.controls[e].type&&((null===(t=this.controls[e])||void 0===t?void 0:t.css)||"_cssCustom"===e);if("element"===this.type){if(this.$_state.activeSelector&&n)return"selector";if(this.activeClass&&n)return"class"}return"id"},getSettings:function(e){var t,n;return"selector"===this.getSource(e)?(null===(t=this.$_state.activeSelector)||void 0===t?void 0:t.settings)||{}:"class"===this.getSource(e)?(null===(n=this.activeClass)||void 0===n?void 0:n.settings)||{}:this.settings},isDeprecated:function(e,t){return(null==e?void 0:e.deprecated)&&!this.settings.hasOwnProperty(t)},controlGroupHasInheritedFrom:function(e){var t=this;if(this.$_isBulkEditing())return!1;if("theme-styles"===this.$_state.popupTab||"settings-page"===this.activePanel)return!1;var n=this.$_state.activeSelector||this.$_state.activeClass||this.$_state.activeElement,i=this.getGroupControls(e);return Object.keys(i).some(function(e){return t.$_getInheritedSettings(null,n,e)})},controlGroupHasSettings:function(e){var t=this,n=this.getGroupControls(e),i=Object.keys(n);if("theme-styles"===this.$_state.popupTab&&this.$_state.popup){var r=this.$_state.breakpoints.map(function(e){return e.key});r=r.filter(function(e){return"desktop"!==e});var o=this.themeStyleSettings[e]||{};if(this.controlGroups[e].isParent){var a=!1;return Object.keys(this.controlGroups).forEach(function(n){var i;(null===(i=t.controlGroups[n])||void 0===i?void 0:i.parent)===e&&"object"===S7(t.themeStyleSettings[n])&&Object.keys(t.themeStyleSettings[n]).length&&(a=!0)}),a}return!("conditions"!==e||!o[e]||!Object.keys(o[e]).length)||(delete o._custom,delete o.conditions,i=(i=Object.keys(this.$_clone(o))).filter(function(e){return"desktop"===t.$_state.breakpointActive?!r.some(function(t){return e.includes(":".concat(t))}):"desktop"===t.$_state.breakpointActive||e.includes(":".concat(t.$_state.breakpointActive))}),this.$_state.pseudoClassActive&&(i=i.filter(function(e){return e.includes(":".concat(t.$_state.pseudoClassActive))})),i.length>0)}return i.some(function(e){return t.getSettings(e)&&Object.keys(t.getSettings(e)).includes(t.$_getControlKeyActive(e))})},resetGroupSettings:function(e){var t=this;if(!this.$_isLocked()){var n=this.getGroupControls(e),i=!1;if("theme-styles"===this.$_state.popupTab)for(var r in i=!0,this.themeStyleSettings[e]){var o=this.$_getControlKeyPlain(r);(o=this.$_getControlKeyActive(o))===r&&delete this.themeStyleSettings[e][r]}else{var a,s,l=this.settings;if("element"===this.activePanel)null!==(a=this.activeClass)&&void 0!==a&&a.settings&&"_shapes"!==e&&(l=this.activeClass.settings),null!==(s=this.$_state.activeSelector)&&void 0!==s&&s.settings&&(l=this.$_state.activeSelector.settings);for(var c in n)for(var u in i||(i=!0),l)(u===this.$_getControlKeyActive(c)||u===this.$_getControlKeyActive(c,!1))&&delete l[u]}switch(this.activePanel){case"settings-page":this.$_state.pageSettings=C7({},this.$_state.pageSettings);break;case"settings-template":this.$_state.templateSettings=C7({},this.$_state.templateSettings);break;case"theme-styles":this.$_state.themeStyles=C7({},this.$_state.themeStyles)}i&&(this.refreshKey=this.$_generateId(),this.$nextTick(function(){"element"===t.activePanel&&t.$_forceRender(0)}))}},controlGroupClasses:function(e,t){var n=["control-group"],i=this.isSearchingControls||this.activePanelGroup===t;return e.isParent&&(n.push("is-parent"),i=this.$_state.activePanelGroupParent===t),n.push({open:i}),this.isSearchingControls&&n.push("is-searching"),this.$_controlRequiredMet(e,this.settings)||n.push("hide"),null!=e&&e.parent&&n.push("has-parent"),null!=e&&e.tab&&n.push("tab-".concat(e.tab)),n},getGroupControls:function(e){var t={};for(var n in this.controls){var i;(null===(i=this.controls[n])||void 0===i?void 0:i.group)===e&&(t[n]=this.controls[n])}return t},toggleGroup:function(e){if(!this.isSearchingControls){var t=this.controlGroups[e];null!=t&&t.isParent?this.$_state.activePanelGroupParent=this.$_state.activePanelGroupParent===e?"":e:(null!=t&&t.parent||(this.$_state.activePanelGroupParent=""),this.activePanelGroup=this.activePanelGroup===e?"":e)}},togglePinGroup:function(e){var t;if(!this.disablePinnedControlGroups){var n=this.$_state.pinnedControlGroups.indexOf(e),i=(null===(t=this.controlGroups[e])||void 0===t?void 0:t.title)||e;-1!==n?(this.$_state.pinnedControlGroups.splice(n,1),this.$_showMessage("".concat(this.i18n.unpinned,": ").concat(i))):(this.$_state.pinnedControlGroups.push(e),this.$_showMessage("".concat(this.i18n.pinned,": ").concat(i)),this.activePanelGroup===e&&(this.activePanelGroup="")),this.$_state.pinnedControlGroups.length?localStorage.setItem("brx_builder_pinned_control_groups",JSON.stringify(this.$_state.pinnedControlGroups)):localStorage.removeItem("brx_builder_pinned_control_groups")}},isGroupPinned:function(e){return!this.disablePinnedControlGroups&&this.$_state.pinnedControlGroups.includes(e)},startResizingPinned:function(e){if(0===e.button&&Object.keys(this.pinnedControlGroups).length&&!(e.detail>=2)){if(this.resizingPinned=!0,this.resizeStartY=e.clientY,this.$_state.pinnedSectionHeight)this.resizeStartHeight=this.$_state.pinnedSectionHeight;else{var t=this.$el.querySelector("#bricks-pinned-section");this.resizeStartHeight=t?t.offsetHeight:300}document.addEventListener("mousemove",this.resizePinned),document.addEventListener("mouseup",this.stopResizingPinned)}},togglePinnedSectionHeight:function(){this.$_state.pinnedSectionHeight>0?(this.pinnedSectionHeightBeforeExpand=this.$_state.pinnedSectionHeight,this.$_state.pinnedSectionHeight=0,localStorage.setItem("brx_builder_pinned_section_height","auto")):(this.$_state.pinnedSectionHeight=this.pinnedSectionHeightBeforeExpand||300,localStorage.setItem("brx_builder_pinned_section_height",this.$_state.pinnedSectionHeight))},resizePinned:function(e){if(this.resizingPinned){var t=this.resizeStartY-e.clientY,n=this.resizeStartHeight+t;n<150&&(n=150),this.$_state.pinnedSectionHeight=n}},stopResizingPinned:function(){this.resizingPinned&&(this.resizingPinned=!1,document.removeEventListener("mousemove",this.resizePinned),document.removeEventListener("mouseup",this.stopResizingPinned),localStorage.setItem("brx_builder_pinned_section_height",this.$_state.pinnedSectionHeight))},migrateSettingKeys:function(){var e=this,t=function(){var t=n,i=e.settings[n];t=t.replace("_hover",":hover"),e.$_state.breakpoints.forEach(function(e){"desktop"===e.key||null!=e&&e.custom||(t=t.replace("_".concat(e.key),":".concat(e.key)))}),t!==n&&(delete e.settings[n],e.settings[t]=i)};for(var n in this.settings)t()}},mounted:function(){this.migrateSettingKeys(),"element"===this.type&&"form"===this.name&&"object"===S7(this.controlGroups)&&this.controlGroups.hasOwnProperty("fields")&&(this.activePanelGroup="fields")},beforeUnmount:function(){document.removeEventListener("mousemove",this.resizePinned),document.removeEventListener("mouseup",this.stopResizingPinned)},watch:{isSearchingControls:function(e,t){e&&!t&&(this.$_state.activePanelTab="content",this.$_state.activePanelGroup="")},activePanel:{handler:function(e,t){"element"===e&&"elements"===t&&(this.refreshKey=this.$_generateId()),-1!==["settings-page","theme-styles"].indexOf(e)&&this.$_clearSearchControls()},immediate:!0},"$_state.activeControlKey":{handler:function(e){e&&setTimeout(function(){var t=document.querySelector('[data-controlkey="'.concat(e,'"]'));if(t){var n=t.querySelector("input")||t.querySelector(".bricks-svg-wrapper");n&&"function"==typeof(null==n?void 0:n.click)&&n.click()}},100)}},"$_state.isResizing":{handler:function(e){var t=this;if("panel"===e){var n=function(){"panel"===t.$_state.isResizing&&(t._resizeAnimationFrame=requestAnimationFrame(n))};n()}else this._resizeAnimationFrame&&(cancelAnimationFrame(this._resizeAnimationFrame),this._resizeAnimationFrame=null)}}}};const A7=(0,xx.A)(E7,[["render",function(e,t,n,i,r,o){var a=$r("icon"),s=$r("panel-control"),l=$r("control-has-setting"),c=$r("control-info");return Ta(),Ma("div",{class:te(["bricks-panel-controls",{"has-pinned-section":!n.disablePinnedControlGroups&&Object.keys(o.pinnedControlGroups).length}])},[qa("div",{class:"regular-controls-wrapper",style:Y(o.regularControlsWrapperStyle)},[o.isSearchingControls&&!Object.keys(o.controls).length?(Ta(),Ma("div",t7,[Ha(a,{name:"no-results"}),qa("p",{textContent:he(e.i18n.nothingFound)},null,8,n7),qa("button",{textContent:he("".concat(e.i18n.clear,": ").concat(e.i18n.search)),onClick:t[0]||(t[0]=function(t){return e.$_clearSearchControls()})},null,8,i7)])):Qa("",!0),!o.isSearchingControls&&o.controlsGroupless?Xn((Ta(),Ma("ul",{key:1,class:te(["controls",{open:"content"===i.activePanelTab}])},[(Ta(!0),Ma(Ca,null,Rr(o.controlsGroupless,function(e,t){return Ta(),Ma("li",{key:"".concat(t,"-").concat(i.activeId,"-").concat(r.refreshKey),"data-controlkey":t},[Ha(s,{controlKey:t,controls:o.controls,control:e,block:n.block,source:o.getSource(t),settings:o.getSettings(t)},null,8,["controlKey","controls","control","block","source","settings"])],8,r7)}),128))],2)),[[pl,"style"!==i.activePanelTab]]):Qa("",!0),o.regularControlGroups?(Ta(),Ma("ul",o7,[(Ta(!0),Ma(Ca,null,Rr(o.regularControlGroups,function(u,d){return Xn((Ta(),Ma("li",{key:"".concat(d,"-").concat(r.refreshKey),class:te(o.controlGroupClasses(u,d)),"data-control-group":d},[qa("div",{class:"control-group-title",onClick:function(e){return o.toggleGroup(d)}},[o.controlGroupHasSettings(d)?(Ta(),La(l,{key:0,source:o.activeClass?"class":"id",clearable:!u.isParent,onResetSettings:function(e){return o.resetGroupSettings(d)}},null,8,["source","clearable","onResetSettings"])):o.controlGroupHasInheritedFrom(d)?(Ta(),Ma("span",{key:1,class:te(["inherited-from",{class:o.activeClass}]),title:e.i18n.hasInheritedSettings},Z9(t[3]||(t[3]=[qa("span",{class:"indicator"},null,-1)])),10,l7)):Qa("",!0),e.$_state.popup||"element"!==e.$_state.activePanel||!o.isSearchingControls&&"style"!==e.$_state.activePanelTab?Qa("",!0):(Ta(),La(a,{key:2,name:(null==u?void 0:u.icon)||"cursor",class:"icon"},null,8,["name"])),qa("span",{innerHTML:u.title},null,8,c7),null!=u&&u.badge?(Ta(),Ma("span",{key:3,innerHTML:u.badge},null,8,u7)):Qa("",!0),qa("div",d7,[n.disablePinnedControlGroups||u.isParent||"style"!==(null==u?void 0:u.tab)?Qa("",!0):(Ta(),La(a,{key:0,name:"pin",class:"pin-icon",title:e.i18n.pin,onClick:bc(function(e){return o.togglePinGroup(d)},["stop"])},null,8,["title","onClick"])),Xn(Ha(a,{name:"arrow-right",class:"arrow","data-balloon":d===i.activePanelGroup?e.i18n.collapse:null},null,8,["data-balloon"]),[[pl,!o.isSearchingControls]])])],8,s7),(Ta(!0),Ma(Ca,null,Rr(o.getGroupControls(d),function(e,t){return Ta(),Ma("div",{key:"".concat(t,"-").concat(i.activeId,"-").concat(r.refreshKey),"data-controlkey":t},[o.renderControl(e,t)?(Ta(),La(s,{key:0,controlKey:t,controls:o.controls,control:e,block:n.block,settings:o.getSettings(t),source:o.getSource(t)},null,8,["controlKey","controls","control","block","settings","source"])):Qa("",!0)],8,p7)}),128)),u.isParent||Object.keys(o.getGroupControls(d)).length?Qa("",!0):(Ta(),Ma("div",h7,[qa("div",f7,[Ha(c,{class:"info",style:{"margin-top":"10px"},control:{content:e.i18n.infoAccessRequired}},null,8,["control"])])]))],10,a7)),[[pl,o.showControlGroup(d,u)]])}),128))])):Qa("",!0)],4),!n.disablePinnedControlGroups&&Object.keys(o.pinnedControlGroups).length?(Ta(),Ma("div",{key:0,id:"bricks-pinned-section",style:Y({height:e.$_state.pinnedSectionHeight?"".concat(e.$_state.pinnedSectionHeight,"px"):null})},[qa("div",{id:"bricks-pinned-resizable",onMousedown:t[1]||(t[1]=function(){return o.startResizingPinned&&o.startResizingPinned.apply(o,arguments)}),onDblclick:t[2]||(t[2]=function(){return o.togglePinnedSectionHeight&&o.togglePinnedSectionHeight.apply(o,arguments)})},null,32),qa("div",{class:te(["pinned-groups-container",{resizing:r.resizingPinned}])},[(Ta(!0),Ma(Ca,null,Rr(o.pinnedControlGroups,function(c,u){return Ta(),Ma("div",{key:"pinned-".concat(u,"-").concat(r.refreshKey),class:"pinned-group","data-control-group":u},[qa("div",g7,[o.controlGroupHasSettings(u)?(Ta(),La(l,{key:0,source:o.activeClass?"class":"id",clearable:!0,onResetSettings:function(e){return o.resetGroupSettings(u)}},null,8,["source","onResetSettings"])):o.controlGroupHasInheritedFrom(u)?(Ta(),Ma("span",{key:1,class:te(["inherited-from",{class:o.activeClass}]),title:e.i18n.hasInheritedSettings},Z9(t[4]||(t[4]=[qa("span",{class:"indicator"},null,-1)])),10,v7)):Qa("",!0),Ha(a,{name:(null==c?void 0:c.icon)||"cursor",class:"icon"},null,8,["name"]),qa("span",{innerHTML:c.title},null,8,y7),null!=c&&c.badge?(Ta(),Ma("span",{key:2,innerHTML:c.badge},null,8,b7)):Qa("",!0),Ha(a,{name:"pin",class:"unpin strike-through",title:e.i18n.unpin,onClick:bc(function(e){return o.togglePinGroup(u)},["stop"])},null,8,["title","onClick"])]),qa("div",k7,[(Ta(!0),Ma(Ca,null,Rr(o.getGroupControls(u),function(e,t){return Ta(),Ma("div",{key:"".concat(t,"-").concat(i.activeId,"-").concat(r.refreshKey),"data-controlkey":t},[o.isDeprecated(e,t)?Qa("",!0):(Ta(),La(s,{key:0,controlKey:t,controls:o.controls,control:e,block:n.block,settings:o.getSettings(t),source:o.getSource(t)},null,8,["controlKey","controls","control","block","settings","source"]))],8,w7)}),128))])],8,m7)}),128))],2)],4)):Qa("",!0)],2)}]]);var D7=A7;var T7={emits:["closePopup"],props:{controlKey:{type:String,required:!1},show:{type:Boolean,required:!1,default:!1}},methods:{closePopup:function(e){if(this.show){var t=e.target.closest(".media-modal"),n=e.target.closest(".bricks-control-preview");t||n&&n.nextSibling===this.$el||this.$emit("closePopup")}}}};var I7=(0,xx.A)(T7,[["render",function(e,t,n,i,r,o){var a=Nr("clickaway");return Xn((Ta(),Ma("div",{class:te(["bricks-control-popup","bottom",{show:n.show}])},[qr(e.$slots,"default")],2)),[[pl,n.show],[a,o.closePopup]])}]]),O7={class:"control-visual","data-control":"flex-direction"};var P7={emits:["input"],props:{settings:{required:!1,default:function(){return{}}},value:{type:String,required:!1,default:""},placeholder:{type:String},control:{type:Object,required:!1,default:function(){return{}}}},data:function(){return{direction:"",reverse:""}},created:function(){this.value&&(this.value.includes("column")?this.direction="column":this.value.includes("row")&&(this.direction="row"),this.value.includes("-reverse")&&(this.reverse="-reverse"))},methods:{setDirection:function(e){this.value.includes(e)?(this.direction="",this.reverse=""):this.direction=e,this.$emit("input","".concat(this.direction).concat(this.reverse))},toggleReverse:function(){this.reverse=this.reverse?"":"-reverse",this.reverse&&!this.direction&&(this.direction=this.placeholder),this.$emit("input","".concat(this.direction).concat(this.reverse))}}};var F7=(0,xx.A)(P7,[["render",function(e,t,n,i,r,o){var a=$r("icon");return Ta(),Ma("div",O7,[Ha(a,{name:"controls/direction/column",class:te(["column",{active:"column"===r.direction},{computed:!n.value&&"column"===n.placeholder}]),onClick:t[0]||(t[0]=function(e){return o.setDirection("column")}),"data-balloon":"".concat(e.i18n.vertical," (column)")},null,8,["class","data-balloon"]),Ha(a,{name:"controls/direction/row",class:te(["row",{active:"row"===r.direction},{computed:!n.value&&"row"===n.placeholder}]),onClick:t[1]||(t[1]=function(e){return o.setDirection("row")}),"data-balloon":"".concat(e.i18n.horizontal," (row)")},null,8,["class","data-balloon"]),Ha(a,{name:"controls/direction/reverse",class:te(["reverse",{active:r.reverse}]),onClick:t[2]||(t[2]=function(e){return o.toggleReverse()}),"data-balloon":e.i18n.reverse},null,8,["class","data-balloon"])])}]]),$7={class:"control-visual","data-control":"align-items"};var M7={emits:["input"],props:{settings:{required:!1,default:function(){return{}}},value:{type:String,required:!1,default:""},placeholder:{type:String,required:!1},direction:{type:String,required:!1,default:"column"},control:{type:Object,required:!1,default:function(){return{}}},controlKey:{type:String}},computed:{isHorizontal:function(){return this.direction.includes("row")},items:function(){var e,t=this,n=[{value:"flex-start",tooltip:"start"},{value:"center",tooltip:"center"},{value:"flex-end",tooltip:"end"},{value:"stretch",tooltip:"stretch"}];return this.controlKey.startsWith("_alignItems")&&n.push({value:"baseline",tooltip:"baseline"}),n.push({value:"auto",tooltip:"auto"}),null!==(e=this.control)&&void 0!==e&&e.exclude?n.filter(function(e){return!t.control.exclude.includes(e.value)}):n}},methods:{getIconName:function(e){return"".concat(null==e?void 0:e.value).concat(this.isHorizontal?"-y":"")},setAlignment:function(e){this.$emit("input",e===this.value?"":e)}}};var L7=(0,xx.A)(M7,[["render",function(e,t,n,i,r,o){var a=$r("icon");return Ta(),Ma("div",$7,[(Ta(!0),Ma(Ca,null,Rr(o.items,function(t,i){return Ta(),La(a,{class:te([{active:n.value===t.value},o.isHorizontal?"horizontal":"vertical"]),name:"controls/align-items/".concat(o.getIconName(t)),onClick:function(e){return o.setAlignment(t.value)},"data-balloon":e.i18n[t.tooltip]},null,8,["class","name","onClick","data-balloon"])}),256))])}]]),N7={class:"control-visual","data-control":"justify-content"};var j7={emits:["input"],props:{settings:{required:!1,default:function(){return{}}},value:{type:String,required:!1,default:""},placeholder:{type:String,required:!1},direction:{type:String,required:!1,default:"column"},control:{type:Object,required:!1,default:function(){return{}}},controlKey:{type:String,required:!1}},computed:{isHorizontal:function(){return this.direction.includes("row")},items:function(){var e,t=this,n=[{value:"flex-start",tooltip:"start"},{value:"center",tooltip:"center"},{value:"flex-end",tooltip:"end"},{value:"space-between",tooltip:"spaceBetween"},{value:"space-around",tooltip:"spaceAround"},{value:"space-evenly",tooltip:"spaceEvenly"}];return null!==(e=this.control)&&void 0!==e&&e.exclude?n.filter(function(e){return-1===e.value.indexOf(t.control.exclude)}):n}},methods:{getIconName:function(e){return"".concat(null==e?void 0:e.value).concat(this.isHorizontal?"-y":"")},setAlignment:function(e){this.$emit("input",e===this.value?"":e)}}};var B7=(0,xx.A)(j7,[["render",function(e,t,n,i,r,o){var a=$r("icon");return Ta(),Ma("div",N7,[(Ta(!0),Ma(Ca,null,Rr(o.items,function(t,i){return Ta(),La(a,{class:te([{active:n.value===t.value},o.isHorizontal?"horizontal":"vertical"]),name:"controls/justify-content/".concat(o.getIconName(t)),onClick:function(e){return o.setAlignment(t.value)},"data-balloon":e.i18n[t.tooltip]},null,8,["class","name","onClick","data-balloon"])}),256))])}]]),R7={"data-control":"apply"},V7=["disabled"],q7=["innerHTML"];var H7={props:{control:{type:Object,required:!0}},data:function(){var e,t;return{label:(null===(e=this.control)||void 0===e?void 0:e.label)||this.i18n.apply,reload:null===(t=this.control)||void 0===t?void 0:t.reload}}};var z7=(0,xx.A)(H7,[["render",function(e,t,n,i,r,o){var a=$r("icon");return Ta(),Ma("div",R7,[qa("button",{class:"button",onClick:t[0]||(t[0]=function(t){return e.$_savePost({reload:r.reload})}),disabled:e.$_state.isSaving},[e.$_state.isSaving?(Ta(),La(a,{key:0,name:"refresh",class:"bricks-animation-load8"})):(Ta(),Ma("span",{key:1,innerHTML:r.label},null,8,q7))],8,V7)])}]]),U7={"data-control":"audio"},W7=["textContent"],G7={key:0,controls:"",ref:"player"},K7=["src","type"],Q7=["textContent"],Y7=["textContent"],J7=["textContent"];var X7={emits:["input"],props:{value:{required:!1},control:{type:Object,required:!0}},computed:{url:function(){return!!this.value&&this.value.url},mime:function(){return!!this.value&&this.value.mime},filename:function(){return!!this.value&&this.value.filename}},watch:{value:function(){var e=this;this.$nextTick(function(){e.value&&e.$refs.player.load()})}}};var Z7=(0,xx.A)(X7,[["render",function(e,t,n,i,r,o){return Ta(),Ma("div",U7,[qa("label",{textContent:he(o.filename?o.filename:e.i18n.noFileSelected),style:{"text-align":"center"}},null,8,W7),o.url?(Ta(),Ma("audio",G7,[qa("source",{src:o.url,type:o.mime},null,8,K7),qa("span",{textContent:he(e.i18n.html5AudioNoBrowserSupport)},null,8,Q7)],512)):Qa("",!0),o.url?(Ta(),Ma("button",{key:1,onClick:t[0]||(t[0]=function(t){return e.$emit("input","")}),textContent:he(e.i18n.removeFile)},null,8,Y7)):(Ta(),Ma("button",{key:2,onClick:t[1]||(t[1]=function(t){return e.$_openMediaLibrary("audio")}),textContent:he(e.i18n.selectFile)},null,8,J7))])}]]);function eee(e){return eee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},eee(e)}function tee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function nee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tee(Object(n),!0).forEach(function(t){iee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tee(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function iee(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=eee(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=eee(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==eee(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ree={"data-control":"background"},oee=["data-balloon"];var aee={emits:["input"],props:{value:{type:Object,required:!1,default:function(){return{}}},control:{type:Object,required:!0},controlKey:{type:String,required:!0}},data:function(){return{showPopup:!1,background:this.value||{}}},computed:{popup:function(){return!!this.$_isSearchingControls()||(!Object.hasOwn(this.control,"popup")||this.control.popup)},colorPreviewTooltip:function(){var e,t=null!==(e=this.value)&&void 0!==e&&e.color?this.$_clone(this.value.color):null;if(t)return null!=t&&t.raw?t.raw:null!=t&&t.rgb?t.rgb:null!=t&&t.hex?t.hex:void 0},controls:function(){var e=this,t=this.$_activeClass.value||this.$_state.pseudoClassActive||"desktop"!==this.$_state.breakpointActive,n=this.$_state.breakpoints.reduce(function(e,t){return e[t.key]=t.label,e},{}),i={color:{type:"color",label:this.i18n.backgroundColor,inline:!0},image:{type:"image",label:this.i18n.backgroundImage},blendMode:{type:"select",label:this.i18n.backgroundBlendMode,placeholder:this.i18n.normal,options:this.bricks.controlOptions.blendMode,required:[".image","!=",""]},attachment:{type:"select",label:this.i18n.backgroundAttachment,placeholder:this.i18n.scroll,options:this.bricks.controlOptions.backgroundAttachment,required:[".image","!=",""],description:this.i18n.descriptionParallax},position:{type:"select",label:this.i18n.backgroundPosition,placeholder:this.i18n.topLeft,options:this.bricks.controlOptions.backgroundPosition,required:[".image","!=",""]},positionX:{type:"number",units:!0,label:this.i18n.xAxis,required:[".position","=","custom"]},positionY:{type:"number",units:!0,label:this.i18n.yAxis,required:[".position","=","custom"]},repeat:{type:"select",label:this.i18n.backgroundRepeat,placeholder:"Repeat",options:this.bricks.controlOptions.backgroundRepeat,required:[".image","!=",""]},size:{type:"select",label:this.i18n.backgroundSize,placeholder:this.i18n.cover,options:this.bricks.controlOptions.backgroundSize,required:[".image","!=",""]},custom:{type:"text",label:this.i18n.backgroundCustomSize,required:[".size","=","custom"]},videoUrl:{type:"text",label:this.i18n.backgroundVideo,placeholder:"https://www.youtube.com/watch?v=rzfmZC3kg3M",description:this.i18n.backgroundVideoDescription,hasDynamicData:"text"},videoAspectRatio:{type:"text",label:this.i18n.aspectRatio,placeholder:"16:9",inline:!0,small:!0,hasDynamicData:!1,required:[".videoUrl","!=",""]},videoScale:{type:"number",label:this.i18n.scale,min:1,max:10,inline:!0,small:!0,placeholder:1,required:[".videoUrl","!=",""]},videoStartTime:{type:"number",label:"".concat(this.i18n.startTime," (s)"),min:0,inline:!0,small:!0,placeholder:0,required:[".videoUrl","!=",""]},videoEndTime:{type:"number",label:"".concat(this.i18n.endTime," (s)"),inline:!0,small:!0,required:[".videoUrl","!=",""]},videoPlayOnce:{type:"checkbox",label:this.i18n.playOnce,inline:!0,small:!0,required:[".videoUrl","!=",""]},videoShowAtBreakpoint:{type:"select",options:n,label:this.i18n.startPlayAt,inline:!0,small:!0,placeholder:this.i18n.anyBreakpoint,description:this.i18n.backgroundVideoStartAt,required:[".videoUrl","!=",""]},videoPoster:{type:"image",label:"".concat(this.i18n.backgroundVideoPoster," (").concat(this.i18n.fileUrl,")"),required:[".videoUrl","!=",""]},videoPosterYouTube:{type:"checkbox",label:this.i18n.backgroundVideoPosterYouTube,inline:!0,small:!0,required:[".videoUrl","!=",""]},videoPosterYouTubeSize:{type:"select",label:this.i18n.backgroundVideoPosterYouTubeSize,placeholder:this.i18n.backgroundVideoPosterYouTubeSizePlaceholder,options:this.bricks.controlOptions.backgroundVideoPosterYouTubeSize,required:[[".videoUrl","!=",""],[".videoPosterYouTube","=",!0]]}};return t&&Object.keys(i).forEach(function(e){i[e].hasOwnProperty("required")&&"image"===i[e].required[0]&&delete i[e].required}),Object.keys(i).forEach(function(t){var n;i[t].rerender=!1;var r=null===(n=e.control)||void 0===n?void 0:n.exclude;Array.isArray(r)?r.includes(t)&&delete i[t]:r&&t.startsWith(r)&&delete i[t]}),i},icon:function(){var e,t;return null!==(e=this.value)&&void 0!==e&&e.videoUrl?"video":null!==(t=this.value)&&void 0!==t&&t.image?"image":"color"},backgroundImageStyle:function(){var e,t=null===(e=this.value)||void 0===e||null===(e=e.image)||void 0===e?void 0:e.url;return t?"none"===String(t).trim().toLowerCase()?"":(t=String(t).split("").filter(function(e){var t=e.charCodeAt(0);return t>31&&127!==t}).join("").replace(/\\/g,"\\\\").replace(/"/g,'\\"'),t?'url("'.concat(t,'")'):""):""},style:function(){var e;if(this.backgroundImageStyle)return{backgroundImage:this.backgroundImageStyle};if(null!==(e=this.value)&&void 0!==e&&e.color){var t,n,i,r;if(null!==(t=this.value.color)&&void 0!==t&&t.raw)return{color:"".concat(this.value.color.raw," !important")};if(null!==(n=this.value.color)&&void 0!==n&&n.rgb)return{color:"".concat(this.value.color.rgb," !important")};if(null!==(i=this.value.color)&&void 0!==i&&i.hex)return{color:"".concat(this.value.color.hex," !important")};if(null!==(r=this.value.color)&&void 0!==r&&r.hsl)return{color:"".concat(this.value.color.hsl," !important")}}}},created:function(){Array.isArray(this.background)&&(this.background={})},watch:{background:{handler:function(e){Object.keys(e).length||(e=!1),this.$emit("input",e)},deep:!0}}};var see=(0,xx.A)(aee,[["render",function(e,t,n,i,r,o){var a,s,l=$r("icon"),c=$r("panel-control"),u=$r("panel-control-popup");return Ta(),Ma("div",ree,[o.popup?(Ta(),Ma("div",{key:0,class:te(["bricks-control-preview","background-control-preview",{empty:!r.background||!Object.keys(r.background).length,"has-color":null===(a=r.background)||void 0===a?void 0:a.color}]),onClick:t[0]||(t[0]=function(t){return e.$_controlPopupToggle()})},[qa("span",{class:"color-value-tooltip","data-balloon":o.colorPreviewTooltip,"data-balloon-pos":"top-right"},null,8,oee),Xn(qa("span",{class:te(["bricks-control-transparency-pattern",{"has-bg":null===(s=o.style)||void 0===s?void 0:s.backgroundImage}]),style:Y(o.style)},null,6),[[pl,o.style]]),Xn(Ha(l,{name:o.icon},null,8,["name"]),[[pl,!o.style]])],2)):Qa("",!0),o.popup&&r.showPopup&&!e.$_isLocked()?(Ta(),La(u,{key:1,show:r.showPopup,onClosePopup:t[1]||(t[1]=function(e){return r.showPopup=!1})},{default:Jn(function(){return[(Ta(!0),Ma(Ca,null,Rr(o.controls,function(e,t){return Ta(),La(c,{key:t,control:e,controlKey:t,parentKey:n.controlKey,settings:r.background},null,8,["control","controlKey","parentKey","settings"])}),128))]}),_:1},8,["show"])):o.popup?Qa("",!0):(Ta(!0),Ma(Ca,{key:2},Rr(o.controls,function(e,t){return Ta(),La(c,{key:t,control:nee(nee({},e),{},{parentHasCss:!0}),controlKey:t,parentKey:n.controlKey,settings:r.background},null,8,["control","controlKey","parentKey","settings"])}),128))])}]]);function lee(e){return lee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lee(e)}function cee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function uee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cee(Object(n),!0).forEach(function(t){dee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cee(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dee(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=lee(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=lee(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==lee(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pee={"data-control":"border"};var hee={emits:["input"],props:{value:{type:Object,required:!1},control:{type:Object,required:!0},controlKey:{type:String,required:!0},source:{type:String,required:!1}},data:function(){var e;return{showPopup:!1,border:this.value||{},exclude:(null===(e=this.control)||void 0===e?void 0:e.exclude)||[]}},computed:{controls:function(){var e={width:{type:"spacing",hasVariables:!0,switchUi:!1,ui:"variables-ui",label:this.i18n.width,min:0},style:{type:"select",label:this.i18n.style,options:this.bricks.controlOptions.borderStyle,inline:!0},color:{type:"color",label:this.i18n.color,inline:!0},radius:{type:"dimensions",hasVariables:!0,label:this.i18n.radius,labelDirection:{top:this.i18n.topLeft,right:this.i18n.topRight,bottom:this.i18n.bottomRight,left:this.i18n.bottomLeft},linkOpposites:!1,min:0}};return Object.keys(e).forEach(function(t){e[t].rerender=!1}),e}},watch:{border:{handler:function(e){Object.keys(e).length||(e=!1),this.$emit("input",e)},deep:!0}}};var fee=(0,xx.A)(hee,[["render",function(e,t,n,i,r,o){var a=$r("icon"),s=$r("panel-control"),l=$r("panel-control-popup");return Ta(),Ma("div",pee,[qa("div",{class:"bricks-control-preview",onClick:t[0]||(t[0]=function(t){return e.$_controlPopupToggle()})},[Ha(a,{name:"edit"})]),r.showPopup&&!e.$_isLocked()?(Ta(),La(l,{key:0,show:r.showPopup,onClosePopup:t[1]||(t[1]=function(e){return r.showPopup=!1})},{default:Jn(function(){return[(Ta(!0),Ma(Ca,null,Rr(o.controls,function(e,t){return Xn((Ta(),La(s,{key:t,control:uee(uee({},e),{},{parentHasCss:!0}),controlKey:t,parentKey:n.controlKey,parentType:"border",settings:r.border,source:n.source},null,8,["control","controlKey","parentKey","settings","source"])),[[pl,-1===r.exclude.indexOf(t)]])}),128))]}),_:1},8,["show"])):Qa("",!0)])}]]),mee={"data-control":"box-shadow"};var gee={emits:["input"],props:{value:{type:Object,required:!1},control:{type:Object,required:!0},controlKey:{type:String,required:!0}},data:function(){return{showPopup:!1,boxShadow:this.value?this.value:{},exclude:this.control.hasOwnProperty("exclude")?this.control.exclude:[]}},computed:{controls:function(){var e={values:{type:"dimensions",hasVariables:!0,label:this.i18n.boxShadow,directions:{offsetX:"X",offsetY:"Y",blur:this.i18n.blur,spread:this.i18n.spread},linkedIcon:!1,units:!1},color:{type:"color",label:this.i18n.color,inline:!0},inset:{type:"checkbox",label:this.i18n.inset}};return Object.keys(e).forEach(function(t){e[t].rerender=!1}),e}},watch:{boxShadow:{handler:function(e){Object.keys(e).length||(e=!1),this.$emit("input",e)},deep:!0}}};var vee=(0,xx.A)(gee,[["render",function(e,t,n,i,r,o){var a=$r("icon"),s=$r("panel-control"),l=$r("panel-control-popup");return Ta(),Ma("div",mee,[qa("div",{class:"bricks-control-preview",onClick:t[0]||(t[0]=function(t){return e.$_controlPopupToggle()})},[Ha(a,{name:"edit"})]),r.showPopup&&!e.$_isLocked()?(Ta(),La(l,{key:0,show:r.showPopup,onClosePopup:t[1]||(t[1]=function(e){return r.showPopup=!1})},{default:Jn(function(){return[(Ta(!0),Ma(Ca,null,Rr(o.controls,function(e,t){return Xn((Ta(),La(s,{key:t,control:e,controlKey:t,parentKey:n.controlKey,parentType:"box-shadow",settings:r.boxShadow},null,8,["control","controlKey","parentKey","settings"])),[[pl,-1===r.exclude.indexOf(t)]])}),128))]}),_:1},8,["show"])):Qa("",!0)])}]]),yee=["textContent"];var bee={props:{control:{type:Object,required:!0}},data:function(){var e;return{label:(null===(e=this.control)||void 0===e?void 0:e.label)||this.i18n.apply}},methods:{runCallback:function(){if(this.control.action){for(var e=this.$parent;e;){var t="".concat(this.control.action);if(e[t]&&"function"==typeof e[t])return void e[t]();e=e.$parent}this.$emit("action",this.control.action)}}}};const kee=(0,xx.A)(bee,[["render",function(e,t,n,i,r,o){return Ta(),Ma("button",{class:"button",onClick:t[0]||(t[0]=bc(function(){return o.runCallback&&o.runCallback.apply(o,arguments)},["stop"]))},[qa("span",{textContent:he(r.label)},null,8,yee)])}]]);var wee=kee,_ee={"data-control":"checkbox"},Cee=["id","name","readonly"];function xee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return See(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?See(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function See(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var Eee={emits:["update:value","input"],props:{value:{type:[String,Boolean]},control:{type:Object,required:!1,default:function(){return{}}},controlKey:{type:String,required:!1},instanceProperty:{type:Object,required:!1,default:function(){return{}}}},computed:{inverse:function(){var e,t;if(null!==(e=this.$_state.activeElement)&&void 0!==e&&e.cid&&!this.$_state.activeComponent)return!0===(null===(t=this.instanceProperty)||void 0===t?void 0:t.default)},checked:{get:function(){var e,t="_addedClasses"===this.controlKey;if(this.instanceProperty&&null!==(e=this.$_state.activeElement)&&void 0!==e&&e.cid){var n,i=i=Object.values((null===(n=this.instanceProperty)||void 0===n?void 0:n.connections)||{}).some(function(e){return e.includes("_addedClasses")});i&&(t=!0)}if(t){var r,o=null===(r=this.$_state.activeElement)||void 0===r?void 0:r.id;if(this.$_state.activeComponent&&this.$_state.componentNavigationStack.length>0){var a=this.$_state.componentNavigationStack.find(function(e){return e.componentId===o});a&&(o=(null==a?void 0:a.instanceId)||o)}return this.$_state._addedClasses.hasOwnProperty(o)}return this.inverse?!this.value:this.value},set:function(e){var t,n,i;if(null===(t=this.control)||void 0===t||!t.readonly){this.inverse&&(e=e?null:"off");var r="_addedClasses"===this.controlKey,o=(null===(n=this.control)||void 0===n?void 0:n.class)||"show";if(this.instanceProperty&&null!==(i=this.$_state.activeElement)&&void 0!==i&&i.cid){for(var a=null,s=0,l=Object.entries((null===(c=this.instanceProperty)||void 0===c?void 0:c.connections)||{});s<l.length;s++){var c,u=xee(l[s],2),d=u[0];if(u[1].includes("_addedClasses")){a=d,r=!0;break}}if(a){var p,h=this.$_getComponentElementById(a);if(h&&h.name)o=(null===(p=this.$_getElementConfig(h.name))||void 0===p||null===(p=p.controls)||void 0===p||null===(p=p._addedClasses)||void 0===p?void 0:p.class)||o}}if(r){var f,m=null===(f=this.$_state.activeElement)||void 0===f?void 0:f.id;if(this.$_state.activeComponent&&this.$_state.componentNavigationStack.length>0){var g=this.$_state.componentNavigationStack.find(function(e){return e.componentId===m});g&&(m=(null==g?void 0:g.instanceId)||m)}e?this.$_state._addedClasses[m]=o:delete this.$_state._addedClasses[m]}else this.$emit("update:value",e),this.$emit("input",e)}}}},created:function(){"true"===this.value?this.$emit("input",!0):"false"===this.value&&this.$emit("input",!1)},watch:{value:function(e){var t;"map"===(null===(t=this.$_state.activeElement)||void 0===t?void 0:t.name)&&("syncQuery"===this.controlKey&&e&&delete this.$_state.activeElement.settings.hasLoop,"hasLoop"!==this.controlKey||e||delete this.$_state.activeElement.settings.infoBoxTemplateId)}}};var Aee=(0,xx.A)(Eee,[["render",function(e,t,n,i,r,o){return Ta(),Ma("div",_ee,[Xn(qa("input",{type:"checkbox",id:n.controlKey,name:n.controlKey,"onUpdate:modelValue":t[0]||(t[0]=function(e){return o.checked=e}),readonly:n.control.readonly},null,8,Cee),[[sc,o.checked]])])}]]),Dee={key:0,class:"actions"},Tee=["data-balloon"],Iee=["textContent","placeholder"];var Oee=n(15237),Pee=n.n(Oee),Fee=(n(10202),n(55218),n(22819),n(4998)),$ee={insert:"head",singleton:!1},Mee=(D4()(Fee.A,$ee),Fee.A.locals,n(71275),n(16792),n(68656),n(98e3),n(71561),n(12089),n(65464),n(68217),n(39920),n(73514)),Lee=n.n(Mee),Nee=n(73041),jee=n(42761);const Bee={escape:92,throws:!1};function Ree(e){return e>47&&e<58}function Vee(e,t,n){return n=n||90,(e&=-33)>=(t=t||65)&&e<=n}function qee(e){return Ree(e)||Hee(e)}function Hee(e){return 95===e||Vee(e)}function zee(e){return 32===e||9===e||160===e}function Uee(e){return zee(e)||10===e||13===e}function Wee(e,t){t=Object.assign(Object.assign({},Bee),t);const n=e.pos,i=e.peek();if(e.eat(Gee)){for(;!e.eof();)switch(e.next()){case i:return e.start=n,!0;case t.escape:e.next()}if(e.pos=n,t.throws)throw e.error("Unable to consume quoted string")}return!1}function Gee(e){return 39===e||34===e}function Kee(e,t,n,i){i=Object.assign(Object.assign({},Bee),i);const r=e.pos;if(e.eat(t)){let o,a=1;for(;!e.eof();)if(!Wee(e,i))if(o=e.next(),o===t)a++;else if(o===n){if(a--,!a)return e.start=r,!0}else o===i.escape&&e.next();if(e.pos=r,i.throws)throw e.error(`Unable to find matching pair for ${String.fromCharCode(t)}`)}return!1}class Qee{constructor(e,t,n){null==n&&"string"==typeof e&&(n=e.length),this.string=e,this.pos=this.start=t||0,this.end=n||0}eof(){return this.pos>=this.end}limit(e,t){return new Qee(this.string,e,t)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos<this.string.length)return this.string.charCodeAt(this.pos++)}eat(e){const t=this.peek(),n="function"==typeof e?e(t):t===e;return n&&this.next(),n}eatWhile(e){const t=this.pos;for(;!this.eof()&&this.eat(e););return this.pos!==t}backUp(e){this.pos-=e||1}current(){return this.substring(this.start,this.pos)}substring(e,t){return this.string.slice(e,t)}error(e,t=this.pos){return new Yee(`${e} at ${t+1}`,t,this.string)}}class Yee extends Error{constructor(e,t,n){super(e),this.pos=t,this.string=n}}function Jee(e){return e.tokens[e.pos]}function Xee(e){return e.tokens[e.pos++]}function Zee(e,t=e.start,n=e.pos){return e.tokens.slice(t,n)}function ete(e){return e.pos<e.size}function tte(e,t){const n=Jee(e);return!(!n||!t(n))&&(e.pos++,!0)}function nte(e,t,n=Jee(e)){n&&null!=n.start&&(t+=` at ${n.start}`);const i=new Error(t);return i.pos=n&&n.start,i}function ite(e,t={}){const n={tokens:i=e,start:0,pos:0,size:i.length};var i;const r=rte(n,t);if(ete(n))throw nte(n,"Unexpected character");return r}function rte(e,t){const n={type:"TokenGroup",elements:[]};let i,r=n;const o=[];for(;ete(e)&&(i=ate(e,t)||ote(e,t));)if(r.elements.push(i),tte(e,Dte))o.push(r),r=i;else{if(tte(e,Tte))continue;if(tte(e,Ite))do{o.length&&(r=o.pop())}while(tte(e,Ite))}return n}function ote(e,t){if(tte(e,Ete)){const n=rte(e,t);return fte(Xee(e),"group",!1)&&(n.repeat=function(e){return bte(Jee(e))?e.tokens[e.pos++]:void 0}(e)),n}}function ate(e,t){let n;const i={type:"TokenElement",name:void 0,attributes:void 0,value:void 0,repeat:void 0,selfClose:!1,elements:[]};for(function(e,t){const n=e.pos;if(t.jsx&&tte(e,kte))for(;ete(e);){const{pos:t}=e;if(!tte(e,_te)||!tte(e,kte)){e.pos=t;break}}for(;ete(e)&&tte(e,wte););if(e.pos!==n)return e.start=n,!0;return!1}(e,t)&&(i.name=Zee(e));ete(e);)if(e.start=e.pos,i.repeat||Ate(i)||!tte(e,bte))if(!i.value&&pte(e))i.value=hte(e);else{if(!(n=lte(e,"id",t)||lte(e,"class",t)||ste(e))){!Ate(i)&&tte(e,Ote)&&(i.selfClose=!0,!i.repeat&&tte(e,bte)&&(i.repeat=e.tokens[e.pos-1]));break}i.attributes?i.attributes=i.attributes.concat(n):i.attributes=Array.isArray(n)?n.slice():[n]}else i.repeat=e.tokens[e.pos-1];return Ate(i)?void 0:i}function ste(e){if(tte(e,Cte)){const t=[];let n;for(;ete(e);)if(n=cte(e))t.push(n);else{if(tte(e,xte))break;if(!tte(e,vte))throw nte(e,`Unexpected "${Jee(e).type}" token`)}return t}}function lte(e,t,n){if(mte(Jee(e),t)){e.pos++;const r={name:[(i=t,{type:"Literal",value:i})]};return n.jsx&&pte(e)?(r.value=hte(e),r.expression=!0):r.value=dte(e)?Zee(e):void 0,r}var i}function cte(e){return ute(e)?{value:Zee(e)}:dte(e,!0)?{name:Zee(e),value:tte(e,yte)&&(ute(e)||dte(e,!0))?Zee(e):void 0}:void 0}function ute(e){const t=e.pos,n=Jee(e);if(gte(n)){for(e.pos++;ete(e);)if(gte(Xee(e),n.single))return e.start=t,!0;throw nte(e,"Unclosed quote",n)}return!1}function dte(e,t){const n=e.pos,i={attribute:0,expression:0,group:0};for(;ete(e);){const n=Jee(e);if(i.expression)fte(n,"expression")&&(i[n.context]+=n.open?1:-1);else{if(gte(n)||mte(n)||vte(n)||bte(n))break;if(fte(n)){if(!t)break;if(n.open)i[n.context]++;else{if(!i[n.context])break;i[n.context]--}}}e.pos++}return n!==e.pos&&(e.start=n,!0)}function pte(e){const t=e.pos;if(tte(e,Ste)){let n=0;for(;ete(e);){const t=Xee(e);if(fte(t,"expression"))if(t.open)n++;else{if(!n)break;n--}}return e.start=t,!0}return!1}function hte(e){let t=e.start,n=e.pos;return fte(e.tokens[t],"expression",!0)&&t++,fte(e.tokens[n-1],"expression",!1)&&n--,Zee(e,t,n)}function fte(e,t,n){return Boolean(e&&"Bracket"===e.type&&(!t||e.context===t)&&(null==n||e.open===n))}function mte(e,t){return Boolean(e&&"Operator"===e.type&&(!t||e.operator===t))}function gte(e,t){return Boolean(e&&"Quote"===e.type&&(null==t||e.single===t))}function vte(e){return Boolean(e&&"WhiteSpace"===e.type)}function yte(e){return mte(e,"equal")}function bte(e){return Boolean(e&&"Repeater"===e.type)}function kte(e){if(function(e){return"Literal"===e.type}(e)){const t=e.value.charCodeAt(0);return t>=65&&t<=90}return!1}function wte(e){return"Literal"===e.type||"RepeaterNumber"===e.type||"RepeaterPlaceholder"===e.type}function _te(e){return mte(e,"class")}function Cte(e){return fte(e,"attribute",!0)}function xte(e){return fte(e,"attribute",!1)}function Ste(e){return fte(e,"expression",!0)}function Ete(e){return fte(e,"group",!0)}function Ate(e){return!e.name&&!e.value&&!e.attributes}function Dte(e){return mte(e,"child")}function Tte(e){return mte(e,"sibling")}function Ite(e){return mte(e,"climb")}function Ote(e){return mte(e,"close")}function Pte(e){return!!e.eat(92)&&(e.start=e.pos,e.eof()||e.pos++,!0)}function Fte(e){const t=new Qee(e),n=[],i={group:0,attribute:0,expression:0,quote:0};let r,o=0;for(;!t.eof();){if(o=t.peek(),r=$te(t,i),!r)throw t.error("Unexpected character");n.push(r),"Quote"===r.type?i.quote=o===i.quote?0:o:"Bracket"===r.type&&(i[r.context]+=r.open?1:-1)}return n}function $te(e,t){return function(e,t){const n=e.pos;if((t.expression||t.attribute)&&e.eat(36)&&e.eat(123)){let t;e.start=e.pos;let i="";if(e.eatWhile(Ree)?(t=Number(e.current()),i=e.eat(58)?Mte(e):""):Vee(e.peek())&&(i=Mte(e)),e.eat(125))return{type:"Field",index:t,name:i,start:n,end:e.pos};throw e.error("Expecting }")}e.pos=n}(e,t)||function(e){const t=e.pos;if(e.eat(36)&&e.eat(35))return{type:"RepeaterPlaceholder",value:void 0,start:t,end:e.pos};e.pos=t}(e)||function(e){const t=e.pos;if(e.eatWhile(36)){const n=e.pos-t;let i=!1,r=1,o=0;if(e.eat(64)){for(;e.eat(94);)o++;i=e.eat(45),e.start=e.pos,e.eatWhile(Ree)&&(r=Number(e.current()))}return e.start=t,{type:"RepeaterNumber",size:n,reverse:i,base:r,parent:o,start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eat(42)){e.start=e.pos;let n=1,i=!1;return e.eatWhile(Ree)?n=Number(e.current()):i=!0,{type:"Repeater",count:n,value:0,implicit:i,start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eatWhile(Uee))return{type:"WhiteSpace",start:t,end:e.pos,value:e.substring(t,e.pos)}}(e)||function(e,t){const n=e.pos;let i="";for(;!e.eof();){if(Pte(e)){i+=e.current();continue}const n=e.peek();if(n===t.quote||36===n||Lte(n,t))break;if(t.expression&&125===n)break;if(!t.quote&&!t.expression){if(!t.attribute&&!qte(n))break;if(Nte(n,t)||jte(n,t)||Gee(n)||Bte(n))break}i+=e.string[e.pos++]}if(n!==e.pos)return e.start=n,{type:"Literal",value:i,start:n,end:e.pos}}(e,t)||function(e){const t=Rte(e.peek());if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}(e)||function(e){const t=e.peek();if(Gee(t))return{type:"Quote",single:39===t,start:e.pos++,end:e.pos}}(e)||function(e){const t=e.peek(),n=Bte(t);if(n)return{type:"Bracket",open:Vte(t),context:n,start:e.pos++,end:e.pos}}(e)}function Mte(e){const t=[];for(e.start=e.pos;!e.eof();)if(e.eat(123))t.push(e.pos);else if(e.eat(125)){if(!t.length){e.pos--;break}t.pop()}else e.pos++;if(t.length)throw e.pos=t.pop(),e.error("Expecting }");return e.current()}function Lte(e,t){const n=Rte(e);return!(!n||t.quote||t.expression)&&(!t.attribute||"equal"===n)}function Nte(e,t){return Uee(e)&&!t.expression}function jte(e,t){return 42===e&&!t.attribute&&!t.expression}function Bte(e){return 40===e||41===e?"group":91===e||93===e?"attribute":123===e||125===e?"expression":void 0}function Rte(e){return(62===e?"child":43===e&&"sibling")||94===e&&"climb"||46===e&&"class"||35===e&&"id"||47===e&&"close"||61===e&&"equal"||void 0}function Vte(e){return 123===e||91===e||40===e}function qte(e){return qee(e)||45===e||58===e||33===e}const Hte={child:">",class:".",climb:"^",id:"#",equal:"=",close:"/",sibling:"+"},zte={Literal(e){return e.value},Quote(e){return e.single?"'":'"'},Bracket(e){return"attribute"===e.context?e.open?"[":"]":"expression"===e.context?e.open?"{":"}":e.open?"(":"}"},Operator(e){return Hte[e.operator]},Field(e,t){return null!=e.index?e.name?`\${${e.index}:${e.name}}`:`\${${e.index}`:e.name?t.getVariable(e.name):""},RepeaterPlaceholder(e,t){let n;for(let e=t.repeaters.length-1;e>=0;e--)if(t.repeaters[e].implicit){n=t.repeaters[e];break}return t.inserted=!0,t.getText(n&&n.value)},RepeaterNumber(e,t){let n=1;const i=t.repeaters.length-1,r=t.repeaters[i];if(r&&(n=e.reverse?e.base+r.count-r.value-1:e.base+r.value,e.parent)){const o=Math.max(0,i-e.parent);if(o!==i){const e=t.repeaters[o];n+=r.count*e.value}}let o=String(n);for(;o.length<e.size;)o="0"+o;return o},WhiteSpace(e){return e.value}};function Ute(e,t){if(!zte[e.type])throw new Error(`Unknown token ${e.type}`);return zte[e.type](e,t)}const Wte=/^((https?:|ftp:|file:)?\/\/|(www|ftp)\.)[^ ]*$/,Gte=/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,5}$/;function Kte(e,t={}){let n,i=!1;t.text&&(n=Array.isArray(t.text)?t.text.filter(e=>e.trim()):t.text);const r={type:"Abbreviation",children:Jte(e,{inserted:!1,repeaters:[],text:t.text,cleanText:n,repeatGuard:t.maxRepeat||Number.POSITIVE_INFINITY,getText(e){var r;let o;if(i=!0,Array.isArray(t.text)){if(void 0!==e&&e>=0&&e<n.length)return n[e];o=void 0!==e?t.text[e]:t.text.join("\n")}else o=null!==(r=t.text)&&void 0!==r?r:"";return o},getVariable(e){const n=t.variables&&t.variables[e];return null!=n?n:e}})};if(null!=t.text&&!i){const e=rne(ine(r.children));if(e){const n=Array.isArray(t.text)?t.text.join("\n"):t.text;one(e,n),"a"===e.name&&t.href&&function(e,t){var n;let i="";Wte.test(t)?(i=t,/\w+:/.test(i)||i.startsWith("//")||(i=`http://${i}`)):Gte.test(t)&&(i=`mailto:${t}`);const r=null===(n=e.attributes)||void 0===n?void 0:n.find(e=>"href"===e.name);r?r.value||(r.value=[i]):e.attributes=[{name:"href",value:[i],valueType:"doubleQuote"}]}(e,n)}}return r}function Qte(e,t){let n=[];if(e.repeat){const i=e.repeat,r=Object.assign({},i);let o;r.count=r.implicit&&Array.isArray(t.text)?t.cleanText.length:r.count||1,t.repeaters.push(r);for(let i=0;i<r.count;i++){if(r.value=i,e.repeat=r,o=tne(e)?Jte(e,t):Yte(e,t),r.implicit&&!t.inserted){const e=ine(o),n=e&&rne(e);n&&one(n,t.getText(r.value))}if(n=n.concat(o),--t.repeatGuard<=0)break}t.repeaters.pop(),e.repeat=i,r.implicit&&(t.inserted=!0)}else n=n.concat(tne(e)?Jte(e,t):Yte(e,t));return n}function Yte(e,t){let n=[];const i={type:"AbbreviationNode",name:e.name&&Zte(e.name,t),value:e.value&&ene(e.value,t),attributes:void 0,children:n,repeat:e.repeat&&Object.assign({},e.repeat),selfClosing:e.selfClose};let r=[i];for(const i of e.elements)n=n.concat(Qte(i,t));if(e.attributes){i.attributes=[];for(const n of e.attributes)i.attributes.push(Xte(n,t))}return i.name||i.attributes||!i.value||i.value.some(nne)?i.children=n:r=r.concat(n),r}function Jte(e,t){let n=[];for(const i of e.elements)n=n.concat(Qte(i,t));return e.repeat&&(n=function(e,t){for(const n of e)n.repeat||(n.repeat=Object.assign({},t));return e}(n,e.repeat)),n}function Xte(e,t){let n,i=!1,r=!1,o=e.expression?"expression":"raw";const a=e.name&&Zte(e.name,t);if(a&&"!"===a[0]&&(i=!0),a&&"."===a[a.length-1]&&(r=!0),e.value){const i=e.value.slice();if(gte(i[0])){const e=i.shift();i.length&&ine(i).type===e.type&&i.pop(),o=e.single?"singleQuote":"doubleQuote"}else fte(i[0],"expression",!0)&&(o="expression",i.shift(),fte(ine(i),"expression",!1)&&i.pop());n=ene(i,t)}return{name:r||i?a.slice(i?1:0,r?-1:void 0):a,value:n,boolean:r,implied:i,valueType:o}}function Zte(e,t){let n="";for(let i=0;i<e.length;i++)n+=Ute(e[i],t);return n}function ene(e,t){const n=[];let i="";for(let r,o=0;o<e.length;o++)r=e[o],nne(r)?(i&&(n.push(i),i=""),n.push(r)):i+=Ute(r,t);return i&&n.push(i),n}function tne(e){return"TokenGroup"===e.type}function nne(e){return"object"==typeof e&&"Field"===e.type&&null!=e.index}function ine(e){return e[e.length-1]}function rne(e){return e.children.length?rne(ine(e.children)):e}function one(e,t){if(e.value){"string"==typeof ine(e.value)?e.value[e.value.length-1]+=t:e.value.push(t)}else e.value=[t]}function ane(e,t){try{return Kte(ite("string"==typeof e?Fte(e):e,t),t)}catch(t){throw t instanceof Yee&&"string"==typeof e&&(t.message+=`\n${e}\n${"-".repeat(t.pos)}^`),t}}function sne(e,t){let n,i=0;const r=new Qee(e),o=[];for(;!r.eof();){if(n=lne(r,0===i&&!t),!n)throw r.error("Unexpected character");if("Bracket"===n.type&&(!i&&n.open&&yne(r,o),i+=n.open?1:-1,i<0))throw r.error("Unexpected bracket",n.start);o.push(n),vne(n)&&(n=pne(r))&&o.push(n)}return o}function lne(e,t){return function(e){const t=e.pos;if(e.eat(36)&&e.eat(123)){let n;e.start=e.pos;let i="";if(e.eatWhile(Ree)?(n=Number(e.current()),i=e.eat(58)?cne(e):""):Vee(e.peek())&&(i=cne(e)),e.eat(125))return{type:"Field",index:n,name:i,start:t,end:e.pos};throw e.error("Expecting }")}e.pos=t}(e)||function(e){const t=e.pos;if(function(e){const t=e.pos;e.eat(45);const n=e.pos,i=e.eatWhile(Ree),r=e.pos;if(e.eat(46)){const t=e.eatWhile(Ree);i||t||(e.pos=r)}e.pos===n&&(e.pos=t);return e.pos!==t}(e)){e.start=t;const n=e.current();return e.start=e.pos,e.eat(37)||e.eatWhile(Hee),{type:"NumberValue",value:Number(n),rawValue:n,unit:e.current(),start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eat(35)){const n=e.pos;let i="",r="";if(e.eatWhile(fne)?(i=e.substring(n,e.pos),r=dne(e)):e.eat(116)?(i="0",r=dne(e)||"0"):r=dne(e),i||r||e.eof()){const{r:n,g:o,b:a,a:s}=function(e,t){let n="0",i="0",r="0",o=Number(null!=t&&""!==t?t:1);if("t"===e)o=0;else switch(e.length){case 0:break;case 1:n=i=r=e+e;break;case 2:n=i=r=e;break;case 3:n=e[0]+e[0],i=e[1]+e[1],r=e[2]+e[2];break;default:n=(e+=e).slice(0,2),i=e.slice(2,4),r=e.slice(4,6)}return{r:parseInt(n,16),g:parseInt(i,16),b:parseInt(r,16),a:o}}(i,r);return{type:"ColorValue",r:n,g:o,b:a,a:s,raw:e.substring(t+1,e.pos),start:t,end:e.pos}}return une(e,t)}e.pos=t}(e)||function(e){const t=e.peek(),n=e.pos;let i=!1;if(Gee(t)){for(e.pos++;!e.eof();){if(e.eat(t)){i=!0;break}e.pos++}return e.start=n,{type:"StringValue",value:e.substring(n+1,e.pos-(i?1:0)),quote:39===t?"single":"double",start:n,end:e.pos}}}(e)||function(e){const t=e.peek();if(function(e){return 40===e||41===e}(t))return{type:"Bracket",open:40===t,start:e.pos++,end:e.pos}}(e)||pne(e)||function(e){const t=e.pos;if(e.eatWhile(Uee))return{type:"WhiteSpace",start:t,end:e.pos}}(e)||function(e,t){const n=e.pos;e.eat(hne)?e.eatWhile(n?mne:gne):e.eat(Hee)?e.eatWhile(t?gne:mne):(e.eat(46),e.eatWhile(gne));if(n!==e.pos)return e.start=n,une(e,e.start=n)}(e,t)}function cne(e){const t=[];for(e.start=e.pos;!e.eof();)if(e.eat(123))t.push(e.pos);else if(e.eat(125)){if(!t.length){e.pos--;break}t.pop()}else e.pos++;if(t.length)throw e.pos=t.pop(),e.error("Expecting }");return e.current()}function une(e,t=e.start,n=e.pos){return{type:"Literal",value:e.substring(t,n),start:t,end:n}}function dne(e){const t=e.pos;return e.eat(46)?(e.start=t,e.eatWhile(Ree)?e.current():"1"):""}function pne(e){const t=(43===(n=e.peek())?"+":33===n&&"!")||44===n&&","||58===n&&":"||45===n&&"-"||void 0;var n;if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}function hne(e){return 64===e||36===e}function fne(e){return Ree(e)||Vee(e,65,70)}function mne(e){return qee(e)||45===e}function gne(e){return Hee(e)||37===e||47===e}function vne(e){return"ColorValue"===e.type||"NumberValue"===e.type&&!e.unit}function yne(e,t){let n=0,i=0;for(;t.length;){const e=bne(t);if("Literal"!==e.type&&"NumberValue"!==e.type)break;n=e.start,i||(i=e.end),t.pop()}n!==i&&t.push(une(e,n,i))}function bne(e){return e[e.length-1]}function kne(e){return e.tokens[e.pos]}function wne(e){return e.pos<e.size}function _ne(e,t){return!!t(kne(e))&&(e.pos++,!0)}function Cne(e,t,n=kne(e)){n&&null!=n.start&&(t+=` at ${n.start}`);const i=new Error(t);return i.pos=n&&n.start,i}function xne(e,t={}){const n=function(e){return{tokens:e,start:0,pos:0,size:e.length}}(e),i=[];let r;for(;wne(n);)if(r=Sne(n,t))i.push(r);else if(!_ne(n,$ne))throw Cne(n,"Unexpected token");return i}function Sne(e,t){let n,i,r=!1;const o=[],a=kne(e),s=!!t.value;for(s||!Dne(a)||function(e){const t=e.tokens[e.pos],n=e.tokens[e.pos+1];return t&&n&&Dne(t)&&"Bracket"===n.type}(e)||(e.pos++,n=a.value,_ne(e,Bne)),s&&_ne(e,Pne);wne(e);)if(_ne(e,Nne))r=!0;else if(i=Ene(e,s))o.push(i);else if(!_ne(e,Lne))break;if(n||o.length||r)return{name:n,value:o,important:r}}function Ene(e,t){const n=[];let i,r;for(;wne(e);)if(i=kne(e),jne(i))e.pos++,Dne(i)&&(r=Ane(e))?n.push({type:"FunctionCall",name:i.value,arguments:r}):n.push(i);else{if(!(Bne(i)||t&&Pne(i)))break;e.pos++}return n.length?{type:"CSSValue",value:n}:void 0}function Ane(e){const t=e.pos;if(_ne(e,Ine)){const n=[];let i;for(;wne(e)&&!_ne(e,One);)if(i=Ene(e,!0))n.push(i);else if(!_ne(e,Pne)&&!_ne(e,Mne))throw Cne(e,"Unexpected token");return e.start=t,n}}function Dne(e){return e&&"Literal"===e.type}function Tne(e,t){return e&&"Bracket"===e.type&&(null==t||e.open===t)}function Ine(e){return Tne(e,!0)}function One(e){return Tne(e,!1)}function Pne(e){return e&&"WhiteSpace"===e.type}function Fne(e,t){return e&&"Operator"===e.type&&(!t||e.operator===t)}function $ne(e){return Fne(e,"+")}function Mne(e){return Fne(e,",")}function Lne(e){return Mne(e)}function Nne(e){return Fne(e,"!")}function jne(e){return"StringValue"===e.type||"ColorValue"===e.type||"NumberValue"===e.type||"Literal"===e.type||"Field"===e.type}function Bne(e){return Fne(e,":")||Fne(e,"-")}function Rne(e,t){try{return xne("string"==typeof e?sne(e,t&&t.value):e,t)}catch(t){throw t instanceof Yee&&"string"==typeof e&&(t.message+=`\n${e}\n${"-".repeat(t.pos)}^`),t}}const Vne={mark:!0,preview:!0,autoRenameTags:!0,markTagPairs:!0,previewOpenTag:!1,attributeQuotes:"double",markupStyle:"html",comments:!1,commentsTemplate:"\x3c!-- /[#ID][.CLASS] --\x3e",bem:!1};function qne(e,t){return t||(t=e.getOption("emmet")),Object.assign(Object.assign({},Vne),t)}const Hne={escape:92,throws:!1};function zne(e){return e>47&&e<58}function Une(e,t,n){return n=n||90,(e&=-33)>=(t=t||65)&&e<=n}function Wne(e){return zne(e)||Gne(e)}function Gne(e){return 95===e||Une(e)}function Kne(e){return function(e){return 32===e||9===e||160===e}(e)||10===e||13===e}function Qne(e,t){t=Object.assign(Object.assign({},Hne),t);const n=e.pos,i=e.peek();if(e.eat(Yne)){for(;!e.eof();)switch(e.next()){case i:return e.start=n,!0;case t.escape:e.next()}if(e.pos=n,t.throws)throw e.error("Unable to consume quoted string")}return!1}function Yne(e){return 39===e||34===e}function Jne(e,t,n,i){i=Object.assign(Object.assign({},Hne),i);const r=e.pos;if(e.eat(t)){let o,a=1;for(;!e.eof();)if(!Qne(e,i))if(o=e.next(),o===t)a++;else if(o===n){if(a--,!a)return e.start=r,!0}else o===i.escape&&e.next();if(e.pos=r,i.throws)throw e.error(`Unable to find matching pair for ${String.fromCharCode(t)}`)}return!1}class Xne{constructor(e,t,n){null==n&&"string"==typeof e&&(n=e.length),this.string=e,this.pos=this.start=t||0,this.end=n||0}eof(){return this.pos>=this.end}limit(e,t){return new Xne(this.string,e,t)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos<this.string.length)return this.string.charCodeAt(this.pos++)}eat(e){const t=this.peek(),n="function"==typeof e?e(t):t===e;return n&&this.next(),n}eatWhile(e){const t=this.pos;for(;!this.eof()&&this.eat(e););return this.pos!==t}backUp(e){this.pos-=e||1}current(){return this.substring(this.start,this.pos)}substring(e,t){return this.string.slice(e,t)}error(e,t=this.pos){return new Zne(`${e} at ${t+1}`,t,this.string)}}class Zne extends Error{constructor(e,t,n){super(e),this.pos=t,this.string=n}}const eie={xml:!1,allTokens:!1,special:{style:null,script:["","text/javascript","application/x-javascript","javascript","typescript","ts","coffee","coffeescript"]},empty:["img","meta","link","br","base","hr","area","wbr","col","embed","input","param","source","track"]},tie={throws:!1};function nie(e={}){return Object.assign(Object.assign({},eie),e)}function iie(e){return e.split("").map(e=>e.charCodeAt(0))}function rie(e,t){const n=e.pos;for(let i=0;i<t.length;i++)if(!e.eat(t[i]))return e.pos=n,!1;return e.start=n,!0}function oie(e,t,n,i){const r=e.pos;if(rie(e,t)){for(;!e.eof();){if(rie(e,n))return e.start=r,!0;e.pos++}return i?(e.start=r,!0):(e.pos=r,!1)}return e.pos=r,!1}function aie(e){return Une(e)||58===e||95===e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191}function sie(e){return aie(e)||45===e||46===e||zne(e)||183===e||e>=768&&e<=879}function lie(e){const t=e.pos;return!!e.eat(aie)&&(e.eatWhile(sie),e.start=t,!0)}function cie(e){return 62===e||47===e}function uie(e){return!(isNaN(e)||Yne(e)||Kne(e)||cie(e))}function die(e){return Jne(e,60,62,tie)||Jne(e,40,41,tie)||Jne(e,91,93,tie)||Jne(e,123,125,tie)}function pie(e){return Yne(e.charCodeAt(0))&&(e=e.slice(1)),Yne(e.charCodeAt(e.length-1))&&(e=e.slice(0,-1)),e}function hie(e,t){const n=[];let i=0,r=e.length;t&&(i=t.length+1,r-="/>"===e.slice(-2)?2:1);const o=new Xne(e,i,r);for(;!o.eof();)if(o.eatWhile(Kne),fie(o)){const e={name:o.current(),nameStart:o.start,nameEnd:o.pos};o.eat(61)&&mie(o)&&(e.value=o.current(),e.valueStart=o.start,e.valueEnd=o.pos),n.push(e)}else o.pos++;return n}function fie(e){const t=e.pos;return e.eat(42)||e.eat(35)?(lie(e),e.start=t,!0):die(e)||lie(e)}function mie(e){return Qne(e,tie)||die(e)||function(e){const t=e.pos;if(e.eatWhile(uie))return e.start=t,!0}(e)}const gie=iie("<![CDATA["),vie=iie("]]>"),yie=iie("\x3c!--"),bie=iie("--\x3e"),kie=iie("<?"),wie=iie("?>"),_ie=iie("<%"),Cie=iie("%>");function xie(e,t,n){const i=new Xne(e),r=n?n.special:null,o=!!n&&n.allTokens;let a,s,l,c,u,d=!1,p=null;for(;!i.eof();){const n=i.pos;if(Aie(i)){if(o&&!1===t("#cdata",4,i.start,i.pos))break}else if(Die(i)){if(o&&!1===t("#comment",6,i.start,i.pos))break}else if(Iie(i)){if(o&&!1===t("#erb",7,i.start,i.pos))break}else if(p=Tie(i)){if(o&&!1===t(p,5,i.start,i.pos))break}else if(i.eat(60)){if(a=i.eat(47)?2:1,l=i.pos,lie(i)&&(c=i.pos,2!==a&&(Sie(i),i.eatWhile(Kne),i.eat(47)&&(a=3)),i.eat(62))){if(s=i.substring(l,c),!1===t(s,a,n,i.pos))break;if(1===a&&r&&Oie(r,s,e,n,i.pos)){for(u=iie(s),d=!1;!i.eof();){if(Eie(i,u)){d=!0;break}i.pos++}if(d&&!1===t(s,2,i.start,i.pos))break}}}else i.pos++}}function Sie(e){for(;!e.eof();)if(e.eatWhile(Kne),fie(e))e.eat(61)&&mie(e);else{if(cie(e.peek()))break;e.pos++}}function Eie(e,t){const n=e.pos;return e.eat(60)&&e.eat(47)&&rie(e,t)&&e.eat(62)?(e.start=n,!0):(e.pos=n,!1)}function Aie(e){return oie(e,gie,vie,!0)}function Die(e){return oie(e,yie,bie,!0)}function Tie(e){const t=e.pos;if(rie(e,kie)&&lie(e)){const n=e.current();for(;!e.eof()&&!rie(e,wie);)Qne(e)||e.pos++;return e.start=t,n}return e.pos=t,null}function Iie(e){const t=e.pos;if(rie(e,_ie)){for(;!e.eof()&&!rie(e,Cie);)Qne(e)||e.pos++;return e.start=t,!0}return e.pos=t,!1}function Oie(e,t,n,i,r){if(t in e){const o=e[t];if(!Array.isArray(o))return!0;const a=hie(n.substring(i+t.length+1,r-1));return o.includes(function(e,t){for(let n=0;n<e.length;n++){const i=e[n];if(i.name===t)return i.value&&pie(i.value)}}(a,"type")||"")}return!1}function Pie(e,t){const n=new Xne(e),i={start:-1,end:-1,propertyStart:-1,propertyEnd:-1,propertyDelimiter:-1,expression:0};let r;const o=(e,r=n.start,o=i.start,a=i.end)=>!1===t(e,o,a,r);for(;!n.eof();)if(!$ie(n)&&!Fie(n))if(n.start=n.pos,(r=n.eat(125))||n.eat(59)){if(-1!==i.propertyStart){if(o("propertyName",i.propertyDelimiter,i.propertyStart,i.propertyEnd))return;if(-1===i.start&&(i.start=i.end=n.start),o("propertyValue"))return}else if(-1!==i.start&&o("propertyName"))return;if(r&&(i.start=n.start,i.end=n.pos,o("blockEnd")))return;Lie(i)}else if(n.eat(123)){if(-1===i.start&&-1===i.propertyStart&&(i.start=i.end=n.pos),-1!==i.propertyStart&&(i.start=i.propertyStart),o("selector"))return;Lie(i)}else n.eat(58)&&!Nie(n,i)?(-1===i.propertyStart&&(i.propertyStart=i.start),i.propertyEnd=i.end,i.propertyDelimiter=n.pos-1,i.start=i.end=-1):(-1===i.start&&(i.start=n.pos),n.eat(40)?i.expression++:n.eat(41)?i.expression--:Mie(n)||n.pos++,i.end=n.pos);-1!==i.propertyStart&&o("propertyName",i.propertyDelimiter,i.propertyStart,i.propertyEnd)||-1!==i.start&&o(-1!==i.propertyStart?"propertyValue":"propertyName",-1)}function Fie(e){return e.eatWhile(Kne)}function $ie(e){const t=e.pos;if(e.eat(47)&&e.eat(42)){for(e.start=t;!e.eof();)if(e.eat(42)){if(e.eat(47))return!0}else e.pos++;return!0}return e.pos=t,!1}function Mie(e){const t=e.peek();if(Yne(t)){for(e.start=e.pos++;!e.eof()&&!(e.eat(t)||e.eat(10)||e.eat(13));)e.eat(92),e.pos++;return!0}}function Lie(e){e.start=e.end=e.propertyStart=e.propertyEnd=e.propertyDelimiter=-1}function Nie(e,t){return t.expression||e.eatWhile(58)}const jie=[43,47,42,44];function Bie(e,t=0){let n=-1,i=0,r=0;const o=[],a=new Xne(e);for(;!a.eof();)r=a.pos,a.eat(Kne)||a.eat(Rie)||Vie(a)?(i||-1===n||(o.push([t+n,t+r]),n=-1),a.eatWhile(Kne)):(-1===n&&(n=a.pos),a.eat(40)?i++:a.eat(41)?i--:Mie(a)||a.pos++);return-1!==n&&n!==a.pos&&o.push([t+n,t+a.pos]),o}function Rie(e){return jie.includes(e)}function Vie(e){const t=e.pos;return!(!e.eat(45)||!e.eat(Kne))||(e.pos=t,!1)}function qie(e){return e.tokens[e.pos]}function Hie(e){return e.tokens[e.pos++]}function zie(e,t=e.start,n=e.pos){return e.tokens.slice(t,n)}function Uie(e){return e.pos<e.size}function Wie(e,t){const n=qie(e);return!(!n||!t(n))&&(e.pos++,!0)}function Gie(e,t,n=qie(e)){n&&null!=n.start&&(t+=` at ${n.start}`);const i=new Error(t);return i.pos=n&&n.start,i}function Kie(e,t){const n={type:"TokenGroup",elements:[]};let i,r=n;const o=[];for(;Uie(e)&&(i=Yie(e,t)||Qie(e,t));)if(r.elements.push(i),Wie(e,yre))o.push(r),r=i;else{if(Wie(e,bre))continue;if(Wie(e,kre))do{o.length&&(r=o.pop())}while(Wie(e,kre))}return n}function Qie(e,t){if(Wie(e,gre)){const n=Kie(e,t);return rre(Hie(e),"group",!1)&&(n.repeat=function(e){return cre(qie(e))?e.tokens[e.pos++]:void 0}(e)),n}}function Yie(e,t){let n;const i={type:"TokenElement",name:void 0,attributes:void 0,value:void 0,repeat:void 0,selfClose:!1,elements:[]};for(function(e,t){const n=e.pos;if(t.jsx&&Wie(e,ure))for(;Uie(e);){const{pos:t}=e;if(!Wie(e,pre)||!Wie(e,ure)){e.pos=t;break}}for(;Uie(e)&&Wie(e,dre););if(e.pos!==n)return e.start=n,!0;return!1}(e,t)&&(i.name=zie(e));Uie(e);)if(e.start=e.pos,i.repeat||vre(i)||!Wie(e,cre))if(!i.value&&nre(e))i.value=ire(e);else{if(!(n=Xie(e,"id",t)||Xie(e,"class",t)||Jie(e))){!vre(i)&&Wie(e,wre)&&(i.selfClose=!0,!i.repeat&&Wie(e,cre)&&(i.repeat=e.tokens[e.pos-1]));break}i.attributes?i.attributes=i.attributes.concat(n):i.attributes=Array.isArray(n)?n.slice():[n]}else i.repeat=e.tokens[e.pos-1];return vre(i)?void 0:i}function Jie(e){if(Wie(e,hre)){const t=[];let n;for(;Uie(e);)if(n=Zie(e))t.push(n);else{if(Wie(e,fre))break;if(!Wie(e,sre))throw Gie(e,`Unexpected "${qie(e).type}" token`)}return t}}function Xie(e,t,n){if(ore(qie(e),t)){e.pos++;const r={name:[(i=t,{type:"Literal",value:i})]};return n.jsx&&nre(e)?(r.value=ire(e),r.expression=!0):r.value=tre(e)?zie(e):void 0,r}var i}function Zie(e){return ere(e)?{value:zie(e)}:tre(e,!0)?{name:zie(e),value:Wie(e,lre)&&(ere(e)||tre(e,!0))?zie(e):void 0}:void 0}function ere(e){const t=e.pos,n=qie(e);if(are(n)){for(e.pos++;Uie(e);)if(are(Hie(e),n.single))return e.start=t,!0;throw Gie(e,"Unclosed quote",n)}return!1}function tre(e,t){const n=e.pos,i={attribute:0,expression:0,group:0};for(;Uie(e);){const n=qie(e);if(i.expression)rre(n,"expression")&&(i[n.context]+=n.open?1:-1);else{if(are(n)||ore(n)||sre(n)||cre(n))break;if(rre(n)){if(!t)break;if(n.open)i[n.context]++;else{if(!i[n.context])break;i[n.context]--}}}e.pos++}return n!==e.pos&&(e.start=n,!0)}function nre(e){const t=e.pos;if(Wie(e,mre)){let n=0;for(;Uie(e);){const t=Hie(e);if(rre(t,"expression"))if(t.open)n++;else{if(!n)break;n--}}return e.start=t,!0}return!1}function ire(e){let t=e.start,n=e.pos;return rre(e.tokens[t],"expression",!0)&&t++,rre(e.tokens[n-1],"expression",!1)&&n--,zie(e,t,n)}function rre(e,t,n){return Boolean(e&&"Bracket"===e.type&&(!t||e.context===t)&&(null==n||e.open===n))}function ore(e,t){return Boolean(e&&"Operator"===e.type&&(!t||e.operator===t))}function are(e,t){return Boolean(e&&"Quote"===e.type&&(null==t||e.single===t))}function sre(e){return Boolean(e&&"WhiteSpace"===e.type)}function lre(e){return ore(e,"equal")}function cre(e){return Boolean(e&&"Repeater"===e.type)}function ure(e){if(function(e){return"Literal"===e.type}(e)){const t=e.value.charCodeAt(0);return t>=65&&t<=90}return!1}function dre(e){return"Literal"===e.type||"RepeaterNumber"===e.type||"RepeaterPlaceholder"===e.type}function pre(e){return ore(e,"class")}function hre(e){return rre(e,"attribute",!0)}function fre(e){return rre(e,"attribute",!1)}function mre(e){return rre(e,"expression",!0)}function gre(e){return rre(e,"group",!0)}function vre(e){return!e.name&&!e.value&&!e.attributes}function yre(e){return ore(e,"child")}function bre(e){return ore(e,"sibling")}function kre(e){return ore(e,"climb")}function wre(e){return ore(e,"close")}function _re(e){return!!e.eat(92)&&(e.start=e.pos,e.eof()||e.pos++,!0)}function Cre(e,t){return function(e,t){const n=e.pos;if((t.expression||t.attribute)&&e.eat(36)&&e.eat(123)){let t;e.start=e.pos;let i="";if(e.eatWhile(zne)?(t=Number(e.current()),i=e.eat(58)?xre(e):""):Une(e.peek())&&(i=xre(e)),e.eat(125))return{type:"Field",index:t,name:i,start:n,end:e.pos};throw e.error("Expecting }")}e.pos=n}(e,t)||function(e){const t=e.pos;if(e.eat(36)&&e.eat(35))return{type:"RepeaterPlaceholder",value:void 0,start:t,end:e.pos};e.pos=t}(e)||function(e){const t=e.pos;if(e.eatWhile(36)){const n=e.pos-t;let i=!1,r=1,o=0;if(e.eat(64)){for(;e.eat(94);)o++;i=e.eat(45),e.start=e.pos,e.eatWhile(zne)&&(r=Number(e.current()))}return e.start=t,{type:"RepeaterNumber",size:n,reverse:i,base:r,parent:o,start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eat(42)){e.start=e.pos;let n=1,i=!1;return e.eatWhile(zne)?n=Number(e.current()):i=!0,{type:"Repeater",count:n,value:0,implicit:i,start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eatWhile(Kne))return{type:"WhiteSpace",start:t,end:e.pos,value:e.substring(t,e.pos)}}(e)||function(e,t){const n=e.pos;let i="";for(;!e.eof();){if(_re(e)){i+=e.current();continue}const n=e.peek();if(n===t.quote||36===n||Sre(n,t))break;if(t.expression&&125===n)break;if(!t.quote&&!t.expression){if(!t.attribute&&!Ore(n))break;if(Ere(n,t)||Are(n,t)||Yne(n)||Dre(n))break}i+=e.string[e.pos++]}if(n!==e.pos)return e.start=n,{type:"Literal",value:i,start:n,end:e.pos}}(e,t)||function(e){const t=Tre(e.peek());if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}(e)||function(e){const t=e.peek();if(Yne(t))return{type:"Quote",single:39===t,start:e.pos++,end:e.pos}}(e)||function(e){const t=e.peek(),n=Dre(t);if(n)return{type:"Bracket",open:Ire(t),context:n,start:e.pos++,end:e.pos}}(e)}function xre(e){const t=[];for(e.start=e.pos;!e.eof();)if(e.eat(123))t.push(e.pos);else if(e.eat(125)){if(!t.length){e.pos--;break}t.pop()}else e.pos++;if(t.length)throw e.pos=t.pop(),e.error("Expecting }");return e.current()}function Sre(e,t){const n=Tre(e);return!(!n||t.quote||t.expression)&&(!t.attribute||"equal"===n)}function Ere(e,t){return Kne(e)&&!t.expression}function Are(e,t){return 42===e&&!t.attribute&&!t.expression}function Dre(e){return 40===e||41===e?"group":91===e||93===e?"attribute":123===e||125===e?"expression":void 0}function Tre(e){return(62===e?"child":43===e&&"sibling")||94===e&&"climb"||46===e&&"class"||35===e&&"id"||47===e&&"close"||61===e&&"equal"||void 0}function Ire(e){return 123===e||91===e||40===e}function Ore(e){return Wne(e)||45===e||58===e||33===e}const Pre={child:">",class:".",climb:"^",id:"#",equal:"=",close:"/",sibling:"+"},Fre={Literal(e){return e.value},Quote(e){return e.single?"'":'"'},Bracket(e){return"attribute"===e.context?e.open?"[":"]":"expression"===e.context?e.open?"{":"}":e.open?"(":"}"},Operator(e){return Pre[e.operator]},Field(e,t){return null!=e.index?e.name?`\${${e.index}:${e.name}}`:`\${${e.index}`:e.name?t.getVariable(e.name):""},RepeaterPlaceholder(e,t){let n;for(let e=t.repeaters.length-1;e>=0;e--)if(t.repeaters[e].implicit){n=t.repeaters[e];break}return t.inserted=!0,t.getText(n&&n.value)},RepeaterNumber(e,t){let n=1;const i=t.repeaters.length-1,r=t.repeaters[i];if(r&&(n=e.reverse?e.base+r.count-r.value-1:e.base+r.value,e.parent)){const o=Math.max(0,i-e.parent);if(o!==i){const e=t.repeaters[o];n+=r.count*e.value}}let o=String(n);for(;o.length<e.size;)o="0"+o;return o},WhiteSpace(e){return e.value}};function $re(e,t){if(!Fre[e.type])throw new Error(`Unknown token ${e.type}`);return Fre[e.type](e,t)}const Mre=/^((https?:|ftp:|file:)?\/\/|(www|ftp)\.)[^ ]*$/,Lre=/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,5}$/;function Nre(e,t={}){let n,i=!1;t.text&&(n=Array.isArray(t.text)?t.text.filter(e=>e.trim()):t.text);const r={type:"Abbreviation",children:Rre(e,{inserted:!1,repeaters:[],text:t.text,cleanText:n,repeatGuard:t.maxRepeat||Number.POSITIVE_INFINITY,getText(e){var r;let o;if(i=!0,Array.isArray(t.text)){if(void 0!==e&&e>=0&&e<n.length)return n[e];o=void 0!==e?t.text[e]:t.text.join("\n")}else o=null!==(r=t.text)&&void 0!==r?r:"";return o},getVariable(e){const n=t.variables&&t.variables[e];return null!=n?n:e}})};if(null!=t.text&&!i){const e=Gre(Wre(r.children));if(e){const n=Array.isArray(t.text)?t.text.join("\n"):t.text;Kre(e,n),"a"===e.name&&t.href&&function(e,t){var n;let i="";Mre.test(t)?(i=t,/\w+:/.test(i)||i.startsWith("//")||(i=`http://${i}`)):Lre.test(t)&&(i=`mailto:${t}`);const r=null===(n=e.attributes)||void 0===n?void 0:n.find(e=>"href"===e.name);r?r.value||(r.value=[i]):e.attributes=[{name:"href",value:[i],valueType:"doubleQuote"}]}(e,n)}}return r}function jre(e,t){let n=[];if(e.repeat){const i=e.repeat,r=Object.assign({},i);let o;r.count=r.implicit&&Array.isArray(t.text)?t.cleanText.length:r.count||1,t.repeaters.push(r);for(let i=0;i<r.count;i++){if(r.value=i,e.repeat=r,o=zre(e)?Rre(e,t):Bre(e,t),r.implicit&&!t.inserted){const e=Wre(o),n=e&&Gre(e);n&&Kre(n,t.getText(r.value))}if(n=n.concat(o),--t.repeatGuard<=0)break}t.repeaters.pop(),e.repeat=i,r.implicit&&(t.inserted=!0)}else n=n.concat(zre(e)?Rre(e,t):Bre(e,t));return n}function Bre(e,t){let n=[];const i={type:"AbbreviationNode",name:e.name&&qre(e.name,t),value:e.value&&Hre(e.value,t),attributes:void 0,children:n,repeat:e.repeat&&Object.assign({},e.repeat),selfClosing:e.selfClose};let r=[i];for(const i of e.elements)n=n.concat(jre(i,t));if(e.attributes){i.attributes=[];for(const n of e.attributes)i.attributes.push(Vre(n,t))}return i.name||i.attributes||!i.value||i.value.some(Ure)?i.children=n:r=r.concat(n),r}function Rre(e,t){let n=[];for(const i of e.elements)n=n.concat(jre(i,t));return e.repeat&&(n=function(e,t){for(const n of e)n.repeat||(n.repeat=Object.assign({},t));return e}(n,e.repeat)),n}function Vre(e,t){let n,i=!1,r=!1,o=e.expression?"expression":"raw";const a=e.name&&qre(e.name,t);if(a&&"!"===a[0]&&(i=!0),a&&"."===a[a.length-1]&&(r=!0),e.value){const i=e.value.slice();if(are(i[0])){const e=i.shift();i.length&&Wre(i).type===e.type&&i.pop(),o=e.single?"singleQuote":"doubleQuote"}else rre(i[0],"expression",!0)&&(o="expression",i.shift(),rre(Wre(i),"expression",!1)&&i.pop());n=Hre(i,t)}return{name:r||i?a.slice(i?1:0,r?-1:void 0):a,value:n,boolean:r,implied:i,valueType:o}}function qre(e,t){let n="";for(let i=0;i<e.length;i++)n+=$re(e[i],t);return n}function Hre(e,t){const n=[];let i="";for(let r,o=0;o<e.length;o++)r=e[o],Ure(r)?(i&&(n.push(i),i=""),n.push(r)):i+=$re(r,t);return i&&n.push(i),n}function zre(e){return"TokenGroup"===e.type}function Ure(e){return"object"==typeof e&&"Field"===e.type&&null!=e.index}function Wre(e){return e[e.length-1]}function Gre(e){return e.children.length?Gre(Wre(e.children)):e}function Kre(e,t){if(e.value){"string"==typeof Wre(e.value)?e.value[e.value.length-1]+=t:e.value.push(t)}else e.value=[t]}function Qre(e,t){try{const n="string"==typeof e?function(e){const t=new Xne(e),n=[],i={group:0,attribute:0,expression:0,quote:0};let r,o=0;for(;!t.eof();){if(o=t.peek(),r=Cre(t,i),!r)throw t.error("Unexpected character");n.push(r),"Quote"===r.type?i.quote=o===i.quote?0:o:"Bracket"===r.type&&(i[r.context]+=r.open?1:-1)}return n}(e):e;return Nre(function(e,t={}){const n={tokens:i=e,start:0,pos:0,size:i.length};var i;const r=Kie(n,t);if(Uie(n))throw Gie(n,"Unexpected character");return r}(n,t),t)}catch(t){throw t instanceof Zne&&"string"==typeof e&&(t.message+=`\n${e}\n${"-".repeat(t.pos)}^`),t}}function Yre(e,t){return function(e){const t=e.pos;if(e.eat(36)&&e.eat(123)){let n;e.start=e.pos;let i="";if(e.eatWhile(zne)?(n=Number(e.current()),i=e.eat(58)?Jre(e):""):Une(e.peek())&&(i=Jre(e)),e.eat(125))return{type:"Field",index:n,name:i,start:t,end:e.pos};throw e.error("Expecting }")}e.pos=t}(e)||function(e){const t=e.pos;if(function(e){const t=e.pos;e.eat(45);const n=e.pos,i=e.eatWhile(zne),r=e.pos;if(e.eat(46)){const t=e.eatWhile(zne);i||t||(e.pos=r)}e.pos===n&&(e.pos=t);return e.pos!==t}(e)){e.start=t;const n=e.current();return e.start=e.pos,e.eat(37)||e.eatWhile(Gne),{type:"NumberValue",value:Number(n),rawValue:n,unit:e.current(),start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eat(35)){const n=e.pos;let i="",r="";if(e.eatWhile(noe)?(i=e.substring(n,e.pos),r=Zre(e)):e.eat(116)?(i="0",r=Zre(e)||"0"):r=Zre(e),i||r||e.eof()){const{r:n,g:o,b:a,a:s}=function(e,t){let n="0",i="0",r="0",o=Number(null!=t&&""!==t?t:1);if("t"===e)o=0;else switch(e.length){case 0:break;case 1:n=i=r=e+e;break;case 2:n=i=r=e;break;case 3:n=e[0]+e[0],i=e[1]+e[1],r=e[2]+e[2];break;default:n=(e+=e).slice(0,2),i=e.slice(2,4),r=e.slice(4,6)}return{r:parseInt(n,16),g:parseInt(i,16),b:parseInt(r,16),a:o}}(i,r);return{type:"ColorValue",r:n,g:o,b:a,a:s,raw:e.substring(t+1,e.pos),start:t,end:e.pos}}return Xre(e,t)}e.pos=t}(e)||function(e){const t=e.peek(),n=e.pos;let i=!1;if(Yne(t)){for(e.pos++;!e.eof();){if(e.eat(t)){i=!0;break}e.pos++}return e.start=n,{type:"StringValue",value:e.substring(n+1,e.pos-(i?1:0)),quote:39===t?"single":"double",start:n,end:e.pos}}}(e)||function(e){const t=e.peek();if(function(e){return 40===e||41===e}(t))return{type:"Bracket",open:40===t,start:e.pos++,end:e.pos}}(e)||eoe(e)||function(e){const t=e.pos;if(e.eatWhile(Kne))return{type:"WhiteSpace",start:t,end:e.pos}}(e)||function(e,t){const n=e.pos;e.eat(toe)?e.eatWhile(n?ioe:roe):e.eat(Gne)?e.eatWhile(t?roe:ioe):(e.eat(46),e.eatWhile(roe));if(n!==e.pos)return e.start=n,Xre(e,e.start=n)}(e,t)}function Jre(e){const t=[];for(e.start=e.pos;!e.eof();)if(e.eat(123))t.push(e.pos);else if(e.eat(125)){if(!t.length){e.pos--;break}t.pop()}else e.pos++;if(t.length)throw e.pos=t.pop(),e.error("Expecting }");return e.current()}function Xre(e,t=e.start,n=e.pos){return{type:"Literal",value:e.substring(t,n),start:t,end:n}}function Zre(e){const t=e.pos;return e.eat(46)?(e.start=t,e.eatWhile(zne)?e.current():"1"):""}function eoe(e){const t=(43===(n=e.peek())?"+":33===n&&"!")||44===n&&","||58===n&&":"||45===n&&"-"||void 0;var n;if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}function toe(e){return 64===e||36===e}function noe(e){return zne(e)||Une(e,65,70)}function ioe(e){return Wne(e)||45===e}function roe(e){return Gne(e)||37===e||47===e}function ooe(e){return"ColorValue"===e.type||"NumberValue"===e.type&&!e.unit}function aoe(e,t){let n=0,i=0;for(;t.length;){const e=soe(t);if("Literal"!==e.type&&"NumberValue"!==e.type)break;n=e.start,i||(i=e.end),t.pop()}n!==i&&t.push(Xre(e,n,i))}function soe(e){return e[e.length-1]}function loe(e){return e.tokens[e.pos]}function coe(e){return e.pos<e.size}function uoe(e,t){return!!t(loe(e))&&(e.pos++,!0)}function doe(e,t,n=loe(e)){n&&null!=n.start&&(t+=` at ${n.start}`);const i=new Error(t);return i.pos=n&&n.start,i}function poe(e,t){let n,i,r=!1;const o=[],a=loe(e),s=!!t.value;for(s||!moe(a)||function(e){const t=e.tokens[e.pos],n=e.tokens[e.pos+1];return t&&n&&moe(t)&&"Bracket"===n.type}(e)||(e.pos++,n=a.value,uoe(e,Eoe)),s&&uoe(e,boe);coe(e);)if(uoe(e,xoe))r=!0;else if(i=hoe(e,s))o.push(i);else if(!uoe(e,Coe))break;if(n||o.length||r)return{name:n,value:o,important:r}}function hoe(e,t){const n=[];let i,r;for(;coe(e);)if(i=loe(e),Soe(i))e.pos++,moe(i)&&(r=foe(e))?n.push({type:"FunctionCall",name:i.value,arguments:r}):n.push(i);else{if(!(Eoe(i)||t&&boe(i)))break;e.pos++}return n.length?{type:"CSSValue",value:n}:void 0}function foe(e){const t=e.pos;if(uoe(e,voe)){const n=[];let i;for(;coe(e)&&!uoe(e,yoe);)if(i=hoe(e,!0))n.push(i);else if(!uoe(e,boe)&&!uoe(e,_oe))throw doe(e,"Unexpected token");return e.start=t,n}}function moe(e){return e&&"Literal"===e.type}function goe(e,t){return e&&"Bracket"===e.type&&(null==t||e.open===t)}function voe(e){return goe(e,!0)}function yoe(e){return goe(e,!1)}function boe(e){return e&&"WhiteSpace"===e.type}function koe(e,t){return e&&"Operator"===e.type&&(!t||e.operator===t)}function woe(e){return koe(e,"+")}function _oe(e){return koe(e,",")}function Coe(e){return _oe(e)}function xoe(e){return koe(e,"!")}function Soe(e){return"StringValue"===e.type||"ColorValue"===e.type||"NumberValue"===e.type||"Literal"===e.type||"Field"===e.type}function Eoe(e){return koe(e,":")||koe(e,"-")}function Aoe(e,t){try{const n="string"==typeof e?function(e,t){let n,i=0;const r=new Xne(e),o=[];for(;!r.eof();){if(n=Yre(r,0===i&&!t),!n)throw r.error("Unexpected character");if("Bracket"===n.type&&(!i&&n.open&&aoe(r,o),i+=n.open?1:-1,i<0))throw r.error("Unexpected bracket",n.start);o.push(n),ooe(n)&&(n=eoe(r))&&o.push(n)}return o}(e,t&&t.value):e;return function(e,t={}){const n=function(e){return{tokens:e,start:0,pos:0,size:e.length}}(e),i=[];let r;for(;coe(n);)if(r=poe(n,t))i.push(r);else if(!uoe(n,woe))throw doe(n,"Unexpected token");return i}(n,t)}catch(t){throw t instanceof Zne&&"string"==typeof e&&(t.message+=`\n${e}\n${"-".repeat(t.pos)}^`),t}}function Doe(e,t,n){if(e&&t){e.length&&n&&Ioe(e,n);for(const n of t)Ioe(e,n);return e}const i=e||t;return i&&i.slice()}function Toe(e,t,n){return e.name=t.name,n.options["output.reverseAttributes"]||(e.value=t.value),e.implied||(e.implied=t.implied),e.boolean||(e.boolean=t.boolean),"expression"!==e.valueType&&(e.valueType=t.valueType),e}function Ioe(e,t){const n=e.length-1;"string"==typeof e[n]&&"string"==typeof t?e[n]+=t:e.push(t)}function Ooe(e){let t;for(;e.children.length;)t=e,e=e.children[e.children.length-1];return{parent:t,node:e}}function Poe(e){return"AbbreviationNode"===e.type}function Foe(e,t,n){let i=[];for(const n of e.children){const e=t(n);if(e){i=i.concat(e.children);const r=Ooe(e);Poe(r.node)&&(r.node.children=r.node.children.concat(Foe(n,t)))}else i.push(n),n.children=Foe(n,t)}return e.children=i}function $oe(e,t){e.selfClosing&&(t.selfClosing=!0),null!=e.value&&(t.value=e.value),e.repeat&&(t.repeat=e.repeat)}function Moe(e,t=0){return{options:e,value:"",level:t,offset:0,line:0,column:0}}function Loe(e,t){zoe(e,(0,e.options["output.text"])(t,e.offset,e.line,e.column))}function Noe(e,t){const n=t.split(/\r\n|\r|\n/g);for(let t=0,i=n.length-1;t<=i;t++)Loe(e,n[t]),t!==i&&joe(e,!0)}function joe(e,t){const n=e.options["output.baseIndent"];Loe(e,e.options["output.newline"]+n),e.line++,e.column=n.length,t&&function(e,t=e.level){const n=e.options["output.indent"];Loe(e,n.repeat(Math.max(t,0)))}(e,!0===t?e.level:t)}function Boe(e,t,n){zoe(e,(0,e.options["output.field"])(t,n,e.offset,e.line,e.column))}function Roe(e,t){return Uoe(e,t.options["output.attributeCase"])}function Voe(e,t,n){return"expression"===e.valueType?n?"{":"}":"single"===t.options["output.attributeQuotes"]?"'":'"'}function qoe(e,t){return e.boolean||t.options["output.booleanAttributes"].includes((e.name||"").toLowerCase())}function Hoe(e,t){return"string"==typeof e?t.options.inlineElements.includes(e.toLowerCase()):e.name?Hoe(e.name,t):Boolean(e.value&&!e.attributes)}function zoe(e,t){e.value+=t,e.offset+=t.length,e.column+=t.length}function Uoe(e,t){return t?"upper"===t?e.toUpperCase():e.toLowerCase():e}const Woe={p:"span",ul:"li",ol:"li",table:"tr",tr:"td",tbody:"tr",thead:"tr",tfoot:"tr",colgroup:"col",select:"option",optgroup:"option",audio:"source",video:"source",object:"param",map:"area"};function Goe(e,t,n){const i=function(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if(Poe(n))return n}}(t),r=n.context?n.context.name:"",o=((i?i.name:r)||"").toLowerCase();e.name=Woe[o]||(Hoe(o,n)?"span":"div")}const Koe={ru:{common:["далеко-далеко","за","словесными","горами","в стране","гласных","и согласных","живут","рыбные","тексты"],words:["вдали","от всех","они","буквенных","домах","на берегу","семантика","большого","языкового","океана","маленький","ручеек","даль","журчит","по всей","обеспечивает","ее","всеми","необходимыми","правилами","эта","парадигматическая","страна","которой","жаренные","предложения","залетают","прямо","рот","даже","всемогущая","пунктуация","не","имеет","власти","над","рыбными","текстами","ведущими","безорфографичный","образ","жизни","однажды","одна","маленькая","строчка","рыбного","текста","имени","lorem","ipsum","решила","выйти","большой","мир","грамматики","великий","оксмокс","предупреждал","о","злых","запятых","диких","знаках","вопроса","коварных","точках","запятой","но","текст","дал","сбить","себя","толку","он","собрал","семь","своих","заглавных","букв","подпоясал","инициал","за","пояс","пустился","дорогу","взобравшись","первую","вершину","курсивных","гор","бросил","последний","взгляд","назад","силуэт","своего","родного","города","буквоград","заголовок","деревни","алфавит","подзаголовок","своего","переулка","грустный","реторический","вопрос","скатился","его","щеке","продолжил","свой","путь","дороге","встретил","рукопись","она","предупредила","моей","все","переписывается","несколько","раз","единственное","что","меня","осталось","это","приставка","возвращайся","ты","лучше","свою","безопасную","страну","послушавшись","рукописи","наш","продолжил","свой","путь","вскоре","ему","повстречался","коварный","составитель","рекламных","текстов","напоивший","языком","речью","заманивший","свое","агентство","которое","использовало","снова","снова","своих","проектах","если","переписали","то","живет","там","до","сих","пор"]},sp:{common:["mujer","uno","dolor","más","de","poder","mismo","si"],words:["ejercicio","preferencia","perspicacia","laboral","paño","suntuoso","molde","namibia","planeador","mirar","demás","oficinista","excepción","odio","consecuencia","casi","auto","chicharra","velo","elixir","ataque","no","odio","temporal","cuórum","dignísimo","facilismo","letra","nihilista","expedición","alma","alveolar","aparte","león","animal","como","paria","belleza","modo","natividad","justo","ataque","séquito","pillo","sed","ex","y","voluminoso","temporalidad","verdades","racional","asunción","incidente","marejada","placenta","amanecer","fuga","previsor","presentación","lejos","necesariamente","sospechoso","adiposidad","quindío","pócima","voluble","débito","sintió","accesorio","falda","sapiencia","volutas","queso","permacultura","laudo","soluciones","entero","pan","litro","tonelada","culpa","libertario","mosca","dictado","reincidente","nascimiento","dolor","escolar","impedimento","mínima","mayores","repugnante","dulce","obcecado","montaña","enigma","total","deletéreo","décima","cábala","fotografía","dolores","molesto","olvido","paciencia","resiliencia","voluntad","molestias","magnífico","distinción","ovni","marejada","cerro","torre","y","abogada","manantial","corporal","agua","crepúsculo","ataque","desierto","laboriosamente","angustia","afortunado","alma","encefalograma","materialidad","cosas","o","renuncia","error","menos","conejo","abadía","analfabeto","remo","fugacidad","oficio","en","almácigo","vos","pan","represión","números","triste","refugiado","trote","inventor","corchea","repelente","magma","recusado","patrón","explícito","paloma","síndrome","inmune","autoinmune","comodidad","ley","vietnamita","demonio","tasmania","repeler","apéndice","arquitecto","columna","yugo","computador","mula","a","propósito","fantasía","alias","rayo","tenedor","deleznable","ventana","cara","anemia","corrupto"]},latin:{common:["lorem","ipsum","dolor","sit","amet","consectetur","adipisicing","elit"],words:["exercitationem","perferendis","perspiciatis","laborum","eveniet","sunt","iure","nam","nobis","eum","cum","officiis","excepturi","odio","consectetur","quasi","aut","quisquam","vel","eligendi","itaque","non","odit","tempore","quaerat","dignissimos","facilis","neque","nihil","expedita","vitae","vero","ipsum","nisi","animi","cumque","pariatur","velit","modi","natus","iusto","eaque","sequi","illo","sed","ex","et","voluptatibus","tempora","veritatis","ratione","assumenda","incidunt","nostrum","placeat","aliquid","fuga","provident","praesentium","rem","necessitatibus","suscipit","adipisci","quidem","possimus","voluptas","debitis","sint","accusantium","unde","sapiente","voluptate","qui","aspernatur","laudantium","soluta","amet","quo","aliquam","saepe","culpa","libero","ipsa","dicta","reiciendis","nesciunt","doloribus","autem","impedit","minima","maiores","repudiandae","ipsam","obcaecati","ullam","enim","totam","delectus","ducimus","quis","voluptates","dolores","molestiae","harum","dolorem","quia","voluptatem","molestias","magni","distinctio","omnis","illum","dolorum","voluptatum","ea","quas","quam","corporis","quae","blanditiis","atque","deserunt","laboriosam","earum","consequuntur","hic","cupiditate","quibusdam","accusamus","ut","rerum","error","minus","eius","ab","ad","nemo","fugit","officia","at","in","id","quos","reprehenderit","numquam","iste","fugiat","sit","inventore","beatae","repellendus","magnam","recusandae","quod","explicabo","doloremque","aperiam","consequatur","asperiores","commodi","optio","dolor","labore","temporibus","repellat","veniam","architecto","est","esse","mollitia","nulla","a","similique","eos","alias","dolore","tenetur","deleniti","porro","facere","maxime","corrupti"]}},Qoe=/^lorem([a-z]*)(\d*)(-\d*)?$/i;function Yoe(e,t){return Math.floor(Math.random()*(t-e)+e)}function Joe(e,t){const n=e.length,i=Math.min(n,t),r=[];for(;r.length<i;){const t=e[Yoe(0,n)];r.includes(t)||r.push(t)}return r}function Xoe(e,t){var n,i;return e.length&&(e=[(n=e[0],n[0].toUpperCase()+n.slice(1))].concat(e.slice(1))),e.join(" ")+(t||(i="?!...")[Yoe(0,i.length-1)])}function Zoe(e){if(e.length<2)return e;const t=(e=e.slice()).length,n=/,$/;let i=0;i=t>3&&t<=6?Yoe(0,1):t>6&&t<=12?Yoe(0,2):Yoe(1,4);for(let r,o=0;o<i;o++)r=Yoe(0,t-2),n.test(e[r])||(e[r]+=",");return e}function eae(e,t,n){const i=[];let r,o=0;for(n&&e.common&&(r=e.common.slice(0,t),o+=r.length,i.push(Xoe(Zoe(r),".")));o<t;)r=Joe(e.words,Math.min(Yoe(2,30),t-o)),o+=r.length,i.push(Xoe(Zoe(r)));return i.join(" ")}function tae(e){"class"===e.name?e.name="className":"for"===e.name&&(e.name="htmlFor")}function nae(e){return"select"!==e.name}const iae=/^(-+)([a-z0-9]+[a-z0-9-]*)/i,rae=/^(_+)([a-z0-9]+[a-z0-9-_]*)/i,oae=e=>/^[a-z]\-/i.test(e),aae=e=>/^[a-z]/i.test(e);function sae(e,t,n){!function(e){const t=lae(e),n=[];for(const e of t.classNames){const t=e.indexOf("_");t>0&&!e.startsWith("-")?(n.push(e.slice(0,t)),n.push(e.slice(t))):n.push(e)}n.length&&(t.classNames=n.filter(mae),t.block=dae(t.classNames),hae(e,t.classNames.join(" ")))}(e),function(e,t,n){const i=lae(e),r=[],{options:o}=n,a=t.slice(1).concat(e);for(let e of i.classNames){let t,i="";const s=e;(t=e.match(iae))&&(i=uae(a,t[1].length,n.context)+o["bem.element"]+t[2],r.push(i),e=e.slice(t[0].length)),(t=e.match(rae))&&(i||(i=uae(a,t[1].length),r.push(i)),r.push(`${i}${o["bem.modifier"]}${t[2]}`),e=e.slice(t[0].length)),e===s&&r.push(s)}const s=r.filter(mae);s.length&&hae(e,s.join(" "))}(e,t,n)}function lae(e){if(!e._bem){let t="";if(e.attributes)for(const n of e.attributes)if("class"===n.name&&n.value){t=fae(n.value);break}e._bem=cae(t)}return e._bem}function cae(e){const t=e?e.split(/\s+/):[];return{classNames:t,block:dae(t)}}function uae(e,t=0,n){let i=Math.max(e.length-t,0);do{const t=e[i];if(t){const e=lae(t);if(e.block)return e.block}}while(0<i--);if(n){const e=function(e){return e._bem||(e._bem=cae(e.attributes&&e.attributes.class||"")),e._bem}(n);if(e.block)return e.block}return""}function dae(e){return pae(e,oae)||pae(e,aae)||void 0}function pae(e,t){for(const n of e){if(iae.test(n)||rae.test(n))break;if(t(n))return n}}function hae(e,t){for(const n of e.attributes)if("class"===n.name){n.value=[t];break}}function fae(e){let t="";for(const n of e)t+="string"==typeof n?n:n.name;return t}function mae(e,t,n){return!!e&&n.indexOf(e)===t}function gae(e,t,n){const i=(e,i,o)=>{const{parent:a,current:s}=n;n.parent=s,n.current=e,t(e,i,o,n,r),n.current=s,n.parent=a},r=(e,t,r)=>{n.ancestors.push(n.current),i(e,t,r),n.ancestors.pop()};e.children.forEach(i)}function vae(e){return{current:null,parent:void 0,ancestors:[],config:e,field:1,out:Moe(e.options)}}const yae=[{type:"Field",index:0,name:""}];function bae(e){return!!e&&(!e.name&&!e.attributes)}function kae(e,t){return!!e&&Hoe(e,t)}function wae(e){return"object"==typeof e&&"Field"===e.type}function _ae(e,t){const{out:n}=t;let i=-1;for(const r of e)"string"==typeof r?Noe(n,r):(Boe(n,t.field+r.index,r.name),r.index>i&&(i=r.index));-1!==i&&(t.field+=i+1)}function Cae(e){return!e.implied||"raw"!==e.valueType||!!e.value&&e.value.length>0}function xae(e){const t=[],n={pos:0,text:e};let i,r=n.pos,o=n.pos;for(;n.pos<n.text.length;)o=n.pos,(i=Sae(n))?(r!==n.pos&&t.push(e.slice(r,o)),t.push(i),r=n.pos):n.pos++;return r!==n.pos&&t.push(e.slice(r)),t}function Sae(e){if(91===Eae(e)){const t=++e.pos;let n=t,i=t,r=1;for(;e.pos<e.text.length;){const o=Eae(e);if(Aae(o)){for(n=e.pos;Dae(Eae(e));)e.pos++;i=e.pos}else{if(91===o)r++;else if(93===o&&0===--r)return{before:e.text.slice(t,n),after:e.text.slice(i,e.pos++),name:e.text.slice(n,i)};e.pos++}}}}function Eae(e,t=e.pos){return e.text.charCodeAt(t)}function Aae(e){return e>=65&&e<=90}function Dae(e){return Aae(e)||e>47&&e<58||95===e||45===e}function Tae(e,t){const{comment:n}=t;if(!(n.enabled&&n.trigger&&e.name&&e.attributes))return!1;for(const t of e.attributes)if(t.name&&n.trigger.includes(t.name))return!0;return!1}function Iae(e,t,n){const i={},{out:r}=n;for(const t of e.attributes)t.name&&t.value&&(i[t.name.toUpperCase()]=t.value);for(const e of t)"string"==typeof e?Noe(r,e):i[e.name]&&(Noe(r,e.before),_ae(i[e.name],n),Noe(r,e.after))}const Oae=/^<([\w\-:]+)[\s>]/;function Pae(e,t){const n=vae(t);return n.comment=function(e){const{options:t}=e;return{enabled:t["comment.enabled"],trigger:t["comment.trigger"],before:t["comment.before"]?xae(t["comment.before"]):void 0,after:t["comment.after"]?xae(t["comment.after"]):void 0}}(t),gae(e,Fae,n),n.out.value}function Fae(e,t,n,i,r){const{out:o,config:a}=i,s=Lae(e,t,n,i),l=function(e){const{config:t,parent:n}=e;if(!n||bae(n)||n.name&&t.options["output.formatSkip"].includes(n.name))return 0;return 1}(i);if(o.level+=l,s&&joe(o,!0),e.name){const t=function(e,t){return Uoe(e,t.options["output.tagCase"])}(e.name,a);if(function(e,t){Tae(e,t)&&t.comment.before&&Iae(e,t.comment.before,t)}(e,i),Noe(o,`<${t}`),e.attributes)for(const t of e.attributes)Cae(t)&&$ae(t,i);if(!e.selfClosing||e.children.length||e.value){if(Noe(o,">"),!Mae(e,i,r)){if(e.value){const t=e.value.some(Nae)||function(e,t){if(e.length&&"string"==typeof e[0]){const n=Oae.exec(e[0]);if((null==n?void 0:n.length)&&!t.options.inlineElements.includes(n[1].toLowerCase()))return!0}return!1}(e.value,a);t&&joe(i.out,++o.level),_ae(e.value,i),t&&joe(i.out,--o.level)}if(e.children.forEach(r),!e.value&&!e.children.length){const t=a.options["output.formatLeafNode"]||a.options["output.formatForce"].includes(e.name);t&&joe(i.out,++o.level),_ae(yae,i),t&&joe(i.out,--o.level)}}Noe(o,`</${t}>`),function(e,t){Tae(e,t)&&t.comment.after&&Iae(e,t.comment.after,t)}(e,i)}else Noe(o,`${function(e){switch(e.options["output.selfClosingStyle"]){case"xhtml":return" /";case"xml":return"/";default:return""}}(a)}>`)}else!Mae(e,i,r)&&e.value&&(_ae(e.value,i),e.children.forEach(r));if(s&&t===n.length-1&&i.parent){const e=bae(i.parent)?0:1;joe(o,o.level-e)}o.level-=l}function $ae(e,t){const{out:n,config:i}=t;if(e.name){const r=Roe(e.name,i),o=Voe(e,i,!0),a=Voe(e,i);let s=e.value;qoe(e,i)&&!s?i.options["output.compactBoolean"]||(s=[r]):s||(s=yae),Noe(n," "+r),s?(Noe(n,"="+o),_ae(s,t),Noe(n,a)):"html"!==i.options["output.selfClosingStyle"]&&Noe(n,"="+o+a)}}function Mae(e,t,n){if(e.value&&e.children.length){const i=e.value.findIndex(wae);if(-1!==i){_ae(e.value.slice(0,i),t);const r=t.out.line;let o=i+1;return e.children.forEach(n),t.out.line!==r&&"string"==typeof e.value[o]&&Noe(t.out,e.value[o++].trimLeft()),_ae(e.value.slice(o),t),!0}}return!1}function Lae(e,t,n,i){const{config:r,parent:o}=i;if(!r.options["output.format"])return!1;if(0===t&&!o)return!1;if(o&&bae(o)&&1===n.length)return!1;if(bae(e)){if(bae(n[t-1])||bae(n[t+1])||e.value.some(Nae)||e.value.some(wae)&&e.children.length)return!0}if(Hoe(e,r)){if(0===t){for(let e=0;e<n.length;e++)if(!Hoe(n[e],r))return!0}else if(!Hoe(n[t-1],r))return!0;if(r.options["output.inlineBreak"]){let e=1,i=t,o=t;for(;kae(n[--i],r);)e++;for(;kae(n[++o],r);)e++;if(e>=r.options["output.inlineBreak"])return!0}for(let t=0,n=e.children.length;t<n;t++)if(Lae(e.children[t],t,e.children,i))return!0;return!1}return!0}function Nae(e){return"string"==typeof e&&/\r|\n/.test(e)}function jae(e,t,n){const i=vae(t);return i.options=n||{},gae(e,Bae,i),i.out.value}function Bae(e,t,n,i,r){const{out:o,options:a}=i,{primary:s,secondary:l}=function(e){const t=[],n=[];if(e.attributes)for(const i of e.attributes)Rae(i)?t.push(i):n.push(i);return{primary:t,secondary:n}}(e),c=i.parent?1:0;o.level+=c,function(e,t,n,i){if(!i.parent&&0===t)return!1;return!bae(e)}(e,t,0,i)&&joe(o,!0),!e.name||"div"===e.name&&s.length||Noe(o,(a.beforeName||"")+e.name+(a.afterName||"")),function(e,t){for(const n of e)if(n.value)if("class"===n.name){Noe(t.out,".");const e=n.value.map(e=>"string"==typeof e?e.replace(/\s+/g,"."):e);_ae(e,t)}else Noe(t.out,"#"),_ae(n.value,t)}(s,i),function(e,t){if(e.length){const{out:n,config:i,options:r}=t;r.beforeAttribute&&Noe(n,r.beforeAttribute);for(let o=0;o<e.length;o++){const a=e[o];Noe(n,Roe(a.name||"",i)),qoe(a,i)&&!a.value?!i.options["output.compactBoolean"]&&r.booleanValue&&Noe(n,"="+r.booleanValue):(Noe(n,"="+Voe(a,i,!0)),_ae(a.value||yae,t),Noe(n,Voe(a,i))),o!==e.length-1&&r.glueAttribute&&Noe(n,r.glueAttribute)}r.afterAttribute&&Noe(n,r.afterAttribute)}}(l.filter(Cae),i),!e.selfClosing||e.value||e.children.length?(!function(e,t){if(!e.value&&e.children.length)return;const n=e.value||yae,i=function(e){const t=[];let n=[];for(const i of e)if("string"==typeof i){const e=i.split(/\r\n?|\n/g);for(n.push(e.shift()||"");e.length;)t.push(n),n=[e.shift()||""]}else n.push(i);return n.length&&t.push(n),t}(n),{out:r,options:o}=t;if(1===i.length)(e.name||e.attributes)&&Loe(r," "),_ae(n,t);else{const e=[];let n=0;for(const t of i){const i=Vae(t);e.push(i),i>n&&(n=i)}r.level++;for(let a=0;a<i.length;a++)joe(r,!0),o.beforeTextLine&&Loe(r,o.beforeTextLine),_ae(i[a],t),o.afterTextLine&&(Loe(r," ".repeat(n-e[a])),Loe(r,o.afterTextLine));r.level--}}(e,i),e.children.forEach(r)):i.options.selfClose&&Noe(o,i.options.selfClose),o.level-=c}function Rae(e){return"class"===e.name||"id"===e.name}function Vae(e){let t=0;for(const n of e)t+="string"==typeof n?n.length:n.name.length;return t}const qae={html:Pae,haml:function(e,t){return jae(e,t,{beforeName:"%",beforeAttribute:"(",afterAttribute:")",glueAttribute:" ",afterTextLine:" |",booleanValue:"true",selfClose:"/"})},slim:function(e,t){return jae(e,t,{beforeAttribute:" ",glueAttribute:" ",beforeTextLine:"| ",selfClose:"/"})},pug:function(e,t){return jae(e,t,{beforeAttribute:"(",afterAttribute:")",glueAttribute:", ",beforeTextLine:"| ",selfClose:"xml"===t.options["output.selfClosingStyle"]?"/":""})}};function Hae(e,t){let n;if("string"==typeof e){let i=t;t.options["jsx.enabled"]&&(i=Object.assign(Object.assign({},i),{jsx:!0})),t.options["markup.href"]&&(i=Object.assign(Object.assign({},i),{href:!0})),e=Qre(e,i),n=t.text,t.text=void 0}return e=function(e,t){const n=[],i=t.options["output.reverseAttributes"],r=e=>{const o=e.name&&t.snippets[e.name];if(!o||n.includes(o))return null;const a=Qre(o,t);n.push(o),Foe(a,r),n.pop();for(const t of a.children){if(e.attributes){const n=t.attributes||[],r=e.attributes||[];t.attributes=i?r.concat(n):n.concat(r)}$oe(e,t)}return a};return Foe(e,r),e}(e,t),function(e,t,n){const i=[e],r=e=>{t(e,i,n),i.push(e),e.children.forEach(r),i.pop()};e.children.forEach(r)}(e,zae,t),t.text=null!=n?n:t.text,e}function zae(e,t,n){!function(e,t,n){!e.name&&e.attributes&&Goe(e,t,n)}(e,t,n),function(e,t){if(!e.attributes)return;const n=[],i={};for(const r of e.attributes)if(r.name){const e=r.name;if(e in i){const n=i[e];"class"===e?n.value=Doe(n.value,r.value," "):Toe(n,r,t)}else n.push(i[e]=Object.assign({},r))}else n.push(r);e.attributes=n}(e,n),function(e,t,n){let i;if(e.name&&(i=e.name.match(Qoe))){const r=Koe[i[1]]||Koe.latin,o=i[2]?Math.max(1,Number(i[2])):30,a=Yoe(o,i[3]?Math.max(o,Number(i[3].slice(1))):o),s=e.repeat||function(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if("AbbreviationNode"===n.type&&n.repeat)return n.repeat}}(t);e.name=e.attributes=void 0,e.value=[eae(r,a,!s||0===s.value)],e.repeat&&t.length>1&&Goe(e,t,n)}}(e,t,n),"xsl"===n.syntax&&function(e){var t;"xsl:variable"!==(t=e.name)&&"xsl:with-param"!==t||!e.attributes||!e.children.length&&!e.value||(e.attributes=e.attributes.filter(nae))}(e),n.options["jsx.enabled"]&&function(e){e.attributes&&e.attributes.forEach(tae)}(e),n.options["bem.enabled"]&&sae(e,t,n)}const Uae=/^([a-z-]+)(?:\s*:\s*([^\n\r;]+?);*)?$/,Wae={value:!0};function Gae(e,t){const n=t.match(Uae);if(n){const t={},i=n[2]?n[2].split("|").map(Qae):[];for(const e of i)for(const n of e)Jae(n,t);return{type:"Property",key:e,property:n[1],value:i,keywords:t,dependencies:[]}}return{type:"Raw",key:e,value:t}}function Kae(e,t){return e.key===t.key?0:e.key<t.key?-1:1}function Qae(e){return Aoe(e.trim(),Wae)[0].value}function Yae(e){return"Property"===e.type}function Jae(e,t){for(const n of e.value)if("Literal"===n.type)t[n.value]=n;else if("FunctionCall"===n.type)t[n.name]=n;else if("Field"===n.type){const e=n.name.trim();e&&(t[e]={type:"Literal",value:e})}}function Xae(e,t,n=!1){if((e=e.toLowerCase())===(t=t.toLowerCase()))return 1;if(!e||!t||e.charCodeAt(0)!==t.charCodeAt(0))return 0;const i=e.length,r=t.length;if(!n&&i>r)return 0;const o=Math.min(i,r),a=Math.max(i,r);let s=1,l=1,c=a,u=0,d=0,p=!1,h=!1;for(;s<i;){for(u=e.charCodeAt(s),p=!1,h=!1;l<r;){if(d=t.charCodeAt(l),u===d){p=!0,c+=a-(h?s:l);break}h=45===d,l++}if(!p){if(!n)return 0;break}s++}const f=a-o;return c*(s/a)/(Zae(a)-Zae(f))}function Zae(e){return e*(e+1)/2}function ese(e,t){return e.r||e.g||e.b||e.a?1===e.a?function(e,t){const n=t&&nse(e.r)&&nse(e.g)&&nse(e.b)?ise:rse;return"#"+n(e.r)+n(e.g)+n(e.b)}(e,t):function(e){const t=[e.r,e.g,e.b];1!==e.a&&t.push(tse(e.a,8));return`${3===t.length?"rgb":"rgba"}(${t.join(", ")})`}(e):"transparent"}function tse(e,t=4){return e.toFixed(t).replace(/\.?0+$/,"")}function nse(e){return!(e%17)}function ise(e){return(e>>4).toString(16)}function rse(e){return function(e,t){for(;e.length<t;)e="0"+e;return e}(e.toString(16),2)}function ose(e,t,n){const i=n.options["stylesheet.json"];if(e.name){Noe(t,(i?e.name.replace(/\-(\w)/g,(e,t)=>t.toUpperCase()):e.name)+n.options["stylesheet.between"]),e.value.length?function(e,t,n){const i=n.options["stylesheet.json"],r=i?function(e){if(1===e.value.length){const t=e.value[0];if(1===t.value.length&&"NumberValue"===t.value[0].type)return t.value[0]}}(e):null;if(!r||r.unit&&"px"!==r.unit){const r=function(e){return e.options["stylesheet.jsonDoubleQuotes"]?'"':"'"}(n);i&&Loe(t,r);for(let i=0;i<e.value.length;i++)0!==i&&Loe(t,", "),sse(e.value[i],t,n);i&&Loe(t,r)}else Loe(t,String(r.value))}(e,t,n):Boe(t,0,""),i?Loe(t,","):(ase(e,t,!0),Loe(t,n.options["stylesheet.after"]))}else{for(const i of e.value)for(const e of i.value)lse(e,t,n);ase(e,t,e.value.length>0)}}function ase(e,t,n){e.important&&(n&&Loe(t," "),Loe(t,"!important"))}function sse(e,t,n){for(let i=0,r=-1;i<e.value.length;i++){const o=e.value[i];0===i||"Field"===o.type&&o.start===r||Loe(t," "),lse(o,t,n),r=o.end}}function lse(e,t,n){if("ColorValue"===e.type)Loe(t,ese(e,n.options["stylesheet.shortHex"]));else if("Literal"===e.type)Noe(t,e.value);else if("NumberValue"===e.type)Noe(t,tse(e.value,4)+e.unit);else if("StringValue"===e.type){const n="double"===e.quote?'"':"'";Noe(t,n+e.value+n)}else if("Field"===e.type)Boe(t,e.index,e.name);else if("FunctionCall"===e.type){Loe(t,e.name+"(");for(let i=0;i<e.arguments.length;i++)i&&Loe(t,", "),sse(e.arguments[i],t,n);Loe(t,")")}}const cse="lg";function use(e,t){var n;const i=(null===(n=t.cache)||void 0===n?void 0:n.stylesheetSnippets)||function(e){const t=[];for(const n of Object.keys(e))t.push(Gae(n,e[n]));return function(e){e=e.slice().sort(Kae);const t=[];let n;for(const i of e.filter(Yae)){for(;t.length;){if(n=t[t.length-1],i.property.startsWith(n.property)&&45===i.property.charCodeAt(n.property.length)){n.dependencies.push(i),t.push(i);break}t.pop()}t.length||t.push(i)}return e}(t)}(t.snippets);t.cache&&(t.cache.stylesheetSnippets=i),"string"==typeof e&&(e=Aoe(e,{value:wse(t)}));const r=function(e,t){if(t.context){if("@@section"===t.context.name)return e.filter(e=>"Raw"===e.type);if("@@property"===t.context.name)return e.filter(e=>"Property"===e.type)}return e}(i,t);for(const n of e)dse(n,r,t);return e}function dse(e,t,n){if(!function(e,t){let n=null;const i=1===e.value.length?e.value[0]:null;if(i&&1===i.value.length){const e=i.value[0];"FunctionCall"===e.type&&e.name===cse&&(n=e)}if(n||e.name===cse)return n=n?Object.assign(Object.assign({},n),{name:"linear-gradient"}):{type:"FunctionCall",name:"linear-gradient",arguments:[gse(yse(0,""))]},t.context||(e.name="background-image"),e.value=[gse(n)],!0;return!1}(e,n)){const i=n.options["stylesheet.fuzzySearchMinScore"];if(wse(n)){const r=n.context.name,o=t.find(e=>"Property"===e.type&&e.property===r);pse(e,n,o,i),e.snippet=o}else if(e.name){const r=hse(e.name,t,i,!0);e.snippet=r,r&&("Property"===r.type?function(e,t,n){const i=e.name,r=function(e,t){for(let n=0,i=0;n<e.length;n++){if(i=t.indexOf(e[n],i),-1===i)return e.slice(n);i++}return""}(i,t.key);if(r){if(e.value.length)return e;const i=mse(r,n,t);if(!i)return e;e.value.push(gse(i))}if(e.name=t.property,e.value.length)pse(e,n,t);else if(t.value.length){const i=t.value[0];e.value=1===t.value.length||i.some(bse)?i:i.map(e=>kse(e,n))}}(e,r,n):function(e,t){let n,i=0;const r=/\$\{(\d+)(:[^}]+)?\}/g,o=e.value[0],a=[];for(;n=r.exec(t.value);)i!==n.index&&a.push(vse(t.value.slice(i,n.index))),i=n.index+n[0].length,o&&o.value.length?a.push(o.value.shift()):a.push(yse(Number(n[1]),n[2]?n[2].slice(1):""));const s=t.value.slice(i);s&&a.push(vse(s));e.name=void 0,e.value=[gse(...a)]}(e,r))}}return(e.name||n.context)&&function(e,t){const n=t.options["stylesheet.unitAliases"],i=t.options["stylesheet.unitless"];for(const r of e.value)for(const o of r.value)"NumberValue"===o.type&&(o.unit?o.unit=n[o.unit]||o.unit:0===o.value||i.includes(e.name)||(o.unit=o.rawValue.includes(".")?t.options["stylesheet.floatUnit"]:t.options["stylesheet.intUnit"]))}(e,n),e}function pse(e,t,n,i){for(const r of e.value){const e=[];for(const o of r.value)if("Literal"===o.type)e.push(mse(o.value,t,n,i)||o);else if("FunctionCall"===o.type){const r=mse(o.name,t,n,i);r&&"FunctionCall"===r.type?e.push(Object.assign(Object.assign({},r),{arguments:o.arguments.concat(r.arguments.slice(o.arguments.length))})):e.push(o)}else e.push(o);r.value=e}}function hse(e,t,n=0,i=!1){let r=null,o=0;for(const n of t){const t=Xae(e,fse(n),i);if(1===t)return n;t&&t>=o&&(o=t,r=n)}return o>=n?r:null}function fse(e){return"string"==typeof e?e:e.key}function mse(e,t,n,i){let r;if(n){if(r=hse(e,Object.keys(n.keywords),i))return n.keywords[r];for(const t of n.dependencies)if(r=hse(e,Object.keys(t.keywords),i))return t.keywords[r]}return(r=hse(e,t.options["stylesheet.keywords"],i))?vse(r):null}function gse(...e){return{type:"CSSValue",value:e}}function vse(e){return{type:"Literal",value:e}}function yse(e,t){return{type:"Field",index:e,name:t}}function bse(e){for(const t of e.value)if("Field"===t.type||"FunctionCall"===t.type&&t.arguments.some(bse))return!0;return!1}function kse(e,t,n={index:1}){let i=[];for(const r of e.value)switch(r.type){case"ColorValue":i.push(yse(n.index++,ese(r,t.options["stylesheet.shortHex"])));break;case"Literal":i.push(yse(n.index++,r.value));break;case"NumberValue":i.push(yse(n.index++,`${r.value}${r.unit}`));break;case"StringValue":const e="single"===r.quote?"'":'"';i.push(yse(n.index++,e+r.value+e));break;case"FunctionCall":i.push(yse(n.index++,r.name),vse("("));for(let e=0,o=r.arguments.length;e<o;e++)i=i.concat(kse(r.arguments[e],t,n).value),e!==o-1&&i.push(vse(", "));i.push(vse(")"));break;default:i.push(r)}return Object.assign(Object.assign({},e),{value:i})}function wse(e){return!!e.context&&("@@value"===e.context.name||!e.context.name.startsWith("@@"))}const _se={markup:"html",stylesheet:"css"},Cse={type:"markup",syntax:"html",variables:{lang:"en",locale:"en-US",charset:"UTF-8",indentation:"\t",newline:"\n"},snippets:{},options:{inlineElements:["a","abbr","acronym","applet","b","basefont","bdo","big","br","button","cite","code","del","dfn","em","font","i","iframe","img","input","ins","kbd","label","map","object","q","s","samp","select","small","span","strike","strong","sub","sup","textarea","tt","u","var"],"output.indent":"\t","output.baseIndent":"","output.newline":"\n","output.tagCase":"","output.attributeCase":"","output.attributeQuotes":"double","output.format":!0,"output.formatLeafNode":!1,"output.formatSkip":["html"],"output.formatForce":["body"],"output.inlineBreak":3,"output.compactBoolean":!1,"output.booleanAttributes":["contenteditable","seamless","async","autofocus","autoplay","checked","controls","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","novalidate","readonly","required","reversed","selected","typemustmatch"],"output.reverseAttributes":!1,"output.selfClosingStyle":"html","output.field":(e,t)=>t,"output.text":e=>e,"markup.href":!0,"comment.enabled":!1,"comment.trigger":["id","class"],"comment.before":"","comment.after":"\n\x3c!-- /[#ID][.CLASS] --\x3e","bem.enabled":!1,"bem.element":"__","bem.modifier":"_","jsx.enabled":!1,"stylesheet.keywords":["auto","inherit","unset","none"],"stylesheet.unitless":["z-index","line-height","opacity","font-weight","zoom","flex","flex-grow","flex-shrink"],"stylesheet.shortHex":!0,"stylesheet.between":": ","stylesheet.after":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.json":!1,"stylesheet.jsonDoubleQuotes":!1,"stylesheet.fuzzySearchMinScore":0}},xse={markup:{snippets:Sse({a:"a[href]","a:blank":"a[href='http://${0}' target='_blank' rel='noopener noreferrer']","a:link":"a[href='http://${0}']","a:mail":"a[href='mailto:${0}']","a:tel":"a[href='tel:+${0}']",abbr:"abbr[title]","acr|acronym":"acronym[title]",base:"base[href]/",basefont:"basefont/",br:"br/",frame:"frame/",hr:"hr/",bdo:"bdo[dir]","bdo:r":"bdo[dir=rtl]","bdo:l":"bdo[dir=ltr]",col:"col/",link:"link[rel=stylesheet href]/","link:css":"link[href='${1:style}.css']","link:print":"link[href='${1:print}.css' media=print]","link:favicon":"link[rel='shortcut icon' type=image/x-icon href='${1:favicon.ico}']","link:mf|link:manifest":"link[rel='manifest' href='${1:manifest.json}']","link:touch":"link[rel=apple-touch-icon href='${1:favicon.png}']","link:rss":"link[rel=alternate type=application/rss+xml title=RSS href='${1:rss.xml}']","link:atom":"link[rel=alternate type=application/atom+xml title=Atom href='${1:atom.xml}']","link:im|link:import":"link[rel=import href='${1:component}.html']",meta:"meta/","meta:utf":"meta[http-equiv=Content-Type content='text/html;charset=UTF-8']","meta:vp":"meta[name=viewport content='width=${1:device-width}, initial-scale=${2:1.0}']","meta:compat":"meta[http-equiv=X-UA-Compatible content='${1:IE=7}']","meta:edge":"meta:compat[content='${1:ie=edge}']","meta:redirect":"meta[http-equiv=refresh content='0; url=${1:http://example.com}']","meta:kw":"meta[name=keywords content]","meta:desc":"meta[name=description content]",style:"style",script:"script","script:src":"script[src]",img:"img[src alt]/","img:s|img:srcset":"img[srcset src alt]","img:z|img:sizes":"img[sizes srcset src alt]",picture:"picture","src|source":"source/","src:sc|source:src":"source[src type]","src:s|source:srcset":"source[srcset]","src:t|source:type":"source[srcset type='${1:image/}']","src:z|source:sizes":"source[sizes srcset]","src:m|source:media":"source[media='(${1:min-width: })' srcset]","src:mt|source:media:type":"source:media[type='${2:image/}']","src:mz|source:media:sizes":"source:media[sizes srcset]","src:zt|source:sizes:type":"source[sizes srcset type='${1:image/}']",iframe:"iframe[src frameborder=0]",embed:"embed[src type]/",object:"object[data type]",param:"param[name value]/",map:"map[name]",area:"area[shape coords href alt]/","area:d":"area[shape=default]","area:c":"area[shape=circle]","area:r":"area[shape=rect]","area:p":"area[shape=poly]",form:"form[action]","form:get":"form[method=get]","form:post":"form[method=post]",label:"label[for]",input:"input[type=${1:text}]/",inp:"input[name=${1} id=${1}]","input:h|input:hidden":"input[type=hidden name]","input:t|input:text":"inp[type=text]","input:search":"inp[type=search]","input:email":"inp[type=email]","input:url":"inp[type=url]","input:p|input:password":"inp[type=password]","input:datetime":"inp[type=datetime]","input:date":"inp[type=date]","input:datetime-local":"inp[type=datetime-local]","input:month":"inp[type=month]","input:week":"inp[type=week]","input:time":"inp[type=time]","input:tel":"inp[type=tel]","input:number":"inp[type=number]","input:color":"inp[type=color]","input:c|input:checkbox":"inp[type=checkbox]","input:r|input:radio":"inp[type=radio]","input:range":"inp[type=range]","input:f|input:file":"inp[type=file]","input:s|input:submit":"input[type=submit value]","input:i|input:image":"input[type=image src alt]","input:b|input:btn|input:button":"input[type=button value]","input:reset":"input:button[type=reset]",isindex:"isindex/",select:"select[name=${1} id=${1}]","select:d|select:disabled":"select[disabled.]","opt|option":"option[value]",textarea:"textarea[name=${1} id=${1} cols=${2:30} rows=${3:10}]",marquee:"marquee[behavior direction]","menu:c|menu:context":"menu[type=context]","menu:t|menu:toolbar":"menu[type=toolbar]",video:"video[src]",audio:"audio[src]","html:xml":"html[xmlns=http://www.w3.org/1999/xhtml]",keygen:"keygen/",command:"command/","btn:s|button:s|button:submit":"button[type=submit]","btn:r|button:r|button:reset":"button[type=reset]","btn:d|button:d|button:disabled":"button[disabled.]","fst:d|fset:d|fieldset:d|fieldset:disabled":"fieldset[disabled.]",bq:"blockquote",fig:"figure",figc:"figcaption",pic:"picture",ifr:"iframe",emb:"embed",obj:"object",cap:"caption",colg:"colgroup",fst:"fieldset",btn:"button",optg:"optgroup",tarea:"textarea",leg:"legend",sect:"section",art:"article",hdr:"header",ftr:"footer",adr:"address",dlg:"dialog",str:"strong",prog:"progress",mn:"main",tem:"template",fset:"fieldset",datag:"datagrid",datal:"datalist",kg:"keygen",out:"output",det:"details",sum:"summary",cmd:"command","ri:d|ri:dpr":"img:s","ri:v|ri:viewport":"img:z","ri:a|ri:art":"pic>src:m+img","ri:t|ri:type":"pic>src:t+img","!!!":"{<!DOCTYPE html>}",doc:"html[lang=${lang}]>(head>meta[charset=${charset}]+meta[http-equiv='X-UA-Compatible'][content='IE=edge']+meta:vp+title{${1:Document}})+body","!|html:5":"!!!+doc",c:"{\x3c!-- ${0} --\x3e}","cc:ie":"{\x3c!--[if IE]>${0}<![endif]--\x3e}","cc:noie":"{\x3c!--[if !IE]>\x3c!--\x3e${0}\x3c!--<![endif]--\x3e}"})},xhtml:{options:{"output.selfClosingStyle":"xhtml"}},xml:{options:{"output.selfClosingStyle":"xml"}},xsl:{snippets:Sse({"tm|tmatch":"xsl:template[match mode]","tn|tname":"xsl:template[name]",call:"xsl:call-template[name]",ap:"xsl:apply-templates[select mode]",api:"xsl:apply-imports",imp:"xsl:import[href]",inc:"xsl:include[href]",ch:"xsl:choose","wh|xsl:when":"xsl:when[test]",ot:"xsl:otherwise",if:"xsl:if[test]",par:"xsl:param[name]",pare:"xsl:param[name select]",var:"xsl:variable[name]",vare:"xsl:variable[name select]",wp:"xsl:with-param[name select]",key:"xsl:key[name match use]",elem:"xsl:element[name]",attr:"xsl:attribute[name]",attrs:"xsl:attribute-set[name]",cp:"xsl:copy[select]",co:"xsl:copy-of[select]",val:"xsl:value-of[select]","for|each":"xsl:for-each[select]",tex:"xsl:text",com:"xsl:comment",msg:"xsl:message[terminate=no]",fall:"xsl:fallback",num:"xsl:number[value]",nam:"namespace-alias[stylesheet-prefix result-prefix]",pres:"xsl:preserve-space[elements]",strip:"xsl:strip-space[elements]",proc:"xsl:processing-instruction[name]",sort:"xsl:sort[select order]",choose:"xsl:choose>xsl:when+xsl:otherwise",xsl:"!!!+xsl:stylesheet[version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform]>{\n|}","!!!":'{<?xml version="1.0" encoding="UTF-8"?>}'}),options:{"output.selfClosingStyle":"xml"}},jsx:{options:{"jsx.enabled":!0}},pug:{snippets:Sse({"!!!":"{doctype html}"})},stylesheet:{snippets:Sse({"@f":"@font-face {\n\tfont-family: ${1};\n\tsrc: url(${2});\n}","@ff":"@font-face {\n\tfont-family: '${1:FontName}';\n\tsrc: url('${2:FileName}.eot');\n\tsrc: url('${2:FileName}.eot?#iefix') format('embedded-opentype'),\n\t\t url('${2:FileName}.woff') format('woff'),\n\t\t url('${2:FileName}.ttf') format('truetype'),\n\t\t url('${2:FileName}.svg#${1:FontName}') format('svg');\n\tfont-style: ${3:normal};\n\tfont-weight: ${4:normal};\n}","@i|@import":"@import url(${0});","@kf":"@keyframes ${1:identifier} {\n\t${2}\n}","@m|@media":"@media ${1:screen} {\n\t${0}\n}",ac:"align-content:start|end|flex-start|flex-end|center|space-between|space-around|stretch|space-evenly",ai:"align-items:start|end|flex-start|flex-end|center|baseline|stretch",anim:"animation:${1:name} ${2:duration} ${3:timing-function} ${4:delay} ${5:iteration-count} ${6:direction} ${7:fill-mode}",animdel:"animation-delay:time",animdir:"animation-direction:normal|reverse|alternate|alternate-reverse",animdur:"animation-duration:${1:0}s",animfm:"animation-fill-mode:both|forwards|backwards",animic:"animation-iteration-count:1|infinite",animn:"animation-name",animps:"animation-play-state:running|paused",animtf:"animation-timing-function:linear|ease|ease-in|ease-out|ease-in-out|cubic-bezier(${1:0.1}, ${2:0.7}, ${3:1.0}, ${3:0.1})",ap:"appearance:none",as:"align-self:start|end|auto|flex-start|flex-end|center|baseline|stretch",b:"bottom",bd:"border:${1:1px} ${2:solid} ${3:#000}",bdb:"border-bottom:${1:1px} ${2:solid} ${3:#000}",bdbc:"border-bottom-color:${1:#000}",bdbi:"border-bottom-image:url(${0})",bdbk:"border-break:close",bdbli:"border-bottom-left-image:url(${0})|continue",bdblrs:"border-bottom-left-radius",bdbri:"border-bottom-right-image:url(${0})|continue",bdbrrs:"border-bottom-right-radius",bdbs:"border-bottom-style",bdbw:"border-bottom-width",bdc:"border-color:${1:#000}",bdci:"border-corner-image:url(${0})|continue",bdcl:"border-collapse:collapse|separate",bdf:"border-fit:repeat|clip|scale|stretch|overwrite|overflow|space",bdi:"border-image:url(${0})",bdl:"border-left:${1:1px} ${2:solid} ${3:#000}",bdlc:"border-left-color:${1:#000}",bdlen:"border-length",bdli:"border-left-image:url(${0})",bdls:"border-left-style",bdlw:"border-left-width",bdr:"border-right:${1:1px} ${2:solid} ${3:#000}",bdrc:"border-right-color:${1:#000}",bdri:"border-right-image:url(${0})",bdrs:"border-radius",bdrst:"border-right-style",bdrw:"border-right-width",bds:"border-style:none|hidden|dotted|dashed|solid|double|dot-dash|dot-dot-dash|wave|groove|ridge|inset|outset",bdsp:"border-spacing",bdt:"border-top:${1:1px} ${2:solid} ${3:#000}",bdtc:"border-top-color:${1:#000}",bdti:"border-top-image:url(${0})",bdtli:"border-top-left-image:url(${0})|continue",bdtlrs:"border-top-left-radius",bdtri:"border-top-right-image:url(${0})|continue",bdtrrs:"border-top-right-radius",bdts:"border-top-style",bdtw:"border-top-width",bdw:"border-width",bfv:"backface-visibility:hidden|visible",bg:"background:${1:#000}",bga:"background-attachment:fixed|scroll",bgbk:"background-break:bounding-box|each-box|continuous",bgc:"background-color:#${1:fff}",bgcp:"background-clip:padding-box|border-box|content-box|no-clip",bgi:"background-image:url(${0})",bgo:"background-origin:padding-box|border-box|content-box",bgp:"background-position:${1:0} ${2:0}",bgpx:"background-position-x",bgpy:"background-position-y",bgr:"background-repeat:no-repeat|repeat-x|repeat-y|space|round",bgsz:"background-size:contain|cover",bxsh:"box-shadow:${1:inset }${2:hoff} ${3:voff} ${4:blur} ${5:#000}|none",bxsz:"box-sizing:border-box|content-box|border-box",c:"color:${1:#000}",cr:"color:rgb(${1:0}, ${2:0}, ${3:0})",cra:"color:rgba(${1:0}, ${2:0}, ${3:0}, ${4:.5})",cl:"clear:both|left|right|none",cm:"/* ${0} */",cnt:"content:'${0}'|normal|open-quote|no-open-quote|close-quote|no-close-quote|attr(${0})|counter(${0})|counters(${0})",coi:"counter-increment",colm:"columns",colmc:"column-count",colmf:"column-fill",colmg:"column-gap",colmr:"column-rule",colmrc:"column-rule-color",colmrs:"column-rule-style",colmrw:"column-rule-width",colms:"column-span",colmw:"column-width",cor:"counter-reset",cp:"clip:auto|rect(${1:top} ${2:right} ${3:bottom} ${4:left})",cps:"caption-side:top|bottom",cur:"cursor:pointer|auto|default|crosshair|hand|help|move|pointer|text",d:"display:block|none|flex|inline-flex|inline|inline-block|grid|inline-grid|subgrid|list-item|run-in|compact|table|inline-table|table-caption|table-column|table-column-group|table-header-group|table-footer-group|table-row|table-row-group|table-cell|ruby|ruby-base|ruby-base-group|ruby-text|ruby-text-group",ec:"empty-cells:show|hide",f:"font:${1:1em} ${2:sans-serif}",fd:"font-display:auto|block|swap|fallback|optional",fef:"font-effect:none|engrave|emboss|outline",fem:"font-emphasize",femp:"font-emphasize-position:before|after",fems:"font-emphasize-style:none|accent|dot|circle|disc",ff:"font-family:serif|sans-serif|cursive|fantasy|monospace",fft:'font-family:"Times New Roman", Times, Baskerville, Georgia, serif',ffa:'font-family:Arial, "Helvetica Neue", Helvetica, sans-serif',ffv:"font-family:Verdana, Geneva, sans-serif",fl:"float:left|right|none",fs:"font-style:italic|normal|oblique",fsm:"font-smoothing:antialiased|subpixel-antialiased|none",fst:"font-stretch:normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded",fv:"font-variant:normal|small-caps",fvs:"font-variation-settings:normal|inherit|initial|unset",fw:"font-weight:normal|bold|bolder|lighter",fx:"flex",fxb:"flex-basis:fill|max-content|min-content|fit-content|content",fxd:"flex-direction:row|row-reverse|column|column-reverse",fxf:"flex-flow",fxg:"flex-grow",fxsh:"flex-shrink",fxw:"flex-wrap:nowrap|wrap|wrap-reverse",fsz:"font-size",fsza:"font-size-adjust",gtc:"grid-template-columns:repeat()|minmax()",gtr:"grid-template-rows:repeat()|minmax()",gta:"grid-template-areas",gt:"grid-template",gg:"grid-gap",gcg:"grid-column-gap",grg:"grid-row-gap",gac:"grid-auto-columns:auto|minmax()",gar:"grid-auto-rows:auto|minmax()",gaf:"grid-auto-flow:row|column|dense|inherit|initial|unset",gd:"grid",gc:"grid-column",gcs:"grid-column-start",gce:"grid-column-end",gr:"grid-row",grs:"grid-row-start",gre:"grid-row-end",ga:"grid-area",h:"height",jc:"justify-content:start|end|stretch|flex-start|flex-end|center|space-between|space-around|space-evenly",ji:"justify-items:start|end|center|stretch",js:"justify-self:start|end|center|stretch",l:"left",lg:"background-image:linear-gradient(${1})",lh:"line-height",lis:"list-style",lisi:"list-style-image",lisp:"list-style-position:inside|outside",list:"list-style-type:disc|circle|square|decimal|decimal-leading-zero|lower-roman|upper-roman",lts:"letter-spacing:normal",m:"margin",mah:"max-height",mar:"max-resolution",maw:"max-width",mb:"margin-bottom",mih:"min-height",mir:"min-resolution",miw:"min-width",ml:"margin-left",mr:"margin-right",mt:"margin-top",ol:"outline",olc:"outline-color:${1:#000}|invert",olo:"outline-offset",ols:"outline-style:none|dotted|dashed|solid|double|groove|ridge|inset|outset",olw:"outline-width|thin|medium|thick","op|opa":"opacity",ord:"order",ori:"orientation:landscape|portrait",orp:"orphans",ov:"overflow:hidden|visible|hidden|scroll|auto",ovs:"overflow-style:scrollbar|auto|scrollbar|panner|move|marquee",ovx:"overflow-x:hidden|visible|hidden|scroll|auto",ovy:"overflow-y:hidden|visible|hidden|scroll|auto",p:"padding",pb:"padding-bottom",pgba:"page-break-after:auto|always|left|right",pgbb:"page-break-before:auto|always|left|right",pgbi:"page-break-inside:auto|avoid",pl:"padding-left",pos:"position:relative|absolute|relative|fixed|static",pr:"padding-right",pt:"padding-top",q:"quotes",qen:"quotes:'\\201C' '\\201D' '\\2018' '\\2019'",qru:"quotes:'\\00AB' '\\00BB' '\\201E' '\\201C'",r:"right",rsz:"resize:none|both|horizontal|vertical",t:"top",ta:"text-align:left|center|right|justify",tal:"text-align-last:left|center|right",tbl:"table-layout:fixed",td:"text-decoration:none|underline|overline|line-through",te:"text-emphasis:none|accent|dot|circle|disc|before|after",th:"text-height:auto|font-size|text-size|max-size",ti:"text-indent",tj:"text-justify:auto|inter-word|inter-ideograph|inter-cluster|distribute|kashida|tibetan",to:"text-outline:${1:0} ${2:0} ${3:#000}",tov:"text-overflow:ellipsis|clip",tr:"text-replace",trf:"transform:${1}|skewX(${1:angle})|skewY(${1:angle})|scale(${1:x}, ${2:y})|scaleX(${1:x})|scaleY(${1:y})|scaleZ(${1:z})|scale3d(${1:x}, ${2:y}, ${3:z})|rotate(${1:angle})|rotateX(${1:angle})|rotateY(${1:angle})|rotateZ(${1:angle})|translate(${1:x}, ${2:y})|translateX(${1:x})|translateY(${1:y})|translateZ(${1:z})|translate3d(${1:tx}, ${2:ty}, ${3:tz})",trfo:"transform-origin",trfs:"transform-style:preserve-3d",trs:"transition:${1:prop} ${2:time}",trsde:"transition-delay:${1:time}",trsdu:"transition-duration:${1:time}",trsp:"transition-property:${1:prop}",trstf:"transition-timing-function:${1:fn}",tsh:"text-shadow:${1:hoff} ${2:voff} ${3:blur} ${4:#000}",tt:"text-transform:uppercase|lowercase|capitalize|none",tw:"text-wrap:none|normal|unrestricted|suppress",us:"user-select:none",v:"visibility:hidden|visible|collapse",va:"vertical-align:top|super|text-top|middle|baseline|bottom|text-bottom|sub",w:"width",whs:"white-space:nowrap|pre|pre-wrap|pre-line|normal",whsc:"white-space-collapse:normal|keep-all|loose|break-strict|break-all",wid:"widows",wm:"writing-mode:lr-tb|lr-tb|lr-bt|rl-tb|rl-bt|tb-rl|tb-lr|bt-lr|bt-rl",wob:"word-break:normal|keep-all|break-all",wos:"word-spacing",wow:"word-wrap:none|unrestricted|suppress|break-word|normal",z:"z-index",zom:"zoom:1"})},sass:{options:{"stylesheet.after":""}},stylus:{options:{"stylesheet.between":" ","stylesheet.after":""}}};function Sse(e){const t={};return Object.keys(e).forEach(n=>{for(const i of n.split("|"))t[i]=e[n]}),t}function Ese(e,t,n,i,r={}){const o=xse[e],a=r[e],s=xse[t],l=r[t];return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Cse[n]),o&&o[n]),s&&s[n]),a&&a[n]),l&&l[n]),i[n])}"#.*:$-_!@%^+>/".split("").map(e=>e.charCodeAt(0));function Ase(e,t){const n=function(e={},t={}){const n=e.type||"markup",i=e.syntax||_se[n];return Object.assign(Object.assign(Object.assign({},Cse),e),{type:n,syntax:i,variables:Ese(n,i,"variables",e,t),snippets:Ese(n,i,"snippets",e,t),options:Ese(n,i,"options",e,t)})}(t);return"stylesheet"===n.type?function(e,t){return function(e,t){var n;const i=Moe(t.options),r=t.options["output.format"];"@@section"===(null===(n=t.context)||void 0===n?void 0:n.name)&&(e=e.filter(e=>e.snippet));for(let n=0;n<e.length;n++)r&&0!==n&&joe(i,!0),ose(e[n],i,t);return i.value}(use(e,t),t)}(e,n):function(e,t){return function(e,t){return(qae[t.syntax]||Pae)(e,t)}(Hae(e,t),t)}(e,n)}const Dse={"{":"}","[":"]","(":")"},Tse=[];for(const e of Object.keys(Dse))Tse.push(Dse[e]);function Ise(e){return 32===e||9===e||160===e||10===e||13===e}function Ose(e,t){const n=e[e.length-1];!t||t[0]===t[1]||n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function Pse(e,t=0){const n=[],i=e.length;let r=0,o=0,a=0;for(;r<i;){a=r;if(Ise(e.charCodeAt(r++))){for(o!==a&&n.push([t+o,t+a]);Ise(e.charCodeAt(r));)r++;o=r}}return o!==r&&n.push([t+o,t+r]),n}function Fse(e){return'"'===e||"'"===e}function $se(e){const{value:t}=e;return t&&function(e){return!!e&&(t=e,t.length>1&&Fse(t[0])&&t[0]===t.slice(-1)||function(e){return"{"===e[0]&&"}"===e.slice(-1)}(e));var t}(t)?t.slice(1,-1):t}function Mse(e){return e.length>0?e[e.length-1]:void 0}function Lse(e,t){const n=nie(t),i=[],r=[];return xie(e,(e,t,n,o)=>{if(3===t)r.push({name:e,open:[n,o]});else if(1===t){const t={name:e,open:[n,o]};i.push(t),r.push(t)}else for(;i.length;){const t=i.pop();if(t.name===e){t.close=[n,o];break}}},n),r}function Nse(e,t,n){return n?function(e,t){let n=null,i="",r=-1,o=-1;if(xie(e,(e,a,s,l)=>{if(s>=t)return!1;1!==a&&3!==a||(i=e,n=a,r=s,o=l)}),null!==n)return jse(e,i,r,o)}(e,t):function(e,t){let n;return xie(e,(i,r,o,a)=>{if((1===r||3===r)&&a>t)return n=jse(e,i,o,a),!1}),n}(e,t)}function jse(e,t,n,i){const r=[[n+1,n+1+t.length]],o=e.slice(n,i);for(const e of hie(o,t))if(null!=e.value){Ose(r,[n+e.nameStart,n+e.valueEnd]);const t=Bse(e);if(t[0]!==t[1]&&(Ose(r,[n+t[0],n+t[1]]),"class"===e.name)){const e=Pse(o.slice(t[0],t[1]),n+t[0]);for(const t of e)Ose(r,t)}}else Ose(r,[n+e.nameStart,n+e.nameEnd]);return{start:n,end:i,ranges:r}}function Bse(e){const t=e.value,n=t[0],i=t[t.length-1];return'"'===n||"'"===n?[e.valueStart+1,e.valueEnd-(i===n?1:0)]:"{"===n&&"}"===i?[e.valueStart+1,e.valueEnd-1]:[e.valueStart,e.valueEnd]}function Rse(e,t,n){return n?function(e,t){const n={type:null,start:-1,end:-1,valueStart:-1,valueEnd:-1,valueDelimiter:-1};if(Pie(e,(e,i,r,o)=>{if(i>=t&&"propertyValue"!==e)return!1;"selector"===e||"propertyName"===e?(n.start=i,n.end=r,n.type=e,n.valueStart=n.valueEnd=n.valueDelimiter=-1):"propertyValue"===e&&(n.valueStart=i,n.valueEnd=r,n.valueDelimiter=o)}),"selector"===n.type)return{start:n.start,end:n.end,ranges:[[n.start,n.end]]};if("propertyName"===n.type){const t={start:n.start,end:n.end,ranges:[]};if(-1!==n.valueStart){t.end=-1!==n.valueDelimiter?n.valueDelimiter+1:n.valueEnd,Ose(t.ranges,[n.start,t.end]),Ose(t.ranges,[n.valueStart,n.valueEnd]);for(const i of Bie(e.substring(n.valueStart,n.valueEnd)))Ose(t.ranges,[i[0]+n.valueStart,i[1]+n.valueStart])}else Ose(t.ranges,[n.start,n.end]);return t}}(e,t):function(e,t){let n,i;return Pie(e,(r,o,a,s)=>{if(!(o<t)){if("selector"===r)return n={start:o,end:a,ranges:[[o,a]]},!1;if("propertyName"===r)i=[o,a,s];else{if("propertyValue"===r){n={start:o,end:-1!==s?s+1:a,ranges:[]},i&&(n.start=i[0],Ose(n.ranges,[i[0],n.end])),Ose(n.ranges,[o,a]);for(const t of Bie(e.substring(o,a)))Ose(n.ranges,[t[0]+o,t[1]+o]);return!1}if(i)return n={start:i[0],end:i[1],ranges:[[i[0],i[1]]]},!1}}}),n}(e,t)}function Vse(e,t,n={}){const i={type:"html",ancestors:[],current:null,css:null},r=[],o=[],a=nie({xml:n.xml,allTokens:!0});return xie(e,(e,n,s,l)=>!(s>=t)&&(s<t&&t<l?(i.current={name:e,type:n,range:[s,l]},!1):(1===n&&function(e,t){return!t.xml&&t.empty.includes(e)}(e,a)&&(n=3),void(1===n?o.push(Use(r,e,n,s,l)):2===n&&o.length&&Mse(o).name===e&&Wse(r,o.pop())))),a),o.forEach(e=>{i.ancestors.push({name:e.name,range:[e.start,e.end]})}),n.skipCSS||(i.css=function(e,t,n){let i=null;if(n.current){const r=n.current;if(1===r.type||2===r.type){const n=e.slice(r.range[0],r.range[1]);hie(n,r.name).some(o=>{if("style"===o.name&&null!=o.value){const[a,s]=function(e,t,n=0){let i=t.valueStart,r=t.valueEnd;return Fse(e[i])&&i++,Fse(e[r-1])&&r>i&&r--,[n+i,n+r]}(n,o,r.range[0]);if(t>=a&&t<=s)return i=qse(e.slice(a,s),t-a,[a,s]),Gse(i,a),i.inline=!0,!0}})}}else if(n.ancestors.length){const r=Mse(n.ancestors);if("style"===r.name){const n=r.range[1];let o=e.length;xie(e.slice(r.range[1]),(e,t,i)=>{if(e===r.name&&2===t)return o=i+n,!1}),i=qse(e.slice(n,o),t-n,[n,o]),Gse(i,n)}}return i}(e,t,i)),i}function qse(e,t,n){const i={type:"css",ancestors:[],current:null,inline:!1,embedded:n},r=[],o=[];return Pie(e,(n,a,s)=>{if(a>=t)return!1;if(a<t&&t<=s)return i.current={name:e.slice(a,s),type:n,range:[a,s]},!1;switch(n){case"selector":case"propertyName":o.push(Use(r,e.slice(a,s),n,a,s));break;case"propertyValue":case"blockEnd":Wse(r,o.pop())}}),o.forEach(e=>{i.ancestors.push({name:e.name,type:e.type,range:[e.start,e.end]})}),i}function Hse(e,t){const n=Mse(t.ancestors);if(n){const t={};for(const i of hie(e.slice(n.range[0],n.range[1]),n.name))t[i.name]=$se(i)||"";return{name:n.name,attributes:t}}}function zse(e){if(e.inline)return{name:"@@property"};const t=Mse(e.ancestors);let n="@@global";return e.current&&("propertyValue"===e.current.type&&t?n=t.name:"selector"!==e.current.type&&"propertyName"!==e.current.type||t||(n="@@section")),{name:n}}function Use(e,t,n,i,r){if(e.length){const o=e.pop();return o.name=t,o.type=n,o.start=i,o.end=r,o}return{name:t,type:n,start:i,end:r}}function Wse(e,t){t&&e.push(t)}function Gse(e,t){e.ancestors.forEach(e=>{Kse(e.range,t)}),e.current&&Kse(e.current.range,t)}function Kse(e,t){e[0]+=t,e[1]+=t}const Qse=/^[a-zA-Z.#\[\(]$/,Yse=/^[\s>;"\']?[a-zA-Z.#!@\[\(]$/,Jse=/^[\s;"\']?[a-zA-Z!@]$/;const Xse=String.fromCodePoint(65520),Zse=String.fromCodePoint(65521),ele="$$emmet",tle={"{":"}","[":"]","(":")"};for(const e of Object.keys(tle));let nle=0;function ile(e,t){const n=sle(e,t);let i=0,r=n.length;for(;i<r&&ple(n[i]);)i++;for(;r>i&&ple(n[r-1]);)r--;return[t[0]+i,t[0]+r]}function rle(e,t,n){return e.operation(()=>{const i=function(e,t=0){const n=[];let i,r="",o=null,a=0,s=0;for(;s<e.length;)i=e.charAt(s++),i!==Xse&&i!==Zse||(r+=e.slice(a,s-1),a=s,i===Xse?(o=[t+r.length,t+r.length],n.push(o)):o&&(o[1]=t+r.length,o=null));return{ranges:n,snippet:r+e.slice(a)}}(n,t[0]),[r,o]=lle(e,t);if(e.replaceRange(i.snippet,r,o),i.ranges.length){const t=i.ranges.map(t=>{const[n,i]=lle(e,t);return{head:n,anchor:i}});e.setSelections(t)}return!0})}function ole(e){const t=e.getCursor();return e.indexFromPos(t)}function ale(e){return e.getValue()}function sle(e,t){const[n,i]=lle(e,t);return e.getRange(n,i)}function lle(e,t){return[e.posFromIndex(t[0]),e.posFromIndex(t[1])]}function cle(e){const{value:t}=e;return t&&function(e){return!!e&&(dle(e)||(t=e,"{"===t[0]&&"}"===t.slice(-1)));var t}(t)?t.slice(1,-1):t}function ule(e){return'"'===e||"'"===e}function dle(e){return e.length>1&&ule(e[0])&&e[0]===e.slice(-1)}function ple(e){return/^[\s\n\r]+$/.test(e)}function hle(e){return e.constructor.Pass}function fle(e,t){const n=e.indexFromPos(t.head),i=e.indexFromPos(t.anchor);return[Math.min(n,i),Math.max(n,i)]}function mle(e,t){return e[0]===t[0]&&e[1]===t[1]}function gle(e,t){return e[0]<=t[0]&&e[1]>=t[1]}function vle(e){return e[0]===e[1]}function yle(e,t="emmet-error-snippet"){const n=e.message.split("\n")[0];return`<div class="${t}">\n <div class="${t}-ptr">\n <div class="${t}-line"></div>\n <div class="${t}-tip"></div>\n <div class="${t}-spacer">${" ".repeat(e.pos||0)}</div>\n </div>\n <div class="${t}-message">${function(e){const t={"<":"<",">":">","&":"&"};return e.replace(/[<>&]/g,e=>t[e])}(n.replace(/\s+at\s+\d+$/,""))}</div>\n </div>`}function ble(e){return e.length>0?e[e.length-1]:void 0}function kle(e){return ele in e}function wle(e){return kle(e)||(e[ele]={id:String(nle++)}),e[ele]}const _le={xml:!1,allTokens:!1,special:{style:null,script:["","text/javascript","application/x-javascript","javascript","typescript","ts","coffee","coffeescript"]},empty:["img","meta","link","br","base","hr","area","wbr","col","embed","input","param","source","track"]},Cle={throws:!1};function xle(e={}){return Object.assign(Object.assign({},_le),e)}function Sle(e){return e.split("").map(e=>e.charCodeAt(0))}function Ele(e,t){const n=e.pos;for(let i=0;i<t.length;i++)if(!e.eat(t[i]))return e.pos=n,!1;return e.start=n,!0}function Ale(e,t,n,i){const r=e.pos;if(Ele(e,t)){for(;!e.eof();){if(Ele(e,n))return e.start=r,!0;e.pos++}return i?(e.start=r,!0):(e.pos=r,!1)}return e.pos=r,!1}function Dle(e){return Vee(e)||58===e||95===e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191}function Tle(e){return Dle(e)||45===e||46===e||Ree(e)||183===e||e>=768&&e<=879}function Ile(e){const t=e.pos;return!!e.eat(Dle)&&(e.eatWhile(Tle),e.start=t,!0)}function Ole(e){return 62===e||47===e}function Ple(e){return!(isNaN(e)||Gee(e)||Uee(e)||Ole(e))}function Fle(e){return Kee(e,60,62,Cle)||Kee(e,40,41,Cle)||Kee(e,91,93,Cle)||Kee(e,123,125,Cle)}function $le(e){return Gee(e.charCodeAt(0))&&(e=e.slice(1)),Gee(e.charCodeAt(e.length-1))&&(e=e.slice(0,-1)),e}function Mle(e,t){const n=[];let i=0,r=e.length;t&&(i=t.length+1,r-="/>"===e.slice(-2)?2:1);const o=new Qee(e,i,r);for(;!o.eof();)if(o.eatWhile(Uee),Lle(o)){const e={name:o.current(),nameStart:o.start,nameEnd:o.pos};o.eat(61)&&Nle(o)&&(e.value=o.current(),e.valueStart=o.start,e.valueEnd=o.pos),n.push(e)}else o.pos++;return n}function Lle(e){const t=e.pos;return e.eat(42)||e.eat(35)?(Ile(e),e.start=t,!0):Fle(e)||Ile(e)}function Nle(e){return Wee(e,Cle)||Fle(e)||function(e){const t=e.pos;if(e.eatWhile(Ple))return e.start=t,!0}(e)}const jle=Sle("<![CDATA["),Ble=Sle("]]>"),Rle=Sle("\x3c!--"),Vle=Sle("--\x3e"),qle=Sle("<?"),Hle=Sle("?>"),zle=Sle("<%"),Ule=Sle("%>");function Wle(e,t,n){const i=new Qee(e),r=n?n.special:null,o=!!n&&n.allTokens;let a,s,l,c,u,d=!1,p=null;for(;!i.eof();){const n=i.pos;if(Qle(i)){if(o&&!1===t("#cdata",4,i.start,i.pos))break}else if(Yle(i)){if(o&&!1===t("#comment",6,i.start,i.pos))break}else if(Xle(i)){if(o&&!1===t("#erb",7,i.start,i.pos))break}else if(p=Jle(i)){if(o&&!1===t(p,5,i.start,i.pos))break}else if(i.eat(60)){if(a=i.eat(47)?2:1,l=i.pos,Ile(i)&&(c=i.pos,2!==a&&(Gle(i),i.eatWhile(Uee),i.eat(47)&&(a=3)),i.eat(62))){if(s=i.substring(l,c),!1===t(s,a,n,i.pos))break;if(1===a&&r&&Zle(r,s,e,n,i.pos)){for(u=Sle(s),d=!1;!i.eof();){if(Kle(i,u)){d=!0;break}i.pos++}if(d&&!1===t(s,2,i.start,i.pos))break}}}else i.pos++}}function Gle(e){for(;!e.eof();)if(e.eatWhile(Uee),Lle(e))e.eat(61)&&Nle(e);else{if(Ole(e.peek()))break;e.pos++}}function Kle(e,t){const n=e.pos;return e.eat(60)&&e.eat(47)&&Ele(e,t)&&e.eat(62)?(e.start=n,!0):(e.pos=n,!1)}function Qle(e){return Ale(e,jle,Ble,!0)}function Yle(e){return Ale(e,Rle,Vle,!0)}function Jle(e){const t=e.pos;if(Ele(e,qle)&&Ile(e)){const n=e.current();for(;!e.eof()&&!Ele(e,Hle);)Wee(e)||e.pos++;return e.start=t,n}return e.pos=t,null}function Xle(e){const t=e.pos;if(Ele(e,zle)){for(;!e.eof()&&!Ele(e,Ule);)Wee(e)||e.pos++;return e.start=t,!0}return e.pos=t,!1}function Zle(e,t,n,i,r){if(t in e){const o=e[t];if(!Array.isArray(o))return!0;const a=Mle(n.substring(i+t.length+1,r-1));return o.includes(function(e,t){for(let n=0;n<e.length;n++){const i=e[n];if(i.name===t)return i.value&&$le(i.value)}}(a,"type")||"")}return!1}function ece(e,t,n,i){if(e.length){const r=e.pop();return r.name=t,r.start=n,r.end=i,r}return{name:t,start:n,end:i}}function tce(e,t){e.push(t)}function nce(e,t,n,i){const r=Mle(e.slice(t,n),i);return r.forEach(e=>{e.nameStart+=t,e.nameEnd+=t,null!=e.value&&(e.valueStart+=t,e.valueEnd+=t)}),r}function ice(e,t){return!t.xml&&t.empty.includes(e)}function rce(e){return e.length?e[e.length-1]:null}const oce=["xml","xsl","jsx"],ace=["html","htmlmixed","vue"],sce=["css","scss","less"],lce=["jsx","tsx"],cce=["haml","jade","pug","slim"].concat(ace,oce,lce),uce=["sass","sss","stylus","postcss"].concat(sce);function dce(e,t){let n,i,r=pce(e);if(mce(r)){const o=ale(e);i=Vse(o,t,{xml:fce(r)}),i.css&&(r=function(e,t){const n=ble(t.ancestors);if(n&&"style"===n.name)for(const t of Mle(e.slice(n.range[0],n.range[1]),n.name))if("type"===t.name)return cle(t)}(o,i)||"css",n=i.css.inline,i=i.css)}else gce(r)&&(i=qse(ale(e),t));return{type:hce(r),syntax:r,inline:n,context:i}}function pce(e){const t=e.getMode();return t?"htmlmixed"===t.name?"html":t.name||"":""}function hce(e){return e&&uce.includes(e)?"stylesheet":"markup"}function fce(e){return!!e&&oce.includes(e)}function mce(e){return!!e&&(ace.includes(e)||fce(e))}function gce(e){return!!e&&sce.includes(e)}function vce(e){return!!e&&lce.includes(e)}function yce(e,t){if(!0===e)return!0;if(Array.isArray(e)){const n=[t.type,t.syntax];return t.inline&&n.push(`${t.type}-inline`,`${t.syntax}-inline`),n.some(t=>e.includes(t))}return!1}function bce(e,t,n){if(e&&t){e.length&&n&&wce(e,n);for(const n of t)wce(e,n);return e}const i=e||t;return i&&i.slice()}function kce(e,t,n){return e.name=t.name,n.options["output.reverseAttributes"]||(e.value=t.value),e.implied||(e.implied=t.implied),e.boolean||(e.boolean=t.boolean),"expression"!==e.valueType&&(e.valueType=t.valueType),e}function wce(e,t){const n=e.length-1;"string"==typeof e[n]&&"string"==typeof t?e[n]+=t:e.push(t)}function _ce(e){let t;for(;e.children.length;)t=e,e=e.children[e.children.length-1];return{parent:t,node:e}}function Cce(e){return"AbbreviationNode"===e.type}function xce(e,t,n){let i=[];for(const n of e.children){const e=t(n);if(e){i=i.concat(e.children);const r=_ce(e);Cce(r.node)&&(r.node.children=r.node.children.concat(xce(n,t)))}else i.push(n),n.children=xce(n,t)}return e.children=i}function Sce(e,t){e.selfClosing&&(t.selfClosing=!0),null!=e.value&&(t.value=e.value),e.repeat&&(t.repeat=e.repeat)}function Ece(e,t=0){return{options:e,value:"",level:t,offset:0,line:0,column:0}}function Ace(e,t){Mce(e,(0,e.options["output.text"])(t,e.offset,e.line,e.column))}function Dce(e,t){const n=t.split(/\r\n|\r|\n/g);for(let t=0,i=n.length-1;t<=i;t++)Ace(e,n[t]),t!==i&&Tce(e,!0)}function Tce(e,t){const n=e.options["output.baseIndent"];Ace(e,e.options["output.newline"]+n),e.line++,e.column=n.length,t&&function(e,t=e.level){const n=e.options["output.indent"];Ace(e,n.repeat(Math.max(t,0)))}(e,!0===t?e.level:t)}function Ice(e,t,n){Mce(e,(0,e.options["output.field"])(t,n,e.offset,e.line,e.column))}function Oce(e,t){return Lce(e,t.options["output.attributeCase"])}function Pce(e,t,n){return"expression"===e.valueType?n?"{":"}":"single"===t.options["output.attributeQuotes"]?"'":'"'}function Fce(e,t){return e.boolean||t.options["output.booleanAttributes"].includes((e.name||"").toLowerCase())}function $ce(e,t){return"string"==typeof e?t.options.inlineElements.includes(e.toLowerCase()):e.name?$ce(e.name,t):Boolean(e.value&&!e.attributes)}function Mce(e,t){e.value+=t,e.offset+=t.length,e.column+=t.length}function Lce(e,t){return t?"upper"===t?e.toUpperCase():e.toLowerCase():e}const Nce={p:"span",ul:"li",ol:"li",table:"tr",tr:"td",tbody:"tr",thead:"tr",tfoot:"tr",colgroup:"col",select:"option",optgroup:"option",audio:"source",video:"source",object:"param",map:"area"};function jce(e,t,n){const i=function(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if(Cce(n))return n}}(t),r=n.context?n.context.name:"",o=((i?i.name:r)||"").toLowerCase();e.name=Nce[o]||($ce(o,n)?"span":"div")}const Bce={ru:{common:["далеко-далеко","за","словесными","горами","в стране","гласных","и согласных","живут","рыбные","тексты"],words:["вдали","от всех","они","буквенных","домах","на берегу","семантика","большого","языкового","океана","маленький","ручеек","даль","журчит","по всей","обеспечивает","ее","всеми","необходимыми","правилами","эта","парадигматическая","страна","которой","жаренные","предложения","залетают","прямо","рот","даже","всемогущая","пунктуация","не","имеет","власти","над","рыбными","текстами","ведущими","безорфографичный","образ","жизни","однажды","одна","маленькая","строчка","рыбного","текста","имени","lorem","ipsum","решила","выйти","большой","мир","грамматики","великий","оксмокс","предупреждал","о","злых","запятых","диких","знаках","вопроса","коварных","точках","запятой","но","текст","дал","сбить","себя","толку","он","собрал","семь","своих","заглавных","букв","подпоясал","инициал","за","пояс","пустился","дорогу","взобравшись","первую","вершину","курсивных","гор","бросил","последний","взгляд","назад","силуэт","своего","родного","города","буквоград","заголовок","деревни","алфавит","подзаголовок","своего","переулка","грустный","реторический","вопрос","скатился","его","щеке","продолжил","свой","путь","дороге","встретил","рукопись","она","предупредила","моей","все","переписывается","несколько","раз","единственное","что","меня","осталось","это","приставка","возвращайся","ты","лучше","свою","безопасную","страну","послушавшись","рукописи","наш","продолжил","свой","путь","вскоре","ему","повстречался","коварный","составитель","рекламных","текстов","напоивший","языком","речью","заманивший","свое","агентство","которое","использовало","снова","снова","своих","проектах","если","переписали","то","живет","там","до","сих","пор"]},sp:{common:["mujer","uno","dolor","más","de","poder","mismo","si"],words:["ejercicio","preferencia","perspicacia","laboral","paño","suntuoso","molde","namibia","planeador","mirar","demás","oficinista","excepción","odio","consecuencia","casi","auto","chicharra","velo","elixir","ataque","no","odio","temporal","cuórum","dignísimo","facilismo","letra","nihilista","expedición","alma","alveolar","aparte","león","animal","como","paria","belleza","modo","natividad","justo","ataque","séquito","pillo","sed","ex","y","voluminoso","temporalidad","verdades","racional","asunción","incidente","marejada","placenta","amanecer","fuga","previsor","presentación","lejos","necesariamente","sospechoso","adiposidad","quindío","pócima","voluble","débito","sintió","accesorio","falda","sapiencia","volutas","queso","permacultura","laudo","soluciones","entero","pan","litro","tonelada","culpa","libertario","mosca","dictado","reincidente","nascimiento","dolor","escolar","impedimento","mínima","mayores","repugnante","dulce","obcecado","montaña","enigma","total","deletéreo","décima","cábala","fotografía","dolores","molesto","olvido","paciencia","resiliencia","voluntad","molestias","magnífico","distinción","ovni","marejada","cerro","torre","y","abogada","manantial","corporal","agua","crepúsculo","ataque","desierto","laboriosamente","angustia","afortunado","alma","encefalograma","materialidad","cosas","o","renuncia","error","menos","conejo","abadía","analfabeto","remo","fugacidad","oficio","en","almácigo","vos","pan","represión","números","triste","refugiado","trote","inventor","corchea","repelente","magma","recusado","patrón","explícito","paloma","síndrome","inmune","autoinmune","comodidad","ley","vietnamita","demonio","tasmania","repeler","apéndice","arquitecto","columna","yugo","computador","mula","a","propósito","fantasía","alias","rayo","tenedor","deleznable","ventana","cara","anemia","corrupto"]},latin:{common:["lorem","ipsum","dolor","sit","amet","consectetur","adipisicing","elit"],words:["exercitationem","perferendis","perspiciatis","laborum","eveniet","sunt","iure","nam","nobis","eum","cum","officiis","excepturi","odio","consectetur","quasi","aut","quisquam","vel","eligendi","itaque","non","odit","tempore","quaerat","dignissimos","facilis","neque","nihil","expedita","vitae","vero","ipsum","nisi","animi","cumque","pariatur","velit","modi","natus","iusto","eaque","sequi","illo","sed","ex","et","voluptatibus","tempora","veritatis","ratione","assumenda","incidunt","nostrum","placeat","aliquid","fuga","provident","praesentium","rem","necessitatibus","suscipit","adipisci","quidem","possimus","voluptas","debitis","sint","accusantium","unde","sapiente","voluptate","qui","aspernatur","laudantium","soluta","amet","quo","aliquam","saepe","culpa","libero","ipsa","dicta","reiciendis","nesciunt","doloribus","autem","impedit","minima","maiores","repudiandae","ipsam","obcaecati","ullam","enim","totam","delectus","ducimus","quis","voluptates","dolores","molestiae","harum","dolorem","quia","voluptatem","molestias","magni","distinctio","omnis","illum","dolorum","voluptatum","ea","quas","quam","corporis","quae","blanditiis","atque","deserunt","laboriosam","earum","consequuntur","hic","cupiditate","quibusdam","accusamus","ut","rerum","error","minus","eius","ab","ad","nemo","fugit","officia","at","in","id","quos","reprehenderit","numquam","iste","fugiat","sit","inventore","beatae","repellendus","magnam","recusandae","quod","explicabo","doloremque","aperiam","consequatur","asperiores","commodi","optio","dolor","labore","temporibus","repellat","veniam","architecto","est","esse","mollitia","nulla","a","similique","eos","alias","dolore","tenetur","deleniti","porro","facere","maxime","corrupti"]}},Rce=/^lorem([a-z]*)(\d*)(-\d*)?$/i;function Vce(e,t){return Math.floor(Math.random()*(t-e)+e)}function qce(e,t){const n=e.length,i=Math.min(n,t),r=[];for(;r.length<i;){const t=e[Vce(0,n)];r.includes(t)||r.push(t)}return r}function Hce(e,t){var n,i;return e.length&&(e=[(n=e[0],n[0].toUpperCase()+n.slice(1))].concat(e.slice(1))),e.join(" ")+(t||(i="?!...")[Vce(0,i.length-1)])}function zce(e){if(e.length<2)return e;const t=(e=e.slice()).length,n=/,$/;let i=0;i=t>3&&t<=6?Vce(0,1):t>6&&t<=12?Vce(0,2):Vce(1,4);for(let r,o=0;o<i;o++)r=Vce(0,t-2),n.test(e[r])||(e[r]+=",");return e}function Uce(e,t,n){const i=[];let r,o=0;for(n&&e.common&&(r=e.common.slice(0,t),o+=r.length,i.push(Hce(zce(r),".")));o<t;)r=qce(e.words,Math.min(Vce(2,30),t-o)),o+=r.length,i.push(Hce(zce(r)));return i.join(" ")}function Wce(e){"class"===e.name?e.name="className":"for"===e.name&&(e.name="htmlFor")}function Gce(e){return"select"!==e.name}const Kce=/^(-+)([a-z0-9]+[a-z0-9-]*)/i,Qce=/^(_+)([a-z0-9]+[a-z0-9-_]*)/i,Yce=e=>/^[a-z]\-/i.test(e),Jce=e=>/^[a-z]/i.test(e);function Xce(e,t,n){!function(e){const t=Zce(e),n=[];for(const e of t.classNames){const t=e.indexOf("_");t>0&&!e.startsWith("-")?(n.push(e.slice(0,t)),n.push(e.slice(t))):n.push(e)}n.length&&(t.classNames=n.filter(aue),t.block=nue(t.classNames),rue(e,t.classNames.join(" ")))}(e),function(e,t,n){const i=Zce(e),r=[],{options:o}=n,a=t.slice(1).concat(e);for(let e of i.classNames){let t,i="";const s=e;(t=e.match(Kce))&&(i=tue(a,t[1].length,n.context)+o["bem.element"]+t[2],r.push(i),e=e.slice(t[0].length)),(t=e.match(Qce))&&(i||(i=tue(a,t[1].length),r.push(i)),r.push(`${i}${o["bem.modifier"]}${t[2]}`),e=e.slice(t[0].length)),e===s&&r.push(s)}const s=r.filter(aue);s.length&&rue(e,s.join(" "))}(e,t,n)}function Zce(e){if(!e._bem){let t="";if(e.attributes)for(const n of e.attributes)if("class"===n.name&&n.value){t=oue(n.value);break}e._bem=eue(t)}return e._bem}function eue(e){const t=e?e.split(/\s+/):[];return{classNames:t,block:nue(t)}}function tue(e,t=0,n){let i=Math.max(e.length-t,0);do{const t=e[i];if(t){const e=Zce(t);if(e.block)return e.block}}while(0<i--);if(n){const e=function(e){return e._bem||(e._bem=eue(e.attributes&&e.attributes.class||"")),e._bem}(n);if(e.block)return e.block}return""}function nue(e){return iue(e,Yce)||iue(e,Jce)||void 0}function iue(e,t){for(const n of e){if(Kce.test(n)||Qce.test(n))break;if(t(n))return n}}function rue(e,t){for(const n of e.attributes)if("class"===n.name){n.value=[t];break}}function oue(e){let t="";for(const n of e)t+="string"==typeof n?n:n.name;return t}function aue(e,t,n){return!!e&&n.indexOf(e)===t}function sue(e,t,n){const i=(e,i,o)=>{const{parent:a,current:s}=n;n.parent=s,n.current=e,t(e,i,o,n,r),n.current=s,n.parent=a},r=(e,t,r)=>{n.ancestors.push(n.current),i(e,t,r),n.ancestors.pop()};e.children.forEach(i)}function lue(e){return{current:null,parent:void 0,ancestors:[],config:e,field:1,out:Ece(e.options)}}const cue=[{type:"Field",index:0,name:""}];function uue(e){return!!e&&(!e.name&&!e.attributes)}function due(e,t){return!!e&&$ce(e,t)}function pue(e){return"object"==typeof e&&"Field"===e.type}function hue(e,t){const{out:n}=t;let i=-1;for(const r of e)"string"==typeof r?Dce(n,r):(Ice(n,t.field+r.index,r.name),r.index>i&&(i=r.index));-1!==i&&(t.field+=i+1)}function fue(e){return!e.implied||"raw"!==e.valueType||!!e.value&&e.value.length>0}function mue(e){const t=[],n={pos:0,text:e};let i,r=n.pos,o=n.pos;for(;n.pos<n.text.length;)o=n.pos,(i=gue(n))?(r!==n.pos&&t.push(e.slice(r,o)),t.push(i),r=n.pos):n.pos++;return r!==n.pos&&t.push(e.slice(r)),t}function gue(e){if(91===vue(e)){const t=++e.pos;let n=t,i=t,r=1;for(;e.pos<e.text.length;){const o=vue(e);if(yue(o)){for(n=e.pos;bue(vue(e));)e.pos++;i=e.pos}else{if(91===o)r++;else if(93===o&&0===--r)return{before:e.text.slice(t,n),after:e.text.slice(i,e.pos++),name:e.text.slice(n,i)};e.pos++}}}}function vue(e,t=e.pos){return e.text.charCodeAt(t)}function yue(e){return e>=65&&e<=90}function bue(e){return yue(e)||e>47&&e<58||95===e||45===e}function kue(e,t){const{comment:n}=t;if(!(n.enabled&&n.trigger&&e.name&&e.attributes))return!1;for(const t of e.attributes)if(t.name&&n.trigger.includes(t.name))return!0;return!1}function wue(e,t,n){const i={},{out:r}=n;for(const t of e.attributes)t.name&&t.value&&(i[t.name.toUpperCase()]=t.value);for(const e of t)"string"==typeof e?Dce(r,e):i[e.name]&&(Dce(r,e.before),hue(i[e.name],n),Dce(r,e.after))}const _ue=/^<([\w\-:]+)[\s>]/;function Cue(e,t){const n=lue(t);return n.comment=function(e){const{options:t}=e;return{enabled:t["comment.enabled"],trigger:t["comment.trigger"],before:t["comment.before"]?mue(t["comment.before"]):void 0,after:t["comment.after"]?mue(t["comment.after"]):void 0}}(t),sue(e,xue,n),n.out.value}function xue(e,t,n,i,r){const{out:o,config:a}=i,s=Aue(e,t,n,i),l=function(e){const{config:t,parent:n}=e;if(!n||uue(n)||n.name&&t.options["output.formatSkip"].includes(n.name))return 0;return 1}(i);if(o.level+=l,s&&Tce(o,!0),e.name){const t=function(e,t){return Lce(e,t.options["output.tagCase"])}(e.name,a);if(function(e,t){kue(e,t)&&t.comment.before&&wue(e,t.comment.before,t)}(e,i),Dce(o,`<${t}`),e.attributes)for(const t of e.attributes)fue(t)&&Sue(t,i);if(!e.selfClosing||e.children.length||e.value){if(Dce(o,">"),!Eue(e,i,r)){if(e.value){const t=e.value.some(Due)||function(e,t){if(e.length&&"string"==typeof e[0]){const n=_ue.exec(e[0]);if((null==n?void 0:n.length)&&!t.options.inlineElements.includes(n[1].toLowerCase()))return!0}return!1}(e.value,a);t&&Tce(i.out,++o.level),hue(e.value,i),t&&Tce(i.out,--o.level)}if(e.children.forEach(r),!e.value&&!e.children.length){const t=a.options["output.formatLeafNode"]||a.options["output.formatForce"].includes(e.name);t&&Tce(i.out,++o.level),hue(cue,i),t&&Tce(i.out,--o.level)}}Dce(o,`</${t}>`),function(e,t){kue(e,t)&&t.comment.after&&wue(e,t.comment.after,t)}(e,i)}else Dce(o,`${function(e){switch(e.options["output.selfClosingStyle"]){case"xhtml":return" /";case"xml":return"/";default:return""}}(a)}>`)}else!Eue(e,i,r)&&e.value&&(hue(e.value,i),e.children.forEach(r));if(s&&t===n.length-1&&i.parent){const e=uue(i.parent)?0:1;Tce(o,o.level-e)}o.level-=l}function Sue(e,t){const{out:n,config:i}=t;if(e.name){const r=Oce(e.name,i),o=Pce(e,i,!0),a=Pce(e,i);let s=e.value;Fce(e,i)&&!s?i.options["output.compactBoolean"]||(s=[r]):s||(s=cue),Dce(n," "+r),s?(Dce(n,"="+o),hue(s,t),Dce(n,a)):"html"!==i.options["output.selfClosingStyle"]&&Dce(n,"="+o+a)}}function Eue(e,t,n){if(e.value&&e.children.length){const i=e.value.findIndex(pue);if(-1!==i){hue(e.value.slice(0,i),t);const r=t.out.line;let o=i+1;return e.children.forEach(n),t.out.line!==r&&"string"==typeof e.value[o]&&Dce(t.out,e.value[o++].trimLeft()),hue(e.value.slice(o),t),!0}}return!1}function Aue(e,t,n,i){const{config:r,parent:o}=i;if(!r.options["output.format"])return!1;if(0===t&&!o)return!1;if(o&&uue(o)&&1===n.length)return!1;if(uue(e)){if(uue(n[t-1])||uue(n[t+1])||e.value.some(Due)||e.value.some(pue)&&e.children.length)return!0}if($ce(e,r)){if(0===t){for(let e=0;e<n.length;e++)if(!$ce(n[e],r))return!0}else if(!$ce(n[t-1],r))return!0;if(r.options["output.inlineBreak"]){let e=1,i=t,o=t;for(;due(n[--i],r);)e++;for(;due(n[++o],r);)e++;if(e>=r.options["output.inlineBreak"])return!0}for(let t=0,n=e.children.length;t<n;t++)if(Aue(e.children[t],t,e.children,i))return!0;return!1}return!0}function Due(e){return"string"==typeof e&&/\r|\n/.test(e)}function Tue(e,t,n){const i=lue(t);return i.options=n||{},sue(e,Iue,i),i.out.value}function Iue(e,t,n,i,r){const{out:o,options:a}=i,{primary:s,secondary:l}=function(e){const t=[],n=[];if(e.attributes)for(const i of e.attributes)Oue(i)?t.push(i):n.push(i);return{primary:t,secondary:n}}(e),c=i.parent?1:0;o.level+=c,function(e,t,n,i){if(!i.parent&&0===t)return!1;return!uue(e)}(e,t,0,i)&&Tce(o,!0),!e.name||"div"===e.name&&s.length||Dce(o,(a.beforeName||"")+e.name+(a.afterName||"")),function(e,t){for(const n of e)if(n.value)if("class"===n.name){Dce(t.out,".");const e=n.value.map(e=>"string"==typeof e?e.replace(/\s+/g,"."):e);hue(e,t)}else Dce(t.out,"#"),hue(n.value,t)}(s,i),function(e,t){if(e.length){const{out:n,config:i,options:r}=t;r.beforeAttribute&&Dce(n,r.beforeAttribute);for(let o=0;o<e.length;o++){const a=e[o];Dce(n,Oce(a.name||"",i)),Fce(a,i)&&!a.value?!i.options["output.compactBoolean"]&&r.booleanValue&&Dce(n,"="+r.booleanValue):(Dce(n,"="+Pce(a,i,!0)),hue(a.value||cue,t),Dce(n,Pce(a,i))),o!==e.length-1&&r.glueAttribute&&Dce(n,r.glueAttribute)}r.afterAttribute&&Dce(n,r.afterAttribute)}}(l.filter(fue),i),!e.selfClosing||e.value||e.children.length?(!function(e,t){if(!e.value&&e.children.length)return;const n=e.value||cue,i=function(e){const t=[];let n=[];for(const i of e)if("string"==typeof i){const e=i.split(/\r\n?|\n/g);for(n.push(e.shift()||"");e.length;)t.push(n),n=[e.shift()||""]}else n.push(i);return n.length&&t.push(n),t}(n),{out:r,options:o}=t;if(1===i.length)(e.name||e.attributes)&&Ace(r," "),hue(n,t);else{const e=[];let n=0;for(const t of i){const i=Pue(t);e.push(i),i>n&&(n=i)}r.level++;for(let a=0;a<i.length;a++)Tce(r,!0),o.beforeTextLine&&Ace(r,o.beforeTextLine),hue(i[a],t),o.afterTextLine&&(Ace(r," ".repeat(n-e[a])),Ace(r,o.afterTextLine));r.level--}}(e,i),e.children.forEach(r)):i.options.selfClose&&Dce(o,i.options.selfClose),o.level-=c}function Oue(e){return"class"===e.name||"id"===e.name}function Pue(e){let t=0;for(const n of e)t+="string"==typeof n?n.length:n.name.length;return t}const Fue={html:Cue,haml:function(e,t){return Tue(e,t,{beforeName:"%",beforeAttribute:"(",afterAttribute:")",glueAttribute:" ",afterTextLine:" |",booleanValue:"true",selfClose:"/"})},slim:function(e,t){return Tue(e,t,{beforeAttribute:" ",glueAttribute:" ",beforeTextLine:"| ",selfClose:"/"})},pug:function(e,t){return Tue(e,t,{beforeAttribute:"(",afterAttribute:")",glueAttribute:", ",beforeTextLine:"| ",selfClose:"xml"===t.options["output.selfClosingStyle"]?"/":""})}};function $ue(e,t){let n;if("string"==typeof e){let i=t;t.options["jsx.enabled"]&&(i=Object.assign(Object.assign({},i),{jsx:!0})),t.options["markup.href"]&&(i=Object.assign(Object.assign({},i),{href:!0})),e=ane(e,i),n=t.text,t.text=void 0}return e=function(e,t){const n=[],i=t.options["output.reverseAttributes"],r=e=>{const o=e.name&&t.snippets[e.name];if(!o||n.includes(o))return null;const a=ane(o,t);n.push(o),xce(a,r),n.pop();for(const t of a.children){if(e.attributes){const n=t.attributes||[],r=e.attributes||[];t.attributes=i?r.concat(n):n.concat(r)}Sce(e,t)}return a};return xce(e,r),e}(e,t),function(e,t,n){const i=[e],r=e=>{t(e,i,n),i.push(e),e.children.forEach(r),i.pop()};e.children.forEach(r)}(e,Mue,t),t.text=null!=n?n:t.text,e}function Mue(e,t,n){!function(e,t,n){!e.name&&e.attributes&&jce(e,t,n)}(e,t,n),function(e,t){if(!e.attributes)return;const n=[],i={};for(const r of e.attributes)if(r.name){const e=r.name;if(e in i){const n=i[e];"class"===e?n.value=bce(n.value,r.value," "):kce(n,r,t)}else n.push(i[e]=Object.assign({},r))}else n.push(r);e.attributes=n}(e,n),function(e,t,n){let i;if(e.name&&(i=e.name.match(Rce))){const r=Bce[i[1]]||Bce.latin,o=i[2]?Math.max(1,Number(i[2])):30,a=Vce(o,i[3]?Math.max(o,Number(i[3].slice(1))):o),s=e.repeat||function(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if("AbbreviationNode"===n.type&&n.repeat)return n.repeat}}(t);e.name=e.attributes=void 0,e.value=[Uce(r,a,!s||0===s.value)],e.repeat&&t.length>1&&jce(e,t,n)}}(e,t,n),"xsl"===n.syntax&&function(e){var t;"xsl:variable"!==(t=e.name)&&"xsl:with-param"!==t||!e.attributes||!e.children.length&&!e.value||(e.attributes=e.attributes.filter(Gce))}(e),n.options["jsx.enabled"]&&function(e){e.attributes&&e.attributes.forEach(Wce)}(e),n.options["bem.enabled"]&&Xce(e,t,n)}const Lue=/^([a-z-]+)(?:\s*:\s*([^\n\r;]+?);*)?$/,Nue={value:!0};function jue(e,t){const n=t.match(Lue);if(n){const t={},i=n[2]?n[2].split("|").map(Rue):[];for(const e of i)for(const n of e)que(n,t);return{type:"Property",key:e,property:n[1],value:i,keywords:t,dependencies:[]}}return{type:"Raw",key:e,value:t}}function Bue(e,t){return e.key===t.key?0:e.key<t.key?-1:1}function Rue(e){return Rne(e.trim(),Nue)[0].value}function Vue(e){return"Property"===e.type}function que(e,t){for(const n of e.value)if("Literal"===n.type)t[n.value]=n;else if("FunctionCall"===n.type)t[n.name]=n;else if("Field"===n.type){const e=n.name.trim();e&&(t[e]={type:"Literal",value:e})}}function Hue(e,t,n=!1){if((e=e.toLowerCase())===(t=t.toLowerCase()))return 1;if(!e||!t||e.charCodeAt(0)!==t.charCodeAt(0))return 0;const i=e.length,r=t.length;if(!n&&i>r)return 0;const o=Math.min(i,r),a=Math.max(i,r);let s=1,l=1,c=a,u=0,d=0,p=!1,h=!1;for(;s<i;){for(u=e.charCodeAt(s),p=!1,h=!1;l<r;){if(d=t.charCodeAt(l),u===d){p=!0,c+=a-(h?s:l);break}h=45===d,l++}if(!p){if(!n)return 0;break}s++}const f=a-o;return c*(s/a)/(zue(a)-zue(f))}function zue(e){return e*(e+1)/2}function Uue(e,t){return e.r||e.g||e.b||e.a?1===e.a?function(e,t){const n=t&&Gue(e.r)&&Gue(e.g)&&Gue(e.b)?Kue:Que;return"#"+n(e.r)+n(e.g)+n(e.b)}(e,t):function(e){const t=[e.r,e.g,e.b];1!==e.a&&t.push(Wue(e.a,8));return`${3===t.length?"rgb":"rgba"}(${t.join(", ")})`}(e):"transparent"}function Wue(e,t=4){return e.toFixed(t).replace(/\.?0+$/,"")}function Gue(e){return!(e%17)}function Kue(e){return(e>>4).toString(16)}function Que(e){return function(e,t){for(;e.length<t;)e="0"+e;return e}(e.toString(16),2)}function Yue(e,t,n){const i=n.options["stylesheet.json"];if(e.name){Dce(t,(i?e.name.replace(/\-(\w)/g,(e,t)=>t.toUpperCase()):e.name)+n.options["stylesheet.between"]),e.value.length?function(e,t,n){const i=n.options["stylesheet.json"],r=i?function(e){if(1===e.value.length){const t=e.value[0];if(1===t.value.length&&"NumberValue"===t.value[0].type)return t.value[0]}}(e):null;if(!r||r.unit&&"px"!==r.unit){const r=function(e){return e.options["stylesheet.jsonDoubleQuotes"]?'"':"'"}(n);i&&Ace(t,r);for(let i=0;i<e.value.length;i++)0!==i&&Ace(t,", "),Xue(e.value[i],t,n);i&&Ace(t,r)}else Ace(t,String(r.value))}(e,t,n):Ice(t,0,""),i?Ace(t,","):(Jue(e,t,!0),Ace(t,n.options["stylesheet.after"]))}else{for(const i of e.value)for(const e of i.value)Zue(e,t,n);Jue(e,t,e.value.length>0)}}function Jue(e,t,n){e.important&&(n&&Ace(t," "),Ace(t,"!important"))}function Xue(e,t,n){for(let i=0,r=-1;i<e.value.length;i++){const o=e.value[i];0===i||"Field"===o.type&&o.start===r||Ace(t," "),Zue(o,t,n),r=o.end}}function Zue(e,t,n){if("ColorValue"===e.type)Ace(t,Uue(e,n.options["stylesheet.shortHex"]));else if("Literal"===e.type)Dce(t,e.value);else if("NumberValue"===e.type)Dce(t,Wue(e.value,4)+e.unit);else if("StringValue"===e.type){const n="double"===e.quote?'"':"'";Dce(t,n+e.value+n)}else if("Field"===e.type)Ice(t,e.index,e.name);else if("FunctionCall"===e.type){Ace(t,e.name+"(");for(let i=0;i<e.arguments.length;i++)i&&Ace(t,", "),Xue(e.arguments[i],t,n);Ace(t,")")}}const ede="lg";function tde(e,t){var n;const i=(null===(n=t.cache)||void 0===n?void 0:n.stylesheetSnippets)||function(e){const t=[];for(const n of Object.keys(e))t.push(jue(n,e[n]));return function(e){e=e.slice().sort(Bue);const t=[];let n;for(const i of e.filter(Vue)){for(;t.length;){if(n=t[t.length-1],i.property.startsWith(n.property)&&45===i.property.charCodeAt(n.property.length)){n.dependencies.push(i),t.push(i);break}t.pop()}t.length||t.push(i)}return e}(t)}(t.snippets);t.cache&&(t.cache.stylesheetSnippets=i),"string"==typeof e&&(e=Rne(e,{value:pde(t)}));const r=function(e,t){if(t.context){if("@@section"===t.context.name)return e.filter(e=>"Raw"===e.type);if("@@property"===t.context.name)return e.filter(e=>"Property"===e.type)}return e}(i,t);for(const n of e)nde(n,r,t);return e}function nde(e,t,n){if(!function(e,t){let n=null;const i=1===e.value.length?e.value[0]:null;if(i&&1===i.value.length){const e=i.value[0];"FunctionCall"===e.type&&e.name===ede&&(n=e)}if(n||e.name===ede)return n=n?Object.assign(Object.assign({},n),{name:"linear-gradient"}):{type:"FunctionCall",name:"linear-gradient",arguments:[sde(cde(0,""))]},t.context||(e.name="background-image"),e.value=[sde(n)],!0;return!1}(e,n)){const i=n.options["stylesheet.fuzzySearchMinScore"];if(pde(n)){const r=n.context.name,o=t.find(e=>"Property"===e.type&&e.property===r);ide(e,n,o,i),e.snippet=o}else if(e.name){const r=rde(e.name,t,i,!0);e.snippet=r,r&&("Property"===r.type?function(e,t,n){const i=e.name,r=function(e,t){for(let n=0,i=0;n<e.length;n++){if(i=t.indexOf(e[n],i),-1===i)return e.slice(n);i++}return""}(i,t.key);if(r){if(e.value.length)return e;const i=ade(r,n,t);if(!i)return e;e.value.push(sde(i))}if(e.name=t.property,e.value.length)ide(e,n,t);else if(t.value.length){const i=t.value[0];e.value=1===t.value.length||i.some(ude)?i:i.map(e=>dde(e,n))}}(e,r,n):function(e,t){let n,i=0;const r=/\$\{(\d+)(:[^}]+)?\}/g,o=e.value[0],a=[];for(;n=r.exec(t.value);)i!==n.index&&a.push(lde(t.value.slice(i,n.index))),i=n.index+n[0].length,o&&o.value.length?a.push(o.value.shift()):a.push(cde(Number(n[1]),n[2]?n[2].slice(1):""));const s=t.value.slice(i);s&&a.push(lde(s));e.name=void 0,e.value=[sde(...a)]}(e,r))}}return(e.name||n.context)&&function(e,t){const n=t.options["stylesheet.unitAliases"],i=t.options["stylesheet.unitless"];for(const r of e.value)for(const o of r.value)"NumberValue"===o.type&&(o.unit?o.unit=n[o.unit]||o.unit:0===o.value||i.includes(e.name)||(o.unit=o.rawValue.includes(".")?t.options["stylesheet.floatUnit"]:t.options["stylesheet.intUnit"]))}(e,n),e}function ide(e,t,n,i){for(const r of e.value){const e=[];for(const o of r.value)if("Literal"===o.type)e.push(ade(o.value,t,n,i)||o);else if("FunctionCall"===o.type){const r=ade(o.name,t,n,i);r&&"FunctionCall"===r.type?e.push(Object.assign(Object.assign({},r),{arguments:o.arguments.concat(r.arguments.slice(o.arguments.length))})):e.push(o)}else e.push(o);r.value=e}}function rde(e,t,n=0,i=!1){let r=null,o=0;for(const n of t){const t=Hue(e,ode(n),i);if(1===t)return n;t&&t>=o&&(o=t,r=n)}return o>=n?r:null}function ode(e){return"string"==typeof e?e:e.key}function ade(e,t,n,i){let r;if(n){if(r=rde(e,Object.keys(n.keywords),i))return n.keywords[r];for(const t of n.dependencies)if(r=rde(e,Object.keys(t.keywords),i))return t.keywords[r]}return(r=rde(e,t.options["stylesheet.keywords"],i))?lde(r):null}function sde(...e){return{type:"CSSValue",value:e}}function lde(e){return{type:"Literal",value:e}}function cde(e,t){return{type:"Field",index:e,name:t}}function ude(e){for(const t of e.value)if("Field"===t.type||"FunctionCall"===t.type&&t.arguments.some(ude))return!0;return!1}function dde(e,t,n={index:1}){let i=[];for(const r of e.value)switch(r.type){case"ColorValue":i.push(cde(n.index++,Uue(r,t.options["stylesheet.shortHex"])));break;case"Literal":i.push(cde(n.index++,r.value));break;case"NumberValue":i.push(cde(n.index++,`${r.value}${r.unit}`));break;case"StringValue":const e="single"===r.quote?"'":'"';i.push(cde(n.index++,e+r.value+e));break;case"FunctionCall":i.push(cde(n.index++,r.name),lde("("));for(let e=0,o=r.arguments.length;e<o;e++)i=i.concat(dde(r.arguments[e],t,n).value),e!==o-1&&i.push(lde(", "));i.push(lde(")"));break;default:i.push(r)}return Object.assign(Object.assign({},e),{value:i})}function pde(e){return!!e.context&&("@@value"===e.context.name||!e.context.name.startsWith("@@"))}const hde={markup:"html",stylesheet:"css"},fde={type:"markup",syntax:"html",variables:{lang:"en",locale:"en-US",charset:"UTF-8",indentation:"\t",newline:"\n"},snippets:{},options:{inlineElements:["a","abbr","acronym","applet","b","basefont","bdo","big","br","button","cite","code","del","dfn","em","font","i","iframe","img","input","ins","kbd","label","map","object","q","s","samp","select","small","span","strike","strong","sub","sup","textarea","tt","u","var"],"output.indent":"\t","output.baseIndent":"","output.newline":"\n","output.tagCase":"","output.attributeCase":"","output.attributeQuotes":"double","output.format":!0,"output.formatLeafNode":!1,"output.formatSkip":["html"],"output.formatForce":["body"],"output.inlineBreak":3,"output.compactBoolean":!1,"output.booleanAttributes":["contenteditable","seamless","async","autofocus","autoplay","checked","controls","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","novalidate","readonly","required","reversed","selected","typemustmatch"],"output.reverseAttributes":!1,"output.selfClosingStyle":"html","output.field":(e,t)=>t,"output.text":e=>e,"markup.href":!0,"comment.enabled":!1,"comment.trigger":["id","class"],"comment.before":"","comment.after":"\n\x3c!-- /[#ID][.CLASS] --\x3e","bem.enabled":!1,"bem.element":"__","bem.modifier":"_","jsx.enabled":!1,"stylesheet.keywords":["auto","inherit","unset","none"],"stylesheet.unitless":["z-index","line-height","opacity","font-weight","zoom","flex","flex-grow","flex-shrink"],"stylesheet.shortHex":!0,"stylesheet.between":": ","stylesheet.after":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.json":!1,"stylesheet.jsonDoubleQuotes":!1,"stylesheet.fuzzySearchMinScore":0}},mde={markup:{snippets:gde({a:"a[href]","a:blank":"a[href='http://${0}' target='_blank' rel='noopener noreferrer']","a:link":"a[href='http://${0}']","a:mail":"a[href='mailto:${0}']","a:tel":"a[href='tel:+${0}']",abbr:"abbr[title]","acr|acronym":"acronym[title]",base:"base[href]/",basefont:"basefont/",br:"br/",frame:"frame/",hr:"hr/",bdo:"bdo[dir]","bdo:r":"bdo[dir=rtl]","bdo:l":"bdo[dir=ltr]",col:"col/",link:"link[rel=stylesheet href]/","link:css":"link[href='${1:style}.css']","link:print":"link[href='${1:print}.css' media=print]","link:favicon":"link[rel='shortcut icon' type=image/x-icon href='${1:favicon.ico}']","link:mf|link:manifest":"link[rel='manifest' href='${1:manifest.json}']","link:touch":"link[rel=apple-touch-icon href='${1:favicon.png}']","link:rss":"link[rel=alternate type=application/rss+xml title=RSS href='${1:rss.xml}']","link:atom":"link[rel=alternate type=application/atom+xml title=Atom href='${1:atom.xml}']","link:im|link:import":"link[rel=import href='${1:component}.html']",meta:"meta/","meta:utf":"meta[http-equiv=Content-Type content='text/html;charset=UTF-8']","meta:vp":"meta[name=viewport content='width=${1:device-width}, initial-scale=${2:1.0}']","meta:compat":"meta[http-equiv=X-UA-Compatible content='${1:IE=7}']","meta:edge":"meta:compat[content='${1:ie=edge}']","meta:redirect":"meta[http-equiv=refresh content='0; url=${1:http://example.com}']","meta:kw":"meta[name=keywords content]","meta:desc":"meta[name=description content]",style:"style",script:"script","script:src":"script[src]",img:"img[src alt]/","img:s|img:srcset":"img[srcset src alt]","img:z|img:sizes":"img[sizes srcset src alt]",picture:"picture","src|source":"source/","src:sc|source:src":"source[src type]","src:s|source:srcset":"source[srcset]","src:t|source:type":"source[srcset type='${1:image/}']","src:z|source:sizes":"source[sizes srcset]","src:m|source:media":"source[media='(${1:min-width: })' srcset]","src:mt|source:media:type":"source:media[type='${2:image/}']","src:mz|source:media:sizes":"source:media[sizes srcset]","src:zt|source:sizes:type":"source[sizes srcset type='${1:image/}']",iframe:"iframe[src frameborder=0]",embed:"embed[src type]/",object:"object[data type]",param:"param[name value]/",map:"map[name]",area:"area[shape coords href alt]/","area:d":"area[shape=default]","area:c":"area[shape=circle]","area:r":"area[shape=rect]","area:p":"area[shape=poly]",form:"form[action]","form:get":"form[method=get]","form:post":"form[method=post]",label:"label[for]",input:"input[type=${1:text}]/",inp:"input[name=${1} id=${1}]","input:h|input:hidden":"input[type=hidden name]","input:t|input:text":"inp[type=text]","input:search":"inp[type=search]","input:email":"inp[type=email]","input:url":"inp[type=url]","input:p|input:password":"inp[type=password]","input:datetime":"inp[type=datetime]","input:date":"inp[type=date]","input:datetime-local":"inp[type=datetime-local]","input:month":"inp[type=month]","input:week":"inp[type=week]","input:time":"inp[type=time]","input:tel":"inp[type=tel]","input:number":"inp[type=number]","input:color":"inp[type=color]","input:c|input:checkbox":"inp[type=checkbox]","input:r|input:radio":"inp[type=radio]","input:range":"inp[type=range]","input:f|input:file":"inp[type=file]","input:s|input:submit":"input[type=submit value]","input:i|input:image":"input[type=image src alt]","input:b|input:btn|input:button":"input[type=button value]","input:reset":"input:button[type=reset]",isindex:"isindex/",select:"select[name=${1} id=${1}]","select:d|select:disabled":"select[disabled.]","opt|option":"option[value]",textarea:"textarea[name=${1} id=${1} cols=${2:30} rows=${3:10}]",marquee:"marquee[behavior direction]","menu:c|menu:context":"menu[type=context]","menu:t|menu:toolbar":"menu[type=toolbar]",video:"video[src]",audio:"audio[src]","html:xml":"html[xmlns=http://www.w3.org/1999/xhtml]",keygen:"keygen/",command:"command/","btn:s|button:s|button:submit":"button[type=submit]","btn:r|button:r|button:reset":"button[type=reset]","btn:d|button:d|button:disabled":"button[disabled.]","fst:d|fset:d|fieldset:d|fieldset:disabled":"fieldset[disabled.]",bq:"blockquote",fig:"figure",figc:"figcaption",pic:"picture",ifr:"iframe",emb:"embed",obj:"object",cap:"caption",colg:"colgroup",fst:"fieldset",btn:"button",optg:"optgroup",tarea:"textarea",leg:"legend",sect:"section",art:"article",hdr:"header",ftr:"footer",adr:"address",dlg:"dialog",str:"strong",prog:"progress",mn:"main",tem:"template",fset:"fieldset",datag:"datagrid",datal:"datalist",kg:"keygen",out:"output",det:"details",sum:"summary",cmd:"command","ri:d|ri:dpr":"img:s","ri:v|ri:viewport":"img:z","ri:a|ri:art":"pic>src:m+img","ri:t|ri:type":"pic>src:t+img","!!!":"{<!DOCTYPE html>}",doc:"html[lang=${lang}]>(head>meta[charset=${charset}]+meta[http-equiv='X-UA-Compatible'][content='IE=edge']+meta:vp+title{${1:Document}})+body","!|html:5":"!!!+doc",c:"{\x3c!-- ${0} --\x3e}","cc:ie":"{\x3c!--[if IE]>${0}<![endif]--\x3e}","cc:noie":"{\x3c!--[if !IE]>\x3c!--\x3e${0}\x3c!--<![endif]--\x3e}"})},xhtml:{options:{"output.selfClosingStyle":"xhtml"}},xml:{options:{"output.selfClosingStyle":"xml"}},xsl:{snippets:gde({"tm|tmatch":"xsl:template[match mode]","tn|tname":"xsl:template[name]",call:"xsl:call-template[name]",ap:"xsl:apply-templates[select mode]",api:"xsl:apply-imports",imp:"xsl:import[href]",inc:"xsl:include[href]",ch:"xsl:choose","wh|xsl:when":"xsl:when[test]",ot:"xsl:otherwise",if:"xsl:if[test]",par:"xsl:param[name]",pare:"xsl:param[name select]",var:"xsl:variable[name]",vare:"xsl:variable[name select]",wp:"xsl:with-param[name select]",key:"xsl:key[name match use]",elem:"xsl:element[name]",attr:"xsl:attribute[name]",attrs:"xsl:attribute-set[name]",cp:"xsl:copy[select]",co:"xsl:copy-of[select]",val:"xsl:value-of[select]","for|each":"xsl:for-each[select]",tex:"xsl:text",com:"xsl:comment",msg:"xsl:message[terminate=no]",fall:"xsl:fallback",num:"xsl:number[value]",nam:"namespace-alias[stylesheet-prefix result-prefix]",pres:"xsl:preserve-space[elements]",strip:"xsl:strip-space[elements]",proc:"xsl:processing-instruction[name]",sort:"xsl:sort[select order]",choose:"xsl:choose>xsl:when+xsl:otherwise",xsl:"!!!+xsl:stylesheet[version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform]>{\n|}","!!!":'{<?xml version="1.0" encoding="UTF-8"?>}'}),options:{"output.selfClosingStyle":"xml"}},jsx:{options:{"jsx.enabled":!0}},pug:{snippets:gde({"!!!":"{doctype html}"})},stylesheet:{snippets:gde({"@f":"@font-face {\n\tfont-family: ${1};\n\tsrc: url(${2});\n}","@ff":"@font-face {\n\tfont-family: '${1:FontName}';\n\tsrc: url('${2:FileName}.eot');\n\tsrc: url('${2:FileName}.eot?#iefix') format('embedded-opentype'),\n\t\t url('${2:FileName}.woff') format('woff'),\n\t\t url('${2:FileName}.ttf') format('truetype'),\n\t\t url('${2:FileName}.svg#${1:FontName}') format('svg');\n\tfont-style: ${3:normal};\n\tfont-weight: ${4:normal};\n}","@i|@import":"@import url(${0});","@kf":"@keyframes ${1:identifier} {\n\t${2}\n}","@m|@media":"@media ${1:screen} {\n\t${0}\n}",ac:"align-content:start|end|flex-start|flex-end|center|space-between|space-around|stretch|space-evenly",ai:"align-items:start|end|flex-start|flex-end|center|baseline|stretch",anim:"animation:${1:name} ${2:duration} ${3:timing-function} ${4:delay} ${5:iteration-count} ${6:direction} ${7:fill-mode}",animdel:"animation-delay:time",animdir:"animation-direction:normal|reverse|alternate|alternate-reverse",animdur:"animation-duration:${1:0}s",animfm:"animation-fill-mode:both|forwards|backwards",animic:"animation-iteration-count:1|infinite",animn:"animation-name",animps:"animation-play-state:running|paused",animtf:"animation-timing-function:linear|ease|ease-in|ease-out|ease-in-out|cubic-bezier(${1:0.1}, ${2:0.7}, ${3:1.0}, ${3:0.1})",ap:"appearance:none",as:"align-self:start|end|auto|flex-start|flex-end|center|baseline|stretch",b:"bottom",bd:"border:${1:1px} ${2:solid} ${3:#000}",bdb:"border-bottom:${1:1px} ${2:solid} ${3:#000}",bdbc:"border-bottom-color:${1:#000}",bdbi:"border-bottom-image:url(${0})",bdbk:"border-break:close",bdbli:"border-bottom-left-image:url(${0})|continue",bdblrs:"border-bottom-left-radius",bdbri:"border-bottom-right-image:url(${0})|continue",bdbrrs:"border-bottom-right-radius",bdbs:"border-bottom-style",bdbw:"border-bottom-width",bdc:"border-color:${1:#000}",bdci:"border-corner-image:url(${0})|continue",bdcl:"border-collapse:collapse|separate",bdf:"border-fit:repeat|clip|scale|stretch|overwrite|overflow|space",bdi:"border-image:url(${0})",bdl:"border-left:${1:1px} ${2:solid} ${3:#000}",bdlc:"border-left-color:${1:#000}",bdlen:"border-length",bdli:"border-left-image:url(${0})",bdls:"border-left-style",bdlw:"border-left-width",bdr:"border-right:${1:1px} ${2:solid} ${3:#000}",bdrc:"border-right-color:${1:#000}",bdri:"border-right-image:url(${0})",bdrs:"border-radius",bdrst:"border-right-style",bdrw:"border-right-width",bds:"border-style:none|hidden|dotted|dashed|solid|double|dot-dash|dot-dot-dash|wave|groove|ridge|inset|outset",bdsp:"border-spacing",bdt:"border-top:${1:1px} ${2:solid} ${3:#000}",bdtc:"border-top-color:${1:#000}",bdti:"border-top-image:url(${0})",bdtli:"border-top-left-image:url(${0})|continue",bdtlrs:"border-top-left-radius",bdtri:"border-top-right-image:url(${0})|continue",bdtrrs:"border-top-right-radius",bdts:"border-top-style",bdtw:"border-top-width",bdw:"border-width",bfv:"backface-visibility:hidden|visible",bg:"background:${1:#000}",bga:"background-attachment:fixed|scroll",bgbk:"background-break:bounding-box|each-box|continuous",bgc:"background-color:#${1:fff}",bgcp:"background-clip:padding-box|border-box|content-box|no-clip",bgi:"background-image:url(${0})",bgo:"background-origin:padding-box|border-box|content-box",bgp:"background-position:${1:0} ${2:0}",bgpx:"background-position-x",bgpy:"background-position-y",bgr:"background-repeat:no-repeat|repeat-x|repeat-y|space|round",bgsz:"background-size:contain|cover",bxsh:"box-shadow:${1:inset }${2:hoff} ${3:voff} ${4:blur} ${5:#000}|none",bxsz:"box-sizing:border-box|content-box|border-box",c:"color:${1:#000}",cr:"color:rgb(${1:0}, ${2:0}, ${3:0})",cra:"color:rgba(${1:0}, ${2:0}, ${3:0}, ${4:.5})",cl:"clear:both|left|right|none",cm:"/* ${0} */",cnt:"content:'${0}'|normal|open-quote|no-open-quote|close-quote|no-close-quote|attr(${0})|counter(${0})|counters(${0})",coi:"counter-increment",colm:"columns",colmc:"column-count",colmf:"column-fill",colmg:"column-gap",colmr:"column-rule",colmrc:"column-rule-color",colmrs:"column-rule-style",colmrw:"column-rule-width",colms:"column-span",colmw:"column-width",cor:"counter-reset",cp:"clip:auto|rect(${1:top} ${2:right} ${3:bottom} ${4:left})",cps:"caption-side:top|bottom",cur:"cursor:pointer|auto|default|crosshair|hand|help|move|pointer|text",d:"display:block|none|flex|inline-flex|inline|inline-block|grid|inline-grid|subgrid|list-item|run-in|compact|table|inline-table|table-caption|table-column|table-column-group|table-header-group|table-footer-group|table-row|table-row-group|table-cell|ruby|ruby-base|ruby-base-group|ruby-text|ruby-text-group",ec:"empty-cells:show|hide",f:"font:${1:1em} ${2:sans-serif}",fd:"font-display:auto|block|swap|fallback|optional",fef:"font-effect:none|engrave|emboss|outline",fem:"font-emphasize",femp:"font-emphasize-position:before|after",fems:"font-emphasize-style:none|accent|dot|circle|disc",ff:"font-family:serif|sans-serif|cursive|fantasy|monospace",fft:'font-family:"Times New Roman", Times, Baskerville, Georgia, serif',ffa:'font-family:Arial, "Helvetica Neue", Helvetica, sans-serif',ffv:"font-family:Verdana, Geneva, sans-serif",fl:"float:left|right|none",fs:"font-style:italic|normal|oblique",fsm:"font-smoothing:antialiased|subpixel-antialiased|none",fst:"font-stretch:normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded",fv:"font-variant:normal|small-caps",fvs:"font-variation-settings:normal|inherit|initial|unset",fw:"font-weight:normal|bold|bolder|lighter",fx:"flex",fxb:"flex-basis:fill|max-content|min-content|fit-content|content",fxd:"flex-direction:row|row-reverse|column|column-reverse",fxf:"flex-flow",fxg:"flex-grow",fxsh:"flex-shrink",fxw:"flex-wrap:nowrap|wrap|wrap-reverse",fsz:"font-size",fsza:"font-size-adjust",gtc:"grid-template-columns:repeat()|minmax()",gtr:"grid-template-rows:repeat()|minmax()",gta:"grid-template-areas",gt:"grid-template",gg:"grid-gap",gcg:"grid-column-gap",grg:"grid-row-gap",gac:"grid-auto-columns:auto|minmax()",gar:"grid-auto-rows:auto|minmax()",gaf:"grid-auto-flow:row|column|dense|inherit|initial|unset",gd:"grid",gc:"grid-column",gcs:"grid-column-start",gce:"grid-column-end",gr:"grid-row",grs:"grid-row-start",gre:"grid-row-end",ga:"grid-area",h:"height",jc:"justify-content:start|end|stretch|flex-start|flex-end|center|space-between|space-around|space-evenly",ji:"justify-items:start|end|center|stretch",js:"justify-self:start|end|center|stretch",l:"left",lg:"background-image:linear-gradient(${1})",lh:"line-height",lis:"list-style",lisi:"list-style-image",lisp:"list-style-position:inside|outside",list:"list-style-type:disc|circle|square|decimal|decimal-leading-zero|lower-roman|upper-roman",lts:"letter-spacing:normal",m:"margin",mah:"max-height",mar:"max-resolution",maw:"max-width",mb:"margin-bottom",mih:"min-height",mir:"min-resolution",miw:"min-width",ml:"margin-left",mr:"margin-right",mt:"margin-top",ol:"outline",olc:"outline-color:${1:#000}|invert",olo:"outline-offset",ols:"outline-style:none|dotted|dashed|solid|double|groove|ridge|inset|outset",olw:"outline-width|thin|medium|thick","op|opa":"opacity",ord:"order",ori:"orientation:landscape|portrait",orp:"orphans",ov:"overflow:hidden|visible|hidden|scroll|auto",ovs:"overflow-style:scrollbar|auto|scrollbar|panner|move|marquee",ovx:"overflow-x:hidden|visible|hidden|scroll|auto",ovy:"overflow-y:hidden|visible|hidden|scroll|auto",p:"padding",pb:"padding-bottom",pgba:"page-break-after:auto|always|left|right",pgbb:"page-break-before:auto|always|left|right",pgbi:"page-break-inside:auto|avoid",pl:"padding-left",pos:"position:relative|absolute|relative|fixed|static",pr:"padding-right",pt:"padding-top",q:"quotes",qen:"quotes:'\\201C' '\\201D' '\\2018' '\\2019'",qru:"quotes:'\\00AB' '\\00BB' '\\201E' '\\201C'",r:"right",rsz:"resize:none|both|horizontal|vertical",t:"top",ta:"text-align:left|center|right|justify",tal:"text-align-last:left|center|right",tbl:"table-layout:fixed",td:"text-decoration:none|underline|overline|line-through",te:"text-emphasis:none|accent|dot|circle|disc|before|after",th:"text-height:auto|font-size|text-size|max-size",ti:"text-indent",tj:"text-justify:auto|inter-word|inter-ideograph|inter-cluster|distribute|kashida|tibetan",to:"text-outline:${1:0} ${2:0} ${3:#000}",tov:"text-overflow:ellipsis|clip",tr:"text-replace",trf:"transform:${1}|skewX(${1:angle})|skewY(${1:angle})|scale(${1:x}, ${2:y})|scaleX(${1:x})|scaleY(${1:y})|scaleZ(${1:z})|scale3d(${1:x}, ${2:y}, ${3:z})|rotate(${1:angle})|rotateX(${1:angle})|rotateY(${1:angle})|rotateZ(${1:angle})|translate(${1:x}, ${2:y})|translateX(${1:x})|translateY(${1:y})|translateZ(${1:z})|translate3d(${1:tx}, ${2:ty}, ${3:tz})",trfo:"transform-origin",trfs:"transform-style:preserve-3d",trs:"transition:${1:prop} ${2:time}",trsde:"transition-delay:${1:time}",trsdu:"transition-duration:${1:time}",trsp:"transition-property:${1:prop}",trstf:"transition-timing-function:${1:fn}",tsh:"text-shadow:${1:hoff} ${2:voff} ${3:blur} ${4:#000}",tt:"text-transform:uppercase|lowercase|capitalize|none",tw:"text-wrap:none|normal|unrestricted|suppress",us:"user-select:none",v:"visibility:hidden|visible|collapse",va:"vertical-align:top|super|text-top|middle|baseline|bottom|text-bottom|sub",w:"width",whs:"white-space:nowrap|pre|pre-wrap|pre-line|normal",whsc:"white-space-collapse:normal|keep-all|loose|break-strict|break-all",wid:"widows",wm:"writing-mode:lr-tb|lr-tb|lr-bt|rl-tb|rl-bt|tb-rl|tb-lr|bt-lr|bt-rl",wob:"word-break:normal|keep-all|break-all",wos:"word-spacing",wow:"word-wrap:none|unrestricted|suppress|break-word|normal",z:"z-index",zom:"zoom:1"})},sass:{options:{"stylesheet.after":""}},stylus:{options:{"stylesheet.between":" ","stylesheet.after":""}}};function gde(e){const t={};return Object.keys(e).forEach(n=>{for(const i of n.split("|"))t[i]=e[n]}),t}function vde(e={},t={}){const n=e.type||"markup",i=e.syntax||hde[n];return Object.assign(Object.assign(Object.assign({},fde),e),{type:n,syntax:i,variables:yde(n,i,"variables",e,t),snippets:yde(n,i,"snippets",e,t),options:yde(n,i,"options",e,t)})}function yde(e,t,n,i,r={}){const o=mde[e],a=r[e],s=mde[t],l=r[t];return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},fde[n]),o&&o[n]),s&&s[n]),a&&a[n]),l&&l[n]),i[n])}function bde(e,t=0){return{text:e,start:t,pos:e.length}}function kde(e){return e.pos===e.start}function wde(e,t=0){return e.text.charCodeAt(e.pos-1+t)}function _de(e){if(!kde(e))return e.text.charCodeAt(--e.pos)}function Cde(e,t){if(kde(e))return!1;const n="function"==typeof t?t(wde(e)):t===wde(e);return n&&e.pos--,!!n}function xde(e,t){const n=e.pos;for(;Cde(e,t););return e.pos<n}function Sde(e){return 39===e||34===e}const Ede={91:93,40:41,123:125};function Ade(e){const t=e.pos;if(!Cde(e,62))return!1;let n=!1;for(Cde(e,47);!kde(e);){if(xde(e,Pde),Ide(e)){if(Cde(e,47)){n=Cde(e,60);break}if(Cde(e,60)){n=!0;break}if(Cde(e,Pde))continue;if(Cde(e,61)){if(Ide(e))continue;break}if(Tde(e)){n=!0;break}break}if(!Dde(e))break}return e.pos=t,n}function Dde(e){return function(e){const t=e.pos;if(function(e){const t=e.pos,n=_de(e);if(Sde(n))for(;!kde(e);)if(_de(e)===n&&92!==wde(e))return!0;return e.pos=t,!1}(e)&&Cde(e,61)&&Ide(e))return!0;return e.pos=t,!1}(e)||Tde(e)}function Tde(e){const t=e.pos,n=[];for(;!kde(e);){const t=wde(e);if(Mde(t))n.push(t);else if($de(t)){if(n.pop()!==Ede[t])break}else if(!Fde(t))break;e.pos--}return!(t===e.pos||!Cde(e,61)||!Ide(e))||(e.pos=t,!1)}function Ide(e){return xde(e,Ode)}function Ode(e){return 58===e||45===e||function(e){return e&=-33,e>=65&&e<=90}(e)||function(e){return e>47&&e<58}(e)}function Pde(e){return 32===e||9===e}function Fde(e){return!isNaN(e)&&61!==e&&!Pde(e)&&!Sde(e)}function $de(e){return 123===e||40===e||91===e}function Mde(e){return 125===e||41===e||93===e}const Lde=e=>e.charCodeAt(0),Nde="#.*:$-_!@%^+>/".split("").map(Lde),jde={type:"markup",lookAhead:!0,prefix:""};function Bde(e,t=e.length,n={}){const i=Object.assign(Object.assign({},jde),n);let r;t=Math.min(e.length,Math.max(0,null==t?e.length:t)),i.lookAhead&&(t=function(e,t,n){Sde(e.charCodeAt(t))&&t++;for(;zde(e.charCodeAt(t),n.type);)t++;return t}(e,t,i));const o=function(e,t,n){if(!n)return 0;const i=bde(e),r=n.split("").map(Lde);let o;i.pos=t;for(;!kde(i);)if(!Rde(i,93,91)&&!Rde(i,125,123)){if(o=i.pos,Vde(i,r))return o;i.pos--}return-1}(e,t,i.prefix||"");if(-1===o)return;const a=bde(e,o);a.pos=t;const s=[];for(;!kde(a);){if(r=wde(a),s.includes(125)){if(125===r){s.push(r),a.pos--;continue}if(123!==r){a.pos--;continue}}if(zde(r,i.type))s.push(r);else if(Hde(r,i.type)){if(s.pop()!==Ede[r])break}else{if(s.includes(93)||s.includes(125)){a.pos--;continue}if(Ade(a)||!qde(r))break}a.pos--}if(!s.length&&a.pos!==t){const i=e.slice(a.pos,t).replace(/^[*+>^]+/,"");return{abbreviation:i,location:t-i.length,start:n.prefix?o-n.prefix.length:t-i.length,end:t}}}function Rde(e,t,n){const i=e.pos;if(Cde(e,t))for(;!kde(e);){if(Cde(e,n))return!0;e.pos--}return e.pos=i,!1}function Vde(e,t){const n=e.pos;let i=!1;for(let n=t.length-1;n>=0&&!kde(e)&&Cde(e,t[n]);n--)i=0===n;return i||(e.pos=n),i}function qde(e){return e>64&&e<91||e>96&&e<123||e>47&&e<58||Nde.includes(e)}function Hde(e,t){return 40===e||"markup"===t&&(91===e||123===e)}function zde(e,t){return 41===e||"markup"===t&&(93===e||125===e)}function Ude(e,t){const n=vde(t);return"stylesheet"===n.type?function(e,t){return function(e,t){var n;const i=Ece(t.options),r=t.options["output.format"];"@@section"===(null===(n=t.context)||void 0===n?void 0:n.name)&&(e=e.filter(e=>e.snippet));for(let n=0;n<e.length;n++)r&&0!==n&&Tce(i,!0),Yue(e[n],i,t);return i.value}(tde(e,t),t)}(e,n):function(e,t){return function(e,t){return(Fue[t.syntax]||Cue)(e,t)}($ue(e,t),t)}(e,n)}function Wde(e,t){const n=new Qee(e),i={start:-1,end:-1,propertyStart:-1,propertyEnd:-1,propertyDelimiter:-1,expression:0};let r;const o=(e,r=n.start,o=i.start,a=i.end)=>!1===t(e,o,a,r);for(;!n.eof();)if(!Kde(n)&&!Gde(n))if(n.start=n.pos,(r=n.eat(125))||n.eat(59)){if(-1!==i.propertyStart){if(o("propertyName",i.propertyDelimiter,i.propertyStart,i.propertyEnd))return;if(-1===i.start&&(i.start=i.end=n.start),o("propertyValue"))return}else if(-1!==i.start&&o("propertyName"))return;if(r&&(i.start=n.start,i.end=n.pos,o("blockEnd")))return;Yde(i)}else if(n.eat(123)){if(-1===i.start&&-1===i.propertyStart&&(i.start=i.end=n.pos),-1!==i.propertyStart&&(i.start=i.propertyStart),o("selector"))return;Yde(i)}else n.eat(58)&&!Jde(n,i)?(-1===i.propertyStart&&(i.propertyStart=i.start),i.propertyEnd=i.end,i.propertyDelimiter=n.pos-1,i.start=i.end=-1):(-1===i.start&&(i.start=n.pos),n.eat(40)?i.expression++:n.eat(41)?i.expression--:Qde(n)||n.pos++,i.end=n.pos);-1!==i.propertyStart&&o("propertyName",i.propertyDelimiter,i.propertyStart,i.propertyEnd)||-1!==i.start&&o(-1!==i.propertyStart?"propertyValue":"propertyName",-1)}function Gde(e){return e.eatWhile(Uee)}function Kde(e){const t=e.pos;if(e.eat(47)&&e.eat(42)){for(e.start=t;!e.eof();)if(e.eat(42)){if(e.eat(47))return!0}else e.pos++;return!0}return e.pos=t,!1}function Qde(e){const t=e.peek();if(Gee(t)){for(e.start=e.pos++;!e.eof()&&!(e.eat(t)||e.eat(10)||e.eat(13));)e.eat(92),e.pos++;return!0}}function Yde(e){e.start=e.end=e.propertyStart=e.propertyEnd=e.propertyDelimiter=-1}function Jde(e,t){return t.expression||e.eatWhile(58)}function Xde(e,t){const n=[],i=[],r=[];let o=null;const a=(e,t,i)=>{if(n.length){const r=n.pop();return r.start=e,r.end=t,r.delimiter=i,r}return{start:e,end:t,delimiter:i,firstChild:null}},s=e=>{e.firstChild=null,n.push(e)},l=()=>{o&&(s(o),o=null)};return Wde(e,(n,c,u,d)=>{if("blockEnd"===n){l();let n=i.pop();if(!n)return;if(n.start<=t&&t<=u){let t=Zde(e,n.delimiter+1,c);for(npe(r,[n.start,u]),t&&npe(r,t);n.firstChild;){const i=n.firstChild;t=Zde(e,i.delimiter+1,i.end-1),npe(r,[i.start,i.end]),t&&npe(r,t),n=i}return!1}{const e=ipe(i);e&&!e.firstChild?(n.end=u,e.firstChild=n):s(n)}}else if("propertyName"===n)l(),o=a(c,u,d),((e,t,n)=>{const r=ipe(i);r&&!r.firstChild&&(r.firstChild=a(e,t,n))})(c,u,d);else if("propertyValue"===n){if(o){if(o.start<=t&&u>=t)return npe(r,[o.start,d+1]),npe(r,[c,u]),l(),!1;const e=ipe(i);e&&e.firstChild&&e.firstChild.start===o.start&&(e.firstChild.end=-1!==d?d+1:u),l()}}else i.push(a(c,u,d)),l()}),i.length=n.length=0,r}function Zde(e,t,n){for(;t<n&&Uee(e.charCodeAt(t));)t++;for(;n>t&&Uee(e.charCodeAt(n-1));)n--;return t!==n?[t,n]:null}function epe(e,t,n,i){if(e.length){const r=e.pop();return r[0]=t,r[1]=n,r[2]=i,r}return[t,n,i]}function tpe(e,t){return t&&e.push(t),null}function npe(e,t){const n=e.length?e[e.length-1]:null;n&&n[0]===t[0]&&n[1]===t[1]||t[0]===t[1]||e.push(t)}function ipe(e){return e.length?e[e.length-1]:null}const rpe=hpe("null",0);function ope(e){const t=e.pos;return!(!e.eat(46)||!e.eatWhile(Ree))||(!(!e.eatWhile(Ree)||e.eat(46)&&!e.eatWhile(Ree))||(e.pos=t,!1))}function ape(e,t){return hpe("num",parseFloat(e),t)}function spe(e,t=0){return 45===e&&(t+=2),hpe("op1",e,t)}function lpe(e,t=0){return 42===e?t+=1:47!==e&&92!==e||(t+=2),hpe("op2",e,t)}function cpe(e,t){throw t&&(e+=` at column ${t.pos} of expression`),new Error(e)}function upe(e){return function(e){return 43===e}(e)||dpe(e)}function dpe(e){return 45===e}function ppe(e){return 43===e||45===e||42===e||47===e||92===e}function hpe(e,t,n=0){return{type:e,value:t,priority:n}}const fpe={lookAhead:!0,whitespace:!0};function mpe(e){if(Ree(gpe(e))){e.pos--;let t,n=!1;for(;e.pos>=0;){if(t=gpe(e),46===t){if(n)break;n=!0}else if(!Ree(t))break;e.pos--}return!0}return!1}function gpe(e){return e.text.charCodeAt(e.pos-1)}function vpe(e){return e.text.charCodeAt(e.pos)}const ype={45:e=>-e},bpe={43:(e,t)=>e+t,45:(e,t)=>e-t,42:(e,t)=>e*t,47:(e,t)=>e/t,92:(e,t)=>Math.floor(e/t)};function kpe(e){if(Array.isArray(e)||(e=function(e){const t="string"==typeof e?new Qee(e):e;let n,i=0,r=21;const o=[];for(;!t.eof();)t.eatWhile(zee),t.start=t.pos,ope(t)?(1&r||cpe("Unexpected number",t),o.push(ape(t.current())),r=10):ppe(t.peek())?(n=t.next(),upe(n)&&16&r?(dpe(n)&&o.push(spe(n,i)),r=21):(2&r||cpe("Unexpected operator",t),o.push(lpe(n,i)),r=21)):t.eat(40)?(4&r||cpe('Unexpected "("',t),i+=10,r=53):t.eat(41)?(i-=10,32&r?o.push(rpe):8&r||cpe('Unexpected ")"',t),r=14):cpe("Unknown character",t);(i<0||i>=10)&&cpe('Unmatched "()"',t);const a=function(e){const t=[],n=[];let i=0;for(let r=0;r<e.length;r++){const o=e[r];if("num"===o.type)n.push(o);else{for(i+="op1"===o.type?1:2;t.length&&o.priority<=t[t.length-1].priority;)n.push(t.pop());t.push(o)}}return i+1===n.length+t.length?n.concat(t.reverse()):null}(o);return null===a&&cpe("Parity",t),a}(e)),!e||!e.length)return null;const t=[];let n,i,r;for(let o=0,a=e.length;o<a;o++){const a=e[o];if("num"===a.type)t.push(a.value);else if("op2"===a.type)i=t.pop(),n=t.pop(),r=bpe[a.value],t.push(r(n,i));else{if("op1"!==a.type)throw new Error("Invalid expression");n=t.pop(),r=ype[a.value],t.push(r(n))}}if(t.length>1)throw new Error("Invalid Expression (parity)");return t[0]}function wpe(e,t,n){const i=null!=t?e.posFromIndex(t):e.getCursor(),r=pce(e)||"html",o=qne(e),a={"output.baseIndent":Cpe(e,i.line),"output.indent":xpe(e),"output.field":_pe(),"output.format":!n,"output.attributeQuotes":o.attributeQuotes};return"html"===r&&(a["output.selfClosingStyle"]=o.markupStyle,a["output.compactBoolean"]="html"===o.markupStyle),mce(r)&&(o.comments&&(a["comment.enabled"]=!0,o.commentsTemplate&&(a["comment.after"]=o.commentsTemplate)),a["bem.enabled"]=o.bem,a["stylesheet.shortHex"]=o.shortHex),a}function _pe(){let e=-1;return(t,n)=>-1===e||e===t?(e=t,n?Xse+n+Zse:Xse):n||""}function Cpe(e,t){const n=e.getLine(t).match(/^\s+/);return n?n[0]:""}function xpe(e){return e.getOption("indentWithTabs")?"\t":" ".repeat(e.getOption("indentUnit")||0)}let Spe={};function Epe(e,t,n){let i={cache:Spe};const r={"output.field":_pe(),"output.format":!n||!n.inline};n&&(Object.assign(i,n),n.options&&Object.assign(r,n.options)),i.options=r;const o=qne(e);return o.config&&(i=vde(i,o.config)),Ude(t,i)}function Ape(e,t,n="markup",i){return Bde(e,t,Object.assign({lookAhead:"stylesheet"!==n,type:n},i))}function Dpe(e,t,n=!1,i=!1){const r={xml:i};return n?function(e,t,n){const i=[],r=[],o=xle(n),a=[],s=(e,t,n)=>{if(i.length){const r=i.pop();return r.name=e,r.ranges.push(t,n),r}return{name:e,ranges:[t,n]}},l=e=>{e.ranges.length=0,e.firstChild=void 0,i.push(e)};return Wle(e,(e,n,i,c)=>{if(2===n){if(!r.length)return;let n=rce(r);if(n.name===e){if(n.ranges[0]<=t&&t<=c){for(a.push({name:e,open:n.ranges.slice(0,2),close:[i,c]});n.firstChild;){const e=n.firstChild,t={name:e.name,open:e.ranges.slice(0,2)};e.ranges.length>2&&(t.close=e.ranges.slice(2,4)),a.push(t),l(n),n=e}return!1}{r.pop();const e=rce(r);e&&!e.firstChild?(n.ranges.push(i,c),e.firstChild=n):l(n)}}}else if(3===n||ice(e,o)){if(i<t&&t<c)return a.push({name:e,open:[i,c]}),!1;const n=rce(r);n&&!n.firstChild&&(n.firstChild=s(e,i,c))}else r.push(s(e,i,c))},o),r.length=i.length=0,a}(e,t,r):function(e,t,n){const i=[],r=[],o=xle(n),a=[];return Wle(e,(e,n,s,l)=>{if(2===n){const n=rce(r);n&&n.name===e&&(n.start<t&&t<l&&a.push({name:e,open:[n.start,n.end],close:[s,l]}),tce(i,r.pop()))}else 3===n||ice(e,o)?s<t&&t<l&&a.push({name:e,open:[s,l]}):r.push(ece(i,e,s,l))},o),r.length=i.length=0,a}(e,t,r)}function Tpe(e,t,n){return n?Xde(e,t):function(e,t){const n=[],i=[],r=[];let o=null;return Wde(e,(a,s,l,c)=>{if("selector"===a)i.push(epe(n,s,l,c));else if("blockEnd"===a){const o=i.pop();if(o&&o[0]<t&&l>t){const t=Zde(e,o[2]+1,s);t&&npe(r,t),npe(r,[o[0],l])}if(o&&tpe(n,o),!i.length)return!1}else"propertyName"===a?(o&&tpe(n,o),o=epe(n,s,l,c)):"propertyValue"===a&&o&&o[0]<t&&Math.max(c,l)>t&&(npe(r,[s,l]),npe(r,[o[0],-1!==c?c+1:l]));"propertyName"!==a&&o&&(tpe(n,o),o=null)}),r}(e,t)}function Ipe(e,t,n,i){return n?Rse(e,t,i):Nse(e,t,i)}function Ope(e,t,n){const i=function(e,t=e.length,n){const i=Object.assign(Object.assign({},fpe),n),r={text:e,pos:t};let o;if(i.lookAhead&&41===vpe(r)){r.pos++;const t=e.length;for(;r.pos<t&&(o=vpe(r),41===o||i.whitespace&&Uee(o));)r.pos++}const a=r.pos;let s=0;for(;r.pos>=0;)if(!mpe(r)){if(o=gpe(r),41===o)s++;else if(40===o){if(!s)break;s--}else if(!(i.whitespace&&Uee(o)||upe(o)||ppe(o)))break;r.pos--}if(r.pos!==a&&!s){for(;Uee(vpe(r));)r.pos++;return[r.pos,a]}return null}(e,t,n);if(i)try{const[t,n]=i,r=kpe(e.slice(t,n));if(null!==r)return{start:t,end:n,result:r,snippet:r.toFixed(4).replace(/\.?0+$/,"")}}catch(e){console.error(e)}}function Ppe(e,t,n){const i=ale(e);let r;if(null==n){const t=e.getMode();n=!!t&&fce(t.name)}const o=function(e,t,n){const i=[],r=[],o=xle(n);let a=null;return Wle(e,(n,s,l,c)=>{if(1===s&&ice(n,o)&&(s=3),1===s)r.push(ece(i,n,l,c));else if(3===s){if(l<t&&t<c)return a={name:n,attributes:nce(e,l,c,n),open:[l,c]},!1}else{const o=rce(r);if(o&&o.name===n){if(o.start<t&&t<c)return a={name:n,attributes:nce(e,o.start,o.end,n),open:[o.start,o.end],close:[l,c]},!1;r.length&&tce(i,r.pop())}}},o),r.length=i.length=0,a}(i,t,{xml:n});if(o){const{open:e,close:t}=o;r={name:o.name,open:e,close:t},o.attributes&&(r.attributes={},o.attributes.forEach(e=>{let t=e.value;t&&dle(t)&&(t=t.slice(1,-1)),r.attributes[e.name]=null==t?null:t}))}return r}function Fpe(e,t){const n=dce(e,t),{context:i}=n,r={type:n.type,syntax:n.syntax||"html",options:wpe(e,t,n.inline)};if(i){const t=ale(e);"html"===i.type&&i.ancestors.length?r.context=function(e,t){const n=ble(t.ancestors);if(n){const t={};for(const i of Mle(e.slice(n.range[0],n.range[1]),n.name))t[i.name]=cle(i)||"";return{name:n.name,attributes:t}}}(t,i):"css"===i.type&&(r.context=function(e){if(e.inline)return{name:"@@property"};const t=ble(e.ancestors);let n="@@global";return e.current&&("propertyValue"===e.current.type&&t?n=t.name:"selector"!==e.current.type&&"propertyName"!==e.current.type||t||(n="@@section")),{name:n}}(i))}return r}const $pe="emmet-abbreviation",Mpe="emmet-abbreviation-preview";function Lpe(e,t){return t}const Npe=new class{constructor(){this.marker=null,this.preview=null,this.forcedMarker=null}get id(){return wle(this.cm).id}substr(e,t){const n=this.cm.getValue();return void 0===e&&void 0===t?n:n.slice(e||0,t)}replace(e,t,n){this.cm.replaceRange(e,this.cm.posFromIndex(t),this.cm.posFromIndex(n))}syntax(){return pce(this.cm)}size(){return this.cm.getValue().length}config(e){return Fpe(this.cm,e)}outputOptions(e,t){return wpe(this.cm,e,t)}previewConfig(e){return Object.assign(Object.assign({},e),{options:Object.assign(Object.assign({},e.options),{"output.field":Lpe,"output.indent":" ","output.baseIndent":""})})}allowTracking(e){return Bpe(this.cm,e)}mark(e){const{cm:t}=this;this.disposeMarker();const[n,i]=lle(t,e.range);this.marker=t.markText(n,i,{inclusiveLeft:!0,inclusiveRight:!0,clearWhenEmpty:!1,className:$pe}),e.forced&&!this.forcedMarker&&(this.forcedMarker=document.createElement("div"),this.forcedMarker.className=`${$pe}-marker`,t.addWidget(n,this.forcedMarker,!1))}unmark(){this.disposeMarker(),this.hidePreview()}showPreview(e){const{cm:t}=this,n=qne(t);if(!yce(n.preview,dce(t,e.range[0])))return;let i,r=!1;if("error"===e.type?(i=yle(e.error),r=!0):!e.forced&&e.simple||(i=e.preview),i){if(!this.preview){const i=document.createElement("div");i.className=Mpe;const r=t.posFromIndex(e.range[0]);n.attachPreview?n.attachPreview(t,i,r):t.addWidget(r,i,!1),this.preview=new this.cm.constructor(i,{mode:t.getOption("mode"),readOnly:"nocursor",lineNumbers:!1});const o=document.createElement("div");o.className=`${Mpe}-error`,i.appendChild(o)}const o=this.preview.getWrapperElement().parentElement;o.classList.toggle("has-error",r),r?o.querySelector(`.${Mpe}-error`).innerHTML=i:this.preview.setValue(i)}else this.hidePreview()}hidePreview(){this.preview&&(this.preview.getWrapperElement().parentElement.remove(),this.preview=null)}isCSS(e){return gce(e)}syntaxType(e){return hce(e)}isHTML(e){return mce(e)}isXML(e){return fce(e)}isJSX(e){return vce(e)}run(e,t){const{cm:n}=this;this.cm=e;const i=t();return this.cm=n,i}disposeMarker(){this.marker&&(this.marker.clear(),this.marker=null),this.forcedMarker&&(this.forcedMarker.remove(),this.forcedMarker=null)}},jpe=new class{constructor(){this.cache=new Map,this.trackers=new Map,this.lastPos=new Map}getLastPost(e){return this.lastPos.get(e.id)}setLastPos(e,t){this.lastPos.set(e.id,t)}getTracker(e){return this.trackers.get(e.id)}typingAbbreviation(e,t){var n;const i=e.substr(Math.max(0,t-2),t),r=e.syntax();let o=-1,a=t,s=0;if(e.isJSX(r)?2===i.length&&"<"===i[0]&&Qse.test(i[1])&&(o=t-2,s=1):Yse.test(i)&&(o=t-1),o>=0){const r=i[i.length-1];r in Dse&&e.substr(t,t+1)===Dse[r]&&a++;const l=this.getActivationContext(e,t);if(l){if("stylesheet"===l.type&&!Jse.test(i))return;const t=this.startTracking(e,o,a,{offset:s,config:l});if(t&&"abbreviation"===t.type&&"@@section"===(null===(n=l.context)||void 0===n?void 0:n.name)){const{abbreviation:n,preview:i}=t;if(i.startsWith(n)&&/^:\s*;?$/.test(i.slice(n.length)))return void this.stopTracking(e)}return t}}}startTracking(e,t,n,i){const r=(null==i?void 0:i.config)||e.config(t),o=this.createTracker(e,[t,n],Object.assign({config:r},i));if(o)return this.trackers.set(e.id,o),o;this.trackers.delete(e.id)}stopTracking(e,t){const n=this.getTracker(e);n&&(e.unmark(n),n.forced&&!(null==t?void 0:t.skipRemove)&&e.replace("",n.range[0],n.range[1]),(null==t?void 0:t.force)?this.cache.delete(e.id):this.storeTracker(e,n),this.trackers.delete(e.id))}createTracker(e,t,n){if(t[0]>=t[1])return null;let i=e.substr(t[0],t[1]);const{config:r}=n;if(n.offset&&(i=i.slice(n.offset)),!i||/[\r\n]/.test(i))return null;const o={abbreviation:i,range:t,config:r,forced:!!n.forced,offset:n.offset||0,lastPos:t[1],lastLength:e.size()};try{let t,n=!1;"stylesheet"===r.type?t=Aoe(i):(t=Qre(i,{jsx:"jsx"===r.syntax}),n=this.isSimpleMarkupAbbreviation(t));const a=e.previewConfig(r);return Object.assign(Object.assign({},o),{type:"abbreviation",simple:n,preview:Ase(t,a)})}catch(e){return Object.assign(Object.assign({},o),{type:"error",error:e})}}storeTracker(e,t){this.cache.set(e.id,t)}getStoredTracker(e){return this.cache.get(e.id)}restoreTracker(e,t){const n=this.getStoredTracker(e);if(n&&n.range[0]<=t&&n.range[1]>=t){const[t,i]=n.range;if(e.substr(t+n.offset,i)===n.abbreviation)return this.trackers.set(e.id,n),n.lastLength=e.size(),n}}handleChange(e,t){const n=this.getTracker(e),i=this.getLastPost(e);if(this.setLastPos(e,t),!n)return null!=i&&i===t-1&&e.allowTracking(t)?this.typingAbbreviation(e,t):void 0;const{lastPos:r}=n;let{range:o}=n;if(r<o[0]||r>o[1])return void this.stopTracking(e);const a=e.size()-n.lastLength;if(o=o.slice(),function(e,t,n){t<0?n===e[0]?(e[0]+=t,e[1]+=t):e[0]<n&&n<=e[1]&&(e[1]+=t):t>0&&e[0]<=n&&n<=e[1]&&(e[1]+=t)}(o,a,r),o[0]===o[1]&&n.forced)return n.abbreviation="",n;const s=this.createTracker(e,o,n);if(s&&(n.forced||function(e,t,n){if("error"===e.type){if(t[1]===n)return!1;const{abbreviation:i}=e,r=t[0];let o=t[1];for(;o>r&&Tse.includes(i[o-r-1]);)o--;return o!==n}return!0}(s,o,t)))return s.lastPos=t,this.trackers.set(e.id,s),e.mark(s),s;this.stopTracking(e)}handleSelectionChange(e,t){this.setLastPos(e,t);const n=this.getTracker(e)||this.restoreTracker(e,t);if(n)return n.lastPos=t,n}getActivationContext(e,t){const n=e.syntax(),i=e.substr();if(e.isCSS(n))return this.getCSSActivationContext(e,t,n,qse(i,t));if(!e.isHTML(n))return{syntax:n,type:e.syntaxType(n),options:e.outputOptions(t)};{const r=Vse(i,t,{xml:e.isXML(n)});if(r.css)return this.getCSSActivationContext(e,t,function(e,t){const n=Mse(t.ancestors);if(n&&"style"===n.name)for(const t of hie(e.slice(n.range[0],n.range[1]),n.name))if("type"===t.name)return $se(t)}(i,r)||"css",r.css);if(!r.current)return{syntax:n,type:"markup",context:Hse(i,r),options:e.outputOptions(t)}}}getCSSActivationContext(e,t,n,i){if(!i.current)return;return"propertyName"===i.current.type||"propertyValue"===i.current.type||this.isTypingBeforeSelector(e,t,i)?{syntax:n,type:"stylesheet",context:zse(i),options:e.outputOptions(t,i.inline)}:void 0}isTypingBeforeSelector(e,t,{current:n}){if(n&&"selector"===n.type&&n.range[0]===t-1){return 1===e.substr(n.range[0],n.range[1]).split(/[\n\r]/)[0].trim().length}return!1}isSimpleMarkupAbbreviation(e){if(1===e.children.length&&!e.children[0].children.length){const t=e.children[0];return!t.name||/^[a-z]/i.test(t.name)}return!e.children.length}disposeEditor(e){this.cache.delete(e.id),this.trackers.delete(e.id),this.lastPos.delete(e.id)}};function Bpe(e,t){if(Rpe(e,t)){const n=function(e,t){const n=e.posFromIndex(t),i=e.getModeAt(n);return i&&"xml"===i.name?i.configuration||i.name:i&&i.name}(e,t);return!!n&&(function(e){return!!e&&(cce.includes(e)||uce.includes(e))}(n)||vce(n))}return!1}function Rpe(e,t){return yce(qne(e).mark,dce(e,t))}function Vpe(e,t,n){return Npe.run(e,()=>{const e=Npe.syntax(),i=Npe.isJSX(e)?"<":"",r=jpe.getActivationContext(Npe,t),o=Ape(Npe.substr(),t,hce(null==r?void 0:r.syntax),{prefix:i});if(o){const e=jpe.startTracking(Npe,o.start,o.end,{offset:i.length,config:r});if(e){if("error"===e.type&&n)return void jpe.stopTracking(Npe,{force:!0});Npe.showPreview(e)}return e}})}function qpe(e){return Npe.run(e,()=>jpe.getTracker(Npe))}function Hpe(e,t){return Npe.run(e,()=>jpe.stopTracking(Npe,t))}function zpe(e,t){return t>=e.range[0]&&t<=e.range[1]}const Upe="emmet-open-tag",Wpe="emmet-close-tag";function Gpe(e){let t,n=null,i=null;function r(e,t,n){i&&i.dataset.pos===String(t)||(o(),i=function(e,t,n){const i=document.createElement("div");return i.className="emmet-tag-preview",i.innerText=n,i.dataset.pos=String(t),e.addWidget(e.posFromIndex(t),i,!1),i}(e,t,n))}function o(){i&&(i.remove(),i=null)}const a=e=>{n||(n=Lse(e.getValue()));const i=ole(e);let a=function(e,t,n){let i;return"string"==typeof e&&(e=Lse(e,n)),e.some(e=>{const n=e.open[0],r=e.close?e.close[1]:e.open[1];if(t<n)return!0;t>n&&t<r&&(i=e)}),i}(n,i);if(a){a.preview||(a.preview=function(e,t){let n="",i="";const r=[];Mle(sle(e,t.open),t.name).forEach(e=>{"class"===e.name&&e.value?n="."+Xpe(e.value).replace(/\s+/g,"."):"id"===e.name&&e.value?i="#"+Xpe(e.value):r.push(e.value?`${e.name}=${e.value}`:e.name)});const o=r.length?`[${r.join(" ")}]`:"",a=i+n+o;return a?t.name+a:""}(e,a)),!function(e,t,n){return t.close&&t.preview&&qne(e).previewOpenTag&&n>t.close[0]&&n<t.close[1]}(e,a,i)?o():r(e,a.close[1],a.preview);const t=a.name.length;a=Object.assign(Object.assign({},a),{open:[a.open[0]+1,a.open[0]+1+t]}),a.close&&(a.close=[a.close[0]+2,a.close[0]+2+t])}!a||t&&mle(t.open,a.open)?!a&&t&&Kpe(e):(Kpe(e),function(e,{open:t,close:n,preview:i}){Ype(e,e.posFromIndex(t[0]),e.posFromIndex(t[1]),Upe),n&&Ype(e,e.posFromIndex(n[0]),e.posFromIndex(n[1]),Wpe)}(e,a)),t=a},s=e=>{if(n=null,qne(e).autoRenameTags){const{open:n,close:i}=Qpe(e);if(n&&i){const r=e.getCursor(),o=n.find(),a=i.find();let s=!1;the(e,o)||the(e,a)?s=!0:function(e,t,n){const i=e.getRange(t.from,t.to),r=e.getRange(n.from,n.to);return i!==r}(e,o,a)&&(Zpe(o,r)?s=Jpe(e,o,a):Zpe(a,r)&&(s=Jpe(e,a,o))),s&&(Kpe(e),t=null)}}};return e.on("cursorActivity",a),e.on("change",s),()=>{Kpe(e),o(),e.off("cursorActivity",a),e.off("cursorActivity",s),n=t=null}}function Kpe(e){const{open:t,close:n}=Qpe(e);t&&t.clear(),n&&n.clear()}function Qpe(e){let t,n;return e.getAllMarks().forEach(e=>{e.className===Upe?t=e:e.className===Wpe&&(n=e)}),{open:t,close:n}}function Ype(e,t,n,i,r){return e.markText(t,n,{className:i,inclusiveLeft:!0,inclusiveRight:!0,clearWhenEmpty:!1,attributes:r})}function Jpe(e,t,n){const i=e.getRange(t.from,t.to),r=i.match(/[\w:.-]+/),o=r?r[0]:"";return e.getRange(n.from,n.to)!==o&&e.replaceRange(o,n.from,n.to),i!==o}function Xpe(e){return dle(e)?e.slice(1,-1):e}function Zpe(e,t,n){return n?ehe(t,e.from)>0&&ehe(t,e.to)<0:ehe(t,e.from)>=0&&ehe(t,e.to)<=0}function ehe(e,t){return e.line-t.line||e.ch-t.ch}function the(e,t){return""===e.getRange(t.from,t.to)}function nhe(e,t){const n=new Error(e);return n.ch=t.pos,n}function ihe(e,t,n="Unexpected character"){return t.parseError=nhe(n.replace(/\s+at\s+\d+$/,""),e),e.skipToEnd(),"invalidchar"}function rhe(e){return e[e.length-1]}function ohe(){return{startState(){return{attribute:0,expression:0,group:0,quote:0,braces:[],tokens:[],scanner:new Qee("")}},token(e,t){const{scanner:n}=t;n.string=e.string,n.pos=e.pos,n.start=e.start,n.end=e.string.length;const i=n.peek(),r=$te(n,t);if(!r)return ihe(e,t);if(e.pos=n.pos,"Quote"===r.type)t.quote=i===t.quote?0:i;else if("Bracket"===r.type)if(r.open)t[r.context]++,t.braces.push(r);else{t[r.context]--;const e=rhe(t.braces);e&&e.context===r.context&&t.braces.pop()}if(e.eol()&&t.braces.length&&!t.parseError){const n=rhe(t.braces).start;return t.parseError=nhe(`No closing brace at ${n}`,e),null}const o=function(e,t){const n=rhe(t.tokens);switch(e.type){case"Bracket":return"bracket";case"Field":return"variable-2";case"Literal":if(t.attribute)return n&&"Operator"===n.type&&"equal"===n.operator?"string-2":t.quote?"string":"attribute";if(t.quote)return"string";if(n&&"Operator"===n.type){if("class"===n.operator)return"variable-2";if("id"===n.operator)return"variable-3"}return"tag";case"Operator":return"class"===e.operator?"variable-2":"id"===e.operator?"variable-3":`operator ${e.operator}`;case"Repeater":case"RepeaterPlaceholder":return"meta";case"Quote":return"string";case"RepeaterNumber":return"number"}return""}(r,t);return t.tokens.push(r),o}}}function ahe(){return{startState(){return{brackets:0,tokens:[],scanner:new Qee("")}},token(e,t){const{scanner:n}=t;n.string=e.string,n.pos=e.pos,n.start=e.start,n.end=e.string.length;const i=lne(n,0===t.brackets);if(!i)return ihe(e,t);if("Bracket"===i.type&&(t.brackets+=i.open?1:-1,t.brackets<0))return ihe(e,t,"Unexpected bracket");e.pos=n.pos;const r=function(e){switch(e.type){case"Bracket":return"bracket";case"Field":return"variable-2";case"Literal":return"tag";case"Operator":return`operator ${e.operator}`;case"ColorValue":return"variable-3";case"NumberValue":return"number";case"StringValue":return"string"}return null}(i);return t.tokens.push(i),r}}}function she(){return{token(e){return e.eatWhile(lhe)?"tag":e.eat(che)?"operator":(e.skipToEnd(),"invalidchar")}}}function lhe(e){return/[a-zA-Z0-9-_$@!:]/.test(e)}function che(e){return"|"===e}function uhe(e,t){if(e.somethingSelected())return hle(e);if(t)return function(e){const t=ole(e);if(qne(e).mark){const n=qpe(e);return n&&zpe(n,t)&&"abbreviation"===n.type?(dhe(e,n.abbreviation,n.range,n.config),void Hpe(e,{skipRemove:!0})):hle(e)}return function(e,t){return Npe.run(e,()=>t(jpe,Npe))}(e,(n,i)=>{const r=n.getActivationContext(i,t);if(r){const n=e.posFromIndex(t),i=Ape(e.getLine(n.line),n.ch,hce(r.syntax));if(i){const o=t-n.ch;return void dhe(e,i.abbreviation,[i.start+o,i.end+o],r)}}return hle(e)})}(e);const n=ole(e),i=e.posFromIndex(n),r=e.getLine(i.line),o=Fpe(e,n),a=Ape(r,i.ch,hce(o.syntax));if(a){const t=n-i.ch;dhe(e,a.abbreviation,[a.start+t,a.end+t],o)}}function dhe(e,t,n,i){rle(e,n,Epe(e,t,i))}function phe(e){if(!qpe(e))return hle(e);Hpe(e,{force:!0})}function hhe(e){Hpe(e),Vpe(e,ole(e))}function fhe(e){let t=qpe(e);if(Hpe(e),t&&t.forced)return;const[n,i]=fle(e,e.listSelections()[0]);t=function(e,t,n,i){return Npe.run(e,()=>{const e=jpe.startTracking(Npe,t,n,i);return e&&Npe.showPreview(e),e})}(e,n,i,{forced:!0}),n!==i&&e.setSelection(e.posFromIndex(i))}function mhe(e){const t=e.listSelections().map(t=>function(e,t,n){if(i=t,r=n,i.sticky===r.sticky&&0===function(e,t){return e.line-t.line||e.ch-t.ch}(i,r)){if("xml"===e.getModeAt(t).name){const n=e.getTokenAt(t),i=e.getTokenAt(Object.assign({},t,{ch:t.ch+1}));return"tag bracket"===n.type&&">"===n.string&&"tag bracket"===i.type&&"</"===i.string}}var i,r}(e,t.anchor,t.head));if(!t.some(Boolean))return hle(e);e.operation(()=>{const n=e.listSelections(),i=e.getDoc().lineSeparator(),r=xpe(e),o=[];for(let a=n.length-1;a>=0;a--){const s=n[a],l=Cpe(e,s.anchor.line);let c=l;t[a]?(c+=r,e.replaceRange(i+c+i+l,s.anchor,s.head)):e.replaceRange(i+l,s.anchor,s.head);const u={line:s.anchor.line+1,ch:c.length};o.unshift({anchor:u,head:u})}e.setSelections(o)})}const ghe="emmet-panel",vhe="emmet-error";function yhe(e){const t=pce(e),n=ole(e),i=Ppe(e,n,fce(t)),r=function(e,t,n){if(t[0]===t[1]&&n){const{open:i,close:r}=n,o=t[0];if(bhe(i,o)||r&&bhe(r,o))return[i[0],r?r[1]:i[1]];if(r)return ile(e,[i[1],r[0]])}return t}(e,function(e){return fle(e,e.listSelections()[0])}(e),i),o=Fpe(e,r[0]);o.text=function(e,t,n=!1){const i=e.posFromIndex(t[0]),r=Cpe(e,i.line),o=sle(e,t).split("\n"),a=o.map(e=>e.startsWith(r)?e.slice(r.length):e);return n?a:a.join("\n")}(e,r,!0);let a=function(){const e=document.createElement("div");return e.className=ghe,e.innerHTML=`<div class="${ghe}-wrapper">\n <input type="text" placeholder="Enter abbreviation" autofocus />\n <div class="${ghe}-error"></div>\n </div>`,e}(),s=a.querySelector("input"),l=a.querySelector(`.${ghe}-error`),c=!1;function u(t){t&&t.stopPropagation(),p();const n=s.value.trim();if(n)try{const t=Epe(e,n,o);rle(e,r,t),c=!0,a.classList.contains(vhe)&&(l.innerHTML="",a.classList.remove(vhe))}catch(e){c=!1,a.classList.add(vhe),l.innerHTML=yle(e),console.error(e)}}function d(e){27===e.keyCode?(e.stopPropagation(),e.preventDefault(),h()):13===e.keyCode&&(e.stopPropagation(),e.preventDefault(),f())}function p(){c&&e.undo()}function h(){p(),m(),e.focus()}function f(){m(),e.focus()}function m(){s.removeEventListener("input",u),s.removeEventListener("change",u),s.removeEventListener("paste",u),s.removeEventListener("keydown",d),s.removeEventListener("blur",h),a.remove(),a=s=l=null}a.emmet={submit:f,cancel:h,update:u},s.addEventListener("input",u),s.addEventListener("change",u),s.addEventListener("paste",u),s.addEventListener("keydown",d),e.getWrapperElement().appendChild(a),s.focus()}function bhe(e,t){return e[0]<t&&t<e[1]}function khe(e,t){const n=pce(e);if(!mce(n)&&!gce(n))return hle(e);{const i=t?function(e,t){const n=[];for(const i of e.listSelections()){const r=fle(e,i),o=_he(e,r[0],t,!0);let a,s=o.findIndex(e=>mle(r,e));s<o.length-1?a=o[s+1]:-1!==s&&(a=o.find(e=>gle(e,r))),n.push(a||r)}return n}(e,n):function(e,t){const n=[];for(const i of e.listSelections()){const r=fle(e,i),o=_he(e,r[0],t).find(e=>gle(e,r)&&e[1]>r[1]);n.push(o||r)}return n}(e,n);e.setSelections(i.map(t=>({anchor:e.posFromIndex(t[0]),head:e.posFromIndex(t[1])})))}}function whe(e,t){const n=e[e.length-1];n&&mle(n,t)||e.push(t)}function _he(e,t,n,i){const r=ale(e);if(gce(n))return Tpe(r,t,i);const o=[],a=Dpe(r,t,i,fce(n));for(const e of a)e.close?(whe(o,[e.open[1],e.close[0]]),whe(o,[e.open[0],e.close[1]])):whe(o,[e.open[0],e.open[1]]);return o.sort((e,t)=>i?e[0]-t[0]:t[0]-e[0])}const Che=["\x3c!--","--\x3e"],xhe=["/*","*/"];function She(e){const t=e.listSelections().slice().reverse();e.operation(()=>{for(const n of t){const t=fle(e,n),{syntax:i}=dce(e,t[0]),r=i&&gce(i)?xhe:Che,o=The(e,t[0]);if(o&&o.commentStart)Ehe(e,o);else if(o&&vle(t)){let t=0;for(const n of Dhe(e,o.range,r).reverse())t+=Ehe(e,n);Ahe(e,[o.range[0],o.range[1]-t],r)}else if(vle(t)){const t=e.getLine(n.anchor.line),i=fle(e,{anchor:{line:n.anchor.line,ch:0},head:{line:n.anchor.line,ch:t.length}});Ahe(e,ile(e,i),r)}else Ahe(e,t,r)}})}function Ehe(e,{range:t,commentStart:n,commentEnd:i}){const r=sle(e,t);if(n&&r.startsWith(n)){let o=n.length,a=i&&r.endsWith(i)?i.length:0;ple(r[o])&&(o+=1),a&&ple(r[r.length-a-1])&&(a+=1);const s=lle(e,[t[1]-a,t[1]]),l=lle(e,[t[0],t[0]+o]);return e.replaceRange("",s[0],s[1]),e.replaceRange("",l[0],l[1]),o+a}return 0}function Ahe(e,t,n){const[i,r]=lle(e,t);e.replaceRange(" "+n[1],r,r),e.replaceRange(n[0]+" ",i,i)}function Dhe(e,t,n){const i=[],r=sle(e,t);let o=t[0],a=0;for(;;){const e=r.indexOf(n[0],a);if(-1===e)break;{a=e+n[0].length;const t=r.indexOf(n[1],a);-1!==t&&(a=t+n[1].length,i.push({range:[o+e,o+a],commentStart:n[0],commentEnd:n[1]}))}}return i}function The(e,t){const{syntax:n}=dce(e,t);if(n){if(mce(n))return function(e,t,n=!1){const i=[],r=[],o=xle({xml:n,allTokens:!0});let a;return Wle(e,(e,n,s,l)=>{if(1===n&&function(e,t){return!t.xml&&t.empty.includes(e)}(e,o)&&(n=3),1===n)r.push(function(e,t,n,i){if(e.length){const r=e.pop();return r.name=t,r.start=n,r.end=i,r}return{name:t,start:n,end:i}}(i,e,s,l));else if(3===n){if(s<t&&t<l)return a={range:[s,l]},!1}else if(2===n){const n=(c=r).length?c[c.length-1]:null;if(n&&n.name===e){if(n.start<t&&t<l)return a={range:[n.start,l]},!1;r.length&&function(e,t){e.push(t)}(i,r.pop())}}else if(s<t&&t<l)return a={range:[s,l]},6===n&&(a.commentStart=Che[0],a.commentEnd=Che[1]),!1;var c},o),r.length=i.length=0,a}(ale(e),t,fce(n));if(gce(n)){const n=ale(e),i=function(e,t){const n=new Qee(e);for(;!n.eof()&&t>n.pos;){const e=n.pos;if(Ihe(n,47,42)){for(;!n.eof()&&!Ihe(n,42,47);)n.pos++;if(e<t&&t<n.pos)return{range:[e,n.pos],commentStart:xhe[0],commentEnd:xhe[1]}}else if(Ihe(n,47,47)){for(;!n.eof()&&!n.eat(13)&&!n.eat(10);)n.pos++;if(e<t&&t<n.pos)return{range:[e,n.pos],commentStart:"//"}}else n.pos++}}(n,t);if(i)return i;const r=function(e,t){const n=[],i=[];let r=null,o=null;const a=()=>{o&&(tpe(n,o),o=null)};return Wde(e,(e,s,l,c)=>{if("selector"===e)a(),i.push(epe(n,s,l,c));else if("blockEnd"===e){a();const e=i.pop();if(e&&e[0]<t&&t<l)return r={type:"selector",start:e[0],end:l,bodyStart:e[2]+1,bodyEnd:s},!1}else if("propertyName"===e)a(),o=epe(n,s,l,c);else if("propertyValue"===e){if(o&&o[0]<t&&t<l)return r={type:"property",start:o[0],end:c+1,bodyStart:s,bodyEnd:l},!1;a()}}),r}(n,t);if(r)return{range:[r.start,r.end]}}}}function Ihe(e,t,n){const{pos:i}=e;return!(!e.eat(t)||!e.eat(n))||(e.pos=i,!1)}function Ohe(e){const t=e.getCursor(),n=Ope(e.getLine(t.line),t.ch);if(n){const i={line:t.line,ch:n.start},r={line:t.line,ch:n.end};e.replaceRange(n.snippet,i,r)}}function Phe(e,t){const n=function(e,t,n){const i=ale(e),r=i.length;let o=t;for(;o<r&&o>=0;){o+=n;const t=i[o],r=i[o+1],a=i[o-1];if(ule(t)&&r===t&&"="===a)return o+1;if("<"===t&&">"===a)return o;if(Fhe(t)){const t=e.posFromIndex(o),n=e.getLine(t.line);if(!n||ple(n))return e.indexFromPos({line:t.line,ch:n.length})}}}(e,ole(e)+t,t);null!=n&&e.setCursor(e.posFromIndex(n))}function Fhe(e){return"\r"===e||"\n"===e}function $he(e){let t=ole(e);const n=[t,Math.min(t+1,e.getValue().length)];"<"===sle(e,n)&&t++;const{syntax:i}=dce(e,t);if(mce(i)){const n=Ppe(e,t,fce(i));if(n&&n.open&&n.close){const{open:i,close:r}=n,o=i[0]<=t&&t<i[1]?r[0]:i[0];e.setCursor(e.posFromIndex(o))}}}function Mhe(e,t=1){e.operation(()=>{const n=e.listSelections().slice().reverse().map(n=>{let i=fle(e,n);if(vle(i)){const t=e.getLine(n.anchor.line),r=n.anchor.ch,o=function(e,t){let n,i=!1,r=t,o=t;const a=e.length;for(;r<a;){if(n=e.charCodeAt(r),Lhe(n)){if(i)break;i=!0}else if(!Ree(n))break;r++}for(;o>=0;){if(n=e.charCodeAt(o-1),Lhe(n)){if(i)break;i=!0}else if(!Ree(n))break;o--}o>0&&"-"===e[o-1]&&o--;if(o!==r)return[o,r]}(t,r);o&&(i=[i[0]-r+o[0],i[0]-r+o[1]])}if(!vle(i)){let r=function(e,t,n=3){const i=parseFloat(e)+t;if(isNaN(i))return e;const r=i<0;let o=Math.abs(i).toFixed(n);o=o.replace(/\.?0+$/,""),"."!==e[0]&&!e.startsWith("-.")||"0"!==o[0]||(o=o.slice(1));return(r?"-":"")+o}(sle(e,i),t);rle(e,i,r),n={anchor:e.posFromIndex(i[0]),head:e.posFromIndex(i[0]+r.length)}}return n});e.setSelections(n)})}function Lhe(e){return 46===e}function Nhe(e){e.operation(()=>{const t=e.listSelections().slice().reverse().map(t=>{const n=Ppe(e,e.indexFromPos(t.anchor));if(n){!function(e,{open:t,close:n}){if(n){const i=ile(e,[t[1],n[0]]);if(vle(i))rle(e,[t[0],n[1]],"");else{rle(e,[i[1],n[1]],"");const r=e.posFromIndex(t[0]),o=e.posFromIndex(n[1]);if(r.line!==o.line){let n=r.line+2;const a=jhe(e,t[0]),s=jhe(e,i[0]);for(;n<=o.line;){const t=e.indexFromPos({line:n,ch:0}),i=[t,t+s.length];ple(sle(e,i))&&(console.log('replace "%s" with "%s"',sle(e,i),a),rle(e,i,a)),n++}}rle(e,[t[0],i[0]],"")}}else rle(e,t,"")}(e,n);const t=e.posFromIndex(n.open[0]);return{anchor:t,head:t}}return t});e.setSelections(t)})}function jhe(e,t){return Cpe(e,e.posFromIndex(t).line)}function Bhe(e,t=!1){const n=pce(e);if(!gce(n)&&!mce(n))return;const i=e.listSelections()[0],r=fle(e,i),o=ale(e);let a=Ipe(o,r[0],gce(n),t);if(a){let i=Rhe(r,a.ranges,t);if(!i){a=Ipe(o,t?a.start:a.end,gce(n),t),a&&(i=Rhe(r,a.ranges,t))}if(i){const[t,n]=lle(e,i);e.setSelection(t,n)}}}function Rhe(e,t,n=!1){n&&(t=t.slice().reverse());let i,r=!1;for(const o of t){if(r)return o;mle(o,e)?r=!0:!i&&(gle(o,e)||n&&o[0]<=e[0]||!n&&o[0]>=e[0])&&(i=o)}if(!r)return i}function Vhe(e){const t=e.listSelections().slice().reverse(),n=[];e.operation(()=>{for(const i of t){const t=e.indexFromPos(i.anchor),{syntax:r}=dce(e,t),o=Ppe(e,t,fce(r));if(o){const{open:t,close:i}=o;if(i){rle(e,[t[1],i[1]],"");let r=ple(qhe(e,t[1]-2))?"/":" /";rle(e,[t[1]-1,t[1]-1],r),n.push(Hhe(e,t[1]+r.length))}else{const i=`</${o.name}>`;if(rle(e,[t[1],t[1]],i),"/"===qhe(e,t[1]-2)){let i=t[1]-2,r=t[1]-1;ple(qhe(e,i-1))&&i--,rle(e,[i,r],""),n.push(Hhe(e,t[1]-r+i))}else n.push(Hhe(e,t[1]))}}else n.push(i)}e.setSelections(n)})}function qhe(e,t){return sle(e,[t,t+1])}function Hhe(e,t){const n=e.posFromIndex(t);return{anchor:n,head:n}}function zhe(e,t){if("undo"===t.origin&&1===t.text.length){const n=e.indexFromPos(t.from);!function(e,t,n){Npe.run(e,()=>{const e=jpe.getStoredTracker(Npe);e&&"abbreviation"===e.type&&n===e.abbreviation&&e.range[0]===t&&jpe.restoreTracker(Npe,t)})}(e,n,t.text[0])}}function Uhe(e,t){if("paste"===t.origin&&1===t.text.length&&Bpe(e,e.indexFromPos(t.from))){const n=e.indexFromPos(t.from)+t.text[0].length;Vpe(e,n,!0)}}var Whe=function(e){Object.assign(e.commands,{emmetExpandAbbreviation:e=>uhe(e,!0),emmetExpandAbbreviationAll:e=>uhe(e,!1),emmetCaptureAbbreviation:hhe,emmetResetAbbreviation:phe,emmetEnterAbbreviationMode:fhe,emmetInsertLineBreak:mhe,emmetWrapWithAbbreviation:yhe,emmetBalance:khe,emmetBalanceInward:e=>khe(e,!0),emmetToggleComment:She,emmetEvaluateMath:Ohe,emmetGoToNextEditPoint:e=>Phe(e,1),emmetGoToPreviousEditPoint:e=>Phe(e,-1),emmetGoToTagPair:$he,emmetIncrementNumber1:e=>Mhe(e,1),emmetIncrementNumber01:e=>Mhe(e,.1),emmetIncrementNumber10:e=>Mhe(e,10),emmetDecrementNumber1:e=>Mhe(e,-1),emmetDecrementNumber01:e=>Mhe(e,-.1),emmetDecrementNumber10:e=>Mhe(e,-10),emmetRemoveTag:Nhe,emmetSelectNextItem:e=>Bhe(e),emmetSelectPreviousItem:e=>Bhe(e,!0),emmetSplitJoinTag:Vhe}),e.defineOption("emmet",Vne,(e,t)=>{kle(e)||(e.on("change",zhe),e.on("change",Uhe));const n=wle(e);(t=qne(e,t)).mark&&!n.tracker?n.tracker=function(e){const t=e=>{Npe.run(e,()=>{jpe.handleChange(Npe,ole(e))})},n=e=>{Npe.run(e,()=>{const t=ole(e);if(!Rpe(e,t))return;const n=jpe.handleSelectionChange(Npe,t);n&&(zpe(n,t)?Npe.showPreview(n):Npe.hidePreview())})};return e.on("change",t),e.on("focus",n),e.on("cursorActivity",n),()=>{Npe.run(e,()=>jpe.disposeEditor(Npe)),e.off("change",t),e.off("focus",n),e.off("cursorActivity",n)}}(e):!t.mark&&n.tracker&&(n.tracker(),n.tracker=null),t.markTagPairs&&!n.tagMatch?n.tagMatch=Gpe(e):!t.markTagPairs&&n.tagMatch&&(n.tagMatch(),n.tagMatch=null)}),e.defineMode("emmet-abbreviation",ohe),e.defineMode("emmet-css-abbreviation",ahe),e.defineMode("emmet-snippet",she),e.defineExtension("expandAbbreviation",function(e,t=Fpe(this,0)){return Epe(this,e,t)}),e.defineExtension("emmetOptions",function(e=0){return Fpe(this,e)}),e.defineExtension("parseAbbreviation",function(e,t){return"stylesheet"===t?xne(sne(e)):ite(Fte(e),{jsx:"jsx"===t})}),e.defineExtension("getEmmetCompletion",function(e){return"number"!=typeof e&&(e=this.indexFromPos(e)),function(e,t){const n=qpe(e)||Vpe(e,t);if(n&&zpe(n,t)&&"abbreviation"===n.type){const{abbreviation:t,preview:i}=n;return{text:t,displayText:i,hint:()=>{Hpe(e);const i=Epe(e,t,n.config);rle(e,n.range,i)},from:e.posFromIndex(n.range[0]),to:e.posFromIndex(n.range[1])}}}(this,e)})};function Ghe(e){return Ghe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ghe(e)}function Khe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Qhe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Ghe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Ghe(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ghe(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}window.HTMLHint=Nee.HTMLHint,window.CSSLint=jee.l,window.JSHINT=Lee().JSHINT,Whe(Pee());var Yhe={emits:["input","unexecutedStateChange","codeSigningComplete"],props:{value:{type:[String,Object],required:!1},control:{type:Object,required:!1,default:function(){return{}}},controlKey:{type:String,required:!1},propertyId:{type:String,required:!1}},data:function(){var e;return{code:this.value,codemirror:void 0,cursorPosition:void 0,placeholder:null===(e=this.control)||void 0===e?void 0:e.placeholder,readOnly:!!this.control.hasOwnProperty("readOnly")&&this.control.readOnly,replace:!this.control.hasOwnProperty("replace")||this.control.replace,theme:this.control.hasOwnProperty("theme")?this.control.theme:"dark"===this.bricks.mode?"one-dark":"default",isRunning:!1,hasUnexecutedCode:!1,hasDynamicData:!!this.control.hasOwnProperty("hasDynamicData")&&this.control.hasDynamicData,showDynamicPicker:!1,showVariablePicker:!1,isUpdatingFromPopup:!1,isInPopup:!1,pendingPopupUpdate:null,lastSignedCode:null,lintOption:!0}},computed:{mode:function(){return this.control.hasOwnProperty("mode")?this.control.mode:this.control.hasOwnProperty("css")?"css":"javascript"},hasVariables:function(){return!this.bricks.disableVariablesManager&&(this.control.hasOwnProperty("hasVariables")?this.control.hasVariables:"css"===this.mode)},hasUnsignedCode:function(){var e;return this.$_state.unsignedCodeIds.includes(null===(e=this.element)||void 0===e?void 0:e.id)},isPanelExpanded:function(){return this.$_state.isPanelExpanded},isPopupContext:function(){return this.isInPopup||!!this.$_state.popup},globalElement:function(){return this.$_getGlobalElement(this.element)},finalElement:function(){return this.$_getFinalElement(this.element)},element:function(){return this.$_state.activeElement},name:function(){var e;return(null===(e=this.element)||void 0===e?void 0:e.name)||""},language:function(){var e;return null===(e=this.$_activeElement.value)||void 0===e||null===(e=e.settings)||void 0===e?void 0:e.language},signCode:function(){var e;return null===(e=this.control)||void 0===e?void 0:e.signCode},executeCode:function(){var e,t;return this.control.hasOwnProperty("executeCode")?this.control.executeCode:["code","svg"].includes(null===(e=this.finalElement)||void 0===e?void 0:e.name)&&(null===(t=this.finalElement)||void 0===t||null===(t=t.settings)||void 0===t?void 0:t.executeCode)&&"element"===this.$_state.activePanel},cssId:function(){var e,t,n,i,r,o,a;if(null!==(e=this.$_activeClass.value)&&void 0!==e&&e.name)return".".concat(null===(r=this.$_activeClass.value)||void 0===r?void 0:r.name);if(null!==(t=this.$_state.activeComponent)&&void 0!==t&&t.id&&this.$_state.componentVariantActive&&"default"!==this.$_state.componentVariantActive){var s,l,c=this.$_state.componentVariantActive.replace("variant-","");return(null===(s=this.element)||void 0===s?void 0:s.id)===this.$_state.activeComponent.id?".brxe-".concat(this.element.id,'[data-brx-variant="').concat(c,'"]'):'[data-brx-variant="'.concat(c,'"] .brxe-').concat(null===(l=this.$_state.activeElement)||void 0===l?void 0:l.id)}return null!==(n=this.$_state.activeComponent)&&void 0!==n&&n.id?(null===(o=this.element)||void 0===o?void 0:o.cid)===this.$_state.activeComponent.id?".brxe-".concat(this.element.cid):".brxe-".concat(null===(a=this.$_state.activeElement)||void 0===a?void 0:a.id):null!==(i=this.element)&&void 0!==i&&null!==(i=i.settings)&&void 0!==i&&i._cssId?"#".concat(this.element.settings._cssId):"#".concat(this.$_getElementId(this.element))}},methods:{addKeydownListener:function(){window.addEventListener("keydown",this.listenerToRun)},removeKeydownListener:function(){window.removeEventListener("keydown",this.listenerToRun)},toggleVimMode:function(){this.$_state.vimMode=!this.$_state.vimMode,localStorage.setItem("vimMode",this.$_state.vimMode),this.codemirror.setOption("keyMap",this.$_state.vimMode?"vim":"default")},getValue:function(){var e=this.codemirror.getValue();if(e&&"css"==this.mode&&this.replace)e=this.$_replaceCustomCssRoot("%root%",this.cssId,e);else if(e&&"json"===this.mode)try{e=JSON.parse(e)}catch(e){console.warn("JSON.parse error",e)}return e},getDisplayValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e&&"css"===this.mode&&this.replace?this.$_replaceCustomCssRoot(this.cssId,"%root%",e):e},runCode:function(){var e=this;this.executeCode&&(this.$emit("input",this.getValue()),this.generateCodeSignature(),this.hasUnexecutedCode=!1,this.lastSignedCode=this.getValue(),this.isRunning=!0,setTimeout(function(){e.isRunning=!1},800))},listenerToRun:function(e){e[this.$_state.isMac?"metaKey":"ctrlKey"]&&"r"==e.key&&this.executeCode&&this.signCode&&(e.preventDefault(),this.runCode())},initCodeMirror:function(e){var t,n=this,i=this.$el.querySelector(".CodeMirror");e=this.isInPopup?!1!==e:e||!1,i&&i.remove();var r=this.$refs.textarea;if(r){this.code=this.getDisplayValue(this.code||""),r.value=this.code;var o=!0;"application/x-httpd-php-open"===this.mode||"application/x-httpd-php"===this.mode||"text/x-php"===this.mode?o={disableEval:!0,disableExit:!0,disabledFunctions:["proc_open","system"]}:"javascript"===this.mode||"htmlmixed"===this.mode?o={options:{esversion:2023,asi:!0}}:"css"===this.mode&&(o={options:{stylelintConfig:{rules:{"block-no-empty":!0,"color-no-invalid-hex":!0,"comment-no-empty":!0,"declaration-block-no-duplicate-properties":!0,"declaration-block-no-shorthand-property-overrides":!0,"font-family-no-duplicate-names":!0,"font-family-no-missing-generic-family-keyword":!0,"function-calc-no-unspaced-operator":!0,"function-linear-gradient-no-nonstandard-direction":!0,"string-no-newline":!0,"unit-no-unknown":!0,"property-no-unknown":!0,"keyframe-declaration-no-important":!0,"declaration-block-no-duplicate-custom-properties":!0}}}}),this.lintOption=!1!==(null===(t=this.control)||void 0===t?void 0:t.lint)&&o,this.codemirror=Pee().fromTextArea(this.$refs.textarea,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Khe(Object(n),!0).forEach(function(t){Qhe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Khe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({readOnly:this.readOnly,mode:this.mode,lint:this.lintOption,gutters:["CodeMirror-lint-markers"],autoCloseBrackets:!0,autoCloseTags:{whenClosing:!0,whenOpening:!0,indentTags:[]},autocomplete:!0,tabSize:2,lineNumbers:!0,lineWrapping:!0,theme:this.theme,viewportMargin:100,autoRefresh:!0,autofocus:e,suppressErrorLogging:!1,keyMap:this.$_state.vimMode?"vim":"default",showCursorWhenSelecting:!0,extraKeys:{"Cmd-Z":function(e){e.historySize().undo&&(e.undo(),"settings-page"!==n.$_state.activePanel&&n.$_goto("undo",!1))},"Ctrl-Z":function(e){e.historySize().undo&&(e.undo(),"settings-page"!==n.$_state.activePanel&&n.$_goto("undo",!1))},"Shift-Cmd-Z":function(e){e.historySize().redo&&(e.redo(),"settings-page"!==n.$_state.activePanel&&n.$_goto("redo",!1))},"Shift-Ctrl-Z":function(e){e.historySize().redo&&(e.redo(),"settings-page"!==n.$_state.activePanel&&n.$_goto("redo",!1))},Tab:function(e){for(var t,n=e.getCursor(),i=e.getLine(n.line),r=n.ch,o=r;o>0&&!/\s/.test(i.charAt(o-1));)o--;var a=i.substring(o,r),s=i.includes("%root%");!(null==e||null===(t=e.display)||void 0===t||!t.sizer)&&e.display.sizer.querySelector(".emmet-abbreviation-preview")&&a.length&&!s&&"r"!==a&&e.execCommand("emmetExpandAbbreviation");var l=e.getOption("mode");if(("application/x-httpd-php-open"===l||"application/x-httpd-php"===l||"text/x-php"===l)&&a.length&&!s)try{if(e.expandAbbreviation){var c=e.expandAbbreviation(a);if(c)return void e.replaceRange(c,{line:n.line,ch:o},{line:n.line,ch:r})}return}catch(e){}else{if(1!==a.length||"r"!==i.charAt(n.ch-1))return Pee().Pass;e.replaceRange("%root%",{line:n.line,ch:n.ch-1},{line:n.line,ch:n.ch})}},Esc:"emmetResetAbbreviation",Enter:"emmetInsertLineBreak"},placeholder:this.placeholder},window.bricksData&&"object"===Ghe(window.bricksData.codeMirrorConfig)?window.bricksData.codeMirrorConfig:{})),this.codemirror.on("focus",function(e){n.cursorPosition=e.getCursor(),n.isPopupContext||n.bricks.disablePanelAutoExpand||(n.$_state.isPanelExpanded=!0),"css"!==n.mode&&"javascript"!==n.mode&&n.addKeydownListener()}),this.codemirror.on("blur",function(){var e=n.getValue();n.executeCode&&e!==n.code&&(n.hasUnexecutedCode=!0),n.$emit("input",e),n.code=n.getDisplayValue(e),n.removeKeydownListener()}),this.codemirror.on("change",function(){for(var e=n.getValue(),t=n.codemirror,i=t.getCursor(),r=t.getLine(i.line),o=r.replace(/\s+/g,""),a=r.trim().slice(-1),s=i.ch;s>0&&!/\s/.test(r.charAt(s-1));)s--;var l=r.substring(s,i.ch);if("r"!==l&&"%root%"!==l&&(o.length>1||"r"!==a)){t.setOption("emmet",{preview:!0});var c=t.getWrapperElement().querySelector(".emmet-abbreviation-preview");c&&(c.style.display="block")}else{t.setOption("emmet",{preview:!1});var u=t.getWrapperElement().querySelector(".emmet-abbreviation-preview");u&&(u.style.display="none")}n.executeCode&&e!==n.code&&(n.hasUnexecutedCode=!0),n.$emit("input",e),n.code=n.getDisplayValue(e)})}},addDynamicTag:function(e){var t=this;null!=e&&e.name&&("php"!==this.mode&&"application/x-httpd-php-open"!==this.mode&&"application/x-httpd-php"!==this.mode&&"text/x-php"!==this.mode||this.codemirror.setOption("mode","text/plain"),this.codemirror.replaceSelection(e.name),this.$nextTick(function(){t.code=t.getDisplayValue(t.getValue()),"php"!==t.mode&&"application/x-httpd-php-open"!==t.mode&&"application/x-httpd-php"!==t.mode&&"text/x-php"!==t.mode||setTimeout(t.initCodeMirror,0)}))},addVariable:function(e){if(null!=e&&e.name){var t="var(--".concat(e.name,")");"php"!==this.mode&&"application/x-httpd-php-open"!==this.mode&&"application/x-httpd-php"!==this.mode&&"text/x-php"!==this.mode||this.codemirror.setOption("mode","text/plain"),this.codemirror.replaceSelection(t),this.code=this.getDisplayValue(this.getValue()),"php"!==this.mode&&"application/x-httpd-php-open"!==this.mode&&"application/x-httpd-php"!==this.mode&&"text/x-php"!==this.mode||setTimeout(this.initCodeMirror,0)}},closeDynamicPicker:function(){this.showDynamicPicker=!1},generateCodeSignature:function(){var e=this,t=this.$_clone(this.finalElement),n=!1;if("queries"===this.$_state.popup){var i=this.$_state.popupSelectedItems[0]||null;i&&(n=this.$_state.globalQueries.find(function(e){return e.id===i}))&&(t={settings:{query:n.settings}})}else if("queryEditor"===this.controlKey){var r;this.code?(t.settings.query||(t.settings.query={}),t.settings.query.queryEditor=this.code):delete t.settings.query.queryEditor,null!==(r=t.settings.query)&&void 0!==r&&r.id&&(n=this.$_state.globalQueries.find(function(e){return e.id===t.settings.query.id}))&&(t.settings.query=n.settings)}this.$_http({data:{action:"bricks_generate_code_signature",element:JSON.stringify(t)},success:function(t){if(e.isRunning=!1,t.success){var i,r=null===(i=t.data)||void 0===i||null===(i=i.element)||void 0===i?void 0:i.settings;if(r){var o,a,s,l;if(e.propertyId&&e.$_getComponent(e.$_state.activeElement))if("queryEditor"===e.controlKey)e.$_state.activeElement.properties[e.propertyId].signature=null==r||null===(a=r.query)||void 0===a?void 0:a.signature,e.$_state.activeElement.properties[e.propertyId].user_id=null==r||null===(s=r.query)||void 0===s?void 0:s.user_id,e.$_state.activeElement.properties[e.propertyId].time=null==r||null===(l=r.query)||void 0===l?void 0:l.time;else e.$_state.activeElement.properties[e.propertyId]=null==r?void 0:r.query;else if(n){var c,u,d;n.settings.signature=null==r||null===(c=r.query)||void 0===c?void 0:c.signature,n.settings.user_id=null==r||null===(u=r.query)||void 0===u?void 0:u.user_id,n.settings.time=null==r||null===(d=r.query)||void 0===d?void 0:d.time,e.$_reloadCanvas()}else e.globalElement?e.globalElement.settings=r:e.$_state.activeElement.settings=r;if(e.$_showMessage(e.i18n.codeSigned),null!==(o=e.element)&&void 0!==o&&o.id){var p=e.$_state.unsignedCodeIds.indexOf(e.element.id);p>-1&&e.$_state.unsignedCodeIds.splice(p,1)}e.$emit("codeSigningComplete"),e.$_forceRender()}}else e.isRunning=!1,e.$_showError(t.data||e.i18n.errorGeneratingCodeSignature)}})},openFullscreenEditor:function(){var e=this;if(!this.isInPopup&&this.codemirror){var t=this.codemirror.getCursor();this.$_state.activeCodeEditor={code:this.getValue(),mode:this.mode,lint:this.lintOption,theme:this.theme,readOnly:this.readOnly,cursorPosition:t,placeholder:this.placeholder,element:this.element,executeCode:this.executeCode,signCode:this.signCode,hasUnexecutedCode:this.hasUnexecutedCode,updateCallback:function(t){var n;e.codemirror&&(e.pendingPopupUpdate=t,e.controlKey&&(e.propertyId&&e.$_getComponent(e.$_state.activeElement)?e.$_state.activeElement.properties[e.propertyId][e.controlKey]=t:"queryEditor"===e.controlKey||"arrayEditor"===e.controlKey?e.finalElement.settings.query[e.controlKey]=t:e.$emit("input",t)),e.executeCode&&t!==e.lastSignedCode&&(e.hasUnexecutedCode=!0,null!==(n=e.element)&&void 0!==n&&n.id&&!e.$_state.unsignedCodeIds.includes(e.element.id)&&e.$_state.unsignedCodeIds.push(e.element.id)))},runCodeCallback:function(){e.runCode()},onCodeSigned:function(){e.hasUnexecutedCode=!1,e.lastSignedCode=e.getValue(),e.$_state.popup=!1}},this.$_state.popup="code-editor"}}},mounted:function(){var e;if(this.isInPopup="PopupCodeEditor"===this.$parent.$options.name,this.code&&("json"===this.mode||null!==(e=this.mode)&&void 0!==e&&e.json))try{this.code=JSON.stringify(this.code)}catch(e){console.warn("JSON.parse error",e)}else this.code&&"css"===this.mode&&this.replace&&(this.code=this.getDisplayValue(this.code));this.$_state.vimMode=this.bricks.builderCodeVim&&JSON.parse(localStorage.getItem("vimMode"))||!1,setTimeout(this.initCodeMirror,110)},beforeUnmount:function(){window.removeEventListener("keydown",this.listenerToRun),this.$_state.isPanelExpanded=!1,this.removeKeydownListener()},watch:{"$_state.isPanelExpanded":{handler:function(e){var t=this;if(!this.isPopupContext&&e&&this.codemirror){var n=this.codemirror.getCursor();setTimeout(function(){t.initCodeMirror(!0),t.$nextTick(function(){t.codemirror.setCursor({line:n.line,ch:n.ch})})},110)}}},"$_state.isSaving":{handler:function(e){var t=this;e&&this.executeCode&&document.activeElement.closest(".control-code")&&this.$nextTick(function(){return t.$_savePost()})}},language:function(e){"code"!==this.name||this.executeCode||(this.mode=["css","javascript","php"].includes(e)?e:"css")},mode:function(){this.initCodeMirror()},"$_state.activeClass.id":{handler:function(){this.$_autoExpandCollapsePanel()}},"$_state.activePanelTab":{handler:function(){var e=this;setTimeout(function(){e.initCodeMirror()},110)}},"$_state.panelWidth":{handler:function(){var e=this;this.isPopupContext||setTimeout(function(){e.initCodeMirror()},110)}},"$_state.rerenderControls":{handler:function(){this.initCodeMirror()}},value:{handler:function(e){this.isInPopup||e!==this.code&&(this.code=this.getDisplayValue(e||""))}},hasUnexecutedCode:{handler:function(e,t){var n;e&&!t&&(null!==(n=this.element)&&void 0!==n&&n.id&&!this.$_state.unsignedCodeIds.includes(this.element.id)&&this.signCode&&this.$_state.unsignedCodeIds.push(this.element.id))}},"$_state.popup":{handler:function(e,t){if("code-editor"===t&&"code-editor"!==e){var n;if(this.$_state.activeCodeEditor=null,this.pendingPopupUpdate)if("css"===this.mode&&this.replace&&this.pendingPopupUpdate?(this.code=this.$_replaceCustomCssRoot(this.cssId,"%root%",this.pendingPopupUpdate),this.pendingPopupUpdate=this.code):this.code=this.pendingPopupUpdate,null!==(n=this.element)&&void 0!==n&&n.id){var i=this.$_state.unsignedCodeIds.includes(this.element.id);this.hasUnexecutedCode=i,i||(this.lastSignedCode=this.code)}setTimeout(this.initCodeMirror,0)}}}}};var Jhe=(0,xx.A)(Yhe,[["render",function(e,t,n,i,r,o){var a,s,l,c,u=$r("icon"),d=$r("control-dynamic-tag-picker"),p=$r("control-variable-picker");return Ta(),Ma("div",{class:te(["code-editor-wrapper",{expand:o.isPanelExpanded}]),"data-control":"code"},[!1!==(null===(a=n.control)||void 0===a?void 0:a.header)?(Ta(),Ma("div",{key:0,class:te(["header",{"has-label":null===(s=n.control)||void 0===s?void 0:s.label}])},[!1===r.readOnly?(Ta(),Ma("div",Dee,[r.code&&o.executeCode&&o.signCode?(Ta(),Ma("div",{key:0,class:te(["sign",{unsigned:r.hasUnexecutedCode||o.hasUnsignedCode},{"is-running":r.isRunning}]),"data-balloon":"".concat(e.i18n.signCode," (").concat(e.$_state.isMac?"CMD + R":"CTRL + R",")"),"data-balloon-pos":"top-right",onClick:t[0]||(t[0]=bc(function(e){return o.runCode()},["stop"]))},[Ha(u,{name:"touch-id"})],10,Tee)):Qa("",!0),e.bricks.builderCodeVim?(Ta(),La(u,{key:1,class:te(["vim-toggle",{active:e.$_state.vimMode}]),name:"vim-logo","data-balloon":e.$_state.vimMode?"Vim":"Vim (".concat(e.i18n.disabled,")"),"data-balloon-pos":"top-right",onClick:bc(o.toggleVimMode,["stop"])},null,8,["class","data-balloon","onClick"])):Qa("",!0),r.hasDynamicData?(Ta(),La(d,{key:2,control:{context:"text",inline:null===(l=n.control)||void 0===l?void 0:l.inline},isOpen:r.showDynamicPicker,syncExpand:null===(c=n.control)||void 0===c?void 0:c.syncExpand,onCloseMe:o.closeDynamicPicker,onInput:o.addDynamicTag,onToggle:t[1]||(t[1]=function(e){return r.showDynamicPicker=!r.showDynamicPicker})},null,8,["control","isOpen","syncExpand","onCloseMe","onInput"])):Qa("",!0),o.hasVariables?(Ta(),La(p,{key:3,control:{context:o.hasVariables},isOpen:r.showVariablePicker,onCloseMe:t[2]||(t[2]=function(e){return r.showVariablePicker=!1}),onInput:o.addVariable,onToggle:t[3]||(t[3]=function(e){return r.showVariablePicker=!r.showVariablePicker})},null,8,["control","isOpen","onInput"])):Qa("",!0),e.$_state.popup?Qa("",!0):(Ta(),La(u,{key:4,class:"fullscreen",name:"expand","data-balloon":e.i18n.fullScreen,"data-balloon-pos":"top-right",onClick:bc(o.openFullscreenEditor,["stop"])},null,8,["data-balloon","onClick"])),e.$_state.popup?Qa("",!0):(Ta(),La(u,{key:5,class:"toggle",name:o.isPanelExpanded?"arrow-left":"arrow-right","data-balloon":o.isPanelExpanded?e.i18n.collapse:e.i18n.expand,"data-balloon-pos":"top-right",onClick:t[4]||(t[4]=bc(function(t){return e.$_state.isPanelExpanded=!e.$_state.isPanelExpanded},["stop"]))},null,8,["name","data-balloon"]))])):Qa("",!0)],2)):Qa("",!0),qa("textarea",{ref:"textarea",cols:"30",rows:"10",textContent:he(r.code),placeholder:r.placeholder},null,8,Iee)],2)}]]),Xhe=["data-balloon"],Zhe=["data-balloon"],efe={class:"input-wrapper"},tfe={key:0,class:"color-palette-list"},nfe=["onClick","onMouseenter"],ife=["title"],rfe={class:"color-info"},ofe=["title","textContent"],afe=["title","textContent"],sfe=["title"],lfe=["title","onClick","onMouseenter"],cfe=["title"],ufe=["title","onClick","onMouseenter"],dfe=["title"],pfe=["title","onClick","onMouseenter"],hfe={key:1,class:"color-palette-grid"},ffe=["data-balloon","onClick","onMouseenter"],mfe={class:"color-palettes"},gfe={class:"palette-actions"},vfe={key:2,class:"control-action-input-wrapper variable-name"},yfe=["data-balloon"],bfe=["placeholder"],kfe={key:3,class:"control-action-input-wrapper description"};function wfe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function _fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wfe(Object(n),!0).forEach(function(t){Cfe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wfe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Cfe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=xfe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=xfe(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==xfe(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xfe(e){return xfe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xfe(e)}function Sfe(e){return function(e){if(Array.isArray(e))return Efe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Efe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Efe(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Efe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var Afe={emits:["input"],components:{ChromePicker:f2},props:{value:{type:Object,required:!1},control:{type:Object,required:!0},controlKey:{type:String,required:!1},parentKey:{type:String,required:!1},parentType:{type:String,required:!1},placeholder:{type:[String,Object],required:!1}},data:function(){return{showVariablePicker:!1,expand:!1,showPopup:!1,activePaletteId:void 0,activePaletteView:"grid",isAddingColorToPalette:!1,inputRaw:null,newVariableName:"",newVariableNameAutoGenerated:"",colorPickerShow:!1,colorPickerIsOpening:!1,colorPickerValue:"hsla(46, 100%, 65%, 1)",tcColorPickerValue:"hsla(46, 100%, 65%, 1)",colorPickerFormats:["hsl","rgb","hex"],colorPickerFormat:"hsl"}},computed:{colorValue:function(){return this.getColorValue(this.value)},inputPlaceholder:function(){return this.getColorPlaceholderValue(this.placeholder)||this.i18n.colorValue},colorPalette:function(){return this.$_state.colorPalette},palettes:function(){return this.hasLocalPalette?this.control.palette:this.colorPalette},colorPreviewStyles:function(){var e=this.colorValue;if(e&&e.includes("{")&&e.includes("}")){var t=e.replaceAll(/[{}]/g,"");e="var(--brx-dd-".concat(t,")")}return e?{color:"".concat(e," !important")}:null},hasLocalPalette:function(){var e;return null===(e=this.control)||void 0===e?void 0:e.palette},paletteDropdownControl:function(){if(this.hasLocalPalette)return{};var e={};return this.palettes.forEach(function(t){e[t.id]=t.name}),{placeholder:this.i18n.colorPalette,options:e,multiple:!1,clearable:!1}},activePalette:function(){var e=this;return this.palettes.find(function(t){return t.id===e.activePaletteId})},activePaletteColors:function(){var e;return(null===(e=this.activePalette)||void 0===e?void 0:e.colors)||[]},rootColors:function(){return this.activePaletteColors.filter(function(e){return!e.type})},orderedPaletteColors:function(){var e=this,t=[],n=this.activePaletteColors.filter(function(e){return!e.type});return n.forEach(function(n){t.push(n);var i=e.activePaletteColors.filter(function(e){return e.light&&e.type&&e.parent===n.id}),r=e.activePaletteColors.filter(function(e){return e.dark&&e.type&&e.parent===n.id});i.sort(function(e,t){var n={light:0,dark:1,transparent:2};return n[e.type]!==n[t.type]?n[e.type]-n[t.type]:(e.index||0)-(t.index||0)}),r.sort(function(e,t){var n={light:0,dark:1,transparent:2};return n[e.type]!==n[t.type]?n[e.type]-n[t.type]:(e.index||0)-(t.index||0)}),t.push.apply(t,Sfe(i))}),t}},methods:{getColorValue:function(e){return e?"string"==typeof e?e:null!=e&&e.raw?e.raw:null!=e&&e.hex?e.hex:null!=e&&e.rgb?e.rgb:null!=e&&e.hsl?e.hsl:null!=e&&e.id?"var(--bricks-color-".concat(e.id,")"):"":""},getColorPlaceholderValue:function(e){return e?"string"==typeof e?e:null!=e&&e.raw||null!=e&&e.id?this.getColorValue(e):"light"===this.$_state.mode&&null!=e&&e.light?e.light:"dark"===this.$_state.mode&&null!=e&&e.dark?e.dark:this.getColorValue(e):""},onColorPickerClick:function(e){e.target.closest(".toggle-btn")&&("hsl"===this.colorPickerFormat?this.colorPickerFormat="rgb":"rgb"===this.colorPickerFormat?this.colorPickerFormat="hex":this.colorPickerFormat="hsl")},addVariable:function(e){var t=null==e?void 0:e.name;t&&(t=t.startsWith("var(")?t:"var(--".concat(t,")"),this.$emit("input",{raw:t}),this.inputRaw=t)},openColorManager:function(){var e=this;this.$_state.popup="styles",this.$nextTick(function(){e.$_state.popupView=null,e.$_state.popupTab="colors"})},addColorToPalette:function(){var e=this,t=this.newVariableName.trim()||this.newVariableNameAutoGenerated.trim();if(this.activePaletteId&&t&&this.inputRaw){var n=this.palettes.find(function(t){return t.id===e.activePaletteId});if(n.colors.find(function(t){return t.raw===e.inputRaw}))this.$_showError(this.i18n.colorPaletteColorExists);else{var i="var(".concat(this.$_extractNameFromCssVariable(t),")");if(this.$_state.globalVariables.some(function(e){return"var(--".concat(e.name,")")===i}))this.$_showError("".concat(this.i18n.error,": ").concat(this.i18n.variableNameExists," [").concat(this.i18n.variableManager,"]"));else{var r=this.$_state.colorPalette.some(function(e){return Array.isArray(e.colors)&&e.colors.some(function(e){return e.raw===i})});if(r)this.$_showError("".concat(this.i18n.error,": ").concat(this.i18n.variableNameExists," [").concat(this.i18n.colorPalette,"]"));else{var o={id:this.$_generateId(),raw:i,light:this.inputRaw};if(this.newVariableNameAutoGenerated){var a=this.newVariableNameAutoGenerated.replace("bricks-color-","");o.id=a}n.colors.push(o),this.$_showMessage(this.i18n.colorPaletteAddedColor),this.selectColor(o),this.$emit("input",o),this.newVariableName="",this.isAddingColorToPalette=!1}}}}},isActiveColor:function(e){var t,n;return(null===(t=this.value)||void 0===t?void 0:t.id)&&this.value.id===e.id||(null===(n=this.value)||void 0===n?void 0:n.raw)&&this.value.raw===e.raw},getColorShades:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"light";return this.activePaletteColors.filter(function(n){return n.type&&n.type===t&&n.parent===e&&n.light})},tcColorUpdated:function(e){var t,n=e._format;t="hex"===n||"hex8"===n?e._originalInput:"rgb"===n?"object"===xfe(e._originalInput)?"rgba(".concat(e._originalInput.r,", ").concat(e._originalInput.g,", ").concat(e._originalInput.b,", ").concat(e._originalInput.a,")"):e._originalInput:"hex"===this.colorPickerFormat&&null!=e&&e._a&&e._a<1?e.toString("hex8"):e.toString(this.colorPickerFormat),this.onColorInput(t)},onColorInput:function(e){this.colorPickerIsOpening||(this.$emit("input",!!e&&{raw:e}),this.inputRaw=e)},getColorStyleValue:function(e){var t=null==e?void 0:e.raw;if("string"==typeof t&&-1!==t.indexOf("{")&&-1!==t.indexOf("}")){var n=t.replaceAll(/[{}]/g,"");t="var(--brx-dd-".concat(n,")")}if(t)return t;var i=YJ((null==e?void 0:e.rgb)||(null==e?void 0:e.hex)||(null==e?void 0:e.hsl)||(null==e?void 0:e.light)||"");return i.isValid()?i.toRgbString():void 0},hasColorTransparency:function(e){return"transparent"===(null==e?void 0:e.type)||[null==e?void 0:e.raw,null==e?void 0:e.light,null==e?void 0:e.dark,null==e?void 0:e.rgb,null==e?void 0:e.hex,null==e?void 0:e.hsl].some(function(e){var t=YJ(e||"");return t.isValid()&&t.getAlpha()<1})},colorPaletteStyles:function(e){var t=this.getColorStyleValue(e);if(t)return this.hasColorTransparency(e)?{"--bricks-color-palette-preview":t}:{backgroundColor:t}},selectColor:function(e){this.$_state.cssPreviewOnHover="";var t=this.activePaletteColors.find(function(t){var n;return(null==t?void 0:t.id)===(null===(n=e)||void 0===n?void 0:n.id)});t&&(e=t),delete(e=this.$_clone(e)).index,delete e.parent,delete e.type,delete e.utilityClasses,this.$emit("input",e),this.showPopup=!1},getColorTooltip:function(e){var t=this.getColorLabel(e);return t||((null==e?void 0:e.light)||(null==e?void 0:e.hex)||(null==e?void 0:e.rgb)||(null==e?void 0:e.hsl)||"")},getColorLabel:function(e){return null!=e&&e.raw?e.raw:(null==e?void 0:e.name)||""},setColorPreview:function(e){this.bricks.colorPreviewOnHover&&this.$_generatePreviewOnHoverCSS(e)},resetColorPreview:function(){this.$_state.cssPreviewOnHover=""},expandControl:function(){var e,t="string"==typeof(null===(e=this.value)||void 0===e?void 0:e.raw)&&(this.value.raw.includes("(")||this.value.raw.includes(" "));this.expand=t}},mounted:function(){var e,t,n=this,i=localStorage.getItem("brx_builder_color_palette_view");(!i||"grid"!==i&&"list"!==i||(this.activePaletteView=i),this.activePaletteId=localStorage.getItem("brx_builder_color_palette_id"),this.colorPalette.find(function(e){return e.id===n.activePaletteId}))||(this.activePaletteId=(null===(t=this.palettes[this.palettes.length-1])||void 0===t?void 0:t.id)||null);if(this.value){var r=this.$_clone(this.value),o=null;this.colorPalette.forEach(function(e){o||Array.isArray(null==e?void 0:e.colors)&&(o=r?e.colors.find(function(e){var t,n,i,o;return(null===(t=r)||void 0===t?void 0:t.id)&&(null===(n=r)||void 0===n?void 0:n.id)===(null==e?void 0:e.id)||(null===(i=r)||void 0===i?void 0:i.raw)&&(null===(o=r)||void 0===o?void 0:o.raw)===(null==e?void 0:e.raw)}):null)&&(n.activePaletteId=e.id,localStorage.setItem("brx_builder_color_palette_id",e.id),delete(o=n.$_clone(o)).utilityClasses,delete r.utilityClasses,JSON.stringify(r)!==JSON.stringify(o)&&n.$emit("input",n.$_clone(o)),r=n.$_clone(o))}),null!==(e=r)&&void 0!==e&&e.raw&&(this.inputRaw=r.raw,this.colorPickerValue=this.value.raw,this.tcColorPickerValue=this.value.raw),this.expandControl()}},watch:{isAddingColorToPalette:function(e){var t=this;this.newVariableNameAutoGenerated=e?"bricks-color-".concat(this.$_generateId()):"",e&&(this.colorPickerShow=!1,this.$nextTick(function(){t.$refs.newVariableNameInput&&(t.$refs.newVariableNameInput.focus(),t.$refs.newVariableNameInput.select())}))},activePaletteView:function(e){localStorage.setItem("brx_builder_color_palette_view",e)},colorPickerShow:function(){var e,t,n,i,r,o,a,s=this;if(this.colorPickerShow&&(this.showPopup=!1,this.colorPickerIsOpening=!0),"light"===this.$_state.mode&&null!==(e=this.value)&&void 0!==e&&e.light?a=this.value.light:"dark"===this.$_state.mode&&null!==(t=this.value)&&void 0!==t&&t.dark?a=this.value.dark:null!==(n=this.value)&&void 0!==n&&n.hsl?a=this.value.hsl:null!==(i=this.value)&&void 0!==i&&i.rgb?a=this.value.rgb:null!==(r=this.value)&&void 0!==r&&r.hex?a=this.value.hex:null!==(o=this.value)&&void 0!==o&&o.raw&&(a=this.value.raw),a)if(a.startsWith("rgb"))if(this.colorPickerFormats=["rgb","hex","hsl"],this.colorPickerFormat="rgb",this.colorPickerValue.startsWith("rgb"))this.colorPickerValue=a;else{var l=YJ(a);l.isValid()&&(this.colorPickerValue=l.toRgbString())}else if(a.startsWith("hsl"))if(this.colorPickerFormats=["hsl","rgb","hex"],this.colorPickerFormat="hsl",this.colorPickerValue.startsWith("hsl"))this.colorPickerValue=a;else{var c=YJ(a);c.isValid()&&(this.colorPickerValue=c.toHslString())}else if(this.colorPickerValue=a,this.colorPickerFormats=["hex","hsl","rgb"],this.colorPickerFormat="hex",a.startsWith("#"))this.colorPickerValue=a;else{var u=YJ(a);u.isValid()&&(this.colorPickerValue=u.toHexString())}this.tcColorPickerValue=this.colorPickerValue,this.$nextTick(function(){s.colorPickerIsOpening=!1})},value:{handler:function(e,t){this.$_state.cssPreviewOnHover="",(null!=t&&t.id&&null!=e&&e.id&&t.id!==e.id||(null==t||!t.id)&&null!=e&&e.id)&&(this.colorPickerShow=!1);var n=this.colorPalette.flatMap(function(e){return e.colors}).find(function(t){return(null==t?void 0:t.id)===(null==e?void 0:e.id)}),i=null!=n&&n.raw?_fe(_fe({},e),{},{raw:n.raw}):e;this.$_state.colorPaletteInlineCssVars=this.$_generateCss("colorPalette",i),null!=e&&e.light||null!=e&&e.hex||null!=e&&e.rgb||null!=e&&e.hsl||null!=e&&e.raw||this.$emit("input",!1),this.expandControl()},deep:!0,immediate:!1},activePaletteId:{handler:function(e){e&&localStorage.setItem("brx_builder_color_palette_id",e)}}}};var Dfe=(0,xx.A)(Afe,[["render",function(e,t,n,i,r,o){var a=$r("ChromePicker"),s=$r("icon"),l=$r("control-text"),c=$r("control-select"),u=$r("control-info"),d=$r("panel-control-popup"),p=Nr("clickaway");return Ta(),Ma("div",{"data-control":"color",class:te({expand:r.expand})},[r.colorPickerShow?Xn((Ta(),Ma("div",{key:0,class:"color-picker-popup",onClick:t[2]||(t[2]=function(e){return o.onColorPickerClick(e)})},[Ha(a,{tinyColor:r.tcColorPickerValue,"onUpdate:tinyColor":[t[0]||(t[0]=function(e){return r.tcColorPickerValue=e}),t[1]||(t[1]=function(e){return o.tcColorUpdated(e)})],formats:r.colorPickerFormats},null,8,["tinyColor","formats"])])),[[p,function(){return r.colorPickerShow=!1}]]):Qa("",!0),qa("div",{class:te(["dynamic-tag-picker-button",{active:r.colorPickerShow}]),"data-balloon":e.i18n.colorPicker,"data-balloon-pos":"top-right",onClick:t[3]||(t[3]=bc(function(e){return r.colorPickerShow=!r.colorPickerShow},["stop"]))},[Ha(s,{name:"color"})],10,Xhe),qa("div",{class:te(["bricks-control-preview",{empty:!n.value}]),onClick:t[4]||(t[4]=function(t){return e.$_controlPopupToggle()})},[qa("span",{class:"color-value-tooltip","data-balloon":e.i18n.colorPalette,"data-balloon-pos":"top-right"},null,8,Zhe),Xn(qa("span",{class:te([{"bricks-control-transparency-pattern":o.colorPreviewStyles}]),style:Y(o.colorPreviewStyles)},null,6),[[pl,n.value]]),Xn(Ha(s,{name:"design-palette"},null,512),[[pl,!n.value||!o.colorPreviewStyles]])],2),qa("div",efe,[Ha(l,{class:"color-input",control:{hasDynamicData:"text",hasVariables:!0},controlKey:n.controlKey,parentKey:n.parentKey,parentType:n.parentType,value:o.colorValue,onInput:t[5]||(t[5]=function(e){return o.onColorInput(e)}),placeholder:o.inputPlaceholder},null,8,["controlKey","parentKey","parentType","value","placeholder"]),r.showPopup&&!e.$_isLocked()?(Ta(),La(d,{key:0,show:r.showPopup,onClosePopup:t[17]||(t[17]=function(e){return r.showPopup=!1})},{default:Jn(function(){return["list"===r.activePaletteView?(Ta(),Ma("div",tfe,[(Ta(!0),Ma(Ca,null,Rr(o.rootColors,function(n){return Ta(),Ma("div",{key:n.id,class:"color-group"},[qa("div",{class:te(["root-color",{active:o.isActiveColor(n)}]),onClick:bc(function(e){return o.selectColor(n)},["stop"]),onMouseenter:function(e){return o.setColorPreview(n)},onMouseleave:t[6]||(t[6]=function(e){return o.resetColorPreview()})},[qa("div",{class:te(["color-swatch",{"color-palette-transparency-pattern":o.hasColorTransparency(n)}]),style:Y(o.colorPaletteStyles(n)),title:o.getColorTooltip(n)},null,14,ife),qa("div",rfe,[qa("span",{class:"color-name",title:o.getColorTooltip(n),textContent:he(o.getColorLabel(n))},null,8,ofe),qa("span",{class:"color-value",title:o.getColorTooltip(n),textContent:he(n.light||n.hex||n.rgb||n.raw)},null,8,afe)])],42,nfe),o.getColorShades(n.id,"light").length?(Ta(),Ma("div",{key:0,class:"shades light",title:e.i18n.light},[(Ta(!0),Ma(Ca,null,Rr(o.getColorShades(n.id,"light"),function(e){return Ta(),Ma("div",{key:e.id,class:te(["shade-color",e.type,{active:o.isActiveColor(e),"color-palette-transparency-pattern":o.hasColorTransparency(e)}]),title:o.getColorTooltip(e),style:Y(o.colorPaletteStyles(e)),onClick:bc(function(t){return o.selectColor(e)},["stop"]),onMouseenter:function(t){return o.setColorPreview(e)},onMouseleave:t[7]||(t[7]=function(e){return o.resetColorPreview()})},null,46,lfe)}),128))],8,sfe)):Qa("",!0),o.getColorShades(n.id,"dark").length?(Ta(),Ma("div",{key:1,class:"shades dark",title:e.i18n.dark},[(Ta(!0),Ma(Ca,null,Rr(o.getColorShades(n.id,"dark"),function(e){return Ta(),Ma("div",{key:e.id,class:te(["shade-color",e.type,{active:o.isActiveColor(e),"color-palette-transparency-pattern":o.hasColorTransparency(e)}]),title:o.getColorTooltip(e),style:Y(o.colorPaletteStyles(e)),onClick:bc(function(t){return o.selectColor(e)},["stop"]),onMouseenter:function(t){return o.setColorPreview(e)},onMouseleave:t[8]||(t[8]=function(e){return o.resetColorPreview()})},null,46,ufe)}),128))],8,cfe)):Qa("",!0),o.getColorShades(n.id,"transparent").length?(Ta(),Ma("div",{key:2,class:"shades transparent",title:e.i18n.transparent},[(Ta(!0),Ma(Ca,null,Rr(o.getColorShades(n.id,"transparent"),function(e){return Ta(),Ma("div",{key:e.id,class:te(["shade-color",e.type,{active:o.isActiveColor(e),"color-palette-transparency-pattern":o.hasColorTransparency(e)}]),title:o.getColorTooltip(e),style:Y(o.colorPaletteStyles(e)),onClick:bc(function(t){return o.selectColor(e)},["stop"]),onMouseenter:function(t){return o.setColorPreview(e)},onMouseleave:t[9]||(t[9]=function(e){return o.resetColorPreview()})},null,46,pfe)}),128))],8,dfe)):Qa("",!0)])}),128))])):Xn((Ta(),Ma("ul",hfe,[(Ta(!0),Ma(Ca,null,Rr(o.orderedPaletteColors,function(e,n){return Ta(),Ma("li",{key:(null==e?void 0:e.id)||e.name,class:te(["color",{active:o.isActiveColor(e)},{shade:e.type},e.type||"root"]),"data-balloon":o.getColorTooltip(e),onClick:bc(function(t){return o.selectColor(e)},["stop"]),onMouseenter:function(t){return o.setColorPreview(e)},onMouseleave:t[10]||(t[10]=function(e){return o.resetColorPreview()})},[qa("div",{class:te(["color-button",{"color-palette-transparency-pattern":o.hasColorTransparency(e)}]),style:Y(o.colorPaletteStyles(e,n))},null,6)],42,ffe)}),128))],512)),[[pl,o.activePaletteColors.length]]),qa("div",mfe,[o.hasLocalPalette?Qa("",!0):(Ta(),La(c,{key:0,value:r.activePaletteId,"onUpdate:value":t[11]||(t[11]=function(e){return r.activePaletteId=e}),control:o.paletteDropdownControl,"data-balloon":e.i18n.colorPalette,"data-balloon-pos":"top-left"},null,8,["value","control","data-balloon"])),qa("div",gfe,[e.$_userHasPermission("edit_color_palettes")&&!o.hasLocalPalette?(Ta(),La(s,{key:0,class:te(["dynamic-tag-picker-button",{disabled:!r.inputRaw||!r.activePaletteId||!n.value}]),"data-balloon":e.i18n.colorPaletteAddColor,"data-balloon-pos":"top-left",name:"add",onClick:t[12]||(t[12]=bc(function(e){return r.inputRaw?r.isAddingColorToPalette=!r.isAddingColorToPalette:null},["stop"]))},null,8,["class","data-balloon"])):Qa("",!0),Ha(s,{class:"dynamic-tag-picker-button","data-balloon":"grid"===r.activePaletteView?"".concat(e.i18n.list," (").concat(e.i18n.view,")"):"".concat(e.i18n.grid," (").concat(e.i18n.view,")"),"data-balloon-pos":"top",name:"grid"===r.activePaletteView?"grid":"columns",onClick:t[13]||(t[13]=bc(function(e){return r.activePaletteView="grid"===r.activePaletteView?"list":"grid"},["stop"]))},null,8,["data-balloon","name"]),e.$_userHasPermission("edit_color_palettes")?(Ta(),La(s,{key:1,class:"dynamic-tag-picker-button","data-balloon":"".concat(e.i18n.manage," (").concat(e.i18n.colorPalettes,")"),"data-balloon-pos":"top-right",name:"settings",onClick:t[14]||(t[14]=bc(function(e){return o.openColorManager()},["stop"]))},null,8,["data-balloon"])):Qa("",!0)])]),r.isAddingColorToPalette?(Ta(),Ma("div",vfe,[qa("div",{class:"input-wrapper","data-balloon":e.i18n.variableName,"data-balloon-pos":"top-left"},[Xn(qa("input",{type:"text",ref:"newVariableNameInput","onUpdate:modelValue":t[15]||(t[15]=function(e){return r.newVariableName=e}),placeholder:r.newVariableNameAutoGenerated},null,8,bfe),[[ac,r.newVariableName]])],8,yfe),Ha(s,{name:"save",class:te(["control-action-button",{disabled:!r.inputRaw||!r.activePaletteId}]),"data-balloon":"".concat(e.i18n.save," (").concat(e.i18n.colorPalette,")"),"data-balloon-pos":"top-right",onClick:t[16]||(t[16]=bc(function(e){return o.addColorToPalette()},["stop"]))},null,8,["class","data-balloon"])])):Qa("",!0),r.isAddingColorToPalette?(Ta(),Ma("div",kfe,he(e.i18n.colorControlVariableNameDesc),1)):Qa("",!0),r.activePaletteId&&!o.activePaletteColors.length?(Ta(),La(u,{key:4,control:{content:e.i18n.colorPaletteFirstColorDescription}},null,8,["control"])):Qa("",!0)]}),_:1},8,["show"])):Qa("",!0)])],2)}]]),Tfe={class:"bricks-panel-controls"},Ife={"data-control":"conditions"},Ofe={class:"title-wrapper"},Pfe=["textContent"],Ffe={key:0,class:"actions"},$fe=["data-balloon"],Mfe=["data-balloon"],Lfe={key:0,class:"no-results no-border"},Nfe={key:1,class:"condition-timing no-border"},jfe={key:2,class:"conditions"},Bfe=["data-label"],Rfe=["data-label"],Vfe={class:"actions"},qfe={key:3,class:"no-results no-border"},Hfe=["href","textContent"];var zfe={computed:{isBulkEditing:function(){return this.$_isBulkEditing()},element:function(){return this.$_getFinalElement()},elementConditions:function(){var e;return(null===(e=this.element)||void 0===e||null===(e=e.settings)||void 0===e?void 0:e._conditions)||[]},conditionControls:function(){return this.bricks.controls.conditions},keyOptions:function(){var e=this,t={};return Object.keys(this.conditionControls).forEach(function(n){var i;t[n]=null===(i=e.conditionControls[n])||void 0===i?void 0:i.label}),t},elementHasLoop:function(){var e;return null===(e=this.element)||void 0===e||null===(e=e.settings)||void 0===e?void 0:e.hasLoop}},methods:{keyUpdated:function(e,t){delete t.compare,delete t.value,delete t.dynamic_data},setCompare:function(e,t){t?e.compare=t:delete e.compare},getCompareControl:function(e){var t;return e&&null!==(t=this.conditionControls[e])&&void 0!==t&&t.compare?this.conditionControls[e].compare:{type:"text",hasDynamicData:!1,placeholder:"=="}},getValueControl:function(e){var t;return e&&null!==(t=this.conditionControls[e])&&void 0!==t&&t.value?this.conditionControls[e].value:{type:"text"}},addCondition:function(){var e,t;null!==(e=this.element)&&void 0!==e&&e.settings?null!==(t=this.element)&&void 0!==t&&null!==(t=t.settings)&&void 0!==t&&t._conditions||(this.element.settings._conditions=[]):this.element.settings={_conditions:[]},this.elementConditions.push([{id:this.$_generateId()}])},addItem:function(e){this.elementConditions[e].push({id:this.$_generateId()})},deleteItem:function(e,t){this.elementConditions[e].splice(t,1),this.elementConditions[e].length||this.elementConditions.splice(e,1)}},watch:{elementConditions:{handler:function(e){var t,n;this.isBulkEditing||(e.length?(null!==(n=this.element)&&void 0!==n&&n.settings||(this.element.settings={}),this.element.settings._conditions=e):null!==(t=this.element)&&void 0!==t&&null!==(t=t.settings)&&void 0!==t&&t._conditions&&delete this.element.settings._conditions)},deep:!0}}};var Ufe=(0,xx.A)(zfe,[["render",function(e,t,n,i,r,o){var a=$r("icon"),s=$r("control-info"),l=$r("panel-control");return Ta(),Ma("div",Tfe,[qa("div",Ife,[qa("div",Ofe,[qa("div",{class:"title",textContent:he(e.i18n.conditions)},null,8,Pfe),o.isBulkEditing?Qa("",!0):(Ta(),Ma("div",Ffe,[e.$_userHasPermission("access_element_conditions")?(Ta(),Ma("button",{key:0,class:"add",onClick:t[0]||(t[0]=function(e){return o.addCondition()}),"data-balloon":e.i18n.add,"data-balloon-pos":"bottom-right"},[Ha(a,{name:"add"})],8,$fe)):Qa("",!0),qa("button",{class:"close",onClick:t[1]||(t[1]=function(t){return e.$_state.showConditions=!1}),"data-balloon":e.i18n.close,"data-balloon-pos":"bottom-right"},[Ha(a,{name:"close"})],8,Mfe)]))]),o.isBulkEditing?(Ta(),Ma("div",Lfe,[Ha(s,{control:{content:e.i18n.bulkEditNotSupported}},null,8,["control"])])):Qa("",!0),!o.isBulkEditing&&o.elementConditions.length&&o.elementHasLoop?(Ta(),Ma("div",Nfe,[Ha(s,{control:{content:e.i18n.conditionTiming}},null,8,["control"])])):Qa("",!0),!o.isBulkEditing&&o.elementConditions.length?(Ta(),Ma("ul",jfe,[(Ta(!0),Ma(Ca,null,Rr(o.elementConditions,function(t,n){return Ta(),Ma("li",{key:n,class:te(["condition",{connector:n+1<o.elementConditions.length}]),"data-label":e.i18n.or},[(Ta(!0),Ma(Ca,null,Rr(t,function(i,r){return Ta(),Ma("div",{key:null==i?void 0:i.id,class:te(["item",{connector:r+1<t.length}]),"data-label":e.i18n.and},[qa("div",Vfe,[Ha(a,{name:"add",onClick:function(e){return o.addItem(n)},"data-balloon":"".concat(e.i18n.add," (").concat(e.i18n.condition,")"),"data-balloon-pos":"bottom-right"},null,8,["onClick","data-balloon"]),Ha(a,{name:"trash",onClick:function(e){return o.deleteItem(n,r)},"data-balloon":"".concat(e.i18n.delete," (").concat(e.i18n.condition,")"),"data-balloon-pos":"bottom-right"},null,8,["onClick","data-balloon"])]),Ha(l,{controlKey:"key",control:{type:"select",options:o.keyOptions,searchable:!0,placeholder:e.i18n.conditionSelect,propertyDisabled:!0},settings:i,value:null==i?void 0:i.key,repeaterKey:"_conditions",repeaterId:"".concat(null==i?void 0:i.id),onUpdated:function(e){return o.keyUpdated(e,i)}},null,8,["control","settings","value","repeaterId","onUpdated"]),Xn(Ha(l,{controlKey:"dynamic_data",control:{type:"text",placeholder:e.i18n.dynamicData},repeaterKey:"_conditions",repeaterId:"".concat(null==i?void 0:i.id),settings:i},null,8,["control","repeaterId","settings"]),[[pl,"dynamic_data"===(null==i?void 0:i.key)]]),Xn((Ta(),La(l,{controlKey:"compare",key:null==i?void 0:i.key,control:o.getCompareControl(null==i?void 0:i.key),settings:i},null,8,["control","settings"])),[[pl,null==i?void 0:i.key]]),Xn(Ha(l,{controlKey:"value",control:o.getValueControl(null==i?void 0:i.key),repeaterKey:"_conditions",repeaterId:"".concat(null==i?void 0:i.id),settings:i},null,8,["control","repeaterId","settings"]),[[pl,(null==i?void 0:i.key)&&"empty"!==(null==i?void 0:i.compare)&&"empty_not"!==(null==i?void 0:i.compare)]])],10,Rfe)}),128))],10,Bfe)}),128))])):o.isBulkEditing?Qa("",!0):(Ta(),Ma("div",qfe,[Ha(s,{control:{content:e.i18n.noConditionsSet}},null,8,["control"]),qa("a",{href:e.bricks.academy.conditions,target:"_blank",class:"button",textContent:he(e.i18n.learnMore)},null,8,Hfe)]))])])}]]),Wfe={"data-control":"date-picker"},Gfe=["value","placeholder"];var Kfe=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],Qfe={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},Yfe={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},Jfe=Yfe,Xfe=function(e,t){return void 0===t&&(t=2),("000"+e).slice(-1*t)},Zfe=function(e){return!0===e?1:0};function eme(e,t){var n;return function(){var i=this,r=arguments;clearTimeout(n),n=setTimeout(function(){return e.apply(i,r)},t)}}var tme=function(e){return e instanceof Array?e:[e]};function nme(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function ime(e,t,n){var i=window.document.createElement(e);return t=t||"",n=n||"",i.className=t,void 0!==n&&(i.textContent=n),i}function rme(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function ome(e,t){return t(e)?e:e.parentNode?ome(e.parentNode,t):void 0}function ame(e,t){var n=ime("div","numInputWrapper"),i=ime("input","numInput "+e),r=ime("span","arrowUp"),o=ime("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?i.type="number":(i.type="text",i.pattern="\\d*"),void 0!==t)for(var a in t)i.setAttribute(a,t[a]);return n.appendChild(i),n.appendChild(r),n.appendChild(o),n}function sme(e){try{return"function"==typeof e.composedPath?e.composedPath()[0]:e.target}catch(t){return e.target}}var lme=function(){},cme=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},ume={D:lme,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,n){e.setHours(e.getHours()%12+12*Zfe(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t,n){var i=parseInt(t),r=new Date(e.getFullYear(),0,2+7*(i-1),0,0,0,0);return r.setDate(r.getDate()-r.getDay()+n.firstDayOfWeek),r},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:lme,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:lme,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},dme={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},pme={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[pme.w(e,t,n)]},F:function(e,t,n){return cme(pme.n(e,t,n)-1,!1,t)},G:function(e,t,n){return Xfe(pme.h(e,t,n))},H:function(e){return Xfe(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[Zfe(e.getHours()>11)]},M:function(e,t){return cme(e.getMonth(),!0,t)},S:function(e){return Xfe(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return Xfe(e.getFullYear(),4)},d:function(e){return Xfe(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return Xfe(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return Xfe(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},hme=function(e){var t=e.config,n=void 0===t?Qfe:t,i=e.l10n,r=void 0===i?Yfe:i,o=e.isMobile,a=void 0!==o&&o;return function(e,t,i){var o=i||r;return void 0===n.formatDate||a?t.split("").map(function(t,i,r){return pme[t]&&"\\"!==r[i-1]?pme[t](e,o,n):"\\"!==t?t:""}).join(""):n.formatDate(e,t,o)}},fme=function(e){var t=e.config,n=void 0===t?Qfe:t,i=e.l10n,r=void 0===i?Yfe:i;return function(e,t,i,o){if(0===e||e){var a,s=o||r,l=e;if(e instanceof Date)a=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)a=new Date(e);else if("string"==typeof e){var c=t||(n||Qfe).dateFormat,u=String(e).trim();if("today"===u)a=new Date,i=!0;else if(n&&n.parseDate)a=n.parseDate(e,c);else if(/Z$/.test(u)||/GMT$/.test(u))a=new Date(e);else{for(var d=void 0,p=[],h=0,f=0,m="";h<c.length;h++){var g=c[h],v="\\"===g,y="\\"===c[h-1]||v;if(dme[g]&&!y){m+=dme[g];var b=new RegExp(m).exec(e);b&&(d=!0)&&p["Y"!==g?"push":"unshift"]({fn:ume[g],val:b[++f]})}else v||(m+=".")}a=n&&n.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),p.forEach(function(e){var t=e.fn,n=e.val;return a=t(a,n,s)||a}),a=d?a:void 0}}if(a instanceof Date&&!isNaN(a.getTime()))return!0===i&&a.setHours(0,0,0,0),a;n.errorHandler(new Error("Invalid date provided: "+l))}}};function mme(e,t,n){return void 0===n&&(n=!0),!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}var gme=function(e,t,n){return 3600*e+60*t+n},vme=864e5;function yme(e){var t=e.defaultHour,n=e.defaultMinute,i=e.defaultSeconds;if(void 0!==e.minDate){var r=e.minDate.getHours(),o=e.minDate.getMinutes(),a=e.minDate.getSeconds();t<r&&(t=r),t===r&&n<o&&(n=o),t===r&&n===o&&i<a&&(i=e.minDate.getSeconds())}if(void 0!==e.maxDate){var s=e.maxDate.getHours(),l=e.maxDate.getMinutes();(t=Math.min(t,s))===s&&(n=Math.min(l,n)),t===s&&n===l&&(i=e.maxDate.getSeconds())}return{hours:t,minutes:n,seconds:i}}n(65990);var bme=function(){return bme=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},bme.apply(this,arguments)},kme=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i};function wme(e,t){var n={config:bme(bme({},Qfe),Cme.defaultConfig),l10n:Jfe};function i(){var e;return(null===(e=n.calendarContainer)||void 0===e?void 0:e.getRootNode()).activeElement||document.activeElement}function r(e){return e.bind(n)}function o(){var e=n.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame(function(){if(void 0!==n.calendarContainer&&(n.calendarContainer.style.visibility="hidden",n.calendarContainer.style.display="block"),void 0!==n.daysContainer){var t=(n.days.offsetWidth+1)*e.showMonths;n.daysContainer.style.width=t+"px",n.calendarContainer.style.width=t+(void 0!==n.weekWrapper?n.weekWrapper.offsetWidth:0)+"px",n.calendarContainer.style.removeProperty("visibility"),n.calendarContainer.style.removeProperty("display")}})}function a(e){if(0===n.selectedDates.length){var t=void 0===n.config.minDate||mme(new Date,n.config.minDate)>=0?new Date:new Date(n.config.minDate.getTime()),i=yme(n.config);t.setHours(i.hours,i.minutes,i.seconds,t.getMilliseconds()),n.selectedDates=[t],n.latestSelectedDateObj=t}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,i=sme(e),r=i;void 0!==n.amPM&&i===n.amPM&&(n.amPM.textContent=n.l10n.amPM[Zfe(n.amPM.textContent===n.l10n.amPM[0])]);var o=parseFloat(r.getAttribute("min")),a=parseFloat(r.getAttribute("max")),s=parseFloat(r.getAttribute("step")),l=parseInt(r.value,10),c=e.delta||(t?38===e.which?1:-1:0),u=l+s*c;if(void 0!==r.value&&2===r.value.length){var d=r===n.hourElement,p=r===n.minuteElement;u<o?(u=a+u+Zfe(!d)+(Zfe(d)&&Zfe(!n.amPM)),p&&m(void 0,-1,n.hourElement)):u>a&&(u=r===n.hourElement?u-a-Zfe(!n.amPM):o,p&&m(void 0,1,n.hourElement)),n.amPM&&d&&(1===s?u+l===23:Math.abs(u-l)>s)&&(n.amPM.textContent=n.l10n.amPM[Zfe(n.amPM.textContent===n.l10n.amPM[0])]),r.value=Xfe(u)}}(e);var r=n._input.value;s(),Z(),n._input.value!==r&&n._debouncedChange()}function s(){if(void 0!==n.hourElement&&void 0!==n.minuteElement){var e,t,i=(parseInt(n.hourElement.value.slice(-2),10)||0)%24,r=(parseInt(n.minuteElement.value,10)||0)%60,o=void 0!==n.secondElement?(parseInt(n.secondElement.value,10)||0)%60:0;void 0!==n.amPM&&(e=i,t=n.amPM.textContent,i=e%12+12*Zfe(t===n.l10n.amPM[1]));var a=void 0!==n.config.minTime||n.config.minDate&&n.minDateHasTime&&n.latestSelectedDateObj&&0===mme(n.latestSelectedDateObj,n.config.minDate,!0),s=void 0!==n.config.maxTime||n.config.maxDate&&n.maxDateHasTime&&n.latestSelectedDateObj&&0===mme(n.latestSelectedDateObj,n.config.maxDate,!0);if(void 0!==n.config.maxTime&&void 0!==n.config.minTime&&n.config.minTime>n.config.maxTime){var l=gme(n.config.minTime.getHours(),n.config.minTime.getMinutes(),n.config.minTime.getSeconds()),u=gme(n.config.maxTime.getHours(),n.config.maxTime.getMinutes(),n.config.maxTime.getSeconds()),d=gme(i,r,o);if(d>u&&d<l){var p=function(e){var t=Math.floor(e/3600),n=(e-3600*t)/60;return[t,n,e-3600*t-60*n]}(l);i=p[0],r=p[1],o=p[2]}}else{if(s){var h=void 0!==n.config.maxTime?n.config.maxTime:n.config.maxDate;(i=Math.min(i,h.getHours()))===h.getHours()&&(r=Math.min(r,h.getMinutes())),r===h.getMinutes()&&(o=Math.min(o,h.getSeconds()))}if(a){var f=void 0!==n.config.minTime?n.config.minTime:n.config.minDate;(i=Math.max(i,f.getHours()))===f.getHours()&&r<f.getMinutes()&&(r=f.getMinutes()),r===f.getMinutes()&&(o=Math.max(o,f.getSeconds()))}}c(i,r,o)}}function l(e){var t=e||n.latestSelectedDateObj;t&&t instanceof Date&&c(t.getHours(),t.getMinutes(),t.getSeconds())}function c(e,t,i){void 0!==n.latestSelectedDateObj&&n.latestSelectedDateObj.setHours(e%24,t,i||0,0),n.hourElement&&n.minuteElement&&!n.isMobile&&(n.hourElement.value=Xfe(n.config.time_24hr?e:(12+e)%12+12*Zfe(e%12==0)),n.minuteElement.value=Xfe(t),void 0!==n.amPM&&(n.amPM.textContent=n.l10n.amPM[Zfe(e>=12)]),void 0!==n.secondElement&&(n.secondElement.value=Xfe(i)))}function u(e){var t=sme(e),n=parseInt(t.value)+(e.delta||0);(n/1e3>1||"Enter"===e.key&&!/[^\d]/.test(n.toString()))&&I(n)}function d(e,t,i,r){return t instanceof Array?t.forEach(function(t){return d(e,t,i,r)}):e instanceof Array?e.forEach(function(e){return d(e,t,i,r)}):(e.addEventListener(t,i,r),void n._handlers.push({remove:function(){return e.removeEventListener(t,i,r)}}))}function p(){K("onChange")}function h(e,t){var i=void 0!==e?n.parseDate(e):n.latestSelectedDateObj||(n.config.minDate&&n.config.minDate>n.now?n.config.minDate:n.config.maxDate&&n.config.maxDate<n.now?n.config.maxDate:n.now),r=n.currentYear,o=n.currentMonth;try{void 0!==i&&(n.currentYear=i.getFullYear(),n.currentMonth=i.getMonth())}catch(e){e.message="Invalid date supplied: "+i,n.config.errorHandler(e)}t&&n.currentYear!==r&&(K("onYearChange"),_()),!t||n.currentYear===r&&n.currentMonth===o||K("onMonthChange"),n.redraw()}function f(e){var t=sme(e);~t.className.indexOf("arrow")&&m(e,t.classList.contains("arrowUp")?1:-1)}function m(e,t,n){var i=e&&sme(e),r=n||i&&i.parentNode&&i.parentNode.firstChild,o=Q("increment");o.delta=t,r&&r.dispatchEvent(o)}function g(e,t,i,r){var o=O(t,!0),a=ime("span",e,t.getDate().toString());return a.dateObj=t,a.$i=r,a.setAttribute("aria-label",n.formatDate(t,n.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===mme(t,n.now)&&(n.todayDateElem=a,a.classList.add("today"),a.setAttribute("aria-current","date")),o?(a.tabIndex=-1,Y(t)&&(a.classList.add("selected"),n.selectedDateElem=a,"range"===n.config.mode&&(nme(a,"startRange",n.selectedDates[0]&&0===mme(t,n.selectedDates[0],!0)),nme(a,"endRange",n.selectedDates[1]&&0===mme(t,n.selectedDates[1],!0)),"nextMonthDay"===e&&a.classList.add("inRange")))):a.classList.add("flatpickr-disabled"),"range"===n.config.mode&&function(e){return!("range"!==n.config.mode||n.selectedDates.length<2)&&(mme(e,n.selectedDates[0])>=0&&mme(e,n.selectedDates[1])<=0)}(t)&&!Y(t)&&a.classList.add("inRange"),n.weekNumbers&&1===n.config.showMonths&&"prevMonthDay"!==e&&r%7==6&&n.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+n.config.getWeek(t)+"</span>"),K("onDayCreate",a),a}function v(e){e.focus(),"range"===n.config.mode&&M(e)}function y(e){for(var t=e>0?0:n.config.showMonths-1,i=e>0?n.config.showMonths:-1,r=t;r!=i;r+=e)for(var o=n.daysContainer.children[r],a=e>0?0:o.children.length-1,s=e>0?o.children.length:-1,l=a;l!=s;l+=e){var c=o.children[l];if(-1===c.className.indexOf("hidden")&&O(c.dateObj))return c}}function b(e,t){var r=i(),o=P(r||document.body),a=void 0!==e?e:o?r:void 0!==n.selectedDateElem&&P(n.selectedDateElem)?n.selectedDateElem:void 0!==n.todayDateElem&&P(n.todayDateElem)?n.todayDateElem:y(t>0?1:-1);void 0===a?n._input.focus():o?function(e,t){for(var i=-1===e.className.indexOf("Month")?e.dateObj.getMonth():n.currentMonth,r=t>0?n.config.showMonths:-1,o=t>0?1:-1,a=i-n.currentMonth;a!=r;a+=o)for(var s=n.daysContainer.children[a],l=i-n.currentMonth===a?e.$i+t:t<0?s.children.length-1:0,c=s.children.length,u=l;u>=0&&u<c&&u!=(t>0?c:-1);u+=o){var d=s.children[u];if(-1===d.className.indexOf("hidden")&&O(d.dateObj)&&Math.abs(e.$i-u)>=Math.abs(t))return v(d)}n.changeMonth(o),b(y(o),0)}(a,t):v(a)}function k(e,t){for(var i=(new Date(e,t,1).getDay()-n.l10n.firstDayOfWeek+7)%7,r=n.utils.getDaysInMonth((t-1+12)%12,e),o=n.utils.getDaysInMonth(t,e),a=window.document.createDocumentFragment(),s=n.config.showMonths>1,l=s?"prevMonthDay hidden":"prevMonthDay",c=s?"nextMonthDay hidden":"nextMonthDay",u=r+1-i,d=0;u<=r;u++,d++)a.appendChild(g("flatpickr-day "+l,new Date(e,t-1,u),0,d));for(u=1;u<=o;u++,d++)a.appendChild(g("flatpickr-day",new Date(e,t,u),0,d));for(var p=o+1;p<=42-i&&(1===n.config.showMonths||d%7!=0);p++,d++)a.appendChild(g("flatpickr-day "+c,new Date(e,t+1,p%o),0,d));var h=ime("div","dayContainer");return h.appendChild(a),h}function w(){if(void 0!==n.daysContainer){rme(n.daysContainer),n.weekNumbers&&rme(n.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<n.config.showMonths;t++){var i=new Date(n.currentYear,n.currentMonth,1);i.setMonth(n.currentMonth+t),e.appendChild(k(i.getFullYear(),i.getMonth()))}n.daysContainer.appendChild(e),n.days=n.daysContainer.firstChild,"range"===n.config.mode&&1===n.selectedDates.length&&M()}}function _(){if(!(n.config.showMonths>1||"dropdown"!==n.config.monthSelectorType)){var e=function(e){return!(void 0!==n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&e<n.config.minDate.getMonth())&&!(void 0!==n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()&&e>n.config.maxDate.getMonth())};n.monthsDropdownContainer.tabIndex=-1,n.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e(t)){var i=ime("option","flatpickr-monthDropdown-month");i.value=new Date(n.currentYear,t).getMonth().toString(),i.textContent=cme(t,n.config.shorthandCurrentMonth,n.l10n),i.tabIndex=-1,n.currentMonth===t&&(i.selected=!0),n.monthsDropdownContainer.appendChild(i)}}}function C(){var e,t=ime("div","flatpickr-month"),i=window.document.createDocumentFragment();n.config.showMonths>1||"static"===n.config.monthSelectorType?e=ime("span","cur-month"):(n.monthsDropdownContainer=ime("select","flatpickr-monthDropdown-months"),n.monthsDropdownContainer.setAttribute("aria-label",n.l10n.monthAriaLabel),d(n.monthsDropdownContainer,"change",function(e){var t=sme(e),i=parseInt(t.value,10);n.changeMonth(i-n.currentMonth),K("onMonthChange")}),_(),e=n.monthsDropdownContainer);var r=ame("cur-year",{tabindex:"-1"}),o=r.getElementsByTagName("input")[0];o.setAttribute("aria-label",n.l10n.yearAriaLabel),n.config.minDate&&o.setAttribute("min",n.config.minDate.getFullYear().toString()),n.config.maxDate&&(o.setAttribute("max",n.config.maxDate.getFullYear().toString()),o.disabled=!!n.config.minDate&&n.config.minDate.getFullYear()===n.config.maxDate.getFullYear());var a=ime("div","flatpickr-current-month");return a.appendChild(e),a.appendChild(r),i.appendChild(a),t.appendChild(i),{container:t,yearElement:o,monthElement:e}}function x(){rme(n.monthNav),n.monthNav.appendChild(n.prevMonthNav),n.config.showMonths&&(n.yearElements=[],n.monthElements=[]);for(var e=n.config.showMonths;e--;){var t=C();n.yearElements.push(t.yearElement),n.monthElements.push(t.monthElement),n.monthNav.appendChild(t.container)}n.monthNav.appendChild(n.nextMonthNav)}function S(){n.weekdayContainer?rme(n.weekdayContainer):n.weekdayContainer=ime("div","flatpickr-weekdays");for(var e=n.config.showMonths;e--;){var t=ime("div","flatpickr-weekdaycontainer");n.weekdayContainer.appendChild(t)}return E(),n.weekdayContainer}function E(){if(n.weekdayContainer){var e=n.l10n.firstDayOfWeek,t=kme(n.l10n.weekdays.shorthand);e>0&&e<t.length&&(t=kme(t.splice(e,t.length),t.splice(0,e)));for(var i=n.config.showMonths;i--;)n.weekdayContainer.children[i].innerHTML="\n <span class='flatpickr-weekday'>\n "+t.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function A(e,t){void 0===t&&(t=!0);var i=t?e:e-n.currentMonth;i<0&&!0===n._hidePrevMonthArrow||i>0&&!0===n._hideNextMonthArrow||(n.currentMonth+=i,(n.currentMonth<0||n.currentMonth>11)&&(n.currentYear+=n.currentMonth>11?1:-1,n.currentMonth=(n.currentMonth+12)%12,K("onYearChange"),_()),w(),K("onMonthChange"),J())}function D(e){return n.calendarContainer.contains(e)}function T(e){if(n.isOpen&&!n.config.inline){var t=sme(e),i=D(t),r=!(t===n.input||t===n.altInput||n.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(n.input)||~e.path.indexOf(n.altInput)))&&!i&&!D(e.relatedTarget),o=!n.config.ignoredFocusElements.some(function(e){return e.contains(t)});r&&o&&(n.config.allowInput&&n.setDate(n._input.value,!1,n.config.altInput?n.config.altFormat:n.config.dateFormat),void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement&&""!==n.input.value&&void 0!==n.input.value&&a(),n.close(),n.config&&"range"===n.config.mode&&1===n.selectedDates.length&&n.clear(!1))}}function I(e){if(!(!e||n.config.minDate&&e<n.config.minDate.getFullYear()||n.config.maxDate&&e>n.config.maxDate.getFullYear())){var t=e,i=n.currentYear!==t;n.currentYear=t||n.currentYear,n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth=Math.min(n.config.maxDate.getMonth(),n.currentMonth):n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&(n.currentMonth=Math.max(n.config.minDate.getMonth(),n.currentMonth)),i&&(n.redraw(),K("onYearChange"),_())}}function O(e,t){var i;void 0===t&&(t=!0);var r=n.parseDate(e,void 0,t);if(n.config.minDate&&r&&mme(r,n.config.minDate,void 0!==t?t:!n.minDateHasTime)<0||n.config.maxDate&&r&&mme(r,n.config.maxDate,void 0!==t?t:!n.maxDateHasTime)>0)return!1;if(!n.config.enable&&0===n.config.disable.length)return!0;if(void 0===r)return!1;for(var o=!!n.config.enable,a=null!==(i=n.config.enable)&&void 0!==i?i:n.config.disable,s=0,l=void 0;s<a.length;s++){if("function"==typeof(l=a[s])&&l(r))return o;if(l instanceof Date&&void 0!==r&&l.getTime()===r.getTime())return o;if("string"==typeof l){var c=n.parseDate(l,void 0,!0);return c&&c.getTime()===r.getTime()?o:!o}if("object"==typeof l&&void 0!==r&&l.from&&l.to&&r.getTime()>=l.from.getTime()&&r.getTime()<=l.to.getTime())return o}return!o}function P(e){return void 0!==n.daysContainer&&(-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&n.daysContainer.contains(e))}function F(e){var t=e.target===n._input,i=n._input.value.trimEnd()!==X();!t||!i||e.relatedTarget&&D(e.relatedTarget)||n.setDate(n._input.value,!0,e.target===n.altInput?n.config.altFormat:n.config.dateFormat)}function $(t){var r=sme(t),o=n.config.wrap?e.contains(r):r===n._input,l=n.config.allowInput,c=n.isOpen&&(!l||!o),u=n.config.inline&&o&&!l;if(13===t.keyCode&&o){if(l)return n.setDate(n._input.value,!0,r===n.altInput?n.config.altFormat:n.config.dateFormat),n.close(),r.blur();n.open()}else if(D(r)||c||u){var d=!!n.timeContainer&&n.timeContainer.contains(r);switch(t.keyCode){case 13:d?(t.preventDefault(),a(),q()):H(t);break;case 27:t.preventDefault(),q();break;case 8:case 46:o&&!n.config.allowInput&&(t.preventDefault(),n.clear());break;case 37:case 39:if(d||o)n.hourElement&&n.hourElement.focus();else{t.preventDefault();var p=i();if(void 0!==n.daysContainer&&(!1===l||p&&P(p))){var h=39===t.keyCode?1:-1;t.ctrlKey?(t.stopPropagation(),A(h),b(y(1),0)):b(void 0,h)}}break;case 38:case 40:t.preventDefault();var f=40===t.keyCode?1:-1;n.daysContainer&&void 0!==r.$i||r===n.input||r===n.altInput?t.ctrlKey?(t.stopPropagation(),I(n.currentYear-f),b(y(1),0)):d||b(void 0,7*f):r===n.currentYearElement?I(n.currentYear-f):n.config.enableTime&&(!d&&n.hourElement&&n.hourElement.focus(),a(t),n._debouncedChange());break;case 9:if(d){var m=[n.hourElement,n.minuteElement,n.secondElement,n.amPM].concat(n.pluginElements).filter(function(e){return e}),g=m.indexOf(r);if(-1!==g){var v=m[g+(t.shiftKey?-1:1)];t.preventDefault(),(v||n._input).focus()}}else!n.config.noCalendar&&n.daysContainer&&n.daysContainer.contains(r)&&t.shiftKey&&(t.preventDefault(),n._input.focus())}}if(void 0!==n.amPM&&r===n.amPM)switch(t.key){case n.l10n.amPM[0].charAt(0):case n.l10n.amPM[0].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[0],s(),Z();break;case n.l10n.amPM[1].charAt(0):case n.l10n.amPM[1].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[1],s(),Z()}(o||D(r))&&K("onKeyDown",t)}function M(e,t){if(void 0===t&&(t="flatpickr-day"),1===n.selectedDates.length&&(!e||e.classList.contains(t)&&!e.classList.contains("flatpickr-disabled"))){for(var i=e?e.dateObj.getTime():n.days.firstElementChild.dateObj.getTime(),r=n.parseDate(n.selectedDates[0],void 0,!0).getTime(),o=Math.min(i,n.selectedDates[0].getTime()),a=Math.max(i,n.selectedDates[0].getTime()),s=!1,l=0,c=0,u=o;u<a;u+=vme)O(new Date(u),!0)||(s=s||u>o&&u<a,u<r&&(!l||u>l)?l=u:u>r&&(!c||u<c)&&(c=u));Array.from(n.rContainer.querySelectorAll("*:nth-child(-n+"+n.config.showMonths+") > ."+t)).forEach(function(t){var o,a,u,d=t.dateObj.getTime(),p=l>0&&d<l||c>0&&d>c;if(p)return t.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach(function(e){t.classList.remove(e)});s&&!p||(["startRange","inRange","endRange","notAllowed"].forEach(function(e){t.classList.remove(e)}),void 0!==e&&(e.classList.add(i<=n.selectedDates[0].getTime()?"startRange":"endRange"),r<i&&d===r?t.classList.add("startRange"):r>i&&d===r&&t.classList.add("endRange"),d>=l&&(0===c||d<=c)&&(a=r,u=i,(o=d)>Math.min(a,u)&&o<Math.max(a,u))&&t.classList.add("inRange")))})}}function L(){!n.isOpen||n.config.static||n.config.inline||R()}function N(e){return function(t){var i=n.config["_"+e+"Date"]=n.parseDate(t,n.config.dateFormat),r=n.config["_"+("min"===e?"max":"min")+"Date"];void 0!==i&&(n["min"===e?"minDateHasTime":"maxDateHasTime"]=i.getHours()>0||i.getMinutes()>0||i.getSeconds()>0),n.selectedDates&&(n.selectedDates=n.selectedDates.filter(function(e){return O(e)}),n.selectedDates.length||"min"!==e||l(i),Z()),n.daysContainer&&(V(),void 0!==i?n.currentYearElement[e]=i.getFullYear().toString():n.currentYearElement.removeAttribute(e),n.currentYearElement.disabled=!!r&&void 0!==i&&r.getFullYear()===i.getFullYear())}}function j(){return n.config.wrap?e.querySelector("[data-input]"):e}function B(){"object"!=typeof n.config.locale&&void 0===Cme.l10ns[n.config.locale]&&n.config.errorHandler(new Error("flatpickr: invalid locale "+n.config.locale)),n.l10n=bme(bme({},Cme.l10ns.default),"object"==typeof n.config.locale?n.config.locale:"default"!==n.config.locale?Cme.l10ns[n.config.locale]:void 0),dme.D="("+n.l10n.weekdays.shorthand.join("|")+")",dme.l="("+n.l10n.weekdays.longhand.join("|")+")",dme.M="("+n.l10n.months.shorthand.join("|")+")",dme.F="("+n.l10n.months.longhand.join("|")+")",dme.K="("+n.l10n.amPM[0]+"|"+n.l10n.amPM[1]+"|"+n.l10n.amPM[0].toLowerCase()+"|"+n.l10n.amPM[1].toLowerCase()+")",void 0===bme(bme({},t),JSON.parse(JSON.stringify(e.dataset||{}))).time_24hr&&void 0===Cme.defaultConfig.time_24hr&&(n.config.time_24hr=n.l10n.time_24hr),n.formatDate=hme(n),n.parseDate=fme({config:n.config,l10n:n.l10n})}function R(e){if("function"!=typeof n.config.position){if(void 0!==n.calendarContainer){K("onPreCalendarPosition");var t=e||n._positionElement,i=Array.prototype.reduce.call(n.calendarContainer.children,function(e,t){return e+t.offsetHeight},0),r=n.calendarContainer.offsetWidth,o=n.config.position.split(" "),a=o[0],s=o.length>1?o[1]:null,l=t.getBoundingClientRect(),c=window.innerHeight-l.bottom,u="above"===a||"below"!==a&&c<i&&l.top>i,d=window.pageYOffset+l.top+(u?-i-2:t.offsetHeight+2);if(nme(n.calendarContainer,"arrowTop",!u),nme(n.calendarContainer,"arrowBottom",u),!n.config.inline){var p=window.pageXOffset+l.left,h=!1,f=!1;"center"===s?(p-=(r-l.width)/2,h=!0):"right"===s&&(p-=r-l.width,f=!0),nme(n.calendarContainer,"arrowLeft",!h&&!f),nme(n.calendarContainer,"arrowCenter",h),nme(n.calendarContainer,"arrowRight",f);var m=window.document.body.offsetWidth-(window.pageXOffset+l.right),g=p+r>window.document.body.offsetWidth,v=m+r>window.document.body.offsetWidth;if(nme(n.calendarContainer,"rightMost",g),!n.config.static)if(n.calendarContainer.style.top=d+"px",g)if(v){var y=function(){for(var e=null,t=0;t<document.styleSheets.length;t++){var n=document.styleSheets[t];if(n.cssRules){try{n.cssRules}catch(e){continue}e=n;break}}return null!=e?e:(i=document.createElement("style"),document.head.appendChild(i),i.sheet);var i}();if(void 0===y)return;var b=window.document.body.offsetWidth,k=Math.max(0,b/2-r/2),w=y.cssRules.length,_="{left:"+l.left+"px;right:auto;}";nme(n.calendarContainer,"rightMost",!1),nme(n.calendarContainer,"centerMost",!0),y.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+_,w),n.calendarContainer.style.left=k+"px",n.calendarContainer.style.right="auto"}else n.calendarContainer.style.left="auto",n.calendarContainer.style.right=m+"px";else n.calendarContainer.style.left=p+"px",n.calendarContainer.style.right="auto"}}}else n.config.position(n,e)}function V(){n.config.noCalendar||n.isMobile||(_(),J(),w())}function q(){n._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(n.close,0):n.close()}function H(e){e.preventDefault(),e.stopPropagation();var t=ome(sme(e),function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")});if(void 0!==t){var i=t,r=n.latestSelectedDateObj=new Date(i.dateObj.getTime()),o=(r.getMonth()<n.currentMonth||r.getMonth()>n.currentMonth+n.config.showMonths-1)&&"range"!==n.config.mode;if(n.selectedDateElem=i,"single"===n.config.mode)n.selectedDates=[r];else if("multiple"===n.config.mode){var a=Y(r);a?n.selectedDates.splice(parseInt(a),1):n.selectedDates.push(r)}else"range"===n.config.mode&&(2===n.selectedDates.length&&n.clear(!1,!1),n.latestSelectedDateObj=r,n.selectedDates.push(r),0!==mme(r,n.selectedDates[0],!0)&&n.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()}));if(s(),o){var l=n.currentYear!==r.getFullYear();n.currentYear=r.getFullYear(),n.currentMonth=r.getMonth(),l&&(K("onYearChange"),_()),K("onMonthChange")}if(J(),w(),Z(),o||"range"===n.config.mode||1!==n.config.showMonths?void 0!==n.selectedDateElem&&void 0===n.hourElement&&n.selectedDateElem&&n.selectedDateElem.focus():v(i),void 0!==n.hourElement&&void 0!==n.hourElement&&n.hourElement.focus(),n.config.closeOnSelect){var c="single"===n.config.mode&&!n.config.enableTime,u="range"===n.config.mode&&2===n.selectedDates.length&&!n.config.enableTime;(c||u)&&q()}p()}}n.parseDate=fme({config:n.config,l10n:n.l10n}),n._handlers=[],n.pluginElements=[],n.loadedPlugins=[],n._bind=d,n._setHoursFromDate=l,n._positionCalendar=R,n.changeMonth=A,n.changeYear=I,n.clear=function(e,t){void 0===e&&(e=!0);void 0===t&&(t=!0);n.input.value="",void 0!==n.altInput&&(n.altInput.value="");void 0!==n.mobileInput&&(n.mobileInput.value="");n.selectedDates=[],n.latestSelectedDateObj=void 0,!0===t&&(n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth());if(!0===n.config.enableTime){var i=yme(n.config);c(i.hours,i.minutes,i.seconds)}n.redraw(),e&&K("onChange")},n.close=function(){n.isOpen=!1,n.isMobile||(void 0!==n.calendarContainer&&n.calendarContainer.classList.remove("open"),void 0!==n._input&&n._input.classList.remove("active"));K("onClose")},n.onMouseOver=M,n._createElement=ime,n.createDay=g,n.destroy=function(){void 0!==n.config&&K("onDestroy");for(var e=n._handlers.length;e--;)n._handlers[e].remove();if(n._handlers=[],n.mobileInput)n.mobileInput.parentNode&&n.mobileInput.parentNode.removeChild(n.mobileInput),n.mobileInput=void 0;else if(n.calendarContainer&&n.calendarContainer.parentNode)if(n.config.static&&n.calendarContainer.parentNode){var t=n.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else n.calendarContainer.parentNode.removeChild(n.calendarContainer);n.altInput&&(n.input.type="text",n.altInput.parentNode&&n.altInput.parentNode.removeChild(n.altInput),delete n.altInput);n.input&&(n.input.type=n.input._type,n.input.classList.remove("flatpickr-input"),n.input.removeAttribute("readonly"));["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(e){try{delete n[e]}catch(e){}})},n.isEnabled=O,n.jumpToDate=h,n.updateValue=Z,n.open=function(e,t){void 0===t&&(t=n._positionElement);if(!0===n.isMobile){if(e){e.preventDefault();var i=sme(e);i&&i.blur()}return void 0!==n.mobileInput&&(n.mobileInput.focus(),n.mobileInput.click()),void K("onOpen")}if(n._input.disabled||n.config.inline)return;var r=n.isOpen;n.isOpen=!0,r||(n.calendarContainer.classList.add("open"),n._input.classList.add("active"),K("onOpen"),R(t));!0===n.config.enableTime&&!0===n.config.noCalendar&&(!1!==n.config.allowInput||void 0!==e&&n.timeContainer.contains(e.relatedTarget)||setTimeout(function(){return n.hourElement.select()},50))},n.redraw=V,n.set=function(e,t){if(null!==e&&"object"==typeof e)for(var i in Object.assign(n.config,e),e)void 0!==z[i]&&z[i].forEach(function(e){return e()});else n.config[e]=t,void 0!==z[e]?z[e].forEach(function(e){return e()}):Kfe.indexOf(e)>-1&&(n.config[e]=tme(t));n.redraw(),Z(!0)},n.setDate=function(e,t,i){void 0===t&&(t=!1);void 0===i&&(i=n.config.dateFormat);if(0!==e&&!e||e instanceof Array&&0===e.length)return n.clear(t);U(e,i),n.latestSelectedDateObj=n.selectedDates[n.selectedDates.length-1],n.redraw(),h(void 0,t),l(),0===n.selectedDates.length&&n.clear(!1);Z(t),t&&K("onChange")},n.toggle=function(e){if(!0===n.isOpen)return n.close();n.open(e)};var z={locale:[B,E],showMonths:[x,o,S],minDate:[h],maxDate:[h],positionElement:[G],clickOpens:[function(){!0===n.config.clickOpens?(d(n._input,"focus",n.open),d(n._input,"click",n.open)):(n._input.removeEventListener("focus",n.open),n._input.removeEventListener("click",n.open))}]};function U(e,t){var i=[];if(e instanceof Array)i=e.map(function(e){return n.parseDate(e,t)});else if(e instanceof Date||"number"==typeof e)i=[n.parseDate(e,t)];else if("string"==typeof e)switch(n.config.mode){case"single":case"time":i=[n.parseDate(e,t)];break;case"multiple":i=e.split(n.config.conjunction).map(function(e){return n.parseDate(e,t)});break;case"range":i=e.split(n.l10n.rangeSeparator).map(function(e){return n.parseDate(e,t)})}else n.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));n.selectedDates=n.config.allowInvalidPreload?i:i.filter(function(e){return e instanceof Date&&O(e,!1)}),"range"===n.config.mode&&n.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})}function W(e){return e.slice().map(function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?n.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:n.parseDate(e.from,void 0),to:n.parseDate(e.to,void 0)}:e}).filter(function(e){return e})}function G(){n._positionElement=n.config.positionElement||n._input}function K(e,t){if(void 0!==n.config){var i=n.config[e];if(void 0!==i&&i.length>0)for(var r=0;i[r]&&r<i.length;r++)i[r](n.selectedDates,n.input.value,n,t);"onChange"===e&&(n.input.dispatchEvent(Q("change")),n.input.dispatchEvent(Q("input")))}}function Q(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function Y(e){for(var t=0;t<n.selectedDates.length;t++){var i=n.selectedDates[t];if(i instanceof Date&&0===mme(i,e))return""+t}return!1}function J(){n.config.noCalendar||n.isMobile||!n.monthNav||(n.yearElements.forEach(function(e,t){var i=new Date(n.currentYear,n.currentMonth,1);i.setMonth(n.currentMonth+t),n.config.showMonths>1||"static"===n.config.monthSelectorType?n.monthElements[t].textContent=cme(i.getMonth(),n.config.shorthandCurrentMonth,n.l10n)+" ":n.monthsDropdownContainer.value=i.getMonth().toString(),e.value=i.getFullYear().toString()}),n._hidePrevMonthArrow=void 0!==n.config.minDate&&(n.currentYear===n.config.minDate.getFullYear()?n.currentMonth<=n.config.minDate.getMonth():n.currentYear<n.config.minDate.getFullYear()),n._hideNextMonthArrow=void 0!==n.config.maxDate&&(n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth+1>n.config.maxDate.getMonth():n.currentYear>n.config.maxDate.getFullYear()))}function X(e){var t=e||(n.config.altInput?n.config.altFormat:n.config.dateFormat);return n.selectedDates.map(function(e){return n.formatDate(e,t)}).filter(function(e,t,i){return"range"!==n.config.mode||n.config.enableTime||i.indexOf(e)===t}).join("range"!==n.config.mode?n.config.conjunction:n.l10n.rangeSeparator)}function Z(e){void 0===e&&(e=!0),void 0!==n.mobileInput&&n.mobileFormatStr&&(n.mobileInput.value=void 0!==n.latestSelectedDateObj?n.formatDate(n.latestSelectedDateObj,n.mobileFormatStr):""),n.input.value=X(n.config.dateFormat),void 0!==n.altInput&&(n.altInput.value=X(n.config.altFormat)),!1!==e&&K("onValueUpdate")}function ee(e){var t=sme(e),i=n.prevMonthNav.contains(t),r=n.nextMonthNav.contains(t);i||r?A(i?-1:1):n.yearElements.indexOf(t)>=0?t.select():t.classList.contains("arrowUp")?n.changeYear(n.currentYear+1):t.classList.contains("arrowDown")&&n.changeYear(n.currentYear-1)}return function(){n.element=n.input=e,n.isOpen=!1,function(){var i=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],o=bme(bme({},JSON.parse(JSON.stringify(e.dataset||{}))),t),a={};n.config.parseDate=o.parseDate,n.config.formatDate=o.formatDate,Object.defineProperty(n.config,"enable",{get:function(){return n.config._enable},set:function(e){n.config._enable=W(e)}}),Object.defineProperty(n.config,"disable",{get:function(){return n.config._disable},set:function(e){n.config._disable=W(e)}});var s="time"===o.mode;if(!o.dateFormat&&(o.enableTime||s)){var l=Cme.defaultConfig.dateFormat||Qfe.dateFormat;a.dateFormat=o.noCalendar||s?"H:i"+(o.enableSeconds?":S":""):l+" H:i"+(o.enableSeconds?":S":"")}if(o.altInput&&(o.enableTime||s)&&!o.altFormat){var c=Cme.defaultConfig.altFormat||Qfe.altFormat;a.altFormat=o.noCalendar||s?"h:i"+(o.enableSeconds?":S K":" K"):c+" h:i"+(o.enableSeconds?":S":"")+" K"}Object.defineProperty(n.config,"minDate",{get:function(){return n.config._minDate},set:N("min")}),Object.defineProperty(n.config,"maxDate",{get:function(){return n.config._maxDate},set:N("max")});var u=function(e){return function(t){n.config["min"===e?"_minTime":"_maxTime"]=n.parseDate(t,"H:i:S")}};Object.defineProperty(n.config,"minTime",{get:function(){return n.config._minTime},set:u("min")}),Object.defineProperty(n.config,"maxTime",{get:function(){return n.config._maxTime},set:u("max")}),"time"===o.mode&&(n.config.noCalendar=!0,n.config.enableTime=!0);Object.assign(n.config,a,o);for(var d=0;d<i.length;d++)n.config[i[d]]=!0===n.config[i[d]]||"true"===n.config[i[d]];Kfe.filter(function(e){return void 0!==n.config[e]}).forEach(function(e){n.config[e]=tme(n.config[e]||[]).map(r)}),n.isMobile=!n.config.disableMobile&&!n.config.inline&&"single"===n.config.mode&&!n.config.disable.length&&!n.config.enable&&!n.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(d=0;d<n.config.plugins.length;d++){var p=n.config.plugins[d](n)||{};for(var h in p)Kfe.indexOf(h)>-1?n.config[h]=tme(p[h]).map(r).concat(n.config[h]):void 0===o[h]&&(n.config[h]=p[h])}o.altInputClass||(n.config.altInputClass=j().className+" "+n.config.altInputClass);K("onParseConfig")}(),B(),function(){if(n.input=j(),!n.input)return void n.config.errorHandler(new Error("Invalid input element specified"));n.input._type=n.input.type,n.input.type="text",n.input.classList.add("flatpickr-input"),n._input=n.input,n.config.altInput&&(n.altInput=ime(n.input.nodeName,n.config.altInputClass),n._input=n.altInput,n.altInput.placeholder=n.input.placeholder,n.altInput.disabled=n.input.disabled,n.altInput.required=n.input.required,n.altInput.tabIndex=n.input.tabIndex,n.altInput.type="text",n.input.setAttribute("type","hidden"),!n.config.static&&n.input.parentNode&&n.input.parentNode.insertBefore(n.altInput,n.input.nextSibling));n.config.allowInput||n._input.setAttribute("readonly","readonly");G()}(),function(){n.selectedDates=[],n.now=n.parseDate(n.config.now)||new Date;var e=n.config.defaultDate||("INPUT"!==n.input.nodeName&&"TEXTAREA"!==n.input.nodeName||!n.input.placeholder||n.input.value!==n.input.placeholder?n.input.value:null);e&&U(e,n.config.dateFormat);n._initialDate=n.selectedDates.length>0?n.selectedDates[0]:n.config.minDate&&n.config.minDate.getTime()>n.now.getTime()?n.config.minDate:n.config.maxDate&&n.config.maxDate.getTime()<n.now.getTime()?n.config.maxDate:n.now,n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth(),n.selectedDates.length>0&&(n.latestSelectedDateObj=n.selectedDates[0]);void 0!==n.config.minTime&&(n.config.minTime=n.parseDate(n.config.minTime,"H:i"));void 0!==n.config.maxTime&&(n.config.maxTime=n.parseDate(n.config.maxTime,"H:i"));n.minDateHasTime=!!n.config.minDate&&(n.config.minDate.getHours()>0||n.config.minDate.getMinutes()>0||n.config.minDate.getSeconds()>0),n.maxDateHasTime=!!n.config.maxDate&&(n.config.maxDate.getHours()>0||n.config.maxDate.getMinutes()>0||n.config.maxDate.getSeconds()>0)}(),n.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=n.currentMonth),void 0===t&&(t=n.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:n.l10n.daysInMonth[e]}},n.isMobile||function(){var e=window.document.createDocumentFragment();if(n.calendarContainer=ime("div","flatpickr-calendar"),n.calendarContainer.tabIndex=-1,!n.config.noCalendar){if(e.appendChild((n.monthNav=ime("div","flatpickr-months"),n.yearElements=[],n.monthElements=[],n.prevMonthNav=ime("span","flatpickr-prev-month"),n.prevMonthNav.innerHTML=n.config.prevArrow,n.nextMonthNav=ime("span","flatpickr-next-month"),n.nextMonthNav.innerHTML=n.config.nextArrow,x(),Object.defineProperty(n,"_hidePrevMonthArrow",{get:function(){return n.__hidePrevMonthArrow},set:function(e){n.__hidePrevMonthArrow!==e&&(nme(n.prevMonthNav,"flatpickr-disabled",e),n.__hidePrevMonthArrow=e)}}),Object.defineProperty(n,"_hideNextMonthArrow",{get:function(){return n.__hideNextMonthArrow},set:function(e){n.__hideNextMonthArrow!==e&&(nme(n.nextMonthNav,"flatpickr-disabled",e),n.__hideNextMonthArrow=e)}}),n.currentYearElement=n.yearElements[0],J(),n.monthNav)),n.innerContainer=ime("div","flatpickr-innerContainer"),n.config.weekNumbers){var t=function(){n.calendarContainer.classList.add("hasWeeks");var e=ime("div","flatpickr-weekwrapper");e.appendChild(ime("span","flatpickr-weekday",n.l10n.weekAbbreviation));var t=ime("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),i=t.weekWrapper,r=t.weekNumbers;n.innerContainer.appendChild(i),n.weekNumbers=r,n.weekWrapper=i}n.rContainer=ime("div","flatpickr-rContainer"),n.rContainer.appendChild(S()),n.daysContainer||(n.daysContainer=ime("div","flatpickr-days"),n.daysContainer.tabIndex=-1),w(),n.rContainer.appendChild(n.daysContainer),n.innerContainer.appendChild(n.rContainer),e.appendChild(n.innerContainer)}n.config.enableTime&&e.appendChild(function(){n.calendarContainer.classList.add("hasTime"),n.config.noCalendar&&n.calendarContainer.classList.add("noCalendar");var e=yme(n.config);n.timeContainer=ime("div","flatpickr-time"),n.timeContainer.tabIndex=-1;var t=ime("span","flatpickr-time-separator",":"),i=ame("flatpickr-hour",{"aria-label":n.l10n.hourAriaLabel});n.hourElement=i.getElementsByTagName("input")[0];var r=ame("flatpickr-minute",{"aria-label":n.l10n.minuteAriaLabel});n.minuteElement=r.getElementsByTagName("input")[0],n.hourElement.tabIndex=n.minuteElement.tabIndex=-1,n.hourElement.value=Xfe(n.latestSelectedDateObj?n.latestSelectedDateObj.getHours():n.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),n.minuteElement.value=Xfe(n.latestSelectedDateObj?n.latestSelectedDateObj.getMinutes():e.minutes),n.hourElement.setAttribute("step",n.config.hourIncrement.toString()),n.minuteElement.setAttribute("step",n.config.minuteIncrement.toString()),n.hourElement.setAttribute("min",n.config.time_24hr?"0":"1"),n.hourElement.setAttribute("max",n.config.time_24hr?"23":"12"),n.hourElement.setAttribute("maxlength","2"),n.minuteElement.setAttribute("min","0"),n.minuteElement.setAttribute("max","59"),n.minuteElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(i),n.timeContainer.appendChild(t),n.timeContainer.appendChild(r),n.config.time_24hr&&n.timeContainer.classList.add("time24hr");if(n.config.enableSeconds){n.timeContainer.classList.add("hasSeconds");var o=ame("flatpickr-second");n.secondElement=o.getElementsByTagName("input")[0],n.secondElement.value=Xfe(n.latestSelectedDateObj?n.latestSelectedDateObj.getSeconds():e.seconds),n.secondElement.setAttribute("step",n.minuteElement.getAttribute("step")),n.secondElement.setAttribute("min","0"),n.secondElement.setAttribute("max","59"),n.secondElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(ime("span","flatpickr-time-separator",":")),n.timeContainer.appendChild(o)}n.config.time_24hr||(n.amPM=ime("span","flatpickr-am-pm",n.l10n.amPM[Zfe((n.latestSelectedDateObj?n.hourElement.value:n.config.defaultHour)>11)]),n.amPM.title=n.l10n.toggleTitle,n.amPM.tabIndex=-1,n.timeContainer.appendChild(n.amPM));return n.timeContainer}());nme(n.calendarContainer,"rangeMode","range"===n.config.mode),nme(n.calendarContainer,"animate",!0===n.config.animate),nme(n.calendarContainer,"multiMonth",n.config.showMonths>1),n.calendarContainer.appendChild(e);var o=void 0!==n.config.appendTo&&void 0!==n.config.appendTo.nodeType;if((n.config.inline||n.config.static)&&(n.calendarContainer.classList.add(n.config.inline?"inline":"static"),n.config.inline&&(!o&&n.element.parentNode?n.element.parentNode.insertBefore(n.calendarContainer,n._input.nextSibling):void 0!==n.config.appendTo&&n.config.appendTo.appendChild(n.calendarContainer)),n.config.static)){var a=ime("div","flatpickr-wrapper");n.element.parentNode&&n.element.parentNode.insertBefore(a,n.element),a.appendChild(n.element),n.altInput&&a.appendChild(n.altInput),a.appendChild(n.calendarContainer)}n.config.static||n.config.inline||(void 0!==n.config.appendTo?n.config.appendTo:window.document.body).appendChild(n.calendarContainer)}(),function(){n.config.wrap&&["open","close","toggle","clear"].forEach(function(e){Array.prototype.forEach.call(n.element.querySelectorAll("[data-"+e+"]"),function(t){return d(t,"click",n[e])})});if(n.isMobile)return void function(){var e=n.config.enableTime?n.config.noCalendar?"time":"datetime-local":"date";n.mobileInput=ime("input",n.input.className+" flatpickr-mobile"),n.mobileInput.tabIndex=1,n.mobileInput.type=e,n.mobileInput.disabled=n.input.disabled,n.mobileInput.required=n.input.required,n.mobileInput.placeholder=n.input.placeholder,n.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",n.selectedDates.length>0&&(n.mobileInput.defaultValue=n.mobileInput.value=n.formatDate(n.selectedDates[0],n.mobileFormatStr));n.config.minDate&&(n.mobileInput.min=n.formatDate(n.config.minDate,"Y-m-d"));n.config.maxDate&&(n.mobileInput.max=n.formatDate(n.config.maxDate,"Y-m-d"));n.input.getAttribute("step")&&(n.mobileInput.step=String(n.input.getAttribute("step")));n.input.type="hidden",void 0!==n.altInput&&(n.altInput.type="hidden");try{n.input.parentNode&&n.input.parentNode.insertBefore(n.mobileInput,n.input.nextSibling)}catch(e){}d(n.mobileInput,"change",function(e){n.setDate(sme(e).value,!1,n.mobileFormatStr),K("onChange"),K("onClose")})}();var e=eme(L,50);n._debouncedChange=eme(p,300),n.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&d(n.daysContainer,"mouseover",function(e){"range"===n.config.mode&&M(sme(e))});d(n._input,"keydown",$),void 0!==n.calendarContainer&&d(n.calendarContainer,"keydown",$);n.config.inline||n.config.static||d(window,"resize",e);void 0!==window.ontouchstart?d(window.document,"touchstart",T):d(window.document,"mousedown",T);d(window.document,"focus",T,{capture:!0}),!0===n.config.clickOpens&&(d(n._input,"focus",n.open),d(n._input,"click",n.open));void 0!==n.daysContainer&&(d(n.monthNav,"click",ee),d(n.monthNav,["keyup","increment"],u),d(n.daysContainer,"click",H));if(void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement){var t=function(e){return sme(e).select()};d(n.timeContainer,["increment"],a),d(n.timeContainer,"blur",a,{capture:!0}),d(n.timeContainer,"click",f),d([n.hourElement,n.minuteElement],["focus","click"],t),void 0!==n.secondElement&&d(n.secondElement,"focus",function(){return n.secondElement&&n.secondElement.select()}),void 0!==n.amPM&&d(n.amPM,"click",function(e){a(e)})}n.config.allowInput&&d(n._input,"blur",F)}(),(n.selectedDates.length||n.config.noCalendar)&&(n.config.enableTime&&l(n.config.noCalendar?n.latestSelectedDateObj:void 0),Z(!1)),o();var i=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!n.isMobile&&i&&R(),K("onReady")}(),n}function _me(e,t){for(var n=Array.prototype.slice.call(e).filter(function(e){return e instanceof HTMLElement}),i=[],r=0;r<n.length;r++){var o=n[r];try{if(null!==o.getAttribute("data-fp-omit"))continue;void 0!==o._flatpickr&&(o._flatpickr.destroy(),o._flatpickr=void 0),o._flatpickr=wme(o,t||{}),i.push(o._flatpickr)}catch(e){console.error(e)}}return 1===i.length?i[0]:i}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return _me(this,e)},HTMLElement.prototype.flatpickr=function(e){return _me([this],e)});var Cme=function(e,t){return"string"==typeof e?_me(window.document.querySelectorAll(e),t):e instanceof Node?_me([e],t):_me(e,t)};Cme.defaultConfig={},Cme.l10ns={en:bme({},Jfe),default:bme({},Jfe)},Cme.localize=function(e){Cme.l10ns.default=bme(bme({},Cme.l10ns.default),e)},Cme.setDefaults=function(e){Cme.defaultConfig=bme(bme({},Cme.defaultConfig),e)},Cme.parseDate=fme({}),Cme.formatDate=hme({}),Cme.compareDates=mme,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return _me(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=Cme);var xme=Cme,Sme=n(66208),Eme=n.n(Sme);function Ame(e){return Ame="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ame(e)}function Dme(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Tme(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dme(Object(n),!0).forEach(function(t){Ime(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dme(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ime(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Ame(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Ame(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ame(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ome={emits:["input"],props:["value","control"],data:function(){return{flatpickrInstance:null,showDynamicPicker:!1}},computed:{flatpickrValue:function(){return this.value},flatpickrPlaceholder:function(){var e,t=(null===(e=this.control)||void 0===e?void 0:e.placeholder)||"";return this.flatpickrValue?"":t}},methods:{initFlatpickr:function(){var e={enableTime:!this.control.hasOwnProperty("enableTime")||this.control.enableTime,altInput:!this.control.hasOwnProperty("altInput")||this.control.altInput},t=this.bricks.locale.split("_")[0];null!==Eme()&&void 0!==Eme()&&Eme()[t]&&(e.locale=t);var n=this.control.options||{},i=Tme(Tme({},e),n);this.flatpickrInstance=new xme(this.$refs.flatpickr,i)},addDynamicTag:function(e){}},mounted:function(){this.initFlatpickr()},beforeUnmount:function(){this.flatpickrInstance.destroy()},watch:{flatpickrValue:function(){this.flatpickrValue||this.flatpickrInstance.destroy()}}};var Pme=(0,xx.A)(Ome,[["render",function(e,t,n,i,r,o){var a,s,l=$r("control-dynamic-tag-picker");return Ta(),Ma("div",Wfe,[qa("input",{ref:"flatpickr",value:o.flatpickrValue,onInput:t[0]||(t[0]=function(t){return e.$emit("input",t.target.value)}),placeholder:o.flatpickrPlaceholder},null,40,Gfe),null!==(a=n.control)&&void 0!==a&&a.hasDynamicData?(Ta(),La(l,{key:0,control:{context:"text",inline:null===(s=n.control)||void 0===s?void 0:s.inline},controlKey:"date",isOpen:r.showDynamicPicker,onCloseMe:t[1]||(t[1]=function(e){return r.showDynamicPicker=!1}),onInput:o.addDynamicTag,onToggle:t[2]||(t[2]=function(e){return r.showDynamicPicker=!r.showDynamicPicker})},null,8,["control","isOpen","onInput"])):Qa("",!0)])}]]),Fme={"data-control":"editor"},$me={class:"bricks-wp-editor-wrapper",ref:"editor"};var Mme={emits:["input"],props:["value","control","controlKey"],data:function(){return{editorId:"brickswpeditor-".concat(this.$_generateId()),textarea:!1,editorQuicktags:{}}},methods:{initTinyMCE:function(){var e=this;this.$refs.editor.innerHTML=this.bricks.wpEditor.replace(/brickswpeditor/g,this.editorId).replace("%%BRICKS_EDITOR_CONTENT_PLACEHOLDER%%",this.value?this.value:"");var t=jQuery.extend(!0,{},tinyMCEPreInit.mceInit.brickswpeditor);t.selector="#".concat(this.editorId);var n=this.bricks.dynamicTags,i={};n.forEach(function(t){var n=t.hasOwnProperty("group")?t.group:"other";i.hasOwnProperty(n)||(i[n]={text:e.i18n.hasOwnProperty(n)?e.i18n[n]:n,menu:[]}),i[n].menu.push({text:t.label,value:t.name})});var r=[];Object.keys(i).forEach(function(e){r.push(i[e])}),t.setup=function(t){t.addButton("tagPickerButton",{text:" ",type:"listbox",icon:"icon ion-ios-flash",tooltip:e.i18n.dynamicData,onselect:function(e){t.insertContent(this.value())},values:r,onPostRender:function(){this.value("")}}),e.textarea=document.getElementById(e.editorId),e.textarea&&(e.textarea.addEventListener("focus",e.listenToTextareaInput),e.textarea.addEventListener("input",e.listenToTextareaInput)),t.on("focus",function(){e.$_state.messageOrigin="main",e.bricks.disablePanelAutoExpand||(e.$_state.isPanelExpanded=!0),e.$_state.isInlineEditing=!1}),t.on("change keyup undo redo blur",function(n){if("main"===e.$_state.messageOrigin){var i=t.getContent();(i||e.value)&&i!==e.value&&e.$emit("input",i)}}),t.on("paste",function(t){var n=(t.clipboardData||window.clipboardData).getData("Text");n&&n.includes("bricksCopiedElements")&&(t.preventDefault(),e.$_pasteElements())}),t.on("keydown",function(t){var n=t.key?t.key.toLowerCase():"",i=e.$_state.isMac?"metaKey":"ctrlKey";t[i]&&"s"===n?(t.preventDefault(),e.$_savePost({force:null==t?void 0:t.shiftKey})):t[i]&&"p"===n&&(t.preventDefault(),e.$_state.isPreviewing=!e.$_state.isPreviewing)})},tinyMCEPreInit.mceInit[this.editorId]=jQuery.extend(!0,{},t),this.editorQuicktags=jQuery.extend(!0,{},tinyMCEPreInit.qtInit.brickswpeditor),this.editorQuicktags.id=this.editorId,tinyMCEPreInit.qtInit[this.editorId]=this.editorQuicktags,this.editorQuicktags=quicktags(tinyMCEPreInit.qtInit[this.editorId]),this.editorQuicktags.canvas.addEventListener("input",this.listenToQuickTags),this.editorQuicktags.toolbar.addEventListener("click",this.listenToQuickTags),this.$nextTick(function(){switchEditors.go(e.editorId,"tmce")})},listenToTextareaInput:function(e){"element"===this.$_state.activePanel&&(this.bricks.disablePanelAutoExpand||(this.$_state.isPanelExpanded=!0)),"main"===this.$_state.messageOrigin&&this.$emit("input",e.target.value)},listenToQuickTags:function(){"main"===this.$_state.messageOrigin&&this.$emit("input",this.editorQuicktags.canvas.value)}},mounted:function(){this.initTinyMCE()},beforeUnmount:function(){var e,t;this.textarea&&(this.textarea.removeEventListener("input",this.listenToTextareaInput),this.textarea=!1),null!==(e=this.editorQuicktags)&&void 0!==e&&e.canvas&&this.editorQuicktags.canvas.removeEventListener("input",this.listenToQuickTags),null!==(t=this.editorQuicktags)&&void 0!==t&&t.toolbar&&this.editorQuicktags.toolbar.removeEventListener("click",this.listenToQuickTags),tinymce.EditorManager.execCommand("mceRemoveEditor",!0,this.editorId),delete tinyMCEPreInit.mceInit[this.editorId],delete tinyMCEPreInit.qtInit[this.editorId],delete QTags.instances[this.editorId]},watch:{value:{handler:function(e){e&&void 0!==e||(e="","main"===this.$_state.messageOrigin&&this.$emit("input","")),tinymce.activeEditor&&("iframe"===this.$_state.messageOrigin||this.$_state.isInlineEditing)&&tinymce.activeEditor.setContent(e)},deep:!0,immediate:!1}}};var Lme=(0,xx.A)(Mme,[["render",function(e,t,n,i,r,o){return Ta(),Ma("div",Fme,[qa("div",$me,null,512)])}]]),Nme={"data-control":"file"},jme=["textContent"],Bme=["textContent"],Rme=["textContent"];var Vme={emits:["input"],props:{value:{required:!1},control:{type:Object,required:!0}},computed:{id:function(){return!!this.value&&this.value.id},filename:function(){return!!this.value&&this.value.filename}}};var qme=(0,xx.A)(Vme,[["render",function(e,t,n,i,r,o){return Ta(),Ma("div",Nme,[qa("label",{textContent:he(o.filename?o.filename:e.i18n.noFileSelected)},null,8,jme),o.id?(Ta(),Ma("button",{key:0,onClick:t[0]||(t[0]=function(t){return e.$emit("input","")}),textContent:he(e.i18n.removeFile)},null,8,Bme)):(Ta(),Ma("button",{key:1,onClick:t[1]||(t[1]=function(t){return e.$_openMediaLibrary("any")}),textContent:he(e.i18n.selectFile)},null,8,Rme))])}]]),Hme={"data-control":"filters"},zme={class:"sliders"},Ume={class:"label-actions"},Wme=["textContent"],Gme=["textContent"],Kme={class:"filter"},Qme=["value"],Yme=["textContent"],Jme={class:"filter"},Xme=["value"],Zme=["textContent"],ege={class:"filter"},tge=["value"],nge=["textContent"],ige={class:"filter"},rge=["value"],oge=["textContent"],age={class:"filter"},sge=["value"],lge=["textContent"],cge={class:"filter"},uge=["value"],dge=["textContent"],pge={class:"filter"},hge=["value"],fge=["textContent"],mge={class:"filter"},gge=["value"];var vge={emits:["input"],props:{value:{type:Object,required:!1,default:function(){return{}}},control:{type:Object,required:!0}},data:function(){return{showPopup:!1,filter:this.value?this.value:{}}},methods:{updateFilter:function(e,t){t.length?this.filter[e]=t:delete this.filter[e]}},watch:{filter:{handler:function(e){Object.keys(e).length||(e=!1),this.$emit("input",e)},deep:!0}}};var yge=(0,xx.A)(vge,[["render",function(e,t,n,i,r,o){var a=$r("icon"),s=$r("control-number"),l=$r("panel-control-popup");return Ta(),Ma("div",Hme,[qa("div",{class:te(["bricks-control-preview",{empty:!n.value}]),onClick:t[0]||(t[0]=function(t){return e.$_controlPopupToggle()})},[Ha(a,{name:"filter"})],2),r.showPopup&&!e.$_isLocked()?(Ta(),La(l,{key:0,show:r.showPopup,onClosePopup:t[18]||(t[18]=function(e){return r.showPopup=!1})},{default:Jn(function(){return[qa("div",zme,[qa("div",Ume,[qa("label",{textContent:he(e.i18n.clear),class:"label-action",onClick:t[1]||(t[1]=function(e){return r.filter={}})},null,8,Wme)]),qa("label",{textContent:he(e.i18n.blur),class:"title"},null,8,Gme),qa("div",Kme,[qa("input",{type:"range",min:"0",max:"10",step:"0.1",value:r.filter.blur,onInput:t[2]||(t[2]=function(e){return o.updateFilter("blur",e.target.value)}),class:"range-blur"},null,40,Qme),Ha(s,{control:{min:0,max:10,step:.1,hasVariables:!1},value:r.filter.blur,onInput:t[3]||(t[3]=function(e){return o.updateFilter("blur",e)})},null,8,["value"])]),qa("label",{textContent:he(e.i18n.brightness),class:"title"},null,8,Yme),qa("div",Jme,[qa("input",{type:"range",min:"0",max:"200",step:"1",value:r.filter.brightness,onInput:t[4]||(t[4]=function(e){return o.updateFilter("brightness",e.target.value)}),class:"range-brightness"},null,40,Xme),Ha(s,{control:{min:0,max:200,step:1,hasVariables:!1},value:r.filter.brightness,onInput:t[5]||(t[5]=function(e){return o.updateFilter("brightness",e)})},null,8,["value"])]),qa("label",{textContent:he(e.i18n.contrast),class:"title"},null,8,Zme),qa("div",ege,[qa("input",{type:"range",min:"0",max:"200",step:"1",value:r.filter.contrast,onInput:t[6]||(t[6]=function(e){return o.updateFilter("contrast",e.target.value)}),class:"range-contrast"},null,40,tge),Ha(s,{control:{min:0,max:200,step:1,hasVariables:!1},value:r.filter.contrast,onInput:t[7]||(t[7]=function(e){return o.updateFilter("contrast",e)})},null,8,["value"])]),qa("label",{textContent:he(e.i18n.hue),class:"title"},null,8,nge),qa("div",ige,[qa("input",{type:"range",min:"0",max:"360",step:"1",value:r.filter["hue-rotate"],onInput:t[8]||(t[8]=function(e){return o.updateFilter("hue-rotate",e.target.value)}),class:"range-hue-rotate"},null,40,rge),Ha(s,{control:{min:0,max:360,step:1,hasVariables:!1},value:r.filter["hue-rotate"],onInput:t[9]||(t[9]=function(e){return o.updateFilter("hue-rotate",e)})},null,8,["value"])]),qa("label",{textContent:he(e.i18n.invert),class:"title"},null,8,oge),qa("div",age,[qa("input",{type:"range",min:"0",max:"100",step:"1",value:r.filter.invert,onInput:t[10]||(t[10]=function(e){return o.updateFilter("invert",e.target.value)}),class:"range-invert"},null,40,sge),Ha(s,{control:{min:0,max:100,step:1,hasVariables:!1},value:r.filter.invert,onInput:t[11]||(t[11]=function(e){return o.updateFilter("invert",e)})},null,8,["value"])]),qa("label",{textContent:he(e.i18n.opacity),class:"title"},null,8,lge),qa("div",cge,[qa("input",{type:"range",min:"0",max:"100",step:"1",value:r.filter.opacity,onInput:t[12]||(t[12]=function(e){return o.updateFilter("opacity",e.target.value)}),class:"range-opacity"},null,40,uge),Ha(s,{control:{min:0,max:100,step:1,hasVariables:!1},value:r.filter.opacity,onInput:t[13]||(t[13]=function(e){return o.updateFilter("opacity",e)})},null,8,["value"])]),qa("label",{textContent:he(e.i18n.saturation),class:"title"},null,8,dge),qa("div",pge,[qa("input",{type:"range",min:"0",max:"200",step:"1",value:r.filter.saturate,onInput:t[14]||(t[14]=function(e){return o.updateFilter("saturate",e.target.value)}),class:"range-saturate"},null,40,hge),Ha(s,{control:{min:0,max:200,step:1,hasVariables:!1},value:r.filter.saturate,onInput:t[15]||(t[15]=function(e){return o.updateFilter("saturate",e)})},null,8,["value"])]),qa("label",{textContent:he(e.i18n.sepia),class:"title"},null,8,fge),qa("div",mge,[qa("input",{type:"range",min:"0",max:"100",step:"1",value:r.filter.sepia,onInput:t[16]||(t[16]=function(e){return o.updateFilter("sepia",e.target.value)}),class:"range-sepia"},null,40,gge),Ha(s,{control:{min:0,max:100,step:1,hasVariables:!1},value:r.filter.sepia,onInput:t[17]||(t[17]=function(e){return o.updateFilter("sepia",e)})},null,8,["value"])])])]}),_:1},8,["show"])):Qa("",!0)])}]]);function bge(e){return bge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bge(e)}function kge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function wge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kge(Object(n),!0).forEach(function(t){_ge(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kge(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _ge(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=bge(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=bge(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==bge(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Cge={"data-control":"gradient"};var xge={emits:["input"],props:{value:{type:Object,required:!1,default:function(){return{}}},control:{type:Object,required:!0},controlKey:{type:String,required:!0},repeaterId:{type:String,required:!1},repeaterIndex:{type:Number,required:!1},repeaterKey:{type:String,required:!1}},data:function(){return{gradient:this.value?this.value:{},controls:{applyTo:{type:"select",options:{background:this.i18n.background,overlay:this.i18n.overlay,text:this.i18n.text},placeholder:this.i18n.background,label:this.i18n.applyTo,inline:!0},cssSelector:{type:"text",placeholder:".bricks-button",label:this.i18n.cssSelector,hasDynamicData:!1,inline:!0},gradientType:{type:"select",inline:!0,options:{linear:this.i18n.linear,radial:this.i18n.radial,conic:this.i18n.conic},placeholder:this.i18n.linear,label:this.i18n.type},radialShape:{type:"select",inline:!0,options:{ellipse:this.i18n.ellipse,circle:this.i18n.circle},placeholder:this.i18n.ellipse,label:this.i18n.shape,required:["gradientType","=","radial"]},radialSize:{type:"select",inline:!0,options:{"closest-side":this.i18n.closestSide,"farthest-side":this.i18n.farthestSide,"closest-corner":this.i18n.closestCorner,"farthest-corner":this.i18n.farthestCorner},placeholder:this.i18n.farthestCorner,label:this.i18n.size,required:["gradientType","=","radial"]},radialPosition:{type:"select",inline:!0,options:this.bricks.controlOptions.backgroundPosition,placeholder:this.i18n.center,label:this.i18n.position,required:["gradientType","=","radial"]},radialCustomPosition:{type:"text",inline:!0,label:"".concat(this.i18n.position," (").concat(this.i18n.custom,")"),placeholder:"center",required:[["gradientType","=","radial"],["radialPosition","=","custom"]]},conicAngle:{type:"number",hasVariables:!0,inline:!0,large:!0,min:0,max:360,label:this.i18n.startingAngle,required:["gradientType","=","conic"]},conicPosition:{type:"select",inline:!0,options:this.bricks.controlOptions.backgroundPosition,label:this.i18n.position,required:[["gradientType","=","conic"]]},conicCustomPosition:{type:"text",inline:!0,label:"".concat(this.i18n.position," (").concat(this.i18n.custom,")"),placeholder:"center",required:[["gradientType","=","conic"],["conicPosition","=","custom"]]},angle:{type:"number",min:0,max:360,large:!0,label:this.i18n.angle,required:["gradientType","=",["","linear"]]},repeat:{type:"checkbox",label:this.i18n.repeat},repeatInfo:{type:"info",content:this.i18n.gradientRepeatInfo,required:["repeat","!=",""]},colors:{type:"repeater",label:this.i18n.colors,placeholder:this.i18n.color,fields:{color:{type:"color",label:this.i18n.color,inline:!0},stop:{type:"number",min:0,max:100,hasVariables:!0,label:this.i18n.colorStop,info:"".concat(this.i18n.default,": %")}},description:this.i18n.gardientColorsDescription}}}},watch:{gradient:{handler:function(){this.$emit("input",this.gradient)},deep:!0}}};var Sge=(0,xx.A)(xge,[["render",function(e,t,n,i,r,o){var a=$r("panel-control");return Ta(),Ma("div",Cge,[(Ta(!0),Ma(Ca,null,Rr(r.controls,function(e,t){return Ta(),La(a,{key:t,control:wge(wge({},e),{},{parentHasCss:!0}),controlKey:t,parentKey:"colors"===t?n.controlKey:void 0,repeaterId:n.repeaterId,repeaterIndex:n.repeaterIndex,repeaterKey:n.repeaterKey,settings:r.gradient},null,8,["control","controlKey","parentKey","repeaterId","repeaterIndex","repeaterKey","settings"])}),128))])}]]),Ege=["data-inherited-from"],Age=["textContent"],Dge={class:"content"},Tge=["data-balloon"],Ige=["textContent"];var Oge={props:{inheritedFrom:{type:Object,default:function(){return{}}},labelHeight:{type:String,default:"20px"}},data:function(){return{inheritedFromPopup:!1}},methods:{inheritedFromPopupClose:function(){this.inheritedFromPopup=!1},setBreakpoint:function(e){var t,n=this;this.$_state.breakpointActive=e.breakpoint.key,this.$_state.componentVariantActive&&(this.$_state.componentVariantActive=""),null!=e&&null!==(t=e.class)&&void 0!==t&&t.id?(this.$_state.skipNextActiveClassDirty=!0,setTimeout(function(){n.$_state.skipNextActiveClassDirty=!1},500),this.$_state.activeClass=this.$_clone(this.$_getGlobalClass(e.class.id,!0))):this.$_state.activeClass="",this.inheritedFromPopup=!1,this.$_rerenderControls()}},computed:{inheritedFromLabel:function(){var e,t=this.i18n.inheritedFrom;return"class"===(null===(e=this.inheritedFrom)||void 0===e?void 0:e.type)?t+=" (".concat(this.i18n.cssClass,")"):t+=" (".concat(this.i18n.elementId,")"),t}}};var Pge=(0,xx.A)(Oge,[["render",function(e,t,n,i,r,o){var a,s,l,c=$r("icon"),u=Nr("clickaway");return Object.keys(n.inheritedFrom).length?(Ta(),Ma("span",{key:0,class:te(["inherited-from",null===(a=n.inheritedFrom)||void 0===a?void 0:a.type]),style:Y({height:n.labelHeight}),onClick:t[1]||(t[1]=bc(function(e){return r.inheritedFromPopup=!r.inheritedFromPopup},["prevent","stop"]))},[qa("span",{class:"indicator","data-inherited-from":null===(s=n.inheritedFrom)||void 0===s||null===(s=s.breakpoint)||void 0===s?void 0:s.key},null,8,Ege),Object.keys(n.inheritedFrom).length?Xn((Ta(),Ma("span",{key:0,class:te(["inherited-popup",{show:r.inheritedFromPopup}])},[qa("div",{class:"label",textContent:he(o.inheritedFromLabel)},null,8,Age),qa("div",Dge,[qa("div",{class:te(["selector",null===(l=n.inheritedFrom)||void 0===l?void 0:l.type]),onClick:t[0]||(t[0]=bc(function(e){return o.setBreakpoint(n.inheritedFrom)},["prevent","stop"]))},[qa("div",{class:"icon","data-balloon":"".concat(e.i18n.breakpoint,": ").concat(n.inheritedFrom.breakpoint.label),"data-balloon-pos":"top-left"},[Ha(c,{name:n.inheritedFrom.breakpoint.icon},null,8,["name"])],8,Tge),qa("div",{class:"source",textContent:he(n.inheritedFrom.name)},null,8,Ige)],2)])],2)),[[u,o.inheritedFromPopupClose]]):Qa("",!0)],6)):Qa("",!0)}]]),Fge=["title"],$ge={key:0,class:"indicator"};var Mge={props:{clearable:{type:Boolean,default:!0},controlType:{type:String,default:"icon"},hasLabel:{type:Boolean,default:!1},labelHeight:{type:String,default:"20px"},source:{type:String,default:"id"}},data:function(){return{showClear:!1}},methods:{resetSettings:function(){this.$emit("reset-settings")}}};var Lge=(0,xx.A)(Mge,[["render",function(e,t,n,i,r,o){var a=$r("icon");return Ta(),Ma("span",{onMouseenter:t[1]||(t[1]=function(e){return n.clearable?r.showClear=!0:null}),onMouseleave:t[2]||(t[2]=function(e){return n.clearable?r.showClear=!1:null}),class:te(["has-setting",n.source,{disabled:!n.clearable},{"bricks-is-locked":e.$_isLocked()&&"icon"!==n.controlType}]),style:Y({height:n.labelHeight,top:n.hasLabel||"code"!==n.controlType?null:"24px"}),title:n.clearable?e.i18n.clear:null},[r.showClear?(Ta(),Ma("span",{key:1,class:"reset",onClick:t[0]||(t[0]=bc(function(e){return o.resetSettings()},["prevent","stop"]))},[Ha(a,{name:"close"})])):(Ta(),Ma("span",$ge))],46,Fge)}]]),Nge={class:"bricks-panel-controls"},jge={"data-control":"hide-element"},Bge={class:"title-wrapper"},Rge=["textContent"],Vge={class:"actions"},qge=["data-balloon"];var Hge={computed:{isBulkEditing:function(){return this.$_isBulkEditing()},element:function(){return this.$_getFinalElement()},elementSettings:function(){var e,t=(null===(e=this.element)||void 0===e?void 0:e.settings)||{};return this.isBulkEditing?this.$_state.selectedElementSettings:t}}};var zge=(0,xx.A)(Hge,[["render",function(e,t,n,i,r,o){var a=$r("icon"),s=$r("panel-control");return Ta(),Ma("div",Nge,[qa("div",jge,[qa("div",Bge,[qa("div",{class:"title",textContent:he(e.i18n.hideElement)},null,8,Rge),qa("div",Vge,[qa("button",{class:"close",onClick:t[0]||(t[0]=function(t){return e.$_state.showHideElement=!1}),"data-balloon":e.i18n.close,"data-balloon-pos":"bottom-right"},[Ha(a,{name:"close"})],8,qge)])]),Ha(s,{control:{type:"checkbox",label:"".concat(e.i18n.builder,": ").concat(e.i18n.hideElement),desc:e.i18n.hideElementBuilderDesc},controlKey:"_hideElementBuilder",settings:o.elementSettings},null,8,["control","settings"]),Ha(s,{control:{type:"checkbox",label:"".concat(e.i18n.frontend,": ").concat(e.i18n.hideElement),desc:e.i18n.hideElementFrontendDesc},controlKey:"_hideElementFrontend",settings:o.elementSettings},null,8,["control","settings"])])])}]]),Uge={"data-control":"icon"},Wge=["src"],Gge=["innerHTML"],Kge={class:"control-select-wrapper"},Qge=["data-balloon"],Yge={key:0,class:"icons-wrapper"},Jge=["placeholder"],Xge={key:0,ref:"icons"},Zge=["title","onClick"],eve=["innerHTML"],tve=["title"],nve={key:1,class:"dynamic-data"},ive={key:2,class:"svg-wrapper"};function rve(e){return rve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rve(e)}function ove(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function ave(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ove(Object(n),!0).forEach(function(t){sve(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ove(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sve(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=rve(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=rve(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==rve(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lve={emits:["input"],props:["value","control","controlKey","repeaterId","repeaterIndex","repeaterKey"],data:function(){return{showPopup:!1,searchFor:"",libraries:{placeholder:this.i18n.selectIconSet,options:{}},icons:{fontawesomeBrands:{},fontawesomeRegular:{},fontawesomeSolid:{},fontawesome:{},ionicons:{},themify:{}},dynamicDataPreview:null}},computed:{library:function(){var e;return null===(e=this.value)||void 0===e?void 0:e.library},options:function(){var e={};if(this.library)if(this.library.startsWith("custom_")){var t=this.library.replace("custom_","");this.$_state.customIcons.filter(function(e){return e.setId===t}).forEach(function(t){e[t.id]={html:'<img src="'.concat(t.url,'" title="').concat(t.name,'" />'),title:t.name}})}else e=this.$_clone(this.icons[this.library]);else e=this.$_clone(this.icons.ionicons);var n=this.searchFor?this.searchFor.toLowerCase():"";return n&&Object.keys(e).forEach(function(t){var i;((null===(i=e[t])||void 0===i?void 0:i.title)||t).toLowerCase().includes(n)||delete e[t]}),e},iconId:function(){var e;return(null===(e=this.value)||void 0===e||null===(e=e.svg)||void 0===e?void 0:e.icon_id)||void 0},icon:function(){var e;return(null===(e=this.value)||void 0===e?void 0:e.icon)||void 0},iconSetBackgroundColor:function(){var e=this;if(!this.library||!this.library.startsWith("custom_"))return"";var t=this.$_state.iconSets.find(function(t){return t.id===e.library.replace("custom_","")});return null!=t&&t.backgroundColor?"background-color: ".concat(t.backgroundColor):""},availableLibraries:function(){var e,t,n=this,i=this.$_state.disabledIconSets||[],r={};"custom"!==(null===(e=this.control)||void 0===e?void 0:e.libraries)&&(r={fontawesomeBrands:"Fontawesome - Brands",fontawesomeRegular:"Fontawesome - Regular",fontawesomeSolid:"Fontawesome - Solid",ionicons:"Ionicons",themify:"Themify"});var o=this.library;Object.keys(r).forEach(function(e){i.includes(e)&&e!==o&&delete r[e]}),Object.keys(r).length&&(r=ave({builtInGroupTitle:this.i18n.builtInIconSets},r));var a={customGroupTitle:this.i18n.customIconSets};return this.$_state.iconSets&&this.$_state.iconSets.forEach(function(e){var t="custom_".concat(e.id);i.includes(e.id)&&t!==o||((n.$_state.customIcons||[]).some(function(t){return t.setId===e.id})||t===o)&&(a[t]=e.name)}),Object.keys(a).length>1&&(r=ave(ave({},r),a)),"custom"!==(null===(t=this.control)||void 0===t?void 0:t.libraries)&&(r.iconSourceGroupTitle=this.i18n.iconSource,r.svg="SVG",r.dynamicData=window.bricksData.i18n.dynamicData),r},isCustomIcon:function(){var e,t,n,i;return(null===(e=this.value)||void 0===e?void 0:e.icon)&&(null===(t=this.value)||void 0===t?void 0:t.icon.startsWith("icon_"))&&(null===(n=this.value)||void 0===n?void 0:n.library)&&(null===(i=this.value)||void 0===i?void 0:i.library.startsWith("custom_"))},customIconUrl:function(){var e;if(!this.isCustomIcon)return"";var t=null===(e=this.value)||void 0===e?void 0:e.icon,n=(this.$_state.customIcons||[]).find(function(e){return e.id===t});return n?n.url:""},customIconName:function(){var e;if(!this.isCustomIcon)return"";var t=null===(e=this.value)||void 0===e?void 0:e.icon,n=(this.$_state.customIcons||[]).find(function(e){return e.id===t});return n?n.name:""},iconSrc:function(){var e,t;return null!==(e=this.value)&&void 0!==e&&e.svg?null===(t=this.value.svg)||void 0===t?void 0:t.url:this.isCustomIcon?this.customIconUrl:""},cssSettings:function(){if(this.$_state.activeClass){var e,t=null===(e=this.$_state.activeClass)||void 0===e?void 0:e.settings;return t||(t={}),t[this.controlKey]&&!Array.isArray(t[this.controlKey])||(t[this.controlKey]={}),t[this.controlKey]}return this.value}},methods:{setLibrary:function(e){var t=this.$_clone(this.value);e?t.library=e:delete t.library,this.$emit("input",t)},openIconManager:function(){this.$_state.iconManagerSource={control:this,value:this.$_clone(this.value)},this.$_state.popup="icons"},updateIcon:function(e){var t=this.$_clone(this.value);if(this.library.startsWith("custom_")){var n=(this.$_state.customIcons||[]).find(function(t){return t.id===e});n&&(t.svg={id:n.attachment_id,icon_id:n.id,url:n.url},delete t.icon)}else t.icon=e,delete t.svg;this.$emit("input",t)},handleSvgUpdate:function(e){var t=this.$_clone(this.value);e&&""!==e?t.svg=e:delete t.svg,this.$emit("input",t)},updateDynamicDataPreview:function(){var e,t,n=this,i=this.$_getDynamicDataTagValue(null===(e=this.value)||void 0===e?void 0:e.dynamicData);if(i&&i!=(null===(t=this.value)||void 0===t?void 0:t.dynamicData))this.dynamicDataPreview=i;else{this.$_debounce("controlIcon-getDynamicData",function(){var e;return n.$_getDynamicDataContent({content:null===(e=n.value)||void 0===e?void 0:e.dynamicData,checkState:!1,success:function(e){var t=e.data.content;/<[a-z][\s\S]*>/i.test(t)?n.dynamicDataPreview=t:n.dynamicDataPreview=null}})})}},initializeLibraries:function(){this.libraries.options=this.availableLibraries,this.library&&!this.libraries.options[this.library]&&(this.value.library=void 0)}},created:function(){var e=this;Vf.forEach(function(t){t="fab ".concat(t),e.icons.fontawesomeBrands[t]={html:'<i class="'.concat(t,'"></i>'),title:t}}),Rf.forEach(function(t){t="fa ".concat(t),e.icons.fontawesomeRegular[t]={html:'<i class="'.concat(t,'"></i>'),title:t}}),Bf.forEach(function(t){t="fas ".concat(t),e.icons.fontawesomeSolid[t]={html:'<i class="'.concat(t,'"></i>'),title:t}}),jf.forEach(function(t){e.icons.ionicons[t]={html:'<i class="'.concat(t,'"></i>'),title:t}}),Nf.forEach(function(t){e.icons.themify[t]={html:'<i class="'.concat(t,'"></i>'),title:t}}),this.initializeLibraries(),this.updateDynamicDataPreview(),this.value&&Array.isArray(this.value)&&this.$emit("input",{})},watch:{library:function(e){this.searchFor="",this.value&&("svg"===e?this.value.icon=void 0:"dynamicData"===e?(this.value.icon=void 0,this.value.svg=void 0):e&&!e.startsWith("custom_")&&(this.value.svg=void 0))},showPopup:function(e){var t=this;this.$nextTick(function(){if(e){var n=!!t.$refs.icons&&t.$refs.icons.querySelector(".active");n&&(t.$refs.icons.scrollTop=n.offsetTop)}})},value:{handler:function(){var e,t;"dynamicData"===(null===(e=this.value)||void 0===e?void 0:e.library)&&null!==(t=this.value)&&void 0!==t&&t.dynamicData?this.updateDynamicDataPreview():this.dynamicDataPreview=null},deep:!0},"$_state.disabledIconSets":{handler:function(){this.initializeLibraries()},deep:!0},"$_state.iconSets":{handler:function(){this.initializeLibraries()},deep:!0},"$_state.customIcons":{handler:function(){this.initializeLibraries()},deep:!0}}};const cve=(0,xx.A)(lve,[["render",function(e,t,n,i,r,o){var a,s,l=$r("control-select"),c=$r("icon"),u=$r("control-info"),d=$r("panel-control"),p=$r("panel-control-popup");return Ta(),Ma("div",Uge,[qa("div",{class:te(["bricks-control-preview",{empty:!n.value},{svg:null===(a=n.value)||void 0===a?void 0:a.svg}]),style:Y(o.iconSetBackgroundColor),onClick:t[0]||(t[0]=function(t){return e.$_controlPopupToggle()})},[null!==(s=n.value)&&void 0!==s&&s.svg||o.isCustomIcon?(Ta(),Ma("img",{key:0,src:o.iconSrc,alt:""},null,8,Wge)):"dynamicData"==o.library&&r.dynamicDataPreview?(Ta(),Ma("div",{key:1,class:"dynamic-data-preview",innerHTML:r.dynamicDataPreview},null,8,Gge)):(Ta(),Ma("i",{key:2,class:te(o.icon)},null,2))],6),r.showPopup?(Ta(),La(p,{key:0,show:r.showPopup,onClosePopup:t[4]||(t[4]=function(e){return r.showPopup=!1})},{default:Jn(function(){var i;return[qa("div",Kge,[Ha(l,{"data-balloon":e.i18n.source,"data-balloon-pos":"top-right",value:o.library,onInput:t[1]||(t[1]=function(e){return o.setLibrary(e)}),control:r.libraries},null,8,["data-balloon","value","control"]),e.$_userHasPermission("access_icon_manager")?(Ta(),Ma("div",{key:0,class:"icon","data-balloon":e.i18n.iconManager,"data-balloon-pos":"top-right",onClick:t[2]||(t[2]=bc(function(){return o.openIconManager&&o.openIconManager.apply(o,arguments)},["stop"]))},[Ha(c,{name:"settings"})],8,Qge)):Qa("",!0)]),o.library&&"svg"!==o.library&&"dynamicData"!==o.library?(Ta(),Ma("div",Yge,[Xn(qa("input",{"onUpdate:modelValue":t[3]||(t[3]=function(e){return r.searchFor=e}),type:"text",spellcheck:"false",placeholder:e.i18n.searchFor},null,8,Jge),[[ac,r.searchFor]]),Object.keys(o.options).length?(Ta(),Ma("ul",Xge,[(Ta(!0),Ma(Ca,null,Rr(o.options,function(e,t){var n;return Ta(),Ma("li",{key:t,title:null==e?void 0:e.title,class:te({active:t==o.icon||o.iconId&&o.iconId===t}),onClick:function(e){return o.updateIcon(t)}},[null!==(n=o.library)&&void 0!==n&&n.startsWith("custom_")?(Ta(),Ma("div",{key:0,class:"custom-icon",style:Y(o.iconSetBackgroundColor),innerHTML:e.html},null,12,eve)):(Ta(),Ma("i",{key:1,class:te(t),title:null==e?void 0:e.title},null,10,tve))],10,Zge)}),128))],512)):(Ta(),La(u,{key:1,control:{content:e.i18n.nothingFound}},null,8,["control"]))])):Qa("",!0),"dynamicData"===o.library?(Ta(),Ma("div",nve,[Ha(d,{control:{type:"text",label:e.i18n.dynamicData,placeholder:e.i18n.dynamicDataTag,filterTags:[{provider:"acf",fieldType:"icon_picker"},{provider:"metabox",fieldType:"icon"}]},controlKey:"dynamicData",settings:n.value},null,8,["control","settings"])])):Qa("",!0),o.library&&("svg"===o.library||"dynamicData"===o.library||o.library.startsWith("custom_"))&&"custom"!==(null===(i=n.control)||void 0===i?void 0:i.libraries)?(Ta(),Ma("div",ive,["svg"===o.library?(Ta(),La(d,{key:0,control:{type:"svg"},repeaterId:n.repeaterId,repeaterIndex:n.repeaterIndex,repeaterKey:n.repeaterKey,controlKey:"svg",settings:n.value,onUpdated:o.handleSvgUpdate},null,8,["repeaterId","repeaterIndex","repeaterKey","settings","onUpdated"])):Qa("",!0),Ha(d,{controlKey:"height",control:{type:"number",units:!0,label:e.i18n.height,rerender:!1,css:!0},repeaterId:n.repeaterId,repeaterIndex:n.repeaterIndex,repeaterKey:n.repeaterKey,source:e.$_state.activeClass?"class":"id",settings:o.cssSettings},null,8,["control","repeaterId","repeaterIndex","repeaterKey","source","settings"]),Ha(d,{controlKey:"width",control:{type:"number",units:!0,label:e.i18n.width,rerender:!1,css:!0},repeaterId:n.repeaterId,repeaterIndex:n.repeaterIndex,repeaterKey:n.repeaterKey,source:e.$_state.activeClass?"class":"id",settings:o.cssSettings},null,8,["control","repeaterId","repeaterIndex","repeaterKey","source","settings"]),Ha(d,{controlKey:"strokeWidth",control:{type:"number",units:!0,label:e.i18n.strokeWidth,rerender:!1,css:!0},repeaterId:n.repeaterId,repeaterIndex:n.repeaterIndex,repeaterKey:n.repeaterKey,source:e.$_state.activeClass?"class":"id",settings:o.cssSettings},null,8,["control","repeaterId","repeaterIndex","repeaterKey","source","settings"]),Ha(d,{controlKey:"stroke",control:{type:"color",label:e.i18n.strokeColor,inline:!0,rerender:!1,css:!0},parentKey:n.controlKey,repeaterId:n.repeaterId,repeaterIndex:n.repeaterIndex,repeaterKey:n.repeaterKey,source:e.$_state.activeClass?"class":"id",settings:o.cssSettings},null,8,["control","parentKey","repeaterId","repeaterIndex","repeaterKey","source","settings"]),Ha(d,{controlKey:"fill",control:{type:"color",label:e.i18n.fill,inline:!0,rerender:!0,css:!0},parentKey:n.controlKey,repeaterId:n.repeaterId,repeaterIndex:n.repeaterIndex,repeaterKey:n.repeaterKey,source:e.$_state.activeClass?"class":"id",settings:o.cssSettings},null,8,["control","parentKey","repeaterId","repeaterIndex","repeaterKey","source","settings"])])):Qa("",!0)]}),_:1},8,["show"])):Qa("",!0)])}]]);var uve=cve,dve={"data-control":"image"},pve=["data-balloon"],hve=["src","alt","title"],fve=["textContent"],mve=["textContent"],gve=["innerHTML"];var vve={emits:["input"],props:["value","control","controlKey","block"],data:function(){return{hasDynamicData:this.control.hasOwnProperty("hasDynamicData")?this.control.hasDynamicData:"image",sizes:{},imageUrlValid:!0,maybeOpenMediaLibrary:!1}},computed:{useDynamicData:function(){var e,t;return(null===(e=this.value)||void 0===e||null===(e=e.useDynamicData)||void 0===e?void 0:e.name)||(null===(t=this.value)||void 0===t?void 0:t.useDynamicData)||""},hasImage:function(){var e,t;return(null===(e=this.value)||void 0===e?void 0:e.url)||(null===(t=this.value)||void 0===t?void 0:t.id)},hasExternalUrl:function(){var e;return null===(e=this.value)||void 0===e?void 0:e.external},externalUrl:function(){var e,t;return null!==(e=this.value)&&void 0!==e&&e.external&&1!=this.value.external?this.value.external:(null===(t=this.value)||void 0===t?void 0:t.url)||""},filename:function(){var e;return(null===(e=this.value)||void 0===e?void 0:e.filename)||""},isSvg:function(){return-1!==this.filename.indexOf(".svg")},size:function(){var e;return(null===(e=this.value)||void 0===e?void 0:e.size)||this.bricks.defaultImageSize},belongsToLoop:function(){var e,t=this.block||this.$_activeElement.value,n=!(null===(e=this.$_state.activeComponent)||void 0===e||!e.elements)&&this.$_state.activeComponent.elements;return t&&this.$_elementBelongsToLoopId(t,n)}},methods:{externalUrlParseDynamicDataContent:function(e){var t=this;this.$_getDynamicDataContent({content:e,context:"link",success:function(n){var i;t.$emit("input",{url:(null===(i=n.data)||void 0===i?void 0:i.content)||e,external:e,filename:e.split("/").pop(),imageUrlValid:!0})}})},setExternalUrl:function(e){e?e.includes("{")&&e.includes("}")?this.$_debounce("controlImage:SetExternalUrl",this.externalUrlParseDynamicDataContent(e)):this.$emit("input",{url:e,external:!0,filename:e.split("/").pop()}):this.$emit("input",!1)},openUnsplashPopup:function(){this.maybeOpenMediaLibrary=!0,this.$_state.popup="unsplash"},clearImage:function(){this.$emit("input","")},getDefaultImageSizes:function(){return{options:this.bricks.controlOptions.imageSizes,clearable:!1}},getImageSizes:function(){var e,t,n=this;this.hasImage&&null!==(e=this.value)&&void 0!==e&&e.id?this.$_http({data:{action:"bricks_get_image_metadata",image:this.value,imageId:null===(t=this.value)||void 0===t?void 0:t.id,imageSize:this.size},success:function(e){var t;if(null!==(t=e.data)&&void 0!==t&&t.full){var i={full:{width:e.data.full.width,height:e.data.full.height}};i=Object.assign(i,e.data.sizes),n.sizes={options:n.getImageSizesOptions(i),clearable:!1}}}}):this.sizes=this.getDefaultImageSizes()},getImageSizesOptions:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={};return Object.keys(e).forEach(function(i){var r=i.split(/[-_]+/);r=r.map(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),r=r.join(" "),t?e[i].width&&(r+=" (".concat(e[i].width,"px)")):r+=" (".concat(e[i].width,"x").concat(e[i].height,")"),n[i]=r}),n},updateDynamicData:function(e){var t=this.$_clone(this.value);e?t.useDynamicData=e:delete t.useDynamicData,this.$emit("input",t)},updateSize:function(e){var t,n,i=this;if(!this.useDynamicData||null!==(t=this.value)&&void 0!==t&&t.id)this.hasImage&&this.$_http({data:{action:"bricks_get_image_metadata",imageId:null===(n=this.value)||void 0===n?void 0:n.id,imageSize:e},success:function(t){var n;if(null!==(n=t.data)&&void 0!==n&&n.src){var r=jQuery.extend({},i.value,{size:e,url:t.data.src[0]});i.$emit("input",r)}}});else{var r=jQuery.extend({},this.value,{size:e});this.$emit("input",r)}},getImageIdFromCustomField:function(e){var t,n=this;e&&this.$_http({data:{action:"bricks_get_image_from_custom_field",postId:null!==(t=this.$_state.templatePreview)&&void 0!==t&&t.postId?this.$_state.templatePreview.postId:this.$_state.postId,metaKey:e,size:this.size},success:function(e){var t={useDynamicData:n.useDynamicData,size:n.size};t=e.success?jQuery.extend(t,e.data):t,n.$emit("input",t)}})}},mounted:function(){var e;!this.useDynamicData||this.belongsToLoop||this.$_state.activeComponent||null!==(e=this.$_state.activeElement)&&void 0!==e&&e.cid||this.getImageIdFromCustomField(this.useDynamicData),this.getImageSizes()},watch:{useDynamicData:function(e,t){if(e)if(this.sizes=this.getDefaultImageSizes(),this.belongsToLoop){var n={useDynamicData:e,size:this.size};this.$emit("input",n)}else this.getImageIdFromCustomField(e);else t&&this.clearImage()},value:{handler:function(){this.getImageSizes(),this.imageUrlValid=!0},deep:!0},"$_state.popup":{handler:function(e,t){this.maybeOpenMediaLibrary&&"unsplash"===t&&e!==t&&(this.$_openMediaLibrary("image"),this.maybeOpenMediaLibrary=!1)}}}};const yve=(0,xx.A)(vve,[["render",function(e,t,n,i,r,o){var a,s,l,c,u,d,p=$r("icon"),h=$r("control-info"),f=$r("control-text"),m=$r("control-select");return Ta(),Ma("div",dve,[o.hasImage&&r.imageUrlValid?(Ta(),Ma("div",{key:0,class:"image-wrapper","data-balloon":o.filename},[qa("img",{src:null===(a=n.value)||void 0===a?void 0:a.url,alt:o.filename,title:o.filename,onClick:t[0]||(t[0]=bc(function(t){return o.useDynamicData?null:e.$_openMediaLibrary("image")},["stop"])),onError:t[1]||(t[1]=function(e){return r.imageUrlValid=!1})},null,40,hve),Ha(p,{name:"trash",class:"bricks-panel-actions-icon delete",onClick:bc(o.clearImage,["stop"])},null,8,["onClick"])],8,pve)):o.hasImage&&!r.imageUrlValid?(Ta(),La(h,{key:1,class:"flex",control:{content:"".concat(e.i18n.imageNotFound,"."),delete:!0},onDelete:o.clearImage},null,8,["control","onDelete"])):Qa("",!0),o.hasImage||o.useDynamicData?Qa("",!0):(Ta(),Ma("div",{key:2,textContent:he(e.i18n.selectImage),class:"no-file",onClick:t[2]||(t[2]=bc(function(t){return e.$_openMediaLibrary("image")},["stop"]))},null,8,fve)),!o.useDynamicData||o.hasImage||o.belongsToLoop||e.$_state.activeComponent||null!==(s=e.$_state.activeElement)&&void 0!==s&&s.cid?Qa("",!0):(Ta(),La(h,{key:3,class:"pointer",control:{content:e.i18n.dynamicDataIsEmpty}},null,8,["control"])),!o.useDynamicData&&!1!==(null===(l=n.control)||void 0===l?void 0:l.unsplash)&&null!==(c=e.$_state.globalSettings)&&void 0!==c&&c.apiKeyUnsplash?(Ta(),Ma("button",{key:4,onClick:t[3]||(t[3]=bc(function(){return o.openUnsplashPopup&&o.openUnsplashPopup.apply(o,arguments)},["stop"])),textContent:he(e.i18n.browseUnsplash)},null,8,mve)):Qa("",!0),Xn(Ha(f,{placeholder:e.i18n.dynamicData,controlKey:n.controlKey,value:null===(u=n.value)||void 0===u?void 0:u.useDynamicData,onInput:t[4]||(t[4]=function(e){return o.updateDynamicData(e)})},null,8,["placeholder","controlKey","value"]),[[pl,r.hasDynamicData&&(!o.hasImage||o.useDynamicData)]]),o.hasExternalUrl||o.isSvg||!r.sizes||!o.hasImage&&!o.useDynamicData?Qa("",!0):(Ta(),La(m,{key:5,class:"image-sizes","data-balloon":e.i18n.imageSize,"data-balloon-pos":"bottom-right",control:r.sizes,value:o.size,onInput:t[5]||(t[5]=function(e){return o.updateSize(e)})},null,8,["data-balloon","control","value"])),Xn(Ha(f,{class:"external-url",placeholder:e.i18n.customUrl,value:o.externalUrl,controlKey:n.controlKey,onInput:t[6]||(t[6]=function(e){return o.setExternalUrl(e)})},null,8,["placeholder","value","controlKey"]),[[pl,!o.hasImage&&!o.useDynamicData||o.hasExternalUrl&&!o.useDynamicData]]),!n.value||!Object.keys(n.value).length||null!==(d=n.value)&&void 0!==d&&d.id||o.useDynamicData||o.hasExternalUrl?Qa("",!0):(Ta(),Ma("div",{key:6,innerHTML:e.i18n.placeholderImageInfo,class:"placeholder-description"},null,8,gve))])}]]);var bve=yve,kve={"data-control":"image"},wve=["src"],_ve=["textContent"],Cve=["innerHTML"],xve={key:3,class:"button-group"},Sve=["textContent"],Eve=["textContent"],Ave=["textContent"];var Dve={emits:["input"],props:["value","control","controlKey","block"],data:function(){var e;return{useDynamicData:"",maybeOpenMediaLibrary:!1,sortableOptions:{direction:"horizontal",itemClass:"bricks-sortable-item",handleClass:"image"},sizes:{options:this.bricks.controlOptions.imageSizes,clearable:!1},exclude:(null===(e=this.control)||void 0===e?void 0:e.exclude)||[]}},computed:{images:{get:function(){var e;return(null===(e=this.value)||void 0===e?void 0:e.images)||[]},set:function(e){this.value.images=e}},size:function(){var e;return null!==(e=this.value)&&void 0!==e&&e.size?this.value.size:this.images.length&&this.images[0].size?this.images[0].size:this.bricks.defaultImageSize},hasDynamicData:function(){return this.control.hasOwnProperty("hasDynamicData")?this.control.hasDynamicData:"image"}},methods:{sortableUpdated:function(e){var t=this.$_clone(e.items);if(Array.isArray(t)&&t.length){var n=this.$_clone(this.value)||{};n.images=t,this.$emit("input",n)}},openUnsplashPopup:function(){this.maybeOpenMediaLibrary=!0,this.$_state.popup="unsplash"},deleteGalleryImage:function(e){var t=this.$_clone(this.images);if(t.splice(e,1),this.$_state.messageOrigin="main",Array.isArray(t)&&t.length){var n=this.$_clone(this.value)||{};n.images=t,this.$emit("input",n)}else this.$emit("input",!1)},updateSize:function(e){var t=this.$_clone(this.value);t.size=e,this.$emit("input",t)}},created:function(){var e,t=this.$_clone(this.value);Array.isArray(t)&&(this.value.images=t),this.useDynamicData=(null==t||null===(e=t.useDynamicData)||void 0===e?void 0:e.name)||(null==t?void 0:t.useDynamicData)||""},watch:{value:{handler:function(){var e;this.$_forceRender(100,null===(e=this.$_state.activeElement)||void 0===e?void 0:e.id)},deep:!0},useDynamicData:function(e){e=e?{useDynamicData:e,size:this.size}:{},this.$emit("input",e)},"$_state.popup":{handler:function(e,t){this.maybeOpenMediaLibrary&&"unsplash"===t&&e!==t&&(this.$_openMediaLibrary("image",!0),this.maybeOpenMediaLibrary=!1)}}}};const Tve=(0,xx.A)(Dve,[["render",function(e,t,n,i,r,o){var a,s=$r("icon"),l=$r("sortable"),c=$r("control-text"),u=$r("control-select");return Ta(),Ma("div",kve,[n.control&&o.images.length?(Ta(),La(l,{key:0,tag:"ul",class:"gallery-wrapper",element:n.block,parent:o.images,options:r.sortableOptions,onUpdate:t[1]||(t[1]=function(e){return o.sortableUpdated(e)})},{default:Jn(function(){return[(Ta(!0),Ma(Ca,null,Rr(o.images,function(n,i){return Ta(),Ma("li",{key:n.id,class:"bricks-sortable-item image-wrapper"},[qa("img",{src:n.url,class:"image bricks-sortable-handle",onClick:t[0]||(t[0]=bc(function(t){return e.$_openMediaLibrary("image",!0)},["stop"]))},null,8,wve),Xn(Ha(s,{name:"trash",class:"bricks-panel-actions-icon delete",onClick:function(e){return o.deleteGalleryImage(i)}},null,8,["onClick"]),[[pl,!e.$_state.draggingElement]])])}),128))]}),_:1},8,["element","parent","options"])):Qa("",!0),o.images.length||r.useDynamicData?Qa("",!0):(Ta(),Ma("div",{key:1,class:"no-file",textContent:he(e.i18n.selectImage),onClick:t[2]||(t[2]=function(t){return e.$_openMediaLibrary("image",!0)})},null,8,_ve)),r.useDynamicData?Qa("",!0):(Ta(),Ma("div",{key:2,class:"description",innerHTML:e.i18n.imageGalleryDescription},null,8,Cve)),n.control&&o.images&&!r.useDynamicData?(Ta(),Ma("div",xve,[qa("button",{class:"add",textContent:he(e.i18n.addImages),onClick:t[3]||(t[3]=function(t){return e.$_openMediaLibrary("image",!0)})},null,8,Sve),o.images.length?(Ta(),Ma("button",{key:0,class:"remove",textContent:he(e.i18n.clear),onClick:t[4]||(t[4]=function(t){return e.$emit("input",{})})},null,8,Eve)):Qa("",!0)])):Qa("",!0),!r.useDynamicData&&null!==(a=e.$_state.globalSettings)&&void 0!==a&&a.apiKeyUnsplash?(Ta(),Ma("button",{key:4,onClick:t[5]||(t[5]=bc(function(){return o.openUnsplashPopup&&o.openUnsplashPopup.apply(o,arguments)},["stop"])),textContent:he(e.i18n.browseUnsplash)},null,8,Ave)):Qa("",!0),o.hasDynamicData?(Ta(),La(c,{key:5,placeholder:e.i18n.dynamicData,controlKey:n.controlKey,value:r.useDynamicData,"onUpdate:value":t[6]||(t[6]=function(e){return r.useDynamicData=e})},null,8,["placeholder","controlKey","value"])):Qa("",!0),o.images&&r.sizes&&!r.exclude.includes("size")?(Ta(),La(u,{key:6,class:"image-sizes",control:r.sizes,value:o.size,onInput:o.updateSize},null,8,["control","value","onInput"])):Qa("",!0)])}]]);var Ive=Tve,Ove=["innerHTML"],Pve=["href","textContent"];var Fve={emits:["delete"],props:{control:{type:Object,required:!0,default:function(){return{}}}},computed:{content:function(){var e;return null===(e=this.control)||void 0===e?void 0:e.content},settingType:function(){return!!this.control.required&&(this.control.required.length>=4?this.control.required[3]:void 0)}},methods:{changePanel:function(){switch(this.settingType){case"pageSettings":this.$_showPanel({panel:"settings-page"});break;case"templateSettings":this.$_showPanel({panel:"settings-template"});break;default:this.settingType&&console.warn("controlInfo: undefined settingType: ".concat(this.settingType))}}}};const $ve=(0,xx.A)(Fve,[["render",function(e,t,n,i,r,o){var a,s,l,c=$r("icon");return o.content?(Ta(),Ma("div",{key:0,"data-control":"info",class:te([{pointer:o.settingType},{error:null===(a=n.control)||void 0===a?void 0:a.error,success:null===(s=n.control)||void 0===s?void 0:s.success}]),onClick:t[1]||(t[1]=function(){return o.changePanel&&o.changePanel.apply(o,arguments)})},[qa("div",{class:"info-content",innerHTML:o.content},null,8,Ove),n.control.buttonText&&n.control.buttonLink?(Ta(),Ma("a",{key:0,class:"button",target:"_blank",href:n.control.buttonLink,textContent:he(n.control.buttonText)},null,8,Pve)):Qa("",!0),null!==(l=n.control)&&void 0!==l&&l.delete?(Ta(),La(c,{key:1,name:"trash",onClick:t[0]||(t[0]=bc(function(t){return e.$emit("delete")},["stop"])),"data-balloon":e.i18n.clear,"data-balloon-pos":"top-right"},null,8,["data-balloon"])):Qa("",!0)],2)):Qa("",!0)}]]);var Mve=$ve,Lve={class:"bricks-panel-controls"},Nve={"data-control":"interactions"},jve={class:"title-wrapper"},Bve=["textContent"],Rve={key:0,class:"actions"},Vve=["data-balloon"],qve=["data-balloon"],Hve={key:0,class:"no-results no-border"},zve={key:1,class:"no-results no-border"},Uve=["href","textContent"];var Wve={computed:{isBulkEditing:function(){return this.$_isBulkEditing()},element:function(){var e;return null!==(e=this.$_state.activeClass)&&void 0!==e&&e.id?this.$_state.activeClass:this.$_getFinalElement()},settings:function(){var e;return null===(e=this.element)||void 0===e?void 0:e.settings},interactions:function(){var e;return(null===(e=this.settings)||void 0===e?void 0:e._interactions)||[]},control:function(){return this.bricks.controls.interactions}},methods:{addInteraction:function(){var e=this.$el.querySelectorAll(".control-repeater .add-item"),t=!!e.length&&e[e.length-1];t&&t.click()},addItem:function(e){this.interactions[e].push({id:this.$_generateId()})},deleteItem:function(e,t){this.interactions[e].splice(t,1),this.interactions[e].length||this.interactions.splice(e,1)}},watch:{interactions:{handler:function(e){var t;this.isBulkEditing||(e.length?(null!=this&&this.settings||(this.settings={}),this.settings._interactions=e):null!==(t=this.settings)&&void 0!==t&&t._interactions&&delete this.settings._interactions)},deep:!0}}};var Gve=(0,xx.A)(Wve,[["render",function(e,t,n,i,r,o){var a=$r("icon"),s=$r("control-info"),l=$r("panel-control");return Ta(),Ma("div",Lve,[qa("div",Nve,[qa("div",jve,[qa("div",{class:"title",textContent:he(e.i18n.interactions)},null,8,Bve),o.isBulkEditing?Qa("",!0):(Ta(),Ma("div",Rve,[e.$_userHasPermission("access_element_interactions")?(Ta(),Ma("button",{key:0,class:"add",onClick:t[0]||(t[0]=function(e){return o.addInteraction()}),"data-balloon":e.i18n.add,"data-balloon-pos":"bottom-right"},[Ha(a,{name:"add"})],8,Vve)):Qa("",!0),qa("button",{class:"close",onClick:t[1]||(t[1]=function(t){return e.$_state.showInteractions=!1}),"data-balloon":e.i18n.close,"data-balloon-pos":"bottom-right"},[Ha(a,{name:"close"})],8,qve)]))]),o.isBulkEditing?(Ta(),Ma("div",Hve,[Ha(s,{control:{content:e.i18n.bulkEditNotSupported}},null,8,["control"])])):Qa("",!0),o.isBulkEditing||o.interactions.length?Qa("",!0):(Ta(),Ma("div",zve,[Ha(s,{control:{content:e.i18n.noInteractionsSet}},null,8,["control"]),qa("a",{href:e.bricks.academy.interactions,target:"_blank",class:"button",textContent:he(e.i18n.learnMore)},null,8,Uve)])),o.isBulkEditing?Qa("",!0):(Ta(),La(l,{key:2,block:o.element,control:o.control,controlKey:"_interactions",settings:o.settings},null,8,["block","control","settings"]))])])}]]),Kve={"data-control":"link"};var Qve={emits:["input"],props:["value","control","controlKey"],data:function(){var e;return{link:this.value||{},popup:(null===(e=this.value)||void 0===e?void 0:e.popup)||!0,mounted:!1}},computed:{controls:function(){var e,t,n=this,i={type:{type:"select",placeholder:(null===(e=this.control)||void 0===e?void 0:e.placeholder)||this.i18n.placeholderSelectLinkType,options:this.controlTypeOptions,clearable:!0},postId:{type:"select",placeholder:this.i18n.placeholderSelectPost,optionsAjax:{action:"bricks_get_posts",postType:"any",addLanguageToPostTitle:!0},multiple:!1,searchable:!0,required:["type","=","internal"]},taxonomy:{type:"select",options:this.bricks.controlOptions.taxonomies,placeholder:this.i18n.taxonomy,required:["type","=","taxonomy"]},term:{type:"select",placeholder:this.i18n.selectTerm,optionsAjax:{action:"bricks_get_terms_options",addLanguageToTermName:!0,taxonomy:[null===(t=this.value)||void 0===t?void 0:t.taxonomy]},multiple:!1,searchable:!0,required:[["type","=","taxonomy"],["taxonomy","!=",""]]},url:{type:"text",label:"URL",placeholder:"https://example.com",required:["type","=","external"],hasDynamicData:"text"},useDynamicData:{type:"text",hasDynamicData:"link",controlKey:this.controlKey,placeholder:this.i18n.dynamicData,required:["type","=","meta"]},mediaData:{type:"file",context:"link",required:["type","=","media"]},lightboxInfo:{type:"info",content:this.i18n.infoLightbox,required:["type","=",["lightboxImage","lightboxVideo"]]},lightboxImage:{type:"image",required:["type","=","lightboxImage"]},lightboxVideo:{type:"text",required:["type","=","lightboxVideo"],hasDynamicData:"link",description:this.i18n.descriptionLightboxVideo},lightboxVideoMuted:{type:"checkbox",label:this.i18n.lightboxVideoMuted,description:this.i18n.lightboxVideoMutedDescription,required:[["type","=","lightboxVideo"],["lightboxVideo","!=",""]]},lightboxVideoNoControls:{type:"checkbox",label:"".concat(this.i18n.disable,": ").concat(this.i18n.controls),required:[["type","=","lightboxVideo"],["lightboxVideo","!=",""]]},lightboxAnimationType:{type:"select",label:this.i18n.lightboxAnimation,options:this.bricks.controlOptions.lightboxAnimationTypes,placeholder:this.i18n.zoom,required:["type","=",["lightboxImage"]]},lightboxId:{type:"text",label:this.i18n.lightboxId,inline:!0,required:["type","=",["lightboxImage"]]},urlParams:{type:"text",label:this.i18n.urlParameters,placeholder:"?source=brx#faq",required:[["type","=","internal"],["postId","!=",""]]},newTab:{type:"checkbox",label:this.i18n.openInNewTab,required:["type","=",["internal","external","taxonomy","meta","media"]]},attributesSep:{type:"separator",label:this.i18n.attributes,required:["type","!=",""]},rel:{type:"text",label:"rel",inline:!0,required:["type","=",["internal","external","taxonomy","meta"]]},ariaLabel:{type:"text",label:"aria-label",inline:!0,hasDynamicData:"text",required:["type","!=",""]},title:{type:"text",label:"title",inline:!0,hasDynamicData:"text",required:["type","!=",""]}};return Object.keys(i).forEach(function(e){i[e].propertyDisabled=!0,n.exclude.length&&n.exclude.includes(e)&&delete i[e]}),i},type:function(){var e;return null===(e=this.value)||void 0===e?void 0:e.type},exclude:function(){var e;return Array.isArray(null===(e=this.control)||void 0===e?void 0:e.exclude)?this.control.exclude:[]},controlTypeOptions:function(){var e=e={internal:this.i18n.internal,taxonomy:"".concat(this.i18n.taxonomy," (").concat(this.i18n.term,")"),meta:this.i18n.dynamicData,external:"".concat(this.i18n.custom," URL"),media:this.i18n.media};return this.popup&&(e.lightboxImage=this.i18n.lightboxImage,e.lightboxVideo=this.i18n.lightboxVideo),this.exclude.forEach(function(t){delete e[t]}),e}},created:function(){var e;null!==(e=this.link)&&void 0!==e&&null!==(e=e.useDynamicData)&&void 0!==e&&e.name&&(this.link.useDynamicData=this.link.useDynamicData.name)},mounted:function(){this.mounted=!0},watch:{value:function(){this.value||(this.link={})},"value.taxonomy":function(e){delete this.value.term},link:{handler:function(e){this.mounted&&(null!=e&&e.type?this.$emit("input",e):this.$emit("input",!1))},deep:!0}}};var Yve=(0,xx.A)(Qve,[["render",function(e,t,n,i,r,o){var a=$r("panel-control");return Ta(),Ma("div",Kve,[(Ta(!0),Ma(Ca,null,Rr(o.controls,function(e,t){return Ta(),La(a,{key:t,controlKey:t,control:e,controls:o.controls,settings:r.link},null,8,["controlKey","control","controls","settings"])}),128))])}]]),Jve=["id","name","placeholder","title","value","data-min","data-max","data-step"];var Xve={emits:["input","focus","blur","keydown"],props:{value:{type:[String,Number]},name:{type:String},placeholder:null,spacingDirection:{type:String,required:!1},spacingLinkState:{type:String,required:!1},units:{type:[String,Boolean]},control:{type:Object,required:!1,default:function(){return{}}},controlKey:{type:String,required:!1},parentKey:{type:String,required:!1},parentType:{type:String,required:!1}},data:function(){var e,t;return{expand:!1,large:null===(e=this.control)||void 0===e?void 0:e.large,hasDynamicData:null===(t=this.control)||void 0===t?void 0:t.hasDynamicData,showDynamicPicker:!1,showVariablePicker:!1,caretPos:0,mouseDown:!1,mouseY:void 0,number:0,unit:"",direction:""}},computed:{hasVariables:function(){var e;return!this.bricks.disableVariablesManager&&(this.control.hasOwnProperty("hasVariables")?this.control.hasVariables:null===(e=this.control)||void 0===e?void 0:e.css)},min:function(){var e;if(this.control.hasOwnProperty("min"))return this.control.min;var t=!!Array.isArray(null===(e=this.control)||void 0===e?void 0:e.css)&&this.control.css;return t?t.find(function(e){return"padding"===(null==e?void 0:e.property)})?0:"":void 0},max:function(){if(this.control.hasOwnProperty("max"))return this.control.max},step:function(){var e,t;if(null!==(e=this.control)&&void 0!==e&&e.step&&parseFloat(this.control.step))return parseFloat(this.control.step);if(!this.unit)return 1;var n=this.$_data.controlUnits;return null!=n&&null!==(t=n[this.unit])&&void 0!==t&&t.step?n[this.unit].step:1}},methods:{addVariable:function(e){var t=null!=e&&e.name?"var(--".concat(e.name,")"):e;this.$emit("input",t)},addDynamicTag:function(e){if(e){var t=this.value?this.$_clone(this.value.slice()):"",n=this.caretPos>0&&"{"===this.value[this.caretPos-1]?this.caretPos-1:this.caretPos;t=t?t.slice(0,n)+e.name+t.slice(this.caretPos):e.name,this.$emit("input",t)}},onFocus:function(){this.$emit("focus")},onBlur:function(){this.$emit("blur")},onInput:function(e){this.$emit("input",e)},onKeyDown:function(e){this.$emit("keydown",e),e.defaultPrevented||("ArrowUp"===e.key?(this.direction="up",this.setValue(e)):"ArrowDown"===e.key&&(this.direction="down",this.setValue(e)))},onKeyup:function(e){this.caretPos=e.target.selectionStart},onMouseDown:function(e){0==e.button&&(this.mouseDown=!0,this.mouseY=e.pageY)},onMouseUp:function(){this.mouseDown=!1},getPlaceholder:function(){var e,t,n;return"string"==typeof this.placeholder||"number"==typeof this.placeholder?this.placeholder:"string"==typeof(null===(e=this.control)||void 0===e?void 0:e.placeholder)||"number"==typeof(null===(t=this.control)||void 0===t?void 0:t.placeholder)?null===(n=this.control)||void 0===n?void 0:n.placeholder:void 0},setValue:function(e){var t,n=void 0===this.value?this.placeholder:this.$_clone(this.value);"-"===n&&(n=0);var i=parseFloat(n);if(!n||!n.toString().includes("(")&&!isNaN(i)){n&&0===n.toString().indexOf(i)?(this.number=i,this.unit=n.length?n.replace(i,""):""):(this.number=isNaN(n)?0:n,this.unit=""),!this.unit&&("true"==this.units||null!==(t=this.control)&&void 0!==t&&t.units)&&"px"!==this.$_state.defaultUnit&&(this.unit=this.$_state.defaultUnit);var r=this.$_clone(this.step)||1;e.shiftKey&&(r*=5),"up"===this.direction?this.number+=r:"down"===this.direction&&(this.number-=r),this.number&&(this.number=parseFloat(this.number),this.number=parseFloat(this.number.toFixed(2))),"number"==typeof this.min&&this.number<this.min||"number"==typeof this.max&&this.number>this.max||(n="".concat(this.number).concat(this.unit),this.$emit("input",n.toString()))}}},mounted:function(){var e=this;window.addEventListener("mouseup",function(t){return e.onMouseUp(t)},!0)},beforeUnmount:function(){var e=this;window.removeEventListener("mouseup",function(){return e.onMouseUp})},watch:{value:{handler:function(e){"string"==typeof e&&(e.includes("(")||e.includes(" "))?this.expand=!0:this.expand&&(this.expand=!1)},immediate:!0}}};var Zve=(0,xx.A)(Xve,[["render",function(e,t,n,i,r,o){var a,s=$r("control-variable-picker"),l=$r("control-dynamic-tag-picker");return Ta(),Ma("div",{"data-control":"number",class:te([{expand:r.expand},{large:r.hasDynamicData||r.large},{"has-variables":o.hasVariables},{"has-dynamic-data":r.hasDynamicData}])},[qa("input",{type:"text",id:n.controlKey,autocomplete:"off",spellcheck:"false",name:n.name,placeholder:o.getPlaceholder(),title:n.value,value:n.value,"data-min":o.min,"data-max":o.max,"data-step":o.step,onInput:t[0]||(t[0]=function(e){return o.onInput(e.target.value)}),onFocus:t[1]||(t[1]=function(e){return o.onFocus()}),onBlur:t[2]||(t[2]=function(e){return o.onBlur()}),onKeydown:t[3]||(t[3]=function(e){return o.onKeyDown(e)}),onKeyup:t[4]||(t[4]=function(e){return o.onKeyup(e)}),onMousedown:t[5]||(t[5]=function(e){return o.onMouseDown(e)}),onMouseup:t[6]||(t[6]=function(e){return r.caretPos=e.target.selectionStart})},null,40,Jve),o.hasVariables?(Ta(),La(s,{key:0,control:{context:o.hasVariables},controlKey:n.controlKey,parentKey:n.parentKey,parentType:n.parentType,isOpen:r.showVariablePicker,value:n.value,spacingDirection:n.spacingDirection,spacingLinkState:n.spacingLinkState,onCloseMe:t[7]||(t[7]=function(e){return r.showVariablePicker=!1}),onInput:o.addVariable,onToggle:t[8]||(t[8]=function(e){return r.showVariablePicker=!r.showVariablePicker})},null,8,["control","controlKey","parentKey","parentType","isOpen","value","spacingDirection","spacingLinkState","onInput"])):Qa("",!0),r.hasDynamicData?(Ta(),La(l,{key:1,control:{context:r.hasDynamicData,inline:null===(a=n.control)||void 0===a?void 0:a.inline},controlKey:n.controlKey,isOpen:r.showDynamicPicker,onCloseMe:t[9]||(t[9]=function(e){return r.showDynamicPicker=!1}),onInput:o.addDynamicTag,onToggle:t[10]||(t[10]=function(e){return r.showDynamicPicker=!r.showDynamicPicker})},null,8,["control","controlKey","isOpen","onInput"])):Qa("",!0)],2)}]]),eye=["data-query-type"],tye=["data-balloon"];function nye(e){return nye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nye(e)}function iye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function rye(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=nye(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=nye(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==nye(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oye={emits:["input"],props:["value","control","controlKey","propertyId","activeQueryId"],data:function(){var e;return{resetQuery:!0,editGlobalQuery:!1,selectGlobalQuery:!1,showPopup:!1,popup:!(null===(e=this.control)||void 0===e||!e.hasOwnProperty("popup"))&&this.control.popup,query:this.value?this.value:{},termOptions:{},orderOptions:this.bricks.controlOptions.queryOrder}},computed:{tooltip:function(){var e,t=null!==(e=this.query)&&void 0!==e&&e.objectType?this.query.objectType:"post";return this.activeGlobalQuery?this.i18n.globalQuery:"user"===t?this.i18n.users:"term"===t?this.i18n.terms:"api"===t?"API":this.i18n[t]||null},queryIcon:function(){return"api"===this.query.objectType?"api":"user"===this.query.objectType?"user":"term"===this.query.objectType?"tag":this.activeGlobalQuery?"globe":"loop"},exclude:function(){var e;return(null===(e=this.control)||void 0===e?void 0:e.exclude)||[]},defaultPostType:function(){var e;return(null===(e=this.control)||void 0===e||null===(e=e.default)||void 0===e?void 0:e.post_type)||"post"},postTypeOptions:function(){var e=this.bricks.postTypesRegistered;return e.any=this.i18n.any,e},postInOptions:function(){var e;return{action:"bricks_get_posts",postType:(null===(e=this.query)||void 0===e?void 0:e.post_type)||"any",addLanguageToPostTitle:!0}},objectType:function(){var e;return null!==(e=this.query)&&void 0!==e&&e.objectType?this.query.objectType:"post"},orderByOptions:function(){var e=this.bricks.controlOptions.queryOrderBy;return"term"===this.objectType?e=this.bricks.controlOptions.termsOrderBy:"user"===this.objectType&&(e=this.bricks.controlOptions.usersOrderBy),e},orderByPlaceholder:function(){return"term"===this.objectType?this.i18n.name:"user"===this.objectType?this.i18n.login:this.i18n.date},taxonomy:function(){var e;return null!==(e=this.query)&&void 0!==e&&e.taxonomy?this.query.taxonomy:"category"},termAjaxOptions:function(){var e,t,n,i={action:"bricks_get_terms_options",addLanguageToTermName:!0,postTypes:(null===(e=this.query)||void 0===e?void 0:e.post_type)||["any"]};!(null===(t=this.query)||void 0===t?void 0:t.taxonomy)&&1||(i.taxonomy=null===(n=this.query)||void 0===n?void 0:n.taxonomy);return i},queryId:function(){var e;return this.activeQueryId?this.activeQueryId:null===(e=this.value)||void 0===e?void 0:e.id},activeGlobalQuery:function(){var e=this;return this.queryId?this.$_state.globalQueries.find(function(t){return t.id===e.queryId}):null},popupQueryMaxResultsInfoControl:function(){return this.controls.builderQueryMaxResults||null},popupControls:function(){var e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iye(Object(n),!0).forEach(function(t){rye(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iye(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},this.controls);return delete e.builderQueryMaxResults,e},controls:function(){var e,t,n,i,r,o;if(this.queryId&&"queries"!==this.$_state.popup&&!this.editGlobalQuery)return{};var a,s={builderQueryMaxResults:{type:"info",content:this.i18n.queryMaxResultsInfo},objectType:{type:"select",label:this.i18n.type,options:this.bricks.controlOptions.queryTypes,searchable:!0,placeholder:this.i18n.posts},useQueryEditor:{type:"checkbox",label:this.i18n.queryEditor,inline:!0,required:["objectType","=",["","post","user","term"]]},queryEditor:{type:"code",mode:"text/x-php",executeCode:!0,syncExpand:!1,signCode:!0,required:[["objectType","=",["","post","user","term"]],["useQueryEditor","=",!0]],hasDynamicData:!0,description:this.i18n.queryEditorInfo,placeholder:"return [\n 'post_type' => 'post',\n 'posts_per_page' => '10',\n];"},arrayEditor:{type:"code",mode:"application/json",lint:!1,required:["objectType","=","array"],hasDynamicData:!0,placeholder:'[\n {\n "title": "Example title",\n "desc": "Just testing"\n },\n {\n "title": "Second example",\n "desc": "Another test object"\n }\n]',description:this.i18n.arrayEditorInfo},post_type:{type:"select",label:this.i18n.postType,options:this.postTypeOptions,multiple:!0,placeholder:this.i18n.post,required:[["objectType","=",["","post"]],["useQueryEditor","=",!1]]},post_mime_type:{type:"text",label:this.i18n.mimeType,placeholder:"image",description:this.i18n.mimeTypeDesc,required:[["post_type","=","attachment"],["useQueryEditor","=",!1]]},taxonomy:{type:"select",label:this.i18n.taxonomies,options:this.bricks.controlOptions.taxonomies,multiple:!0,placeholder:this.i18n.selectTaxonomies,required:[["objectType","=","term"],["useQueryEditor","=",!1]]},role__in:{type:"select",label:this.i18n.roles,options:this.bricks.controlOptions.userRoles,multiple:!0,placeholder:this.i18n.any,required:[["objectType","=","user"],["useQueryEditor","=",!1]]},orderby:{type:"select",label:this.i18n.orderBy,options:this.orderByOptions,multiple:!1,add:!1,showValue:!1,placeholder:this.orderByPlaceholder,required:[["objectType","=",["","post","user","term"]],["useQueryEditor","=",!1]]},meta_key:{type:"text",label:this.i18n.metaKeyOrder,placeholder:this.i18n.metaKey,hasDynamicData:!1,required:[["orderby","=",["meta_value","meta_value_num"]],["useQueryEditor","=",!1]]},randomSeedTtl:{type:"number",label:this.i18n.randomSeedTtl,info:this.i18n.randomSeedTtlDescription,placeholder:60,hasDynamicData:!1,required:[["orderby","=","rand"],["objectType","=",["","post"]],["useQueryEditor","=",!1]]},order:{type:"select",label:this.i18n.order,options:this.orderOptions,multiple:!1,repeat:!1,showValue:!1,placeholder:"post"!==this.objectType?this.i18n.ascending:this.i18n.descending,required:[["objectType","=",["","post","user","term"]],["useQueryEditor","=",!1]]},posts_per_page:{type:"number",label:this.i18n.postsPerPage,control:{min:-1,max:null,step:1},inline:!0,placeholder:this.bricks.postsPerPage,required:[["objectType","=",["","post"]],["useQueryEditor","=",!1]]},number:{type:"number",label:this.i18n.number,control:{min:-1,step:1},inline:!0,placeholder:this.bricks.postsPerPage,required:[["objectType","=",["user","term"]],["useQueryEditor","=",!1]]},offset:{type:"number",label:this.i18n.offset,control:{min:0,max:null,step:1},inline:!0,placeholder:0,required:[["objectType","=",["","post","user","term","array"]],["useQueryEditor","=",!1]]},post_parent:{type:"text",label:this.i18n.childOf,info:this.i18n.postParentId,inline:!0,required:[["objectType","=",["","post"]],["useQueryEditor","=",!1]]},parent:{type:"text",label:this.i18n.parent,inline:!0,required:[["objectType","=","term"],["useQueryEditor","=",!1]]},child_of:{type:"text",label:this.i18n.childOf,inline:!0,required:[["objectType","=","term"],["useQueryEditor","=",!1]]},current_post_term:{type:"checkbox",label:this.i18n.currentPostTerm,inline:!0,required:[["objectType","=","term"],["useQueryEditor","=",!1]]},current_post_author:{type:"checkbox",label:this.i18n.currentPostAuthor,inline:!0,required:["objectType","=","user"]},childless:{type:"checkbox",label:this.i18n.childless,inline:!0,required:[["objectType","=","term"],["useQueryEditor","=",!1]]},ignore_sticky_posts:{type:"checkbox",label:this.i18n.ignoreStickyPosts,inline:!0,required:[["objectType","=",["","post"]],["useQueryEditor","=",!1]]},disable_query_merge:{type:"checkbox",label:this.i18n.disableQueryMerge,inline:!0,required:[["objectType","=",["","post","term","user"]],["useQueryEditor","=",!1]]},is_archive_main_query:{type:"checkbox",label:this.i18n.isArchiveMainQuery,info:this.i18n.isArchiveMainQueryDescription,inline:!0,required:[["objectType","=",["","post"]],["useQueryEditor","=",!1]]},post__in:{type:"select",label:this.i18n.include,optionsAjax:this.postInOptions,multiple:!0,searchable:!0,queryDynamicDataOptions:!0,placeholder:this.i18n.selectPosts,required:[["objectType","=",["","post"]],["useQueryEditor","=",!1]]},post__not_in:{type:"select",label:this.i18n.exclude,optionsAjax:this.postInOptions,multiple:!0,searchable:!0,placeholder:this.i18n.selectPosts,required:[["objectType","=",["","post"]],["useQueryEditor","=",!1]]},exclude_current_post:{type:"checkbox",label:this.i18n.excludeCurrent,inline:!0,required:[["objectType","=",["","post"]],["useQueryEditor","=",!1]]},show_empty:{type:"checkbox",label:this.i18n.showEmpty,required:[["objectType","=","term"],["useQueryEditor","=",!1]]},tax_query:{type:"select",label:"".concat(this.i18n.terms," (").concat(this.i18n.include,")"),multiple:!0,searchable:!0,optionsAjax:this.termAjaxOptions,placeholder:this.i18n.selectTerms,required:[["objectType","=",["","post","term"]],["useQueryEditor","=",!1]]},tax_query_not:{type:"select",label:"".concat(this.i18n.terms," (").concat(this.i18n.exclude,")"),multiple:!0,searchable:!0,optionsAjax:this.termAjaxOptions,placeholder:this.i18n.selectTerms,required:[["objectType","=",["","post","term"]],["useQueryEditor","=",!1]]},wooControlsSeparator:{label:"WooCommerce",type:"separator",description:this.i18n.wooControlsDesc,required:[["objectType","=",["","post"]],["post_type","=","product"],["useQueryEditor","=",!1]]},onSale:{type:"checkbox",label:this.i18n.onSale,inline:!0,required:[["objectType","=",["","post"]],["post_type","=","product"],["useQueryEditor","=",!1]]},featured:{type:"checkbox",label:this.i18n.featured,inline:!0,required:[["objectType","=",["","post"]],["post_type","=","product"],["useQueryEditor","=",!1]]},hideOutOfStock:{type:"checkbox",label:this.i18n.hideOutOfStock,inline:!0,required:[["objectType","=",["","post"]],["post_type","=","product"],["useQueryEditor","=",!1]]},relatedProducts:{type:"checkbox",label:this.i18n.relatedProducts,desc:this.i18n.relatedProductsQueryDescription,inline:!0,required:[["objectType","=",["","post"]],["post_type","=","product"],["useQueryEditor","=",!1]]},upSells:{type:"checkbox",label:this.i18n.upSells,inline:!0,required:[["objectType","=",["","post"]],["post_type","=","product"],["useQueryEditor","=",!1]],description:this.i18n.upSellsQueryDescription},crossSells:{type:"checkbox",label:this.i18n.crossSells,inline:!0,required:[["objectType","=",["","post"]],["post_type","=","product"],["useQueryEditor","=",!1]],description:this.i18n.crossSellsQueryDescription},cartCrossSells:{type:"checkbox",label:this.i18n.cartCrossSells,inline:!0,required:[["objectType","=",["","post"]],["post_type","=","product"],["useQueryEditor","=",!1]],description:this.i18n.cartCrossSellsQueryDescription},meta_query_separator:{label:this.i18n.metaQuery,type:"separator",required:[["objectType","=",["","post","user","term"]],["useQueryEditor","=",!1]]},meta_query_relation:{label:this.i18n.relation,type:"select",options:{AND:"AND",OR:"OR"},clearable:!0,inline:!0,placeholder:"AND",required:[["objectType","=",["","post","user","term"]],["useQueryEditor","=",!1],["meta_query","!=",""]]},meta_query:{placeholder:this.i18n.metaQuery,type:"repeater",titleProperty:"key",fields:{key:{label:this.i18n.metaKey,type:"text",hasDynamicData:!1},value:{label:this.i18n.metaValue,type:"text"},compare:{label:this.i18n.compare,type:"select",options:this.bricks.controlOptions.queryCompare,placeholder:this.i18n.equal},type:{label:this.i18n.type,type:"select",options:this.bricks.controlOptions.queryValueType,inline:!0,placeholder:"CHAR"},clause_name:{label:this.i18n.clauseName,type:"text",hasDynamicData:!1,description:this.i18n.clauseNameDesc}},required:[["objectType","=",["","post","user","term"]],["useQueryEditor","=",!1]]},tax_query_separator:{label:this.i18n.taxQuery,type:"separator",required:[["objectType","=",["","post"]],["useQueryEditor","=",!1]]},tax_query_relation:{label:this.i18n.relation,type:"select",options:{AND:"AND",OR:"OR"},clearable:!0,inline:!0,placeholder:"AND",required:[["objectType","=",["","post"]],["useQueryEditor","=",!1],["tax_query_advanced","!=",""]]},tax_query_advanced:{placeholder:this.i18n.taxQuery,type:"repeater",titleProperty:"taxonomy",fields:{taxonomy:{label:this.i18n.taxonomy,type:"select",options:this.bricks.controlOptions.taxonomies},field:{label:this.i18n.field,type:"select",options:{term_id:"term_id",name:"name",slug:"slug",term_taxonomy_id:"term_taxonomy_id"},placeholder:"term_id"},terms:{label:this.i18n.terms,type:"text",placeholder:"term_slug_1,term_slug_2.."},operator:{label:this.i18n.compare,type:"select",options:this.bricks.controlOptions.queryOperator,placeholder:"IN"},include_children:{label:this.i18n.includeChildren,type:"select",options:{true:this.i18n.true,false:this.i18n.false},placeholder:this.i18n.true}},required:[["objectType","=",["","post"]],["useQueryEditor","=",!1]]},performanceSeparator:{label:this.i18n.performance,type:"separator",required:[["objectType","=",["","post"]],["useQueryEditor","=",!1]]},performanceInfo:{type:"info",content:this.i18n.queryLoopPerformanceInfo,required:[["objectType","=",["","post"]],["useQueryEditor","=",!1]]},no_found_rows:{type:"checkbox",label:this.i18n.noFoundRows,description:this.i18n.noFoundRowsDescription,inline:!0,required:[["objectType","=",["","post"]],["useQueryEditor","=",!1]]},disable_update_post_meta_cache:{type:"checkbox",label:this.i18n.disable+" update_post_meta_cache",description:this.i18n.disableUpdatePostMetaCacheDesc,inline:!0,required:[["objectType","=",["","post"]],["useQueryEditor","=",!1]]},disable_update_post_term_cache:{type:"checkbox",label:this.i18n.disable+" update_post_term_cache",description:this.i18n.disableUpdatePostTermCacheDesc,inline:!0,required:[["objectType","=",["","post"]],["useQueryEditor","=",!1]]},items_per_page:{type:"number",label:this.i18n.itemsPerPage,inline:!0,placeholder:0,description:"".concat(this.i18n.default,": 0 (= ").concat(this.i18n.all,")"),required:["objectType","=","array"]},pagination_enabled:{type:"checkbox",label:this.i18n.paginationEnabled,inline:!0,description:this.i18n.paginationEnabledDesc,required:["objectType","=","array"]},array_conditions:{type:"repeater",label:this.i18n.arrayConditions,titleProperty:"key",fields:{key:{label:"".concat(this.i18n.value," 1"),type:"text",placeholder:this.i18n.dynamicData},compare:{label:this.i18n.compare,type:"select",options:(null===(e=this.bricks)||void 0===e||null===(e=e.controls)||void 0===e||null===(e=e.conditions)||void 0===e||null===(e=e.dynamic_data)||void 0===e||null===(e=e.compare)||void 0===e?void 0:e.options)||{},placeholder:"=="},value:{label:"".concat(this.i18n.value," 2"),type:"text"}},required:this.arrayConditionsRequired,description:this.i18n.arrayConditionsDesc},infinite_scroll_separator:{label:this.i18n.infiniteScroll,type:"separator",required:["objectType","=",["","post","user","term","array"]]},infinite_scroll:{label:this.i18n.infiniteScroll,type:"checkbox",required:["objectType","=",["","post","user","term","array"]]},infinite_scroll_margin:{label:this.i18n.offset,type:"number",units:!0,placeholder:0,required:[["infinite_scroll","!=",""],["objectType","=",["","post","user","term","array"]]]},infinite_scroll_delay:{label:"".concat(this.i18n.delay," (ms)"),type:"number",units:!0,placeholder:0,required:[["infinite_scroll","!=",""],["objectType","=",["","post","user","term","array"]]]},query_filters_separator:{label:this.i18n.queryFilters,type:"separator",required:["objectType","=",["","post","term","user"]]},disable_url_params:{label:this.i18n.disableUrlParamsFilter,type:"checkbox",inline:!0,required:["objectType","=",["","post","term","user"]],description:this.i18n.disableUrlParamsFilterDesc},is_live_search_separator:{label:this.i18n.liveSearch,description:this.i18n.liveSearchDescription,type:"separator",required:[["objectType","=",["","post","term","user"]]]},is_live_search:{type:"checkbox",label:this.i18n.liveSearch,inline:!0,required:[["objectType","=",["","post","term","user"]]]},is_live_search_info:{type:"info",content:this.i18n.liveSearchInfo,required:[["objectType","=",["","post","term","user"]],["is_live_search","=",!0],["is_live_search_wrapper_selector","=",""]]},is_live_search_wrapper_selector:{label:this.i18n.liveSearchWrapperSelector,type:"text",placeholder:"#brxe-a1b2c3",description:this.i18n.liveSearchWrapperSelectorDesc,required:[["objectType","=",["","post","term","user"]],["is_live_search","=",!0]]},ajax_loader_separator:{label:this.i18n.ajaxLoader,description:this.i18n.ajaxLoaderDesc,type:"separator",required:["objectType","=",["","post","user","term"]]},ajax_loader_animation:{label:this.i18n.ajaxLoaderAnimation,type:"select",inline:!0,options:this.bricks.controlOptions.ajaxLoaderAnimations,placeholder:this.i18n.none,required:["objectType","=",["","post","user","term"]]},ajax_loader_color:{label:this.i18n.color,type:"color",required:["ajax_loader_animation","!=",""]},ajax_loader_scale:{label:this.i18n.scale,type:"number",placeholder:1,required:["ajax_loader_animation","!=",["","none"]]},ajax_loader_selector:{label:this.i18n.ajaxLoaderSelector,type:"text",placeholder:"#brxe-a1b2c3",required:["ajax_loader_animation","!=",["","none"]],description:this.i18n.ajaxLoaderSelectorDesc},query_api_button:{type:"button",class:"query-api-button",label:this.i18n.apiSettings,required:["objectType","=","api"],action:"openQueryApiPopup"},query_api_table:{type:"table",rows:[{name:this.i18n.name,value:null===(t=this.query)||void 0===t?void 0:t.api_name},{name:"URL",value:null===(n=this.query)||void 0===n?void 0:n.api_url,url:null!==(i=this.query)&&void 0!==i&&i.api_url&&"POST"!==(null===(r=this.query)||void 0===r?void 0:r.api_method)?this.query.api_url:null}],required:[["objectType","=","api"],["api_url","!=",""]]},query_api_error:{type:"info",error:!0,content:this.i18n.apiSettingsDesc,required:[["objectType","=","api"],["api_url","=",""]]},no_results_separator:{label:this.i18n.noResults,type:"separator",desc:this.i18n.noResultsDescription},no_results_template:{label:this.i18n.template,info:"".concat(this.i18n.type,": ").concat(this.i18n.section),type:"select",searchable:!0,inline:!1,options:this.bricks.controlOptions.allSectionTemplates,required:["no_results_text","=",""],placeholder:this.i18n.select},no_results_text:{label:this.i18n.text,type:"text",searchable:!0,required:["no_results_template","=",""],trigger:["blur","enter"]}};(Object.keys(s).forEach(function(e){var t;s[e].propertyDisabled=!0,"repeater"===((null===(t=s[e])||void 0===t?void 0:t.type)||!1)&&s[e].fields&&Object.keys(s[e].fields).forEach(function(t){s[e].fields[t].propertyDisabled=!0})}),this.exclude.forEach(function(e){delete s[e]}),this.$_state.userCan.executeCode)||(delete s.useQueryEditor,null!==(a=this.query)&&void 0!==a&&a.useQueryEditor?s.queryEditor={type:"info",content:this.i18n.queryEditorNoCodeExecutionInfo}:delete s.queryEditor);return this.bricks.wooCommerceActive||(delete s.wooControlsSeparator,delete s.onSale,delete s.featured,delete s.relatedProducts,delete s.hideOutOfStock,delete s.upSells,delete s.crossSells,delete s.cartCrossSells),this.bricks.builderQueryMaxResults||delete s.builderQueryMaxResults,0==(null===(o=window.bricksData)||void 0===o?void 0:o.enableQueryFilters)&&(delete s.is_live_search_separator,delete s.is_live_search,delete s.is_live_search_info,delete s.query_filters_separator,delete s.disable_url_params),"post"!==this.objectType&&"user"!==this.objectType||(s.orderby.multiple=!0,s.orderby.add=!0,s.orderby.showValue=!0,s.order.multiple=!0,s.order.repeat=!0,s.order.showValue=!0),"term"===this.objectType&&(s.orderby.add=!0),s},arrayConditionsRequired:function(){var e,t=["objectType","=",["array"]];return null!==(e=this.bricks)&&void 0!==e&&e.dynamicTagsArraySupport&&this.bricks.dynamicTagsArraySupport.length>0&&this.bricks.dynamicTagsArraySupport.forEach(function(e){e.objectType&&!t[2].includes(e.objectType)&&t[2].push(e.objectType)}),t}},created:function(){Array.isArray(this.query)&&(this.query={})},methods:{setGlobalQueryId:function(e){e?this.$emit("input",{id:e}):this.$emit("input",!1)},disconnectQueryId:function(e){var t=this.$_state.globalQueries.find(function(t){return t.id===e});if(t){var n=Array.isArray(null==t?void 0:t.settings)?{}:this.$_clone(t.settings);this.$emit("input",n),this.$_showMessage("".concat(this.i18n.disconnect,": ").concat(this.i18n.globalQuery))}else this.$_showError("".concat(this.i18n.notFound,": ").concat(this.i18n.globalQuery," (ID: ").concat(e,")"))},openQueryApiPopup:function(){var e=this.$_clone(this.$_state.activeElement);if(e&&e.id){this.$_state.queryApiData||(this.$_state.queryApiData={});var t=e.id;this.$_state.queryApiData[t]||(this.$_state.queryApiData[t]={settings:this.$_clone(this.query)||{},propertyId:this.propertyId||null,activeQueryId:this.queryId||null}),this.$_state.popup="query-api",this.$_state.queryApiElementId=t}}},watch:{showPopup:function(e){e||(this.editGlobalQuery=!1,this.selectGlobalQuery=!1)},editGlobalQuery:{handler:function(){var e,t,n=this;this.editGlobalQuery&&this.activeGlobalQuery&&(null!==(e=this.activeGlobalQuery)&&void 0!==e&&e.settings&&!Array.isArray(null===(t=this.activeGlobalQuery)||void 0===t?void 0:t.settings)||(this.activeGlobalQuery.settings={}),this.resetQuery=!1,this.query=this.activeGlobalQuery.settings);this.$nextTick(function(){n.resetQuery=!0})}},queryId:function(){this.queryId||this.$_rerenderControls()},query:{handler:function(e,t){var n;this.editGlobalQuery||"queries"===this.$_state.popup||(Object.keys(e).length||(e=!1),this.$emit("input",e)),null!==(n=e)&&void 0!==n&&n.id||null!=t&&t.id||"main"!==this.$_state.messageOrigin||this.$_postMessage({key:"rerenderGlobalQueryIds",value:[this.queryId]})},deep:!0,immediate:!1},"query.objectType":{handler:function(e,t){if(this.resetQuery&&(this.query=e?{objectType:e}:{},this.activeGlobalQuery&&(this.activeGlobalQuery.settings=this.query)),"api"===t){var n,i=(null===(n=this.$_clone(this.$_state.activeElement))||void 0===n?void 0:n.id)||null;if(!i)return;delete this.$_state.queryApiData[this.actualId],delete window.bricksData.loadData.queryApiCache[i]}}},"query.post_type":{handler:function(){delete this.query.post__in,delete this.query.post__not_in}},"query.randomSeedTtl":{handler:function(){this.$_http({method:"POST",data:{action:"bricks_query_loop_delete_random_seed_transient",elementId:this.$_state.activeId}})}}}};var aye=(0,xx.A)(oye,[["render",function(e,t,n,i,r,o){var a,s=$r("icon"),l=$r("panel-control"),c=$r("control-query-manager"),u=$r("panel-control-popup");return Ta(),Ma("div",{"data-control":"query","data-query-type":null===(a=r.query)||void 0===a?void 0:a.objectType},[r.popup?(Ta(),Ma("div",{key:0,class:"bricks-control-preview",onClick:t[0]||(t[0]=function(t){return e.$_controlPopupToggle()}),"data-balloon":o.tooltip,"data-balloon-pos":"top-right"},[Ha(s,{name:o.queryIcon},null,8,["name"])],8,tye)):Qa("",!0),r.showPopup?(Ta(),La(u,{key:1,show:r.showPopup,onClosePopup:t[6]||(t[6]=function(e){return r.showPopup=!1})},{default:Jn(function(){return[o.popupQueryMaxResultsInfoControl?(Ta(),La(l,{key:0,control:o.popupQueryMaxResultsInfoControl,controlKey:"builderQueryMaxResults",parentKey:n.controlKey,propertyId:n.propertyId,settings:r.query},null,8,["control","parentKey","propertyId","settings"])):Qa("",!0),Ha(c,{queryId:o.queryId,query:r.query,"actions-in-flow":!!o.popupQueryMaxResultsInfoControl,onEditGlobalQuery:t[1]||(t[1]=function(e){return r.editGlobalQuery=!r.editGlobalQuery}),onSelectGlobalQuery:t[2]||(t[2]=function(e){return r.selectGlobalQuery=!r.selectGlobalQuery}),onSetGlobalQueryId:t[3]||(t[3]=function(e){return o.setGlobalQueryId(e)}),onDisconnectQueryId:t[4]||(t[4]=function(e){return o.disconnectQueryId(e)}),onShowPopup:t[5]||(t[5]=function(e){return r.showPopup=!r.showPopup})},null,8,["queryId","query","actions-in-flow"]),!r.selectGlobalQuery||r.editGlobalQuery?(Ta(!0),Ma(Ca,{key:1},Rr(o.popupControls,function(e,t){return Ta(),La(l,{key:t,control:e,controls:o.popupControls,controlKey:t,parentKey:n.controlKey,propertyId:n.propertyId,settings:r.query},null,8,["control","controls","controlKey","parentKey","propertyId","settings"])}),128)):Qa("",!0)]}),_:1},8,["show"])):r.popup?Qa("",!0):(Ta(),Ma(Ca,{key:2},[Ha(c,{queryId:o.queryId,query:r.query,onEditGlobalQuery:t[7]||(t[7]=function(e){return r.editGlobalQuery=!r.editGlobalQuery}),onSelectGlobalQuery:t[8]||(t[8]=function(e){return r.selectGlobalQuery=!r.selectGlobalQuery}),onSetGlobalQueryId:t[9]||(t[9]=function(e){return o.setGlobalQueryId(e)}),onDisconnectQueryId:t[10]||(t[10]=function(e){return o.disconnectQueryId(e)}),onShowPopup:t[11]||(t[11]=function(e){return r.showPopup=!r.showPopup})},null,8,["queryId","query"]),!r.selectGlobalQuery||r.editGlobalQuery?(Ta(!0),Ma(Ca,{key:0},Rr(o.controls,function(e,t){return Ta(),La(l,{key:t,control:e,controls:o.controls,controlKey:t,parentKey:n.controlKey,propertyId:n.propertyId,settings:r.query},null,8,["control","controls","controlKey","parentKey","propertyId","settings"])}),128)):Qa("",!0)],64))],8,eye)}]]),sye={key:0,class:"actions"},lye={key:3,class:"input-wrapper"},cye={class:"title"},uye={class:"form-group"},dye={for:"query-name"},pye={class:"form-group"},hye={for:"query-description"},fye={class:"form-group"},mye={for:"query-category"},gye={class:"actions"},vye=["textContent","disabled"],yye=["textContent"];var bye={emits:["editGlobalQuery","selectGlobalQuery","setGlobalQueryId","disconnectQueryId","showPopup"],props:{queryId:{type:String,default:""},query:{type:Object,default:null},actionsInFlow:{type:Boolean,default:!1}},data:function(){return{action:"",editGlobalQuery:!1,queryName:"",queryDescription:"",queryCategory:"",selectGlobalQuery:!1}},computed:{globalQuery:function(){var e=this;return this.$_state.globalQueries.find(function(t){return t.id===e.queryId})||null},globalQueryCount:function(){return this.$_state.globalQueries.length},globalQueryCategories:function(){var e={};return this.$_state.globalQueriesCategories.forEach(function(t){e[t.id]=t.name}),e},globalQueryOptions:function(){var e=this.$_clone(this.$_state.globalQueries),t={},n=e.filter(function(e){return!e.category});return n.length&&(t._uncategorizedGroupTitle=this.i18n.uncategorized,n.forEach(function(e){t[e.id]=e.name})),this.$_state.globalQueriesCategories.forEach(function(n){var i=e.filter(function(e){return e.category===n.id});i.length&&(t["".concat(n.id,"GroupTitle")]=n.name,i.forEach(function(e){t[e.id]=e.name}))}),t}},methods:{openQueryManager:function(){this.$_state.popup="queries",this.$emit("showPopup")},setQueryId:function(e){this.$emit("setGlobalQueryId",e)},disconnectQueryId:function(){this.$emit("disconnectQueryId",this.queryId)},createQuery:function(){var e=this;if(this.$_userHasPermission("access_query_manager")){var t=this.$_state.globalQueries.find(function(t){return t.name===e.queryName});if(t)this.$_showError(this.i18n.queryManagerErrorNameExists);else{if(this.queryCategory&&!this.$_state.globalQueriesCategories.find(function(t){return t.name===e.queryCategory})){var n={id:this.$_generateId(),name:this.queryCategory};this.$_state.globalQueriesCategories.push(n),this.queryCategory=n.id}t={id:this.$_generateId(),name:this.queryName,desc:this.queryDescription,category:this.queryCategory,settings:this.$_clone(this.query),modified:Date.now(),user_id:this.bricks.loadData.currentUserId},this.$_state.globalQueries.push(t),this.action="",this.queryName="",this.queryDescription="",this.queryCategory="",this.$_showMessage("".concat(this.i18n.globalQuery,": ").concat(this.i18n.created)),this.setQueryId(t.id)}}else this.$_showError(this.i18n.noPermission)}},mounted:function(){var e,t=this;this.queryId&&!this.$_state.globalQueries.find(function(e){return e.id===t.queryId})&&null!==(e=this.$_state.activeElement)&&void 0!==e&&null!==(e=e.settings)&&void 0!==e&&null!==(e=e.query)&&void 0!==e&&e.id&&delete this.$_state.activeElement.settings.query.id},watch:{queryId:{handler:function(){this.queryId?this.selectGlobalQuery=!0:this.selectGlobalQuery=!1,this.editGlobalQuery=!1},immediate:!0},editGlobalQuery:function(e){this.$emit("editGlobalQuery",e)},selectGlobalQuery:function(e){this.$emit("selectGlobalQuery",e)},globalQueryCount:{handler:function(e){0===e&&(this.selectGlobalQuery=!0)},deep:!0}}};var kye=(0,xx.A)(bye,[["render",function(e,t,n,i,r,o){var a,s=$r("icon"),l=$r("panel-control"),c=$r("control-select");return Ta(),Ma("div",{"data-control":"query-manager",class:te({"has-query":n.queryId,"select-query":r.selectGlobalQuery,"edit-query":r.editGlobalQuery,"actions-in-flow":n.actionsInFlow})},[r.action||e.$_state.popup?Qa("",!0):(Ta(),Ma("div",sye,[!n.queryId&&o.globalQueryCount>0?(Ta(),La(s,{key:0,name:"globe",class:te({active:r.selectGlobalQuery}),"data-balloon":"".concat(e.i18n.select," (").concat(e.i18n.globalQuery,")"),"data-balloon-pos":"top-right",onClick:t[0]||(t[0]=bc(function(e){return r.selectGlobalQuery=!r.selectGlobalQuery},["stop"]))},null,8,["class","data-balloon"])):Qa("",!0),e.$_userHasPermission("access_query_manager")&&n.queryId?(Ta(),La(s,{key:1,name:"edit",class:te({active:r.editGlobalQuery}),"data-balloon":"".concat(e.i18n.edit," (").concat(e.i18n.globalQuery,")"),"data-balloon-pos":"top-right",onClick:t[1]||(t[1]=bc(function(e){return r.editGlobalQuery=!r.editGlobalQuery},["stop"]))},null,8,["class","data-balloon"])):Qa("",!0),e.$_userHasPermission("access_query_manager")&&n.queryId?(Ta(),La(s,{key:2,name:"unlinked","data-balloon":"".concat(e.i18n.disconnect," (").concat(e.i18n.globalQuery,")"),"data-balloon-pos":"top-right",onClick:t[2]||(t[2]=bc(function(e){return o.disconnectQueryId()},["stop"]))},null,8,["data-balloon"])):Qa("",!0),!e.$_userHasPermission("access_query_manager")||r.selectGlobalQuery||n.queryId?Qa("",!0):(Ta(),La(s,{key:3,name:"save","data-balloon":"".concat(e.i18n.create," (").concat(e.i18n.globalQuery,")"),"data-balloon-pos":"top-right",onClick:t[3]||(t[3]=bc(function(e){return r.action="create"},["stop"]))},null,8,["data-balloon"])),e.$_userHasPermission("access_query_manager")&&(n.queryId||r.selectGlobalQuery||0===o.globalQueryCount)?(Ta(),La(s,{key:4,name:"settings","data-balloon":e.i18n.queryManager,"data-balloon-pos":"top-right",onClick:t[4]||(t[4]=bc(function(e){return o.openQueryManager()},["stop"]))},null,8,["data-balloon"])):Qa("",!0)])),r.selectGlobalQuery?(Ta(),La(l,{key:1,control:{type:"select",label:e.i18n.globalQuery,options:o.globalQueryOptions,desc:null===(a=o.globalQuery)||void 0===a?void 0:a.desc,placeholder:e.i18n.select},controlKey:"queryId",settings:{queryId:n.queryId},onUpdated:t[5]||(t[5]=function(e){return o.setQueryId(e)})},null,8,["control","settings"])):Qa("",!0),r.editGlobalQuery?(Ta(),La(l,{key:2,control:{type:"info",content:e.i18n.globalQueryEditInfo},controlKey:"queryIdInfo"},null,8,["control"])):Qa("",!0),e.$_userHasPermission("access_query_manager")&&"create"===r.action?(Ta(),Ma("div",lye,[qa("h3",cye,he(e.i18n.new)+": "+he(e.i18n.globalQuery),1),qa("div",uye,[qa("label",dye,he(e.i18n.name),1),Xn(qa("input",{type:"text",id:"query-name",autocorrect:"off",spellcheck:"false",onKeyup:t[6]||(t[6]=wc(function(e){return o.createQuery()},["enter"])),"onUpdate:modelValue":t[7]||(t[7]=function(e){return r.queryName=e})},null,544),[[ac,r.queryName]])]),qa("div",pye,[qa("label",hye,he(e.i18n.description),1),Xn(qa("textarea",{id:"query-description",autocorrect:"off",spellcheck:"false","onUpdate:modelValue":t[8]||(t[8]=function(e){return r.queryDescription=e})},null,512),[[ac,r.queryDescription]])]),qa("div",fye,[qa("label",mye,he(e.i18n.category),1),Ha(c,{id:"query-category",value:r.queryCategory,"onUpdate:value":t[9]||(t[9]=function(e){return r.queryCategory=e}),control:{options:o.globalQueryCategories,placeholder:e.i18n.select,clearable:!0,add:!0}},null,8,["value","control"])]),qa("div",gye,[qa("button",{textContent:he(e.i18n.create),disabled:!r.queryName,onClick:t[10]||(t[10]=bc(function(e){return o.createQuery()},["stop"]))},null,8,vye),qa("button",{textContent:he(e.i18n.cancel),onClick:t[11]||(t[11]=bc(function(e){return r.action=""},["stop"]))},null,8,yye)])])):Qa("",!0)],2)}]]),wye={"data-control":"query-list"};var _ye={emits:["input"],props:{value:{type:String},control:{type:Object,required:!0},controlKey:{type:String,required:!0}},data:function(){return{queryList:{}}},computed:{elements:function(){return this.$_dynamicElements.value},controlOptions:function(){var e;return{placeholder:(null===(e=this.control)||void 0===e?void 0:e.placeholder)||this.i18n.mainQuery,options:this.queryList,multiple:!1,clearable:!0}}},methods:{updateControl:function(e){this.$emit("input",e)}},watch:{elements:{handler:function(e){var t,n=this;this.queryList={main:this.i18n.mainQuery},e.forEach(function(e){var t,i;if((null!==(t=e.settings)&&void 0!==t&&t.hasLoop||"posts"==e.name)&&!n.$_state.activeComponent)n.queryList[e.id]=n.$_escapeHTML((null==e?void 0:e.label)||(null===(i=n.$_getElementConfig(e.name))||void 0===i?void 0:i.label));else if(null!=e&&e.cid){var r=n.$_getComponent(e);r.elements.forEach(function(t){var i=e.cid===t.id?e:t,o=n.$_getComponentSettings(r,i)||{};if(null!=o&&o.hasLoop)if(e.cid===t.id){var a,s=(null==e?void 0:e.label)||(null==t?void 0:t.label)||(null===(a=n.$_getElementConfig(e.name))||void 0===a?void 0:a.label);n.queryList[e.id]=n.$_escapeHTML(s)+" (".concat(n.i18n.element,")")}else n.queryList[t.id]=n.$_escapeHTML(n.$_getElementLabel(t))+" (".concat(n.i18n.instance,")")})}}),"filterQueryId"==this.controlKey&&delete this.queryList.main,((null===(t=this.control)||void 0===t?void 0:t.excludeMainQuery)||!1)&&delete this.queryList.main},immediate:!0,deep:!0}}};var Cye=(0,xx.A)(_ye,[["render",function(e,t,n,i,r,o){var a=$r("control-select");return Ta(),Ma("div",wye,[Ha(a,{control:o.controlOptions,value:n.value,onInput:o.updateControl},null,8,["control","value","onInput"])])}]]),xye={"data-control":"popup"},Sye=["data-balloon"];var Eye={props:{control:{type:Object,required:!0,default:function(){return{}}}},methods:{openPopup:function(){var e,t,n=this;this.$_state.popup=null===(e=this.control)||void 0===e?void 0:e.popup,null!==(t=this.control)&&void 0!==t&&t.popupView&&this.$nextTick(function(){n.$_state.popupView=n.control.popupView})}}};var Aye=(0,xx.A)(Eye,[["render",function(e,t,n,i,r,o){var a=$r("icon");return Ta(),Ma("div",xye,[qa("div",{class:"bricks-control-preview",style:{overflow:"visible"},"data-balloon":e.i18n.manage,"data-balloon-pos":"top-right",onClick:t[0]||(t[0]=bc(function(e){return o.openPopup()},["stop"]))},[Ha(a,{name:"settings"})],8,Sye)])}]]),Dye=["data-type"],Tye=["data-balloon"],Iye={class:"data"},Oye=["title","textContent"],Pye=["data-balloon","data-balloon-pos"],Fye={class:"properties"},$ye={class:"title"},Mye=["textContent"],Lye={class:"actions"},Nye=["data-balloon"],jye={key:0,class:"no-properties"},Bye={class:"property"},Rye=["textContent"],Vye=["onClick"],qye={class:"property"},Hye=["title","textContent"],zye={class:"actions"};var Uye={components:{PanelComponentProperties:TD},emits:["hasConnectedProperty"],props:{type:{type:String,required:!0},controlKey:{type:String,required:!0},controlLabel:{type:String,required:!1},parentKey:{type:String,required:!1},isInstanceProperty:{type:Boolean,required:!1,default:!1},connectedInstanceProperty:{type:Object,required:!1,default:null}},data:function(){return{expand:!1,action:null}},computed:{activeId:function(){var e;return(null===(e=this.$_state.activeElement)||void 0===e?void 0:e.cid)||this.$_state.activeId},propertyKey:function(){return this.parentKey?this.parentKey+":"+this.controlKey:this.controlKey},connectableProperties:function(){var e,t=this,n=[],i=null===(e=this.$_state.activeComponent)||void 0===e?void 0:e.properties;return Array.isArray(i)&&(n=i.filter(function(e){return e.type===t.type||"text"===e.type&&"textarea"===t.type||"toggle"===e.type&&"checkbox"===t.type||"select"===e.type&&["text","textarea","editor"].includes(t.type)})),n},propertyType:function(){return"textarea"===this.type?"text":this.type},connectedProperties:function(){var e=this;return this.connectableProperties.filter(function(t){return e.propertyIsConnected(t)})},connectedProperty:function(){var e=this;return this.isInstanceProperty?this.connectedInstanceProperty:this.connectableProperties.find(function(t){return e.propertyIsConnected(t)})}},methods:{getPropertyLabel:function(e){var t,n=this;if(!e){if(this.connectedProperties.length>1){var i=[];return this.connectedProperties.forEach(function(e){i.push(n.getPropertyLabel(e))}),i.join(", ")}e=this.connectedProperty}var r=e.label||e.name,o=!!Array.isArray(null===(t=this.$_state.activeComponent)||void 0===t?void 0:t.propertyGroups)&&this.$_state.activeComponent.propertyGroups.find(function(t){return t.id===e.group});return null!=o&&o.name&&(r+=" [".concat(o.name,"]")),r},collapse:function(e){var t,n,i,r=null==e||null===(t=e.target)||void 0===t?void 0:t.closest(".media-modal"),o=null==e||null===(n=e.target)||void 0===n?void 0:n.closest(".mce-text");r||o||null!==(i=document.activeElement)&&void 0!==i&&i.classList.contains("dynamic-tag-panel")||(this.action=null,!0===this.expand&&(this.expand=!1))},disconnectProperty:function(e){var t=this;if(this.isInstanceProperty)return this.$emit("hasConnectedProperty",null),void this.collapse();e.connections[this.activeId]=e.connections[this.activeId].filter(function(e){return e!==t.propertyKey}),e.connections[this.activeId].length||delete e.connections[this.activeId],Object.keys(e.connections).length||delete e.connections,this.$emit("hasConnectedProperty",null),this.$nextTick(function(){t.$_forceRender(0),t.collapse()})},connectProperty:function(e){var t=this;if(this.isInstanceProperty)return this.$emit("hasConnectedProperty",e),void this.collapse();"class"!==e.type&&this.connectableProperties.forEach(function(e){var n;null!=e&&null!==(n=e.connections)&&void 0!==n&&n[t.activeId]&&e.connections[t.activeId].includes(t.propertyKey)&&t.disconnectProperty(e)}),e.connections||(e.connections={}),e.connections.hasOwnProperty(this.activeId)||(e.connections[this.activeId]=[]),this.propertyIsConnected(e)||e.connections[this.activeId].push(this.propertyKey),this.$emit("hasConnectedProperty",e),this.$nextTick(function(){t.$_forceRender(0),t.collapse()})},propertyIsConnected:function(e){var t,n;return this.isInstanceProperty?(null===(n=this.connectedInstanceProperty)||void 0===n?void 0:n.id)===e.id:null==e||null===(t=e.connections)||void 0===t||null===(t=t[this.activeId])||void 0===t?void 0:t.includes(this.propertyKey)}},watch:{connectedProperty:{handler:function(){this.$emit("hasConnectedProperty",this.connectedProperty)},immediate:!0,deep:!0}}};const Wye=(0,xx.A)(Uye,[["render",function(e,t,n,i,r,o){var a,s,l,c,u=$r("icon"),d=$r("panel-component-properties"),p=Nr("clickaway");return Xn((Ta(),Ma("div",{"data-control":"property","data-type":n.type,class:te([{connected:o.connectedProperty},{unconnected:!o.connectedProperty},{open:r.expand}])},[o.connectedProperty?(Ta(),Ma("div",{key:0,class:"connected-property","data-balloon":e.i18n.connectedProperty,"data-balloon-pos":"bottom-right",onClick:t[0]||(t[0]=function(e){return r.expand=!r.expand})},[qa("div",Iye,["class"===(null===(a=o.connectedProperty)||void 0===a?void 0:a.type)?(Ta(),La(u,{key:0,name:"css3"})):"query"===(null===(s=o.connectedProperty)||void 0===s?void 0:s.type)?(Ta(),La(u,{key:1,name:"loop"})):"toggle"===(null===(l=o.connectedProperty)||void 0===l?void 0:l.type)?(Ta(),La(u,{key:2,name:"toggle"})):(Ta(),Ma("i",{key:3,class:te(e.$_getComponentPropertyIconClassName(null===(c=o.connectedProperty)||void 0===c?void 0:c.type))},null,2)),qa("div",{class:"label",title:o.getPropertyLabel(),textContent:he(o.getPropertyLabel())},null,8,Oye)]),Ha(u,{name:"arrow-down"})],8,Tye)):(Ta(),Ma("div",{key:1,class:te(["toggle",{expand:r.expand}]),"data-balloon":"".concat(e.i18n.connectProperty," (").concat(e.$_getComponentPropertyLabel(o.propertyType),")"),"data-balloon-pos":"_cssGlobalClasses"===n.controlKey?"top-right":"left",onClick:t[1]||(t[1]=function(e){return r.expand=!r.expand})},[Ha(u,{name:o.connectableProperties.length?"link":"add"},null,8,["name"])],10,Pye)),Xn(qa("div",Fye,[qa("ul",null,[qa("li",$ye,[qa("h6",null,[qa("span",{class:"text",textContent:he("create"===r.action?e.i18n.createProperty:e.i18n.connectProperty)},null,8,Mye),qa("div",Lye,[qa("div",{class:"action","data-balloon":"create"===r.action?e.i18n.cancel:e.i18n.create,"data-balloon-pos":"top-right",onClick:t[2]||(t[2]=bc(function(e){return r.action="create"===r.action?null:"create"},["stop"]))},[Ha(u,{name:"create"===r.action?"close":"add",class:"icon"},null,8,["name"])],8,Nye)])])]),o.connectableProperties.length||r.action?Qa("",!0):(Ta(),Ma("li",jye,[qa("div",Bye,[qa("span",{textContent:he(e.i18n.noConnectablePropertyFound)},null,8,Rye)])])),(Ta(!0),Ma(Ca,null,Rr(o.connectableProperties,function(t,n){return Xn((Ta(),Ma("li",{key:null==t?void 0:t.id,class:te([{connected:o.propertyIsConnected(t)}]),onClick:function(e){return o.connectProperty(t)}},[qa("div",qye,["class"===t.type?(Ta(),La(u,{key:0,name:"css3"})):"query"===t.type?(Ta(),La(u,{key:1,name:"loop"})):"toggle"===t.type?(Ta(),La(u,{key:2,name:"toggle"})):(Ta(),Ma("i",{key:3,class:te(e.$_getComponentPropertyIconClassName(t.type))},null,2)),qa("span",{title:o.getPropertyLabel(t),textContent:he(o.getPropertyLabel(t))},null,8,Hye)]),qa("div",zye,[Ha(u,{name:"edit",class:"action edit",onClick:bc(function(n){return e.$_state.activeProperty=t.id},["stop"]),"data-balloon":e.i18n.edit,"data-balloon-pos":"top-right"},null,8,["onClick","data-balloon"]),o.propertyIsConnected(t)?(Ta(),La(u,{key:0,name:"unlinked",class:"action disconnect",onClick:bc(function(e){return o.disconnectProperty(t)},["stop"]),"data-balloon":e.i18n.disconnect,"data-balloon-pos":"top-right"},null,8,["onClick","data-balloon"])):Qa("",!0)])],10,Vye)),[[pl,!r.action]])}),128))]),"create"===r.action?(Ta(),La(d,{key:0,onUpdateAction:t[3]||(t[3]=function(e){return r.action=null}),init:{action:"create",type:o.propertyType,label:n.controlLabel}},null,8,["init"])):Qa("",!0)],512),[[pl,r.expand]])],10,Dye)),[[p,o.collapse]])}]]);var Gye=Wye,Kye={"data-control":"repeater"},Qye=["data-key","data-item"],Yye={key:0,class:"repeater-header"},Jye=["title","onClick"],Xye=["readonly","size","value","onInput"],Zye=["readonly","size","value","onInput"],ebe=["textContent"],tbe=["textContent"],nbe={key:0,class:"actions"},ibe=["onClick","data-balloon","data-balloon-pos"],rbe={class:"duplicate"},obe=["onClick","data-balloon","data-balloon-pos"],abe=["onClick","data-balloon","data-balloon-pos"],sbe=["onClick","data-balloon","data-balloon-pos"],lbe=["data-control-key"],cbe=["textContent"];function ube(e){return ube="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ube(e)}var dbe={emits:["input"],props:{value:{required:!1,type:Array,default:function(){return[]}},control:{type:Object,required:!0},controlKey:{required:!0,type:String},parentKey:{required:!1,type:String},block:{required:!1}},data:function(){var e,t;return{sortableOptions:{direction:"vertical",handleClass:"bricks-sortable-handle",itemClass:"bricks-sortable-item"},addItemTitle:null!==(e=this.control)&&void 0!==e&&e.placeholder?"".concat(this.i18n.add," ").concat(this.control.placeholder):this.i18n.addItem,defaultItem:null!==(t=this.control)&&void 0!==t&&t.default?this.control.default[0]:{},openIndex:-1,renameIndex:-1,hasLoop:!1}},computed:{element:function(){return this.$_activeElement.value},elementConfig:function(){var e;return this.$_getElementConfig(null===(e=this.element)||void 0===e?void 0:e.name)},useChildren:function(){var e,t;return(null===(e=this.elementConfig)||void 0===e?void 0:e.nestable)&&"children"===(null===(t=this.control)||void 0===t?void 0:t.items)},nestableChildren:function(){return this.element.children},items:function(){return this.useChildren?this.nestableChildren:this.value?this.value:[]},itemIds:function(){if(this.useChildren)return this.nestableChildren?this.nestableChildren.join("-"):"";var e=[];return this.items.forEach(function(t){e.push(null==t?void 0:t.id)}),e.join("-")}},methods:{isOpen:function(e){var t;return this.openIndex===e||(null===(t=this.control)||void 0===t?void 0:t.alwaysOpen)},isRenaming:function(e){return this.renameIndex===e},setNestableChildLabel:function(e,t){if(e){var n=this.$_getDynamicElementById(t);n&&(n.label=e)}},setTitleEditable:function(e,t){e?t.titleEditable=e:delete t.titleEditable},itemTitle:function(e){var t,n,i=this.items,r=this.control,o=null==r?void 0:r.titleProperty;if(null!=r&&r.titleEditable&&null!==(t=i[e])&&void 0!==t&&t.titleEditable)return i[e].titleEditable;if(this.useChildren){var a=i[e],s=this.$_getDynamicElementById(a);return s[o]||s.name}var l=i[e][o];if(o&&l){var c=r.fields[o];if(null!=c&&c.options){var u,d="";Array.isArray(l)?l.forEach(function(e,t){t>0&&(d+=", "),d+=c.options[e]}):d=null!=c&&c.add?l:c.options[l];var p=null!==(u=i[e])&&void 0!==u&&u.exclude?" (".concat(this.i18n.exclude,")"):"";return d+p}return l}return null!==(n=i[e])&&void 0!==n&&n.title?i[e].title:null!=r&&r.placeholder?"".concat(r.placeholder," (").concat(e+1,")"):"".concat(this.i18n.item," (").concat(e+1,")")},cancelRenameItem:function(){this.renameIndex=-1},renameItem:function(e){var t=this;this.renameIndex=e===this.renameIndex?-1:e,this.$nextTick(function(){var e;-1!==t.renameIndex&&(null===(e=t.$refs["input-".concat(t.renameIndex)])||void 0===e||null===(e=e[0])||void 0===e||e.focus())})},editItem:function(e){this.openIndex=e===this.openIndex?-1:e,this.useChildren&&(this.$_state.activeId=this.items[e])},addItem:function(e){var t=this;if(this.useChildren){var n,i=null===(n=this.elementConfig)||void 0===n?void 0:n.nestableItem;i?(i=JSON.stringify(i).replaceAll("{item_index}",this.items.length+1),i=JSON.parse(i),this.$_addNewElement({element:i,index:this.items.length,parent:this.element.id,keepLabel:!0},e,!1)):this.items.length&&this.cloneItem(this.items.length-1)}else{var r=this.items,o=this.defaultItem?this.$_clone(this.defaultItem):this.$_clone(this.items[0]),a=this.items.length-1;o.id=this.$_generateId(),this.$_addBlock({block:o,parent:r,index:a}),this.$nextTick(function(){t.openIndex=t.items.length-1,t.$emit("input",t.items)})}},cloneItem:function(e){var t=this.items;if(this.useChildren){var n=t[e],i=this.$_getDynamicElementById(n);this.$_cloneElement({element:i,index:e})}else{var r=this.$_clone(this.items[e]);r.id=this.$_generateId(),this.$_addBlock({block:r,parent:t,index:e})}},deleteItem:function(e){var t=this.items;if(this.useChildren){var n=t[e];this.element.children.splice(e,1);var i=this.$_getDynamicElementById(n);this.$_state.deleteElement=i}else this.$_deleteBlock({parent:t,index:e})}},created:function(){var e=this;Array.isArray(this.items)&&this.items.forEach(function(t){"object"!==ube(t)||null!=t&&t.id||(t.id=e.$_generateId())}),setTimeout(function(){var t;"form"===(null===(t=e.element)||void 0===t?void 0:t.name)&&"fields"===e.$_state.activePanelGroup&&(e.control.fields.id={type:"text",label:"ID",readonly:!0,inline:!0,clearable:!1,hasDynamicData:!1,copyable:!0})},0)},watch:{itemIds:function(){var e;this.$_rerenderElementId(null===(e=this.block)||void 0===e?void 0:e.id),this.$_forceRender(100)},value:{handler:function(e){this.useChildren||(Array.isArray(e)&&!e.length&&(e=""),this.$emit("input",e))},deep:!0},"element.settings.hasLoop":{handler:function(e){var t;null!==(t=this.control)&&void 0!==t&&t.checkLoop&&(this.hasLoop=e)},immediate:!0}}};const pbe=(0,xx.A)(dbe,[["render",function(e,t,n,i,r,o){var a=$r("icon"),s=$r("panel-control"),l=$r("sortable");return Ta(),Ma("div",Kye,[o.items.length?(Ta(),La(l,{key:0,tag:"ul",class:"repeater-list",element:n.block,parent:o.items,options:r.sortableOptions,onDragstart:t[2]||(t[2]=function(e){return r.openIndex=-1})},{default:Jn(function(){return[(Ta(!0),Ma(Ca,null,Rr(o.items,function(i,l){var c,u,d,p,h;return Ta(),Ma("li",{key:(null==i?void 0:i.id)||i,"data-key":(null==i?void 0:i.id)||l,"data-item":i,class:te(["bricks-sortable-item","repeater-item",{open:o.isOpen(l)},{"is-renaming":o.isRenaming(l)},{"always-open":null===(c=n.control)||void 0===c?void 0:c.alwaysOpen}])},[0!==l&&r.hasLoop?Qa("",!0):(Ta(),Ma("div",Yye,[qa("div",{class:te(["bricks-sortable-handle",{"sortable-title":!0}]),title:o.itemTitle(l),onClick:bc(function(e){return o.editItem(l)},["self"])},[o.useChildren?(Ta(),Ma("input",{key:0,autocomplete:"off",spellcheck:"false",readonly:!(o.isOpen(l)||null!==(u=n.control)&&void 0!==u&&u.alwaysOpen),size:o.itemTitle(l).length||1,value:o.itemTitle(l),onClick:t[0]||(t[0]=bc(function(){},["prevent"])),onInput:function(e){return o.setNestableChildLabel(e.target.value,i)}},null,40,Xye)):null!==(d=n.control)&&void 0!==d&&d.titleEditable?(Ta(),Ma("input",{key:1,autocomplete:"off",spellcheck:"false",readonly:!(o.isRenaming(l)||null!==(p=n.control)&&void 0!==p&&p.alwaysOpen),ref_for:!0,ref:"input-".concat(l),size:o.itemTitle(l).length||1,value:o.itemTitle(l),onBlur:t[1]||(t[1]=function(e){return o.cancelRenameItem(e)}),onInput:function(e){return o.setTitleEditable(e.target.value,i)}},null,40,Zye)):(Ta(),Ma("span",{key:2,textContent:he(o.itemTitle(l))},null,8,ebe)),i.disable?(Ta(),Ma("span",{key:3,class:"disabled",textContent:he(e.i18n.disabled)},null,8,tbe)):Qa("",!0)],8,Jye),r.hasLoop?Qa("",!0):(Ta(),Ma("ul",nbe,[null!==(h=n.control)&&void 0!==h&&h.titleEditable&&o.isOpen(l)?(Ta(),Ma("li",{key:0,class:te(["rename",{active:o.isRenaming(l)}])},[qa("button",{onClick:bc(function(e){return o.renameItem(l)},["prevent","stop"]),"data-balloon":e.i18n.rename,"data-balloon-pos":e.bricks.isRtl?"right":"left"},[Ha(a,{name:"edit"})],8,ibe)],2)):Qa("",!0),qa("li",rbe,[qa("button",{onClick:bc(function(e){return o.cloneItem(l)},["stop"]),"data-balloon":e.i18n.duplicate,"data-balloon-pos":e.bricks.isRtl?"right":"left"},[Ha(a,{name:"clone"})],8,obe)]),qa("li",null,[e.$_state.deleteItem==="".concat(n.controlKey,"-").concat(l)?(Ta(),Ma("button",{key:0,onClick:bc(function(e){return o.deleteItem(l)},["stop"]),"data-balloon":e.i18n.sure,"data-balloon-pos":e.bricks.isRtl?"right":"left"},[Ha(a,{name:"check"})],8,abe)):(Ta(),Ma("button",{key:1,onClick:bc(function(t){return e.$_deleteConfirmation("".concat(n.controlKey,"-").concat(l))},["stop"]),"data-balloon":e.i18n.delete,"data-balloon-pos":e.bricks.isRtl?"right":"left"},[Ha(a,{name:"trash"})],8,sbe))])]))])),(Ta(!0),Ma(Ca,null,Rr(n.control.fields,function(t,r){var a;return Xn((Ta(),Ma("div",{key:r,"data-control-key":r,class:te(["repeater-item-inner","type-".concat(t.type)])},[!t.hidden&&o.isOpen(l)?(Ta(),La(s,{key:0,controls:n.control,control:t,controlKey:r,parentKey:n.parentKey,repeaterKey:n.controlKey,repeaterId:null===(a=n.value[l])||void 0===a?void 0:a.id,repeaterIndex:l,settings:n.value[l]},null,8,["controls","control","controlKey","parentKey","repeaterKey","repeaterId","repeaterIndex","settings"])):Qa("",!0)],10,lbe)),[[pl,e.$_controlRequiredMet(n.control.fields[r],i)]])}),128))],10,Qye)}),128))]}),_:1},8,["element","parent","options"])):Qa("",!0),!r.hasLoop||n.value.length<=0?(Ta(),Ma("button",{key:1,class:"add-item",onClick:t[3]||(t[3]=function(e){return o.addItem(e)})},[Ha(a,{name:"add"}),qa("span",{class:"title",textContent:he(r.addItemTitle)},null,8,cbe)])):Qa("",!0)])}]]);var hbe=pbe,fbe=["innerHTML"];var mbe={props:{description:{type:String,required:!1},control:{required:!0,type:Object}}};var gbe=(0,xx.A)(mbe,[["render",function(e,t,n,i,r,o){return Ta(),Ma("div",{"data-control":"separator",innerHTML:n.description},null,8,fbe)}]]),vbe={"data-control":"slider"},ybe={class:"slider-wrapper"},bbe=["min","max","step","value"];function kbe(e){return kbe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kbe(e)}var wbe={emits:["input"],props:{value:{required:!1,default:""},control:{type:Object,required:!0,default:function(){return{}}},controlKey:{type:String,required:!1},settings:{type:Object,required:!0,default:function(){return{}}}},data:function(){return{number:"",unit:"",min:this.control.hasOwnProperty("min")?this.control.min:"",max:this.control.hasOwnProperty("max")?this.control.max:"",step:this.control.hasOwnProperty("step")?parseFloat(this.control.step):1}},computed:{units:function(){if(!this.control.hasOwnProperty("units")||!1!==this.control.units){var e=this.$_data.controlUnits;return this.control.hasOwnProperty("units")&&(e=Object.assign({},e,this.control.units)),e}},placeholder:function(){var e,t=this.$_getNextBreakpointSetting(this.settings,this.controlKey);return t||(null!==(e=this.control)&&void 0!==e&&e.placeholder?String(this.control.placeholder):"")}},methods:{onRangeInput:function(e,t){var n=parseFloat(e),i="";if(isNaN(n)?this.number="":(this.number=n,i=e.replace(n,"")),!1===this.units)return this.unit="",void this.$emit("input",this.number);"number"===t&&(this.unit=i),this.$emit("input","".concat(this.number).concat(this.unit))}},mounted:function(){var e;if(this.value)this.onRangeInput(this.value,"number");else{var t=this.placeholder||(null===(e=this.control)||void 0===e?void 0:e.default);if(t){var n=this.$_clone(t),i=parseFloat(n);isNaN(i)||(this.number=i,this.unit=n.replace(i,""))}}},watch:{value:function(){var e;if(!this.value&&null!==(e=this.control)&&void 0!==e&&e.default){var t=this.$_clone(this.control.default),n=parseFloat(t);isNaN(n)||(this.number=n,this.unit=t.replace(n,""))}},unit:{handler:function(e){if("object"===kbe(this.units)){e=e||"px";var t=!!this.units.hasOwnProperty(e)&&this.units[e];t&&(t.hasOwnProperty("min")&&(this.min=t.min),t.hasOwnProperty("max")&&(this.max=t.max),t.hasOwnProperty("step")&&(this.step=t.step))}},immediate:!0}}};var _be=(0,xx.A)(wbe,[["render",function(e,t,n,i,r,o){var a=$r("control-number");return Ta(),Ma("div",vbe,[qa("div",ybe,[qa("input",{type:"range",min:r.min,max:r.max,step:r.step,value:r.number,onInput:t[0]||(t[0]=function(e){return o.onRangeInput(e.target.value,"range")})},null,40,bbe)]),Ha(a,{control:{units:o.units,unit:r.unit,min:r.min,max:r.max,step:r.step,placeholder:o.placeholder,unitTooltipPos:"top-right",horizontal:!0},controlKey:n.controlKey,value:n.value,onInput:t[1]||(t[1]=function(e){return o.onRangeInput(e,"number")})},null,8,["control","controlKey","value"])])}]]),Cbe=["data-type","controlKey"],xbe={class:"handles"},Sbe=["title"],Ebe=["for","textContent"],Abe=["data-balloon"],Dbe={key:1,class:"link-toggles"};function Tbe(e){return Tbe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tbe(e)}function Ibe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Obe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ibe(Object(n),!0).forEach(function(t){Pbe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ibe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Pbe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Tbe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Tbe(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Tbe(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fbe=["unlinked","opposites","all"],$be={emits:["input","focus-label"],props:{ui:{type:String,required:!1},type:{type:String,required:!1,default:"spacing"},control:{type:Object,required:!1,default:function(){return{}}},controlKey:{type:String,required:!1},parentKey:{type:String,required:!1},parentType:{type:String,required:!1},placeholder:null,value:{type:Object,required:!1,default:function(){return{}}}},data:function(){var e,t;return{directionLastChanged:"",variablesEnabled:!this.bricks.disableVariablesManager,localLinkState:null,directions:null!==(e=this.control)&&void 0!==e&&e.directions?Object.keys(this.control.directions):["top","right","bottom","left"],focus:"",label:"",linkOpposites:!this.control.hasOwnProperty("linkOpposites")||this.control.linkOpposites,linkedIcon:!this.control.hasOwnProperty("linkedIcon")||this.control.linkedIcon,property:null===(t=this.control)||void 0===t||null===(t=t.css)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.property,mouseDownHandler:null}},computed:{hasMultipleLinkToggles:function(){return this.linkedIcon&&this.linkOpposites},switchUi:function(){return!this.control.hasOwnProperty("switchUi")||this.control.switchUi},rememberLinkState:function(){return!!this.$_state.rememberSpacingLinkState},rememberLinkStateEnabled:function(){return this.rememberLinkState&&this.linkedIcon},currentUi:function(){var e;if(null!==(e=this.control)&&void 0!==e&&e.ui)return this.control.ui;var t=this.$_state.globalVariablesUi;return"default"===t||"variables-ui"===t?t:"variables-ui"},rememberLinkStateKey:function(){var e=this.controlKey||this.property||this.type||"spacing";return this.parentKey?"".concat(this.parentKey,".").concat(e):e},linkState:{get:function(){if(this.rememberLinkStateEnabled){var e=this.getRememberedLinkState();return this.linkOpposites||"opposites"!==e?e:"all"}return null!==this.localLinkState?this.localLinkState:"unlinked"},set:function(e){this.rememberLinkStateEnabled?this.setRememberedLinkState(e):this.localLinkState=e}}},methods:{toggleView:function(){var e="default"===(localStorage.getItem("brx_builder_control_spacing_view")||"default")?"variables-ui":"default";localStorage.setItem("brx_builder_control_spacing_view",e),this.$_state.globalVariablesUi=e},getRememberedLinkState:function(){var e=this.$_state.globalSpacingLinkStates||{},t=this.normalizeLinkState(e[this.rememberLinkStateKey]);return t||"unlinked"},setRememberedLinkState:function(e){var t=this.normalizeLinkState(e)||"unlinked",n=Obe(Obe({},this.$_state.globalSpacingLinkStates||{}),{},Pbe({},this.rememberLinkStateKey,t));this.$_state.globalSpacingLinkStates=n,localStorage.setItem(Jh,JSON.stringify(n))},normalizeLinkState:function(e){return Fbe.includes(e)?e:null},toggleLinkState:function(e){this.linkState=this.linkState===e?"unlinked":e,this.applyLinking()},onKeyDown:function(e){if("spacing"===this.type&&this.linkedIcon&&e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.repeat){var t={KeyL:"all",KeyO:"opposites",KeyU:"unlinked"}[e.code];t&&("opposites"!==t||this.linkOpposites)&&(e.preventDefault(),e.stopPropagation(),"unlinked"!==t?this.toggleLinkState(t):this.linkState="unlinked")}},determineLinkStateFromValues:function(){var e=this;if(!this.value||0===Object.keys(this.value).length)return"unlinked";if(this.directions.every(function(t){return e.value.hasOwnProperty(t)&&e.value[t]})){var t=this.value[this.directions[0]];if(this.directions.every(function(n){return e.value[n]===t}))return"all"}if(this.linkOpposites){var n=this.value,i=n.top,r=n.bottom,o=n.left,a=n.right;if((i&&r&&i===r||!i&&!r)&&(o&&a&&o===a||!o&&!a))return"opposites"}return"unlinked"},applyLinking:function(){if("opposites"===this.linkState&&this.directionLastChanged){var e=this.$_clone(this.value),t="";switch(this.directionLastChanged){case"top":t="bottom";break;case"right":t="left";break;case"bottom":t="top";break;case"left":t="right"}e[this.directionLastChanged]&&(e[t]=e[this.directionLastChanged],this.$emit("input",e))}else if("all"===this.linkState){var n=this.$_clone(this.value),i=void 0;this.directions.forEach(function(e){void 0===i&&n.hasOwnProperty(e)&&(i=n[e])}),void 0!==i&&(this.directions.forEach(function(e){return n[e]=i}),this.$emit("input",n))}},getLabel:function(e){var t,n;return(null===(t=this.control)||void 0===t||null===(t=t.labelDirection)||void 0===t?void 0:t[e])||(null===(n=this.control)||void 0===n||null===(n=n.directions)||void 0===n?void 0:n[e])||e},getTitle:function(e){var t,n;return"string"==typeof(null===(t=this.value)||void 0===t?void 0:t[e])&&null!==(n=this.value)&&void 0!==n&&null!==(n=n[e])&&void 0!==n&&n.includes("var")?this.value[e]:this.property?"".concat(this.property,"-").concat(e):null},getPlaceholder:function(e){var t,n=this.placeholder||(null===(t=this.control)||void 0===t?void 0:t.placeholder);if("object"===Tbe(n)){if(void 0!==(null==n?void 0:n[e]))return n[e].toString()}else if(void 0!==n)return n;return""},getValue:function(e){var t;return null===(t=this.value)||void 0===t?void 0:t[e]},setValue:function(e,t){var n=this.$_clone(this.value);t?"all"===this.linkState?this.directions.forEach(function(e){n[e]=t}):"opposites"===this.linkState?("top"===e?n.bottom=t:"right"===e?n.left=t:"bottom"===e?n.top=t:"left"===e&&(n.right=t),n[e]=t):n[e]=t:("all"===this.linkState?this.directions.forEach(function(e){delete n[e]}):"opposites"===this.linkState?("top"===e?delete n.bottom:"right"===e?delete n.left:"bottom"===e?delete n.top:"left"===e&&delete n.right,delete n[e]):delete n[e],Object.keys(n).length||(n=!1)),this.$emit("input",n),this.directionLastChanged=e},onFocus:function(e){this.label=this.property?"".concat(this.property,"-").concat(e):"",this.focus=e,"spacing"===this.type&&this.$emit("focus-label",this.label)},onBlur:function(){this.label="",this.focus="","spacing"===this.type&&this.$emit("focus-label","")},onMouseDown:function(e){e.target.classList.contains("handle")&&e.target.querySelector("input")&&setTimeout(function(){e.target.querySelector("input").focus()},0)},convertUnitsToValue:function(){var e,t=this;(null===(e=this.value)||void 0===e?void 0:e.unit)&&(Object.keys(this.value.unit).forEach(function(e){t.value.hasOwnProperty(e)?t.value[e]+=t.value.unit[e]:t.value[e]=t.value.unit[e]}),delete this.value.unit,this.directions.forEach(function(e){var n,i=null===(n=t.value)||void 0===n?void 0:n[e],r=parseFloat(i);!(!i||!r)&&i.toString().length===r.toString().length&&(t.value[e]+=t.$_state.defaultUnit)}))}},mounted:function(){var e=this;this.convertUnitsToValue(),this.rememberLinkStateEnabled||(this.linkState=this.determineLinkStateFromValues()),this.mouseDownHandler=function(t){return e.onMouseDown(t)},window.addEventListener("mousedown",this.mouseDownHandler,!0)},beforeUnmount:function(){this.mouseDownHandler&&window.removeEventListener("mousedown",this.mouseDownHandler,!0)},watch:{focus:function(){this.$_state.globalVariableSuggestions=[]}}};var Mbe=(0,xx.A)($be,[["render",function(e,t,n,i,r,o){var a=$r("control-number"),s=$r("icon");return Ta(),Ma("div",{"data-control":"spacing","data-type":n.type,controlKey:n.controlKey,class:te([o.currentUi,{"variables-enabled":r.variablesEnabled},{"has-multiple-link-toggles":o.hasMultipleLinkToggles}])},[qa("div",xbe,[(Ta(!0),Ma(Ca,null,Rr(r.directions,function(e){var i;return Ta(),Ma("div",{key:e,class:te(["handle",e,{focus:r.label&&r.label.includes(e)||r.focus===e}]),title:r.property&&"spacing"===n.type?o.getTitle(e):null},["dimensions"===n.type?(Ta(),Ma("label",{key:0,for:r.property,textContent:he(o.getLabel(e))},null,8,Ebe)):Qa("",!0),Ha(a,{control:n.control,controlKey:n.controlKey,parentKey:n.parentKey,parentType:n.parentType,spacingDirection:e,spacingLinkState:o.linkState,placeholder:o.getPlaceholder(e),units:(null===(i=n.control)||void 0===i?void 0:i.units)||!0,value:o.getValue(e),onInput:function(t){return o.setValue(e,t)},onFocus:function(t){return o.onFocus(e)},onBlur:function(t){return o.onBlur(e)},onKeydown:t[0]||(t[0]=function(e){return o.onKeyDown(e)})},null,8,["control","controlKey","parentKey","parentType","spacingDirection","spacingLinkState","placeholder","units","value","onInput","onFocus","onBlur"])],10,Sbe)}),128))]),o.switchUi&&r.variablesEnabled&&"spacing"===n.type?(Ta(),Ma("div",{key:0,class:"toggle switch-ui","data-balloon":e.i18n.switch,"data-balloon-pos":"top-right"},[Ha(s,{name:"toggle",class:"toggle-view",onClick:bc(o.toggleView,["stop"])},null,8,["onClick"])],8,Abe)):Qa("",!0),r.linkedIcon?(Ta(),Ma("div",Dbe,[r.linkOpposites?(Ta(),La(s,{key:0,class:te(["toggle","link-opposites",{active:"opposites"===o.linkState}]),name:"link","data-balloon":e.i18n.linkStates.opposites,"data-balloon-pos":"top-right",onClick:t[1]||(t[1]=function(e){return o.toggleLinkState("opposites")})},null,8,["class","data-balloon"])):Qa("",!0),Ha(s,{class:te(["toggle","link-all",{active:"all"===o.linkState}]),name:"link-all","data-balloon":e.i18n.linkStates.all,"data-balloon-pos":"top-right",onClick:t[2]||(t[2]=function(e){return o.toggleLinkState("all")})},null,8,["class","data-balloon"])])):Qa("",!0)],10,Cbe)}]]),Lbe={"data-control":"svg"},Nbe=["data-balloon"],jbe=["src","alt","title"],Bbe=["textContent"],Rbe=["textContent"],Vbe=["textContent"];var qbe={emits:["input"],props:{value:{type:Object,required:!1,default:function(){return{}}},control:{required:!0,type:Object}},computed:{fileName:function(){var e;return null===(e=this.value)||void 0===e?void 0:e.filename},fileUrl:function(){var e;return null===(e=this.value)||void 0===e?void 0:e.url}}};var Hbe=(0,xx.A)(qbe,[["render",function(e,t,n,i,r,o){var a=$r("control-info");return Ta(),Ma("div",Lbe,[o.fileUrl?(Ta(),Ma("div",{key:0,class:"svg-wrapper","data-balloon":o.fileName},[qa("img",{src:o.fileUrl,alt:o.fileName,title:o.fileName},null,8,jbe),qa("div",{class:"overlay",onClick:t[0]||(t[0]=function(t){return e.$_openMediaLibrary("image/svg+xml")})})],8,Nbe)):(Ta(),Ma("div",{key:1,class:"no-file",textContent:he(e.i18n.noFileSelected),onClick:t[1]||(t[1]=function(t){return e.$_openMediaLibrary("image/svg+xml")})},null,8,Bbe)),o.fileUrl?(Ta(),Ma("button",{key:2,textContent:he(e.i18n.removeFile),onClick:t[2]||(t[2]=function(t){return e.$emit("input","")})},null,8,Rbe)):(Ta(),Ma("button",{key:3,onClick:t[3]||(t[3]=function(t){return e.$_openMediaLibrary("image/svg+xml")}),textContent:he(e.i18n.selectFile)},null,8,Vbe)),t[4]||(t[4]=qa("br",null,null,-1)),t[5]||(t[5]=qa("br",null,null,-1)),e.$_state.userCan.uploadSvg?Qa("",!0):(Ta(),La(a,{key:4,control:{content:e.i18n.svgUploadNotAllowed}},null,8,["control"]))])}]]),zbe={"data-control":"table"},Ube={class:"rows"},Wbe=["title"],Gbe=["title","innerHTML"];var Kbe={props:["control"],methods:{getValue:function(e){return e.url?'<a href="'.concat(e.url,'" target="_blank">').concat(e.value,"</a>"):e.value}}};var Qbe=(0,xx.A)(Kbe,[["render",function(e,t,n,i,r,o){var a;return Ta(),Ma("div",zbe,[qa("ul",Ube,[(Ta(!0),Ma(Ca,null,Rr((null===(a=n.control)||void 0===a?void 0:a.rows)||[],function(e,t){return Xn((Ta(),Ma("li",{key:t,class:"row"},[qa("div",{class:"cell-name",title:e.name},he(e.name),9,Wbe),qa("div",{class:"cell-value",title:e.value,innerHTML:o.getValue(e)},null,8,Gbe)])),[[pl,e.value]])}),128))])])}]]),Ybe=["data-balloon","data-balloon-pos"],Jbe=["id","value","placeholder","autocomplete","spellcheck","readonly"],Xbe={key:3,class:"description"},Zbe=["href","innerHTML"];function eke(e){return eke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},eke(e)}var tke={emits:["input","update:value"],props:{value:{type:[String,Number,Object],default:""},placeholder:{type:[String,Number],default:""},control:{type:Object,required:!1,default:function(){return{}}},controlKey:{type:String,required:!1},parentKey:{type:String,required:!1},parentType:{type:String,required:!1},settings:{required:!1,default:function(){return{}}}},data:function(){var e,t,n,i,r;return{large:null===(e=this.control)||void 0===e?void 0:e.large,showDynamicPicker:!1,caretPos:0,autocomplete:(null===(t=this.control)||void 0===t?void 0:t.autocomplete)||"off",spellcheck:(null===(n=this.control)||void 0===n?void 0:n.spellcheck)||!1,copyable:(null===(i=this.control)||void 0===i?void 0:i.copyable)||!1,trigger:(null===(r=this.control)||void 0===r?void 0:r.trigger)||["keyup"],tagSearch:"",tagPreview:"",tagPreviewTimeout:null,showVariablePicker:!1}},computed:{hasDynamicData:function(){var e="text";return!this.copyable&&(this.control.hasOwnProperty("hasDynamicData")?e=this.control.hasDynamicData:this.control.hasOwnProperty("dd")?e=this.control.dd:this.control.hasOwnProperty("dynamicDataConditions")&&(e=this.$_controlRequiredMet(this.control,this.settings,"dynamicDataConditions")),e)},hasVariables:function(){if(this.bricks.disableVariablesManager)return!1;var e=!1;return this.control.hasOwnProperty("hasVariables")&&(e=this.control.hasVariables),e}},methods:{emit:function(e){this.$emit("input",e),this.$emit("update:value",e),this.fetchDynamicDataPreview(e)},onBlur:function(e){!this.trigger.includes("blur")||this.showDynamicPicker||this.showVariablePicker||this.emit(e)},onKeyup:function(e){this.caretPos=e.target.selectionStart,"Enter"===e.key&&(!this.trigger.includes("enter")||this.showDynamicPicker||this.showVariablePicker||this.emit(e.target.value))},addDynamicTag:function(e){if(e){var t=this.caretPos>0&&"{"===this.value[this.caretPos-1]?this.caretPos-1:this.caretPos,n=this.value?this.value.slice(0,t)+e.name+this.value.slice(this.caretPos):e.name;this.emit(n)}},closeDynamicPicker:function(){this.showDynamicPicker=!1},addVariable:function(e){var t=null!=e&&e.name?"var(--".concat(e.name,")"):e;this.emit(t)},closeVariablePicker:function(){this.showVariablePicker=!1},fetchDynamicDataPreview:function(e){var t=this;"link"===this.hasDynamicData&&-1!==e.indexOf("{")&&-1!==e.indexOf("}")?(clearTimeout(this.tagPreviewTimeout),this.tagPreviewTimeout=setTimeout(function(){var n=t.$_getDynamicDataContent({content:e,context:"link",checkState:!0,success:function(e){t.tagPreview=e.data.content}});n&&(t.tagPreview=n)},400)):this.tagPreview=""},copyToClipboard:function(){this.value&&this.$_copyToClipboard(this.value,"".concat(this.i18n.copied,": ").concat(this.value))}},created:function(){var e,t;(null!==(e=this.value)&&void 0!==e&&e.name||"object"===eke(this.value))&&this.emit((null===(t=this.value)||void 0===t?void 0:t.name)||"");this.fetchDynamicDataPreview(this.value)},watch:{value:{handler:function(e,t){var n=(e+t).toString();(n.includes("{")||n.includes("}"))&&this.$_state.activeLoopId&&this.$_postMessage({key:"rerenderLoopIds",value:[this.$_state.activeLoopId]})}}}};var nke=(0,xx.A)(tke,[["render",function(e,t,n,i,r,o){var a,s,l,c,u,d=$r("icon"),p=$r("control-variable-picker"),h=$r("control-dynamic-tag-picker");return Ta(),Ma("div",{"data-control":"text",class:te({"has-dynamic-data":o.hasDynamicData,"has-variables":o.hasVariables,"has-copy-to-clipboard":r.copyable})},[qa("div",{class:"input-wrapper","data-balloon":null===(a=n.control)||void 0===a?void 0:a.tooltip,"data-balloon-pos":null===(s=n.control)||void 0===s?void 0:s.tooltipPos},[qa("input",{class:te({"show-dynamic-picker":r.showDynamicPicker,"show-variable-picker":r.showVariablePicker,large:o.hasDynamicData||r.large}),type:"text",id:n.controlKey,value:n.value,placeholder:n.placeholder||(null===(l=n.control)||void 0===l?void 0:l.placeholder),autocomplete:r.autocomplete,spellcheck:r.spellcheck,readonly:n.control.readonly,onKeyup:t[0]||(t[0]=function(e){return o.onKeyup(e)}),onMouseup:t[1]||(t[1]=function(e){return r.caretPos=e.target.selectionStart}),onBlur:t[2]||(t[2]=function(e){return o.onBlur(e.target.value)}),onInput:t[3]||(t[3]=function(e){return r.trigger.includes("keyup")?o.emit(e.target.value):null})},null,42,Jbe)],8,Ybe),r.copyable?(Ta(),La(d,{key:0,name:"clipboard",class:"control-action-button","data-balloon":e.i18n.copyToClipboard,"data-balloon-pos":"top-right",onClick:bc(o.copyToClipboard,["stop"])},null,8,["data-balloon","onClick"])):Qa("",!0),o.hasVariables?(Ta(),La(p,{key:1,control:{context:o.hasVariables},controlKey:n.controlKey,parentKey:n.parentKey,parentType:n.parentType,isOpen:r.showVariablePicker,value:n.value,onCloseMe:o.closeVariablePicker,onInput:o.addVariable,onToggle:t[4]||(t[4]=function(e){return r.showVariablePicker=!r.showVariablePicker})},null,8,["control","controlKey","parentKey","parentType","isOpen","value","onCloseMe","onInput"])):Qa("",!0),o.hasDynamicData?(Ta(),La(h,{key:2,control:{context:o.hasDynamicData,filterTags:null===(c=n.control)||void 0===c?void 0:c.filterTags,inline:null===(u=n.control)||void 0===u?void 0:u.inline},controlKey:n.controlKey,isOpen:r.showDynamicPicker,onCloseMe:o.closeDynamicPicker,onInput:o.addDynamicTag,onToggle:t[5]||(t[5]=function(e){return r.showDynamicPicker=!r.showDynamicPicker})},null,8,["control","controlKey","isOpen","onCloseMe","onInput"])):Qa("",!0),r.tagPreview&&"link"===o.hasDynamicData?(Ta(),Ma("div",Xbe,[Ga(he(e.i18n.linkRenderedAs)+": ",1),qa("a",{href:r.tagPreview,target:"_blank",innerHTML:r.tagPreview},null,8,Zbe)])):Qa("",!0)],2)}]]),ike=["readonly","rows","placeholder","spellcheck","value"];var rke={emits:["input"],props:{value:{type:String},placeholder:{type:[String,Number],default:""},control:{required:!0,type:Object},controlKey:{type:String,required:!1}},data:function(){var e,t,n;return{hasDynamicData:this.control.hasOwnProperty("hasDynamicData")?this.control.hasDynamicData:"text",showDynamicPicker:!1,caretPos:0,lineBreak:null===(e=this.control)||void 0===e?void 0:e.lineBreak,readonly:!!this.control.hasOwnProperty("readonly")&&this.control.readonly,spellcheck:(null===(t=this.control)||void 0===t?void 0:t.spellcheck)||!1,trigger:(null===(n=this.control)||void 0===n?void 0:n.trigger)||["keyup"],tagSearch:""}},computed:{rows:function(){var e,t,n=(null===(e=this.control)||void 0===e?void 0:e.rows)||5;if(null!==(t=this.control)&&void 0!==t&&t.autoHeight){var i=this.value?this.value.length:0;n=i?Math.ceil(i/20):1}return n<=5?n:5}},methods:{onInput:function(e){this.trigger.includes("keyup")&&this.$emit("input",e.target.value)},onBlur:function(e){this.trigger.includes("blur")&&!this.showDynamicPicker&&this.$emit("input",e)},onKeyup:function(e){if(this.caretPos=e.target.selectionStart,"Enter"===e.key){var t=e.target.value;"br"===this.lineBreak&&(e.preventDefault(),t=t.replaceAll(/\n/g,"<br>"),this.$emit("input",t)),this.trigger.includes("enter")&&!this.showDynamicPicker&&this.$emit("input",t)}},addDynamicTag:function(e){if(e){var t=this.value?this.$_clone(this.value.slice()):"",n=this.caretPos>0&&"{"===this.value[this.caretPos-1]?this.caretPos-1:this.caretPos;t=t.slice(0,n)+e.name+t.slice(this.caretPos),this.$emit("input",t)}}}};var oke=(0,xx.A)(rke,[["render",function(e,t,n,i,r,o){var a,s,l,c=$r("control-dynamic-tag-picker");return Ta(),Ma("div",{"data-control":"textarea",class:te({"auto-height":null===(a=n.control)||void 0===a?void 0:a.autoHeight})},[qa("textarea",{ref:"textarea",class:te({"show-dynamic-picker":r.showDynamicPicker}),readonly:r.readonly,rows:o.rows,placeholder:n.placeholder||(null===(s=n.control)||void 0===s?void 0:s.placeholder),spellcheck:r.spellcheck,onKeyup:t[0]||(t[0]=function(e){return o.onKeyup(e)}),onMouseup:t[1]||(t[1]=function(e){return r.caretPos=e.target.selectionStart}),onBlur:t[2]||(t[2]=function(e){return o.onBlur(e.target.value)}),onInput:t[3]||(t[3]=function(e){return o.onInput(e)}),value:n.value},"\t\t",42,ike),r.hasDynamicData?(Ta(),La(c,{key:0,control:{context:r.hasDynamicData,inline:null===(l=n.control)||void 0===l?void 0:l.inline},controlKey:n.controlKey,isOpen:r.showDynamicPicker,onCloseMe:t[4]||(t[4]=function(e){return r.showDynamicPicker=!1}),onInput:o.addDynamicTag,onToggle:t[5]||(t[5]=function(e){return r.showDynamicPicker=!r.showDynamicPicker})},null,8,["control","controlKey","isOpen","onInput"])):Qa("",!0)],2)}]]),ake={class:"control-visual","data-control":"text-align"};var ske={emits:["input"],props:{value:{required:!1},control:{required:!0,type:Object}},computed:{alignments:function(){var e=["left","center","right","justify"],t=!!this.control.hasOwnProperty("exclude")&&this.control.exclude;return Array.isArray(t)?e=e.filter(function(e){return!t.includes(e)}):"string"==typeof t&&(e=e.filter(function(e){return e!==t})),e}}};var lke=(0,xx.A)(ske,[["render",function(e,t,n,i,r,o){var a=$r("icon");return Ta(),Ma("div",ake,[(Ta(!0),Ma(Ca,null,Rr(o.alignments,function(t,i){return Ta(),La(a,{class:te([n.value===t?"active":null]),name:"controls/text-align/".concat(t),onClick:function(i){return e.$emit("input",t!==n.value?t:"")},"data-balloon":e.i18n[t]},null,8,["class","name","onClick","data-balloon"])}),256))])}]]),cke={class:"control-visual","data-control":"text-decoration"};var uke={emits:["input"],props:{value:{required:!1},control:{required:!0,type:Object}},computed:{decorations:function(){return[{value:"line-through",tooltip:"strikethrough"},{value:"underline",tooltip:"underline"},{value:"overline",tooltip:"overline"},{value:"none",tooltip:"none"}]}}};var dke=(0,xx.A)(uke,[["render",function(e,t,n,i,r,o){var a=$r("icon");return Ta(),Ma("div",cke,[(Ta(!0),Ma(Ca,null,Rr(o.decorations,function(t,i){return Ta(),La(a,{class:te([n.value===t.value?"active":null]),name:"controls/text-decoration/".concat(t.value),onClick:function(i){return e.$emit("input",t.value!==n.value?t.value:"")},"data-balloon":e.i18n[t.tooltip]},null,8,["class","name","onClick","data-balloon"])}),256))])}]]),pke={"data-control":"text-shadow"};var hke={emits:["input"],props:{value:{type:Object,required:!1},control:{type:Object,required:!0},controlKey:{type:String,required:!0}},data:function(){return{showPopup:!1,textShadow:this.value?this.value:{},exclude:this.control.hasOwnProperty("exclude")?this.control.exclude:[]}},computed:{controls:function(){var e={values:{type:"dimensions",label:this.i18n.textShadow,directions:{offsetX:"X",offsetY:"Y",blur:this.i18n.blur},linkedIcon:!1,linked:!1,hasVariables:!0},color:{type:"color",label:this.i18n.color,inline:!0}};return Object.keys(e).forEach(function(t){e[t].rerender=!1}),e}},created:function(){Array.isArray(this.textShadow)&&(this.textShadow={})},watch:{textShadow:{handler:function(e){Object.keys(e).length||(e=!1),this.$emit("input",e)},deep:!0}}};var fke=(0,xx.A)(hke,[["render",function(e,t,n,i,r,o){var a=$r("icon"),s=$r("panel-control"),l=$r("panel-control-popup");return Ta(),Ma("div",pke,[qa("div",{class:"bricks-control-preview",onClick:t[0]||(t[0]=function(t){return e.$_controlPopupToggle()})},[Ha(a,{name:"edit"})]),r.showPopup&&!e.$_isLocked()?(Ta(),La(l,{key:0,show:r.showPopup,onClosePopup:t[1]||(t[1]=function(e){return r.showPopup=!1})},{default:Jn(function(){return[(Ta(!0),Ma(Ca,null,Rr(o.controls,function(e,t){return Xn((Ta(),La(s,{key:t,control:e,controlKey:t,settings:r.textShadow},null,8,["control","controlKey","settings"])),[[pl,-1===r.exclude.indexOf(t)]])}),128))]}),_:1},8,["show"])):Qa("",!0)])}]]),mke={class:"control-visual","data-control":"text-transform"};var gke={emits:["input"],props:{value:{required:!1},control:{required:!0,type:Object}},computed:{transforms:function(){return[{value:"capitalize",tooltip:"capitalize"},{value:"uppercase",tooltip:"uppercase"},{value:"lowercase",tooltip:"lowercase"},{value:"none",tooltip:"none"}]}}};const vke=(0,xx.A)(gke,[["render",function(e,t,n,i,r,o){var a=$r("icon");return Ta(),Ma("div",mke,[(Ta(!0),Ma(Ca,null,Rr(o.transforms,function(t,i){return Ta(),La(a,{class:te([n.value===t.value?"active":null]),name:"controls/text-transform/".concat(t.value),onClick:function(i){return e.$emit("input",t.value!==n.value?t.value:"")},"data-balloon":e.i18n[t.tooltip]},null,8,["class","name","onClick","data-balloon"])}),256))])}]]);var yke=vke;function bke(e){return bke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bke(e)}function kke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function wke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kke(Object(n),!0).forEach(function(t){_ke(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kke(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _ke(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=bke(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=bke(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==bke(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Cke={"data-control":"transform"};var xke={emits:["input"],props:{value:{type:Object,required:!1},placeholder:null,control:{type:Object,required:!0},controlKey:{type:String,required:!0},source:{type:String,required:!1}},data:function(){var e;return{showPopup:!1,exclude:(null===(e=this.control)||void 0===e?void 0:e.exclude)||[],transform:this.value||{}}},created:function(){Array.isArray(this.transform)&&(this.transform={})},computed:{controls:function(){var e=this,t=function(t){var n,i,r,o;return void 0!==(null===(n=e.transform)||void 0===n?void 0:n[t])&&null!==(null===(i=e.transform)||void 0===i?void 0:i[t])?"":null!==(r=e.placeholder)&&void 0!==r&&r[t]?e.placeholder[t]:null!==(o=e.control)&&void 0!==o&&null!==(o=o.placeholder)&&void 0!==o&&o[t]?e.control.placeholder[t]:""},n={translateX:{label:this.i18n.transform.translateX,type:"number",units:!0,hasVariables:!0,placeholder:t("translateX")},translateY:{label:this.i18n.transform.translateY,type:"number",units:!0,hasVariables:!0,placeholder:t("translateY")},scaleX:{label:this.i18n.transform.scaleX,type:"number",min:0,max:2,step:.01,hasVariables:!0,placeholder:t("scaleX")},scaleY:{label:this.i18n.transform.scaleY,type:"number",min:0,max:2,step:.01,hasVariables:!0,placeholder:t("scaleY")},scale3dX:{label:"".concat(this.i18n.transform.scaleX," (3D)"),type:"number",min:0,max:2,step:.01,hasVariables:!0,placeholder:t("scale3dX")},scale3dY:{label:"".concat(this.i18n.transform.scaleY," (3D)"),type:"number",min:0,max:2,step:.01,hasVariables:!0,placeholder:t("scale3dY")},perspective:{label:"Perspective",type:"number",units:!0,hasVariables:!0,placeholder:t("perspective")},rotateX:{label:"".concat(this.i18n.transform.rotateX," (°)"),type:"number",min:-360,max:360,hasVariables:!0,placeholder:t("rotateX")},rotateY:{label:"".concat(this.i18n.transform.rotateY," (°)"),type:"number",min:-360,max:360,hasVariables:!0,placeholder:t("rotateY")},rotateZ:{label:"".concat(this.i18n.transform.rotateZ," (°)"),type:"number",min:-360,max:360,hasVariables:!0,placeholder:t("rotateZ")},skewX:{label:"".concat(this.i18n.transform.skewX," (°)"),type:"number",min:-360,max:360,hasVariables:!0,placeholder:t("skewX")},skewY:{label:"".concat(this.i18n.transform.skewY," (°)"),type:"number",min:-360,max:360,hasVariables:!0,placeholder:t("skewY")}};return Object.keys(n).forEach(function(e){n[e].rerender=!1}),n}},watch:{value:{handler:function(e){var t=e||{};Array.isArray(t)&&(t={}),this.transform=t},deep:!0},transform:{handler:function(e){Object.keys(e).length||(e=!1),this.$emit("input",e)},deep:!0}}};var Ske=(0,xx.A)(xke,[["render",function(e,t,n,i,r,o){var a=$r("icon"),s=$r("panel-control"),l=$r("panel-control-popup");return Ta(),Ma("div",Cke,[qa("div",{class:"bricks-control-preview",onClick:t[0]||(t[0]=function(t){return e.$_controlPopupToggle()})},[Ha(a,{name:"edit"})]),r.showPopup&&!e.$_isLocked()?(Ta(),La(l,{key:0,show:r.showPopup,onClosePopup:t[1]||(t[1]=function(e){return r.showPopup=!1})},{default:Jn(function(){return[(Ta(!0),Ma(Ca,null,Rr(o.controls,function(e,t){return Xn((Ta(),La(s,{key:t,control:wke(wke({},e),{},{parentHasCss:!0}),controlKey:t,parentKey:n.controlKey,settings:r.transform,source:n.source},null,8,["control","controlKey","parentKey","settings","source"])),[[pl,-1===r.exclude.indexOf(t)]])}),128))]}),_:1},8,["show"])):Qa("",!0)])}]]);function Eke(e){return Eke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Eke(e)}function Ake(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Dke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ake(Object(n),!0).forEach(function(t){Tke(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ake(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Tke(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Eke(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Eke(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Eke(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ike={"data-control":"typography"},Oke=["data-balloon"],Pke=["data-balloon"];function Fke(e){return Fke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fke(e)}function $ke(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Mke(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mke(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mke(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var Lke={emits:["input"],props:{value:{type:Object,required:!1,default:function(){return{}}},control:{required:!0,type:Object},controlKey:{type:String,required:!0},settings:{type:Object,required:!1,default:function(){return{}}},source:{required:!1,type:String}},data:function(){var e,t;return{showPopup:!1,typography:this.value?this.value:{},placeholder:(null===(e=this.control)||void 0===e?void 0:e.placeholder)||{},exclude:(null===(t=this.control)||void 0===t?void 0:t.exclude)||[],currentFontWeights:this.bricks.controlOptions.fontWeight,currentFontStyles:this.bricks.controlOptions.fontStyle,currentFontVariants:{}}},computed:{popup:function(){return!!this.$_isSearchingControls()||(!Object.hasOwn(this.control,"popup")||this.control.popup)},fontFamilyNotification:function(){return this.currentFontFamily?this.fontOptions[this.currentFontFamily]?null:this.currentFontFamily.startsWith("custom_")?"".concat(this.i18n.notFound,": ").concat(this.i18n.customFont):this.bricks.googleFontsDisabled?"".concat(this.i18n.disabled,": Google Fonts"):null:null},filteredFontOptions:function(){var e=this;if(0===this.$_state.fontFavorites.length)return this.fontOptions;var t=this.$_clone(this.fontOptions),n={};return n.favoritesGroupTitle=this.i18n.favorites,this.$_state.fontFavorites.forEach(function(i){if(i){var r=e.$_clone(i);r=r.replace(/^adobe_/,"").replace(/^google_/,"").replace(/^standard_/,""),t[r]&&(n[r]=t[r],delete t[r])}}),"favorites"===this.bricks.builderFontFamilyControl?this.currentFontFamily&&!n[this.currentFontFamily]&&t[this.currentFontFamily]&&(n.otherGroupTitle=this.i18n.current,n[this.currentFontFamily]=t[this.currentFontFamily]):Object.entries(t).forEach(function(e){var t=$ke(e,2),i=t[0],r=t[1];n[i]||(n[i]=r)}),n},fontOptions:function(){var e,t,n,i={};return null!==(e=this.$_state.fonts.adobe)&&void 0!==e&&e.length&&(i.adobeFontsGroupTitle=this.i18n.fontsAdobe,this.$_state.fonts.adobe.forEach(function(e){var t;Array.isArray(null==e?void 0:e.css_names)&&null!==(t=e.css_names)&&void 0!==t&&t.length?e.css_names.forEach(function(t){var n;1===(null===(n=e.css_names)||void 0===n?void 0:n.length)?i[t]=e.name:i[t]=e.name+" ("+t+")"}):e.slug&&(i[e.slug]=e.name)})),Object.keys(this.$_state.fonts.custom||{}).length&&(i.customFontsGroupTitle=this.i18n.fontsCustom,Object.entries(this.$_state.fonts.custom||{}).forEach(function(e){var t=$ke(e,2),n=t[0],r=t[1];i[n]=r.family})),null!==(t=this.$_state.fonts.google)&&void 0!==t&&t.length&&(i.googleFontsGroupTitle=this.i18n.fontsGoogle,this.$_state.fonts.google.forEach(function(e){i[e.family]=e.family})),null!==(n=this.$_state.fonts.standard)&&void 0!==n&&n.length&&(i.standardFontsGroupTitle=this.i18n.fontsStandard,this.$_state.fonts.standard.forEach(function(e){i[e]=e})),i},controls:function(){var e,t,n,i,r,o,a,s,l={color:{type:"color",inline:!0,label:this.i18n.color},"font-size":{type:"number",hasVariables:!0,units:!0,label:this.i18n.fontSize,controlKey:"font-size",placeholder:(null===(e=this.placeholder)||void 0===e?void 0:e["font-size"])||""},"text-align":{type:"text-align",label:this.i18n.textAlign},"text-transform":{type:"text-transform",label:this.i18n.textTransform},"font-family-notification":{type:"info",content:this.fontFamilyNotification},"font-family":{type:"select",label:this.i18n.fontFamily,options:this.filteredFontOptions,placeholder:(null===(t=this.placeholder)||void 0===t?void 0:t["font-family"])||this.i18n.fontFamily,searchable:!0,icon:"gear"},"font-weight":{type:"select",label:this.i18n.fontWeight,options:this.currentFontWeights,add:!0,placeholder:(null===(n=this.placeholder)||void 0===n?void 0:n["font-weight"])||this.i18n.fontWeight},"font-style":{type:"select",label:this.i18n.fontStyle,options:this.currentFontStyles,placeholder:(null===(i=this.placeholder)||void 0===i?void 0:i["font-style"])||this.i18n.fontStyle},"font-variants":{type:"select",label:this.i18n.fontVariants,options:this.currentFontVariants,multiple:!0,placeholder:this.i18n.fontVariants},"font-variation-settings":{type:"text",label:this.i18n.fontVariationSettings,hasDynamicData:!1,hasVariables:!0,placeholder:"font-variation-settings"},fallback:{type:"text",hasDynamicData:!1,placeholder:this.i18n.fallbackFont},"line-height":{type:"number",label:this.i18n.lineHeight,hasVariables:!0,units:{"-":{step:"0.1"}},placeholder:(null===(r=this.placeholder)||void 0===r?void 0:r["line-height"])||"-"},"letter-spacing":{type:"number",label:this.i18n.letterSpacing,hasVariables:!0,units:!0,placeholder:(null===(o=this.placeholder)||void 0===o?void 0:o["letter-spacing"])||""},"white-space":{type:"select",label:this.i18n.whiteSpace,options:this.bricks.controlOptions.whiteSpace,add:!0,inline:!0,hasDynamicData:!1,placeholder:(null===(a=this.placeholder)||void 0===a?void 0:a["white-space"])||" "},"text-wrap":{type:"select",label:this.i18n.textWrap,options:this.bricks.controlOptions.textWrap,add:!0,inline:!0,hasDynamicData:!1,placeholder:(null===(s=this.placeholder)||void 0===s?void 0:s["text-wrap"])||" "},"text-shadow":{type:"text-shadow",label:this.i18n.textShadow,inline:!0,small:!0},"text-decoration":{type:"text-decoration",label:this.i18n.textDecoration}};return!this.exclude.length&&this.controlKey.startsWith("iconTypography")&&(delete l["font-family"],delete l["font-weight"],delete l["font-style"],delete l["text-align"],delete l["text-decoration"],delete l["text-transform"],delete l["line-height"],delete l["letter-spacing"],delete l["font-variation-settings"],delete l["text-wrap"],delete l["white-space"]),this.exclude.forEach(function(e){null!=l&&l[e]&&delete l[e]}),this.controlKey.startsWith("typographyBody")||this.controlKey.startsWith("typographyHeadings")?Object.keys(this.currentFontVariants).length||delete l["font-variants"]:(delete l["font-variants"],delete l.fallback),Object.keys(l).forEach(function(e){l[e].rerender=!1}),l},currentFontFamily:function(){var e;return null===(e=this.value)||void 0===e?void 0:e["font-family"]},currentFontWeight:function(){var e;return null===(e=this.value)||void 0===e?void 0:e["font-weight"]}},methods:{setFontWeights:function(){var e,t,n=this;if(this.currentFontWeights={},this.currentFontVariants={},this.currentFontFamily){var i=(null===(e=this.$_state.fonts)||void 0===e?void 0:e.adobe)||[];if(Array.isArray(i)&&i.length){var r=i.find(function(e){return(null==e?void 0:e.slug)===n.currentFontFamily});if(Array.isArray(null==r?void 0:r.variations)){var o={};r.variations.forEach(function(e){(e=e.replace(/\D/g,"")+"00")&&(o[e]=e)});var a=Object.keys(o);if(a.length)return this.currentFontWeights=o,void(1===a.length&&400!=a[0]?this.typography["font-weight"]=a[0]:this.currentFontWeight&&!Object.hasOwn(this.currentFontWeights,this.currentFontWeight)&&delete this.typography["font-weight"])}}var s=((null===(t=this.$_state.fonts)||void 0===t?void 0:t.google)||[]).find(function(e){return e.family===n.currentFontFamily}),l=s?s.variants:[];if(["100","100italic","200","200italic","300","300italic","400","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"].forEach(function(e){l.includes(e)&&!isNaN(e)&&(n.currentFontWeights[e]=e),l.includes(e)&&(n.currentFontVariants[e]="italic"===e?"400italic":e)}),this.currentFontFamily.startsWith("custom_font_")){var c,u,d=(null===(c=this.$_state.fonts)||void 0===c?void 0:c.custom)||{},p=null==d||null===(u=d[this.currentFontFamily])||void 0===u?void 0:u.fontFaces;p="string"==typeof p?p.split(";"):[];var h={};p.forEach(function(e){if(e.includes("font-weight")){var t=e.replace("font-weight:","");t&&(h[t]=t)}}),Object.keys(h).length&&(this.currentFontWeights=h);var f=Object.keys(this.currentFontWeights);1===f.length&&400!=f[0]&&(this.typography["font-weight"]=f[0])}Object.keys(this.currentFontWeights).length||(this.currentFontWeights=this.bricks.controlOptions.fontWeight),Object.hasOwn(this.currentFontWeights,this.currentFontWeight)||delete this.typography["font-weight"]}else this.currentFontWeights=this.bricks.controlOptions.fontWeight},setPlaceholders:function(){var e,t,n,i,r,o,a=this,s=this.$_getIframeDoc(),l=this.$_getElementId(this.$_activeElement.value),c="theme-styles"===this.$_state.popupTab,u=!!l&&"#".concat(l),d=!!this.$_isValidCssSelector(u)&&s.querySelector(u);if(d||!this.$_state.activeId){"object"!==Fke(this.placeholder)&&(this.placeholder={}),Array.isArray(null===(e=this.control)||void 0===e?void 0:e.css)&&this.control.css.forEach(function(e){var t=!(null==e||!e.selector)&&(null==e?void 0:e.selector.replaceAll("{pseudo}","")),n=c?s:d||s;if(t&&n)try{d=n.querySelector(t)}catch(e){return}});var p=d?this.$_getIframeWindow().getComputedStyle(d):{},h=this.settings||{},f=this.$_getNextBreakpointSetting(h,this.controlKey);null!=f&&f["font-size"]?this.placeholder["font-size"]=f["font-size"]:Array.isArray(null==h?void 0:h._cssGlobalClasses)&&(null==h||h._cssGlobalClasses.forEach(function(e){var t,n=a.$_getGlobalClass(e),i=a.$_getNextBreakpointSetting(null==n?void 0:n.settings,a.controlKey),r=null==n||null===(t=n.settings[a.$_getControlKeyActive(a.controlKey)])||void 0===t?void 0:t["font-size"];r?a.placeholder["font-size"]=r:null!=i&&i["font-size"]&&(a.placeholder["font-size"]=i["font-size"])})),null!==(t=this.typography)&&void 0!==t&&t["font-family"]||null==p||!p.fontFamily||p.fontFamily.includes(",")||(this.placeholder["font-family"]=p.fontFamily?p.fontFamily.toString().replace(/['"]+/g,""):""),null!==(n=this.typography)&&void 0!==n&&n["font-weight"]||null==p||!p.fontWeight||(this.placeholder["font-weight"]=p.fontWeight),null!==(i=this.typography)&&void 0!==i&&i["font-style"]||null==p||!p.fontStyle||"normal"==p.fontStyle||(this.placeholder["font-style"]=p.fontStyle),null!==(r=this.typography)&&void 0!==r&&r["text-wrap"]||null==p||!p.textWrap||"wrap"==p.textWrap||(this.placeholder["text-wrap"]=p.textWrap),null!==(o=this.typography)&&void 0!==o&&o["white-space"]||null==p||!p.whiteSpace||"normal"==p.whiteSpace||(this.placeholder["white-space"]=p.whiteSpace)}}},created:function(){Array.isArray(this.typography)&&(this.typography={}),this.setFontWeights(),this.setPlaceholders()},watch:{"$_state.activeId":{handler:function(){this.setPlaceholders()}},showPopup:function(e){e&&(this.setFontWeights(),this.setPlaceholders())},currentFontFamily:{handler:function(){this.setFontWeights()}},typography:{handler:function(e){Object.keys(e).length||(e=!1),this.$emit("input",e)},deep:!0}}};var Nke=(0,xx.A)(Lke,[["render",function(e,t,n,i,r,o){var a=$r("icon"),s=$r("panel-control"),l=$r("panel-control-popup");return Ta(),Ma("div",Ike,[o.popup?(Ta(),Ma("div",{key:0,class:"bricks-control-preview",onClick:t[0]||(t[0]=function(t){return e.$_controlPopupToggle()})},[Ha(a,{name:"edit"})])):Qa("",!0),o.popup&&r.showPopup&&!e.$_isLocked()?(Ta(),La(l,{key:1,show:r.showPopup,onClosePopup:t[2]||(t[2]=function(e){return r.showPopup=!1})},{default:Jn(function(){return[(Ta(!0),Ma(Ca,null,Rr(o.controls,function(i,o,l){return Ta(),La(s,{key:o+l,control:i,controlKey:o,parentKey:n.controlKey,settings:r.typography,source:n.source},Vr({_:2},["font-family"===o&&e.$_userHasPermission("access_font_manager")?{name:"action-icon",fn:Jn(function(){return[qa("span",{class:"action-icon",onClick:t[1]||(t[1]=bc(function(t){return e.$_state.popup="fonts"},["stop"])),"data-balloon":e.i18n.fontManager},[Ha(a,{name:"settings"})],8,Oke)]}),key:"0"}:void 0]),1032,["control","controlKey","parentKey","settings","source"])}),128))]}),_:1},8,["show"])):o.popup?Qa("",!0):(Ta(!0),Ma(Ca,{key:2},Rr(o.controls,function(i,o,l){return Ta(),La(s,{key:o+l,control:Dke(Dke({},i),{},{parentHasCss:!0}),controlKey:o,parentKey:n.controlKey,settings:r.typography,source:n.source},Vr({_:2},["font-family"===o&&e.$_userHasPermission("access_font_manager")?{name:"action-icon",fn:Jn(function(){return[qa("span",{class:"action-icon",onClick:t[3]||(t[3]=bc(function(t){return e.$_state.popup="fonts"},["stop"])),"data-balloon":e.i18n.fontManager,"data-balloon-pos":"top-right"},[Ha(a,{name:"settings"})],8,Pke)]}),key:"0"}:void 0]),1032,["control","controlKey","parentKey","settings","source"])}),128))])}]]),jke={"data-control":"video"},Bke=["textContent"],Rke={key:0,controls:"",ref:"player"},Vke=["src","type"],qke=["textContent"],Hke=["textContent"],zke=["textContent"];var Uke={emits:["input"],props:{value:{type:Object,required:!1},control:{type:Object,required:!0}},computed:{fileName:function(){return this.value&&this.value.filename?this.value.filename:this.i18n.noFileSelected},fileUrl:function(){return!(!this.value||!this.value.url)&&this.value.url},fileMime:function(){return!(!this.value||!this.value.mime)&&this.value.mime}},watch:{value:{handler:function(){var e=this;this.$emit("input",this.value),this.$nextTick(function(){e.$refs.player.load()})},deep:!0}}};var Wke=(0,xx.A)(Uke,[["render",function(e,t,n,i,r,o){return Ta(),Ma("div",jke,[qa("label",{class:te([{"has-video":o.fileUrl},{"no-video":!o.fileUrl}]),textContent:he(o.fileName),onClick:t[0]||(t[0]=function(t){return e.$_openMediaLibrary("video")})},null,10,Bke),o.fileUrl&&o.fileMime?(Ta(),Ma("video",Rke,[qa("source",{src:o.fileUrl,type:o.fileMime},null,8,Vke),qa("p",{textContent:he(e.i18n.html5VideoNoBrowserSupport)},null,8,qke)],512)):Qa("",!0),o.fileUrl?(Ta(),Ma("button",{key:1,onClick:t[1]||(t[1]=function(t){return e.$emit("input","")}),textContent:he(e.i18n.removeFile)},null,8,Hke)):(Ta(),Ma("button",{key:2,onClick:t[2]||(t[2]=function(t){return e.$_openMediaLibrary("video")}),textContent:he(e.i18n.selectFile)},null,8,zke))])}]]),Gke=["title"],Kke={key:0,class:"breakpoint-list"},Qke=["title","onClick"];var Yke={props:{control:{type:Object,required:!0},parentGroupKey:{type:String,required:!1,default:""}},data:function(){return{isExpanded:!1,breakpointsWithSettings:[]}},computed:{currentBreakpoint:function(){var e=this;return this.$_state.breakpoints.find(function(t){return t.key===e.$_state.breakpointActive})},nestedGroupElementSettings:function(){var e,t,n;return this.$_state.activeSelector?null===(t=this.$_state.activeSelector)||void 0===t?void 0:t.settings:this.$_state.activeClass?null===(n=this.$_state.activeClass)||void 0===n?void 0:n.settings:null===(e=this.$_state.activeElement)||void 0===e?void 0:e.settings},nestedParentControlKey:function(){var e;return this.parentGroupKey||(null===(e=this.$parent.$parent)||void 0===e?void 0:e.controlKey)},hasBreakpointValues:function(){var e,t,n,i,r,o=this;if(!(null!==(e=this.control)&&void 0!==e&&e.css||null!==(t=this.control)&&void 0!==t&&t.parentHasCss))return!1;var a=null===(n=this.$_state.breakpoints.find(function(e){return e.base}))||void 0===n?void 0:n.key;if(null!==(i=this.control)&&void 0!==i&&i.parentHasCss){var s=this.nestedGroupElementSettings,l=this.nestedParentControlKey,c=this.$parent.controlKey;return!(!s||!l)&&Object.keys(s).some(function(e){var t,n,i;if(!e.startsWith(l))return!1;var r,u,d,p=e.match(/:(.+)$/);return p?p[1]!==a&&void 0!==(null===(t=s[e])||void 0===t?void 0:t[c])&&null!==(null===(n=s[e])||void 0===n?void 0:n[c])&&""!==(null===(i=s[e])||void 0===i?void 0:i[c]):"any"===o.bricks.builderResponsiveControlIndicator&&(void 0!==(null===(r=s[e])||void 0===r?void 0:r[c])&&""!==(null===(u=s[e])||void 0===u?void 0:u[c])&&null!==(null===(d=s[e])||void 0===d?void 0:d[c]))})}var u=(null===(r=this.control)||void 0===r?void 0:r.id)||this.$parent.controlKey,d=this.$parent.settings;return Object.keys(d).some(function(e){if(!e.startsWith(u))return!1;var t=e.match(/:(.+)$/);return t?t[1]!==a&&void 0!==d[e]&&null!==d[e]&&""!==d[e]:"any"===o.bricks.builderResponsiveControlIndicator&&(void 0!==d[e]&&null!==d[e]&&""!==d[e])})}},methods:{toggleExpand:function(){this.isExpanded=!this.isExpanded},hasValueInBreakpoint:function(e){var t,n,i;null===(t=this.$_state.breakpoints.find(function(e){return e.base}))||void 0===t||t.key;if(null!==(n=this.control)&&void 0!==n&&n.parentHasCss){var r,o,a,s=this.nestedGroupElementSettings,l=this.nestedParentControlKey,c=this.$parent.controlKey;if(!s||!l)return!1;var u="desktop"===e?l:"".concat(l,":").concat(e);return void 0!==(null===(r=s[u])||void 0===r?void 0:r[c])&&null!==(null===(o=s[u])||void 0===o?void 0:o[c])&&""!==(null===(a=s[u])||void 0===a?void 0:a[c])}var d=(null===(i=this.control)||void 0===i?void 0:i.id)||this.$parent.controlKey,p=this.$parent.settings,h="desktop"===e?d:"".concat(d,":").concat(e);return void 0!==p[h]&&null!==p[h]&&""!==p[h]},setBreakpoint:function(e){this.$_state.breakpointActive=e.key},onClickOutside:function(e){this.$el.contains(e.target)||(this.isExpanded=!1)}},mounted:function(){"disable"!==this.bricks.builderResponsiveControlIndicator&&window.addEventListener("click",this.onClickOutside,!0)},beforeUnmount:function(){window.removeEventListener("click",this.onClickOutside,!0)}};var Jke=(0,xx.A)(Yke,[["render",function(e,t,n,i,r,o){var a,s,l=$r("icon");return o.hasBreakpointValues||"always"===e.bricks.builderResponsiveControlIndicator?(Ta(),Ma("div",{key:0,class:te(["control-responsive-indicator",{expand:r.isExpanded}])},[qa("button",{class:"current-breakpoint",title:null===(a=o.currentBreakpoint)||void 0===a?void 0:a.name,onClick:t[0]||(t[0]=bc(function(e){return o.toggleExpand()},["stop","prevent"]))},[Ha(l,{name:null===(s=o.currentBreakpoint)||void 0===s?void 0:s.icon},null,8,["name"])],8,Gke),r.isExpanded?(Ta(),Ma("div",Kke,[(Ta(!0),Ma(Ca,null,Rr(e.$_state.breakpoints,function(e){return Ta(),Ma("button",{key:e.key,title:e.label,class:te([{"has-value":o.hasValueInBreakpoint(e.key)}]),onClick:function(t){return o.setBreakpoint(e)}},[Ha(l,{name:e.icon},null,8,["name"])],10,Qke)}),128))])):Qa("",!0)],2)):Qa("",!0)}]]),Xke=["data-balloon"],Zke={key:0,class:"pinned-tags"},ewe=["onClick"],twe=["textContent"],nwe={class:"searchable-wrapper"},iwe=["placeholder"],rwe={class:"dropdown",ref:"dropdown"},owe=["data-index","onMousedown","onMouseover"],awe=["innerHTML","title"],swe=["textContent"];function lwe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||uwe(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cwe(e){return function(e){if(Array.isArray(e))return dwe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||uwe(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uwe(e,t){if(e){if("string"==typeof e)return dwe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dwe(e,t):void 0}}function dwe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var pwe={emits:["toggle","closeMe","input","update:value"],props:{value:{required:!1},control:{type:Object,required:!0,default:function(){return{context:"text",placeholder:this.i18n.dynamicData}}},controlKey:{type:String,required:!1},isOpen:{type:Boolean,default:!1},syncExpand:{type:Boolean,default:!0}},data:function(){return{selectedIndex:-1,searchFor:void 0,highlight:!1,showDropdown:!1,dropdownStyle:{}}},computed:{allOptions:function(){var e=this.$_isLoopElement(this.element),t=this.apiShortcuts;return e&&t.length&&t.some(function(t){return t.queryId===e})?[].concat(cwe(t),cwe(this.bricks.dynamicTags)):[].concat(cwe(this.bricks.dynamicTags),cwe(t))},element:function(){return this.$_activeElement.value},apiShortcuts:function(){var e=this,t=localStorage.getItem("bricks_query_api_shortcuts");if(!t)return[];var n=JSON.parse(t).map(function(t){return{name:t.dynamicTag,label:t.label,group:null!=t&&t.apiName&&t.apiName.trim()?"".concat(e.i18n.queryApi,": ").concat(t.apiName," [").concat(t.queryId,"]"):"".concat(e.i18n.queryApi,": [").concat(t.queryId,"]"),queryId:t.queryId,path:t.path,isApiShortcut:!0}}),i=this.$_isLoopElement(this.element);if(i){var r=n.filter(function(e){return e.queryId===i});if(r.length)return r}return n},currentOptions:function(){var e=this,t=this.allOptions;if(!t.length)return[];if(Array.isArray(this.control.filterTags)&&(t=t.filter(function(t){return e.control.filterTags.some(function(e){return Object.entries(e).every(function(e){var n=lwe(e,2),i=n[0],r=n[1];return t[i]===r||!r})})})),t.forEach(function(n,i){if(null==n||!n.labelSet){var r=null!=n&&n.label&&!e.bricks.builderDynamicDropdownNoLabel?n.label:"";if(null!=n&&n.name&&e.bricks.builderDynamicDropdownKey){var o=n.name.replaceAll("{","").replaceAll("}","");r=r?" ".concat(r," (").concat(o,")"):o}t[i].label=r||(null==n?void 0:n.label),t[i].labelSet=!0}}),this.isQFCustomField){var n,i=(null===(n=this.element)||void 0===n||null===(n=n.settings)||void 0===n?void 0:n.fieldProvider)||"";if("string"==typeof i&&i.trim()){var r="{".concat(i,"_");"metabox"===i&&(r="{mb_"),t=t.filter(function(e){return(null==e?void 0:e.name)&&e.name.startsWith(r)&&!e.queryFiltersExcludeTag})}}var o=this.searchFor?this.searchFor.toLowerCase():void 0;o&&(t=t.filter(function(t){return e.isGroupTitle(t)||t.label.toLowerCase().includes(o)||t.name.toLowerCase().includes(o)}));var a={};t.forEach(function(t){var n,i=(null==t?void 0:t.group)||"other";a.hasOwnProperty(i)||(a[i]=[{label:(null===(n=e.i18n)||void 0===n?void 0:n[i])||i,isGroupTitle:1}]);a[i].push(t)});var s=this.$_state.dynamicDataActiveGroups;return t=[],Object.keys(a).forEach(function(n){var i;if(o)t=t.concat(a[n]);else{var r=(null===(i=e.i18n)||void 0===i?void 0:i[n])||n;s.includes(r)?t=t.concat(a[n]):t.push({label:r,isGroupTitle:1})}}),t},isQFCustomField:function(){if(!this.bricks.enableQueryFiltersIntegration)return!1;var e=this.$_activeElement.value.name||"";return"customFieldKey"===this.controlKey&&["filter-radio","filter-checkbox","filter-select","filter-search","filter-range","filter-datepicker"].includes(e)},placeholder:function(){var e;return(null===(e=this.control)||void 0===e?void 0:e.placeholder)||this.i18n.dynamicData}},methods:{saveTag:function(){this.togglePinnedTag({name:this.searchFor}),this.searchFor=void 0},initDropdown:function(){var e=this;this.$nextTick(function(){e.$refs.searchable&&e.$refs.searchable.focus()})},toggleDropdown:function(){this.allOptions.length&&(this.showDropdown=!this.showDropdown,this.showDropdown?this.initDropdown():this.closeMe())},isGroupTitle:function(e){return null==e?void 0:e.isGroupTitle},isGroupExpanded:function(e){return this.isGroupTitle(e)&&(null==e?void 0:e.label)&&this.$_state.dynamicDataActiveGroups.includes(e.label)},tagIsPinned:function(e){return!(this.$_state.dynamicDataTagsPinned.length<=0)&&this.$_state.dynamicDataTagsPinned.includes(e.name)},togglePinnedTag:function(e){var t=e.name,n=this.$_state.dynamicDataTagsPinned.indexOf(t);n>-1?(this.$_state.dynamicDataTagsPinned.splice(n,1),this.$_showMessage("".concat(this.i18n.dynamicDataTag," ").concat(this.i18n.unpinned,": ").concat(t))):(this.$_state.dynamicDataTagsPinned.push(t),this.$_showMessage("".concat(this.i18n.dynamicDataTag," ").concat(this.i18n.pinned,": ").concat(t))),this.$_state.dynamicDataTagsPinned.length?localStorage.setItem("brx_builder_dynamic_data_pinned_tags",JSON.stringify(this.$_state.dynamicDataTagsPinned)):localStorage.removeItem("brx_builder_dynamic_data_pinned_tags")},insertTag:function(e){var t={name:e};this.$emit("input",t),this.$emit("update:value",t),this.closeMe()},optionIsSelected:function(e){return e===this.value},closeMe:function(e){var t=!!e&&e.target.closest(".dynamic-tag-picker-button");t&&t===this.$refs.icon||(this.$emit("closeMe",!0),this.showDropdown=!1,this.searchFor=void 0,this.selectedIndex=-1)},clearValue:function(){this.$emit("input",""),this.$emit("update:value",""),this.closeMe()},addOption:function(e){if(this.isGroupTitle(e)){var t=null!=e&&e.label?this.$_state.dynamicDataActiveGroups.indexOf(e.label):-1;return-1!==t?this.$_state.dynamicDataActiveGroups.splice(t,1):null!=e&&e.label&&this.$_state.dynamicDataActiveGroups.push(e.label),void localStorage.setItem("brx_builder_dynamic_data_active_groups",JSON.stringify(this.$_state.dynamicDataActiveGroups))}this.$emit("input",e),this.$emit("update:value",e),this.closeMe()},setSelectedIndex:function(e){if(this.isOpen){var t=this.currentOptions.length;switch(e.key){case"Enter":if(-1!==this.setSelectedIndex){var n=this.currentOptions[this.selectedIndex];this.addOption(n)}break;case"Escape":this.closeMe();break;case"ArrowUp":this.selectedIndex<=0?this.selectedIndex=t-1:this.selectedIndex>0&&this.selectedIndex--,this.$refs.dropdown.scrollTop-=30;break;case"ArrowDown":this.selectedIndex<t-1?this.selectedIndex++:this.selectedIndex>=t-1&&(this.selectedIndex=0,this.$refs.dropdown.scrollTop=0),this.selectedIndex>0&&(this.$refs.dropdown.scrollTop+=30)}}},calculateDropdownWidth:function(){var e,t=this;null!==(e=this.control)&&void 0!==e&&e.inline&&this.$nextTick(function(){var e,n=t.$el?null===(e=t.$el.parentNode.closest(".control-inner"))||void 0===e?void 0:e.offsetWidth:0;t.dropdownStyle={width:n?n+"px":"auto"}})}},mounted:function(){document.addEventListener("keyup",this.setSelectedIndex)},beforeUnmount:function(){document.removeEventListener("keyup",this.setSelectedIndex)},watch:{"$_state.panelWidth":{handler:function(){this.isOpen&&this.calculateDropdownWidth()}},isOpen:function(){this.bricks.builderDynamicDropdownExpand&&this.syncExpand&&(this.$_state.isPanelExpanded=this.isOpen),this.isOpen&&(this.initDropdown(),this.calculateDropdownWidth())}}};var hwe=(0,xx.A)(pwe,[["render",function(e,t,n,i,r,o){var a=$r("icon"),s=Nr("clickaway");return Ta(),Ma(Ca,null,[qa("div",{class:te(["dynamic-tag-picker-button",{open:n.isOpen}]),"data-balloon":e.i18n.dynamicData,"data-balloon-pos":"top-right",ref:"icon",onClick:t[0]||(t[0]=function(t){return e.$emit("toggle")})},[Ha(a,{name:"flash"})],10,Xke),n.isOpen?Xn((Ta(),Ma("div",{key:0,class:te(["dynamic-tag-panel",{expand:n.isOpen||r.showDropdown,highlight:r.highlight}]),"data-control":"select",tabindex:"0",onMouseenter:t[5]||(t[5]=function(e){return r.highlight=!0}),onMouseleave:t[6]||(t[6]=function(e){return r.highlight=!1})},[qa("div",{class:"options-wrapper",style:Y(r.dropdownStyle)},[e.$_state.dynamicDataTagsPinned.length&&!o.isQFCustomField?(Ta(),Ma("ul",Zke,[(Ta(!0),Ma(Ca,null,Rr(e.$_state.dynamicDataTagsPinned,function(t,n){return Ta(),Ma("li",{key:n,onClick:function(e){return o.insertTag(t)}},[qa("span",{textContent:he(t)},null,8,twe),Ha(a,{name:"pin",title:e.i18n.unpin,onClick:bc(function(e){return o.togglePinnedTag({name:t})},["stop"])},null,8,["title","onClick"])],8,ewe)}),128))])):Qa("",!0),qa("div",nwe,[Xn(qa("input",{class:"searchable",type:"text","onUpdate:modelValue":t[1]||(t[1]=function(e){return r.searchFor=e}),ref:"searchable",spellcheck:"false",placeholder:e.i18n.searchTag},null,8,iwe),[[ac,r.searchFor]]),Xn(Ha(a,{name:"pin",class:"save-tag","data-balloon":e.$_state.dynamicDataTagsPinned.includes(r.searchFor)?e.i18n.unpin:e.i18n.pin,"data-balloon-pos":"top-right",onClick:t[2]||(t[2]=function(e){return o.saveTag()})},null,8,["data-balloon"]),[[pl,r.searchFor&&r.searchFor.includes("{")&&r.searchFor.includes("}")]])]),qa("ul",rwe,[(Ta(!0),Ma(Ca,null,Rr(o.currentOptions,function(n,i){return Ta(),Ma("li",{key:i,class:te([{hover:i===r.selectedIndex},{selected:o.optionIsSelected(n)},{title:o.isGroupTitle(n)},{caret:o.isGroupTitle(n)},{expand:o.isGroupTitle(n)&&o.isGroupExpanded(n)}]),"data-index":i,onMousedown:function(e){return o.addOption(n)},onMouseover:function(e){return r.selectedIndex=i}},[qa("span",{innerHTML:n.label,title:null==n?void 0:n.name},null,8,awe),o.isGroupTitle(n)?(Ta(),La(a,{key:0,name:"arrow-right",title:o.isGroupExpanded(n)?e.i18n.collapse:e.i18n.expand},null,8,["title"])):(Ta(),La(a,{key:1,name:"pin",class:te(["pin",{pinned:o.tagIsPinned(n)}]),title:o.tagIsPinned(n)?e.i18n.unpin:e.i18n.pin,onMousedown:t[3]||(t[3]=bc(function(){},["stop"])),onMouseup:t[4]||(t[4]=bc(function(){},["stop"])),onClick:bc(function(e){return o.togglePinnedTag(n)},["stop"])},null,8,["class","title","onClick"]))],42,owe)}),128)),Xn(qa("li",{class:"title",textContent:he(e.i18n.noDynamicDataFound)},null,8,swe),[[pl,o.currentOptions.length<=0]])],512)],4)],34)),[[s,o.closeMe]]):Qa("",!0)],64)}]]),fwe=["data-balloon"],mwe={class:"options-wrapper"},gwe={class:"searchable-wrapper"},vwe=["placeholder"],ywe=["onClick"],bwe=["textContent"],kwe=["data-index","onMouseenter","onClick"],wwe=["textContent","title"],_we=["title","textContent"],Cwe={key:0,class:"dropdown"},xwe=["textContent"];function Swe(e){return function(e){if(Array.isArray(e))return Ewe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ewe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ewe(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ewe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var Awe={emits:["toggle","closeMe","input","update:value"],props:{source:{type:String,required:!1,default:"variables"},value:{required:!1},control:{type:Object,required:!0,default:function(){return{context:"text",placeholder:this.i18n.variables}}},controlKey:{type:String,required:!1},parentKey:{type:String,required:!1},parentType:{type:String,required:!1},isOpen:{type:Boolean,default:!1},syncExpand:{type:Boolean,default:!0},spacingDirection:{type:String,required:!1},spacingLinkState:{type:String,required:!1}},data:function(){return{selectedId:-1,searchFor:"",highlight:!1,showDropdown:!1}},computed:{globalVariables:function(){return this.$_state.globalVariables},categories:function(){var e=this,t=this.$_clone(this.$_state.globalVariablesCategories)||[];return t.unshift({id:"_uncategorized",name:this.i18n.uncategorized}),t.forEach(function(t){t.expand=e.$_state.globalVariablesCategoriesExpanded.includes(t.id)}),1===t.length&&(t[0].expand=!0),t},currentOptions:function(){var e=this;if(this.$_state.globalVariableSuggestions.length)return this.$_state.globalVariableSuggestions;var t=this.$_clone(this.$_state.globalVariables);return t.length?(this.searchFor&&(t=t.filter(function(t){return t.name.toLowerCase().includes(e.searchFor.toLowerCase())})),t.forEach(function(t,n){t.index=n,null!=t&&t.category&&e.$_state.globalVariablesCategories.some(function(e){return e.id===t.category})||(t.category="_uncategorized")}),t):[]},currentOptionsInOrder:function(){var e=this,t=[];return this.categories.forEach(function(n){var i=e.getClassesByCategoryId(n.id);t=[].concat(Swe(t),Swe(i))}),t}},methods:{getOptionKey:function(e,t,n){return"".concat(t,"-").concat((null==e?void 0:e.id)||(null==e?void 0:e.name)||"variable","-").concat(n)},getClassesByCategoryId:function(e){return this.$_state.globalVariableSuggestions.length?this.$_clone(this.$_state.globalVariableSuggestions).filter(function(t){return t.category===e||"_uncategorized"===e&&!(null!=t&&t.category)}):"_uncategorized"!==e||this.$_state.globalVariablesCategories.length?this.currentOptions.filter(function(t){return(null==t?void 0:t.category)&&t.category===e}):this.currentOptions},toggleCategory:function(e){e.expand?delete e.expand:e.expand=!0;var t=this.$_clone(this.$_state.globalVariablesCategoriesExpanded);e.expand&&!t.includes(e.id)?t.push(e.id):t=t.filter(function(t){return t!==e.id}),this.$_state.globalVariablesCategoriesExpanded=t,localStorage.setItem("brx_builder_global_variables_active_categories",t.join(","))},optionIsSelected:function(e){return e===this.value},closeMe:function(e){var t=this,n=!!e&&e.target.closest(".variable-picker-button");n&&n===this.$refs.icon||(this.$emit("closeMe",!0),this.showDropdown=!1,this.searchFor="",this.selectedId=-1,setTimeout(function(){t.$_state.globalVariableSuggestions=[]},0))},clearValue:function(){this.$emit("input",""),this.$emit("update:value",""),this.closeMe()},addOption:function(e){this.$emit("input",e),this.$emit("update:value",e),this.closeMe()},setSelectedId:function(e){var t,n,i=this;if(this.isOpen){var r=this.currentOptionsInOrder;this.searchFor||(r=r.filter(function(e){return!(null!=e&&e.category)||i.$_state.globalVariablesCategoriesExpanded.includes(e.category)}));var o=r.length,a=r.findIndex(function(e){return e.id===i.selectedId});switch(e.key){case"Enter":if(-1!==a){var s=r[a];this.addOption(s)}break;case"Escape":this.closeMe();break;case"ArrowUp":var l=a<=0?o-1:a-1;this.selectedId=null===(t=r[l])||void 0===t?void 0:t.id,this.$refs.dropdown.scrollTop-=32;break;case"ArrowDown":var c=a<o-1?a+1:0;this.selectedId=null===(n=r[c])||void 0===n?void 0:n.id,this.$refs.dropdown.scrollTop+=32}}},openVariablesManager:function(){this.$_state.popup="styles",this.$_state.popupTab="variables"}},mounted:function(){var e=this;document.addEventListener("keyup",this.setSelectedId),localStorage.getItem("brx_builder_global_variables_active_categories")&&(this.$_state.globalVariablesCategoriesExpanded=localStorage.getItem("brx_builder_global_variables_active_categories").split(","),this.$_state.globalVariablesCategoriesExpanded=this.$_state.globalVariablesCategoriesExpanded.filter(function(t){return e.$_state.globalVariablesCategories.some(function(e){return e.id===t})}))},beforeUnmount:function(){document.removeEventListener("keyup",this.setSelectedId)},watch:{"$_state.globalVariableSuggestions":{handler:function(e,t){var n=this;("INPUT"===document.activeElement.tagName?document.activeElement.parentNode.parentNode.contains(this.$el):null)&&setTimeout(function(){(e.length&&e.length!==t.length&&!n.isOpen||t.length&&!e.length&&n.isOpen)&&n.$emit("toggle")},0)}},value:function(e){var t=this;if(this.$_state.cssPreviewOnHover="",!this.$_state.isBroadcasting&&!this.bricks.disableVariablesManager&&this.$_state.globalVariables.length&&"BODY"!==document.activeElement.tagName)if("string"!=typeof e||!(e.startsWith("var")||e.startsWith("--")||/^[a-zA-Z]/.test(e))||e.includes("(")&&!e.startsWith("var("))this.$_state.globalVariableSuggestions=[];else{var n=[],i=e.replace("var","").replace("(","").replace("--","").replace(")","").trim(),r=this.$_clone(this.$_state.globalVariables)||[];if("color-palettes"===this.source){var o=this.$_clone(this.$_state.colorPalette).flatMap(function(e){return e.colors});o.forEach(function(e){null!=e&&e.name||null==e||!e.raw||(e.name=e.raw,e.value=(null==e?void 0:e.light)||(null==e?void 0:e.dark))}),r=r.concat(o)}var a=0;r.length&&r.filter(function(e){var t=null==e?void 0:e.name;t&&t.includes(i)&&(e.index=a++,n.push(e))}),this.$_state.globalVariableSuggestions=n,setTimeout(function(){t.isOpen&&(t.searchFor=i,t.selectedId=-1)},10)}},isOpen:function(){this.isOpen||(this.searchFor="",this.$_state.globalVariableSuggestions=[])},selectedId:function(e){if(this.bricks.variablePreviewOnHover){var t,n=this.currentOptionsInOrder.find(function(t){return t.id===e}),i=null!=n&&n.name?"var(--".concat(n.name,")"):null;if("color"===(null===(t=this.$parent.$parent)||void 0===t||null===(t=t.control)||void 0===t?void 0:t.type)&&i&&(i={raw:i}),["top","bottom","left","right"].includes(this.spacingDirection)){var r={};"all"===this.spacingLinkState?r={top:i,right:i,bottom:i,left:i}:"opposites"===this.spacingLinkState?"top"===this.spacingDirection||"bottom"===this.spacingDirection?r={top:i,bottom:i}:"left"!==this.spacingDirection&&"right"!==this.spacingDirection||(r={left:i,right:i}):r[this.spacingDirection]=i,i=r}this.$_generatePreviewOnHoverCSS(i)}}}};var Dwe=(0,xx.A)(Awe,[["render",function(e,t,n,i,r,o){var a=this,s=$r("icon"),l=Nr("clickaway");return Ta(),Ma(Ca,null,[qa("div",{class:te(["variable-picker-button",{open:n.isOpen}]),"data-balloon":e.i18n.variables,"data-balloon-pos":"top-right",ref:"icon",onClick:t[0]||(t[0]=function(t){return e.$emit("toggle")})},[Ha(s,{name:"css3"})],10,fwe),n.isOpen?Xn((Ta(),Ma("div",{key:0,class:te({expand:n.isOpen||r.showDropdown,highlight:r.highlight}),"data-control":"select",tabindex:"0",onMouseenter:t[5]||(t[5]=function(e){return r.highlight=!0}),onMouseleave:t[6]||(t[6]=function(e){return r.highlight=!1})},[qa("div",mwe,[qa("div",gwe,[Xn(qa("input",{class:"searchable",type:"text","onUpdate:modelValue":t[1]||(t[1]=function(e){return r.searchFor=e}),ref:"searchable",spellcheck:"false",placeholder:e.i18n.searchVariable},null,8,vwe),[[ac,r.searchFor]]),Ha(s,{name:"settings","data-balloon":"".concat(e.i18n.manage," (").concat(e.i18n.variables,")"),"data-balloon-pos":"top-right",onClick:t[2]||(t[2]=bc(function(e){return o.openVariablesManager()},["stop"]))},null,8,["data-balloon"])]),qa("div",{ref:"dropdown",class:"dropdown",onMouseleave:t[4]||(t[4]=function(e){return r.selectedId=-1})},[(Ta(!0),Ma(Ca,null,Rr(o.categories,function(n){return Ta(),Ma("ul",{key:null==n?void 0:n.id},[Xn(qa("li",{class:te(["variable-picker-item","title","category","caret",{expand:n.expand}]),onClick:bc(function(e){return o.toggleCategory(n)},["stop"]),onMouseenter:t[3]||(t[3]=function(e){return r.selectedId=-1})},[qa("span",{textContent:he(n.name)},null,8,bwe),Ha(s,{name:"arrow-right"})],42,ywe),[[pl,o.categories.length>1&&o.getClassesByCategoryId(null==n?void 0:n.id).length]]),(Ta(!0),Ma(Ca,null,Rr(o.getClassesByCategoryId(n.id),function(t,i){return Xn((Ta(),Ma("li",{key:o.getOptionKey(t,n.id,i),class:te(["variable-picker-item",{"hide-value":e.bricks.builderVariablePickerHideValue,hover:r.selectedId===t.id,selected:o.optionIsSelected(t)}]),"data-index":i,onMouseenter:function(e){return r.selectedId=t.id},onClick:bc(function(e){return o.addOption(t)},["stop"])},[qa("span",{textContent:he(t.name),title:e.bricks.builderVariablePickerHideValue?t.value:t.name},null,8,wwe),qa("span",{class:"option-value",title:t.value,textContent:he(t.value)},null,8,_we)],42,kwe)),[[pl,r.searchFor||1===o.categories.length||a.$_state.globalVariablesCategoriesExpanded.includes(null==n?void 0:n.id)]])}),128))])}),128)),1!==o.categories.length||o.currentOptions.length?Qa("",!0):(Ta(),Ma("ul",Cwe,[qa("li",{class:"title",textContent:he(e.i18n.noVariablesFound)},null,8,xwe)]))],544)])],34)),[[l,o.closeMe]]):Qa("",!0)],64)}]]),Twe={"data-control":"file-import"},Iwe=["textContent"],Owe=["id"],Pwe=["for","textContent"],Fwe=["textContent"];var $we={emits:["imported","closeMe"],props:{control:{type:Object,required:!0,default:function(){return{fileType:"application/json",schema:[],dragAndDropNote:""}}},results:{type:Array,required:!1}},data:function(){return{inputId:this.$_generateId(),dragging:!1,importingNrFiles:0,filesContent:[],localResults:[]}},computed:{infoMessages:function(){return this.results.length?this.localResults.concat(this.results):this.localResults}},methods:{readFileContent:function(e){return new Promise(function(t,n){var i=new FileReader;i.onload=function(e){var n=e.target.result;t({data:n})},i.readAsText(e)})},importFiles:function(e){var t=this,n=e.length;if(!(e&&n<=0)){this.importingNrFiles=n,this.localResults=[];for(var i=function(){var n=e[r];t.readFileContent(n).then(function(e){if(t.control.fileType!==n.type)t.localResults.push({text:t.i18n.fileNotImportedWrongFormat.replace("%s",n.name),type:"error"});else{var i="application/json"===t.control.fileType?JSON.parse(e.data):e.data,r=!0;t.control.schema&&t.control.schema.forEach(function(e){r=i.hasOwnProperty(e)&&r}),r?t.filesContent.push(i):t.localResults.push({text:t.i18n.fileNotImportedWrongFormat.replace("%s",n.name),type:"error"})}t.importingNrFiles-=1})},r=0;r<n;r++)i()}},onDrop:function(e){e.preventDefault(),e.stopPropagation(),this.dragging=!1,this.importFiles(e.dataTransfer.files)},onDragOver:function(e){e.preventDefault(),e.stopPropagation(),this.dragging=!0},onDragLeave:function(e){e.preventDefault(),e.stopPropagation(),this.dragging=!1},onNoDroppable:function(e){e.preventDefault(),e.dataTransfer.effectAllowed="none",e.dataTransfer.dropEffect="none"},closeControl:function(){this.$emit("closeMe",!0),this.localResults=[]}},mounted:function(){window.addEventListener("dragenter",this.onNoDroppable),window.addEventListener("dragover",this.onNoDroppable),window.addEventListener("drop",this.onNoDroppable),this.$refs.bricksFilesImport.addEventListener("dragover",this.onDragOver),this.$refs.bricksFilesImport.addEventListener("dragleave",this.onDragLeave),this.$refs.bricksFilesImport.addEventListener("drop",this.onDrop)},beforeUnmount:function(){window.removeEventListener("dragenter",this.onNoDroppable),window.removeEventListener("dragover",this.onNoDroppable),window.removeEventListener("drop",this.onNoDroppable),this.$refs.bricksFilesImport.removeEventListener("dragover",this.onDragOver),this.$refs.bricksFilesImport.removeEventListener("dragleave",this.onDragLeave),this.$refs.bricksFilesImport.removeEventListener("drop",this.onDrop)},watch:{importingNrFiles:function(e,t){0===e&&t>0&&(this.$emit("imported",this.filesContent),this.filesContent=[])}}};const Mwe=(0,xx.A)($we,[["render",function(e,t,n,i,r,o){var a=$r("control-info");return Ta(),Ma("div",Twe,[qa("form",{class:te({dragging:this.dragging}),ref:"bricksFilesImport",ondrop:""},[Xn(qa("p",{textContent:he(n.control.dragAndDropNote)},null,8,Iwe),[[pl,e.$_importHasDnDSupport]]),qa("input",{type:"file",id:"import-input-".concat(r.inputId),name:"files[]",multiple:"",onChange:t[0]||(t[0]=function(e){return o.importFiles(e.target.files)})},null,40,Owe),qa("label",{class:"button",for:"import-input-".concat(r.inputId),textContent:he(e.i18n.selectFilesToImport)},null,8,Pwe)],2),(Ta(!0),Ma(Ca,null,Rr(o.infoMessages,function(e,t){return Ta(),La(a,{class:te([e.type]),key:t,control:{content:e.text}},null,8,["class","control"])}),128)),qa("button",{class:"cancel",onClick:t[1]||(t[1]=bc(function(){return o.closeControl&&o.closeControl.apply(o,arguments)},["stop"])),textContent:he(o.infoMessages.length>0?e.i18n.close:e.i18n.cancel)},null,8,Fwe)])}]]);var Lwe=Mwe,Nwe=["data-balloon"];var jwe={methods:{openVisualGridBuilder:function(){this.$_state.popup="visual-grid-builder"}}};const Bwe=(0,xx.A)(jwe,[["render",function(e,t,n,i,r,o){var a=$r("icon");return Ta(),Ma("div",{class:"control-action-button","data-balloon-pos":"top-right","data-balloon":e.i18n.visualGridBuilder,onClick:t[0]||(t[0]=function(){return o.openVisualGridBuilder&&o.openVisualGridBuilder.apply(o,arguments)})},[Ha(a,{name:"grid"})],8,Nwe)}]]);var Rwe=Bwe,Vwe={class:"bricks-structure-list"};var qwe={emits:["expandParent"],props:{elements:{required:!0,type:Array,default:function(){return[]}}},data:function(){return{draggableOptions:{bound:10,directions:["top","bottom"],draggableClass:"draggable",handleClass:"bricks-draggable-handle"}}},methods:{expandParent:function(){this.$emit("expandParent")}}};var Hwe=(0,xx.A)(qwe,[["render",function(e,t,n,i,r,o){var a=$r("structure-element"),s=Nr("draggable");return Xn((Ta(),Ma("ul",Vwe,[(Ta(!0),Ma(Ca,null,Rr(n.elements,function(e,t){return Ta(),La(a,{key:null==e?void 0:e.id,index:t,element:e,"data-id":null==e?void 0:e.id,"data-index":t,"data-parent-id":null==e?void 0:e.parent,onExpandParent:o.expandParent},null,8,["index","element","data-id","data-index","data-parent-id","onExpandParent"])}),128))])),[[s,r.draggableOptions]])}]]),zwe=["id"],Uwe=["title"],Wwe=["textContent"],Gwe=["value"],Kwe={key:1,class:"actions"},Qwe=["title"],Ywe=["textContent"],Jwe={class:"element-states"};var Xwe={props:{index:{required:!0,type:Number},element:{type:Object}}};var Zwe={props:{element:{required:!0,type:Object}},computed:{elementId:function(){return this.element.id},iconClass:function(){return this.$_state.deleteItem===this.elementId?"check":"trash"}},methods:{deleteElement:function(){this.$_state.deleteItem!==this.elementId&&this.bricks.confirmDelete?this.$_deleteConfirmation(this.elementId):this.$_state.deleteElement=this.element}}};function e_e(e){return e_e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e_e(e)}function t_e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function n_e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?t_e(Object(n),!0).forEach(function(t){i_e(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t_e(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i_e(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=e_e(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=e_e(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==e_e(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r_e={components:{ActionClone:(0,xx.A)(Xwe,[["render",function(e,t,n,i,r,o){var a=$r("icon");return Ta(),Ma("li",{class:te(["action","clone",{disabled:!e.$_isCloneable(n.element)}]),onClick:t[0]||(t[0]=bc(function(t){return e.$_isCloneable(n.element)?e.$_cloneElement({element:n.element,index:n.index}):null},["stop","prevent"]))},[Ha(a,{name:"clone"})],2)}]]),ActionDelete:(0,xx.A)(Zwe,[["render",function(e,t,n,i,r,o){var a=$r("icon");return Ta(),Ma("li",{class:te(["action",e.$_state.deleteItem?"confirm":"delete",{disabled:!e.$_isDeletable(n.element)}]),onClick:t[0]||(t[0]=bc(function(t){return e.$_isDeletable(n.element)?o.deleteElement():null},["stop","prevent"]))},[Ha(a,{name:o.iconClass},null,8,["name"])],2)}]])},emits:["expandParent"],props:{element:{required:!0,type:Object,default:function(){return{}}},index:{required:!0,type:Number}},data:function(){return{expand:!1,displayNone:!1,hasLoop:!1,htmlTag:"",localLabel:null}},computed:{isReadonly:{get:function(){return!!this.isVirtualSlot||!this.$_state.renameMode},set:function(e){this.$_state.renameMode=!e}},hideElementTooltip:function(){if(!this.hideElement)return"";var e="";return this.hideElementBuilder&&this.hideElementFrontend?e="".concat(this.i18n.hideElement," (").concat(this.i18n.builder," + ").concat(this.i18n.frontend,")"):this.hideElementBuilder?e="".concat(this.i18n.hideElement," (").concat(this.i18n.builder,")"):this.hideElementFrontend&&(e="".concat(this.i18n.hideElement," (").concat(this.i18n.frontend,")")),e},showElementActions:function(){var e,t,n;return!this.isVirtualSlot&&((this.bricks.structureDuplicateElement||this.bricks.structureDeleteElement)&&(!this.activeComponent||(null===(e=this.activeComponent)||void 0===e?void 0:e.id)&&(null===(t=this.activeComponent)||void 0===t?void 0:t.id)!==(null===(n=this.element)||void 0===n?void 0:n.id)))},canExpand:function(){return this.isComponentRoot?this.hasChildren&&this.activeComponent:this.hasChildren},isDraggable:function(){var e=this.$_isNestable(this.element);return!!e&&(!this.isComponentRoot&&e)},isActive:function(){var e,t,n,i,r;return!(!this.$_state.activeId||this.$_state.activeId!==(null===(e=this.element)||void 0===e?void 0:e.id))||(null!==(t=this.$_state.activeElement)&&void 0!==t&&t.cid&&this.$_state.activeElement.cid===(null===(n=this.element)||void 0===n?void 0:n.id)?(null===(i=this.activeComponent)||void 0===i?void 0:i.id)===(null===(r=this.element)||void 0===r?void 0:r.id):void 0)},isComponent:function(){var e;return!(null===(e=this.element)||void 0===e||!e.cid)||(this.activeComponent?this.isActive:void 0)},isComponentRoot:function(){return this.$_isComponentRoot(this.element)},component:function(){var e;return null!==(e=this.element)&&void 0!==e&&e.cid?this.$_getComponentById(this.element.cid):null},activeComponent:function(){return this.$_state.activeComponent},hasUnsignedCode:function(){var e,t;return!!this.$_state.unsignedCodeIds.length&&(!!this.$_state.unsignedCodeIds.includes(null===(e=this.element)||void 0===e?void 0:e.id)||(this.globalElement?this.$_state.unsignedCodeIds.includes(null===(t=this.globalElement)||void 0===t?void 0:t.id):void 0))},globalElement:function(){return this.$_getGlobalElement(this.element)},finalElement:function(){var e=this.$_getFinalElement(this.element);if(this.isComponent&&e){var t=this.$_getComponent(this.element);if(t){var n=this.$_getComponentSettings(t,this.element);return n_e(n_e({},e),{},{settings:n_e({},n)})}}return e},elementName:function(){var e;return null===(e=this.finalElement)||void 0===e?void 0:e.name},elementLabel:function(){return null!==this.localLabel?this.localLabel:this.$_getElementLabel(this.element)},elementConfig:function(){return this.$_getElementConfig(this.elementName)},breakpointHasCustomCss:function(){var e,t,n=this.$_getControlKeyActive("_cssCustom");return this.$_activeClass.value&&this.isActive?null===(t=this.$_activeClass.value)||void 0===t||null===(t=t.settings)||void 0===t?void 0:t[n]:null===(e=this.finalElement)||void 0===e||null===(e=e.settings)||void 0===e?void 0:e[n]},hasInteractions:function(){var e,t;return this.$_activeClass.value&&this.isActive?null===(t=this.$_activeClass.value)||void 0===t||null===(t=t.settings)||void 0===t?void 0:t._interactions:null===(e=this.finalElement)||void 0===e||null===(e=e.settings)||void 0===e?void 0:e._interactions},iconTitle:function(){var e,t;return(null===(e=this.elementConfig)||void 0===e?void 0:e.label)||(null===(t=this.finalElement)||void 0===t?void 0:t.label)},iconClassName:function(){var e,t;return null!==(e=this.finalElement)&&void 0!==e&&e.icon?this.finalElement.icon:(null===(t=this.elementConfig)||void 0===t?void 0:t.icon)||"ti-na"},children:function(){var e,t,n=this;if(!this.$_isNestable(this.element))return[];if(this.activeComponent){var i,r,o=this.activeComponent;return null!==(i=this.element)&&void 0!==i&&i.cid&&this.element.cid!==(null===(r=o)||void 0===r?void 0:r.id)&&(o=this.$_getComponentById(this.element.cid)),this.$_getComponentChildren(o,this.element)}if(null!==(e=this.element)&&void 0!==e&&e.cid&&!this.activeComponent){var a=this.$_getComponentById(this.element.cid);if(null!=a&&a.elements){var s=[],l=new Map,c=new Set;a.elements.forEach(function(e){l.set(e.id,e)});var u=function(e){if(!c.has(e)){c.add(e);var t=l.get(e);t&&("slot"===t.name&&s.push(t),t.children&&t.children.length&&t.children.forEach(function(e){return u(e)}))}};if(a.elements.filter(function(e){return 0==e.parent}).forEach(function(e){return u(e.id)}),s.length>0)return s.map(function(e){var t;return n_e(n_e({},e),{},{id:"vslot-".concat(n.element.id,"-").concat(e.id),slotId:e.id,instanceId:n.element.id,parent:n.element.id,isVirtualSlot:!0,children:(null===(t=n.element)||void 0===t||null===(t=t.slotChildren)||void 0===t?void 0:t[e.id])||[]})})}}return this.isVirtualSlot&&null!==(t=this.element)&&void 0!==t&&t.children?this.element.children.map(function(e){var t=n.$_dynamicElements.value.find(function(t){return t.id===e});return t?n_e(n_e({},t),{},{parent:n.element.id}):null}).filter(Boolean):this.$_getElementChildren(this.element)},hasChildren:function(){var e,t=this.children.length>0;return t&&null!==(e=this.element)&&void 0!==e&&e.cid&&!this.activeComponent&&this.children.some(function(e){return e.isVirtualSlot})&&(this.expand=!0),t},displaySettingKey:function(){return this.$_getControlKeyActive("_display")},hideElementBuilder:function(){var e;return null===(e=this.finalElement)||void 0===e||null===(e=e.settings)||void 0===e?void 0:e._hideElementBuilder},hideElementFrontend:function(){var e;return null===(e=this.finalElement)||void 0===e||null===(e=e.settings)||void 0===e?void 0:e._hideElementFrontend},hideElement:function(){return this.hideElementBuilder||this.hideElementFrontend},isSlotElement:function(){var e;return"slot"===(null===(e=this.finalElement)||void 0===e?void 0:e.name)},isVirtualSlot:function(){var e;return!0===(null===(e=this.element)||void 0===e?void 0:e.isVirtualSlot)}},methods:{onDragenter:function(){this.canExpand&&this.$_state.draggingElement&&!this.$_state.draggingId&&(this.expand=!0)},onInput:function(e){this.$_stopPostMessages();var t=this.$_state.activeElement,n=e.target.value;n?t.label=n:delete t.label,this.localLabel=n},onBlur:function(){var e=this;this.localLabel=null,setTimeout(function(){var t=document.activeElement;(null==t?void 0:t.matches(".structure-item .title input"))||(e.$_state.renameMode=!1)},50)},onDblclick:function(){var e=this;this.isVirtualSlot||(this.$_state.renameMode=!0,this.$nextTick(function(){e.$refs.inputLabel&&(e.$refs.inputLabel.focus(),e.$refs.inputLabel.select())}))},exitRenameMode:function(){this.$_state.renameMode=!1,this.localLabel=null},onKeydown:function(e){"Tab"!==e.key&&9!==e.keyCode||this.onTabKey(e)},onTabKey:function(e){var t=this;e.preventDefault();var n=Array.from(document.querySelectorAll(".structure-item")),i=e.target.closest(".structure-item"),r=n.indexOf(i);if(-1!==r){var o=n[(r+(e.shiftKey?-1:1)+n.length)%n.length];if(o){var a=o.querySelector(".title input, .title span.readonly");if(a){var s=function(e){return e.click()};if(this.$_state.renameMode)return s(o),void this.$nextTick(function(){t.$_state.renameMode=!0,t.$nextTick(function(){var e=o.querySelector(".title input");e&&(e.focus(),e.select())})});a.focus(),s(o)}}}},editElement:function(e){var t=this;if(!e.target.closest(".action.delete")){this.$_state.isChangingSelection=!0;var n=this.element.id,i=this.$_state.activeId;this.$_state.selectionSource="structure",this.$_state.activeId=n,this.$_state.activePanel="element",this.$_state.scrollToElementId=n,this.isVirtualSlot?this.$_state.activeVirtualSlot={slotId:this.element.slotId,instanceId:this.element.instanceId}:this.$_state.activeVirtualSlot=null,this.$nextTick(function(){t.$_selectElements(e,n,i),t.$nextTick(function(){t.$_state.isChangingSelection=!1,t.$refs.labelSpan&&t.$refs.labelSpan.focus()})})}},setLabel:function(e,t){this.isComponentRoot||(e.label=t)},toggleExpand:function(){this.canExpand&&(this.expand=!this.expand)},showCustomCss:function(){this.$_state.activePanelTab="style",this.$_state.activePanelGroup="_css",this.$_state.showInteractions=!1,this.$_state.showConditions=!1,this.$_state.searchControlKeyword=""},showQueryLoop:function(){var e=this;this.$_state.showInteractions=!1,this.$_state.showConditions=!1,this.$_state.searchControlKeyword="",this.$nextTick(function(){e.$_state.activePanelTab="content",e.$_state.activeControlKey="query",e.$nextTick(function(){return e.$_state.activeControlKey=null})})},isHidden:function(){var e,t;this.hasLoop=null===(e=this.finalElement)||void 0===e||null===(e=e.settings)||void 0===e?void 0:e.hasLoop;var n=null===(t=this.finalElement)||void 0===t?void 0:t.settings;"none"===(null==n?void 0:n[this.displaySettingKey])?this.displayNone=!0:null!=n&&n[this.displaySettingKey]&&"none"!==(null==n?void 0:n[this.displaySettingKey])?this.displayNone=!1:this.displayNone="none"===this.$_getNextBreakpointSetting(n,"_display",!this.$_isMobileFirst.value)},expandParent:function(){this.canExpand&&(this.expand=!0,this.$emit("expandParent"))},getElementHtmlTag:function(){var e=this.$_getElementNode(this.element,"iframe");this.htmlTag=e?null==e?void 0:e.tagName.toLowerCase():""}},watch:{"$_state.activeComponent.id":{handler:function(e){var t;this.$_state.activeComponent&&(this.expand=e===(null===(t=this.finalElement)||void 0===t?void 0:t.id))}},hasChildren:function(e,t){e&&!t&&(this.expand=!0)},isActive:function(e){this.localLabel=e?this.$_getElementLabel(this.element):null,e&&this.bricks.structureAutoSync&&this.$_state.showStructure&&this.$emit("expandParent")},"finalElement.settings":{handler:"isHidden",deep:!0,immediate:!0},"$_state.scrollToElementId":{handler:function(e){var t=this;e&&setTimeout(function(){t.$_state.scrollToElementId=!1},400)}},"$_state.structureExpandAll":{handler:function(e){this.canExpand&&(this.expand=e)},immediate:!0},"$_state.breakpointActive":{handler:"isHidden"}}};const o_e=(0,xx.A)(r_e,[["render",function(e,t,n,i,r,o){var a,s,l,c,u,d,p,h,f,m,g,v,y,b=$r("icon"),k=$r("action-clone"),w=$r("action-delete"),_=$r("structure-sortable");return Ta(),Ma("li",{id:"element-".concat(null===(a=n.element)||void 0===a?void 0:a.id),class:te([{"bricks-has-unsigned-code":o.hasUnsignedCode},{"bricks-draggable-item":e.$_userHasPermission("move_elements")},{"bricks-draggable-handle":e.$_userHasPermission("move_elements")},"element",{deprecated:o.globalElement},{draggable:o.isDraggable},{active:o.isActive},{component:o.isComponent},{selected:e.$_isSelected(n.element)},{hidden:r.displayNone||o.hideElement},{"slot-element":o.isSlotElement||o.isVirtualSlot},{"virtual-slot":o.isVirtualSlot}])},[qa("div",{class:"structure-item",onClickCapture:t[15]||(t[15]=function(e){return o.editElement(e)}),onDblclick:t[16]||(t[16]=bc(function(e){return o.onDblclick()},["stop"]))},[o.canExpand?(Ta(),La(b,{key:0,class:"toggle",name:r.expand?"arrow-down":"arrow-right",onClick:t[0]||(t[0]=bc(function(e){return r.expand=!r.expand},["stop"]))},null,8,["name"])):Qa("",!0),qa("div",{class:"title",onDragenter:t[7]||(t[7]=function(e){return o.onDragenter(e)})},[qa("div",{class:"icon",title:o.iconTitle},[qa("i",{class:te(o.iconClassName)},null,2)],8,Uwe),r.htmlTag?(Ta(),Ma("div",{key:0,class:"html-tag",textContent:he("<".concat(r.htmlTag,">"))},null,8,Wwe)):Qa("",!0),!o.isReadonly&&o.isActive?(Ta(),Ma("input",{key:1,type:"text",autocomplete:"off",spellcheck:"false",class:te([null!==(s=o.finalElement)&&void 0!==s&&s.label?"label":"name"]),value:o.elementLabel,onInput:t[1]||(t[1]=function(e){return o.onInput(e)}),onBlur:t[2]||(t[2]=function(e){return o.onBlur(e)}),onKeyup:[t[3]||(t[3]=wc(function(){return o.exitRenameMode&&o.exitRenameMode.apply(o,arguments)},["esc"])),t[4]||(t[4]=wc(function(){return o.exitRenameMode&&o.exitRenameMode.apply(o,arguments)},["enter"]))],onKeydown:t[5]||(t[5]=function(e){return o.onKeydown(e)}),ref:"inputLabel"},null,42,Gwe)):(Ta(),Ma("span",{key:2,tabindex:"0",class:te([null!==(l=o.finalElement)&&void 0!==l&&l.label?"label":"name","readonly"]),onKeydown:t[6]||(t[6]=function(e){return o.onKeydown(e)}),ref:"labelSpan"},he(o.elementLabel),35))],32),o.showElementActions?(Ta(),Ma("ul",Kwe,[o.hasUnsignedCode?(Ta(),Ma("li",{key:0,class:"action unsigned-code",title:e.i18n.unsignedCode},[Ha(b,{name:"touch-id",class:"unsigned-code",onClick:t[8]||(t[8]=function(t){var n;return e.$_state.activeUnsignedCodeId=null===(n=o.finalElement)||void 0===n?void 0:n.id})})],8,Qwe)):Qa("",!0),e.bricks.structureDuplicateElement&&e.$_userHasPermission("duplicate_elements")?(Ta(),La(k,{key:1,element:n.element,index:n.index,title:e.i18n.duplicate},null,8,["element","index","title"])):Qa("",!0),e.bricks.structureDeleteElement&&e.$_userHasPermission("delete_elements")?(Ta(),La(w,{key:2,element:n.element,index:n.index,title:e.i18n.delete},null,8,["element","index","title"])):Qa("",!0)])):Qa("",!0),e.bricks.debug.includes("elementId")?(Ta(),Ma("div",{key:2,class:"element-id",textContent:he(null===(c=n.element)||void 0===c?void 0:c.id)},null,8,Ywe)):Qa("",!0),qa("div",Jwe,[o.hideElement?(Ta(),La(b,{key:0,name:"controls/display/none",class:"visibility-hidden",title:o.hideElementTooltip,onClick:t[9]||(t[9]=function(t){var i;return e.$_state.showHideElement=null===(i=n.element)||void 0===i||!i.cid})},null,8,["title"])):!r.displayNone||null!==(u=n.element)&&void 0!==u&&u.cid?Qa("",!0):(Ta(),La(b,{key:1,name:"controls/display/none",class:"display-none",title:"".concat(e.i18n.hidden," (display: none)"),onClick:t[10]||(t[10]=bc(function(t){return e.$_state.searchControlKeyword="display"},["stop"]))},null,8,["title"])),!o.globalElement||null!==(d=n.element)&&void 0!==d&&d.cid?Qa("",!0):(Ta(),La(b,{key:2,name:"globe",class:"global-element",title:"".concat(e.i18n.globalElement," (").concat(e.i18n.deprecated,")")},null,8,["title"])),r.hasLoop?(Ta(),La(b,{key:3,name:"loop",class:te(["has-loop",{disabled:null===(p=n.element)||void 0===p?void 0:p.cid}]),title:e.i18n.queryLoop,onClick:t[11]||(t[11]=function(e){return o.showQueryLoop()})},null,8,["class","title"])):Qa("",!0),!o.breakpointHasCustomCss||null!==(h=n.element)&&void 0!==h&&h.cid?Qa("",!0):(Ta(),La(b,{key:4,name:"css3",class:"custom-css",title:e.i18n.customCss,onClick:t[12]||(t[12]=function(e){return o.showCustomCss()})},null,8,["title"])),null===(f=o.finalElement)||void 0===f||null===(f=f.settings)||void 0===f||!f._conditions||null!==(m=n.element)&&void 0!==m&&m.cid?Qa("",!0):(Ta(),La(b,{key:5,name:"conditions",class:"has-conditions",title:e.i18n.conditions,onClick:t[13]||(t[13]=function(t){return e.$_state.showConditions=!0})},null,8,["title"])),!o.hasInteractions||null!==(g=n.element)&&void 0!==g&&g.cid?Qa("",!0):(Ta(),La(b,{key:6,name:"interactions",class:"has-conditions",title:e.i18n.interactions,onClick:t[14]||(t[14]=function(t){return e.$_state.showInteractions=!0})},null,8,["title"]))])],32),o.hasChildren?Xn((Ta(),La(_,{key:0,"data-parent-id":o.isVirtualSlot?null===(v=n.element)||void 0===v?void 0:v.id:null===(y=o.finalElement)||void 0===y?void 0:y.id,elements:o.children,onExpandParent:o.expandParent},null,8,["data-parent-id","elements","onExpandParent"])),[[pl,r.expand&&e.$_isNestable(o.finalElement)]]):Qa("",!0)],10,zwe)}]]);var a_e=o_e,s_e=null!==document.ontouchstart?"click":"touchstart",l_e={mounted:function(e,t,n){e.clickOutside=function(n){var i="function"==typeof n.composedPath?n.composedPath():n.path;(Array.isArray(i)?i.includes(e):e===n.target||e.contains(n.target))||("function"==typeof t.value?t.value(n):t.value)},setTimeout(function(){document.addEventListener(s_e,e.clickOutside)},10)},unmounted:function(e){document.removeEventListener(s_e,e.clickOutside)}};function c_e(e){return function(e){if(Array.isArray(e))return u_e(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u_e(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u_e(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u_e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var d_e,p_e,h_e,f_e,m_e,g_e,v_e,y_e,b_e,k_e,w_e,__e,C_e,x_e,S_e,E_e,A_e="bricks-draggable-highlight",D_e=function(e){if(__e&&(d_e&&document.removeEventListener("dragover",p_e),__e.setAttribute("draggable",!1),__e.removeEventListener("dragstart",m_e),__e.removeEventListener("dragend",b_e),__e.classList.remove(k_e),__e.style.transform="",__e=!1),w_e&&(w_e.classList.remove("show"),document.body.appendChild(w_e)),x_e&&x_e.classList.remove("show"),S_e){S_e.classList.remove(A_e);var t=document.querySelectorAll(".".concat(A_e));Array.from(t).forEach(function(e){return e.classList.remove(A_e)})}document.removeEventListener("dragover",y_e),e.draggingId=!1,e.draggingElement=!1,e.draggingPosition=!1,e.draggingOldParentId=!1,e.draggingOldIndex=!1,e.draggingNewParentId=!1,e.draggingNewIndex=!1},T_e={mounted:function(e,t,n){var i,r,o=t.instance.$_state,a=t.value?t.value:{},s=a.draggableClass?a.draggableClass:"brx-draggable",l=a.itemClass?a.itemClass:"bricks-draggable-item",c=!!a.handleClass&&a.handleClass,u=a.rootClass?a.rootClass:"bricks-draggable-root",d=a.ignoreClass?a.ignoreClass:"bricks-preview-element-spacing",p=a.ghostId?a.ghostId:"bricks-draggable-ghost",h=a.directions?a.directions:["top","bottom","left","right"],f=a.bound?parseInt(a.bound):15,m=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);d_e=m||!a.autoscroll||a.autoscroll,k_e=a.draggingClass?a.draggingClass:"dragging",w_e=document.getElementById("bricks-draggable-placeholder");var g=function(e){return c_e(e.querySelectorAll(":scope > .".concat(l,":not(.").concat(k_e,")")))},v=function(e){return e.classList.contains(s)};g_e=function(e){o.draggingElement&&(e.preventDefault(),e.dataTransfer.dropEffect="move",o.draggingId||e.target.closest(".".concat(u))&&(document.addEventListener("dragover",y_e),o.draggingOldParentId=-1,o.draggingOldIndex=-1))},v_e=function(e){e.stopPropagation(),(S_e=e.target.closest(".".concat(A_e)))&&S_e.classList.remove(A_e)},h_e=function(e){if(t.instance.$_userHasPermission("move_elements")){var n=e.target.closest(".brxe-nav-nested");if(!(e.target.classList.contains("brx-nav-nested-items")&&n&&n.classList.contains("toggled"))&&0===e.button&&!e.target.isContentEditable&&(!c||e.target.closest(".".concat(c)))&&(__e=e.target.closest(".".concat(l)),(!d||!e.target.closest(".".concat(d)))&&__e)){if(__e){if(__e.classList.contains("show-mobile-menu"))return;if(__e.classList.contains("splide__slide")&&!(__e=__e.closest(".brxe-slider-nested")))return}__e.setAttribute("draggable",!0),i=0==__e.dataset.parentId?0:__e.dataset.parentId,C_e=g(__e.parentNode),r=C_e.indexOf(__e),o.draggingElement=t.instance.$_dynamicElements.value.find(function(e){return e.id===__e.dataset.id}),o.activeComponent&&(o.draggingElement=o.activeComponent.elements.find(function(e){return e.id===__e.dataset.id})),o.draggingElement&&(o.draggingId=o.draggingElement.id,o.draggingOldParentId=i,o.draggingOldIndex=r,__e.addEventListener("dragstart",m_e),__e.addEventListener("dragend",b_e))}}},f_e=function(e){setTimeout(function(){D_e(o)},100)},m_e=function(e){if(o.draggingElement){if(o.selectedElements.length&&!o.selectedElements.every(function(e){return e.parent===o.selectedElements[0].parent}))return o.draggingElement=!1,void alert("".concat(window.bricksData.i18n.bulkEditNotSupported," (").concat(window.bricksData.i18n.bulkEditMoveError,")"));d_e&&document.addEventListener("dragover",p_e),e.dataTransfer.setData("elementId",o.draggingElement.id),e.dataTransfer.effectAllowed="move",p&&(x_e||((x_e=document.createElement("div")).id=p,document.body.appendChild(x_e)),x_e.classList.add("show"),e.dataTransfer.setDragImage(x_e,0,0)),setTimeout(function(){__e&&__e.classList.add(k_e),document.addEventListener("dragover",y_e)},0)}},y_e=function(e){var t;if(o.draggingElement){e.preventDefault(),e.dataTransfer.dropEffect="move";var n=e.target.closest(".".concat(l));if(n){var i=!o.activeComponent&&n.closest("[data-component]");if(i&&(n=n.closest("[data-component]")),(S_e=e.target.closest(".".concat(l,".brx-draggable")))&&S_e.contains(w_e)&&S_e.classList.add(A_e),!d||!n.closest(".".concat(d))){var r=n.getBoundingClientRect(),a=e.clientY-r.top,s=r.bottom-e.clientY,c=e.clientX-r.left,u=e.clientX-r.right,p=[a,s,c,u].sort(function(e,t){return Math.abs(e-f)-Math.abs(t-f)})[0];if(!(p>2*f)){var m,y,b,k=n.dataset.parentId,w=(C_e=g(n.parentNode)).indexOf(n),_="below";if(p===a&&h.includes("top")?_="above":p===s&&h.includes("bottom")||p===u&&h.includes("right")?_="below":p===c&&h.includes("left")&&(_="above"),v(n)&&!i)p>f&&(_="inside",k=n.dataset.id);else if(p>f)return;if("below"===_&&(w+=1),((null==(m=n)||null===(y=m.classList)||void 0===y?void 0:y.contains("virtual-slot"))||String(null==m||null===(b=m.dataset)||void 0===b?void 0:b.id).startsWith("vslot-"))&&n.dataset.id&&(_="inside",k=n.dataset.id,w=g(n.querySelector(":scope > ul")||n).length),__e&&__e.contains(n)&&(k=o.draggingOldParentId,w=o.draggingOldIndex),n===__e&&(k=o.draggingOldParentId,w=o.draggingOldIndex),o.draggingPosition=_,o.draggingNewParentId=k,o.draggingNewIndex=w,w_e||(w_e=document.getElementById("bricks-draggable-placeholder")),null!==(t=o.activeComponent)&&void 0!==t&&t.id&&!n.closest('[data-component="'.concat(o.activeComponent.id,'"]'))&&w_e.classList.remove("show"),o.draggingNewParentId!=o.draggingOldParentId||o.draggingNewIndex!=o.draggingOldIndex)switch(w_e.classList.add("show"),_){case"above":n.insertAdjacentElement("beforebegin",w_e);break;case"below":n.insertAdjacentElement("afterend",w_e);break;case"inside":n.insertAdjacentElement("beforeend",w_e)}else w_e.classList.remove("show")}}}}},b_e=function(e){if(e.preventDefault(),o.activeComponent&&0==o.draggingNewParentId)D_e(o);else{if(o.draggingElement&&!o.draggingId)return(e.target.closest("#brx-".concat(t.instance.$_dynamicArea.value))||"popup"===o.templateType&&e.target.closest(".brx-popup-content"))&&(o.messageOrigin="iframe"),t.instance.$_addNewElement({element:o.draggingElement,index:o.draggingNewIndex,parent:o.draggingNewParentId},e),void D_e(o);if(!1!==o.draggingNewParentId&&!1!==o.draggingNewIndex)if(o.draggingNewParentId!=o.draggingOldParentId||o.draggingNewIndex!=o.draggingOldIndex){var n=o.draggingPosition,i=o.draggingNewParentId,r=o.draggingNewIndex;e.target.classList.contains(u)?i=0:v(e.target)&&(C_e=g(e.target),"inside"===n&&(r=C_e.length)),window.bricksData.debug.includes("dragging")&&console.table({draggable:e.type,position:n,parentId:i,index:r}),(o.selectedElements.length?o.selectedElements:[o.draggingElement]).forEach(function(e,n){t.instance.$_moveElement({element:e,parentId:i,index:r+n})}),D_e(o)}else D_e(o);else D_e(o)}},p_e=function(e){e.clientY>window.innerHeight-30?window.scrollBy({top:12,behavior:"smooth"}):e.clientY<30&&window.scrollBy({top:-12,behavior:"smooth"})},e.addEventListener("mousedown",h_e),e.addEventListener("mouseup",f_e),e.addEventListener("drop",b_e),document.addEventListener("dragenter",g_e),document.addEventListener("dragleave",v_e)},unmounted:function(e){e.removeEventListener("mousedown",h_e),e.removeEventListener("mouseup",f_e),e.removeEventListener("drop",b_e),document.removeEventListener("dragenter",g_e),document.removeEventListener("dragleave",v_e)}},I_e=Tc(M9);I_e.config.globalProperties.bricks=window.bricksData,I_e.config.globalProperties.i18n=window.bricksData.i18n,I_e.provide("bricksData",window.bricksData),I_e.provide("i18n",window.bricksData.i18n),I_e.use(function(e){e.config.globalProperties.$_state=Xh,e.config.globalProperties.$_watch=function(e,t,n){return li(e,t,n)},Object.keys(r).forEach(function(t){e.config.globalProperties["$_".concat(t)]=r[t]}),Object.keys(d_).forEach(function(t){e.config.globalProperties["$_".concat(t)]=d_[t]}),Object.keys(a).forEach(function(t){e.config.globalProperties["$_".concat(t)]=a[t]}),Object.keys(o).forEach(function(t){e.config.globalProperties["$_".concat(t)]=o[t]}),Object.keys(OC).forEach(function(t){e.config.globalProperties["$_".concat(t)]=OC[t]}),e.config.globalProperties.$_data=L9,window.bricksData.instantNavigation&&window.addEventListener("popstate",function(e){var t;if(!window.bricksData.homeUrl||window.location.href.startsWith(window.bricksData.homeUrl))if("run"===new URLSearchParams(window.location.search).get("bricks")){var n=null===(t=e.state)||void 0===t?void 0:t.postId;n&&Xh.postId!=n?d_.loadPage(n,null,!1):n?Xh.postId:window.location.reload()}else window.location.reload();else window.location.reload()})}),window.history.replaceState&&null!==(E_e=window.bricksData)&&void 0!==E_e&&E_e.postId&&window.history.replaceState({postId:window.bricksData.postId},""),I_e.component("debug-info",V9),I_e.component("icon",z9),I_e.component("sortable",X9),I_e.component("panel-controls",D7),I_e.component("panel-control",hI),I_e.component("panel-control-popup",I7),I_e.component("control-direction",F7),I_e.component("control-align-items",L7),I_e.component("control-justify-content",B7),I_e.component("control-apply",z7),I_e.component("control-audio",Z7),I_e.component("control-background",see),I_e.component("control-box-shadow",vee),I_e.component("control-border",fee),I_e.component("control-button",wee),I_e.component("control-checkbox",Aee),I_e.component("control-code",Jhe),I_e.component("control-color",Dfe),I_e.component("control-conditions",Ufe),I_e.component("control-datepicker",Pme),I_e.component("control-editor",Lme),I_e.component("control-file",qme),I_e.component("control-filters",yge),I_e.component("control-gradient",Sge),I_e.component("control-has-inherited",Pge),I_e.component("control-has-setting",Lge),I_e.component("control-hide-element",zge),I_e.component("control-icon",uve),I_e.component("control-image",bve),I_e.component("control-image-gallery",Ive),I_e.component("control-info",Mve),I_e.component("control-interactions",Gve),I_e.component("control-link",Yve),I_e.component("control-number",Zve),I_e.component("control-query",aye),I_e.component("control-query-manager",kye),I_e.component("control-query-list",Cye),I_e.component("control-popup",Aye),I_e.component("control-property",Gye),I_e.component("control-repeater",hbe),I_e.component("control-responsive-indicator",Jke),I_e.component("control-select",JR),I_e.component("control-separator",gbe),I_e.component("control-slider",_be),I_e.component("control-spacing",Mbe),I_e.component("control-svg",Hbe),I_e.component("control-table",Qbe),I_e.component("control-text",nke),I_e.component("control-textarea",oke),I_e.component("control-text-align",lke),I_e.component("control-text-decoration",dke),I_e.component("control-text-shadow",fke),I_e.component("control-text-transform",yke),I_e.component("control-toggle",nI),I_e.component("control-transform",Ske),I_e.component("control-typography",Nke),I_e.component("control-video",Wke),I_e.component("control-dynamic-tag-picker",hwe),I_e.component("control-variable-picker",Dwe),I_e.component("control-file-import",Lwe),I_e.component("control-visual-grid-builder",Rwe),I_e.component("structure-sortable",Hwe),I_e.component("structure-element",a_e),I_e.directive("clickaway",l_e),I_e.directive("draggable",T_e),I_e.mount(".brx-body")},84254:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"meta-description-require",description:'<meta name="description"> with non-blank content must be present in <head> tag.',init(e,t){let n=!1,i=!1,r="",o=null;e.addListener("tagstart",t=>{const a=t.tagName.toLowerCase();if("head"===a)n=!0,o=t;else if("meta"===a){const n=e.getMapAttrs(t.attrs);n.name&&"description"===n.name.toLowerCase()&&(i=!0,r=n.content||"")}}),e.addListener("end",()=>{n&&o&&(i?""===r.trim()&&t.error('<meta name="description"> content attribute must not be empty.',o.line,o.col,this,o.raw):t.error('<meta name="description"> must be present in <head> tag.',o.line,o.col,this,o.raw))})}}},84552:function(){},84661:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="-1 -1 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M21.313 11.004H6.874" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m10.313 14.441-3.438-3.437 3.438-3.438" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M14.438 15.125v4.125a1.317 1.317 0 0 1-1.25 1.375H1.936a1.317 1.317 0 0 1-1.25-1.375V2.75a1.316 1.316 0 0 1 1.25-1.375h11.25a1.317 1.317 0 0 1 1.25 1.375v4.125" stroke-width="2"/></svg>'},85088:function(){},86266:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="bricks-svg"><path d="m15.182 8.818-6.364 6.363" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m8.818 8.818 6.364 6.363" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M3.75.75h16.5s3 0 3 3v16.5s0 3-3 3H3.75s-3 0-3-3V3.75s0-3 3-3" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},86644:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" class="bricks-svg"><path d="M6 6h4v4H6Z" fill="currentColor" stroke-width="1"/><path d="M10 10h4v4h-4Z" fill="currentColor" stroke-width="1"/><path d="M14 6h4v4h-4Z" fill="currentColor" stroke-width="1"/><path d="M22 6h4v4h-4Z" fill="currentColor" stroke-width="1"/><path d="M6 14h4v4H6Z" fill="currentColor" stroke-width="1"/><path d="M14 14h4v4h-4Z" fill="currentColor" stroke-width="1"/><path d="M22 14h4v4h-4Z" fill="currentColor" stroke-width="1"/><path d="M6 22h4v4H6Z" fill="currentColor" stroke-width="1"/><path d="M14 22h4v4h-4Z" fill="currentColor" stroke-width="1"/><path d="M22 22h4v4h-4Z" fill="currentColor" stroke-width="1"/><path d="M18 10h4v4h-4Z" fill="currentColor" stroke-width="1"/><path d="M10 18h4v4h-4Z" fill="currentColor" stroke-width="1"/><path d="M18 18h4v4h-4Z" fill="currentColor" stroke-width="1"/><path d="M0 0h32v32H0Z" fill="none" stroke-width="1"/></svg>'},87755:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><g fill="none" fill-rule="evenodd"><path fill="#212121" d="M58 76h12v20H58zm0-32h12v14H58zM37 32h56v12H37z"/><path fill="#212121" d="M16 61h96v12H16z"/></g></svg>'},88036:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><g fill="none" fill-rule="evenodd"><path fill="#23282D" d="M60 0h8v128h-8zm8 28h28v32H68zm0 40h44v32H68z"/><path stroke="#23282D" stroke-width="6" d="M35 31h28v26H35zm0 40h28v26H35z"/></g></svg>'},88223:function(){},88295:function(){},88973:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="-1 -1 24 24" id="Programming-Hold-Code-2--Streamline-Ultimate" class="bricks-svg"><desc>Programming Hold Code 2 Streamline Icon: https://streamlinehq.com</desc><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m3.438 21.313-1.834-2.31a4.13 4.13 0 0 1-.916-2.576v-4.74a1.375 1.375 0 0 1 2.75 0v3.548" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M7.562 21.313v-2.879a4.06 4.06 0 0 0-.696-2.282L5.82 14.575a1.292 1.292 0 0 0-2.264 1.238l1.255 2.062" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m18.563 21.313 1.833-2.31c.59-.73.913-1.638.916-2.576v-4.74a1.375 1.375 0 1 0-2.75 0v3.548" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M14.438 21.313v-2.879a4.06 4.06 0 0 1 .696-2.282l1.045-1.577a1.29 1.29 0 0 1 1.833-.403 1.283 1.283 0 0 1 .431 1.64l-1.256 2.063" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m6.802 2.365-3.364 2.52 3.364 2.522" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m15.198 2.365 3.364 2.52-3.364 2.522" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m11.843.688-1.686 8.405" stroke-width="2"/></svg>'},89273:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=["allowReorder","attributeName","attributeType","autoReverse","baseFrequency","baseProfile","calcMode","clipPath","clipPathUnits","contentScriptType","contentStyleType","diffuseConstant","edgeMode","externalResourcesRequired","filterRes","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","onBlur","onChange","onClick","onFocus","onKeyUp","onLoad","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"];function i(e,t){if(t instanceof RegExp)return!!t.test(e)&&{match:e,pattern:t};const n=t[0],i=t[t.length-1],r=t[t.length-2],o="/"===n&&("/"===i||"/"===r&&"i"===i);if(o){return o&&"i"===i?new RegExp(t.slice(1,-2),"i").test(e):new RegExp(t.slice(1,-1)).test(e)}return e===t}t.default={id:"attr-lowercase",description:"All attribute names must be in lowercase.",init(e,t,r){const o=(Array.isArray(r)?r:[]).concat(n);e.addListener("tagstart",e=>{const n=e.attrs;let r;const a=e.col+e.tagName.length+1;for(let s=0,l=n.length;s<l;s++){r=n[s];const l=r.name;o.find(e=>i(l,e))||l===l.toLowerCase()||t.error(`The attribute name of [ ${l} ] must be in lowercase.`,e.line,a+r.index,this,r.raw)}})}}},89353:function(e){"use strict";var t=Object.prototype.toString,n=Math.max,i=function(e,t){for(var n=[],i=0;i<e.length;i+=1)n[i]=e[i];for(var r=0;r<t.length;r+=1)n[r+e.length]=t[r];return n};e.exports=function(e){var r=this;if("function"!=typeof r||"[object Function]"!==t.apply(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var o,a=function(e,t){for(var n=[],i=t||0,r=0;i<e.length;i+=1,r+=1)n[r]=e[i];return n}(arguments,1),s=n(0,r.length-a.length),l=[],c=0;c<s;c++)l[c]="$"+c;if(o=Function("binder","return function ("+function(e,t){for(var n="",i=0;i<e.length;i+=1)n+=e[i],i+1<e.length&&(n+=t);return n}(l,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof o){var t=r.apply(this,i(a,arguments));return Object(t)===t?t:this}return r.apply(e,i(a,arguments))}),r.prototype){var u=function(){};u.prototype=r.prototype,o.prototype=new u,u.prototype=null}return o}},89454:function(){},90438:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"id-class-value",description:"The id and class attribute values must meet the specified rules.",init(e,t,n){let i;if(i="string"==typeof n?{underline:{regId:/^[a-z\d]+(_[a-z\d]+)*$/,message:"The id and class attribute values must be in lowercase and split by an underscore."},dash:{regId:/^[a-z\d]+(-[a-z\d]+)*$/,message:"The id and class attribute values must be in lowercase and split by a dash."},hump:{regId:/^[a-z][a-zA-Z\d]*([A-Z][a-zA-Z\d]*)*$/,message:"The id and class attribute values must meet the camelCase style."}}[n]:n,"object"==typeof i&&i.regId){let n=i.regId;const r=i.message;n instanceof RegExp||(n=new RegExp(n)),e.addListener("tagstart",e=>{const i=e.attrs;let o;const a=e.col+e.tagName.length+1;for(let s=0,l=i.length;s<l;s++)if(o=i[s],"id"===o.name.toLowerCase()&&!1===n.test(o.value)&&t.warn(r,e.line,a+o.index,this,o.raw),"class"===o.name.toLowerCase()){const i=o.value.split(/\s+/g);let s;for(let l=0,c=i.length;l<c;l++)s=i[l],s&&!1===n.test(s)&&t.warn(r,e.line,a+o.index,this,s)}})}}}},91113:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M3 22.5h18a1.5 1.5 0 0 0 1.5-1.5V3A1.5 1.5 0 0 0 21 1.5H3A1.5 1.5 0 0 0 1.5 3v18A1.5 1.5 0 0 0 3 22.5" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M15.5 22.5v-21" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M8.5 22.5v-21" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M1.5 12h21" stroke-width="2"/></svg>'},91499:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M14.885 17.625V12l7.788-7.788c.433-.433.577-.866.577-1.443 0-1.154-.865-2.019-2.02-2.019H2.77C1.614.75.75 1.615.75 2.77c0 .576.144 1.009.577 1.442L9.115 12v11.25z" stroke-width="2"/></svg>'},91713:function(){},92355:function(){},92401:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M120 0h8v128h-8zM0 0h8v128H0zm72 16h32v96H72zm-48 0h32v96H24z"/></svg>'},92570:function(){},93084:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="-0.5 -0.5 24 24" fill="none" class="bricks-svg"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M7.667 6.708 2.875 11.5l4.792 4.792m7.666 0 4.792-4.792-4.792-4.792" stroke-width="2"/></svg>'},93294:function(e){e.exports=/^(?:[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0525\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0621-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971\u0972\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D28\u0D2A-\u0D39\u0D3D\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC\u0EDD\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8B\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10D0-\u10FA\u10FC\u1100-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u2094\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2D00-\u2D25\u2D30-\u2D65\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31B7\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCB\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA65F\uA662-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B\uA78C\uA7FB-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA2D\uFA30-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC])(?:[\$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u0525\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0621-\u065E\u0660-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0900-\u0939\u093C-\u094E\u0950-\u0955\u0958-\u0963\u0966-\u096F\u0971\u0972\u0979-\u097F\u0981-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C82\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0D02\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D28\u0D2A-\u0D39\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC\u0EDD\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F8B\u0F90-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10D0-\u10FA\u10FC\u1100-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135F\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17B3\u17B6-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191C\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BAA\u1BAE-\u1BB9\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF2\u1D00-\u1DE6\u1DFD-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u2094\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF1\u2D00-\u2D25\u2D30-\u2D65\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31B7\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCB\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA65F\uA662-\uA66F\uA67C\uA67D\uA67F-\uA697\uA6A0-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B\uA78C\uA7FB-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7B\uAA80-\uAAC2\uAADB-\uAADD\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA2D\uFA30-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE26\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC])*$/},93400:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M12 23.248V.748" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m8.25 19.498 3.75 3.75 3.75-3.75" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M8.25 4.498 12 .748l3.75 3.75" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},93521:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M16.501 11.997h-9" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m12.751 8.247 3.75 3.75-3.75 3.75" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M1.501 11.997a10.5 10.5 0 1 0 21 0 10.5 10.5 0 1 0-21 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},93623:function(){},93628:function(e,t,n){"use strict";var i=n(48648),r=n(71064),o=n(7176);e.exports=i?function(e){return i(e)}:r?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return r(e)}:o?function(e){return o(e)}:null},94002:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><g fill="none" fill-rule="evenodd"><path fill="#23282D" d="M86 44H40c-5.523 0-10-4.477-10-10 0-5.403 4.38-9.783 9.783-9.783l.215.003 56.839 1.248A9.37 9.37 0 0 1 105.563 32H106v24h5.172a2 2 0 0 1 1.414 3.414L97.414 74.586a2 2 0 0 1-2.828 0L79.414 59.414A2 2 0 0 1 80.828 56H86z"/><path fill="#23282D" d="M42 84h48a8 8 0 0 1 8 8v4a8 8 0 0 1-8 8H30a8 8 0 0 1-7.996-7.75L22 96V72h-5.172a2 2 0 0 1-1.414-3.414l15.172-15.172a2 2 0 0 1 2.828 0l15.172 15.172A2 2 0 0 1 47.172 72H42z"/></g></svg>'},94044:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M5.205 8.5a1.875 1.875 0 1 0 3.75 0 1.875 1.875 0 1 0-3.75 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M20.2 16.955 15.828 10.4a.844.844 0 0 0-1.393-.015L12.19 13.6l-1.39-1.117a.843.843 0 0 0-1.229.191l-2.865 4.3" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M2.25 3.023a1.5 1.5 0 0 0-1.5 1.5v14.954a1.5 1.5 0 0 0 1.5 1.5h19.5a1.5 1.5 0 0 0 1.5-1.5v-12a1.5 1.5 0 0 0-.426-1.047l-2.883-2.955a1.5 1.5 0 0 0-1.074-.452Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},94083:function(e,t,n){"use strict";e=n.nmd(e);const i=(e,t)=>(...n)=>`[${e(...n)+t}m`,r=(e,t)=>(...n)=>{const i=e(...n);return`[${38+t};5;${i}m`},o=(e,t)=>(...n)=>{const i=e(...n);return`[${38+t};2;${i[0]};${i[1]};${i[2]}m`},a=e=>e,s=(e,t,n)=>[e,t,n],l=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{const i=n();return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0}),i},enumerable:!0,configurable:!0})};let c;const u=(e,t,i,r)=>{void 0===c&&(c=n(10734));const o=r?10:0,a={};for(const[n,r]of Object.entries(c)){const s="ansi16"===n?"ansi":n;n===t?a[s]=e(i,o):"object"==typeof r&&(a[s]=e(r[t],o))}return a};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(const[n,i]of Object.entries(t)){for(const[n,r]of Object.entries(i))t[n]={open:`[${r[0]}m`,close:`[${r[1]}m`},i[n]=t[n],e.set(r[0],r[1]);Object.defineProperty(t,n,{value:i,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="[39m",t.bgColor.close="[49m",l(t.color,"ansi",()=>u(i,"ansi16",a,!1)),l(t.color,"ansi256",()=>u(r,"ansi256",a,!1)),l(t.color,"ansi16m",()=>u(o,"rgb",s,!1)),l(t.bgColor,"ansi",()=>u(i,"ansi16",a,!0)),l(t.bgColor,"ansi256",()=>u(r,"ansi256",a,!0)),l(t.bgColor,"ansi16m",()=>u(o,"rgb",s,!0)),t}})},94154:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M4.949 8.783a1.5 1.5 0 0 0-.3 2.356l8.213 8.213a1.5 1.5 0 0 0 2.356-.3 7.52 7.52 0 0 0 .81-5.54l6.529-4.155a1.5 1.5 0 0 0 .256-2.326L16.97 1.188a1.5 1.5 0 0 0-2.326.255l-4.155 6.53a7.52 7.52 0 0 0-5.54.81" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M8.753 15.246.75 23.249" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},94298:function(e,t,n){"use strict";e.exports=o;var i=n(51971),r=n(44418);function o(e,t){this.match=function(t){var n;return t.mark(),(n=e(t))?t.drop():t.restore(),n},this.toString="function"==typeof t?t:function(){return t}}o.prec={MOD:5,SEQ:4,ANDAND:3,OROR:2,ALT:1},o.parse=function(e){var t,n,a,s,l,c,u,d,p;if(t=new i(e),n=function(e){var n=t.readMatch(e);if(null===n)throw new r("Expected "+e,t.getLine(),t.getCol());return n},a=function(){for(var e=[s()];null!==t.readMatch(" | ");)e.push(s());return 1===e.length?e[0]:o.alt.apply(o,e)},s=function(){for(var e=[l()];null!==t.readMatch(" || ");)e.push(l());return 1===e.length?e[0]:o.oror.apply(o,e)},l=function(){for(var e=[c()];null!==t.readMatch(" && ");)e.push(c());return 1===e.length?e[0]:o.andand.apply(o,e)},c=function(){for(var e=[u()];null!==t.readMatch(/^ (?![&|\]])/);)e.push(u());return 1===e.length?e[0]:o.seq.apply(o,e)},u=function(){var e=d();if(null!==t.readMatch("?"))return e.question();if(null!==t.readMatch("*"))return e.star();if(null!==t.readMatch("+"))return e.plus();if(null!==t.readMatch("#"))return e.hash();if(null!==t.readMatch(/^\{\s*/)){var i=n(/^\d+/);n(/^\s*,\s*/);var r=n(/^\d+/);return n(/^\s*\}/),e.braces(+i,+r)}return e},d=function(){if(null!==t.readMatch("[ ")){var e=a();return n(" ]"),e}return o.fromType(n(/^[^ ?*+#{]+/))},p=a(),!t.eof())throw new r("Expected end of string",t.getLine(),t.getCol());return p},o.cast=function(e){return e instanceof o?e:o.parse(e)},o.fromType=function(e){var t=n(34936);return new o(function(n){return n.hasNext()&&t.isType(n,e)},e)},o.seq=function(){var e=Array.prototype.slice.call(arguments).map(o.cast);return 1===e.length?e[0]:new o(function(t){var n,i=!0;for(n=0;i&&n<e.length;n++)i=e[n].match(t);return i},function(t){var n=o.prec.SEQ,i=e.map(function(e){return e.toString(n)}).join(" ");return t>n&&(i="[ "+i+" ]"),i})},o.alt=function(){var e=Array.prototype.slice.call(arguments).map(o.cast);return 1===e.length?e[0]:new o(function(t){var n,i=!1;for(n=0;!i&&n<e.length;n++)i=e[n].match(t);return i},function(t){var n=o.prec.ALT,i=e.map(function(e){return e.toString(n)}).join(" | ");return t>n&&(i="[ "+i+" ]"),i})},o.many=function(e){var t=Array.prototype.slice.call(arguments,1).reduce(function(e,t){if(t.expand){var i=n(34936);e.push.apply(e,i.complex[t.expand].options)}else e.push(o.cast(t));return e},[]);!0===e&&(e=t.map(function(){return!0}));var i=new o(function(n){var i=[],r=0,o=0,a=function(s){for(var l=0;l<t.length;l++)if(!i[l])if(n.mark(),t[l].match(n)){if(i[l]=!0,a(s+(!1===e||e[l]?1:0)))return n.drop(),!0;n.restore(),i[l]=!1}else n.drop();return function(e){return 0===o?(r=Math.max(e,r),e===t.length):e===r}(s)};if(a(0)||(o++,a(0)),!1===e)return r>0;for(var s=0;s<t.length;s++)if(e[s]&&!i[s])return!1;return!0},function(n){var i=!1===e?o.prec.OROR:o.prec.ANDAND,r=t.map(function(t,n){return!1===e||e[n]?t.toString(i):t.toString(o.prec.MOD)+"?"}).join(!1===e?" || ":" && ");return n>i&&(r="[ "+r+" ]"),r});return i.options=t,i},o.andand=function(){var e=Array.prototype.slice.call(arguments);return e.unshift(!0),o.many.apply(o,e)},o.oror=function(){var e=Array.prototype.slice.call(arguments);return e.unshift(!1),o.many.apply(o,e)},o.prototype={constructor:o,match:function(){throw new Error("unimplemented")},toString:function(){throw new Error("unimplemented")},func:function(){return this.match.bind(this)},then:function(e){return o.seq(this,e)},or:function(e){return o.alt(this,e)},andand:function(e){return o.many(!0,this,e)},oror:function(e){return o.many(!1,this,e)},star:function(){return this.braces(0,1/0,"*")},plus:function(){return this.braces(1,1/0,"+")},question:function(){return this.braces(0,1,"?")},hash:function(){return this.braces(1,1/0,"#",o.cast(","))},braces:function(e,t,n,i){var r=this,a=i?i.then(this):this;return n||(n="{"+e+","+t+"}"),new o(function(n){var o;for(o=0;o<t&&(o>0&&i?a.match(n):r.match(n));o++);return o>=e},function(){return r.toString(o.prec.MOD)+n})}}},94459:function(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},94591:function(e,t,n){var i=n(65606),r=/%[sdj%]/g;t.format=function(e){if(!v(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(s(arguments[n]));return t.join(" ")}n=1;for(var i=arguments,o=i.length,a=String(e).replace(r,function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(e){return"[Circular]"}default:return e}}),l=i[n];n<o;l=i[++n])m(l)||!k(l)?a+=" "+l:a+=" "+s(l);return a},t.deprecate=function(e,r){if(y(n.g.process))return function(){return t.deprecate(e,r).apply(this,arguments)};if(!0===i.noDeprecation)return e;var o=!1;return function(){if(!o){if(i.throwDeprecation)throw new Error(r);i.traceDeprecation?console.trace(r):console.error(r),o=!0}return e.apply(this,arguments)}};var o,a={};function s(e,n){var i={seen:[],stylize:c};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),f(n)?i.showHidden=n:n&&t._extend(i,n),y(i.showHidden)&&(i.showHidden=!1),y(i.depth)&&(i.depth=2),y(i.colors)&&(i.colors=!1),y(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=l),u(i,e,i.depth)}function l(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function c(e,t){return e}function u(e,n,i){if(e.customInspect&&n&&C(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var r=n.inspect(i,e);return v(r)||(r=u(e,r,i)),r}var o=function(e,t){if(y(t))return e.stylize("undefined","undefined");if(v(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(g(t))return e.stylize(""+t,"number");if(f(t))return e.stylize(""+t,"boolean");if(m(t))return e.stylize("null","null")}(e,n);if(o)return o;var a=Object.keys(n),s=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),_(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(n);if(0===a.length){if(C(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(b(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(w(n))return e.stylize(Date.prototype.toString.call(n),"date");if(_(n))return d(n)}var c,k="",x=!1,S=["{","}"];(h(n)&&(x=!0,S=["[","]"]),C(n))&&(k=" [Function"+(n.name?": "+n.name:"")+"]");return b(n)&&(k=" "+RegExp.prototype.toString.call(n)),w(n)&&(k=" "+Date.prototype.toUTCString.call(n)),_(n)&&(k=" "+d(n)),0!==a.length||x&&0!=n.length?i<0?b(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=x?function(e,t,n,i,r){for(var o=[],a=0,s=t.length;a<s;++a)A(t,String(a))?o.push(p(e,t,n,i,String(a),!0)):o.push("");return r.forEach(function(r){r.match(/^\d+$/)||o.push(p(e,t,n,i,r,!0))}),o}(e,n,i,s,a):a.map(function(t){return p(e,n,i,s,t,x)}),e.seen.pop(),function(e,t,n){var i=e.reduce(function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(i>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(c,k,S)):S[0]+k+S[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,i,r,o){var a,s,l;if((l=Object.getOwnPropertyDescriptor(t,r)||{value:t[r]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),A(i,r)||(a="["+r+"]"),s||(e.seen.indexOf(l.value)<0?(s=m(n)?u(e,l.value,null):u(e,l.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),y(a)){if(o&&r.match(/^\d+$/))return s;(a=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function h(e){return Array.isArray(e)}function f(e){return"boolean"==typeof e}function m(e){return null===e}function g(e){return"number"==typeof e}function v(e){return"string"==typeof e}function y(e){return void 0===e}function b(e){return k(e)&&"[object RegExp]"===x(e)}function k(e){return"object"==typeof e&&null!==e}function w(e){return k(e)&&"[object Date]"===x(e)}function _(e){return k(e)&&("[object Error]"===x(e)||e instanceof Error)}function C(e){return"function"==typeof e}function x(e){return Object.prototype.toString.call(e)}function S(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(y(o)&&(o=i.env.NODE_DEBUG||""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(o)){var n=i.pid;a[e]=function(){var i=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,i)}}else a[e]=function(){};return a[e]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=h,t.isBoolean=f,t.isNull=m,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=v,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=y,t.isRegExp=b,t.isObject=k,t.isDate=w,t.isError=_,t.isFunction=C,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(33845);var E=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function A(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(e=new Date,n=[S(e.getHours()),S(e.getMinutes()),S(e.getSeconds())].join(":"),[e.getDate(),E[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(26100),t._extend=function(e,t){if(!t||!k(t))return e;for(var n=Object.keys(t),i=n.length;i--;)e[n[i]]=t[n[i]];return e}},94771:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><text font-size="80" font-weight="bold">\n <tspan x="42" y="85">x</tspan>\n </text></svg>'},94776:function(e,t,n){var i,r=n(65606); /*! * * Package: php-parser * Parse PHP code from JS and returns its AST * Build: b403a26001253b9ce897 - 5/17/2026 * Copyright (C) 2021 Glayzzle (BSD-3-Clause) * @authors https://github.com/glayzzle/php-parser/graphs/contributors * @url http://glayzzle.com * */self,i=()=>(()=>{"use strict";var e={8938(e,t,n){var i=n(4778),r=n(8822),o=function(e,t){this.withPositions=e,this.withSource=t};o.precedence={},[["or"],["xor"],["and"],["="],["?"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","!=","===","!==","<=>"],["<","<=",">",">="],["<<",">>"],["+","-","."],["*","/","%"],["!"],["instanceof"],["cast","silent"],["**"]].forEach(function(e,t){e.forEach(function(e){o.precedence[e]=t+1})}),o.prototype.isRightAssociative=function(e){return"**"===e||"??"===e},o.prototype.swapLocations=function(e,t,n,i){if(this.withPositions){if(!(e&&e.loc&&t&&t.loc&&n&&n.loc))return;e.loc.start=t.loc.start,e.loc.end=n.loc.end,this.withSource&&(e.loc.source=i.lexer._input.substring(e.loc.start.offset,e.loc.end.offset))}},o.prototype.resolveLocations=function(e,t,n,i){if(this.withPositions){if(!(e&&e.loc&&t&&t.loc&&n&&n.loc))return;e.loc.start.offset>t.loc.start.offset&&(e.loc.start=t.loc.start),e.loc.end.offset<n.loc.end.offset&&(e.loc.end=n.loc.end),this.withSource&&(e.loc.source=i.lexer._input.substring(e.loc.start.offset,e.loc.end.offset))}},o.prototype.resolvePrecedence=function(e,t){var n,i,r;return"call"===e.kind?this.resolveLocations(e,e.what,e,t):"propertylookup"===e.kind||"nullsafepropertylookup"===e.kind||"staticlookup"===e.kind||"offsetlookup"===e.kind&&e.offset?this.resolveLocations(e,e.what,e.offset,t):"bin"===e.kind?e.right&&!e.right.parenthesizedExpression&&("bin"===e.right.kind?(i=o.precedence[e.type],r=o.precedence[e.right.type],i&&r&&r<=i&&(e.type!==e.right.type||!this.isRightAssociative(e.type))&&(n=e.right,e.right=e.right.left,this.swapLocations(e,e.left,e.right,t),n.left=this.resolvePrecedence(e,t),this.swapLocations(n,n.left,n.right,t),e=n)):"retif"===e.right.kind&&(i=o.precedence[e.type],r=o.precedence["?"],i&&r&&r<=i&&(n=e.right,e.right=e.right.test,this.swapLocations(e,e.left,e.right,t),n.test=this.resolvePrecedence(e,t),this.swapLocations(n,n.test,n.falseExpr,t),e=n))):"silent"!==e.kind&&"cast"!==e.kind||!e.expr||e.expr.parenthesizedExpression?"unary"===e.kind?e.what&&!e.what.parenthesizedExpression&&("bin"===e.what.kind?(i=o.precedence[e.type],r=o.precedence[e.what.type],i&&r&&r<i&&(n=e.what,e.what=e.what.left,this.swapLocations(e,e,e.what,t),n.left=this.resolvePrecedence(e,t),this.swapLocations(n,n.left,n.right,t),e=n)):"retif"===e.what.kind&&(n=e.what,e.what=e.what.test,this.swapLocations(e,e,e.what,t),n.test=this.resolvePrecedence(e,t),this.swapLocations(n,n.test,n.falseExpr,t),e=n)):"retif"===e.kind?e.falseExpr&&"retif"===e.falseExpr.kind&&!e.falseExpr.parenthesizedExpression&&(n=e.falseExpr,e.falseExpr=n.test,this.swapLocations(e,e.test,e.falseExpr,t),n.test=this.resolvePrecedence(e,t),this.swapLocations(n,n.test,n.falseExpr,t),e=n):"assign"===e.kind?e.right&&"bin"===e.right.kind&&!e.right.parenthesizedExpression&&(i=o.precedence["="],r=o.precedence[e.right.type],i&&r&&r<i&&(n=e.right,e.right=e.right.left,n.left=e,this.swapLocations(n,n.left,e.right,t),e=n)):"expressionstatement"===e.kind&&this.swapLocations(e,e.expression,e,t):"bin"===e.expr.kind?(n=e.expr,e.expr=e.expr.left,this.swapLocations(e,e,e.expr,t),n.left=this.resolvePrecedence(e,t),this.swapLocations(n,n.left,n.right,t),e=n):"retif"===e.expr.kind&&(n=e.expr,e.expr=e.expr.test,this.swapLocations(e,e,e.expr,t),n.test=this.resolvePrecedence(e,t),this.swapLocations(n,n.test,n.falseExpr,t),e=n),e},o.prototype.prepare=function(e,t,n){var o=null;(this.withPositions||this.withSource)&&(o=n.position());var a=this,s=function(){var l=Array.prototype.slice.call(arguments);if(l.push(t),a.withPositions||a.withSource){var c=o,u=new r(n.prev[0],n.prev[1],n.prev[2]);if(c.offset>u.offset){var d=c;c=u,u=d}var p=null;a.withSource&&(p=n.lexer._input.substring(c.offset,u.offset));var h=new i(p,c,u);l.push(h)}e||(e=l.shift());var f=a[e];if("function"!=typeof f)throw new Error('Undefined node "'+e+'"');var m=Object.create(f.prototype);return f.apply(m,l),s.instance=m,s.trailingComments&&(m.trailingComments=s.trailingComments),"function"==typeof s.postBuild&&s.postBuild(m),n.debug&&delete a.stack[s.stackUid],a.resolvePrecedence(m,n)};return n.debug&&(this.stack||(this.stack={},this.stackUid=1),this.stack[++this.stackUid]={position:o,stack:(new Error).stack.split("\n").slice(3,5)},s.stackUid=this.stackUid),s.setTrailingComments=function(e){s.instance?s.instance.setTrailingComments(e):s.trailingComments=e},s.destroy=function(e){t&&(e?e.leadingComments?e.leadingComments=t.concat(e.leadingComments):e.leadingComments=t:n._docIndex=n._docs.length-t.length),n.debug&&delete a.stack[s.stackUid]},s},o.prototype.checkNodes=function(){var e=[];for(var t in this.stack)Object.prototype.hasOwnProperty.call(this.stack,t)&&(this.stack[t].key=t,e.push(this.stack[t]));return this.stack={},e},[n(3160),n(1654),n(1240),n(3979),n(5553),n(2207),n(2916),n(4628),n(7509),n(2906),n(5723),n(7561),n(6473),n(9626),n(4782),n(8477),n(5045),n(900),n(4824),n(1020),n(9847),n(2790),n(1333),n(2112),n(9960),n(8533),n(5947),n(7786),n(5436),n(1136),n(380),n(6129),n(9723),n(5125),n(9632),n(4300),n(1515),n(3411),n(9781),n(839),n(8374),n(9754),n(4251),n(6553),n(8630),n(9786),n(9742),n(1234),n(6),n(8861),n(7860),n(9834),n(2724),n(6025),n(2687),n(7633),n(5514),n(7427),n(1122),n(7256),n(7416),n(8140),n(6258),n(9474),n(6827),n(4427),n(4065),n(4297),n(5859),n(6985),n(9302),n(8212),n(864),n(8268),n(7190),n(8519),n(4835),n(2056),n(4838),n(7869),n(1908),n(4863),n(170),n(1091),n(8276),n(1842),n(5739),n(1274),n(4352),n(9672),n(711),n(1231),n(1865),n(1102),n(7472),n(6133),n(1197),n(6649),n(1837),n(2277),n(8010),n(7579),n(3460),n(2702),n(514),n(5684),n(8019),n(7721),n(4369),n(40),n(4919),n(7676),n(2596),n(6744)].forEach(function(e){o.prototype[e.kind]=e}),e.exports=o},3160(e,t,n){var i=n(839),r="array";e.exports=i.extends(r,function(e,t,n,o){i.apply(this,[r,n,o]),this.items=t,this.shortForm=e})},1654(e,t,n){var i=n(839),r="arrowfunc";e.exports=i.extends(r,function(e,t,n,o,a,s,l,c){i.apply(this,[r,l,c]),this.arguments=e,this.byref=t,this.body=n,this.type=o,this.nullable=a,this.isStatic=s||!1})},1240(e,t,n){var i=n(839),r="assign";e.exports=i.extends(r,function(e,t,n,o,a){i.apply(this,[r,o,a]),this.left=e,this.right=t,this.operator=n})},3979(e,t,n){var i=n(839),r="assignref";e.exports=i.extends(r,function(e,t,n,o){i.apply(this,[r,n,o]),this.left=e,this.right=t})},2207(e,t,n){var i=n(4065),r="attrgroup";e.exports=i.extends(r,function(e,t,n){i.apply(this,[r,t,n]),this.attrs=e||[]})},5553(e,t,n){var i=n(4065),r="attribute";e.exports=i.extends(r,function(e,t,n,o){i.apply(this,[r,n,o]),this.name=e,this.args=t})},2916(e,t,n){var i=n(8268);e.exports=i.extends("bin",function(e,t,n,r,o){i.apply(this,["bin",r,o]),this.type=e,this.left=t,this.right=n})},4628(e,t,n){var i=n(9672),r="block";e.exports=i.extends(r,function(e,t,n,o){i.apply(this,[e||r,n,o]),this.children=t.filter(Boolean)})},7509(e,t,n){var i=n(5514),r="boolean";e.exports=i.extends(r,function(e,t,n,o){i.apply(this,[r,e,t,n,o])})},2906(e,t,n){var i=n(9672),r="break";e.exports=i.extends(r,function(e,t,n){i.apply(this,[r,t,n]),this.level=e})},5723(e,t,n){var i=n(839),r="byref";e.exports=i.extends(r,function(e,t,n){i.apply(this,[r,t,n]),this.what=e})},7561(e,t,n){var i=n(839),r="call";e.exports=i.extends(r,function(e,t,n,o){i.apply(this,[r,n,o]),this.what=e,this.arguments=t})},6473(e,t,n){var i=n(9672),r="case";e.exports=i.extends(r,function(e,t,n,o){i.apply(this,[r,n,o]),this.test=e,this.body=t})},9626(e,t,n){var i=n(8268),r="cast";e.exports=i.extends(r,function(e,t,n,o,a){i.apply(this,[r,o,a]),this.type=e,this.raw=t,this.expr=n})},4782(e,t,n){var i=n(9672),r="catch";e.exports=i.extends(r,function(e,t,n,o,a){i.apply(this,[r,o,a]),this.body=e,this.what=t,this.variable=n})},8477(e,t,n){var i=n(8533),r="class";e.exports=i.extends(r,function(e,t,n,o,a,s,l){i.apply(this,[r,e,s,l]),this.isAnonymous=!e,this.extends=t,this.implements=n,this.body=o,this.attrGroups=[],this.parseFlags(a)})},5045(e,t,n){var i=n(2112),r="classconstant",o=i.extends(r,function(e,t,n,o,a,s,l,c){i.apply(this,[e||r,t,l,c]),this.parseFlags(n),this.nullable=o,this.type=a,this.attrGroups=s});o.prototype.parseFlags=function(e){-1===e[0]?this.visibility="":null===e[0]?this.visibility=null:0===e[0]?this.visibility="public":1===e[0]?this.visibility="protected":2===e[0]&&(this.visibility="private"),this.final=2===e[2]},e.exports=o},900(e,t,n){var i=n(839),r="clone";e.exports=i.extends(r,function(e,t,n,o){i.apply(this,[r,n,o]),this.what=e,t&&(this.properties=t)})},4824(e,t,n){var i=n(839),r="closure";e.exports=i.extends(r,function(e,t,n,o,a,s,l,c){i.apply(this,[r,l,c]),this.uses=n,this.arguments=e,this.byref=t,this.type=o,this.nullable=a,this.isStatic=s||!1,this.body=null,this.attrGroups=[]})},1020(e,t,n){var i=n(4065);e.exports=i.extends("comment",function(e,t,n,r){i.apply(this,[e,n,r]),this.value=t})},9847(e,t,n){var i=n(1020),r="commentblock";e.exports=i.extends(r,function(e,t,n){i.apply(this,[r,e,t,n])})},2790(e,t,n){var i=n(1020),r="commentline";e.exports=i.extends(r,function(e,t,n){i.apply(this,[r,e,t,n])})},1333(e,t,n){var i=n(4065),r="constant";e.exports=i.extends(r,function(e,t,n,o){i.apply(this,[r,n,o]),this.name=e,this.value=t})},2112(e,t,n){var i=n(9672),r="constantstatement";e.exports=i.extends(r,function(e,t,n,o){i.apply(this,[e||r,n,o]),this.constants=t})},9960(e,t,n){var i=n(9672),r="continue";e.exports=i.extends(r,function(e,t,n){i.apply(this,[r,t,n]),this.level=e})},8533(e,t,n){var i=n(9672),r="declaration",o=i.extends(r,function(e,t,n,o){i.apply(this,[e||r,n,o]),this.name=t});o.prototype.parseFlags=function(e){this.isAbstract=1===e[2],this.isFinal=2===e[2],this.isReadonly=1===e[3],"class"!==this.kind&&(-1===e[0]?this.visibility="":null===e[0]?this.visibility=null:0===e[0]?this.visibility="public":1===e[0]?this.visibility="protected":2===e[0]&&(this.visibility="private"),this.isStatic=1===e[1])},e.exports=o},5947(e,t,n){var i=n(4628),r="declare",o=i.extends(r,function(e,t,n,o,a){i.apply(this,[r,t,o,a]),this.directives=e,this.mode=n});o.MODE_SHORT="short",o.MODE_BLOCK="block",o.MODE_NONE="none",e.exports=o},7786(e,t,n){var i=n(4065),r="declaredirective";e.exports=i.extends(r,function(e,t,n,o){i.apply(this,[r,n,o]),this.key=e,this.value=t})},5436(e,t,n){var i=n(9672);e.exports=i.extends("do",function(e,t,n,r){i.apply(this,["do",n,r]),this.test=e,this.body=t})},1136(e,t,n){var i=n(9672),r="echo";e.exports=i.extends(r,function(e,t,n,o){i.apply(this,[r,n,o]),this.shortForm=t,this.expressions=e})},380(e,t,n){var i=n(839),r="empty";e.exports=i.extends(r,function(e,t,n){i.apply(this,[r,t,n]),this.expression=e})},6129(e,t,n){var i=n(5514),r="encapsed",o=i.extends(r,function(e,t,n,o,a){i.apply(this,[r,e,t,o,a]),this.type=n});o.TYPE_STRING="string",o.TYPE_SHELL="shell",o.TYPE_HEREDOC="heredoc",o.TYPE_OFFSET="offset",e.exports=o},9723(e,t,n){var i=n(839),r="encapsedpart";e.exports=i.extends(r,function(e,t,n,o,a){i.apply(this,[r,o,a]),this.expression=e,this.syntax=t,this.curly=n})},5125(e,t,n){var i=n(839),r="entry";e.exports=i.extends(r,function(e,t,n,o,a,s){i.apply(this,[r,a,s]),this.key=e,this.value=t,this.byRef=n,this.unpack=o})},9632(e,t,n){var i=n(8533),r="enum";e.exports=i.extends(r,function(e,t,n,o,a,s){i.apply(this,[r,e,a,s]),this.valueType=t,this.implements=n,this.body=o,this.attrGroups=[]})},4300(e,t,n){var i=n(4065),r="enumcase";e.exports=i.extends(r,function(e,t,n,o){i.apply(this,[r,n,o]),this.name=e,this.value=t})},1515(e,t,n){var i=n(4065),r="error";e.exports=i.extends(r,function(e,t,n,o,a,s){i.apply(this,[r,a,s]),this.message=e,this.token=t,this.line=n,this.expected=o})},3411(e,t,n){var i=n(839),r="eval";e.exports=i.extends(r,function(e,t,n){i.apply(this,[r,t,n]),this.source=e})},9781(e,t,n){var i=n(839),r="exit";e.exports=i.extends(r,function(e,t,n,o){i.apply(this,[r,n,o]),this.expression=e,this.useDie=t})},839(e,t,n){var i=n(4065),r="expression";e.exports=i.extends(r,function(e,t,n){i.apply(this,[e||r,t,n])})},8374(e,t,n){var i=n(9672),r="expressionstatement";e.exports=i.extends(r,function(e,t,n){i.apply(this,[r,t,n]),this.expression=e})},9754(e,t,n){var i=n(9672);e.exports=i.extends("for",function(e,t,n,r,o,a,s){i.apply(this,["for",a,s]),this.init=e,this.test=t,this.increment=n,this.shortForm=o,this.body=r})},4251(e,t,n){var i=n(9672),r="foreach";e.exports=i.extends(r,function(e,t,n,o,a,s,l){i.apply(this,[r,s,l]),this.source=e,this.key=t,this.value=n,this.shortForm=a,this.body=o})},6553(e,t,n){var i=n(8533),r="function";e.exports=i.extends(r,function(e,t,n,o,a,s,l){i.apply(this,[r,e,s,l]),this.arguments=t,this.byref=n,this.type=o,this.nullable=a,this.body=null,this.attrGroups=[]})},8630(e,t,n){var i=n(9672),r="global";e.exports=i.extends(r,function(e,t,n){i.apply(this,[r,t,n]),this.items=e})},9786(e,t,n){var i=n(9672),r="goto";e.exports=i.extends(r,function(e,t,n){i.apply(this,[r,t,n]),this.label=e})},9742(e,t,n){var i=n(9672),r="halt";e.exports=i.extends(r,function(e,t,n){i.apply(this,[r,t,n]),this.after=e})},1234(e,t,n){var i=n(4065),r="identifier",o=i.extends(r,function(e,t,n){i.apply(this,[r,t,n]),this.name=e});e.exports=o},6(e,t,n){var i=n(9672);e.exports=i.extends("if",function(e,t,n,r,o,a){i.apply(this,["if",o,a]),this.test=e,this.body=t,this.alternate=n,this.shortForm=r})},8861(e,t,n){var i=n(839),r="include";e.exports=i.extends(r,function(e,t,n,o,a){i.apply(this,[r,o,a]),this.once=e,this.require=t,this.target=n})},7860(e,t,n){var i=n(5514),r="inline";e.exports=i.extends(r,function(e,t,n,o){i.apply(this,[r,e,t,n,o])})},9834(e,t,n){var i=n(8533),r="interface";e.exports=i.extends(r,function(e,t,n,o,a,s){i.apply(this,[r,e,a,s]),this.extends=t,this.body=n,this.attrGroups=o})},2724(e,t,n){var i=n(8533),r="intersectiontype";e.exports=i.extends(r,function(e,t,n){i.apply(this,[r,null,t,n]),this.types=e})},6025(e,t,n){var i=n(839),r="isset";e.exports=i.extends(r,function(e,t,n){i.apply(this,[r,t,n]),this.variables=e})},2687(e,t,n){var i=n(9672),r="label";e.exports=i.extends(r,function(e,t,n){i.apply(this,[r,t,n]),this.name=e})},7633(e,t,n){var i=n(839),r="list";e.exports=i.extends(r,function(e,t,n,o){i.apply(this,[r,n,o]),this.items=e,this.shortForm=t})},5514(e,t,n){var i=n(839),r="literal";e.exports=i.extends(r,function(e,t,n,o,a){i.apply(this,[e||r,o,a]),this.value=t,n&&(this.raw=n)})},4778(e){e.exports=function(e,t,n){this.source=e,this.start=t,this.end=n}},7427(e,t,n){var i=n(839),r="lookup";e.exports=i.extends(r,function(e,t,n,o,a){i.apply(this,[e||r,o,a]),this.what=t,this.offset=n})},1122(e,t,n){var i=n(5514),r="magic";e.exports=i.extends(r,function(e,t,n,o){i.apply(this,[r,e,t,n,o])})},7256(e,t,n){var i=n(839),r="match";e.exports=i.extends(r,function(e,t,n,o){i.apply(this,[r,n,o]),this.cond=e,this.arms=t})},7416(e,t,n){var i=n(839),r="matcharm";e.exports=i.extends(r,function(e,t,n,o){i.apply(this,[r,n,o]),this.conds=e,this.body=t})},8140(e,t,n){var i=n(6553),r="method";e.exports=i.extends(r,function(){i.apply(this,arguments),this.kind=r})},6258(e,t,n){var i=n(8276),r="name",o=i.extends(r,function(e,t,n,o){i.apply(this,[r,n,o]),this.name=e.replace(/\\$/,""),this.resolution=t});o.UNQUALIFIED_NAME="uqn",o.QUALIFIED_NAME="qn",o.FULL_QUALIFIED_NAME="fqn",o.RELATIVE_NAME="rn",e.exports=o},6827(e,t,n){var i=n(839),r="namedargument";e.exports=i.extends(r,function(e,t,n,o){i.apply(this,[r,n,o]),this.name=e,this.value=t})},9474(e,t,n){var i=n(4628),r="namespace";e.exports=i.extends(r,function(e,t,n,o,a){i.apply(this,[r,t,o,a]),this.name=e,this.withBrackets=n||!1})},4427(e,t,n){var i=n(839);e.exports=i.extends("new",function(e,t,n,r){i.apply(this,["new",n,r]),this.what=e,this.arguments=t})},4065(e){var t=function(e,t,n){this.kind=e,t&&(this.leadingComments=t),n&&(this.loc=n)};t.prototype.setTrailingComments=function(e){this.trailingComments=e},t.prototype.destroy=function(e){if(!e)throw new Error("Node already initialized, you must swap with another node");return this.leadingComments&&(e.leadingComments?e.leadingComments=Array.concat(this.leadingComments,e.leadingComments):e.leadingComments=this.leadingComments),this.trailingComments&&(e.trailingComments?e.trailingComments=Array.concat(this.trailingComments,e.trailingComments):e.trailingComments=this.trailingComments),e},t.prototype.includeToken=function(e){return this.loc&&(this.loc.end&&(this.loc.end.line=e.lexer.yylloc.last_line,this.loc.end.column=e.lexer.yylloc.last_column,this.loc.end.offset=e.lexer.offset),e.ast.withSource&&(this.loc.source=e.lexer._input.substring(this.loc.start.offset,e.lexer.offset))),this},t.extends=function(e,t){return t.prototype=Object.create(this.prototype),t.extends=this.extends,t.prototype.constructor=t,t.kind=e,t},e.exports=t},4297(e,t,n){var i=n(4065),r="noop";e.exports=i.extends(r,function(e,t){i.apply(this,[r,e,t])})},5859(e,t,n){var i=n(5514),r="nowdoc";e.exports=i.extends(r,function(e,t,n,o,a){i.apply(this,[r,e,t,o,a]),this.label=n})},6985(e,t,n){var i=n(4065),r="nullkeyword";e.exports=i.extends(r,function(e,t,n){i.apply(this,[r,t,n]),this.raw=e})},9302(e,t,n){var i=n(7427),r="nullsafepropertylookup";e.exports=i.extends(r,function(e,t,n,o){i.apply(this,[r,e,t,n,o])})},8212(e,t,n){var i=n(5514),r="number";e.exports=i.extends(r,function(e,t,n,o){i.apply(this,[r,e,t,n,o])})},864(e,t,n){var i=n(7427),r="offsetlookup";e.exports=i.extends(r,function(e,t,n,o){i.apply(this,[r,e,t,n,o])})},8268(e,t,n){var i=n(839),r="operation";e.exports=i.extends(r,function(e,t,n){i.apply(this,[e||r,t,n])})},7190(e,t,n){var i=n(8533),r="parameter";e.exports=i.extends(r,function(e,t,n,o,a,s,l,c,u,d,p){i.apply(this,[r,e,d,p]),this.value=n,this.type=t,this.byref=o,this.variadic=a,this.readonly=s,this.nullable=l,this.flags=c||0,this.hooks=u||[],this.attrGroups=[]})},8519(e,t,n){var i=n(8276),r="parentreference",o=i.extends(r,function(e,t,n){i.apply(this,[r,t,n]),this.raw=e});e.exports=o},8822(e){e.exports=function(e,t,n){this.line=e,this.column=t,this.offset=n}},4835(e,t,n){var i=n(8268),r="post";e.exports=i.extends(r,function(e,t,n,o){i.apply(this,[r,n,o]),this.type=e,this.what=t})},2056(e,t,n){var i=n(8268);e.exports=i.extends("pre",function(e,t,n,r){i.apply(this,["pre",n,r]),this.type=e,this.what=t})},4838(e,t,n){var i=n(839),r="print";e.exports=i.extends(r,function(e,t,n){i.apply(this,[r,t,n]),this.expression=e})},7869(e,t,n){var i=n(4628),r="program";e.exports=i.extends(r,function(e,t,n,o,a,s){i.apply(this,[r,e,a,s]),this.errors=t,n&&(this.comments=n),o&&(this.tokens=o)})},1908(e,t,n){var i=n(9672),r="property";e.exports=i.extends(r,function(e,t,n,o,a,s,l,c,u){i.apply(this,[r,c,u]),this.name=e,this.value=t,this.readonly=n,this.nullable=o,this.type=a,this.attrGroups=s,this.hooks=l||[]})},4863(e,t,n){var i=n(4065),r="propertyhook";e.exports=i.extends(r,function(e,t,n,o,a,s,l,c){i.apply(this,[r,l,c]),this.name=e,this.isFinal=t,this.byref=n,this.parameter=o,this.body=a,this.attrGroups=s||[]})},170(e,t,n){var i=n(7427),r="propertylookup";e.exports=i.extends(r,function(e,t,n,o){i.apply(this,[r,e,t,n,o])})},1091(e,t,n){var i=n(9672),r="propertystatement",o=i.extends(r,function(e,t,n,o,a){i.apply(this,[r,o,a]),this.properties=t,this.parseFlags(n)});o.prototype.parseFlags=function(e){-1===e[0]?this.visibility="":null===e[0]?this.visibility=null:0===e[0]?this.visibility="public":1===e[0]?this.visibility="protected":2===e[0]&&(this.visibility="private"),this.isStatic=1===e[1],this.isAbstract=1===e[2],this.isFinal=2===e[2]},e.exports=o},8276(e,t,n){var i=n(4065),r="reference",o=i.extends(r,function(e,t,n){i.apply(this,[e||r,t,n])});e.exports=o},1842(e,t,n){var i=n(839),r="retif";e.exports=i.extends(r,function(e,t,n,o,a){i.apply(this,[r,o,a]),this.test=e,this.trueExpr=t,this.falseExpr=n})},5739(e,t,n){var i=n(9672),r="return";e.exports=i.extends(r,function(e,t,n){i.apply(this,[r,t,n]),this.expr=e})},1274(e,t,n){var i=n(8276),r="selfreference",o=i.extends(r,function(e,t,n){i.apply(this,[r,t,n]),this.raw=e});e.exports=o},4352(e,t,n){var i=n(839),r="silent";e.exports=i.extends(r,function(e,t,n){i.apply(this,[r,t,n]),this.expr=e})},9672(e,t,n){var i=n(4065),r="statement";e.exports=i.extends(r,function(e,t,n){i.apply(this,[e||r,t,n])})},711(e,t,n){var i=n(9672),r="static";e.exports=i.extends(r,function(e,t,n){i.apply(this,[r,t,n]),this.variables=e})},1865(e,t,n){var i=n(7427),r="staticlookup";e.exports=i.extends(r,function(e,t,n,o){i.apply(this,[r,e,t,n,o])})},1102(e,t,n){var i=n(8276),r="staticreference",o=i.extends(r,function(e,t,n){i.apply(this,[r,t,n]),this.raw=e});e.exports=o},1231(e,t,n){var i=n(4065),r="staticvariable";e.exports=i.extends(r,function(e,t,n,o){i.apply(this,[r,n,o]),this.variable=e,this.defaultValue=t})},7472(e,t,n){var i=n(5514),r="string";e.exports=i.extends(r,function(e,t,n,o,a,s){i.apply(this,[r,t,o,a,s]),this.unicode=n,this.isDoubleQuote=e})},6133(e,t,n){var i=n(9672),r="switch";e.exports=i.extends(r,function(e,t,n,o,a){i.apply(this,[r,o,a]),this.test=e,this.body=t,this.shortForm=n})},1197(e,t,n){var i=n(9672),r="throw";e.exports=i.extends(r,function(e,t,n){i.apply(this,[r,t,n]),this.what=e})},6649(e,t,n){var i=n(8533),r="trait";e.exports=i.extends(r,function(e,t,n,o){i.apply(this,[r,e,n,o]),this.body=t})},1837(e,t,n){var i=n(4065),r="traitalias";e.exports=i.extends(r,function(e,t,n,o,a,s){i.apply(this,[r,a,s]),this.trait=e,this.method=t,this.as=n,this.visibility="",o&&(0===o[0]?this.visibility="public":1===o[0]?this.visibility="protected":2===o[0]&&(this.visibility="private"))})},2277(e,t,n){var i=n(4065),r="traitprecedence";e.exports=i.extends(r,function(e,t,n,o,a){i.apply(this,[r,o,a]),this.trait=e,this.method=t,this.instead=n})},8010(e,t,n){var i=n(4065),r="traituse";e.exports=i.extends(r,function(e,t,n,o){i.apply(this,[r,n,o]),this.traits=e,this.adaptations=t})},7579(e,t,n){var i=n(9672);e.exports=i.extends("try",function(e,t,n,r,o){i.apply(this,["try",r,o]),this.body=e,this.catches=t,this.always=n})},3460(e,t,n){var i=n(8276),r="typereference",o=i.extends(r,function(e,t,n,o){i.apply(this,[r,n,o]),this.name=e,this.raw=t});o.types=["int","float","string","bool","object","array","callable","iterable","void","static","null","never","mixed","true","false"],e.exports=o},2702(e,t,n){var i=n(8268),r="unary";e.exports=i.extends(r,function(e,t,n,o){i.apply(this,[r,n,o]),this.type=e,this.what=t})},514(e,t,n){var i=n(8533),r="uniontype";e.exports=i.extends(r,function(e,t,n){i.apply(this,[r,null,t,n]),this.types=e})},5684(e,t,n){var i=n(9672),r="unset";e.exports=i.extends(r,function(e,t,n){i.apply(this,[r,t,n]),this.variables=e})},8019(e,t,n){var i=n(9672),r="usegroup";e.exports=i.extends(r,function(e,t,n,o,a){i.apply(this,[r,o,a]),this.name=e,this.type=t,this.items=n})},7721(e,t,n){var i=n(9672),r="useitem",o=i.extends(r,function(e,t,n,o,a){i.apply(this,[r,o,a]),this.name=e,this.alias=t,this.type=n});o.TYPE_CONST="const",o.TYPE_FUNCTION="function",e.exports=o},4369(e,t,n){var i=n(839),r="variable";e.exports=i.extends(r,function(e,t,n,o){i.apply(this,[r,n,o]),this.name=e,this.curly=t||!1})},40(e,t,n){var i=n(839),r="variadic";e.exports=i.extends(r,function(e,t,n){i.apply(this,[r,t,n]),this.what=e})},4919(e,t,n){var i=n(4065),r="variadicplaceholder";e.exports=i.extends(r,function(e,t){i.apply(this,[r,e,t])})},7676(e,t,n){var i=n(9672),r="while";e.exports=i.extends(r,function(e,t,n,o,a){i.apply(this,[r,o,a]),this.test=e,this.body=t,this.shortForm=n})},2596(e,t,n){var i=n(839),r="yield";e.exports=i.extends(r,function(e,t,n,o){i.apply(this,[r,n,o]),this.value=e,this.key=t})},6744(e,t,n){var i=n(839),r="yieldfrom";e.exports=i.extends(r,function(e,t,n){i.apply(this,[r,t,n]),this.value=e})},5362(e,t,n){function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var r=n(9108),o=n(7259),a=n(1906),s=n(8938);function l(e,t){for(var n=Object.keys(e),r=n.length;r--;){var o=n[r];if("__proto__"!==o&&"constructor"!==o&&"prototype"!==o){var a=e[o];null===a?delete t[o]:"function"==typeof a?t[o]=a.bind(t):Array.isArray(a)?t[o]=Array.isArray(t[o])?t[o].concat(a):a:"object"===i(a)?t[o]="object"===i(t[o])?l(a,t[o]):a:t[o]=a}}return t}var c=function(e){if("function"==typeof this)return new this(e);if(this.tokens=a,this.lexer=new r(this),this.ast=new s,this.parser=new o(this.lexer,this.ast),e&&"object"===i(e)){if(e.parser&&(e.lexer||(e.lexer={}),e.parser.version)){if("string"==typeof e.parser.version){var t=e.parser.version.split(".");if(t=100*parseInt(t[0])+parseInt(t[1]),isNaN(t))throw new Error("Bad version number : "+e.parser.version);e.parser.version=t}else if("number"!=typeof e.parser.version)throw new Error("Expecting a number for version");if(e.parser.version<500||e.parser.version>900)throw new Error("Can only handle versions between 5.x to 8.x")}l(e,this),this.lexer.version=this.parser.version}},u=function(e){return"function"==typeof e.write?e.toString():e};c.create=function(e){return new c(e)},c.parseEval=function(e,t){return new c(t).parseEval(e)},c.prototype.parseEval=function(e){return this.lexer.mode_eval=!0,this.lexer.all_tokens=!1,e=u(e),this.parser.parse(e,"eval")},c.parseCode=function(e,t,n){return"object"!==i(t)||n||(n=t,t="unknown"),new c(n).parseCode(e,t)},c.prototype.parseCode=function(e,t){return this.lexer.mode_eval=!1,this.lexer.all_tokens=!1,e=u(e),this.parser.parse(e,t)},c.tokenGetAll=function(e,t){return new c(t).tokenGetAll(e)},c.prototype.tokenGetAll=function(e){this.lexer.mode_eval=!1,this.lexer.all_tokens=!0,e=u(e);var t=this.lexer.EOF,n=this.tokens.values;this.lexer.setInput(e);for(var i=this.lexer.lex()||t,r=[];i!=t;){var o=this.lexer.yytext;Object.prototype.hasOwnProperty.call(n,i)&&(o=[n[i],o,this.lexer.yylloc.first_line]),r.push(o),i=this.lexer.lex()||t}return r},e.exports=c,e.exports.tokens=a,e.exports.lexer=r,e.exports.AST=s,e.exports.parser=o,e.exports.combine=l,e.exports.Engine=c,e.exports.default=c},9108(e,t,n){function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var r=function(e){this.engine=e,this.tok=this.engine.tokens.names,this.EOF=1,this.debug=!1,this.all_tokens=!0,this.comment_tokens=!1,this.mode_eval=!1,this.asp_tags=!1,this.short_tags=!1,this.version=803,this.yyprevcol=0,this.keywords={__class__:this.tok.T_CLASS_C,__trait__:this.tok.T_TRAIT_C,__function__:this.tok.T_FUNC_C,__method__:this.tok.T_METHOD_C,__line__:this.tok.T_LINE,__file__:this.tok.T_FILE,__dir__:this.tok.T_DIR,__namespace__:this.tok.T_NS_C,exit:this.tok.T_EXIT,die:this.tok.T_EXIT,function:this.tok.T_FUNCTION,const:this.tok.T_CONST,return:this.tok.T_RETURN,try:this.tok.T_TRY,catch:this.tok.T_CATCH,finally:this.tok.T_FINALLY,throw:this.tok.T_THROW,if:this.tok.T_IF,elseif:this.tok.T_ELSEIF,endif:this.tok.T_ENDIF,else:this.tok.T_ELSE,while:this.tok.T_WHILE,endwhile:this.tok.T_ENDWHILE,do:this.tok.T_DO,for:this.tok.T_FOR,endfor:this.tok.T_ENDFOR,foreach:this.tok.T_FOREACH,endforeach:this.tok.T_ENDFOREACH,declare:this.tok.T_DECLARE,enddeclare:this.tok.T_ENDDECLARE,instanceof:this.tok.T_INSTANCEOF,as:this.tok.T_AS,switch:this.tok.T_SWITCH,endswitch:this.tok.T_ENDSWITCH,case:this.tok.T_CASE,default:this.tok.T_DEFAULT,break:this.tok.T_BREAK,continue:this.tok.T_CONTINUE,goto:this.tok.T_GOTO,echo:this.tok.T_ECHO,print:this.tok.T_PRINT,class:this.tok.T_CLASS,interface:this.tok.T_INTERFACE,trait:this.tok.T_TRAIT,enum:this.tok.T_ENUM,extends:this.tok.T_EXTENDS,implements:this.tok.T_IMPLEMENTS,new:this.tok.T_NEW,clone:this.tok.T_CLONE,var:this.tok.T_VAR,eval:this.tok.T_EVAL,include:this.tok.T_INCLUDE,include_once:this.tok.T_INCLUDE_ONCE,require:this.tok.T_REQUIRE,require_once:this.tok.T_REQUIRE_ONCE,namespace:this.tok.T_NAMESPACE,use:this.tok.T_USE,insteadof:this.tok.T_INSTEADOF,global:this.tok.T_GLOBAL,isset:this.tok.T_ISSET,empty:this.tok.T_EMPTY,__halt_compiler:this.tok.T_HALT_COMPILER,static:this.tok.T_STATIC,abstract:this.tok.T_ABSTRACT,final:this.tok.T_FINAL,private:this.tok.T_PRIVATE,protected:this.tok.T_PROTECTED,public:this.tok.T_PUBLIC,unset:this.tok.T_UNSET,list:this.tok.T_LIST,array:this.tok.T_ARRAY,callable:this.tok.T_CALLABLE,or:this.tok.T_LOGICAL_OR,and:this.tok.T_LOGICAL_AND,xor:this.tok.T_LOGICAL_XOR,match:this.tok.T_MATCH,readonly:this.tok.T_READ_ONLY},this.castKeywords={int:this.tok.T_INT_CAST,integer:this.tok.T_INT_CAST,real:this.tok.T_DOUBLE_CAST,double:this.tok.T_DOUBLE_CAST,float:this.tok.T_DOUBLE_CAST,string:this.tok.T_STRING_CAST,binary:this.tok.T_STRING_CAST,array:this.tok.T_ARRAY_CAST,object:this.tok.T_OBJECT_CAST,bool:this.tok.T_BOOL_CAST,boolean:this.tok.T_BOOL_CAST,unset:this.tok.T_UNSET_CAST}};r.prototype.setInput=function(e){return this._input=e,this.size=e.length,this.yylineno=1,this.offset=0,this.yyprevcol=0,this.yytext="",this.yylloc={first_offset:0,first_line:1,first_column:0,prev_offset:0,prev_line:1,prev_column:0,last_line:1,last_column:0},this.tokens=[],this.version>703?this.keywords.fn=this.tok.T_FN:delete this.keywords.fn,this.done=this.offset>=this.size,!this.all_tokens&&this.mode_eval?(this.conditionStack=["INITIAL"],this.begin("ST_IN_SCRIPTING")):(this.conditionStack=[],this.begin("INITIAL")),this.heredoc_label={label:"",length:0,indentation:0,indentation_uses_spaces:!1,finished:!1,first_encaps_node:!1,toString:function(){this.label}},this},r.prototype.input=function(){var e=this._input[this.offset];return e?(this.yytext+=e,this.offset++,"\r"===e&&"\n"===this._input[this.offset]&&(this.yytext+="\n",this.offset++),"\n"===e||"\r"===e?(this.yylloc.last_line=++this.yylineno,this.yyprevcol=this.yylloc.last_column,this.yylloc.last_column=0):this.yylloc.last_column++,e):""},r.prototype.unput=function(e){if(1===e)this.offset--,"\n"===this._input[this.offset]&&"\r"===this._input[this.offset-1]&&(this.offset--,e++),"\r"===this._input[this.offset]||"\n"===this._input[this.offset]?(this.yylloc.last_line--,this.yylineno--,this.yylloc.last_column=this.yyprevcol):this.yylloc.last_column--,this.yytext=this.yytext.substring(0,this.yytext.length-e);else if(e>0)if(this.offset-=e,e<this.yytext.length){this.yytext=this.yytext.substring(0,this.yytext.length-e),this.yylloc.last_line=this.yylloc.first_line,this.yylloc.last_column=this.yyprevcol=this.yylloc.first_column;for(var t=0;t<this.yytext.length;t++){var n=this.yytext[t];"\r"===n?(n=this.yytext[++t],this.yyprevcol=this.yylloc.last_column,this.yylloc.last_line++,this.yylloc.last_column=0,"\n"!==n&&("\r"===n?this.yylloc.last_line++:this.yylloc.last_column++)):"\n"===n?(this.yyprevcol=this.yylloc.last_column,this.yylloc.last_line++,this.yylloc.last_column=0):this.yylloc.last_column++}this.yylineno=this.yylloc.last_line}else this.yytext="",this.yylloc.last_line=this.yylineno=this.yylloc.first_line,this.yylloc.last_column=this.yylloc.first_column;return this},r.prototype.tryMatch=function(e){return e===this.ahead(e.length)},r.prototype.tryMatchCaseless=function(e){return e===this.ahead(e.length).toLowerCase()},r.prototype.ahead=function(e){var t=this._input.substring(this.offset,this.offset+e);return"\r"===t[t.length-1]&&"\n"===this._input[this.offset+e+1]&&(t+="\n"),t},r.prototype.consume=function(e){for(var t=0;t<e;t++){var n=this._input[this.offset];if(!n)break;this.yytext+=n,this.offset++,"\r"===n&&"\n"===this._input[this.offset]&&(this.yytext+="\n",this.offset++,t++),"\n"===n||"\r"===n?(this.yylloc.last_line=++this.yylineno,this.yyprevcol=this.yylloc.last_column,this.yylloc.last_column=0):this.yylloc.last_column++}return this},r.prototype.getState=function(){return{yytext:this.yytext,offset:this.offset,yylineno:this.yylineno,yyprevcol:this.yyprevcol,yylloc:{first_offset:this.yylloc.first_offset,first_line:this.yylloc.first_line,first_column:this.yylloc.first_column,last_line:this.yylloc.last_line,last_column:this.yylloc.last_column},heredoc_label:this.heredoc_label}},r.prototype.setState=function(e){return this.yytext=e.yytext,this.offset=e.offset,this.yylineno=e.yylineno,this.yyprevcol=e.yyprevcol,this.yylloc=e.yylloc,e.heredoc_label&&(this.heredoc_label=e.heredoc_label),this},r.prototype.appendToken=function(e,t){return this.tokens.push([e,t]),this},r.prototype.lex=function(){this.yylloc.prev_offset=this.offset,this.yylloc.prev_line=this.yylloc.last_line,this.yylloc.prev_column=this.yylloc.last_column;var e=this.next()||this.lex();if(!this.all_tokens){for(;e===this.tok.T_WHITESPACE||!this.comment_tokens&&(e===this.tok.T_COMMENT||e===this.tok.T_DOC_COMMENT)||e===this.tok.T_OPEN_TAG;)e=this.next()||this.lex();if(e==this.tok.T_OPEN_TAG_WITH_ECHO)return this.tok.T_ECHO;if(e===this.tok.T_CLOSE_TAG)return";"}return this.yylloc.prev_offset||(this.yylloc.prev_offset=this.yylloc.first_offset,this.yylloc.prev_line=this.yylloc.first_line,this.yylloc.prev_column=this.yylloc.first_column),e},r.prototype.begin=function(e){if(this.conditionStack.push(e),this.curCondition=e,this.stateCb=this["match"+e],"function"!=typeof this.stateCb)throw new Error('Undefined condition state "'+e+'"');return this},r.prototype.popState=function(){var e=this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0];if(this.curCondition=this.conditionStack[this.conditionStack.length-1],this.stateCb=this["match"+this.curCondition],"function"!=typeof this.stateCb)throw new Error('Undefined condition state "'+this.curCondition+'"');return e},r.prototype.next=function(){var e;if(this._input||(this.done=!0),this.yylloc.first_offset=this.offset,this.yylloc.first_line=this.yylloc.last_line,this.yylloc.first_column=this.yylloc.last_column,this.yytext="",this.done)return this.yylloc.prev_offset=this.yylloc.first_offset,this.yylloc.prev_line=this.yylloc.first_line,this.yylloc.prev_column=this.yylloc.first_column,this.EOF;if(this.tokens.length>0?("object"===i((e=this.tokens.shift())[1])?this.setState(e[1]):this.consume(e[1]),e=e[0]):e=this.stateCb.apply(this,[]),this.offset>=this.size&&0===this.tokens.length&&(this.done=!0),this.debug){var t=e;t="number"==typeof t?this.engine.tokens.values[t]:'"'+t+'"';var n=new Error(t+"\tfrom "+this.yylloc.first_line+","+this.yylloc.first_column+"\t - to "+this.yylloc.last_line+","+this.yylloc.last_column+'\t"'+this.yytext+'"');console.error(n.stack)}return e},[n(9671),n(2429),n(3683),n(6545),n(3810),n(8510),n(4401),n(4349),n(8582)].forEach(function(e){for(var t in e)r.prototype[t]=e[t]}),e.exports=r},9671(e){e.exports={attributeIndex:0,attributeListDepth:{},matchST_ATTRIBUTE:function(){var e=this.input();if(this.is_WHITESPACE()){do{this.input()}while(this.is_WHITESPACE());return this.unput(1),null}switch(e){case"]":return 0===this.attributeListDepth[this.attributeIndex]?(delete this.attributeListDepth[this.attributeIndex],this.attributeIndex--,this.popState()):this.attributeListDepth[this.attributeIndex]--,"]";case"(":case")":case":":case"=":case";":case"|":case"&":case"^":case"-":case"+":case"*":case"%":case"~":case"<":case">":case"!":case".":case"{":case"}":case"$":return this.consume_TOKEN();case"[":return this.attributeListDepth[this.attributeIndex]++,"[";case",":return",";case'"':return this.ST_DOUBLE_QUOTES();case"'":return this.T_CONSTANT_ENCAPSED_STRING();case"/":return"/"===this._input[this.offset]?this.T_COMMENT():"*"===this._input[this.offset]?(this.input(),this.T_DOC_COMMENT()):this.consume_TOKEN()}if(this.is_LABEL_START()||"\\"===e){for(;this.offset<this.size;){var t=this.input();if(!this.is_LABEL()&&"\\"!==t){t&&this.unput(1);break}}return this.T_STRING()}if(this.is_NUM())return this.consume_NUM();throw new Error('Bad terminal sequence "'.concat(e,'" at line ').concat(this.yylineno," (offset ").concat(this.offset,")"))}}},2429(e){e.exports={T_COMMENT:function(){for(;this.offset<this.size;){var e=this.input();if("\n"===e||"\r"===e)return this.tok.T_COMMENT;if("?"===e&&!this.aspTagMode&&">"===this._input[this.offset])return this.unput(1),this.tok.T_COMMENT;if("%"===e&&this.aspTagMode&&">"===this._input[this.offset])return this.unput(1),this.tok.T_COMMENT}return this.tok.T_COMMENT},T_DOC_COMMENT:function(){var e=this.input(),t=this.tok.T_COMMENT;if("*"===e){if(e=this.input(),this.is_WHITESPACE()&&(t=this.tok.T_DOC_COMMENT),"/"===e)return t;this.unput(1)}for(;this.offset<this.size;)if("*"===(e=this.input())&&"/"===this._input[this.offset]){this.input();break}return t}}},3683(e){e.exports={nextINITIAL:function(){return this.conditionStack.length>1&&"INITIAL"===this.conditionStack[this.conditionStack.length-1]?this.popState():this.begin("ST_IN_SCRIPTING"),this},matchINITIAL:function(){for(;this.offset<this.size;){var e=this.input();if("<"==e)if("?"==(e=this.ahead(1))){if(this.tryMatch("?=")){this.unput(1).appendToken(this.tok.T_OPEN_TAG_WITH_ECHO,3).nextINITIAL();break}if(this.tryMatchCaseless("?php")&&(" "===(e=this._input[this.offset+4])||"\t"===e||"\n"===e||"\r"===e)){this.unput(1).appendToken(this.tok.T_OPEN_TAG,6).nextINITIAL();break}if(this.short_tags){this.unput(1).appendToken(this.tok.T_OPEN_TAG,2).nextINITIAL();break}}else if(this.asp_tags&&"%"==e){if(this.tryMatch("%=")){this.aspTagMode=!0,this.unput(1).appendToken(this.tok.T_OPEN_TAG_WITH_ECHO,3).nextINITIAL();break}this.aspTagMode=!0,this.unput(1).appendToken(this.tok.T_OPEN_TAG,2).nextINITIAL();break}}return this.yytext.length>0&&this.tok.T_INLINE_HTML}}},6545(e){var t=10,n="2147483648";"x64"==r.arch&&(t=19,n="9223372036854775808"),e.exports={consume_NUM:function(){var e=this.yytext[0],i="."===e;if("0"===e)if("x"===(e=this.input())||"X"===e){if("_"!==(e=this.input())&&this.is_HEX())return this.consume_HNUM();this.unput(e?2:1)}else if("b"===e||"B"===e){if("_"!==(e=this.input())&&"0"===e||"1"===e)return this.consume_BNUM();this.unput(e?2:1)}else if("o"===e||"O"===e){if("_"!==(e=this.input())&&this.is_OCTAL())return this.consume_ONUM();this.unput(e?2:1)}else this.is_NUM()||e&&this.unput(1);for(;this.offset<this.size;){var r=e;if("_"===(e=this.input())){if("_"===r){this.unput(2);break}if("."===r){this.unput(1);break}if("e"===r||"E"===r){this.unput(2);break}}else{if("."===e){if(i){this.unput(1);break}if("_"===r){this.unput(2);break}i=!0;continue}if("e"===e||"E"===e){if("_"===r){this.unput(1);break}var o=2;if("+"!==(e=this.input())&&"-"!==e||(o=3,e=this.input()),this.is_NUM_START())return this.consume_LNUM(),this.tok.T_DNUMBER;this.unput(e?o:o-1);break}}if(!this.is_NUM()){e&&this.unput(1);break}}return i?this.tok.T_DNUMBER:this.yytext.length<t-1||this.yytext.length<t||this.yytext.length==t&&this.yytext<n?this.tok.T_LNUMBER:this.tok.T_DNUMBER},consume_HNUM:function(){for(;this.offset<this.size;){var e=this.input();if(!this.is_HEX()){e&&this.unput(1);break}}return this.tok.T_LNUMBER},consume_LNUM:function(){for(;this.offset<this.size;){var e=this.input();if(!this.is_NUM()){e&&this.unput(1);break}}return this.tok.T_LNUMBER},consume_BNUM:function(){for(var e;this.offset<this.size;)if("0"!==(e=this.input())&&"1"!==e&&"_"!==e){e&&this.unput(1);break}return this.tok.T_LNUMBER},consume_ONUM:function(){for(;this.offset<this.size;){var e=this.input();if(!this.is_OCTAL()){e&&this.unput(1);break}}return this.tok.T_LNUMBER}}},3810(e){e.exports={matchST_LOOKING_FOR_PROPERTY:function(){var e=this.input();if("-"===e){if(">"===(e=this.input()))return this.tok.T_OBJECT_OPERATOR;e&&this.unput(1)}else{if(this.is_WHITESPACE())return this.tok.T_WHITESPACE;if(this.is_LABEL_START())return this.consume_LABEL(),this.popState(),this.tok.T_STRING}return this.popState(),e&&this.unput(1),!1},matchST_LOOKING_FOR_VARNAME:function(){var e=this.input();if(this.popState(),this.begin("ST_IN_SCRIPTING"),this.is_LABEL_START()){if(this.consume_LABEL(),"["===(e=this.input())||"}"===e)return this.unput(1),this.tok.T_STRING_VARNAME;this.unput(this.yytext.length)}else e&&this.unput(1);return!1},matchST_VAR_OFFSET:function(){var e=this.input();if(this.is_NUM_START())return this.consume_NUM(),this.tok.T_NUM_STRING;if("]"===e)return this.popState(),"]";if("$"===e){if(this.input(),this.is_LABEL_START())return this.consume_LABEL(),this.tok.T_VARIABLE;throw new Error("Unexpected terminal")}if(this.is_LABEL_START())return this.consume_LABEL(),this.tok.T_STRING;if(this.is_WHITESPACE()||"\\"===e||"'"===e||"#"===e)return this.tok.T_ENCAPSED_AND_WHITESPACE;if("["===e||"{"===e||"}"===e||'"'===e||"`"===e||this.is_TOKEN())return e;throw new Error("Unexpected terminal")}}},8510(e){e.exports={matchST_IN_SCRIPTING:function(){var e=this.input();switch(e){case" ":case"\t":case"\n":case"\r":case"\r\n":return this.T_WHITESPACE();case"#":return this.version>=800&&"["===this._input[this.offset]?(this.input(),this.attributeListDepth[++this.attributeIndex]=0,this.begin("ST_ATTRIBUTE"),this.tok.T_ATTRIBUTE):this.T_COMMENT();case"/":return"/"===this._input[this.offset]?this.T_COMMENT():"*"===this._input[this.offset]?(this.input(),this.T_DOC_COMMENT()):this.consume_TOKEN();case"'":return this.T_CONSTANT_ENCAPSED_STRING();case'"':return this.ST_DOUBLE_QUOTES();case"`":return this.begin("ST_BACKQUOTE"),"`";case"?":if(!this.aspTagMode&&this.tryMatch(">")){this.input();var t=this._input[this.offset];return"\n"!==t&&"\r"!==t||this.input(),this.conditionStack.length>1&&this.begin("INITIAL"),this.tok.T_CLOSE_TAG}return this.consume_TOKEN();case"%":return this.aspTagMode&&">"===this._input[this.offset]?(this.input(),"\n"!==(e=this._input[this.offset])&&"\r"!==e||this.input(),this.aspTagMode=!1,this.conditionStack.length>1&&this.begin("INITIAL"),this.tok.T_CLOSE_TAG):this.consume_TOKEN();case"{":return this.begin("ST_IN_SCRIPTING"),"{";case"}":return this.conditionStack.length>2&&this.popState(),"}";default:if("."===e){if(e=this.input(),this.is_NUM_START())return this.consume_NUM();e&&this.unput(1)}if(this.is_NUM_START())return this.consume_NUM();if(this.is_LABEL_START())return this.consume_LABEL().T_STRING();if(this.is_TOKEN())return this.consume_TOKEN()}throw new Error('Bad terminal sequence "'+e+'" at line '+this.yylineno+" (offset "+this.offset+")")},T_WHITESPACE:function(){for(;this.offset<this.size;){var e=this.input();if(" "!==e&&"\t"!==e&&"\n"!==e&&"\r"!==e){e&&this.unput(1);break}}return this.tok.T_WHITESPACE}}},4401(e){var t=["\n","\r"],n=["\n","\r",";"],i=n.concat(["\t"," ",",","]",")","/","=","!","."]);e.exports={T_CONSTANT_ENCAPSED_STRING:function(){for(var e;this.offset<this.size;)if("\\"==(e=this.input()))this.input();else if("'"==e)break;return this.tok.T_CONSTANT_ENCAPSED_STRING},is_HEREDOC:function(){var e=this.offset;if("<"===this._input[this.offset-1]&&"<"===this._input[this.offset]&&"<"===this._input[this.offset+1]){if(this.offset+=3,this.is_TABSPACE())for(;this.offset<this.size&&(this.offset++,this.is_TABSPACE()););var n=this._input[this.offset-1];if("'"===n||'"'===n?this.offset++:n=null,this.is_LABEL_START()){for(var i=this.offset-1;this.offset<this.size&&(this.offset++,this.is_LABEL()););var r=this._input.substring(i,this.offset-1);if((!n||n===this._input[this.offset-1])&&(n&&this.offset++,t.includes(this._input[this.offset-1])))return this.heredoc_label.label=r,this.heredoc_label.length=r.length,this.heredoc_label.finished=!1,i=this.offset-e,this.offset=e,this.consume(i),"'"===n?this.begin("ST_NOWDOC"):this.begin("ST_HEREDOC"),this.prematch_ENDOFDOC(),this.tok.T_START_HEREDOC}}return this.offset=e,!1},ST_DOUBLE_QUOTES:function(){for(var e;this.offset<this.size;)if("\\"==(e=this.input()))this.input();else{if('"'==e)break;if("$"==e){if("{"==(e=this.input())||this.is_LABEL_START()){this.unput(2);break}e&&this.unput(1)}else if("{"==e){if("$"==(e=this.input())){this.unput(2);break}e&&this.unput(1)}}if('"'==e)return this.tok.T_CONSTANT_ENCAPSED_STRING;var t=1;return"b"!==this.yytext[0]&&"B"!==this.yytext[0]||(t=2),this.yytext.length>2&&this.appendToken(this.tok.T_ENCAPSED_AND_WHITESPACE,this.yytext.length-t),this.unput(this.yytext.length-t),this.begin("ST_DOUBLE_QUOTES"),this.yytext},isDOC_MATCH:function(e,r){var o=this._input[e-2];if(!t.includes(o))return!1;var a=!1,s=!1,l=0,c=this._input[e-1];if(this.version>=703){for(;"\t"===c||" "===c;)" "===c?a=!0:"\t"===c&&(s=!0),c=this._input[e+l],l++;if(e+=l,t.includes(this._input[e-1]))return!1}if(this._input.substring(e-1,e-1+this.heredoc_label.length)===this.heredoc_label.label){var u=this._input[e-1+this.heredoc_label.length];if((this.version>=703?i:n).includes(u)){if(r){if(this.consume(l),a&&s)throw new Error("Parse error: mixing spaces and tabs in ending marker at line "+this.yylineno+" (offset "+this.offset+")")}else this.heredoc_label.indentation=l,this.heredoc_label.indentation_uses_spaces=a,this.heredoc_label.first_encaps_node=!0;return!0}}return!1},prematch_ENDOFDOC:function(){this.heredoc_label.indentation_uses_spaces=!1,this.heredoc_label.indentation=0,this.heredoc_label.first_encaps_node=!0;for(var e=this.offset+1;e<this._input.length;){if(this.isDOC_MATCH(e,!1))return;if(!t.includes(this._input[e-1]))for(;!t.includes(this._input[e++])&&e<this._input.length;);e++}},matchST_NOWDOC:function(){if(this.isDOC_MATCH(this.offset,!0))return this.consume(this.heredoc_label.length),this.popState(),this.tok.T_END_HEREDOC;for(var e=this._input[this.offset-1];this.offset<this.size;)if(t.includes(e)){if(e=this.input(),this.isDOC_MATCH(this.offset,!0))return this.unput(1).popState(),this.appendToken(this.tok.T_END_HEREDOC,this.heredoc_label.length),this.tok.T_ENCAPSED_AND_WHITESPACE}else e=this.input();return this.tok.T_ENCAPSED_AND_WHITESPACE},matchST_HEREDOC:function(){var e=this.input();if(this.isDOC_MATCH(this.offset,!0))return this.consume(this.heredoc_label.length-1),this.popState(),this.tok.T_END_HEREDOC;for(;this.offset<this.size;)if("\\"===e&&(e=this.input(),t.includes(e)||(e=this.input())),t.includes(e)){if(e=this.input(),this.isDOC_MATCH(this.offset,!0))return this.unput(1).popState(),this.appendToken(this.tok.T_END_HEREDOC,this.heredoc_label.length),this.tok.T_ENCAPSED_AND_WHITESPACE}else if("$"===e){if("{"===(e=this.input()))return this.begin("ST_LOOKING_FOR_VARNAME"),this.yytext.length>2?(this.appendToken(this.tok.T_DOLLAR_OPEN_CURLY_BRACES,2),this.unput(2),this.tok.T_ENCAPSED_AND_WHITESPACE):this.tok.T_DOLLAR_OPEN_CURLY_BRACES;if(this.is_LABEL_START()){var n=this.offset,i=this.consume_VARIABLE();return this.yytext.length>this.offset-n+2?(this.appendToken(i,this.offset-n+2),this.unput(this.offset-n+2),this.tok.T_ENCAPSED_AND_WHITESPACE):i}}else if("{"===e){if("$"===(e=this.input()))return this.begin("ST_IN_SCRIPTING"),this.yytext.length>2?(this.appendToken(this.tok.T_CURLY_OPEN,1),this.unput(2),this.tok.T_ENCAPSED_AND_WHITESPACE):(this.unput(1),this.tok.T_CURLY_OPEN)}else e=this.input();return this.tok.T_ENCAPSED_AND_WHITESPACE},consume_VARIABLE:function(){this.consume_LABEL();var e=this.input();if("["==e)return this.unput(1),this.begin("ST_VAR_OFFSET"),this.tok.T_VARIABLE;if("-"===e){if(">"===this.input())return this.input(),this.is_LABEL_START()&&this.begin("ST_LOOKING_FOR_PROPERTY"),this.unput(3),this.tok.T_VARIABLE;this.unput(2)}else e&&this.unput(1);return this.tok.T_VARIABLE},matchST_BACKQUOTE:function(){var e=this.input();if("$"===e){if("{"===(e=this.input()))return this.begin("ST_LOOKING_FOR_VARNAME"),this.tok.T_DOLLAR_OPEN_CURLY_BRACES;if(this.is_LABEL_START())return this.consume_VARIABLE()}else if("{"===e){if("$"===this._input[this.offset])return this.begin("ST_IN_SCRIPTING"),this.tok.T_CURLY_OPEN}else if("`"===e)return this.popState(),"`";for(;this.offset<this.size;){if("\\"===e)this.input();else{if("`"===e){this.unput(1),this.popState(),this.appendToken("`",1);break}if("$"===e){if("{"===(e=this.input()))return this.begin("ST_LOOKING_FOR_VARNAME"),this.yytext.length>2?(this.appendToken(this.tok.T_DOLLAR_OPEN_CURLY_BRACES,2),this.unput(2),this.tok.T_ENCAPSED_AND_WHITESPACE):this.tok.T_DOLLAR_OPEN_CURLY_BRACES;if(this.is_LABEL_START()){var t=this.offset,n=this.consume_VARIABLE();return this.yytext.length>this.offset-t+2?(this.appendToken(n,this.offset-t+2),this.unput(this.offset-t+2),this.tok.T_ENCAPSED_AND_WHITESPACE):n}continue}if("{"===e){if("$"===(e=this.input()))return this.begin("ST_IN_SCRIPTING"),this.yytext.length>2?(this.appendToken(this.tok.T_CURLY_OPEN,1),this.unput(2),this.tok.T_ENCAPSED_AND_WHITESPACE):(this.unput(1),this.tok.T_CURLY_OPEN);continue}}e=this.input()}return this.tok.T_ENCAPSED_AND_WHITESPACE},matchST_DOUBLE_QUOTES:function(){var e=this.input();if("$"===e){if("{"===(e=this.input()))return this.begin("ST_LOOKING_FOR_VARNAME"),this.tok.T_DOLLAR_OPEN_CURLY_BRACES;if(this.is_LABEL_START())return this.consume_VARIABLE()}else if("{"===e){if("$"===this._input[this.offset])return this.begin("ST_IN_SCRIPTING"),this.tok.T_CURLY_OPEN}else if('"'===e)return this.popState(),'"';for(;this.offset<this.size;){if("\\"===e)this.input();else{if('"'===e){this.unput(1),this.popState(),this.appendToken('"',1);break}if("$"===e){if("{"===(e=this.input()))return this.begin("ST_LOOKING_FOR_VARNAME"),this.yytext.length>2?(this.appendToken(this.tok.T_DOLLAR_OPEN_CURLY_BRACES,2),this.unput(2),this.tok.T_ENCAPSED_AND_WHITESPACE):this.tok.T_DOLLAR_OPEN_CURLY_BRACES;if(this.is_LABEL_START()){var t=this.offset,n=this.consume_VARIABLE();return this.yytext.length>this.offset-t+2?(this.appendToken(n,this.offset-t+2),this.unput(this.offset-t+2),this.tok.T_ENCAPSED_AND_WHITESPACE):n}e&&this.unput(1)}else if("{"===e){if("$"===(e=this.input()))return this.begin("ST_IN_SCRIPTING"),this.yytext.length>2?(this.appendToken(this.tok.T_CURLY_OPEN,1),this.unput(2),this.tok.T_ENCAPSED_AND_WHITESPACE):(this.unput(1),this.tok.T_CURLY_OPEN);e&&this.unput(1)}}e=this.input()}return this.tok.T_ENCAPSED_AND_WHITESPACE}}},4349(e){e.exports={T_STRING:function(){var e=this.yytext.toLowerCase(),t=this.keywords[e];if("number"!=typeof t)if("yield"===e)this.version>=700&&this.tryMatch(" from")?(this.consume(5),t=this.tok.T_YIELD_FROM):t=this.tok.T_YIELD;else if(t=this.tok.T_STRING,"b"===e||"B"===e){var n=this.input();if('"'===n)return this.ST_DOUBLE_QUOTES();if("'"===n)return this.T_CONSTANT_ENCAPSED_STRING();n&&this.unput(1)}if(t===this.tok.T_ENUM){if(this.version<801)return this.tok.T_STRING;for(var i=this.offset,r=this.input();" "==r;)r=this.input();var o=!1;if(this.is_LABEL_START()){for(;this.is_LABEL();)r+=this.input();var a=r.slice(0,-1).toLowerCase();o="extends"!==a&&"implements"!==a}return this.unput(this.offset-i),o?this.tok.T_ENUM:this.tok.T_STRING}if(this.offset<this.size&&t!==this.tok.T_YIELD_FROM){var s=this.input();if("\\"===s){t="namespace"===e?this.tok.T_NAME_RELATIVE:this.tok.T_NAME_QUALIFIED;do{if("{"===this._input[this.offset]){this.input();break}this.consume_LABEL(),s=this.input()}while("\\"===s)}s&&this.unput(1)}return t},consume_TOKEN:function(){var e=this._input[this.offset-1],t=this.tokenTerminals[e];return t?t.apply(this,[]):this.yytext},tokenTerminals:{$:function(){return this.offset++,this.is_LABEL_START()?(this.offset--,this.consume_LABEL(),this.tok.T_VARIABLE):(this.offset--,"$")},"-":function(){var e=this._input[this.offset];return">"===e?(this.begin("ST_LOOKING_FOR_PROPERTY").input(),this.tok.T_OBJECT_OPERATOR):"-"===e?(this.input(),this.tok.T_DEC):"="===e?(this.input(),this.tok.T_MINUS_EQUAL):"-"},"\\":function(){if(this.offset<this.size){if(this.input(),this.is_LABEL_START()){var e;do{if("{"===this._input[this.offset]){this.input();break}this.consume_LABEL(),e=this.input()}while("\\"===e);return this.unput(1),this.tok.T_NAME_FULLY_QUALIFIED}this.unput(1)}return this.tok.T_NS_SEPARATOR},"/":function(){return"="===this._input[this.offset]?(this.input(),this.tok.T_DIV_EQUAL):"/"},":":function(){return":"===this._input[this.offset]?(this.input(),this.tok.T_DOUBLE_COLON):":"},"(":function(){var e=this.offset;if(this.input(),this.is_TABSPACE()&&this.consume_TABSPACE().input(),this.is_LABEL_START()){var t=this.yytext.length;this.consume_LABEL();var n=this.yytext.substring(t-1).toLowerCase(),i=this.castKeywords[n];if("number"==typeof i&&(this.input(),this.is_TABSPACE()&&this.consume_TABSPACE().input(),")"===this._input[this.offset-1]))return i}return this.unput(this.offset-e),"("},"=":function(){var e=this._input[this.offset];return">"===e?(this.input(),this.tok.T_DOUBLE_ARROW):"="===e?"="===this._input[this.offset+1]?(this.consume(2),this.tok.T_IS_IDENTICAL):(this.input(),this.tok.T_IS_EQUAL):"="},"+":function(){var e=this._input[this.offset];return"+"===e?(this.input(),this.tok.T_INC):"="===e?(this.input(),this.tok.T_PLUS_EQUAL):"+"},"!":function(){return"="===this._input[this.offset]?"="===this._input[this.offset+1]?(this.consume(2),this.tok.T_IS_NOT_IDENTICAL):(this.input(),this.tok.T_IS_NOT_EQUAL):"!"},"?":function(){return this.version>=700&&"?"===this._input[this.offset]?this.version>=704&&"="===this._input[this.offset+1]?(this.consume(2),this.tok.T_COALESCE_EQUAL):(this.input(),this.tok.T_COALESCE):this.version>=800&&"-"===this._input[this.offset]&&">"===this._input[this.offset+1]?(this.consume(1),this.begin("ST_LOOKING_FOR_PROPERTY").input(),this.tok.T_NULLSAFE_OBJECT_OPERATOR):"?"},"<":function(){var e=this._input[this.offset];return"<"===e?"="===(e=this._input[this.offset+1])?(this.consume(2),this.tok.T_SL_EQUAL):"<"===e&&this.is_HEREDOC()?this.tok.T_START_HEREDOC:(this.input(),this.tok.T_SL):"="===e?(this.input(),this.version>=700&&">"===this._input[this.offset]?(this.input(),this.tok.T_SPACESHIP):this.tok.T_IS_SMALLER_OR_EQUAL):">"===e?(this.input(),this.tok.T_IS_NOT_EQUAL):"<"},">":function(){var e=this._input[this.offset];return"="===e?(this.input(),this.tok.T_IS_GREATER_OR_EQUAL):">"===e?"="===(e=this._input[this.offset+1])?(this.consume(2),this.tok.T_SR_EQUAL):(this.input(),this.tok.T_SR):">"},"*":function(){var e=this._input[this.offset];return"="===e?(this.input(),this.tok.T_MUL_EQUAL):"*"===e?(this.input(),"="===this._input[this.offset]?(this.input(),this.tok.T_POW_EQUAL):this.tok.T_POW):"*"},".":function(){var e=this._input[this.offset];return"="===e?(this.input(),this.tok.T_CONCAT_EQUAL):"."===e&&"."===this._input[this.offset+1]?(this.consume(2),this.tok.T_ELLIPSIS):"."},"%":function(){return"="===this._input[this.offset]?(this.input(),this.tok.T_MOD_EQUAL):"%"},"&":function(){var e=this._input[this.offset];return"="===e?(this.input(),this.tok.T_AND_EQUAL):"&"===e?(this.input(),this.tok.T_BOOLEAN_AND):"&"},"|":function(){var e=this._input[this.offset];return"="===e?(this.input(),this.tok.T_OR_EQUAL):"|"===e?(this.input(),this.tok.T_BOOLEAN_OR):">"===e?(this.input(),this.tok.T_PIPE):"|"},"^":function(){return"="===this._input[this.offset]?(this.input(),this.tok.T_XOR_EQUAL):"^"}}}},8582(e){e.exports={is_NUM:function(){var e=this._input.charCodeAt(this.offset-1);return e>47&&e<58||95===e},is_NUM_START:function(){var e=this._input.charCodeAt(this.offset-1);return e>47&&e<58},is_LABEL:function(){var e=this._input.charCodeAt(this.offset-1);return e>96&&e<123||e>64&&e<91||95===e||e>47&&e<58||e>126},is_LABEL_START:function(){var e=this._input.charCodeAt(this.offset-1);return e>64&&e<91||e>96&&e<123||95===e||e>126},consume_LABEL:function(){for(;this.offset<this.size;){var e=this.input();if(!this.is_LABEL()){e&&this.unput(1);break}}return this},is_TOKEN:function(){var e=this._input[this.offset-1];return-1!==";:,.\\[]()|^&+-/*=%!~$<>?@".indexOf(e)},is_WHITESPACE:function(){var e=this._input[this.offset-1];return" "===e||"\t"===e||"\n"===e||"\r"===e},is_TABSPACE:function(){var e=this._input[this.offset-1];return" "===e||"\t"===e},consume_TABSPACE:function(){for(;this.offset<this.size;){var e=this.input();if(!this.is_TABSPACE()){e&&this.unput(1);break}}return this},is_HEX:function(){var e=this._input.charCodeAt(this.offset-1);return e>47&&e<58||e>64&&e<71||e>96&&e<103||95===e},is_OCTAL:function(){var e=this._input.charCodeAt(this.offset-1);return e>47&&e<56||95===e}}},7259(e,t,n){var i=n(8822);function r(e){return"."!=e&&","!=e&&!isNaN(parseFloat(e))&&isFinite(e)}var o=function(e,t){this.lexer=e,this.ast=t,this.tok=e.tok,this.EOF=e.EOF,this.token=null,this.prev=null,this.debug=!1,this.version=803,this.extractDoc=!1,this.extractTokens=!1,this.suppressErrors=!1;var n=function(e){return[e,null]};this.entries={IDENTIFIER:new Map([this.tok.T_ABSTRACT,this.tok.T_ARRAY,this.tok.T_AS,this.tok.T_BREAK,this.tok.T_CALLABLE,this.tok.T_CASE,this.tok.T_CATCH,this.tok.T_CLASS,this.tok.T_CLASS_C,this.tok.T_CLONE,this.tok.T_CONST,this.tok.T_CONTINUE,this.tok.T_DECLARE,this.tok.T_DEFAULT,this.tok.T_DIR,this.tok.T_DO,this.tok.T_ECHO,this.tok.T_ELSE,this.tok.T_ELSEIF,this.tok.T_EMPTY,this.tok.T_ENDDECLARE,this.tok.T_ENDFOR,this.tok.T_ENDFOREACH,this.tok.T_ENDIF,this.tok.T_ENDSWITCH,this.tok.T_ENDWHILE,this.tok.T_ENUM,this.tok.T_EVAL,this.tok.T_EXIT,this.tok.T_EXTENDS,this.tok.T_FILE,this.tok.T_FINAL,this.tok.T_FINALLY,this.tok.T_FN,this.tok.T_FOR,this.tok.T_FOREACH,this.tok.T_FUNC_C,this.tok.T_FUNCTION,this.tok.T_GLOBAL,this.tok.T_GOTO,this.tok.T_IF,this.tok.T_IMPLEMENTS,this.tok.T_INCLUDE,this.tok.T_INCLUDE_ONCE,this.tok.T_INSTANCEOF,this.tok.T_INSTEADOF,this.tok.T_INTERFACE,this.tok.T_ISSET,this.tok.T_LINE,this.tok.T_LIST,this.tok.T_LOGICAL_AND,this.tok.T_LOGICAL_OR,this.tok.T_LOGICAL_XOR,this.tok.T_MATCH,this.tok.T_METHOD_C,this.tok.T_NAMESPACE,this.tok.T_NEW,this.tok.T_NS_C,this.tok.T_PRINT,this.tok.T_PRIVATE,this.tok.T_PROTECTED,this.tok.T_PUBLIC,this.tok.T_READ_ONLY,this.tok.T_REQUIRE,this.tok.T_REQUIRE_ONCE,this.tok.T_RETURN,this.tok.T_STATIC,this.tok.T_SWITCH,this.tok.T_THROW,this.tok.T_TRAIT,this.tok.T_TRY,this.tok.T_UNSET,this.tok.T_USE,this.tok.T_VAR,this.tok.T_WHILE,this.tok.T_YIELD].map(n)),VARIABLE:new Map([this.tok.T_VARIABLE,"$","&",this.tok.T_STRING,this.tok.T_NAME_RELATIVE,this.tok.T_NAME_QUALIFIED,this.tok.T_NAME_FULLY_QUALIFIED,this.tok.T_NAMESPACE,this.tok.T_STATIC].map(n)),SCALAR:new Map([this.tok.T_CONSTANT_ENCAPSED_STRING,this.tok.T_START_HEREDOC,this.tok.T_LNUMBER,this.tok.T_DNUMBER,this.tok.T_ARRAY,"[",this.tok.T_CLASS_C,this.tok.T_TRAIT_C,this.tok.T_FUNC_C,this.tok.T_METHOD_C,this.tok.T_LINE,this.tok.T_FILE,this.tok.T_DIR,this.tok.T_NS_C,'"','b"','B"',"-",this.tok.T_NS_SEPARATOR].map(n)),T_MAGIC_CONST:new Map([this.tok.T_CLASS_C,this.tok.T_TRAIT_C,this.tok.T_FUNC_C,this.tok.T_METHOD_C,this.tok.T_LINE,this.tok.T_FILE,this.tok.T_DIR,this.tok.T_NS_C].map(n)),T_MEMBER_FLAGS:new Map([this.tok.T_PUBLIC,this.tok.T_PRIVATE,this.tok.T_PROTECTED,this.tok.T_STATIC,this.tok.T_ABSTRACT,this.tok.T_FINAL,this.tok.T_READ_ONLY].map(n)),EOS:new Map([";",this.EOF,this.tok.T_INLINE_HTML].map(n)),EXPR:new Map(["@","-","+","!","~","(","`",this.tok.T_LIST,this.tok.T_CLONE,this.tok.T_INC,this.tok.T_DEC,this.tok.T_NEW,this.tok.T_ISSET,this.tok.T_EMPTY,this.tok.T_MATCH,this.tok.T_INCLUDE,this.tok.T_INCLUDE_ONCE,this.tok.T_REQUIRE,this.tok.T_REQUIRE_ONCE,this.tok.T_EVAL,this.tok.T_INT_CAST,this.tok.T_DOUBLE_CAST,this.tok.T_STRING_CAST,this.tok.T_ARRAY_CAST,this.tok.T_OBJECT_CAST,this.tok.T_BOOL_CAST,this.tok.T_UNSET_CAST,this.tok.T_EXIT,this.tok.T_PRINT,this.tok.T_YIELD,this.tok.T_STATIC,this.tok.T_FUNCTION,this.tok.T_FN,this.tok.T_VARIABLE,"$",this.tok.T_NS_SEPARATOR,this.tok.T_STRING,this.tok.T_NAME_RELATIVE,this.tok.T_NAME_QUALIFIED,this.tok.T_NAME_FULLY_QUALIFIED,this.tok.T_STRING,this.tok.T_CONSTANT_ENCAPSED_STRING,this.tok.T_START_HEREDOC,this.tok.T_LNUMBER,this.tok.T_DNUMBER,this.tok.T_ARRAY,"[",this.tok.T_CLASS_C,this.tok.T_TRAIT_C,this.tok.T_FUNC_C,this.tok.T_METHOD_C,this.tok.T_LINE,this.tok.T_FILE,this.tok.T_DIR,this.tok.T_NS_C,'"','b"','B"',"-",this.tok.T_NS_SEPARATOR].map(n))}};o.prototype.getTokenName=function(e){return r(e)?e==this.EOF?"the end of file (EOF)":this.lexer.engine.tokens.values[e]:"'"+e+"'"},o.prototype.parse=function(e,t){this._errors=[],this.filename=t||"eval",this.currentNamespace=[""],this.extractDoc?this._docs=[]:this._docs=null,this.extractTokens?this._tokens=[]:this._tokens=null,this._docIndex=0,this._lastNode=null,this.lexer.setInput(e),this.lexer.all_tokens=this.extractTokens,this.lexer.comment_tokens=this.extractDoc,this.length=this.lexer._input.length,this.innerList=!1,this.innerListForm=!1;var n=this.node("program"),i=[];for(this.next();this.token!=this.EOF;)i.push(this.read_start());0===i.length&&this.extractDoc&&this._docs.length>this._docIndex&&i.push(this.node("noop")()),this.prev=[this.lexer.yylloc.last_line,this.lexer.yylloc.last_column,this.lexer.offset];var r=n(i,this._errors,this._docs,this._tokens);if(this.debug){var o=this.ast.checkNodes();if(o.length>0)throw o.forEach(function(e){e.position&&console.log("Node at line "+e.position.line+", column "+e.position.column),console.log(e.stack.join("\n"))}),new Error("Some nodes are not closed")}return r},o.prototype.raiseError=function(e,t,n,i){if(e+=" on line "+this.lexer.yylloc.first_line,!this.suppressErrors){var r=new SyntaxError(e,this.filename,this.lexer.yylloc.first_line);throw r.lineNumber=this.lexer.yylloc.first_line,r.fileName=this.filename,r.columnNumber=this.lexer.yylloc.first_column,r}var o=this.prev;this.prev=[this.lexer.yylloc.last_line,this.lexer.yylloc.last_column,this.lexer.offset];var a=this.ast.prepare("error",null,this)(e,i,this.lexer.yylloc.first_line,n);return this.prev=o,this._errors.push(a),a},o.prototype.error=function(e){var t="Parse Error : syntax error",n=this.getTokenName(this.token),i="";if(this.token!==this.EOF){if(r(this.token)){var o=this.text();o.length>10&&(o=o.substring(0,7)+"..."),n="'"+o+"' ("+n+")"}t+=", unexpected "+n}return e&&!Array.isArray(e)&&((r(e)||1===e.length)&&(i=", expecting "+this.getTokenName(e)),t+=i),this.raiseError(t,i,e,n)},o.prototype.position=function(){return new i(this.lexer.yylloc.first_line,this.lexer.yylloc.first_column,this.lexer.yylloc.first_offset)},o.prototype.node=function(e){if(this.extractDoc){var t=null;this._docIndex<this._docs.length&&(t=this._docs.slice(this._docIndex),this._docIndex=this._docs.length,this.debug&&(console.log(new Error("Append docs on "+e)),console.log(t)));var n=this.ast.prepare(e,t,this);return n.postBuild=function(e){if(this._docIndex<this._docs.length)if(this._lastNode){for(var t=this.prev[2],n=this._docIndex;n<this._docs.length&&!(this._docs[n].offset>t);n++);n>this._docIndex&&(this._lastNode.setTrailingComments(this._docs.slice(this._docIndex,n)),this._docIndex=n)}else this.token===this.EOF&&(e.setTrailingComments(this._docs.slice(this._docIndex)),this._docIndex=this._docs.length);this._lastNode=e}.bind(this),n}return this.ast.prepare(e,null,this)},o.prototype.expectEndOfStatement=function(e){if(";"===this.token)e&&";"===this.lexer.yytext&&e.includeToken(this);else if(this.token!==this.tok.T_INLINE_HTML&&this.token!==this.EOF)return this.error(";"),!1;return this.next(),!0};var a=["parser.next","parser.node","parser.showlog"];o.prototype.showlog=function(){for(var e,t=(new Error).stack.split("\n"),n=2;n<t.length;n++){e=t[n].trim();for(var i=!1,r=0;r<a.length;r++)if(e.substring(3,3+a[r].length)===a[r]){i=!0;break}if(!i)break}return console.log("Line "+this.lexer.yylloc.first_line+" : "+this.getTokenName(this.token)+">"+this.lexer.yytext+"< @--\x3e"+e),this},o.prototype.expect=function(e){if(Array.isArray(e)){if(-1===e.indexOf(this.token))return this.error(e),!1}else if(this.token!=e)return this.error(e),!1;return!0},o.prototype.text=function(){return this.lexer.yytext},o.prototype.next=function(){if(";"===this.token&&";"!==this.lexer.yytext||(this.prev=[this.lexer.yylloc.last_line,this.lexer.yylloc.last_column,this.lexer.offset]),this.lex(),this.debug&&this.showlog(),this.extractDoc)for(;this.token===this.tok.T_COMMENT||this.token===this.tok.T_DOC_COMMENT;)this.token===this.tok.T_COMMENT?this._docs.push(this.read_comment()):this._docs.push(this.read_doc_comment());return this},o.prototype.peek=function(){var e=this.lexer.getState(),t=this.lexer.lex();return this.lexer.setState(e),t},o.prototype.lex=function(){if(this.extractTokens)do{if(this.token=this.lexer.lex()||this.EOF,this.token===this.EOF)return this;var e=this.lexer.yytext;if(e=Object.prototype.hasOwnProperty.call(this.lexer.engine.tokens.values,this.token)?[this.lexer.engine.tokens.values[this.token],e,this.lexer.yylloc.first_line,this.lexer.yylloc.first_offset,this.lexer.offset]:[null,e,this.lexer.yylloc.first_line,this.lexer.yylloc.first_offset,this.lexer.offset],this._tokens.push(e),this.token===this.tok.T_CLOSE_TAG)return this.token=";",this;if(this.token===this.tok.T_OPEN_TAG_WITH_ECHO)return this.token=this.tok.T_ECHO,this}while(this.token===this.tok.T_WHITESPACE||!this.extractDoc&&(this.token===this.tok.T_COMMENT||this.token===this.tok.T_DOC_COMMENT)||this.token===this.tok.T_OPEN_TAG);else this.token=this.lexer.lex()||this.EOF;return this},o.prototype.is=function(e){return Array.isArray(e)?-1!==e.indexOf(this.token):this.entries[e].has(this.token)},[n(5525),n(7072),n(3997),n(6477),n(979),n(8214),n(9461),n(5931),n(9147),n(9219),n(7170),n(6261),n(2478),n(77),n(6077),n(1130)].forEach(function(e){for(var t in e){if(Object.prototype.hasOwnProperty.call(o.prototype,t))throw new Error("Function "+t+" is already defined - collision");o.prototype[t]=e[t]}}),e.exports=o},5525(e){e.exports={read_array:function(){var e,t=!1,n=this.node("array");this.token===this.tok.T_ARRAY?(this.next().expect("("),e=")"):(t=!0,e="]");var i=[];return this.next().token!==e&&(i=this.read_array_pair_list(t)),this.expect(e),this.next(),n(t,i)},read_array_pair_list:function(e){var t=this;return this.read_list(function(){return t.read_array_pair(e)},",",!0)},read_array_pair:function(e){if(!(!e&&")"===this.token||e&&"]"===this.token)){if(","===this.token)return this.node("noop")();var t,n=this.node("entry"),i=null,r=!1,o=!1;if("&"===this.token)this.next(),r=!0,t=this.read_variable(!0,!1);else if(this.token===this.tok.T_ELLIPSIS&&this.version>=704)this.next(),"&"===this.token&&this.error(),o=!0,t=this.read_expr();else{var a=this.read_expr();this.token===this.tok.T_DOUBLE_ARROW?(this.next(),i=a,"&"===this.token?(this.next(),r=!0,t=this.read_variable(!0,!1)):t=this.read_expr()):t=a}return n(i,t,r,o)}}}},7072(e){function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}e.exports={read_class_declaration_statement:function(e){var t=this.node("class"),n=this.read_class_modifiers();if(this.token!==this.tok.T_CLASS)return this.error(this.tok.T_CLASS),this.next(),null;this.next().expect(this.tok.T_STRING);var i=this.node("identifier"),r=this.text();this.next(),i=i(r);var o=this.read_extends_from(),a=this.read_implements_list();this.expect("{");var s=t(i,o,a,this.next().read_class_body(!0,!1),n);return e&&(s.attrGroups=e),s},read_class_modifiers:function(){var e=this.read_class_modifier({readonly:0,final_or_abstract:0});return[0,0,e.final_or_abstract,e.readonly]},read_class_modifier:function(e){return this.token===this.tok.T_READ_ONLY?(this.next(),e.readonly=1,e=this.read_class_modifier(e)):0===e.final_or_abstract&&this.token===this.tok.T_ABSTRACT?(this.next(),e.final_or_abstract=1,e=this.read_class_modifier(e)):0===e.final_or_abstract&&this.token===this.tok.T_FINAL&&(this.next(),e.final_or_abstract=2,e=this.read_class_modifier(e)),e},read_class_body:function(e,t){for(var i=[],r=[];this.token!==this.EOF&&"}"!==this.token;)if(this.token!==this.tok.T_COMMENT)if(this.token!==this.tok.T_DOC_COMMENT)if(this.token!==this.tok.T_USE){var o=this.position();if(this.token===this.tok.T_ATTRIBUTE&&(r=this.read_attr_list()),t&&this.token===this.tok.T_CASE){var a=this.read_enum_case(r);r=[],this.expect(";")&&this.next(),i=i.concat(a)}else{var s=this.read_member_flags(!1);if(this.token!==this.tok.T_CONST)if(e&&this.token===this.tok.T_VAR&&(this.next().expect(this.tok.T_VARIABLE),s[0]=null,s[1]=0),this.token===this.tok.T_FUNCTION)i.push(this.read_function(!1,s,r,o)),r=[];else if(e&&(this.token===this.tok.T_VARIABLE||this.version>=801&&this.token===this.tok.T_READ_ONLY||this.version>=704&&("?"===this.token||this.token===this.tok.T_ARRAY||this.token===this.tok.T_CALLABLE||this.token===this.tok.T_NAMESPACE||this.token===this.tok.T_NAME_FULLY_QUALIFIED||this.token===this.tok.T_NAME_QUALIFIED||this.token===this.tok.T_NAME_RELATIVE||this.token===this.tok.T_NS_SEPARATOR||this.token===this.tok.T_STRING))){var l=this.read_variable_list(s,r,o);r=[],i=i.concat(l)}else this.error([this.tok.T_CONST].concat(n(e?[this.tok.T_VARIABLE]:[]),n(t?[this.tok.T_CASE]:[]),[this.tok.T_FUNCTION])),this.next();else{var c=this.read_constant_list(s,r,o);this.expect(";")&&this.next(),i=i.concat(c)}}}else i=i.concat(this.read_trait_use_statement());else i.push(this.read_doc_comment());else i.push(this.read_comment());return this.expect("}"),this.next(),i},read_variable_list:function(e,n,i){var r=this.node("propertystatement");return r=r(null,this.read_list(function(){var i=this.node("property"),r=1===e[3];r||this.token!==this.tok.T_READ_ONLY||(r=!0,this.next());var o=t(this.read_optional_type(),2),a=o[0],s=o[1];this.expect(this.tok.T_VARIABLE);var l=this.node("identifier"),c=this.text().substring(1);this.next(),l=l(c);var u=null,d=[];return this.expect([",",";","=","{"]),"="===this.token&&(u=this.next().read_expr()),"{"===this.token?d=this.read_property_hooks():this.expect([";",","]),i(l,u,r,a,s,n||[],d)},","),e),i&&r.loc&&(r.loc.start=i,r.loc.source&&(r.loc.source=this.lexer._input.substr(r.loc.start.offset,r.loc.end.offset-r.loc.start.offset))),";"===this.token&&this.next(),r},read_property_hooks:function(){this.version<804&&this.raiseError("Parse Error: Property hooks require PHP 8.4+"),this.expect("{"),this.next();for(var e=[];this.token!==this.EOF&&"}"!==this.token;)e.push(this.read_property_hook());return this.expect("}"),this.next(),e},read_property_hook:function(){var e=this.node("propertyhook"),t=[];this.token===this.tok.T_ATTRIBUTE&&(t=this.read_attr_list());var n=this.token===this.tok.T_FINAL;n&&this.next();var i="&"===this.token;i&&this.next();var r=this.text();"get"!==r&&"set"!==r&&this.raiseError("Parse Error: Property hooks must be either 'get' or 'set'"),this.next();var o=null,a=null;return this.expect([this.tok.T_DOUBLE_ARROW,"{","(",";"]),";"===this.token?(this.next(),e(r,n,i,o,a,t)):("("===this.token&&(this.next(),o=this.read_parameter(!1),this.expect(")"),this.next()),this.token===this.tok.T_DOUBLE_ARROW?(this.next(),a=this.read_expr(),this.next()):"{"===this.token&&(a=this.read_code_block()),e(r,n,i,o,a,t))},read_constant_list:function(e,n,i){var r=this.node("classconstant");this.expect(this.tok.T_CONST)&&this.next(),1!==e[1]&&1!==e[2]&&1!==e[3]||this.error(),2===e[2]&&this.version<801&&this.raiseError("Final class constants are not allowed before PHP 8.1");var o=t(this.version>=803?this.read_optional_type():[!1,null],2),a=o[0],s=o[1],l=this.read_list(function(){var e=this.node("constant"),t=null,n=null;if(this.token===this.tok.T_STRING||this.version>=700&&this.is("IDENTIFIER")){t=this.node("identifier");var i=this.text();this.next(),t=t(i)}else this.expect("IDENTIFIER");return this.expect("=")&&(n=this.next().read_expr()),e(t,n)},","),c=r(null,l,e,a,s,n||[]);return i&&c.loc&&(c.loc.start=i,c.loc.source&&(c.loc.source=this.lexer._input.substr(c.loc.start.offset,c.loc.end.offset-c.loc.start.offset))),c},read_member_flags:function(e){var t=[-1,-1,-1,-1];if(this.is("T_MEMBER_FLAGS")){var n=0,i=0;do{switch(this.token){case this.tok.T_PUBLIC:n=0,i=0;break;case this.tok.T_PROTECTED:n=0,i=1;break;case this.tok.T_PRIVATE:n=0,i=2;break;case this.tok.T_STATIC:n=1,i=1;break;case this.tok.T_ABSTRACT:n=2,i=1;break;case this.tok.T_FINAL:n=2,i=2;break;case this.tok.T_READ_ONLY:n=3,i=1}e&&(0===n&&2===i?(this.expect([this.tok.T_PUBLIC,this.tok.T_PROTECTED]),i=-1):2===n&&1===i&&(this.error(),i=-1)),-1!==t[n]?this.error():-1!==i&&(t[n]=i)}while(this.next().is("T_MEMBER_FLAGS"))}return-1===t[1]&&(t[1]=0),-1===t[2]&&(t[2]=0),-1===t[3]&&(t[3]=0),t},read_optional_type:function(){var e="?"===this.token;if(e&&this.next(),"="===this.peekSkipComments())return[!1,null];var t=this.read_types();if(e&&!t&&this.raiseError("Expecting a type definition combined with nullable operator"),!e&&!t)return[!1,null];if("|"===this.token){t=[t];do{this.next();var n=this.read_type();if(!n){this.raiseError("Expecting a type definition");break}t.push(n)}while("|"===this.token)}return[e,t]},peekSkipComments:function(){var e,t=this.lexer.getState();do{e=this.lexer.lex()}while(e===this.tok.T_COMMENT||e===this.tok.T_WHITESPACE);return this.lexer.setState(t),e},read_interface_declaration_statement:function(e){var t=this.node("interface");if(this.token!==this.tok.T_INTERFACE)return this.error(this.tok.T_INTERFACE),this.next(),null;this.next().expect(this.tok.T_STRING);var n=this.node("identifier"),i=this.text();this.next(),n=n(i);var r=this.read_interface_extends_list();return this.expect("{"),t(n,r,this.next().read_interface_body(),e||[])},read_interface_body:function(){for(var e,t=[];this.token!==this.EOF&&"}"!==this.token;)if(this.token!==this.tok.T_COMMENT)if(this.token!==this.tok.T_DOC_COMMENT){var n=this.position();e=[],this.token===this.tok.T_ATTRIBUTE&&(e=this.read_attr_list());var i=this.read_member_flags(!0);if(this.token===this.tok.T_CONST){var r=this.read_constant_list(i,e,n);this.expect(";")&&this.next(),t=t.concat(r)}else if(this.token===this.tok.T_FUNCTION){var o=this.read_function_declaration(2,i,e,n);o.parseFlags(i),t.push(o),this.expect(";")&&this.next()}else this.token===this.tok.T_STRING?t.push(this.read_variable_list(i,e,n)):(this.error([this.tok.T_CONST,this.tok.T_FUNCTION,this.tok.T_STRING]),this.next())}else t.push(this.read_doc_comment());else t.push(this.read_comment());return this.expect("}")&&this.next(),t},read_trait_declaration_statement:function(e){var t=this.node("trait");if(this.token!==this.tok.T_TRAIT)return this.error(this.tok.T_TRAIT),this.next(),null;this.next().expect(this.tok.T_STRING);var n=this.node("identifier"),i=this.text();this.next(),n=n(i),this.expect("{");var r=t(n,this.next().read_class_body(!0,!1));return e&&(r.attrGroups=e),r},read_trait_use_statement:function(){var e=this.node("traituse");this.expect(this.tok.T_USE)&&this.next();for(var t=[this.read_namespace_name()],n=null;","===this.token;)t.push(this.next().read_namespace_name());if("{"===this.token){for(n=[];this.next().token!==this.EOF&&"}"!==this.token;)n.push(this.read_trait_use_alias()),this.expect(";");this.expect("}")&&this.next()}else this.expect(";")&&this.next();return e(t,n)},read_trait_use_alias:function(){var e,t=this.node(),n=null;if(this.is("IDENTIFIER")){e=this.node("identifier");var i=this.text();this.next(),e=e(i)}else if(e=this.read_namespace_name(),this.token===this.tok.T_DOUBLE_COLON)if(this.next(),this.token===this.tok.T_STRING||this.version>=700&&this.is("IDENTIFIER")){n=e,e=this.node("identifier");var r=this.text();this.next(),e=e(r)}else this.expect(this.tok.T_STRING);else e=e.name;if(this.token===this.tok.T_INSTEADOF)return t("traitprecedence",n,e,this.next().read_name_list());if(this.token===this.tok.T_AS){var o=null,a=null;if(this.next().is("T_MEMBER_FLAGS")&&(o=this.read_member_flags()),this.token===this.tok.T_STRING||this.version>=700&&this.is("IDENTIFIER")){a=this.node("identifier");var s=this.text();this.next(),a=a(s)}else null===o&&this.expect(this.tok.T_STRING);return t("traitalias",n,e,a,o)}return this.expect([this.tok.T_AS,this.tok.T_INSTEADOF]),t("traitalias",n,e,null,null)}}},3997(e){e.exports={read_comment:function(){var e=this.text(),t=this.ast.prepare("/*"===e.substring(0,2)?"commentblock":"commentline",null,this),n=this.lexer.yylloc.first_offset,i=this.prev;return this.prev=[this.lexer.yylloc.last_line,this.lexer.yylloc.last_column,this.lexer.offset],this.lex(),(t=t(e)).offset=n,this.prev=i,t},read_doc_comment:function(){var e=this.ast.prepare("commentblock",null,this),t=this.lexer.yylloc.first_offset,n=this.text(),i=this.prev;return this.prev=[this.lexer.yylloc.last_line,this.lexer.yylloc.last_column,this.lexer.offset],this.lex(),(e=e(n)).offset=t,this.prev=i,e}}},979(e){e.exports={read_enum_declaration_statement:function(e){var t=this.node("enum");if(!this.expect(this.tok.T_ENUM))return null;this.next().expect(this.tok.T_STRING);var n=this.node("identifier"),i=this.text();this.next(),n=n(i);var r=this.read_enum_value_type(),o=this.read_implements_list();this.expect("{");var a=t(n,r,o,this.next().read_class_body(!1,!0));return e&&(a.attrGroups=e),a},read_enum_value_type:function(){return":"===this.token?this.next().read_namespace_name():null},read_enum_case:function(e){this.expect(this.tok.T_CASE);var t=this.node("enumcase"),n=this.node("identifier"),i=this.next().text();this.next(),n=n(i);var r="="===this.token?this.next().read_expr():null;this.expect(";");var o=t(n,r);return e&&e.length>0&&(o.attrGroups=e),o}}},6477(e){e.exports={read_expr:function(e){var t=this.node();if("@"===this.token)return e||(e=this.next().read_expr()),t("silent",e);if(e||(e=this.read_expr_item()),"|"===this.token)return t("bin","|",e,this.next().read_expr());if("&"===this.token)return t("bin","&",e,this.next().read_expr());if("^"===this.token)return t("bin","^",e,this.next().read_expr());if("."===this.token)return t("bin",".",e,this.next().read_expr());if("+"===this.token)return t("bin","+",e,this.next().read_expr());if("-"===this.token)return t("bin","-",e,this.next().read_expr());if("*"===this.token)return t("bin","*",e,this.next().read_expr());if("/"===this.token)return t("bin","/",e,this.next().read_expr());if("%"===this.token)return t("bin","%",e,this.next().read_expr());if(this.token===this.tok.T_POW)return t("bin","**",e,this.next().read_expr());if(this.token===this.tok.T_SL)return t("bin","<<",e,this.next().read_expr());if(this.token===this.tok.T_SR)return t("bin",">>",e,this.next().read_expr());if(this.token===this.tok.T_BOOLEAN_OR)return t("bin","||",e,this.next().read_expr());if(this.token===this.tok.T_LOGICAL_OR)return t("bin","or",e,this.next().read_expr());if(this.token===this.tok.T_BOOLEAN_AND)return t("bin","&&",e,this.next().read_expr());if(this.token===this.tok.T_LOGICAL_AND)return t("bin","and",e,this.next().read_expr());if(this.token===this.tok.T_LOGICAL_XOR)return t("bin","xor",e,this.next().read_expr());if(this.token===this.tok.T_IS_IDENTICAL)return t("bin","===",e,this.next().read_expr());if(this.token===this.tok.T_IS_NOT_IDENTICAL)return t("bin","!==",e,this.next().read_expr());if(this.token===this.tok.T_IS_EQUAL)return t("bin","==",e,this.next().read_expr());if(this.token===this.tok.T_IS_NOT_EQUAL)return t("bin","!=",e,this.next().read_expr());if("<"===this.token)return t("bin","<",e,this.next().read_expr());if(">"===this.token)return t("bin",">",e,this.next().read_expr());if(this.token===this.tok.T_IS_SMALLER_OR_EQUAL)return t("bin","<=",e,this.next().read_expr());if(this.token===this.tok.T_IS_GREATER_OR_EQUAL)return t("bin",">=",e,this.next().read_expr());if(this.token===this.tok.T_SPACESHIP)return t("bin","<=>",e,this.next().read_expr());if(this.token===this.tok.T_INSTANCEOF&&(e=t("bin","instanceof",e,this.next().read_class_name_reference()),";"!==this.token&&this.token!==this.tok.T_INLINE_HTML&&this.token!==this.EOF&&(e=this.read_expr(e))),this.token===this.tok.T_NULLSAFE_OBJECT_OPERATOR&&(e=t("nullsafepropertylookup",e,this.read_what()),e=this.recursive_variable_chain_scan(e,!1,!0)),this.token===this.tok.T_COALESCE)return t("bin","??",e,this.next().read_expr());if(this.token===this.tok.T_PIPE){this.version<805&&this.raiseError("PHP 8.5+ is required to use pipe operator");var n=this.next().read_expr();return"arrowfunc"!==n.kind||n.parenthesizedExpression||this.raiseError("Arrow functions in a pipe chain must be wrapped in parentheses"),t("bin","|>",e,n)}if("?"===this.token){var i=null;return":"!==this.next().token&&(i=this.read_expr()),this.expect(":")&&this.next(),t("retif",e,i,this.read_expr())}return t.destroy(e),e},read_expr_cast:function(e){return this.node("cast")(e,this.text(),this.next().read_expr())},read_isset_variable:function(){return this.read_expr()},read_isset_variables:function(){return this.read_function_list(this.read_isset_variable,",")},read_internal_functions_in_yacc:function(){var e=null;switch(this.token){case this.tok.T_ISSET:e=this.node("isset"),this.next().expect("(")&&this.next();var t=this.read_isset_variables();this.expect(")")&&this.next(),e=e(t);break;case this.tok.T_EMPTY:e=this.node("empty"),this.next().expect("(")&&this.next();var n=this.read_expr();this.expect(")")&&this.next(),e=e(n);break;case this.tok.T_INCLUDE:e=this.node("include")(!1,!1,this.next().read_expr());break;case this.tok.T_INCLUDE_ONCE:e=this.node("include")(!0,!1,this.next().read_expr());break;case this.tok.T_EVAL:e=this.node("eval"),this.next().expect("(")&&this.next();var i=this.read_expr();this.expect(")")&&this.next(),e=e(i);break;case this.tok.T_REQUIRE:e=this.node("include")(!1,!0,this.next().read_expr());break;case this.tok.T_REQUIRE_ONCE:e=this.node("include")(!0,!0,this.next().read_expr())}return e},read_optional_expr:function(e){return this.token!==e?this.read_expr():null},read_exit_expr:function(){var e=null;return"("===this.token&&(this.next(),e=this.read_optional_expr(")"),this.expect(")")&&this.next()),e},read_expr_item:function(){var e,t,n=[];if("+"===this.token)return this.node("unary")("+",this.next().read_expr());if("-"===this.token)return this.node("unary")("-",this.next().read_expr());if("!"===this.token)return this.node("unary")("!",this.next().read_expr());if("~"===this.token)return this.node("unary")("~",this.next().read_expr());if("("===this.token)return(t=this.next().read_expr()).parenthesizedExpression=!0,this.expect(")")&&this.next(),this.handleDereferencable(t);if("`"===this.token)return this.read_encapsed_string("`");if(this.token===this.tok.T_LIST){var i=null,r=this.innerList;e=this.node("list"),r||(i=this.node("assign")),this.next().expect("(")&&this.next(),this.innerList||(this.innerList=!0);var o=this.read_array_pair_list(!1);this.expect(")")&&this.next();for(var a=!1,s=0;s<o.length;s++)if(null!==o[s]&&"noop"!==o[s].kind){a=!0;break}return a||this.raiseError("Fatal Error : Cannot use empty list on line "+this.lexer.yylloc.first_line),r?e(o,!1):(this.innerList=!1,this.expect("=")?i(e(o,!1),this.next().read_expr(),"="):e(o,!1))}if(this.token===this.tok.T_ATTRIBUTE&&(n=this.read_attr_list()),this.token===this.tok.T_CLONE){var l=this.node("clone");if(this.next(),this.version>=805&&"("===this.token){this.next();var c=this.read_expr(),u=null;return","===this.token&&(u=this.next().read_expr()),this.expect(")")&&this.next(),l(c,u)}return l(this.read_expr(),null)}switch(this.token){case this.tok.T_INC:return this.node("pre")("+",this.next().read_variable(!1,!1));case this.tok.T_DEC:return this.node("pre")("-",this.next().read_variable(!1,!1));case this.tok.T_NEW:return t=this.read_new_expr(),this.token===this.tok.T_OBJECT_OPERATOR&&this.version<804&&this.raiseError("New without parenthesis is not allowed before PHP 8.4"),this.handleDereferencable(t);case this.tok.T_ISSET:case this.tok.T_EMPTY:case this.tok.T_INCLUDE:case this.tok.T_INCLUDE_ONCE:case this.tok.T_EVAL:case this.tok.T_REQUIRE:case this.tok.T_REQUIRE_ONCE:return this.read_internal_functions_in_yacc();case this.tok.T_MATCH:return this.read_match_expression();case this.tok.T_INT_CAST:return this.read_expr_cast("int");case this.tok.T_DOUBLE_CAST:return this.read_expr_cast("float");case this.tok.T_STRING_CAST:return this.read_expr_cast(-1!==this.text().indexOf("binary")?"binary":"string");case this.tok.T_ARRAY_CAST:return this.read_expr_cast("array");case this.tok.T_OBJECT_CAST:return this.read_expr_cast("object");case this.tok.T_BOOL_CAST:return this.read_expr_cast("bool");case this.tok.T_UNSET_CAST:return this.read_expr_cast("unset");case this.tok.T_THROW:return this.version<800&&this.raiseError("PHP 8+ is required to use throw as an expression"),this.node("throw")(this.next().read_expr());case this.tok.T_EXIT:var d="die"===this.lexer.yytext.toLowerCase();return e=this.node("exit"),this.next(),e(this.read_exit_expr(),d);case this.tok.T_PRINT:return this.node("print")(this.next().read_expr());case this.tok.T_YIELD:var p=null,h=null;return e=this.node("yield"),this.next().is("EXPR")&&(p=this.read_expr(),this.token===this.tok.T_DOUBLE_ARROW&&(h=p,p=this.next().read_expr())),e(p,h);case this.tok.T_YIELD_FROM:return(e=this.node("yieldfrom"))(t=this.next().read_expr());case this.tok.T_FN:case this.tok.T_FUNCTION:return this.read_inline_function(void 0,n);case this.tok.T_STATIC:var f=[this.token,this.lexer.getState()];if(this.next(),this.token===this.tok.T_FUNCTION||this.version>=704&&this.token===this.tok.T_FN)return this.read_inline_function([0,1,0],n);this.lexer.tokens.push(f),this.next()}if(this.is("VARIABLE")){e=this.node();var m="identifier"===(t=this.read_variable(!1,!1)).kind||"staticlookup"===t.kind&&"identifier"===t.offset.kind;switch(this.token){case"=":return m&&this.error("VARIABLE"),"&"==this.next().token?this.read_assignref(e,t):e("assign",t,this.read_expr(),"=");case this.tok.T_PLUS_EQUAL:return m&&this.error("VARIABLE"),e("assign",t,this.next().read_expr(),"+=");case this.tok.T_MINUS_EQUAL:return m&&this.error("VARIABLE"),e("assign",t,this.next().read_expr(),"-=");case this.tok.T_MUL_EQUAL:return m&&this.error("VARIABLE"),e("assign",t,this.next().read_expr(),"*=");case this.tok.T_POW_EQUAL:return m&&this.error("VARIABLE"),e("assign",t,this.next().read_expr(),"**=");case this.tok.T_DIV_EQUAL:return m&&this.error("VARIABLE"),e("assign",t,this.next().read_expr(),"/=");case this.tok.T_CONCAT_EQUAL:return m&&this.error("VARIABLE"),e("assign",t,this.next().read_expr(),".=");case this.tok.T_MOD_EQUAL:return m&&this.error("VARIABLE"),e("assign",t,this.next().read_expr(),"%=");case this.tok.T_AND_EQUAL:return m&&this.error("VARIABLE"),e("assign",t,this.next().read_expr(),"&=");case this.tok.T_OR_EQUAL:return m&&this.error("VARIABLE"),e("assign",t,this.next().read_expr(),"|=");case this.tok.T_XOR_EQUAL:return m&&this.error("VARIABLE"),e("assign",t,this.next().read_expr(),"^=");case this.tok.T_SL_EQUAL:return m&&this.error("VARIABLE"),e("assign",t,this.next().read_expr(),"<<=");case this.tok.T_SR_EQUAL:return m&&this.error("VARIABLE"),e("assign",t,this.next().read_expr(),">>=");case this.tok.T_COALESCE_EQUAL:return m&&this.error("VARIABLE"),e("assign",t,this.next().read_expr(),"??=");case this.tok.T_INC:return m&&this.error("VARIABLE"),this.next(),e("post","+",t);case this.tok.T_DEC:return m&&this.error("VARIABLE"),this.next(),e("post","-",t);default:e.destroy(t)}}else{if(this.is("SCALAR")){if(e=this.node(),"array"===(t=this.read_scalar()).kind&&t.shortForm&&"="===this.token){var g=this.convertToList(t);return t.loc&&(g.loc=t.loc),e("assign",g,this.next().read_expr(),"=")}return e.destroy(t),this.handleDereferencable(t)}this.error("EXPR"),this.next()}return t},convertToList:function(e){var t=this,n=e.items.map(function(e){return e.value&&"array"===e.value.kind&&e.value.shortForm&&(e.value=t.convertToList(e.value)),e}),i=this.node("list")(n,!0);return e.loc&&(i.loc=e.loc),e.leadingComments&&(i.leadingComments=e.leadingComments),e.trailingComments&&(i.trailingComments=e.trailingComments),i},read_assignref:function(e,t){var n;return this.next(),this.token===this.tok.T_NEW?(this.version>=700&&this.error(),n=this.read_new_expr()):"("===this.token?(n=this.next().read_expr(),this.expect(")")&&this.next(),n=this.recursive_variable_chain_scan(n,!1,!1)):n=this.read_variable(!1,!1),e("assignref",t,n)},read_inline_function:function(e,t){if(this.token===this.tok.T_FUNCTION){var n=this.read_function(!0,e,t);return n.attrGroups=t,n}this.version<704&&this.raiseError("Arrow Functions are not allowed");var i=this.node("arrowfunc");this.expect(this.tok.T_FN)&&this.next();var r=this.is_reference();this.expect("(")&&this.next();var o=this.read_parameter_list();this.expect(")")&&this.next();var a=!1,s=null;":"===this.token&&("?"===this.next().token&&(a=!0,this.next()),s=this.read_types()),this.expect(this.tok.T_DOUBLE_ARROW)&&this.next();var l=i(o,r,this.read_expr(),s,a,!!e);return l.attrGroups=t,l},read_match_expression:function(){var e=this.node("match");this.expect(this.tok.T_MATCH)&&this.next(),this.version<800&&this.raiseError("Match statements are not allowed before PHP 8"),this.expect("(")&&this.next();var t=this.read_expr();this.expect(")")&&this.next(),this.expect("{")&&this.next();var n=this.read_match_arms();return this.expect("}")&&this.next(),e(t,n)},read_match_arms:function(){var e=this;return this.read_list(function(){return e.read_match_arm()},",",!0)},read_match_arm:function(){if("}"!==this.token)return this.node("matcharm")(this.read_match_arm_conds(),this.read_expr())},read_match_arm_conds:function(){var e=[];if(this.token===this.tok.T_DEFAULT)e=null,this.next();else for(e.push(this.read_expr());","===this.token;){if(this.next(),this.token===this.tok.T_DOUBLE_ARROW)return this.next(),e;e.push(this.read_expr())}return this.expect(this.tok.T_DOUBLE_ARROW)&&this.next(),e},read_attribute:function(){var e=this.node("attribute"),t=this.text(),n=[];return this.next(),"("===this.token&&(n=this.read_argument_list()),e(t,n)},read_attr_list:function(){var e=[];if(this.token===this.tok.T_ATTRIBUTE)do{var t=this.node("attrgroup");this.next();for(var n=[this.read_attribute()];","===this.token;)this.next(),"]"!==this.token&&n.push(this.read_attribute());this.expect("]"),this.next(),e.push(t(n))}while(this.token===this.tok.T_ATTRIBUTE);return e},read_new_expr:function(){var e=this.node("new");this.expect(this.tok.T_NEW)&&this.next();var t=[];if("("===this.token){this.next();var n=this.read_expr();return this.expect(")"),this.next(),"("===this.token&&(t=this.read_argument_list()),e(n,t)}var i=this.read_attr_list(),r=this.token===this.tok.T_READ_ONLY;if(r&&(this.version<803&&this.raiseError("Anonymous readonly classes are not allowed before PHP 8.3"),this.next()),this.token===this.tok.T_CLASS){var o=this.node("class");"("===this.next().token&&(t=this.read_argument_list());var a=this.read_extends_from(),s=this.read_implements_list(),l=null;this.expect("{")&&(l=this.next().read_class_body(!0,!1));var c=o(null,a,s,l,[0,0,0,r?1:0]);return c.attrGroups=i,e(c,t)}for(var u=this.read_new_class_name();"["===this.token;){var d=this.node("offsetlookup"),p=this.next().read_encaps_var_offset();this.expect("]")&&this.next(),u=d(u,p)}return"("===this.token&&(t=this.read_argument_list()),e(u,t)},read_new_class_name:function(){if(this.token===this.tok.T_NS_SEPARATOR||this.token===this.tok.T_NAME_RELATIVE||this.token===this.tok.T_NAME_QUALIFIED||this.token===this.tok.T_NAME_FULLY_QUALIFIED||this.token===this.tok.T_STRING||this.token===this.tok.T_NAMESPACE){var e=this.read_namespace_name(!0);return this.token===this.tok.T_DOUBLE_COLON?(e=this.read_static_getter(e),this.recursive_variable_chain_scan(e,!0,!1)):e}if(this.is("VARIABLE"))return this.read_variable(!0,!1);this.expect([this.tok.T_STRING,"VARIABLE"])},handleDereferencable:function(e){for(;this.token!==this.EOF;)if(this.token===this.tok.T_OBJECT_OPERATOR||this.token===this.tok.T_DOUBLE_COLON||this.token===this.tok.T_NULLSAFE_OBJECT_OPERATOR)e=this.recursive_variable_chain_scan(e,!1,!1,!0);else if(this.token===this.tok.T_CURLY_OPEN||"["===this.token)e=this.read_dereferencable(e);else{if("("!==this.token)return e;e=this.node("call")(e,this.read_argument_list())}return e}}},8214(e){e.exports={is_reference:function(){return"&"===this.token&&(this.next(),!0)},is_variadic:function(){return this.token===this.tok.T_ELLIPSIS&&(this.next(),!0)},read_function:function(e,t,n,i){var r=this.read_function_declaration(e?1:t?2:0,t&&1===t[1],n||[],i);return t&&1==t[2]?(r.parseFlags(t),this.expect(";")&&this.next()):(this.expect("{")&&(r.body=this.read_code_block(!1),r.loc&&r.body.loc&&(r.loc.end=r.body.loc.end)),!e&&t&&r.parseFlags(t)),r},read_function_declaration:function(e,t,n,i){var r=this,o="function";1===e?o="closure":2===e&&(o="method");var a=this.node(o);this.expect(this.tok.T_FUNCTION)&&this.next();var s=this.is_reference(),l=!1,c=[],u=null,d=!1;if(1!==e){var p=this.node("identifier");2===e?this.version>=700?this.token===this.tok.T_STRING||this.is("IDENTIFIER")?(l=this.text(),this.next()):this.version<704&&this.error("IDENTIFIER"):this.token===this.tok.T_STRING?(l=this.text(),this.next()):this.error("IDENTIFIER"):this.version>=700?this.token===this.tok.T_STRING?(l=this.text(),this.next()):this.version>=704?this.expect("(")||this.next():(this.error(this.tok.T_STRING),this.next()):(this.expect(this.tok.T_STRING)&&(l=this.text()),this.next()),l=p(l)}this.expect("(")&&this.next();var h=this.read_parameter_list("__construct"===l.name);this.expect(")")&&this.next(),1===e&&(c=this.read_lexical_vars()),":"===this.token&&("?"===this.next().token&&(d=!0,this.next()),u=this.read_types());var f=function(e){return e.attrGroups=n||[],i&&e.loc&&(e.loc.start=i,e.loc.source&&(e.loc.source=r.lexer._input.substr(e.loc.start.offset,e.loc.end.offset-e.loc.start.offset))),e};return f(1===e?a(h,s,c,u,d,t):a(l,h,s,u,d))},read_lexical_vars:function(){var e=[];return this.token===this.tok.T_USE&&(this.next(),this.expect("(")&&this.next(),e=this.read_lexical_var_list(),this.expect(")")&&this.next()),e},read_list_with_dangling_comma:function(e){for(var t=[];this.token!=this.EOF;){if(t.push(e()),","!=this.token){if(")"==this.token)break;this.error([",",")"]);break}if(this.next(),this.version>=800&&")"===this.token)return t}return t},read_lexical_var_list:function(){return this.read_list_with_dangling_comma(this.read_lexical_var.bind(this))},read_lexical_var:function(){if("&"===this.token)return this.read_byref(this.read_lexical_var.bind(this));var e=this.node("variable");this.expect(this.tok.T_VARIABLE);var t=this.text().substring(1);return this.next(),e(t,!1)},read_parameter_list:function(e){if(")"!==this.token){var t=!1;return this.read_list_with_dangling_comma(function(){var n=this.read_parameter(e);return n&&(t&&this.raiseError("Unexpected parameter after a variadic parameter"),n.variadic&&(t=!0)),n}.bind(this),",")}return[]},read_parameter:function(e){var t=this.node("parameter"),n=null,i=null,r=!1,o=!1,a=[];this.token===this.tok.T_ATTRIBUTE&&(a=this.read_attr_list()),this.version>=801&&this.token===this.tok.T_READ_ONLY&&(e?(this.next(),o=!0):this.raiseError("readonly properties can be used only on class constructor"));var s=this.read_promoted();!o&&this.version>=801&&this.token===this.tok.T_READ_ONLY&&(e?(this.next(),o=!0):this.raiseError("readonly properties can be used only on class constructor")),"?"===this.token&&(this.next(),r=!0);var l=this.read_types();r&&!l&&this.raiseError("Expecting a type definition combined with nullable operator");var c=this.is_reference(),u=this.is_variadic();if(this.expect(this.tok.T_VARIABLE)){n=this.node("identifier");var d=this.text().substring(1);this.next(),n=n(d)}"="==this.token&&(i=this.next().read_expr());var p=[];this.version>=804&&s&&"{"===this.token&&(p=this.read_property_hooks());var h=t(n,l,i,c,u,o,r,s,p);return a&&(h.attrGroups=a),h},read_types:function(){var e="unset",t="union",n="intersection",i=[],r=e,o=this.node(),a=this.read_type();if(!a)return o.destroy(),null;for(i.push(a);"|"===this.token||this.version>=801&&"&"===this.token;){var s=this.peek();if(s===this.tok.T_ELLIPSIS||s===this.tok.T_VARIABLE)break;r===e?r="|"===this.token?t:n:(r===t&&"|"!==this.token||r===n&&"&"!==this.token)&&this.raiseError('Unexpect token "'+this.token+'", "|" and "&" can not be mixed'),this.next(),i.push(this.read_type())}return 1===i.length?(o.destroy(),i[0]):o(r===n?"intersectiontype":"uniontype",i)},read_promoted:function(){return this.token===this.tok.T_PUBLIC?(this.next(),1):this.token===this.tok.T_PROTECTED?(this.next(),2):this.token===this.tok.T_PRIVATE?(this.next(),4):0},read_argument_list:function(){var e=[];if(this.expect("(")&&this.next(),this.version>=801&&this.token===this.tok.T_ELLIPSIS&&")"===this.peek()){var t=this.node("variadicplaceholder");this.next(),e.push(t())}else")"!==this.token&&(e=this.read_non_empty_argument_list());return this.expect(")")&&this.next(),e},read_non_empty_argument_list:function(){var e=!1;return this.read_function_list(function(){var t=this.read_argument();if(t){var n="variadic"===t.kind;e&&!n&&this.raiseError("Unexpected non-variadic argument after a variadic argument"),n&&(e=!0)}return t}.bind(this),",")},read_argument:function(){return this.token===this.tok.T_ELLIPSIS?this.node("variadic")(this.next().read_expr()):this.token!==this.tok.T_STRING&&!Object.values(this.lexer.keywords).includes(this.token)||":"!==this.peek()?this.read_expr():(this.version<800&&this.raiseError("PHP 8+ is required to use named arguments"),this.node("namedargument")(this.text(),this.next().next().read_expr()))},read_type:function(){var e=this.node();if(this.token===this.tok.T_ARRAY||this.token===this.tok.T_CALLABLE){var t=this.text();return this.next(),e("typereference",t.toLowerCase(),t)}if(this.token===this.tok.T_NAME_RELATIVE||this.token===this.tok.T_NAME_QUALIFIED||this.token===this.tok.T_NAME_FULLY_QUALIFIED||this.token===this.tok.T_STRING||this.token===this.tok.T_STATIC){var n=this.text(),i=[this.token,this.lexer.getState()];return this.next(),this.token!==this.tok.T_NS_SEPARATOR&&this.ast.typereference.types.indexOf(n.toLowerCase())>-1?e("typereference",n.toLowerCase(),n):(this.lexer.tokens.push(i),this.next(),e.destroy(),this.read_namespace_name())}if(this.version>=802&&"("===this.token){this.next();var r=[];for(r.push(this.read_type());"&"===this.token;){var o=this.peek();if(o===this.tok.T_ELLIPSIS||o===this.tok.T_VARIABLE)break;this.next(),r.push(this.read_type())}return this.expect(")")&&this.next(),e("intersectiontype",r)}return e.destroy(),null}}},9461(e){e.exports={read_if:function(){var e,t=this.node("if"),n=this.next().read_if_expr(),i=null,r=!1;if(":"===this.token){r=!0,e=this.node("block"),this.next();for(var o=[];this.token!==this.EOF&&this.token!==this.tok.T_ENDIF;){if(this.token===this.tok.T_ELSEIF){i=this.read_elseif_short();break}if(this.token===this.tok.T_ELSE){i=this.read_else_short();break}o.push(this.read_inner_statement())}0===o.length&&this.extractDoc&&this._docs.length>this._docIndex&&o.push(this.node("noop")()),e=e(null,o),this.expect(this.tok.T_ENDIF)&&this.next(),this.expectEndOfStatement()}else e=this.read_statement(),this.token===this.tok.T_ELSEIF?i=this.read_if():this.token===this.tok.T_ELSE&&(i=this.next().read_statement());return t(n,e,i,r)},read_if_expr:function(){this.expect("(")&&this.next();var e=this.read_expr();return this.expect(")")&&this.next(),e},read_elseif_short:function(){var e=null,t=this.node("if"),n=this.next().read_if_expr(),i=this.node("block");this.expect(":")&&this.next();for(var r=[];this.token!=this.EOF&&this.token!==this.tok.T_ENDIF;){if(this.token===this.tok.T_ELSEIF){e=this.read_elseif_short();break}if(this.token===this.tok.T_ELSE){e=this.read_else_short();break}r.push(this.read_inner_statement())}return 0===r.length&&this.extractDoc&&this._docs.length>this._docIndex&&r.push(this.node("noop")()),t(n,i(null,r),e,!0)},read_else_short:function(){this.next();var e=this.node("block");this.expect(":")&&this.next();for(var t=[];this.token!=this.EOF&&this.token!==this.tok.T_ENDIF;)t.push(this.read_inner_statement());return 0===t.length&&this.extractDoc&&this._docs.length>this._docIndex&&t.push(this.node("noop")()),e(null,t)}}},5931(e){e.exports={read_while:function(){var e,t=this.node("while");this.expect(this.tok.T_WHILE)&&this.next();var n=!1;this.expect("(")&&this.next();var i=this.read_expr();return this.expect(")")&&this.next(),":"===this.token?(n=!0,e=this.read_short_form(this.tok.T_ENDWHILE)):e=this.read_statement(),t(i,e,n)},read_do:function(){var e=this.node("do");this.expect(this.tok.T_DO)&&this.next();var t=null,n=this.read_statement();return this.expect(this.tok.T_WHILE)&&(this.next().expect("(")&&this.next(),t=this.read_expr(),this.expect(")")&&this.next(),this.expect(";")&&this.next()),e(t,n)},read_for:function(){var e=this.node("for");this.expect(this.tok.T_FOR)&&this.next();var t,n=[],i=[],r=[],o=!1;return this.expect("(")&&this.next(),";"!==this.token?(n=this.read_list(this.read_expr,","),this.expect(";")&&this.next()):this.next(),";"!==this.token?(i=this.read_list(this.read_expr,","),this.expect(";")&&this.next()):this.next(),")"!==this.token?(r=this.read_list(this.read_expr,","),this.expect(")")&&this.next()):this.next(),":"===this.token?(o=!0,t=this.read_short_form(this.tok.T_ENDFOR)):t=this.read_statement(),e(n,i,r,t,o)},read_foreach:function(){var e=this.node("foreach");this.expect(this.tok.T_FOREACH)&&this.next();var t,n=null,i=null,r=!1;this.expect("(")&&this.next();var o=this.read_expr();return this.expect(this.tok.T_AS)&&(this.next(),i=this.read_foreach_variable(),this.token===this.tok.T_DOUBLE_ARROW&&(n=i,i=this.next().read_foreach_variable())),n&&"list"===n.kind&&this.raiseError("Fatal Error : Cannot use list as key element"),this.expect(")")&&this.next(),":"===this.token?(r=!0,t=this.read_short_form(this.tok.T_ENDFOREACH)):t=this.read_statement(),e(o,n,i,t,r)},read_foreach_variable:function(){if(this.token===this.tok.T_LIST||"["===this.token){var e="["===this.token,t=this.node("list");this.next(),!e&&this.expect("(")&&this.next();var n=this.read_array_pair_list(e);return this.expect(e?"]":")")&&this.next(),t(n,e)}return this.read_variable(!1,!1)}}},9147(e){e.exports={read_start:function(){return this.token==this.tok.T_NAMESPACE?this.read_namespace():this.read_top_statement()}}},9219(e){e.exports={read_namespace:function(){var e,t,n=this.node("namespace");return this.expect(this.tok.T_NAMESPACE)&&this.next(),t="{"===this.token?{name:[""]}:this.read_namespace_name(),this.currentNamespace=t,";"===this.token?(this.currentNamespace=t,e=this.next().read_top_statements(!0),n(t.name,e,!1)):"{"===this.token?(this.currentNamespace=t,e=this.next().read_top_statements(),this.expect("}")&&this.next(),0===e.length&&this.extractDoc&&this._docs.length>this._docIndex&&e.push(this.node("noop")()),n(t.name,e,!0)):(this.error(["{",";"]),this.currentNamespace=t,e=this.read_top_statements(),this.expect(this.EOF),n(t,e,!1))},read_namespace_name:function(e){var t,n=this.node(),i=this.text();switch(this.token){case this.tok.T_NAME_RELATIVE:t=this.ast.name.RELATIVE_NAME,i=i.replace(/^namespace\\/,"");break;case this.tok.T_NAME_QUALIFIED:t=this.ast.name.QUALIFIED_NAME;break;case this.tok.T_NAME_FULLY_QUALIFIED:t=this.ast.name.FULL_QUALIFIED_NAME;break;default:if(t=this.ast.name.UNQUALIFIED_NAME,!this.expect(this.tok.T_STRING))return n("name","",this.ast.name.FULL_QUALIFIED_NAME)}if(this.next(),e||"("!==this.token){if("parent"===i.toLowerCase())return n("parentreference",i);if("self"===i.toLowerCase())return n("selfreference",i)}return n("name",i,t)},read_use_statement:function(){var e=this.node("usegroup"),t=[],n=null;this.expect(this.tok.T_USE)&&this.next();var i=this.read_use_type();return t.push(this.read_use_declaration(!1)),","===this.token?t=t.concat(this.next().read_use_declarations(!1)):"{"===this.token&&(n=t[0].name,t=this.next().read_use_declarations(null===i),this.expect("}")&&this.next()),e=e(n,i,t),this.expect(";")&&this.next(),e},read_class_name_reference:function(){return this.read_variable(!0,!1)},read_use_declaration:function(e){var t=this.node("useitem"),n=null;e&&(n=this.read_use_type());var i=this.read_namespace_name(),r=this.read_use_alias();return t(i.name,r,n)},read_use_declarations:function(e){for(var t=[this.read_use_declaration(e)];","===this.token;){if(this.next(),e){if(this.token!==this.tok.T_NAME_RELATIVE&&this.token!==this.tok.T_NAME_QUALIFIED&&this.token!==this.tok.T_NAME_FULLY_QUALIFIED&&this.token!==this.tok.T_FUNCTION&&this.token!==this.tok.T_CONST&&this.token!==this.tok.T_STRING)break}else if(this.token!==this.tok.T_NAME_RELATIVE&&this.token!==this.tok.T_NAME_QUALIFIED&&this.token!==this.tok.T_NAME_FULLY_QUALIFIED&&this.token!==this.tok.T_STRING&&this.token!==this.tok.T_NS_SEPARATOR)break;t.push(this.read_use_declaration(e))}return t},read_use_alias:function(){var e=null;if(this.token===this.tok.T_AS&&this.next().expect(this.tok.T_STRING)){var t=this.node("identifier"),n=this.text();this.next(),e=t(n)}return e},read_use_type:function(){return this.token===this.tok.T_FUNCTION?(this.next(),this.ast.useitem.TYPE_FUNCTION):this.token===this.tok.T_CONST?(this.next(),this.ast.useitem.TYPE_CONST):null}}},7170(e){var t={"\\":"\\",$:"$",n:"\n",r:"\r",t:"\t",f:String.fromCharCode(12),v:String.fromCharCode(11),e:String.fromCharCode(27)};e.exports={resolve_special_chars:function(e,n){return n?e.replace(/\\"/g,'"').replace(/\\([\\$nrtfve]|[xX][0-9a-fA-F]{1,2}|[0-7]{1,3}|u{([0-9a-fA-F]+)})/g,function(e,n,i){return t[n]?t[n]:"x"===n[0]||"X"===n[0]?String.fromCodePoint(parseInt(n.substr(1),16)):"u"===n[0]?String.fromCodePoint(parseInt(i,16)):String.fromCodePoint(parseInt(n,8))}):e.replace(/\\\\/g,"\\").replace(/\\'/g,"'")},remove_heredoc_leading_whitespace_chars:function(e,t,n,i){if(0===t)return e;this.check_heredoc_indentation_level(e,t,n,i);var r=n?" ":"\t",o=new RegExp("\\n".concat(r,"{").concat(t,"}"),"g"),a=new RegExp("^".concat(r,"{").concat(t,"}"));return i&&(e=e.replace(a,"")),e.replace(o,"\n")},check_heredoc_indentation_level:function(e,t,n,i){var r=e.length,o=0,a=0,s=!0,l=n?" ":"\t",c=!1;if(!i){if(-1===(o=e.indexOf("\n")))return;o++}for(;o<r;)s&&(e[o]===l?a++:c=!0),"\n"!==e[o]&&c&&a<t?this.raiseError("Invalid body indentation level (expecting an indentation at least ".concat(t,")")):c=!1,"\n"===e[o]&&(s=!0,a=0),o++},read_dereferencable_scalar:function(){var e=null;switch(this.token){case this.tok.T_CONSTANT_ENCAPSED_STRING:var t=this.node("string"),n=this.text(),i=0;"b"!==n[0]&&"B"!==n[0]||(i=1);var r='"'===n[i];this.next(),t=t(r,this.resolve_special_chars(n.substring(i+1,n.length-1),r),1===i,n),e=this.token===this.tok.T_DOUBLE_COLON?this.read_static_getter(t):t;break;case this.tok.T_ARRAY:case"[":e=this.read_array()}return e},read_scalar:function(){if(this.is("T_MAGIC_CONST"))return this.get_magic_constant();var e,t;switch(this.token){case this.tok.T_LNUMBER:case this.tok.T_DNUMBER:var n=this.node("number");return e=this.text(),this.next(),n(e,null);case this.tok.T_START_HEREDOC:if("ST_NOWDOC"===this.lexer.curCondition){var i=this.lexer.yylloc.first_offset;t=this.node("nowdoc"),e=this.next().text(),this.lexer.heredoc_label.indentation>0&&(e=e.substring(0,e.length-this.lexer.heredoc_label.indentation));var r=e[e.length-1];"\n"===r?e="\r"===e[e.length-2]?e.substring(0,e.length-2):e.substring(0,e.length-1):"\r"===r&&(e=e.substring(0,e.length-1)),this.expect(this.tok.T_ENCAPSED_AND_WHITESPACE)&&this.next(),this.expect(this.tok.T_END_HEREDOC)&&this.next();var o=this.lexer._input.substring(i,this.lexer.yylloc.first_offset);return t=t(this.remove_heredoc_leading_whitespace_chars(e,this.lexer.heredoc_label.indentation,this.lexer.heredoc_label.indentation_uses_spaces,this.lexer.heredoc_label.first_encaps_node),o,this.lexer.heredoc_label.label),this.lexer.heredoc_label.finished=!0,t}return this.read_encapsed_string(this.tok.T_END_HEREDOC);case'"':return this.read_encapsed_string('"');case'b"':case'B"':return this.read_encapsed_string('"',!0);case this.tok.T_CONSTANT_ENCAPSED_STRING:case this.tok.T_ARRAY:case"[":return this.read_dereferencable_scalar();default:var a=this.error("SCALAR");return this.next(),a}},read_dereferencable:function(e){var t,n,i=this.node("offsetlookup");return"["===this.token?(n=this.next().read_expr(),this.expect("]")&&this.next(),t=i(e,n)):this.token===this.tok.T_DOLLAR_OPEN_CURLY_BRACES&&(t=i(e,n=this.read_encapsed_string_item(!1))),t},read_encapsed_string_item:function(e){var t,n,i,r=this.node("encapsedpart"),o=null,a=!1,s=this.node();if(this.token===this.tok.T_ENCAPSED_AND_WHITESPACE){var l=this.text();this.next(),s=s("string",!1,this.version>=703&&!this.lexer.heredoc_label.finished?this.resolve_special_chars(this.remove_heredoc_leading_whitespace_chars(l,this.lexer.heredoc_label.indentation,this.lexer.heredoc_label.indentation_uses_spaces,this.lexer.heredoc_label.first_encaps_node),e):this.resolve_special_chars(l,e),!1,l)}else if(this.token===this.tok.T_DOLLAR_OPEN_CURLY_BRACES){if(o="simple",a=!0,this.next().token===this.tok.T_STRING_VARNAME){i=this.node("variable");var c=this.text();this.next(),s.destroy(),"["===this.token?(i=i(c,!1),n=this.node("offsetlookup"),t=this.next().read_expr(),this.expect("]")&&this.next(),s=n(i,t)):s=i(c,!1)}else s=s("variable",this.read_expr(),!1);this.expect("}")&&this.next()}else if(this.token===this.tok.T_CURLY_OPEN)o="complex",s.destroy(),s=this.next().read_variable(!1,!1),this.expect("}")&&this.next();else if(this.token===this.tok.T_VARIABLE){if(o="simple",s.destroy(),s=this.read_simple_variable(),"["===this.token&&(n=this.node("offsetlookup"),t=this.next().read_encaps_var_offset(),this.expect("]")&&this.next(),s=n(s,t)),this.token===this.tok.T_OBJECT_OPERATOR){n=this.node("propertylookup"),this.next().expect(this.tok.T_STRING);var u=this.node("identifier");i=this.text(),this.next(),s=n(s,u(i))}}else{this.expect(this.tok.T_ENCAPSED_AND_WHITESPACE);var d=this.text();this.next(),s.destroy(),s=s("string",!1,d,!1,d)}return this.lexer.heredoc_label.first_encaps_node=!1,r(s,o,a)},read_encapsed_string:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.lexer.yylloc.first_offset,i=this.node("encapsed");this.next();var r,o=this.lexer.yylloc.prev_offset-(t?1:0),a=[];for(r="`"===e?this.ast.encapsed.TYPE_SHELL:'"'===e?this.ast.encapsed.TYPE_STRING:this.ast.encapsed.TYPE_HEREDOC;this.token!==e&&this.token!==this.EOF;)a.push(this.read_encapsed_string_item(!0));if(r===this.ast.encapsed.TYPE_HEREDOC&&a.length>0&&"encapsedpart"===a[a.length-1].kind&&"string"===a[a.length-1].expression.kind){var s=a[a.length-1].expression,l=s.value[s.value.length-1];"\n"===l?"\r"===s.value[s.value.length-2]?s.value=s.value.substring(0,s.value.length-2):s.value=s.value.substring(0,s.value.length-1):"\r"===l&&(s.value=s.value.substring(0,s.value.length-1))}return this.expect(e)&&this.next(),i=i(a,this.lexer._input.substring("heredoc"===r?n:o-1,this.lexer.yylloc.first_offset),r),e===this.tok.T_END_HEREDOC&&(i.label=this.lexer.heredoc_label.label,this.lexer.heredoc_label.finished=!0),i},get_magic_constant:function(){var e=this.node("magic"),t=this.text();return this.next(),e(t.toUpperCase(),t)}}},6261(e){e.exports={read_top_statements:function(e){for(var t=[];this.token!==this.EOF&&"}"!==this.token&&(!e||this.token!==this.tok.T_NAMESPACE);){var n=this.read_top_statement();n&&(Array.isArray(n)?t=t.concat(n):t.push(n))}return t},read_top_statement:function(){var e=[];switch(this.token===this.tok.T_ATTRIBUTE&&(e=this.read_attr_list()),this.token){case this.tok.T_FUNCTION:return this.read_function(!1,!1,e);case this.tok.T_ABSTRACT:case this.tok.T_FINAL:case this.tok.T_READ_ONLY:case this.tok.T_CLASS:return this.read_class_declaration_statement(e);case this.tok.T_INTERFACE:return this.read_interface_declaration_statement(e);case this.tok.T_TRAIT:return this.read_trait_declaration_statement(e);case this.tok.T_ENUM:return this.read_enum_declaration_statement(e);case this.tok.T_USE:return this.read_use_statement();case this.tok.T_CONST:var t=this.node("constantstatement"),n=this.next().read_const_list();return this.expectEndOfStatement(),t(null,n);case this.tok.T_NAMESPACE:return this.read_namespace();case this.tok.T_HALT_COMPILER:var i=this.node("halt");return this.next().expect("(")&&this.next(),this.expect(")")&&this.next(),this.expect(";"),this.lexer.done=!0,i(this.lexer._input.substring(this.lexer.offset));default:return this.read_statement()}},read_inner_statements:function(){for(var e=[];this.token!=this.EOF&&"}"!==this.token;){var t=this.read_inner_statement();t&&(Array.isArray(t)?e=e.concat(t):e.push(t))}return e},read_const_list:function(){return this.read_list(function(){this.expect(this.tok.T_STRING);var e=this.node("constant"),t=this.node("identifier"),n=this.text();return this.next(),t=t(n),this.expect("=")?e(t,this.next().read_expr()):e(t,null)},",",!1)},read_declare_list:function(){for(var e=[];this.token!=this.EOF&&")"!==this.token;){this.expect(this.tok.T_STRING);var t=this.node("declaredirective"),n=this.node("identifier"),i=this.text();this.next(),n=n(i);var r=null;if(this.expect("=")&&(r=this.next().read_expr()),e.push(t(n,r)),","!==this.token)break;this.next()}return e},read_inner_statement:function(){var e=[];switch(this.token===this.tok.T_ATTRIBUTE&&(e=this.read_attr_list()),this.token){case this.tok.T_FUNCTION:var t=this.read_function(!1,!1);return t.attrGroups=e,t;case this.tok.T_ABSTRACT:case this.tok.T_FINAL:case this.tok.T_CLASS:return this.read_class_declaration_statement();case this.tok.T_INTERFACE:return this.read_interface_declaration_statement();case this.tok.T_TRAIT:return this.read_trait_declaration_statement(e);case this.tok.T_ENUM:return this.read_enum_declaration_statement(e);case this.tok.T_HALT_COMPILER:this.raiseError("__HALT_COMPILER() can only be used from the outermost scope");var n=this.node("halt");return this.next().expect("(")&&this.next(),this.expect(")")&&this.next(),n=n(this.lexer._input.substring(this.lexer.offset)),this.expect(";")&&this.next(),n;default:return this.read_statement()}},read_statement:function(){switch(this.token){case"{":return this.read_code_block(!1);case this.tok.T_IF:return this.read_if();case this.tok.T_SWITCH:return this.read_switch();case this.tok.T_FOR:return this.read_for();case this.tok.T_FOREACH:return this.read_foreach();case this.tok.T_WHILE:return this.read_while();case this.tok.T_DO:return this.read_do();case this.tok.T_COMMENT:return this.read_comment();case this.tok.T_DOC_COMMENT:return this.read_doc_comment();case this.tok.T_RETURN:var e=this.node("return");this.next();var t=this.read_optional_expr(";");return this.expectEndOfStatement(),e(t);case this.tok.T_BREAK:case this.tok.T_CONTINUE:var n=this.node(this.token===this.tok.T_CONTINUE?"continue":"break");this.next();var i=this.read_optional_expr(";");return this.expectEndOfStatement(),n(i);case this.tok.T_GLOBAL:var r=this.node("global"),o=this.next().read_list(this.read_simple_variable,",");return this.expectEndOfStatement(),r(o);case this.tok.T_STATIC:var a=[this.token,this.lexer.getState()],s=this.node();if(this.next().token===this.tok.T_DOUBLE_COLON){this.lexer.tokens.push(a);var l=this.next().read_expr();return this.expectEndOfStatement(l),s("expressionstatement",l)}if(this.token===this.tok.T_FUNCTION)return this.read_function(!0,[0,1,0]);var c=this.read_variable_declarations();return this.expectEndOfStatement(),s("static",c);case this.tok.T_ECHO:var u=this.node("echo"),d=this.text(),p="<?="===d||"<%="===d,h=this.next().read_function_list(this.read_expr,",");return this.expectEndOfStatement(),u(h,p);case this.tok.T_INLINE_HTML:var f=this.text(),m=this.lexer.yylloc.first_offset>0?this.lexer._input[this.lexer.yylloc.first_offset-1]:null,g="\r"===m||"\n"===m;g&&"\n"===m&&this.lexer.yylloc.first_offset>1&&"\r"===this.lexer._input[this.lexer.yylloc.first_offset-2]&&(m="\r\n");var v=this.node("inline");return this.next(),v(f,g?m+f:f);case this.tok.T_UNSET:var y=this.node("unset");this.next().expect("(")&&this.next();var b=this.read_function_list(this.read_variable,",");return this.expect(")")&&this.next(),this.expect(";")&&this.next(),y(b);case this.tok.T_DECLARE:var k,w=this.node("declare"),_=[];this.next().expect("(")&&this.next();var C=this.read_declare_list();if(this.expect(")")&&this.next(),":"===this.token){for(this.next();this.token!=this.EOF&&this.token!==this.tok.T_ENDDECLARE;)_.push(this.read_top_statement());0===_.length&&this.extractDoc&&this._docs.length>this._docIndex&&_.push(this.node("noop")()),this.expect(this.tok.T_ENDDECLARE)&&this.next(),this.expectEndOfStatement(),k=this.ast.declare.MODE_SHORT}else if("{"===this.token){for(this.next();this.token!=this.EOF&&"}"!==this.token;)_.push(this.read_top_statement());0===_.length&&this.extractDoc&&this._docs.length>this._docIndex&&_.push(this.node("noop")()),this.expect("}")&&this.next(),k=this.ast.declare.MODE_BLOCK}else this.expect(";")&&this.next(),k=this.ast.declare.MODE_NONE;return w(C,_,k);case this.tok.T_TRY:return this.read_try();case this.tok.T_THROW:var x=this.node("throw"),S=this.next().read_expr();return this.expectEndOfStatement(),x(S);case";":return this.next(),null;case this.tok.T_STRING:var E=this.node(),A=[this.token,this.lexer.getState()],D=this.text(),T=this.node("identifier");if(":"===this.next().token)return T=T(D),this.next(),E("label",T);T.destroy(),E.destroy(),this.lexer.tokens.push(A);var I=this.node("expressionstatement"),O=this.next().read_expr();return this.expectEndOfStatement(O),I(O);case this.tok.T_GOTO:var P=this.node("goto"),F=null;if(this.next().expect(this.tok.T_STRING)){F=this.node("identifier");var $=this.text();this.next(),F=F($),this.expectEndOfStatement()}return P(F);default:var M=this.node("expressionstatement"),L=this.read_expr();return this.expectEndOfStatement(L),M(L)}},read_code_block:function(e){var t=this.node("block");this.expect("{")&&this.next();var n=e?this.read_top_statements():this.read_inner_statements();return 0===n.length&&this.extractDoc&&this._docs.length>this._docIndex&&n.push(this.node("noop")()),this.expect("}")&&this.next(),t(null,n)}}},2478(e){e.exports={read_switch:function(){var e=this.node("switch");this.expect(this.tok.T_SWITCH)&&this.next(),this.expect("(")&&this.next();var t=this.read_expr();this.expect(")")&&this.next();var n=":"===this.token;return e(t,this.read_switch_case_list(),n)},read_switch_case_list:function(){var e=null,t=this.node("block"),n=[];for("{"===this.token?e="}":":"===this.token?e=this.tok.T_ENDSWITCH:this.expect(["{",":"]),this.next(),";"===this.token&&this.next();this.token!==this.EOF&&this.token!==e;)n.push(this.read_case_list(e));return 0===n.length&&this.extractDoc&&this._docs.length>this._docIndex&&n.push(this.node("noop")()),this.expect(e)&&this.next(),e===this.tok.T_ENDSWITCH&&this.expectEndOfStatement(),t(null,n)},read_case_list:function(e){var t=this.node("case"),n=null;this.token===this.tok.T_CASE?n=this.next().read_expr():this.token===this.tok.T_DEFAULT?this.next():this.expect([this.tok.T_CASE,this.tok.T_DEFAULT]),this.expect([":",";"])&&this.next();for(var i=this.node("block"),r=[];this.token!==this.EOF&&this.token!==e&&this.token!==this.tok.T_CASE&&this.token!==this.tok.T_DEFAULT;)r.push(this.read_inner_statement());return t(n,i(null,r))}}},77(e){e.exports={read_try:function(){this.expect(this.tok.T_TRY);for(var e=this.node("try"),t=null,n=[],i=this.next().read_statement();this.token===this.tok.T_CATCH;){var r=this.node("catch");this.next().expect("(")&&this.next();var o=this.read_list(this.read_namespace_name,"|",!1),a=null;(this.version<800||this.token===this.tok.T_VARIABLE)&&(a=this.read_variable(!0,!1)),this.expect(")"),n.push(r(this.next().read_statement(),o,a))}return this.token===this.tok.T_FINALLY&&(t=this.next().read_statement()),e(i,n,t)}}},6077(e){e.exports={read_short_form:function(e){var t=this.node("block"),n=[];for(this.expect(":")&&this.next();this.token!=this.EOF&&this.token!==e;)n.push(this.read_inner_statement());return 0===n.length&&this.extractDoc&&this._docs.length>this._docIndex&&n.push(this.node("noop")()),this.expect(e)&&this.next(),this.expectEndOfStatement(),t(null,n)},read_function_list:function(e,t){var n=[];do{if(this.token==t&&this.version>=703&&n.length>0){n.push(this.node("noop")());break}if(n.push(e.apply(this,[])),this.token!=t)break;if(")"==this.next().token&&this.version>=703)break}while(this.token!=this.EOF);return n},read_list:function(e,t,n){var i=[];if(this.token==t){if(!n)return this.error(),i;i.push("function"==typeof e?this.node("noop")():null),this.next()}if("function"==typeof e)do{var r=e.apply(this,[]);if(r&&i.push(r),this.token!=t)break}while(this.next().token!=this.EOF);else{if(!this.expect(e))return[];for(i.push(this.text());this.next().token!=this.EOF&&this.token==t&&this.next().token==e;)i.push(this.text())}return i},read_name_list:function(){return this.read_list(this.read_namespace_name,",",!1)},read_byref:function(e){var t=this.node("byref");this.next(),t=t(null);var n=e();return n&&(this.ast.swapLocations(n,t,n,this),n.byref=!0),n},read_variable_declarations:function(){return this.read_list(function(){var e=this.node("staticvariable"),t=this.node("variable");if(this.expect(this.tok.T_VARIABLE)){var n=this.text().substring(1);this.next(),t=t(n,!1)}else t=t("#ERR",!1);return"="===this.token?e(t,this.next().read_expr()):t},",")},read_extends_from:function(){return this.token===this.tok.T_EXTENDS?this.next().read_namespace_name():null},read_interface_extends_list:function(){return this.token===this.tok.T_EXTENDS?this.next().read_name_list():null},read_implements_list:function(){return this.token===this.tok.T_IMPLEMENTS?this.next().read_name_list():null}}},1130(e){e.exports={read_variable:function(e,t){var n;if("&"===this.token)return this.read_byref(this.read_variable.bind(this,e,t));if(this.is([this.tok.T_VARIABLE,"$"]))n=this.read_reference_variable(t);else if(this.is([this.tok.T_NS_SEPARATOR,this.tok.T_STRING,this.tok.T_NAME_RELATIVE,this.tok.T_NAME_QUALIFIED,this.tok.T_NAME_FULLY_QUALIFIED,this.tok.T_NAMESPACE])){n=this.node();var i=this.read_namespace_name();if(this.token!=this.tok.T_DOUBLE_COLON&&"("!=this.token&&-1===["parentreference","selfreference"].indexOf(i.kind)){var r=i.name.toLowerCase();"true"===r?n=i.destroy(n("boolean",!0,i.name)):"false"===r?n=i.destroy(n("boolean",!1,i.name)):"null"===r?n=i.destroy(n("nullkeyword",i.name)):(n.destroy(i),n=i)}else n.destroy(i),n=i}else if(this.token===this.tok.T_STATIC){n=this.node("staticreference");var o=this.text();this.next(),n=n(o)}else this.expect("VARIABLE");return this.token===this.tok.T_DOUBLE_COLON&&(n=this.read_static_getter(n,t)),this.recursive_variable_chain_scan(n,e,t)},read_static_getter:function(e,t){var n,i,r=this.node("staticlookup");return this.next().is([this.tok.T_VARIABLE,"$"])?n=this.read_reference_variable(t):this.token===this.tok.T_STRING||this.token===this.tok.T_CLASS||this.version>=700&&this.is("IDENTIFIER")?(n=this.node("identifier"),i=this.text(),this.next(),n=n(i)):"{"===this.token?(n=this.node("literal"),i=this.next().read_expr(),this.expect("}")&&this.next(),n=n("literal",i,null)):(this.error([this.tok.T_VARIABLE,this.tok.T_STRING]),n=this.node("identifier"),i=this.text(),this.next(),n=n(i)),r(e,n)},read_what:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch(this.next().token){case this.tok.T_STRING:e=this.node("identifier"),t=this.text(),this.next(),e=e(t),n&&this.token===this.tok.T_OBJECT_OPERATOR&&this.error();break;case this.tok.T_VARIABLE:e=this.node("variable"),t=this.text().substring(1),this.next(),e=e(t,!1);break;case this.tok.T_CLASS:n||this.error(),e=this.node("identifier"),t=this.text(),this.next(),e=e(t,!1);break;case"$":e=this.node(),this.next().expect(["$","{",this.tok.T_VARIABLE]),"{"===this.token?(t=this.next().read_expr(),this.expect("}")&&this.next(),e=e("variable",t,!0)):e=e("variable",t=this.read_expr(),!1);break;case"{":e=this.node("encapsedpart"),t=this.next().read_expr(),this.expect("}")&&this.next(),e=e(t,"complex",!1);break;default:this.error([this.tok.T_STRING,this.tok.T_VARIABLE,"$","{"]),e=this.node("identifier"),t=this.text(),this.next(),e=e(t)}return e},recursive_variable_chain_scan:function(e,t,n){var i,r;e:for(;this.token!=this.EOF;)switch(this.token){case"(":if(t)return e;e=this.node("call")(e,this.read_argument_list());break;case"[":case"{":var o="["===this.token;i=this.node("offsetlookup"),this.next(),r=!1,n?(r=this.read_encaps_var_offset(),this.expect(o?"]":"}")&&this.next()):(o?"]"!==this.token:"}"!==this.token)?(r=this.read_expr(),this.expect(o?"]":"}")&&this.next()):this.next(),e=i(e,r);break;case this.tok.T_DOUBLE_COLON:e=(i=this.node("staticlookup"))(e,this.read_what(!0));break;case this.tok.T_OBJECT_OPERATOR:e=(i=this.node("propertylookup"))(e,this.read_what());break;case this.tok.T_NULLSAFE_OBJECT_OPERATOR:e=(i=this.node("nullsafepropertylookup"))(e,this.read_what());break;default:break e}return e},read_encaps_var_offset:function(){var e=this.node();if(this.token===this.tok.T_STRING){var t=this.text();this.next(),e=e("identifier",t)}else if(this.token===this.tok.T_NUM_STRING){var n=this.text();this.next(),e=e("number",n,null)}else if("-"===this.token){this.next();var i=-1*this.text();this.expect(this.tok.T_NUM_STRING)&&this.next(),e=e("number",i,null)}else if(this.token===this.tok.T_VARIABLE){var r=this.text().substring(1);this.next(),e=e("variable",r,!1)}else{this.expect([this.tok.T_STRING,this.tok.T_NUM_STRING,"-",this.tok.T_VARIABLE]);var o=this.text();this.next(),e=e("identifier",o)}return e},read_reference_variable:function(e){for(var t,n=this.read_simple_variable();this.token!=this.EOF;){var i=this.node();if("{"!=this.token||e){i.destroy();break}t=this.next().read_expr(),this.expect("}")&&this.next(),n=i("offsetlookup",n,t)}return n},read_simple_variable:function(){var e,t=this.node("variable");if(this.expect([this.tok.T_VARIABLE,"$"])&&this.token===this.tok.T_VARIABLE)e=this.text().substring(1),this.next(),t=t(e,!1);else switch("$"===this.token&&this.next(),this.token){case"{":var n=this.next().read_expr();this.expect("}")&&this.next(),t=t(n,!0);break;case"$":t=t(this.read_simple_variable(),!1);break;case this.tok.T_VARIABLE:e=this.text().substring(1);var i=this.node("variable");this.next(),t=t(i(e,!1),!1);break;default:this.error(["{","$",this.tok.T_VARIABLE]),e=this.text(),this.next(),t=t(e,!1)}return t}}},1906(e){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function i(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?n(Object(i),!0).forEach(function(t){r(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function r(e,n,i){return(n=function(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,n||"default");if("object"!=t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==t(n)?n:n+""}(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var s={T_HALT_COMPILER:101,T_USE:102,T_ENCAPSED_AND_WHITESPACE:103,T_OBJECT_OPERATOR:104,T_STRING:105,T_DOLLAR_OPEN_CURLY_BRACES:106,T_STRING_VARNAME:107,T_CURLY_OPEN:108,T_NUM_STRING:109,T_ISSET:110,T_EMPTY:111,T_INCLUDE:112,T_INCLUDE_ONCE:113,T_EVAL:114,T_REQUIRE:115,T_REQUIRE_ONCE:116,T_NAMESPACE:117,T_NS_SEPARATOR:118,T_AS:119,T_IF:120,T_ENDIF:121,T_WHILE:122,T_DO:123,T_FOR:124,T_SWITCH:125,T_BREAK:126,T_CONTINUE:127,T_RETURN:128,T_GLOBAL:129,T_STATIC:130,T_ECHO:131,T_INLINE_HTML:132,T_UNSET:133,T_FOREACH:134,T_DECLARE:135,T_TRY:136,T_THROW:137,T_GOTO:138,T_FINALLY:139,T_CATCH:140,T_ENDDECLARE:141,T_LIST:142,T_CLONE:143,T_PLUS_EQUAL:144,T_MINUS_EQUAL:145,T_MUL_EQUAL:146,T_DIV_EQUAL:147,T_CONCAT_EQUAL:148,T_MOD_EQUAL:149,T_AND_EQUAL:150,T_OR_EQUAL:151,T_XOR_EQUAL:152,T_SL_EQUAL:153,T_SR_EQUAL:154,T_INC:155,T_DEC:156,T_BOOLEAN_OR:157,T_BOOLEAN_AND:158,T_LOGICAL_OR:159,T_LOGICAL_AND:160,T_LOGICAL_XOR:161,T_SL:162,T_SR:163,T_IS_IDENTICAL:164,T_IS_NOT_IDENTICAL:165,T_IS_EQUAL:166,T_IS_NOT_EQUAL:167,T_IS_SMALLER_OR_EQUAL:168,T_IS_GREATER_OR_EQUAL:169,T_INSTANCEOF:170,T_INT_CAST:171,T_DOUBLE_CAST:172,T_STRING_CAST:173,T_ARRAY_CAST:174,T_OBJECT_CAST:175,T_BOOL_CAST:176,T_UNSET_CAST:177,T_EXIT:178,T_PRINT:179,T_YIELD:180,T_YIELD_FROM:181,T_FUNCTION:182,T_DOUBLE_ARROW:183,T_DOUBLE_COLON:184,T_ARRAY:185,T_CALLABLE:186,T_CLASS:187,T_ABSTRACT:188,T_TRAIT:189,T_FINAL:190,T_EXTENDS:191,T_INTERFACE:192,T_IMPLEMENTS:193,T_VAR:194,T_PUBLIC:195,T_PROTECTED:196,T_PRIVATE:197,T_CONST:198,T_NEW:199,T_INSTEADOF:200,T_ELSEIF:201,T_ELSE:202,T_ENDSWITCH:203,T_CASE:204,T_DEFAULT:205,T_ENDFOR:206,T_ENDFOREACH:207,T_ENDWHILE:208,T_CONSTANT_ENCAPSED_STRING:209,T_LNUMBER:210,T_DNUMBER:211,T_LINE:212,T_FILE:213,T_DIR:214,T_TRAIT_C:215,T_METHOD_C:216,T_FUNC_C:217,T_NS_C:218,T_START_HEREDOC:219,T_END_HEREDOC:220,T_CLASS_C:221,T_VARIABLE:222,T_OPEN_TAG:223,T_OPEN_TAG_WITH_ECHO:224,T_CLOSE_TAG:225,T_WHITESPACE:226,T_COMMENT:227,T_DOC_COMMENT:228,T_ELLIPSIS:229,T_COALESCE:230,T_POW:231,T_POW_EQUAL:232,T_SPACESHIP:233,T_COALESCE_EQUAL:234,T_FN:235,T_NULLSAFE_OBJECT_OPERATOR:236,T_MATCH:237,T_ATTRIBUTE:238,T_ENUM:239,T_READ_ONLY:240,T_NAME_RELATIVE:241,T_NAME_QUALIFIED:242,T_NAME_FULLY_QUALIFIED:243,T_PIPE:244},l={values:Object.entries(s).reduce(function(e,t){var n=o(t,2),a=n[0],s=n[1];return i(i({},e),{},r({},s,a))},{}),names:s};e.exports=Object.freeze(l)}},t={},n=function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,n),o.exports}(5362);return n=n.default})(),e.exports=i()},95113:function(){},95864:function(){},96017:function(){},96224:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"href-abs-or-rel",description:"An href attribute must be either absolute or relative.",init(e,t,n){const i="abs"===n?"absolute":"relative";e.addListener("tagstart",e=>{const n=e.attrs;let r;const o=e.col+e.tagName.length+1;for(let a=0,s=n.length;a<s;a++)if(r=n[a],"href"===r.name){("absolute"===i&&!1===/^\w+?:/.test(r.value)||"relative"===i&&!0===/^https?:\/\//.test(r.value))&&t.warn(`The value of the href attribute [ ${r.value} ] must be ${i}.`,e.line,o+r.index,this,r.raw);break}})}}},96235:function(){},96688:function(e,t,n){"use strict";e.exports=o;var i=n(37388),r=n(13573);function o(e,t,n){i.call(this,e,t,n,r.COMBINATOR_TYPE),this.type="unknown",/^\s+$/.test(e)?this.type="descendant":">"===e?this.type="child":"+"===e?this.type="adjacent-sibling":"~"===e&&(this.type="sibling")}o.prototype=new i,o.prototype.constructor=o},96763:function(e,t,n){var i,r=n(40537),o=n(34529),a=n(34148),s=Array.prototype.slice,l={};i=void 0!==n.g&&n.g.console?n.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var c=[[function(){},"log"],[function(){i.log.apply(i,arguments)},"info"],[function(){i.log.apply(i,arguments)},"warn"],[function(){i.warn.apply(i,arguments)},"error"],[function(e){l[e]=a()},"time"],[function(e){var t=l[e];if(!t)throw new Error("No such label: "+e);var n=a()-t;i.log(e+": "+n+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=r.format.apply(null,arguments),i.error(e.stack)},"trace"],[function(e){i.log(r.inspect(e)+"\n")},"dir"],[function(e){if(!e){var t=s.call(arguments,1);o.ok(!1,r.format.apply(null,t))}},"assert"]],u=0;u<c.length;u++){var d=c[u],p=d[0],h=d[1];i[h]||(i[h]=p)}e.exports=i},97135:function(e){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="bricks-svg"><path d="M12.001 15.75v-12" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="m16.501 8.25-4.5-4.5-4.5 4.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M23.251 15.75v1.5a3 3 0 0 1-3 3h-16.5a3 3 0 0 1-3-3v-1.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},97239:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="bricks-svg"><path d="M9.25 14.523 23.25.75" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M23.25 8.621V.75h-8" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/><path d="M12.125 5.75h-10.5a.875.875 0 0 0-.875.875v15.75a.875.875 0 0 0 .875.875h15.75a.875.875 0 0 0 .875-.875v-10.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/></svg>'},97381:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 48 48" class="bricks-svg"><path fill="currentcolor" d="M23.994 13a2.4 2.4 0 0 1-1.769-.731q-.725-.73-.725-1.775c0-1.045.244-1.286.731-1.769Q22.961 8 24.006 8c1.045 0 1.286.244 1.769.731q.725.73.725 1.775c0 1.045-.244 1.286-.731 1.769a2.43 2.43 0 0 1-1.775.725m0 27a2.4 2.4 0 0 1-1.769-.731q-.725-.73-.725-1.775c0-1.045.244-1.286.731-1.769q.73-.725 1.775-.725c1.045 0 1.286.244 1.769.731q.725.73.725 1.775c0 1.045-.244 1.286-.731 1.769a2.43 2.43 0 0 1-1.775.725" stroke-width="1"/></svg>'},97923:function(e,t,n){!function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,i={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function r(e){return e&&e.bracketRegex||/[(){}[\]]/}function o(e,t,o){var s=e.getLineHandle(t.line),l=t.ch-1,c=o&&o.afterCursor;null==c&&(c=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var u=r(o),d=!c&&l>=0&&u.test(s.text.charAt(l))&&i[s.text.charAt(l)]||u.test(s.text.charAt(l+1))&&i[s.text.charAt(++l)];if(!d)return null;var p=">"==d.charAt(1)?1:-1;if(o&&o.strict&&p>0!=(l==t.ch))return null;var h=e.getTokenTypeAt(n(t.line,l+1)),f=a(e,n(t.line,l+(p>0?1:0)),p,h,o);return null==f?null:{from:n(t.line,l),to:f&&f.pos,match:f&&f.ch==d.charAt(0),forward:p>0}}function a(e,t,o,a,s){for(var l=s&&s.maxScanLineLength||1e4,c=s&&s.maxScanLines||1e3,u=[],d=r(s),p=o>0?Math.min(t.line+c,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-c),h=t.line;h!=p;h+=o){var f=e.getLine(h);if(f){var m=o>0?0:f.length-1,g=o>0?f.length:-1;if(!(f.length>l))for(h==t.line&&(m=t.ch-(o<0?1:0));m!=g;m+=o){var v=f.charAt(m);if(d.test(v)&&(void 0===a||(e.getTokenTypeAt(n(h,m+1))||"")==(a||""))){var y=i[v];if(y&&">"==y.charAt(1)==o>0)u.push(v);else{if(!u.length)return{pos:n(h,m),ch:v};u.pop()}}}}}return h-o!=(o>0?e.lastLine():e.firstLine())&&null}function s(e,i,r){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,s=r&&r.highlightNonMatching,l=[],c=e.listSelections(),u=0;u<c.length;u++){var d=c[u].empty()&&o(e,c[u].head,r);if(d&&(d.match||!1!==s)&&e.getLine(d.from.line).length<=a){var p=d.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";l.push(e.markText(d.from,n(d.from.line,d.from.ch+1),{className:p})),d.to&&e.getLine(d.to.line).length<=a&&l.push(e.markText(d.to,n(d.to.line,d.to.ch+1),{className:p}))}}if(l.length){t&&e.state.focused&&e.focus();var h=function(){e.operation(function(){for(var e=0;e<l.length;e++)l[e].clear()})};if(!i)return h;setTimeout(h,800)}}function l(e){e.operation(function(){e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null),e.state.matchBrackets.currentlyHighlighted=s(e,!1,e.state.matchBrackets)})}function c(e){e.state.matchBrackets&&e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null)}e.defineOption("matchBrackets",!1,function(t,n,i){i&&i!=e.Init&&(t.off("cursorActivity",l),t.off("focus",l),t.off("blur",c),c(t)),n&&(t.state.matchBrackets="object"==typeof n?n:{},t.on("cursorActivity",l),t.on("focus",l),t.on("blur",c))}),e.defineExtension("matchBrackets",function(){s(this,!0)}),e.defineExtension("findMatchingBracket",function(e,t,n){return(n||"boolean"==typeof t)&&(n?(n.strict=t,t=n):t=t?{strict:!0}:null),o(this,e,t)}),e.defineExtension("scanForBracket",function(e,t,n,i){return a(this,e,t,n,i)})}(n(15237))},98e3:function(e,t,n){!function(e){"use strict";function t(e){for(var t={},n=e.split(" "),i=0;i<n.length;++i)t[n[i]]=!0;return t}function n(e,t,r){return 0==e.length?i(t):function(o,a){for(var s=e[0],l=0;l<s.length;l++)if(o.match(s[l][0]))return a.tokenize=n(e.slice(1),t),s[l][1];return a.tokenize=i(t,r),"string"}}function i(e,t){return function(n,i){return r(n,i,e,t)}}function r(e,t,i,r){if(!1!==r&&e.match("${",!1)||e.match("{$",!1))return t.tokenize=null,"string";if(!1!==r&&e.match(/^\$[a-zA-Z_][a-zA-Z0-9_]*/))return e.match("[",!1)&&(t.tokenize=n([[["[",null]],[[/\d[\w\.]*/,"number"],[/\$[a-zA-Z_][a-zA-Z0-9_]*/,"variable-2"],[/[\w\$]+/,"variable"]],[["]",null]]],i,r)),e.match(/^->\w/,!1)&&(t.tokenize=n([[["->",null]],[[/[\w]+/,"variable"]]],i,r)),"variable-2";for(var o=!1;!e.eol()&&(o||!1===r||!e.match("{$",!1)&&!e.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!o&&e.match(i)){t.tokenize=null,t.tokStack.pop(),t.tokStack.pop();break}o="\\"==e.next()&&!o}return"string"}var o="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile enum extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally readonly match",a="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",s="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage memory_get_peak_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";e.registerHelper("hintWords","php",[o,a,s].join(" ").split(" ")),e.registerHelper("wordChars","php",/[\w$]/);var l={name:"clike",helperType:"php",keywords:t(o),blockKeywords:t("catch do else elseif for foreach if switch try while finally"),defKeywords:t("class enum function interface namespace trait"),atoms:t(a),builtin:t(s),multiLineStrings:!0,hooks:{$:function(e){return e.eatWhile(/[\w\$_]/),"variable-2"},"<":function(e,t){var n;if(n=e.match(/^<<\s*/)){var r=e.eat(/['"]/);e.eatWhile(/[\w\.]/);var o=e.current().slice(n[0].length+(r?2:1));if(r&&e.eat(r),o)return(t.tokStack||(t.tokStack=[])).push(o,0),t.tokenize=i(o,"'"!=r),"string"}return!1},"#":function(e){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"},"/":function(e){if(e.eat("/")){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"}return!1},'"':function(e,t){return(t.tokStack||(t.tokStack=[])).push('"',0),t.tokenize=i('"'),"string"},"{":function(e,t){return t.tokStack&&t.tokStack.length&&t.tokStack[t.tokStack.length-1]++,!1},"}":function(e,t){return t.tokStack&&t.tokStack.length>0&&! --t.tokStack[t.tokStack.length-1]&&(t.tokenize=i(t.tokStack[t.tokStack.length-2])),!1}}};e.defineMode("php",function(t,n){var i=e.getMode(t,n&&n.htmlMode||"text/html"),r=e.getMode(t,l);function o(t,n){var o=n.curMode==r;if(t.sol()&&n.pending&&'"'!=n.pending&&"'"!=n.pending&&(n.pending=null),o)return o&&null==n.php.tokenize&&t.match("?>")?(n.curMode=i,n.curState=n.html,n.php.context.prev||(n.php=null),"meta"):r.token(t,n.curState);if(t.match(/^<\?\w*/))return n.curMode=r,n.php||(n.php=e.startState(r,i.indent(n.html,"",""))),n.curState=n.php,"meta";if('"'==n.pending||"'"==n.pending){for(;!t.eol()&&t.next()!=n.pending;);var a="string"}else n.pending&&t.pos<n.pending.end?(t.pos=n.pending.end,a=n.pending.style):a=i.token(t,n.curState);n.pending&&(n.pending=null);var s,l=t.current(),c=l.search(/<\?/);return-1!=c&&("string"==a&&(s=l.match(/[\'\"]$/))&&!/\?>/.test(l)?n.pending=s[0]:n.pending={end:t.pos,style:a},t.backUp(l.length-c)),a}return{startState:function(){var t=e.startState(i),o=n.startOpen?e.startState(r):null;return{html:t,php:o,curMode:n.startOpen?r:i,curState:n.startOpen?o:t,pending:null}},copyState:function(t){var n,o=t.html,a=e.copyState(i,o),s=t.php,l=s&&e.copyState(r,s);return n=t.curMode==i?a:l,{html:a,php:l,curMode:t.curMode,curState:n,pending:t.pending}},token:o,indent:function(e,t,n){return e.curMode!=r&&/^\s*<\//.test(t)||e.curMode==r&&/^\?>/.test(t)?i.indent(e.html,t,n):e.curMode.indent(e.curState,t,n)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(e){return{state:e.curState,mode:e.curMode}}}},"htmlmixed","clike"),e.defineMIME("application/x-httpd-php","php"),e.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),e.defineMIME("text/x-php",l)}(n(15237),n(12520),n(48712))},98212:function(e){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" class="bricks-svg"><path fill="#23282D" fill-rule="evenodd" d="M60 0h8v128h-8zM20 16h32v96H20zm56 0h32v96H76z"/></svg>'},98616:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"attr-no-duplication",description:"Elements cannot have duplicate attributes.",init(e,t){e.addListener("tagstart",e=>{const n=e.attrs;let i,r;const o=e.col+e.tagName.length+1,a={};for(let s=0,l=n.length;s<l;s++)i=n[s],r=i.name,!0===a[r]&&t.error(`Duplicate of attribute name [ ${i.name} ] was found.`,e.line,o+i.index,this,i.raw),a[r]=!0})}}},98823:function(){},99650:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={id:"attr-no-unnecessary-whitespace",description:"No spaces between attribute names and values.",init(e,t,n){const i=Array.isArray(n)?n:[];e.addListener("tagstart",e=>{const n=e.attrs,r=e.col+e.tagName.length+1;for(let o=0;o<n.length;o++)if(-1===i.indexOf(n[o].name)){const i=/(\s*)=(\s*)/.exec(n[o].raw.trim());!i||0===i[1].length&&0===i[2].length||t.error(`The attribute '${n[o].name}' must not have spaces between the name and value.`,e.line,r+n[o].index,this,n[o].raw)}})}}}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.m=o,e=[],s.O=function(t,n,i,r){if(!n){var o=1/0;for(u=0;u<e.length;u++){n=e[u][0],i=e[u][1],r=e[u][2];for(var a=!0,l=0;l<n.length;l++)(!1&r||o>=r)&&Object.keys(s.O).every(function(e){return s.O[e](n[l])})?n.splice(l--,1):(a=!1,r<o&&(o=r));if(a){e.splice(u--,1);var c=i();void 0!==c&&(t=c)}}return t}r=r||0;for(var u=e.length;u>0&&e[u-1][2]>r;u--)e[u]=e[u-1];e[u]=[n,i,r]},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,{a:t}),t},n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},s.t=function(e,i){if(1&i&&(e=this(e)),8&i)return e;if("object"==typeof e&&e){if(4&i&&e.__esModule)return e;if(16&i&&"function"==typeof e.then)return e}var r=Object.create(null);s.r(r);var o={};t=t||[null,n({}),n([]),n(n)];for(var a=2&i&&e;("object"==typeof a||"function"==typeof a)&&!~t.indexOf(a);a=n(a))Object.getOwnPropertyNames(a).forEach(function(t){o[t]=function(){return e[t]}});return o.default=function(){return e},s.d(r,o),r},s.d=function(e,t){for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=function(e){return Promise.all(Object.keys(s.f).reduce(function(t,n){return s.f[n](e,t),t},[]))},s.u=function(e){if(7809===e)return"js/main.min/7809.js"},s.miniCssF=function(e){return{16:"css/elements/progress-bar.min",29:"css/elements/image-gallery.min",64:"css/elements/related-posts.min",121:"css/elements/map.min",246:"css/frontend-light-layer.min",289:"css/libs/loading-animation.min",505:"css/elements/pagination.min",506:"css/elements/shortcode.min",661:"css/elements/filter-radio.min",728:"css/libs/tooltips.min",879:"css/builder-rtl.min",935:"css/elements/template.min",1047:"css/elements/toggle-mode.min",1264:"css/libs/choices.min",1272:"css/libs/font-awesome-6.min",1496:"css/elements/filter-search.min",1555:"css/libs/ionicons-layer.min",1604:"css/elements/nav-nested.min",1745:"css/elements/button.min",1753:"css/integrations/polylang.min",1873:"css/elements/alert.min",1945:"css/elements/post-author.min",1995:"css/frontend/one-page-navigation.min",2292:"css/libs/font-awesome-6-layer.min",2302:"css/elements/rating.min",2337:"css/elements/testimonials.min",2338:"css/elements/animated-typing.min",2375:"css/elements/post-excerpt.min",2387:"css/libs/prettify-layer.min",2640:"css/libs/swiper.min",2667:"css/elements/accordion-nested.min",2737:"css/elements/map-leaflet.min",2780:"css/libs/flatpickr-layer.min",2818:"css/builder.min",3009:"css/elements/social-icons.min",3022:"css/libs/photoswipe-layer.min",3164:"css/elements/nav-menu.min",3239:"css/elements/filter-checkbox.min",3369:"css/elements/search.min",3453:"css/libs/themify-icons-layer.min",3520:"css/integrations/woocommerce-rtl.min",3595:"css/elements/form.min",3605:"css/libs/isotope.min",3614:"css/elements/countdown.min",3687:"css/elements/tabs-nested.min",3689:"css/elements/list.min",3701:"css/libs/isotope-layer.min",3748:"css/elements/back-to-top.min",3750:"css/elements/icon.min",3793:"css/frontend.min",3844:"css/libs/tooltips-layer.min",3879:"css/libs/prettify.min",3936:"css/elements/filter-active-filters.min",4059:"css/frontend/content-default.min",4419:"css/elements/post-content.min",4494:"css/elements/filter-datepicker.min",4535:"css/elements/post-meta.min",4589:"css/elements/pricing-tables.min",4760:"css/elements/post-reading-progress-bar.min",4941:"css/elements/breadcrumbs.min",4981:"css/libs/splide-layer.min",5117:"css/elements/tabs.min",5128:"css/elements/team-members.min",5194:"css/elements/post-navigation.min",5206:"css/elements/post-title.min",5277:"css/elements/post-taxonomy.min",5388:"css/libs/choices-layer.min",5802:"css/elements/posts.min",5814:"css/elements/pie-chart.min",5841:"css/elements/svg.min",5849:"css/libs/loading-animation-layer.min",5979:"css/elements/facebook-page.min",6092:"css/elements/logo.min",6154:"css/elements/slider.min",6167:"css/libs/font-awesome-6-brands.min",6209:"css/libs/animate.min",6552:"css/elements/filter-select.min",6649:"css/libs/animate-layer.min",6654:"css/elements/html.min",6701:"css/integrations/woocommerce.min",6702:"css/elements/slider-nested.min",6745:"css/frontend-layer.min",6783:"css/elements/counter.min",6918:"css/elements/post-comments.min",6989:"css/libs/themify-icons.min",7099:"css/elements/sidebar.min",7220:"css/elements/instagram-feed.min",7293:"css/elements/toggle.min",7405:"css/elements/text-link.min",7440:"css/libs/flatpickr.min",7646:"css/elements/post-toc.min",7664:"css/elements/offcanvas.min",7773:"css/integrations/woocommerce-layer.min",8130:"css/elements/code.min",8256:"css/frontend-rtl-layer.min",8417:"css/elements/audio.min",8421:"css/libs/splide.min",8430:"css/libs/photoswipe.min",8446:"css/elements/dropdown.min",8542:"css/elements/icon-box.min",8650:"css/elements/wordpress.min",8704:"css/elements/divider.min",8844:"css/libs/swiper-layer.min",8919:"css/elements/filter-range.min",8934:"css/frontend-light.min",9002:"css/elements/video.min",9003:"css/admin-rtl.min",9136:"css/frontend/404.min",9516:"css/elements/image.min",9541:"css/libs/plyr-layer.min",9583:"css/elements/carousel.min",9624:"css/elements/post-sharing.min",9721:"css/elements/accordion.min",9749:"css/libs/plyr.min",9797:"css/elements/heading.min",9814:"css/admin.min",9884:"css/integrations/woocommerce-rtl-layer.min",9891:"css/libs/font-awesome-6-brands-layer.min",9932:"css/frontend-rtl.min",9948:"css/libs/ionicons.min"}[e]+".css"},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i={},r="bricks:",s.l=function(e,t,n,o){if(i[e])i[e].push(t);else{var a,l;if(void 0!==n)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==r+n){a=d;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,s.nc&&a.setAttribute("nonce",s.nc),a.setAttribute("data-webpack",r+n),a.src=e),i[e]=[t];var p=function(t,n){a.onerror=a.onload=null,clearTimeout(h);var r=i[e];if(delete i[e],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach(function(e){return e(n)}),t)return t(n)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),l&&document.head.appendChild(a)}},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},s.p="/",function(){var e={3231:0,2780:0,7440:0,6649:0,6209:0,1995:0,4059:0,9136:0,246:0,8934:0,8650:0,6745:0,9002:0,1047:0,7293:0,7405:0,2337:0,935:0,5128:0,3687:0,5117:0,5841:0,3793:0,506:0,3009:0,6702:0,6154:0,7099:0,3369:0,64:0,2302:0,16:0,4589:0,9814:0,5802:0,5206:0,5277:0,9624:0,4760:0,5194:0,7646:0,4535:0,2375:0,4419:0,2818:0,6918:0,1945:0,5814:0,505:0,7664:0,3164:0,1604:0,2737:0,121:0,6092:0,3689:0,7220:0,6552:0,1496:0,8919:0,661:0,4494:0,3239:0,3936:0,9516:0,29:0,3750:0,8542:0,6654:0,9797:0,3595:0,5979:0,8446:0,8704:0,6783:0,3614:0,8130:0,9583:0,1745:0,4941:0,3748:0,8417:0,2338:0,1873:0,2667:0,9721:0,9884:0,3520:0,8256:0,9932:0,9003:0,879:0,5388:0,1264:0,3453:0,6989:0,1555:0,9948:0,1753:0,9891:0,6167:0,2292:0,1272:0,3844:0,728:0,4981:0,8421:0,8844:0,2640:0,7773:0,2387:0,3879:0,9541:0,9749:0,3022:0,8430:0,5849:0,289:0,3701:0,3605:0,6701:0};s.f.j=function(t,n){var i=s.o(e,t)?e[t]:void 0;if(0!==i)if(i)n.push(i[2]);else if(/^(3231|7809)$/.test(t)){var r=new Promise(function(n,r){i=e[t]=[n,r]});n.push(i[2]=r);var o=s.p+s.u(t),a=new Error;s.l(o,function(n){if(s.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var r=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+r+": "+o+")",a.name="ChunkLoadError",a.type=r,a.request=o,i[1](a)}},"chunk-"+t,t)}else e[t]=0},s.O.j=function(t){return 0===e[t]};var t=function(t,n){var i,r,o=n[0],a=n[1],l=n[2],c=0;if(o.some(function(t){return 0!==e[t]})){for(i in a)s.o(a,i)&&(s.m[i]=a[i]);if(l)var u=l(s)}for(t&&t(n);c<o.length;c++)r=o[c],s.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return s.O(u)},n=self.webpackChunkbricks=self.webpackChunkbricks||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}(),s.nc=void 0,s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(83756)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(69281)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(22549)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(27586)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(80422)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(8280)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(21052)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(32122)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(95864)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(10004)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(76891)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(96235)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(44103)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(52351)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(85088)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(5888)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(2212)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(2509)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(30560)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(10299)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(17556)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(65926)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(70024)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(88295)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(22521)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(322)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(79367)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(10555)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(28894)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(79032)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(84552)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(77211)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(63987)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(42551)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(78712)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(92355)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(98823)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(53686)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(32861)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(71266)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(54884)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(40967)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(38675)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(96017)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(14302)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(36949)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(7788)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(36460)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(35777)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(10013)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(31507)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(76258)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(25545)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(4692)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(65949)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(15768)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(48332)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(7258)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(3695)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(54321)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(88223)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(46825)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(49140)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(77395)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(82417)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(72230)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(30789)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(81363)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(70787)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(3338)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(60370)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(27091)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(53069)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(55882)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(69873)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(66912)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(37802)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(39038)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(5145)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(41844)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(12042)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(74104)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(1386)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(92570)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(28685)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(57733)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(59969)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(49693)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(83574)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(35115)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(78727)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(14941)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(59681)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(3218)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(19034)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(51431)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(4619)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(2651)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(93623)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(9010)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(89454)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(50974)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(45133)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(43905)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(8721)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(53148)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(47204)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(64535)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(65459)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(23292)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(52012)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(36148)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(77532)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(91713)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(95113)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(66828)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(59156)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(47147)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(77071)}),s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(72592)});var l=s.O(void 0,[2780,7440,6649,6209,1995,4059,9136,246,8934,8650,6745,9002,1047,7293,7405,2337,935,5128,3687,5117,5841,3793,506,3009,6702,6154,7099,3369,64,2302,16,4589,9814,5802,5206,5277,9624,4760,5194,7646,4535,2375,4419,2818,6918,1945,5814,505,7664,3164,1604,2737,121,6092,3689,7220,6552,1496,8919,661,4494,3239,3936,9516,29,3750,8542,6654,9797,3595,5979,8446,8704,6783,3614,8130,9583,1745,4941,3748,8417,2338,1873,2667,9721,9884,3520,8256,9932,9003,879,5388,1264,3453,6989,1555,9948,1753,9891,6167,2292,1272,3844,728,4981,8421,8844,2640,7773,2387,3879,9541,9749,3022,8430,5849,289,3701,3605,6701],function(){return s(20880)});l=s.O(l)}();
修改文件时间
将文件时间修改为当前时间的前一年
删除文件